query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
de5ce8d203c148d54c3f5bb748cf465b
query to count all data
[ { "docid": "1ec2aa895eafabcdc981648df0660901", "score": "0.0", "text": "public function checkIfValueExists($cohort_id,$fy,$q,$datim_id,$cohort_value){\r\n\t\t$query = \"SELECT id FROM cohort_fact WHERE cohort_id='$cohort_id' AND fy='$fy' AND q='$q' AND datim_id='$datim_id'\";\r\n\r\n\t\t// prepare query statement\r\n\t\t$stmt = $this->conn->prepare($query);\r\n\r\n\t\t$stmt->execute();\r\n\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\r\n\t\t$total_rows = $row['id'];\r\n\r\n\t\treturn $total_rows;\r\n\t}", "title": "" } ]
[ { "docid": "942b983c08c1c688f799e626eca55b95", "score": "0.80606264", "text": "public function countAll(){\n $this->db->from($this->table);\n return $this->db->count_all_results();\n }", "title": "" }, { "docid": "26a26ed6c2895dbda6eb7b7bf288f43a", "score": "0.8055435", "text": "public function count_all(){\n\t\treturn $this->db->count_all_results($this->db_table);\n\t}", "title": "" }, { "docid": "5df036ea84c5860eaa5a6e0923dd28ab", "score": "0.8010293", "text": "public function countAll(){\n\t $this->db->from($this->table);\n\t return $this->db->count_all_results();\n\t }", "title": "" }, { "docid": "7c0f43ba788f28ce08ef561515cbcc84", "score": "0.7942615", "text": "public function countAll(){\r\n\r\n\t\t// query to count all data\r\n\t\t$query = \"SELECT count(*) FROM \" . $this->table_name . \" WHERE guestid = ?\";\r\n\r\n\t\t// prepare query statement\r\n\t\t$stmt = $this->conn->prepare( $query );\r\n\r\n\t\t// bind values\r\n\t\t$stmt->bindParam(1, $this->guestid);\r\n\r\n\t\t// execute query\r\n\t\t$stmt->execute();\r\n\r\n\t\t// get row value\r\n\t\t$rows = $stmt->fetch(PDO::FETCH_NUM);\r\n\r\n\t\t// return all data count\r\n\t\treturn $rows[0];\r\n\t}", "title": "" }, { "docid": "9391cf65e4487e779e764a451eca945a", "score": "0.7905302", "text": "public function count_all() {\n $this->db->from($this->table);\n return $this->db->count_all_results();\n }", "title": "" }, { "docid": "d219e51717da2670b1014c2cda9fc475", "score": "0.7894864", "text": "public static function count_all() {\n global $database;\n\n return count(static::find_query(\"SELECT * FROM \" . static::$db_table));\n\n }", "title": "" }, { "docid": "757429756f35c426a3dba76dd13854de", "score": "0.7833778", "text": "public function count_all()\n {\n $this->db->from($this->table);\n return $this->db->count_all_results();\n }", "title": "" }, { "docid": "ace4271066b0424ba6e3b80b2adface9", "score": "0.77985966", "text": "function count_all(){\n return $this->db->count_all($this->tbl_person);\n }", "title": "" }, { "docid": "28f768d12b30bc32ab0155b252200bdd", "score": "0.77431995", "text": "function getCountAll()\n {\n return $this->db->count_all('webinhoud');\n }", "title": "" }, { "docid": "21f979eb6412cea1b73e840e129db55a", "score": "0.77320015", "text": "public function count();", "title": "" }, { "docid": "21f979eb6412cea1b73e840e129db55a", "score": "0.77320015", "text": "public function count();", "title": "" }, { "docid": "21f979eb6412cea1b73e840e129db55a", "score": "0.77320015", "text": "public function count();", "title": "" }, { "docid": "21f979eb6412cea1b73e840e129db55a", "score": "0.77320015", "text": "public function count();", "title": "" }, { "docid": "21f979eb6412cea1b73e840e129db55a", "score": "0.77320015", "text": "public function count();", "title": "" }, { "docid": "21f979eb6412cea1b73e840e129db55a", "score": "0.77320015", "text": "public function count();", "title": "" }, { "docid": "21f979eb6412cea1b73e840e129db55a", "score": "0.77320015", "text": "public function count();", "title": "" }, { "docid": "21f979eb6412cea1b73e840e129db55a", "score": "0.77320015", "text": "public function count();", "title": "" }, { "docid": "21f979eb6412cea1b73e840e129db55a", "score": "0.77320015", "text": "public function count();", "title": "" }, { "docid": "21f979eb6412cea1b73e840e129db55a", "score": "0.77320015", "text": "public function count();", "title": "" }, { "docid": "21f979eb6412cea1b73e840e129db55a", "score": "0.77320015", "text": "public function count();", "title": "" }, { "docid": "21f979eb6412cea1b73e840e129db55a", "score": "0.77320015", "text": "public function count();", "title": "" }, { "docid": "21f979eb6412cea1b73e840e129db55a", "score": "0.77320015", "text": "public function count();", "title": "" }, { "docid": "21f979eb6412cea1b73e840e129db55a", "score": "0.77320015", "text": "public function count();", "title": "" }, { "docid": "21f979eb6412cea1b73e840e129db55a", "score": "0.77320015", "text": "public function count();", "title": "" }, { "docid": "21f979eb6412cea1b73e840e129db55a", "score": "0.77320015", "text": "public function count();", "title": "" }, { "docid": "3eff370c49d3043d65b2073178351664", "score": "0.76776975", "text": "public function _countAll()\n {\n\t\treturn $this->_getAll()->count();\n\t}", "title": "" }, { "docid": "623c76a653682b7172cf98d1c512a0b4", "score": "0.75556266", "text": "public function countAll(){\r\n\r\n $query = \"SELECT id_tra FROM \" . $this->table_name . \"\";\r\n\r\n $stmt = $this->conn->prepare( $query );\r\n $stmt->execute();\r\n\r\n $num = $stmt->rowCount();\r\n\r\n return $num;\r\n }", "title": "" }, { "docid": "83d70d2678a56f6e9368859e647f086a", "score": "0.75549775", "text": "public function countAll(){\r\n\t\t$query = \"SELECT id FROM \" . $this->table_name . \"\";\r\n\t\t$res = $this->conn->query( $query );\r\n\t\t$num = $res->num_rows;\r\n\t\treturn $num;\r\n\t}", "title": "" }, { "docid": "01b757da5aab743fe3fa52f0d60b45e8", "score": "0.75381404", "text": "function countOfAll($table){\n\t\treturn $this->queryUniqueValue(\"SELECT COUNT(*) FROM `$table`\");\n }", "title": "" }, { "docid": "52502c006030ddea8f4f2082b61ea225", "score": "0.74885494", "text": "public function count($query);", "title": "" }, { "docid": "26dad9ce1d10cf236edf40288e19cc57", "score": "0.7483749", "text": "function count_total_data(){\n\n\t\t\t$query = (new database)->query($this->query_command());\t\n\n\t\t\treturn $query->rowCount();\n\t\t}", "title": "" }, { "docid": "337ec639674f280a8f69c55ecb1245a6", "score": "0.74814457", "text": "public function countAll()\n {\n $connection = $this->getConnection();\n $select = $connection->select();\n $select->from($this->getEntityTable(), 'COUNT(*)');\n $result = (int)$connection->fetchOne($select);\n return $result;\n }", "title": "" }, { "docid": "bcd9f7ff46d3c437cd161f7178b01186", "score": "0.7443426", "text": "public function countAll(){\n \n $query = \"SELECT cID FROM \" . $this->table_name . \"\";\n \n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n \n $num = $stmt->rowCount();\n \n return $num;\n }", "title": "" }, { "docid": "9cb555887e570184ae6d821097e68d0f", "score": "0.7437542", "text": "public function countAll() : int {\n return $this->db->query(\"SELECT count(*)\n FROM products\")->fetchColumn();\n }", "title": "" }, { "docid": "ad84490ec30f61928e48794fda816d67", "score": "0.74244636", "text": "public function countAll()\n {\n return (int) $this->database->fetchColumn('SELECT COUNT(*) FROM '.$this->table);\n }", "title": "" }, { "docid": "563641999db9dcc5166a41ad2a52a92d", "score": "0.7418093", "text": "public function getcount()\n {\n return $this->db->count_all($this->table);\n }", "title": "" }, { "docid": "f824f0e14cb84834e339de8573a89d68", "score": "0.7402082", "text": "public function count()\n {\n return $this->db->count_all($this->table);\n }", "title": "" }, { "docid": "9f1206fad2f29ae78fb0fc2dbc910b7c", "score": "0.73897606", "text": "public function countAll()\n {\n\n $query = \"SELECT id FROM \" . $this->table_name . \"\";\n\n $stmt = $this->conn->prepare($query);\n $stmt->execute();\n\n $num = $stmt->rowCount();\n\n return $num;\n }", "title": "" }, { "docid": "ce5538a42a700b532f9f22c95553a0c6", "score": "0.7382947", "text": "public function testCountAll()\n\t{\n\t\t$query = self::$db->countAll('test');\n\n\t\t$this->assertTrue(is_numeric($query));\n\t}", "title": "" }, { "docid": "b19a96d555f170e9a7e9f0ba02135057", "score": "0.7358076", "text": "public function getTotalCount();", "title": "" }, { "docid": "283abf4aee0658bf49ba2540446588a6", "score": "0.73571444", "text": "function count_all_data(){\n\n $this->db->from($this->table);\n $this->db->join('users', 'users.id = franchise.updated_by');\n\n return $this->db->count_all_results();\n\n }", "title": "" }, { "docid": "31a4cda24eb9de46cd57fcacb05dde55", "score": "0.7319947", "text": "public function count() {\n return $this->db->count_all_results($this->table);\n }", "title": "" }, { "docid": "dc3d76cdb4569d4ec00401108e6d3c16", "score": "0.7313718", "text": "public function hitung_data()\n\t\t{\n\t\t\t$this->db->from('tbl_service');\n\t\t\treturn $this->db->count_all_results();\n\t\t}", "title": "" }, { "docid": "f329419f55a107fc751dfcaa57bbb5eb", "score": "0.73092026", "text": "public function countAll()\n {\n return isset($this->data['total_count']) ? $this->data['total_count'] : 0;\n }", "title": "" }, { "docid": "192f6a7361ee4b344e0fdb585482fe14", "score": "0.7308126", "text": "function count( ) {\n $this->initialize();\n $sql = $this->all( );\n $dao = CRM_Core_DAO::executeQuery($sql, CRM_Core_DAO::$_nullArray);\n return $dao->N;\n }", "title": "" }, { "docid": "1bc5eecb3809be1d7c1dd25ca91db858", "score": "0.72957706", "text": "public function countAction()\n {\n $query = $this->params('query');\n $query = $this->canonizeQuery($query);\n $where = $this->canonizeCondition($query);\n $count = $this->model($this->modelName)->count($where);\n $response = [\n 'status' => 1,\n 'data' => $count,\n ];\n\n return $response;\n }", "title": "" }, { "docid": "95c11499dd8be92fe7a15c1192a79a55", "score": "0.72861403", "text": "public function countAll() {\r\n\t\t$count = $this->getRepository()->countAll();\r\n\t\treturn $count;\r\n\t}", "title": "" }, { "docid": "e1471b7e1fa9e65da31da00cc263cb69", "score": "0.72816885", "text": "public function count ();", "title": "" }, { "docid": "f0ad704a47ee44bd172c681e1eeed8cf", "score": "0.72617346", "text": "function countAll(){\r\n $query = \"SELECT id FROM \" . $this->table_name . \"\";\r\n\r\n $stmt = $this->connection->prepare($query);\r\n $stmt->execute();\r\n\r\n $num = $stmt->rowCount();\r\n\r\n return $num;\r\n }", "title": "" }, { "docid": "ad1917c5cc691160c892c541bf1c4fe1", "score": "0.7252412", "text": "public function count()\n {\n return $this->db->count_all_results($this->table);\n }", "title": "" }, { "docid": "2096b726781aa21807a3620a9df0dee9", "score": "0.7250736", "text": "public function count() {}", "title": "" }, { "docid": "2096b726781aa21807a3620a9df0dee9", "score": "0.7250736", "text": "public function count() {}", "title": "" }, { "docid": "468408f5e6834c1fbe9e60a531c65f50", "score": "0.7241728", "text": "public function count_all(){\n \n $query = \"SELECT Tax_ID FROM \" . $this->table_name . \"\";\n \n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n \n $num = $stmt->rowCount();\n \n return $num;\n }", "title": "" }, { "docid": "f22ecd670d797f8f424fc65a63a9a89a", "score": "0.7241226", "text": "public function count($query = '');", "title": "" }, { "docid": "170185cedaddcb230c295acfa1458861", "score": "0.7233153", "text": "abstract public function count();", "title": "" }, { "docid": "170185cedaddcb230c295acfa1458861", "score": "0.7233153", "text": "abstract public function count();", "title": "" }, { "docid": "f4da73536a7b19b0abdbf794d4724324", "score": "0.7231413", "text": "public function countAll(){\n \n $query = \"SELECT productid FROM \" . $this->table_name . \"\";\n \n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n \n $num = $stmt->rowCount();\n \n return $num;\n }", "title": "" }, { "docid": "041e877ae8f731717e4141e0d5ceb700", "score": "0.7222134", "text": "public function getCount(){}", "title": "" }, { "docid": "7eb18a4899749fe24a8c5ace4443c89b", "score": "0.72113687", "text": "function AllCounts($table){\n $db = new Database();\n $db->query(\"select * from {$table}\");\n $db->execute();\n $count = $db->rowCount();\n return $count;\n}", "title": "" }, { "docid": "b4b4cf9fd61e08451e8bf78a4ef818ef", "score": "0.71953243", "text": "public static function getAllCount()\n\t{\n\t\treturn (int) FrontendModel::getContainer()->get('database')->getVar(\n\t\t\t'SELECT COUNT(i.id) AS count\n\t\t\t FROM events AS i'\n\t\t);\n\t}", "title": "" }, { "docid": "75d8001f9c0eb108af668c96e4156379", "score": "0.7194411", "text": "public function getCount();", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "1d1287b0a3daa15e42bd678cd9dc006a", "score": "0.7185508", "text": "public function count () {}", "title": "" }, { "docid": "f265b7f4ddc8fb153dbf3acabad8fc23", "score": "0.7185018", "text": "public function count_total(){\n global $obj;\n if(is_array($this->query)){\n $result_obj = $obj->select($this->query[0],$this->query[1],$this->query[2], $this->query[3],null,true);\n }else{\n $result_obj = new MySql_Data_Object($obj->exec($this->query), $obj->connection);\n }\n \n \n $this->total_data = $result_obj->total_data();\n }", "title": "" }, { "docid": "57b63818f7afbef9f02270423cab49ea", "score": "0.7183425", "text": "function count_all_data_active() {\n\n $this->db->where('status', 1);\n $this->db->from($this->table);\n\n return $this->db->count_all_results();\n\n }", "title": "" }, { "docid": "4e05d69455f5b1895f77b88a894df6c9", "score": "0.71809095", "text": "public static function count_all() {\n global $database;\n\n // first get table\n $sql = \"SELECT COUNT(*) FROM \" . static::$db_table;\n\n $result_set = $database->query($sql);\n\n $row = mysqli_fetch_array($result_set);\n \n // return first element of array -> id \n return array_shift($row);\n }", "title": "" }, { "docid": "5c5d1e0b69a25cb6bcba81fc74b7c685", "score": "0.7174216", "text": "public function countAll()\n {\n $row = $this->createQueryBuilder()\n ->select('count(id) as total')\n ->from($this->getTableName(), 'r')\n ->execute()\n ->fetch($this->getFetchMode());\n\n return $row['total'];\n }", "title": "" }, { "docid": "3d2530c1df235ccedef4407172e8d25b", "score": "0.7169739", "text": "public function record_count() {\r\n return $this->db->count_all(\"tipomaquina\");\r\n }", "title": "" }, { "docid": "a07e22ccfa1962429517c0c5af633c64", "score": "0.71665484", "text": "public function count(){\n\t\t// Get data\n\t\t$this->_initCursor();\n\t\treturn count(iterator_to_array($this->cursor));\n\t}", "title": "" }, { "docid": "987c0ec46fc2291a69cb13b972a5a001", "score": "0.71659666", "text": "public function CountAll() {\n $result = 0; // null result\n try{\n if($this->_Ready){\n \n // TODO: work starts here\n \n }else{\n $this->_Log(array(\n 'method' => 'CountAll'\n , 'severity' => 'warning'\n , 'text' => 'DAOGeneric is not yet configured.'\n ));\n }\n } catch (Exception $oException) {\n $this->_Log(array(\n 'method' => 'CountAll'\n , 'severity' => 'error'\n , 'text' => '' . $oException\n ));\n }\n return $result;\n }", "title": "" }, { "docid": "f93bc7617e148f2057c421afed63d3a5", "score": "0.7161395", "text": "public static function count() {\n return self::connection()->count(static::$table_name);\n }", "title": "" }, { "docid": "a3a8206d06d082020074348eca1123a9", "score": "0.71605587", "text": "public abstract function count();", "title": "" }, { "docid": "8c8fc72a731fecacba8c0732a6a44c58", "score": "0.71605235", "text": "public function getCountAllPeople() {\n\t$persons = $this->getAdapter();\n\t$select = $persons->select()\n ->from($this->_name,array('total' => 'COUNT(*)'));\n return\t$persons->fetchAll($select);\n\t}", "title": "" }, { "docid": "133f54c5d3e1cc3047457e3aef180dd0", "score": "0.7156653", "text": "public function count() {\n $this->select(\"count(*) AS CNT\");\n $map_functions = $this->getMapFunction();\n array_unshift($map_functions, function ($row) {\n return $row['CNT'];\n });\n $this->setMapFunction($map_functions);\n $result = $this->get();\n return array_pop($result);\n }", "title": "" }, { "docid": "4eb08d1d8e09146ee6b3823fb7a479b1", "score": "0.7133588", "text": "public static function getCountOfAllDocument(){\n $db = Db::getConnection();\n \n $sql = 'select count(id) as count from docs';\n $result = $db->query($sql);\n \n return $result->fetch_assoc()['count'];\n }", "title": "" }, { "docid": "c5bda8d177a2b6af052654bbbdff43ac", "score": "0.7124257", "text": "function count_all()\n {\n // new count\n $this->stmt = $this->db->count('listings');\n \n // reset limits\n $this->limit(-1)->page(-1);\n \n // get the row\n $count = $this->get_all();\n \n // return count\n return (int)$count[0]['id'];\n }", "title": "" }, { "docid": "42be5a4fd5779ba57bc36b59514ff3de", "score": "0.7124189", "text": "public function count() {\n\t\t$where = $this->model->get_where()?' WHERE '.$this->model->get_where():'';\n\t\t$sql = $this->query;\n\t\tif (stripos($sql, 'GROUP BY')) {\n\t\t\t$sql = str_ireplace('GROUP BY', ' GROUP BY id, ', $sql);\n\t\t} else {\n\t\t\tif (stripos($sql, 'ORDER BY')) {\n\t\t\t\t$sql = str_ireplace('ORDER BY', ' GROUP BY id ORDER BY', $sql);\n\t\t\t} else {\n\t\t\t\t$sql .= ' GROUP BY id';\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\t$unique_result = $this->db->query($sql);\n\t\treturn count($unique_result);\n\t}", "title": "" }, { "docid": "c0d3ecc89f32d7b51438c1de17a24e70", "score": "0.7120737", "text": "public static function count() {\n return (new static())->query()->count();\n }", "title": "" }, { "docid": "48f8fd0cf846b43b3019d7744ccfc90e", "score": "0.7098547", "text": "public function countFamille(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"count\"));\n\t\t\t\t\t }", "title": "" }, { "docid": "17152e023d1f2b5706bb084e97be554a", "score": "0.70941824", "text": "public function countAllUsers(){\n $sql = \"SELECT * FROM users\";\n $result = $this->db->count($sql);\n return $result;\n\t}", "title": "" }, { "docid": "9589bf4b383fa9f043d2e210bb20ad59", "score": "0.70850956", "text": "public function count()\n {\n return $this->count($this->data);\n }", "title": "" }, { "docid": "a5097682e5396cfe134aa219c4f98b5c", "score": "0.70809114", "text": "public function count_all($table = '') {\n if (empty($table))\n $table = static::TABLE;\n return self::db()->count_all($table);\n }", "title": "" }, { "docid": "a17ca516529db9f3e40536b5acc0639c", "score": "0.7078323", "text": "public static function count_all() {\n\n $class_name = get_called_class();\n $dummy = new $class_name();\n $mapper = new $dummy->_mapper_class;\n return (int) $mapper->count_all();\n }", "title": "" } ]
076d93ae168748e96d3dd43859b12ec1
Register and load the widget
[ { "docid": "11dff2ea7608cccc215d55f6b4f17641", "score": "0.75040185", "text": "function lscu_load_widget() {\n\tregister_widget( 'lscu_connect_widget' );\n}", "title": "" } ]
[ { "docid": "a067162e58f1860866efb1b8ad8a1e98", "score": "0.7779709", "text": "function ipr_load_widget() {\n register_widget( 'IPR_Widget' );\n}", "title": "" }, { "docid": "45d9942decf405ab780e68b9b0e45c8a", "score": "0.7733246", "text": "function wpxt_load_widget() {\n\tregister_widget( 'wpxt_widget' );\n}", "title": "" }, { "docid": "d89cfe5e1f793cb4811bcfa89fc7b365", "score": "0.7458989", "text": "function aboutme_load_widget() {\n\n register_widget( __NAMESPACE__ . '\\\\aboutme_widget' );\n\n}", "title": "" }, { "docid": "74f1c7dd524e737e3e5a51bdeec23263", "score": "0.73559296", "text": "function register_Cl_Widget() {\n register_widget( 'Cl_Widget' );\n}", "title": "" }, { "docid": "6c0177df528521cf96b40dd312adf0ea", "score": "0.7274705", "text": "function TodaysWord_load_widget() {\n\t\tregister_widget( 'TodaysWord_widget' );\n\t}", "title": "" }, { "docid": "28d2ca57f2293986ca0aaf64f208e158", "score": "0.7261373", "text": "function memorycoin_load_widget()\n{\n register_widget('memorycoin_widget');\n}", "title": "" }, { "docid": "b30598db8faa469b56363d4e29d491f6", "score": "0.7231115", "text": "function abs_load_widget() {\n\tregister_widget( 'wpxtts_widget' );\n}", "title": "" }, { "docid": "0800dabf09112732d4dd33bc1c316a4d", "score": "0.7222229", "text": "function socialmedia_load_widget() {\n\n register_widget( __NAMESPACE__ . '\\\\socialmedia_widget' );\n\n}", "title": "" }, { "docid": "a2c7e8d79a2426652dee1f0aea02b67a", "score": "0.7192807", "text": "function mts_load_widget() {\n\n\tregister_widget( 'Social_Profile_Icons_Widget' );\n\n}", "title": "" }, { "docid": "20d56eaa8ad08f0cabd11d145178c475", "score": "0.71761197", "text": "function wpb_load_widget() {\n register_widget( 'wpb_widget' );\n}", "title": "" }, { "docid": "1718592f759ec31795350420468efd9e", "score": "0.7173053", "text": "function WCRWidgetsInit() {\n register_widget('LiveLifeWellWidget');\n}", "title": "" }, { "docid": "5b922a35f6b26e8a39ed1d2e0da039ed", "score": "0.7160979", "text": "function wpb_load_widget() {\n register_widget( 'wpb_widget' );\n}", "title": "" }, { "docid": "ba7dbdefb6780ebccd5f2d38ab052c45", "score": "0.7155724", "text": "function register_widgets() {\n register_widget( 'widget_bymattlee_widget' );\n }", "title": "" }, { "docid": "a1e9ca7921b98691d79c7be0f84cd409", "score": "0.71540046", "text": "function calendar_load_widgets() {\n\tregister_widget( 'calendar_Widget' );\n}", "title": "" }, { "docid": "148ce366a574e6b05259dc67f27d46e1", "score": "0.7122328", "text": "function wpb_load_widget() {\n\n register_widget( 'wpb_widget' );\n\n}", "title": "" }, { "docid": "65a6cd08f0a10e13a9d85e00d3e5da6a", "score": "0.7099823", "text": "function wpb_load_widget() {\n\tregister_widget( 'CBD_socialwidget' );\n}", "title": "" }, { "docid": "3ad75b5f456e75a6ac60a09a48efb869", "score": "0.70960027", "text": "function kwer_load_widgets() {\n\t\n\t// Call-to-action button link\n register_widget( 'Kwer_Widget_CTA_Btn' );\n register_widget( 'Kwer_Widget_Hours' );\n register_widget( 'Kwer_Widget_Text' );\n \n}", "title": "" }, { "docid": "3ef9549b076a1da55688df05d5dc73da", "score": "0.709429", "text": "function register_foo_widget() {\n register_widget( 'Foo_Widget' );\n}", "title": "" }, { "docid": "449f88fa5060e80000cd1463a36caed5", "score": "0.70353866", "text": "function gk_load_steemit_info_widget() {\r\n register_widget( 'steemit_info_widget' );\r\n}", "title": "" }, { "docid": "6d569784bc347ed25c28c1a9c7971ff5", "score": "0.69732493", "text": "function boj_widgetexample_register_widgets() {\r\n register_widget( 'boj_widgetexample_widget_my_info' );\r\n}", "title": "" }, { "docid": "03f2f9d9b5aaa1a56df708148fbead8d", "score": "0.6951047", "text": "public function register_widget() {\n\t\t\t$dir = opendir($this->plugindir . '/widgets/');\n\t\t\tif ($dir) {\n\t\t\t\t$widgets = array();\n\t\t\t\twhile (($entry = readdir($dir)) !== false) {\n\t\t\t\t\tif (strrchr($entry, '.') === '.php') {\n\t\t\t\t\t\t$php_classes = get_declared_classes();\n\t\t\t\t\t\trequire_once $this->plugindir . '/widgets/' . $entry;\n\t\t\t\t\t\t$class = array_diff(get_declared_classes(), $php_classes);\t\t\t\t\t\t\n\t\t\t\t\t\tif(!count($class))\t\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t$class = array_shift($class);\n\t\t\t\t\t\tregister_widget($class);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "147965e318a3e9a8562b5cec11299d45", "score": "0.69499445", "text": "public function widgets() {\n\n\t\t// To do: add widgets.\n\t\tregister_widget( 'OMAPI_Widget' );\n\n\t}", "title": "" }, { "docid": "11c227f42aff802cafe3cbcff5c0d0e3", "score": "0.69485855", "text": "function register_widget()\r\n {\r\n register_widget('Urb_It_Postcode_Validator_Widget');\r\n }", "title": "" }, { "docid": "3a8f86573ae63b72d37da9d2f06443b9", "score": "0.6931344", "text": "function register_widget(){\n\t //register new widget in Available widgets\n\t register_widget( 'AWP_Testimonials_Widget' );\n\t}", "title": "" }, { "docid": "076b31e7dd82b591b8a7478f3b75a7ff", "score": "0.69308066", "text": "function yummy_widgets(){\n register_widget( 'yummyauthorprofile');\n }", "title": "" }, { "docid": "21902356c69e2f8b20b005bd34b17973", "score": "0.69181", "text": "function wpb_load_widget() {\n\tregister_widget( 'social_widget' );\n}", "title": "" }, { "docid": "508993aeb489583d5ead1c697eb428d4", "score": "0.6915146", "text": "function wpb_load_widget() {\n register_widget( 'widget_wp_api' );\n}", "title": "" }, { "docid": "f724c098ed86d748650e18ef487c62a7", "score": "0.68819994", "text": "public function widgets_area() {\n $this->widgets_register();\n }", "title": "" }, { "docid": "8f157ba2a7b3318a2e633f1d3cc2b175", "score": "0.68810326", "text": "function register_foo_widget() {\n register_widget( 'Custom_Text_Widget' );\n}", "title": "" }, { "docid": "0b58096a93ac3bc8591f861715c9cd5e", "score": "0.6879399", "text": "function smoke_load_widgets() {\n\tregister_widget( 'smoke_video_widget' );\n register_widget( 'smoke_subscribe_widget' );\n register_widget( 'smoke_popular_widget' );\n register_widget( 'smoke_audio_widget' );\n register_widget( 'smoke_tweets_widget' );\n register_widget( 'smoke_jobs_widget' );\n}", "title": "" }, { "docid": "4d2b4438c544591725ebc5fb01147b3e", "score": "0.6877816", "text": "function cr_load_widget() {\n\tregister_widget( 'Comments_Rating_Widget' );\n}", "title": "" }, { "docid": "c23a05d1ae1ed49c4f130b93f237a536", "score": "0.68644387", "text": "function xtr_widgets_init() {\n\trequire_once( 'widget-xpert-tax-rss.php' );\n\trequire_once( 'widget-selectable-tax-rss.php' );\n\tregister_widget( 'Xpert_RSS' );\n\tregister_widget( 'Selectable_RSS' );\n}", "title": "" }, { "docid": "3a6d9facde8555f6fee225ac538a2e69", "score": "0.68302244", "text": "function comboek_init() {\r\n register_sidebar_widget(__('Computerboek boeken'), 'widget_comboek'); \r\n register_widget_control( 'Computerboek boeken', 'comboek_control', 200, 200 );\r\n }", "title": "" }, { "docid": "076229d68084d154a664885081b8fe69", "score": "0.68259966", "text": "function vantage_register_widgets(){\n\tregister_widget('Vantage_Social_Media_Widget');\n\tregister_widget('Vantage_CircleIcon_Widget');\n\tregister_widget('Vantage_Headline_Widget');\n}", "title": "" }, { "docid": "e6582867be422a6f0792b02f75e74c70", "score": "0.6790245", "text": "function load_widgets() {\n // register_widget('ThemeWidgetGallery');\n}", "title": "" }, { "docid": "a8f907982dc4884c699dcd50697f2929", "score": "0.6760904", "text": "function register_getabed_widget() {\r\n register_widget( 'GetABed' );\r\n}", "title": "" }, { "docid": "edee08dabc2ec2beabff97fd0886079d", "score": "0.6753096", "text": "function fp_register_widget() {\n\t\tregister_widget( 'ICReviewsSliderWidget' );\n\t}", "title": "" }, { "docid": "cbbaf36c4481ece53a94376a710f5411", "score": "0.6706942", "text": "function register_widget() {\n\t\t\twp_register_sidebar_widget( 'yoast_plugin_downloads', __( 'Plugin Downloads - by Yoast', 'yoast_plugin_downloads' ), array(&$this, 'widget') );\n\t\t}", "title": "" }, { "docid": "db70f6e2c7a938c51a0a0b4ebc885327", "score": "0.6706521", "text": "public function widget()\n {\n /* $modulo = Registry::get('Request')->getModulo();\n $widget = Registry::get('application')->layout;\n \n // Carga Widget Principales si se configuro de ese modo.\n if ($widget->widget) {\n $widget->dir = 'default';\n $this->_loadTemplateWidget(DIR_BASE . 'layout' . DS . $widget->dir . DS . 'phtml' . DS . 'widget.phtml');\n }\n $this->_loadTemplateWidget(DIR_BASE . DIR_MODULO . $modulo . DS . 'layout' . DS . 'phtml' . DS . 'widget.phtml');\n */\n // Levanto los Widgets Dinamicos\n if (!$this->_render) {\n foreach ($this->_widgetDinamicos as $widget) {\n $this->loadWidget($widget['modulo'], $widget['controlador'],$widget['accion']); \n } \n }\n }", "title": "" }, { "docid": "3f39de0cce237eaf59942fc9966341cd", "score": "0.6703784", "text": "function wpb_load_widget() {\r\r\n register_widget( 'custom_social_widget' );\r\r\n}", "title": "" }, { "docid": "22ecd1e06b2036d9f06e9c548b911ef6", "score": "0.6676868", "text": "function tc_widgets_init()\n\t{\n\t\tregister_widget('Widget_TC_Recent_Tweets');\n\t\tregister_widget('Widget_TC_Custom_Archives');\n\t\tregister_widget('Widget_TC_Custom_Calendar');\n\t\tregister_widget('Widget_TC_Featured_Post');\n\t\t/*\n\t\tregister_widget('Widget_Custom_Recent_Posts');\n\t\tregister_widget('Widget_Menu');\n\t\tregister_widget('Widget_Search');\n\t\tregister_widget('Widget_Newsletter');\n\t\tregister_widget('Widget_Social_Icons');\n\t\tregister_widget('Widget_Social_Badges');\n\t\tregister_widget('Widget_Popular_Posts');\n\t\tregister_widget('Widget_Sticky_Posts');\n\t\tregister_widget('Widget_Featured_Post');\n\t\t*/\n\t}", "title": "" }, { "docid": "735db0fb91c5596bae03c1fcab215518", "score": "0.6665133", "text": "public function create_widget() {\n $widget = new KP_Widget_Shell( $this->label, $this->machine_name, $this->description );\n \n register_widget( $widget );\n }", "title": "" }, { "docid": "674a0dbeed4a8724dc319f3f1932f33d", "score": "0.6636038", "text": "function avl_register_widgets() {\n\tregister_widget('AVL_Filter_Post_Taxonomy_Widget');\n\tregister_widget('AVL_Post_Services_Widget');\n\tregister_widget('AVL_Archives_Widget');\n}", "title": "" }, { "docid": "b83ad34d640f9383138c668051641afb", "score": "0.6633524", "text": "function events_listing_widget_load_widgets() {\n\tregister_widget( 'events_listing_widget' );\n}", "title": "" }, { "docid": "d5d5696b7196f52fd6b2b8ce176669aa", "score": "0.6606015", "text": "function register_widget() {\n\t\tregister_widget( 'ACM_Ad_Zones' );\n\t}", "title": "" }, { "docid": "bebfd560c5f24aac19869e65cfa8f067", "score": "0.6589897", "text": "static function register(){\n\t\trequire_once __DIR__ . '/includes/class-sweet-widget-post-type-widget.php';\n\n\t\t$plugin = new self();\n\n\t\t$plugin->register_sw_widget_post_type();\n\n\t\tadd_action( 'widgets_init', array( $plugin, 'widgets_init' ) );\n\t}", "title": "" }, { "docid": "c78af4103f7972d33bbbd4a2f15e890e", "score": "0.6585233", "text": "function registerWidget()\r\n\t\t{\r\n\t\t\tregister_sidebar_widget('Autoresponder1', array('Autoresponder1', 'printWidgetContent'));\r\n\t\t}", "title": "" }, { "docid": "50a099d24e76cc0bcabefb3aab682e11", "score": "0.6567884", "text": "public function register()\n {\n add_action( 'widgets_init', array( $this, 'widgets_init' ) );\n }", "title": "" }, { "docid": "e6c0fa0ed9cbb1ca8755f72c9cdedfcd", "score": "0.65475726", "text": "function aletheme_featured_video_load_widget() {\n register_widget( 'Aletheme_Feautured_Video_Widget' );\n}", "title": "" }, { "docid": "1d806c09e58a161c0448dd54b3f61ee8", "score": "0.65385616", "text": "function advanced_youtube_widget_WidgetInit() {\r\n register_sidebar_widget(array('Advanced YouTube Widget', 'widgets'), 'advanced_youtube_widget_WidgetShow');\r\n register_widget_control(array('Advanced YouTube Widget', 'widgets'), 'advanced_youtube_widget_WidgetForm');\r\n \r\n}", "title": "" }, { "docid": "a57a11d6090478e3d879e5b4c982c5bb", "score": "0.65303916", "text": "function mixtape_qodef_load_widget_class(){\n\t\tinclude_once QODE_FRAMEWORK_MODULES_ROOT_DIR.'/widgets/lib/widget-class.php';\n\t}", "title": "" }, { "docid": "5b44c4d013bf214f97b5be1f73e0633a", "score": "0.6527475", "text": "public function register_widgets() {\n\t\t// Its is now safe to include Widgets files.\n\t\t$this->include_widgets_files();\n\n\t\t// Register Widgets.\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\ALMElementorPosts() );\n\t}", "title": "" }, { "docid": "176e32bb8c3e5daa79d710968788ecb4", "score": "0.65205455", "text": "function wpb_load_widget() {\n register_widget( 'mwpress_comment_widget' );\n\t unregister_widget('WP_Widget_Recent_Comments');\n}", "title": "" }, { "docid": "c3b17027d11e784fdbc52d2205ce0ba4", "score": "0.650715", "text": "function medigroup_mikado_load_widget_class() {\n\t\tinclude_once MIKADO_FRAMEWORK_MODULES_ROOT_DIR.'/widgets/lib/widget-class.php';\n\t}", "title": "" }, { "docid": "0f86941ab29881c2c05354726c389be2", "score": "0.650274", "text": "function WDS_Widget_Boilerplate() {\n\tregister_widget( 'WDS_Widget_Boilerplate' );\n}", "title": "" }, { "docid": "84724817b16cb0886d9b0130c0935680", "score": "0.64991105", "text": "protected function init()\n {\n // $this->addWidget('Example Widget Name', $method = 'myExampleWidget');\n // $this->addWidget('Example Widget 2', $method = 'myExampleWidget', $params = array('myparam' => 'myvalue'));\n }", "title": "" }, { "docid": "b5bacab0e43487bd0a101d2c37b18660", "score": "0.64942616", "text": "public function registerControlsUI(){\n \n\t}", "title": "" }, { "docid": "3957b31511be6d1a9f9bc53395cbfe38", "score": "0.64854276", "text": "static public function register() {\n\t\tstatic $registered = false;\n\n\t\t// only register once!\n\t\tif ( $registered ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// who's calling?\n\t\t$class_name = get_called_class();\n\n\t\tadd_action( 'widgets_init', function() use ( $class_name ) {\n\t\t\tregister_widget( $class_name );\n\t\t} );\n\t\tadd_action( 'admin_footer', [ __CLASS__, 'forms_js' ] );\n\n\t\t$registered = true;\n\t}", "title": "" }, { "docid": "4d351207855cfb358370062e7e422dce", "score": "0.64785314", "text": "public static function load_custom_widgets()\n\t{\n\t\trequire( dirname( __FILE__ ) . '/default-widgets.php' );\n\t}", "title": "" }, { "docid": "e7e8f1ad08226fa8ca83d87980f8a114", "score": "0.6449279", "text": "public function init_widgets()\n {\n require_once __DIR__ . '/widgets/sipsy-categories-widget.php';\n require_once __DIR__ . '/widgets/sipsy-newsletter-signup-widget.php';\n require_once __DIR__ . '/widgets/sipsy-compact-product-display-widget.php';\n require_once __DIR__ . '/widgets/sipsy-reviews-widget.php';\n require_once __DIR__ . '/widgets/sipsy-hero-banner-widget.php';\n\n // Register widget with elementor.\n \\Elementor\\Plugin::instance()->widgets_manager->register_widget_type(new Sipsy_Categories_Widget());\n \\Elementor\\Plugin::instance()->widgets_manager->register_widget_type(new Sipsy_Newsletter_Signup_Widget());\n \\Elementor\\Plugin::instance()->widgets_manager->register_widget_type(new Sipsy_Compact_Product_Display_Widget());\n \\Elementor\\Plugin::instance()->widgets_manager->register_widget_type(new Sipsy_Reviews_Widget());\n \\Elementor\\Plugin::instance()->widgets_manager->register_widget_type(new Sipsy_Hero_Banner_Widget());\n }", "title": "" }, { "docid": "81595b5411f7dbe43068a211f999ed2a", "score": "0.6438864", "text": "function dpe_baseline_widgets_init() {\n\t//register_widget( 'dpe_events_meta_widget' );\n}", "title": "" }, { "docid": "f17ac92a420b6f53adcce977afa4f7df", "score": "0.6425321", "text": "function ewf_load_widgets(){\n//\t\tregister_widget( 'ewf_widget_contact_info' \t);\n//\t\tregister_widget( 'ewf_widget_navigation' \t);\n//\t\tregister_widget( 'ewf_widget_latest_posts' \t);\n//\t\tregister_widget( 'ewf_widget_contact_forms' );\n//\t\tregister_widget( 'ewf_widget_social_media' \t);\n//\t\tregister_widget( 'ewf_widget_flickr' \t\t);\n//\t\tregister_widget( 'ewf_widget_calltoaction' \t);\n//\n\t}", "title": "" }, { "docid": "9b54cfc428993a228dfe07bac531da6b", "score": "0.64219147", "text": "public static function action_widgets_init() {\n\n\t\t/* Register custom sidebars. */\n\t\tregister_sidebar( [\n\t\t\t'name' => __( 'Social Links', 'sage' ),\n\t\t\t'id' => 'sidebar-social-links',\n\t\t\t'before_widget' => '<ul class=\"widget %1$s %2$s\">',\n\t\t\t'after_widget' => '</ul>',\n\t\t\t'before_title' => '<h3>',\n\t\t\t'after_title' => '</h3>',\n\t\t] );\n\n\t\t/* Register custom widgets. */\n\t\tregister_widget( __NAMESPACE__ . '\\\\Widget_Social_Link' );\n\t}", "title": "" }, { "docid": "0aa55674bd116078cd60ac437d51ca8b", "score": "0.64148825", "text": "protected function loadWidgets()\n {\n $widgets_folder = apply_filters('potter_widgets_folder', $this->widgetsFolder);\n\n $pattern = $this->themeDIR . $widgets_folder . \"/*.php\";\n\n foreach (glob($pattern) as $file): // Load File\n require_once($file);\n\n $widget = basename($file, '.php');\n\n // Register\n if (class_exists($widget)):\n $this->widgets->push($widget);\n endif;\n endforeach;\n }", "title": "" }, { "docid": "22fef01c9d218183a3c0457311149591", "score": "0.64031136", "text": "function wpds_clock_load_widget() {\n register_widget( 'wpds_clock_widget' );\n}", "title": "" }, { "docid": "aa774a0832ddb040aff29208abb6c366", "score": "0.63945985", "text": "function st_widgets_init() {\n \n}", "title": "" }, { "docid": "835395da4ecfd8c3993c7063df972193", "score": "0.6365603", "text": "function casino2_widgets_init() {\n /* Pinegrow generated Register Sidebars Begin */\n\n /* Pinegrow generated Register Sidebars End */\n}", "title": "" }, { "docid": "1dedd8c16f0dc2374f40a30eeb846276", "score": "0.63630515", "text": "public static function init(){\n \n add_action('wp_enqueue_scripts', array(get_class(), 'registerScript'));\n add_shortcode(self::defaultShortcodeName, array(get_class(), 'shortcode'));\n add_action('widgets_init', array(get_class(), 'registerWidget'));\n \n }", "title": "" }, { "docid": "c44f8f8baa2e02164359bd67adaeeaf4", "score": "0.63606966", "text": "function twitter_widget() {\r\n\tregister_widget( 'Twitter_widget' );\r\n}", "title": "" }, { "docid": "19b101d3fb39421a89a313c810e84c01", "score": "0.6340506", "text": "public static function widgetsInit() {\n\n\t\t$clayWidget = new Clay_Widget();\n\t\t$clayWidget->register( 'right_sidebar', 'Right Sidebar' );\n\n\t\t$clayWidget->register( 'home1', 'Home 1' );\n\t\t$clayWidget->register( 'home2', 'Home 2' );\n\t\t$clayWidget->register( 'home3', 'Home 3' );\n\n\t\t// project sidebar\n\t\t$clayWidget->register( 'project_sidebar', 'Project Sidebar' );\n\n\t}", "title": "" }, { "docid": "4f80937ad9ea0add4166e232e0d2ca93", "score": "0.6331627", "text": "function register_beevenom_link_widget() {\n register_widget( 'beevenom_link_widget' );\n}", "title": "" }, { "docid": "d5b5c53064ad74d64006b06d1cf8cc08", "score": "0.6330011", "text": "function gz_load_widget_social() {\n\tregister_widget( 'gz_widget_social' );\n}", "title": "" }, { "docid": "7e91ba7d6bb133e370ea6539ab9e5859", "score": "0.63282615", "text": "function mbtng_widget_init() {\r\n\twp_register_sidebar_widget('mbtng_output_search', 'TNG search', 'mbtng_output_search', array('classname' => 'mbtng_output_search', 'description' => 'Displays the TNG search in the sidebar.'));\r\n\twp_register_sidebar_widget('mbtng_output_menu', 'TNG menu', 'mbtng_output_menu', array('classname' => 'mbtng_output_menu', 'description' => 'Displays the TNG menu in the sidebar.'));\r\n}", "title": "" }, { "docid": "d1edad6a12bccb9fdbf009e6ee21f3d9", "score": "0.6326592", "text": "function cp_register_widget(string $widget) {\n add_action('widgets_init', function() use ($widget){\n register_widget($widget);\n });\n}", "title": "" }, { "docid": "54c334ff508f40eaddedc4e3361efbd0", "score": "0.6325103", "text": "function wpb_load_widget_archive() {\n register_widget( 'wpb_load_widget_archive' );\n}", "title": "" }, { "docid": "e141779ce71cd7e80e089fbefbac6060", "score": "0.6324069", "text": "function wpb_load_widget_tags() {\n register_widget( 'wpb_load_widget_tags' );\n}", "title": "" }, { "docid": "271f489e27297e28be612a01a9382100", "score": "0.63235694", "text": "public function registerSunsetProfileWidget()\n {\n register_widget(new \\SUNSET_THEME\\Inc\\Sunset_Profile_Widget); \n }", "title": "" }, { "docid": "61a120cc42dcaf94581e79c04a3d4dd1", "score": "0.6323222", "text": "function mixtape_qodef_load_widgets() {\n\n foreach(glob(QODE_FRAMEWORK_ROOT_DIR.'/modules/widgets/*/load.php') as $widget_load) {\n include_once $widget_load;\n }\n\n include_once QODE_FRAMEWORK_MODULES_ROOT_DIR.'/widgets/lib/widget-loader.php';\n }", "title": "" }, { "docid": "6b8774c3034549ba97d4724cbc0c5872", "score": "0.63191473", "text": "function jt_brands_widget() {\n\tregister_widget( 'jt_brands' );\n}", "title": "" }, { "docid": "c8d7b2fcaf2a0ca9a51cd5ed2907f939", "score": "0.6314084", "text": "abstract protected function get_widget();", "title": "" }, { "docid": "932221e160271ddb672a7202cabddfcb", "score": "0.62929165", "text": "function chandelier_elated_load_widget_class(){\n\t\tinclude_once ELATED_FRAMEWORK_MODULES_ROOT_DIR.'/widgets/lib/widget-class.php';\n\t}", "title": "" }, { "docid": "58a935250021d65d9ff10f1adbd801f7", "score": "0.6279237", "text": "public function register_widgets() {\n\n\t\t$widgets = array(\n\t\t\t'PodsWidgetSingle',\n\t\t\t'PodsWidgetList',\n\t\t\t'PodsWidgetField',\n\t\t\t'PodsWidgetForm',\n\t\t\t'PodsWidgetView',\n\t\t);\n\n\t\tforeach ( $widgets as $widget ) {\n\t\t\tif ( ! file_exists( PODS_DIR . 'classes/widgets/' . $widget . '.php' ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\trequire_once PODS_DIR . 'classes/widgets/' . $widget . '.php';\n\n\t\t\tregister_widget( $widget );\n\t\t}\n\t}", "title": "" }, { "docid": "dfbee7f7b8dbd6535f0bc0c5cd91ccb9", "score": "0.62787735", "text": "function youtube_embed_register_widgets() {\r\n\tregister_widget( 'YouTubeEmbedWidget' );\r\n}", "title": "" }, { "docid": "35d4d8a45cf1ff8ab8a15329bb47522d", "score": "0.6277406", "text": "function onRenderWidget();", "title": "" }, { "docid": "ad00b3687c7106dc84aa129f1dd462d3", "score": "0.6271897", "text": "function twitter_widget() {\r\n\tregister_widget( 'Twitter' );\r\n}", "title": "" }, { "docid": "1a32f66ff407cd24118bdc7fbc6de34d", "score": "0.6260985", "text": "function themename_widgets_init() {\n\n register_sidebar( array(\n\t\t'name' => __( 'Generic Widget', 'themename' ),\n\t\t'id' => 'generic-widget',\n\t\t'description' => '',\n\t\t'before_widget' => '<aside id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</aside>',\n\t\t'before_title' => '<h4 class=\"widget-title\">',\n\t\t'after_title' => '</h4>',\n\t));\n}", "title": "" }, { "docid": "088fed95bf5dd0708e520868bd2937ec", "score": "0.6256571", "text": "function ssn_load_conferences_widget() {\r\n\tregister_widget('SSN_Widget_Conferences');\r\n}", "title": "" }, { "docid": "c16215f518e3ab3258265662009cf374", "score": "0.62455463", "text": "function bk_register_tw_widget() {\n\tregister_widget('bk_Twitter');\n}", "title": "" }, { "docid": "22680f8ff6ffedd5f45ed03d9b8d6cb3", "score": "0.62157935", "text": "public function w3tc_widget_setup() {\n\t\t$screen = get_current_screen();\n\t\tadd_meta_box( 'example', 'example', array( $this, 'widget_content' ),\n\t\t\t$screen, 'normal', 'core' );\n\t}", "title": "" }, { "docid": "8bc9de7b8588317b89603a98fe0bf3aa", "score": "0.6215707", "text": "private function setWidgetManager()\n {\n $this->widgetManager = $this->container->get('pi_app_admin.manager.widget');\n }", "title": "" }, { "docid": "6d814897c5c3654061c1c13bab028c04", "score": "0.6209689", "text": "function adace_register_places_widget() {\n\tregister_widget( 'Adace_Places_Widget' );\n}", "title": "" }, { "docid": "b091d95853e5d36d28cda4d9f4c00c9c", "score": "0.6204566", "text": "function wpb_load_widget_search() {\n register_widget( 'wpb_load_widget_search' );\n}", "title": "" }, { "docid": "9241240dcef959a39ae5e5020d95f126", "score": "0.61981297", "text": "function add_pushpad_widget() {\r\n\tregister_widget( 'Pushpad_Widget' );\r\n}", "title": "" }, { "docid": "a73c57e06c0e34de6aded63a641fc81e", "score": "0.61893296", "text": "function medigroup_mikado_load_widgets() {\n\n\t\tforeach(glob(MIKADO_FRAMEWORK_ROOT_DIR.'/modules/widgets/*/load.php') as $widget_load) {\n\t\t\tinclude_once $widget_load;\n\t\t}\n\n\t\tinclude_once MIKADO_FRAMEWORK_MODULES_ROOT_DIR.'/widgets/lib/widget-loader.php';\n\t}", "title": "" }, { "docid": "d3f3dee41b159496fb9e90912bfed219", "score": "0.61703306", "text": "public function init()\n\t\t{\n\t\t\tif ( ! did_action( 'elementor/loaded' ) ) {\n\t\t\t\tadd_action( 'admin_notices', [ $this, 'admin_notice_missing_main_plugin' ] );\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// Register new widget category\n\t\t\tadd_action( 'elementor/elements/categories_registered', [ $this, 'widget_categories' ] );\n\n\t\t\tadd_action( 'elementor/widgets/widgets_registered', [ $this, 'init_widgets' ] );\n\t\t\t// Register Widget Styles\n\t\t\tadd_action( 'elementor/frontend/after_enqueue_styles', [ $this, 'widget_styles' ] );\n\t\t\t// Register Widget Scripts\n\t\t\tadd_action( 'elementor/frontend/after_register_scripts', [ $this, 'widget_scripts' ] );\n\t\t\t// Register new controls\n\t\t\tadd_action( 'elementor/controls/controls_registered', [ $this, 'widget_new_controls' ] );\n\t\t}", "title": "" }, { "docid": "485ef9c15ed3dc235d905b4dfae90823", "score": "0.61608857", "text": "function register_Zappy_Ads_300x250_Widget() {\n register_widget('Zappy_Ads_300x250_Widget');\n}", "title": "" }, { "docid": "900bf7a52cb26295c49eefc19f70ecfc", "score": "0.6159706", "text": "function wpb_load_widget_category() {\n register_widget( 'wpb_load_widget_category' );\n}", "title": "" }, { "docid": "2c1f1b424a8d303076471db9ba8caeb6", "score": "0.61576957", "text": "function opubco_widgets_init() {\n register_sidebar(array(\n 'name' => __('Widget Area 1', 'opubco'),\n 'description' => __('Description for this widget-area...', 'opubco'),\n 'id' => 'widget-area-1',\n 'before_widget' => '<div id=\"%1$s\" class=\"%2$s widget\">',\n 'after_widget' => '</div>',\n 'before_title' => '<h3>',\n 'after_title' => '</h3>'\n ));\t\n}", "title": "" }, { "docid": "1727297036a0bda85eff6eb757cbd0a3", "score": "0.6153952", "text": "function register_widget( $widget ) {\n\tglobal $wp_widget_factory;\n\n\t$wp_widget_factory->register( $widget );\n}", "title": "" }, { "docid": "cfa690fd6a0abbec05d86971a2b6790b", "score": "0.6148669", "text": "public function register_widget_areas() {\n\t\t}", "title": "" } ]
d1f56c2ece4d8a28b246c620d49fea4f
Enable comments on portfolio
[ { "docid": "f491b7f9244e6e20965b43bc0ec7a6d8", "score": "0.5598094", "text": "function portfolio_comments_open($open, $post_id)\n {\n $post = get_post($post_id);\n if (PORTFOLIO_POST_TYPE == $post->post_type)\n $open = true;\n return $open;\n }", "title": "" } ]
[ { "docid": "aa9758ab53e39943f80c0d15e41f1acf", "score": "0.65623546", "text": "function buddyblogvideos_enable_bp_comment_filter() {\n\n\tif ( function_exists( 'bp_comments_open' ) ) {\n\t\tadd_filter( 'comments_open', 'bp_comments_open', 10, 2 );\n\t}\n}", "title": "" }, { "docid": "f555c0a62f3a1a408ca35be763d19c8a", "score": "0.636565", "text": "function truethemes_disable_comments(){\nif(is_admin()):\nglobal $ttso;\n$show_posts_comments = '';\n$show_posts_comments = $ttso->ka_post_comments;\n\n\tif($show_posts_comments !='false'){\n\tupdate_option('default_comment_status','open');\n\t}else{\n\tupdate_option('default_comment_status','closed');\n\t}\nendif;\t\n}", "title": "" }, { "docid": "c24353c6f731b4d2c36707511495198b", "score": "0.623562", "text": "function is_comments_enabled() {\n\t\treturn (bool) apply_filters( 'jetpack_comment_likes_enabled', get_option( 'jetpack_comment_likes_enabled', false ) );\n\t}", "title": "" }, { "docid": "640d21cb898c6fa347e062855fde857e", "score": "0.61553216", "text": "function custom_pings($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment;\n ?>\n <li id=\"comment-<?php comment_ID() ?>\" <?php comment_class() ?>>\n <div class=\"comment-author\"><?php printf(__('By %1$s on %2$s at %3$s', 'your-theme'),\n get_comment_author_link(),\n get_comment_date(),\n get_comment_time() );\n edit_comment_link(__('Edit', 'your-theme'), ' <span class=\"meta-sep\">|</span> <span class=\"edit-link\">', '</span>'); ?></div>\n <?php if ($comment->comment_approved == '0') _e('\\t\\t\\t\\t\\t<span class=\"unapproved\">Your trackback is awaiting moderation.</span>\\n', 'your-theme') ?>\n <div class=\"comment-content \">\n <?php comment_text() ?>\n </div>\n<?php }", "title": "" }, { "docid": "0f2c69639222faac6dcd9701d565d7d4", "score": "0.60888386", "text": "protected function disableCommentForLinkedProjectEfforts()\n {\n if ($this->doc->linked_model)\n {\n $this->edit_generator->getColumnsConfig()->offsetGet('comment')->disable();\n } \n }", "title": "" }, { "docid": "c649f310aaec1d76b80303751918857b", "score": "0.6078831", "text": "function custom_pings($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment;\n ?>\n <li id=\"comment-<?php comment_ID() ?>\" <?php comment_class() ?>>\n <div class=\"comment-author\"><?php printf(__('By %1$s on %2$s at %3$s', 'tuscan'),\n get_comment_author_link(),\n get_comment_date(),\n get_comment_time() );\n edit_comment_link(__('Edit', 'tuscan'), ' <span class=\"meta-sep\">|</span> <span class=\"edit-link\">', '</span>'); ?></div>\n <?php if ($comment->comment_approved == '0') _e('\\t\\t\\t\\t\\t<span class=\"unapproved\">Your trackback is awaiting moderation.</span>\\n', 'tuscan') ?>\n <div class=\"comment-content\">\n <?php comment_text() ?>\n </div>\n<?php }", "title": "" }, { "docid": "6bb5338a7c54a46f94e51b6bafeadc66", "score": "0.6047929", "text": "function enable_comment_likes( $blog_id ) {\n\t\tswitch_to_blog( $blog_id );\n\t\tupdate_option( 'jetpack_comment_likes_enabled', 1 );\n\t\trestore_current_blog();\n\t}", "title": "" }, { "docid": "bfe90f49706bb07f14881230402c795b", "score": "0.5986302", "text": "public function comment();", "title": "" }, { "docid": "0a82f78aba9d941c79c5510a8da6a1ea", "score": "0.59542835", "text": "function jcul_agora_comment ($comment, $args, $depth)\n {\n $GLOBALS['comment'] = $comment;\n switch($comment->comment_type) :\n case 'pingback' :\n case 'trackback' :\n ?>\n<li <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>\">\n<div class=\"comment-text\"><?php _e('Pingback:'); ?> <?php comment_author_link(); ?> <?php edit_comment_link(__('(Edit)', 'twentytwelve'), '<span class=\"edit-link\">', '</span>'); ?></div></li>\n <?php\n break;\n default :\n global $post;\n ?>\n<li <?php comment_class(); ?>>\n<div class=\"comment\" id=\"comment-<?php comment_ID(); ?>\">\n<div class=\"comment-author\">\n<?php echo ( $comment->user_id === $post->post_author ) ? admin_avatar($avatar, get_the_author_meta('ID'), 44) : get_avatar($comment, 44) ?>\n<div class=\"authormeta\">\n<?php\nprintf('<h3 class=\"fn\">%1$s %2$s</h3>', get_comment_author_link(),\n// If current post author is also comment author, make it known visually.\n( $comment->user_id === $post->post_author ) ? '<em>author</em>' : ''\n);\nprintf(' <span class=\"datetime\"><a href=\"%1$s\"><time datetime=\"%2$s\">%3$s</time></a></span>', esc_url(get_comment_link($comment->comment_ID)), get_comment_time('c'), sprintf(__('%2$s'), get_comment_date(), human_time_diff(get_comment_time('U'), current_time('timestamp')).' ago'));\n?>\n</div>\n</div>\n<div class=\"comment-text\">\n<?php if('0' == $comment->comment_approved) : ?>\n<p class=\"comment-awaiting-moderation\">komentar anda menunggu di moderasi.</p>\n<?php endif; ?>\n<?php comment_text(); ?>\n<?php edit_comment_link(__('di Edit'), '<p class=\"edit-link\">', '</p>'); ?>\n</div>\n<div class=\"commentmeta\">\n<div class=\"reply\">\n<?php comment_reply_link(array_merge($args, array ('reply_text' => __('Reply'), 'respond_id' => 'komen_respond', 'after' => ' <span>&darr;</span>', 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?>\n</div>\n</div>\n</div>\n</li>\n <?php\n break;\n endswitch;\n }", "title": "" }, { "docid": "6d5daaa85ab0178ce5d48a60a42925a4", "score": "0.5918915", "text": "function bpmagic_allow_comments_on_posts() {\r\n\tglobal $post;\r\n\t$show = 0;\r\n\t\r\n\tif ( 'open' == $post->comment_status || have_comments() ) {\r\n\t\t$show = 1;\r\n\t}\r\n\t\r\n\treturn apply_filters( 'bpmag_allow_comments_on_posts', $show ); //true by default\r\n}", "title": "" }, { "docid": "f32f8fa1197706c9ebdbecd161119a2b", "score": "0.5918841", "text": "function bpmagic_allow_comments_on_page() {\r\n\tglobal $post;\r\n\t\r\n\t$allow_comments = 0;\r\n\tif ( 'open' == $post->comment_status || have_comments() ) {\r\n\t\t$allow_comments = 1;\r\n\t}\r\n\t\r\n\treturn apply_filters( 'bpmagic_allow_comments_on_page', $allow_comments ); //true by default\r\n}", "title": "" }, { "docid": "4d2a42d63bc1f43d8566c1cb4fa6d264", "score": "0.59186673", "text": "private function canComment(): bool\n {\n return true;\n }", "title": "" }, { "docid": "d0e3d5757ca22966015217e8696529fe", "score": "0.5913773", "text": "function custom_pings($comment, $args, $depth) {\n\t $GLOBALS['comment'] = $comment;\n\t ?>\n\t <li id=\"comment-<?php comment_ID() ?>\" <?php comment_class() ?>>\n\t <div class=\"comment-author\"><?php printf(__('By %1$s on %2$s at %3$s', 'swiftframework'),\n\t get_comment_author_link(),\n\t get_comment_date(),\n\t get_comment_time() );\n\t edit_comment_link(__('Edit', 'swiftframework'), ' <span class=\"meta-sep\">|</span> <span class=\"edit-link\">', '</span>'); ?></div>\n\t <?php if ($comment->comment_approved == '0') _e('\\t\\t\\t\\t\\t<span class=\"unapproved\">Your trackback is awaiting moderation.</span>\\n', 'swiftframework') ?>\n\t <div class=\"comment-content\">\n\t <?php comment_text() ?>\n\t </div>\n\t<?php }", "title": "" }, { "docid": "db2171ac675c9c271dd11a58c2bf3653", "score": "0.58847225", "text": "function wpforo_bp_activity_disable_comment( $can_comment = true ){\r\n if ( false === $can_comment ) return $can_comment;\r\n if( function_exists('bp_get_activity_action_name') ){\r\n $action_name = bp_get_activity_type();\r\n $disabled_actions = array( 'wpforo_topic', 'wpforo_post', 'wpforo_like' );\r\n $disabled_actions = apply_filters( 'wpforo_bp_activity_disable_comment', $disabled_actions );\r\n if ( in_array( $action_name, $disabled_actions ) ) {\r\n $can_comment = false;\r\n }\r\n }\r\n return $can_comment;\r\n}", "title": "" }, { "docid": "bf455c6b4011a70edecbb3fc904a86b4", "score": "0.5877117", "text": "function df_disable_comments_status() {\n\treturn false;\n}", "title": "" }, { "docid": "d1c261a64ed785670e34ca2d5b009289", "score": "0.58259815", "text": "function theme_comment() {\n // This function is never used; see the corresponding template file instead.\n}", "title": "" }, { "docid": "6f45c7a1d0bf4336a4b9ff74363aecb5", "score": "0.5824993", "text": "function theme_comment_wrapper() {\n // This function is never used; see the corresponding template file instead.\n}", "title": "" }, { "docid": "541147f5e141d9835de719625662cb21", "score": "0.5726266", "text": "function xkit_post_comments_controller() {\n\t\tif ( comments_open() || get_comments_number() ) {\n\t\t\tcomments_template();\n\t\t}\n\t}", "title": "" }, { "docid": "eef90c3da92989394d22d4ae4de05103", "score": "0.57008874", "text": "function my_change_comment_status() {\n\tadd_filter( 'option_default_comment_status', '__return_false' );\n\tadd_filter( 'option_default_ping_status', '__return_false' );\n}", "title": "" }, { "docid": "b04bb46f747a921be67ab6758d6a1cc1", "score": "0.56842506", "text": "public function isCommentsEnabled() {\n\t\treturn $this->getParams()->get('global.comments.enable_comments', 1);\n\t}", "title": "" }, { "docid": "7cb0a7a4774980e3ed1c362bcedc9417", "score": "0.5673276", "text": "function coursepress_comment( $comment, $args, $depth ) {\r\n\t\t$GLOBALS['comment'] = $comment;\r\n\r\n\t\tif ( 'pingback' == $comment->comment_type || 'trackback' == $comment->comment_type ) : ?>\r\n\r\n\t\t\t<li id=\"comment-<?php comment_ID(); ?>\" <?php comment_class(); ?>>\r\n\t\t\t\t<div class=\"comment-body\">\r\n\t\t\t\t\t<?php\r\n\t\t\t\t\tesc_html_e( 'Pingback:', 'cp' );\r\n\t\t\t\t\tcomment_author_link();\r\n\t\t\t\t\tedit_comment_link(\r\n\t\t\t\t\t\t__( 'Edit', 'cp' ),\r\n\t\t\t\t\t\t'<span class=\"edit-link\">',\r\n\t\t\t\t\t\t'</span>'\r\n\t\t\t\t\t);\r\n\t\t\t\t\t?>\r\n\t\t\t\t</div>\r\n\t\t\t</li>\r\n\r\n\t\t<?php else : ?>\r\n\r\n\t\t\t<?php $class = empty( $args['has_children'] ) ? '' : 'parent'; ?>\r\n\t\t\t<li id=\"comment-<?php comment_ID(); ?>\" <?php comment_class( $class ); ?>>\r\n\t\t\t\t<article id=\"div-comment-<?php comment_ID(); ?>\" class=\"comment-body\">\r\n\t\t\t\t\t<header class=\"comment-meta\">\r\n <div class=\"comment-title\">\r\n\t\t\t\t <span class=\"comment-author\"><?php echo get_comment_author_link() ?></span>\r\n <span><?php echo __( ' le ' ) ?></span>\r\n <span class=\"comment-date\">\r\n <time datetime=\"<?php comment_time( 'c' ); ?>\">\r\n <?php\r\n printf(\r\n get_comment_date()\r\n );\r\n ?>\r\n </time>\r\n </span><!-- .comment-date -->\r\n <span><?php echo ' : ' ?></span>\r\n </div>\r\n <?php\r\n edit_comment_link(\r\n esc_html__( 'Edit', 'cp' ),\r\n '<div class=\"edit-link\">',\r\n '</div>'\r\n );\r\n ?>\r\n\r\n <?php if ( '0' == $comment->comment_approved ) : ?>\r\n <p class=\"comment-awaiting-moderation\">\r\n <?php esc_html_e( 'Your comment is awaiting moderation.', 'cp' ); ?>\r\n </p>\r\n <?php endif; ?>\r\n\t\t\t\t\t</header><!-- .comment-meta -->\r\n <?php\r\n\t\t\t\t\t\t\tif ( 0 != $args['avatar_size'] ) {\r\n\t\t\t\t\t\t\t\techo get_avatar( $comment, $args['avatar_size'] );\r\n\t\t\t\t\t\t\t}\r\n ?>\r\n\t\t\t\t\t<div class=\"comment-content\">\r\n\t\t\t\t\t\t<?php comment_text(); ?>\r\n\t\t\t\t\t</div><!-- .comment-content -->\r\n\r\n\t\t\t\t\t<?php\r\n\t\t\t\t\tcomment_reply_link(\r\n\t\t\t\t\t\tarray_merge(\r\n\t\t\t\t\t\t\t$args,\r\n\t\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\t'add_below' => 'div-comment',\r\n\t\t\t\t\t\t\t\t'depth' => $depth,\r\n\t\t\t\t\t\t\t\t'max_depth' => $args['max_depth'],\r\n\t\t\t\t\t\t\t\t'before' => '<div class=\"reply calltoaction-buton cyan\">',\r\n\t\t\t\t\t\t\t\t'after' => '</div>',\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t);\r\n\t\t\t\t\t?>\r\n\t\t\t\t</article><!-- .comment-body -->\r\n\t\t\t</li>\r\n\t\t<?php\r\n\t\tendif;\r\n\t}", "title": "" }, { "docid": "4ba8712efb1fe8a85e3126f370535960", "score": "0.5644533", "text": "function comatose_comment( $comment, $args, $depth ) {\n\t$GLOBALS['comment'] = $comment;\n\tswitch ( $comment->comment_type ) :\n\t\tcase 'pingback' :\n\t\tcase 'trackback' :\n\t?>\n\t<li class=\"post pingback\">\n\t\t<p><?php _e( 'Pingback:', 'comatose' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'comatose' ), '<span class=\"edit-link\">', '</span>' ); ?></p>\n\t<?php\n\t\t\tbreak;\n\t\tdefault :\n\t?>\n\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n\t\t<article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n\t\t\t<footer class=\"comment-meta\">\n\t\t\t\t<div class=\"comment-author vcard\">\n\t\t\t\t\t<?php\n\t\t\t\t\t\t$avatar_size = 160;\n\t\t\t\t\t\t//if ( '0' != $comment->comment_parent )\n\t\t\t\t\t\t//\t$avatar_size = 78;\n\n\t\t\t\t\t\techo get_avatar( $comment, $avatar_size );\n\n\t\t\t\t\t\t/* translators: 1: comment author, 2: date and time */\n\t\t\t\t\t\tprintf( __( '%1$s on %2$s <span class=\"says\">said:</span>', 'comatose' ),\n\t\t\t\t\t\t\tsprintf( '<span class=\"fn\">%s</span>', get_comment_author_link() ),\n\t\t\t\t\t\t\tsprintf( '<a href=\"%1$s\"><time pubdate datetime=\"%2$s\">%3$s</time></a>',\n\t\t\t\t\t\t\t\tesc_url( get_comment_link( $comment->comment_ID ) ),\n\t\t\t\t\t\t\t\tget_comment_time( 'c' ),\n\t\t\t\t\t\t\t\t/* translators: 1: date, 2: time */\n\t\t\t\t\t\t\t\tsprintf( __( '%1$s at %2$s', 'comatose' ), get_comment_date(), get_comment_time() )\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t?>\n\n\t\t\t\t\t<?php edit_comment_link( __( 'Edit', 'comatose' ), '<span class=\"edit-link\">', '</span>' ); ?>\n\t\t\t\t</div><!-- .comment-author .vcard -->\n\n\t\t\t\t<?php if ( $comment->comment_approved == '0' ) : ?>\n\t\t\t\t\t<em class=\"comment-awaiting-moderation\"><?php _e( 'Your comment is awaiting moderation.', 'comatose' ); ?></em>\n\t\t\t\t\t<br />\n\t\t\t\t<?php endif; ?>\n\n\t\t\t</footer>\n\n\t\t\t<div class=\"comment-content\"><?php comment_text(); ?></div>\n\n\t\t\t<div class=\"reply\">\n\t\t\t\t<?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply <span>&darr;</span>', 'comatose' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n\t\t\t</div><!-- .reply -->\n\t\t</article><!-- #comment-## -->\n\n\t<?php\n\t\t\tbreak;\n\tendswitch;\n}", "title": "" }, { "docid": "5d1af6bdd377488333fe48ca87dac1bc", "score": "0.56427604", "text": "function hacks_comment($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment;\n $comment_type = get_comment_type();\n?>\n\n <li id=\"comment-<?php comment_ID(); ?>\" <?php comment_class(); ?>>\n <?php if ( $comment_type == 'trackback' ) : ?>\n <?php elseif ( $comment_type == 'pingback' ) : ?>\n <?php else : ?>\n <b class=\"comment__title vcard\">\n <cite class=\"author fn\"><?php comment_author(); ?></cite>\n </b>\n <?php endif; ?>\n\n <?php if ($comment->comment_approved == '0') : ?>\n <p class=\"mod\"><strong><?php _e('Your comment is awaiting moderation.'); ?></strong></p>\n <?php endif; ?>\n\n <blockquote class=\"comment__body\">\n <?php comment_text(); ?>\n </blockquote>\n\n <a class=\"comment__meta\" href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ); ?>\" rel=\"bookmark\" title=\"Permanent link to this comment by <?php comment_author(); ?>\"><abbr class=\"published\" title=\"<?php comment_date('Y-m-d'); ?>\"><?php comment_date('F jS, Y'); ?></abbr> at <?php comment_time(); ?></a>\n\n <?php if (get_option('thread_comments') == true) : ?>\n <p class=\"comment__util\"><?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> <?php if ( current_user_can('edit_post', $comment->comment_post_ID) ) : ?><span class=\"edit\"><?php edit_comment_link('Edit Comment','',''); ?></span><?php endif; ?></p>\n <?php endif; ?>\n<?php\n}", "title": "" }, { "docid": "5e60c941490ab0c008447aa941f7c0a7", "score": "0.56415856", "text": "public function myCommentedAction()\n {\n }", "title": "" }, { "docid": "95c68fe080268f286fb0d05db6d54577", "score": "0.56312996", "text": "public function filterComments(): void {\n // get arguments from the URL\n $status = Request::getVar('status', null, 'str');\n $content_id = Request::getVar('content_id', null, 'int');\n $limit = Request::getVar('limit', $this->_getDefaultLimit(), 'int');\n\n $results = $this->_filterComments($status, $content_id, $limit);\n // output the comment backend page to the user\n ActionResult('comments_manage', $results);\n }", "title": "" }, { "docid": "efb8c7d8081ec54cb91472be73ddaa58", "score": "0.5604183", "text": "function foodrecipes_comment( $comment, $foodrecipes_args, $depth ) {\r\n\t//$GLOBALS['comment'] = $comment;\r\n\tswitch ( $comment->comment_type ) :\r\n\t\tcase 'pingback' :\r\n\t\tcase 'trackback' :\r\n\t\t// Display trackbacks differently than normal comments.\r\n\t?>\r\n<li <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>\">\r\n <p>\r\n <?php esc_html_e( 'Pingback:', 'food-recipes' ); ?>\r\n <?php comment_author_link(); ?>\r\n <?php edit_comment_link( __( 'Edit', 'food-recipes' ), '<span class=\"edit-link\">', '</span>' ); ?>\r\n </p>\r\n</li>\r\n<?php\r\n\t\t\tbreak;\r\n\t\tdefault :\r\n\t\t// Proceed with normal comments.\r\n\t\tif($comment->comment_approved==1)\r\n\t\t{\r\n\t\tglobal $post;\r\n\t?>\r\n<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\r\n <article id=\"comment-<?php comment_ID(); ?>\" class=\"comment col-md-12 foodrecipes-inner-blog-comment\">\r\n <figure class=\"avtar\"> <a href=\"#\"><?php echo get_avatar( get_the_author_meta(), '80'); ?></a> </figure>\r\n <div class=\"foodrecipes-comment-name txt-holder\">\r\n <?php\r\n\t printf( '<b class=\"fn\">%1$s'.'</b>',\r\n\t get_comment_author_link(),\r\n\t ( $comment->user_id === $post->post_author ) ? '<span>' . esc_html__( 'Post author ', 'food-recipes' ) . '</span>' : '' \r\n\t ); \r\n\t\t?>\r\n </div>\r\n <div class=\"foodrecipes-comment-datetime\"> <?php echo get_comment_date('F j, Y \\a\\t g:i a'); ?> </div>\r\n <div class=\"foodrecipes-comment-text blog-post-comment-text comment\">\r\n <?php comment_text(); ?>\r\n </div>\r\n <div class=\"foodrecipes-comment-reply-link\">\r\n <?php\r\n echo '<a href=\"#\" class=\"reply pull-right\">'.comment_reply_link( array_merge( $foodrecipes_args, array( 'reply_text' => __( 'Reply', 'food-recipes' ), 'after' => '', 'depth' => $depth, 'max_depth' => $foodrecipes_args['max_depth'] ) ) ).'</a>';\r\n ?>\r\n </div>\r\n <div class=\"foodrecipes-comment-hr\"></div>\r\n <!-- .comment-content --> \r\n \r\n <!-- .txt-holder --> \r\n </article>\r\n <!-- #comment-## -->\r\n <?php\r\n\t\t}\r\n\t\tbreak;\r\n\tendswitch; // end comment_type check\r\n}", "title": "" }, { "docid": "112b4b1c143f99c8d11e1042d55c6650", "score": "0.55912495", "text": "public function before()\n\t{\n\t\tACL::Required('access comment');\n\t\tparent::before();\n\t}", "title": "" }, { "docid": "9b2a480fee458a39841feafb8b28d6cd", "score": "0.55908304", "text": "public function postComment(): void {\n // check if DSGVO checkbox is checked\n $checkbox = new PrivacyCheckbox(getCurrentLanguage(true));\n if ($checkbox->isEnabled()) {\n $checkbox->check();\n }\n\n $content_id = Request::getVar('content_id', 0, 'int');\n $content = null;\n try {\n $content = ContentFactory::getByID($content_id);\n } catch (DatasetNotFoundException $e) {\n ExceptionResult(get_translation('no_such_content'));\n }\n\n // create a comment dataset and fill properties\n $comment = new Comment();\n $comment->setContentId($content_id);\n $comment->setDate(time());\n $comment->setAuthorName(Request::getVar('author_name'));\n $comment->setAuthorEmail(Request::getVar('author_email'));\n $comment->setAuthorUrl(Request::getVar('author_url'));\n $comment->setText(Request::getVar('text'));\n $comment->setIp(Request::getIp());\n $comment->setUserAgent(get_useragent());\n\n // if comments must be approved, set the comment status to pending,\n // else to published\n $status = Settings::get('comments_must_be_approved') ?\n CommentStatus::PENDING : CommentStatus::PUBLISHED;\n\n // show error if not all required fields are filled\n if (! $comment->getAuthorName() || ! $comment->getText()) {\n ExceptionResult(get_translation('fill_all_fields'));\n }\n\n // If the message looks like a spam comment lag it as spam\n if ($comment->isSpam()) {\n $status = CommentStatus::SPAM;\n }\n\n $comment->setStatus($status);\n\n // if ip login is disabled (which is a legal must in countries\n // of the european union)\n // unset the ip field\n if (! Settings::get('log_ip')) {\n $comment->setIp(null);\n }\n\n $comment->save();\n\n // Clear cache when posting a comment\n // FIXME: clear only the cache entries for the commented content\n CacheUtil::clearPageCache();\n\n // Redirect to the page and show a message to the user\n Response::redirect(\n ModuleHelper::getFullPageURLByID(\n $content_id,\n 'comment_published=' . $status\n )\n );\n }", "title": "" }, { "docid": "a70f64a4e7a1c3d60507dc1afa4dcbd7", "score": "0.55698985", "text": "public function modifComment()\n {\n $post = $this->fApp->getFPost();\n $authRole = array(1,2);\n $this->checkAccessByRole($this->fApp->getConnectedUser(), $authRole);\n \n if (is_numeric($post['commentModalIdCom']) && $post['commentModalIdCom'] > 0) {\n if (is_numeric($post['commentModalSelEtat']) && $post['commentModalSelEtat'] > 0) {\n $comManager = new CommentManager();\n $tab = array(\n 'idcom' => $post['commentModalIdCom'],\n 'idstate' => $post['commentModalSelEtat']\n );\n $comManager->updateComment($tab);\n \n if (isset($post['commentModalChkbxSendMail'])) {\n $userManager = new UserManager();\n $user = $userManager->getUser($post['commentModalIdUser']);\n $emailInfo = array(\n 'fromFirstname' => \"Administrateur\",\n 'fromLastname' => \"yBernier Blog\",\n 'fromEmail' => APP::ADMIN_EMAIL,\n 'toEmail' => $user->getEmail(),\n 'messageTxt' => \"L'etat de votre commentaire viens d'etre mis à jour.\",\n 'messageHtml' => \"\",\n 'subject' => \"[yBernier Blog] - Mise à jour de votre Commentaire\"\n );\n $this-> sendMail($emailInfo);\n }\n \n $this->showAdminCommentList('Confirm');\n } else {\n throw new \\Exception('Valeur Incorrecte !');\n }\n } else {\n throw new \\Exception('Commentaire Incorrect !');\n }\n }", "title": "" }, { "docid": "8c8728a46b7f040cbf634c09e176c69e", "score": "0.556491", "text": "function list_pings($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment;\n?>\n <li id=\"comment-<?php comment_ID(); ?>\"><i class=\"icon icon-share-alt\"></i>&nbsp;<?php comment_author_link(); ?>\n<?php \n\n}", "title": "" }, { "docid": "8fea163b7bbeea40065039652be06d5a", "score": "0.55333984", "text": "function _cpmu_test() {\n\n\tglobal $commentpress_obj;\n\t//print_r( $commentpress_obj ); die();\n\t\n}", "title": "" }, { "docid": "1861c9689a7f3ea87aea539f900ff184", "score": "0.5533115", "text": "function visum_comments($comment, $args, $depth) {\n\n $GLOBALS['comment'] = $comment;\n\n if (get_comment_type() == 'pingback' || get_comment_type() == 'trackback') : ?>\n\n <?php elseif (get_comment_type() == 'comment') : ?>\n\n <li id=\"comment-<?php comment_ID(); ?>\" <?php comment_class('media') ?>>\n <a class=\"media-left\" href=\"#\">\n <?php \n $avatar_size = 64;\n if ($comment->comment_parent != 0) {\n $avatar_size = 50;\n }\n\n echo get_avatar($comment, $avatar_size);\n ?>\n </a>\n <div class=\"media-body\">\n <h4 class=\"media-heading\"><?php comment_author_link(); ?></h4>\n <p><span><?php comment_date(); ?>, klo <?php comment_time(); ?> - </span><?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?></p>\n <?php if ($comment->comment_approved == '0') : ?>\n <p class=\"awaiting-moderation\">Kommenttisi odottaa hyväksyntää.</p>\n <?php endif; ?>\n <?php comment_text(); ?>\n </div>\n </li>\n\n <?php endif; \n\n }", "title": "" }, { "docid": "20794dc91bbab34a2076a005abe0eead", "score": "0.55289954", "text": "public function manageComment()\n {\n $comments = $this->commentsManager->getComments();\n $this->renderer->render('adminComment', ['comments' => $comments]);\n }", "title": "" }, { "docid": "a124aa1f46276b774990c17c8fe5f126", "score": "0.55201757", "text": "function setPublicComments($a_value)\r\n\t{\r\n\t\t$this->comments = (bool)$a_value;\r\n\t}", "title": "" }, { "docid": "d3e53531d0a5cc12528e9cb6ed924a6c", "score": "0.5519364", "text": "function newsroom_elated_like_portfolio_list($portfolio_project_id) {\n\t\treturn newsroom_elated_like()->add_like_portfolio_list($portfolio_project_id);\n\t}", "title": "" }, { "docid": "415cd97a402ab739812ad329135a1f03", "score": "0.5515544", "text": "function likeThisComment()\n{\n\n}", "title": "" }, { "docid": "1ebe9a901563c75cdbc7938c00f9c4df", "score": "0.5513692", "text": "public function listComment() \r\n\t{\r\n\t\t$commentManager = new CommentManager();\r\n\t\t$comments = $commentManager->adminComments();\r\n\t\trequire('view/backoffice/adminCommentView.php');\r\n\t}", "title": "" }, { "docid": "0bd50851874f03b8d7517b63f258d897", "score": "0.5487289", "text": "public function managecomment(){\n\t\t$this->Cms->isLoggedin();\n\t\t$this->Paginator->settings = array(\n\t\t\t\t\t'limit' => 10,\n\t\t\t\t\t'conditions' =>array('Comment.status'=>'Active'),\n\t\t\t\t\t'order' => array(\n\t\t\t\t\t\t'Comment.created' => 'desc'\n\t\t\t\t\t)\n\t\t\t\t );\n\t\t$comments = $this->Paginator->paginate('Comment');\n\t\t$this->set(array('comments'=>$comments));\n\t}", "title": "" }, { "docid": "2738fcc07050c0217a67db7852c57d78", "score": "0.54842544", "text": "function assan_comment_nav() { if (get_comment_pages_count() > 1 && get_option('page_comments')) :\n ?>\n <ul class=\"pager comments-link\">\n <?php\n if ($prev_link = get_previous_comments_link(__('Older Comments', 'assan'))) :\n printf('<li class=\"previous\">%s</li>', $prev_link);\n endif;\n\n if ($next_link = get_next_comments_link(__('Newer Comments', 'assan'))) :\n printf('<li class=\"next\">%s</li>', $next_link);\n endif;\n ?>\n </ul>\n <?php\n endif;\n }", "title": "" }, { "docid": "dc8b2165b84edb35a814f9c88bed2001", "score": "0.5479907", "text": "function comment($r, $parent, $settings) {\r\n$IPBHTML = \"\";\r\n//--starthtml--//\r\n$IPBHTML .= <<<EOF\r\n<php>\n// Adjust author name as needed\nif( empty($r['author']['member_id']) && !empty($r['author']['comment_author_name']) )\n{\n\t$r['author']['members_display_name'] = $r['author']['comment_author_name'];\n}\n</php>\n<if test=\"canEditNoPost:|:!$this->hasEditJs AND !$parent['_canComment'] AND $r['comment']['_canEdit']\">\n\t{parse template=\"getEditJs\" group=\"global_comments\" params=\"\"}\n</if>\n<a id='comment_{$r['comment']['comment_id']}'></a>\n<div data-commentid='{$r['comment']['comment_id']}' class='ipsComment clearfix <if test=\"commentQueued:|:!$r['comment']['comment_approved']\">moderated</if>' id='comment_id_{$r['comment']['comment_id']}'>\n\t<if test=\"commentignored:|:$r['comment']['_ignored'] || $r['comment']['_repignored']\">\n\t\t<div class='post_ignore'>\n\t\t\t<if test=\"userIgnoredLang:|:$r['comment']['_repignored'] == 1\">{$this->lang->words['comment_ignored_rep']}<else />{$this->lang->words['ignored_comments_not']}</if> <if test=\"hasauthormemid:|:$r['author']['member_id']\"><a href='{parse url=\"showuser={$r['author']['member_id']}\" base=\"public\"}'></if>{$r['author']['members_display_name']}<if test=\"hasauthormidclose:|:$r['author']['member_id']\"></a></if>. <a href='#entry{$r['comment']['comment_id']}' title='{$this->lang->words['ignored_comments_not']}' style='display: none' id='unhide_post_{$r['comment']['comment_id']}'>{$this->lang->words['rep_view_anyway']}</a>\n\t\t</div>\n\t</if>\n\t<div class='ipsComment_author'>\n\t\t<if test=\"linkPhotoStart:|:$r['author']['member_id']\"><a class='ipsUserPhotoLink' href='{parse url=\"showuser={$r['author']['member_id']}\" template=\"showuser\" seotitle=\"{$r['author']['members_seo_name']}\" base=\"public\"}'></if><img src='{$r['author']['pp_small_photo']}' class='ipsUserPhoto ipsUserPhoto_mini' /><if test=\"linkPhotoEnd:|:$r['author']['member_id']\"></a></if><br />{parse template=\"userHoverCard\" group=\"global\" params=\"$r['author']\"}<br />\n\t\t<span class='post_id'>\n\t\t\t<a rel='bookmark' class='desc lighter ipsType_smaller' href='{parse url=\"{$settings['baseUrl']}&amp;do=findComment&amp;comment_id={$r['comment']['comment_id']}\" base=\"public\"}' title='{$this->lang->words['comment_permalink']}'>{parse date=\"$r['comment']['comment_date']\" format=\"short\"}</a>\n\t\t</span>\n\t\t<if test=\"authorwarn:|:$r['author']['show_warn']\">\n\t\t\t<br />\n\t\t\t<if test=\"$options['wl_id']\">\n\t\t\t\t<img src='{$this->settings['img_url']}/warn.png' class='clickable' onclick='warningPopup( this, {$options['wl_id']} )' title='{$this->lang->words['warnings_issued']}' />\n\t\t\t</if>\n\t\t\t<a class='desc lighter ipsType_smaller blend_links' href='{parse url=\"app=members&amp;module=profile&amp;section=warnings&amp;member={$r['author']['member_id']}&amp;from_app={$settings['thisApp']}&amp;from_id1={$settings['fromApp']}&amp;from_id2={$parent['parent_id']}-{$r['comment']['comment_id']}\" base=\"public\"}' id='warn_link_{$r['comment']['comment_id']}_{$r['author']['member_id']}' title='{$this->lang->words['warn_view_history']}'>{parse expression=\"sprintf( $this->lang->words['warn_status'], $r['author']['warn_level'] )\"}</a>\n\t\t</if>\n\t</div>\t\n\t<div id='comment_{$r['comment']['comment_id']}' class='ipsComment_comment'>\n\t\t<div class='comment_content'>{$r['comment']['comment_text']}</div>\n\t\t\n\t\t<ul class='ipsComment_controls ipsList_inline ipsType_smaller'>\n\t\t\t<if test=\"moderateCheckbox:|:$parent['_canModerate']\">\n\t\t\t\t<li class='right'>&nbsp;&nbsp;<input class=\"ipsComment_mod\" type='checkbox' name='' id='mod_comment_id_{$r['comment']['comment_id']}' data-status='{$r['comment']['comment_approved']}' /></li>\n\t\t\t</if>\n\t\t\t<if test=\"enableRep:|:$settings['enableRep']\">\n\t\t\t\t<li class='right'>\n\t\t\t\t\t{parse template=\"repButtons\" group=\"global_other\" params=\"$r['author'], array_merge( array( 'primaryId' => $r['comment']['comment_id'], 'domLikeStripId' => 'like_post_' . $r['comment']['comment_id'], 'domCountId' => 'rep_comment_' . $r['comment']['comment_id'], 'app' => $settings['repApp'] ? $settings['repApp'] : $settings['thisApp'], 'type' => $settings['repType'], 'likeFormatted' => $r['comment']['like']['formatted'] ), $r['comment'] )\"}\n\t\t\t\t</li>\n\t\t\t</if>\n\t\t\t<if test=\"canReply:|:$r['comment']['_canReply']\">\n\t\t\t\t<li><a href='{$this->settings['this_url']}<if test=\"hasAppend:|:! strstr( $this->settings['this_url'], '_rcid')\"><if test=\"hasQ:|:strstr($this->settings['this_url'], '?')\">&amp;<else />?</if>_rcid={$r['comment']['comment_id']}</if>#fastreply' title=\"{$this->lang->words['reply_to_comment']}\" id='reply_comment_{$r['comment']['comment_id']}' class='ipsButton_secondary reply_comment'>{$this->lang->words['comment_reply']}</a></li>\n\t\t\t</if>\n\t\t\t<if test=\"canEdit:|:$r['comment']['_canEdit']\">\n\t\t\t\t<li>\n\t\t\t\t\t<a href=\"{parse url=\"{$settings['baseUrl']}&amp;do=showEdit&amp;comment_id={$r['comment']['comment_id']}\" base=\"public\"}\" id='edit_comment_{$r['comment']['comment_id']}' class='edit_comment'>{$this->lang->words['edit_link']}</a>\n\t\t\t\t</li>\n\t\t\t</if>\n\t\t\t<if test=\"canHide:|:$r['comment']['comment_approved'] == 1 and $r['comment']['_canHide']\">\n\t\t\t\t<li><a href='{parse url=\"{$settings['baseUrl']}&amp;do=hide&amp;comment_id={$r['comment']['comment_id']}&amp;auth_key={$this->member->form_hash}\" base=\"public\"}' title='{$this->lang->words['hide_link']}' id='hide_comment_{$r['comment']['comment_id']}' class='hide_comment'>{$this->lang->words['hide_link']}</a></li>\n\t\t\t</if>\n\t\t\t<if test=\"canApprove:|:$r['comment']['comment_approved'] == 0 and $r['comment']['_canApprove']\">\n\t\t\t\t<li><a href='{parse url=\"{$settings['baseUrl']}&amp;do=approve&amp;comment_id={$r['comment']['comment_id']}&amp;auth_key={$this->member->form_hash}\" base=\"public\"}' title='{$this->lang->words['approve_link']}'>{$this->lang->words['approve_link']}</a></li>\n\t\t\t</if>\n\t\t\t<if test=\"canDelete:|:$r['comment']['_canDelete']\">\n\t\t\t\t<li>\n\t\t\t\t\t<a href='{parse url=\"{$settings['baseUrl']}&amp;do=delete&amp;comment_id={$r['comment']['comment_id']}&amp;auth_key={$this->member->form_hash}\" base=\"public\"}' id='delete_comment_{$r['comment']['comment_id']}' class='delete_comment' title='{$this->lang->words['delete_comment']}'>{$this->lang->words['delete_link']}</a>\n\t\t\t\t</li>\n\t\t\t</if>\n\t\t\t<if test=\"hasReport:|:$r['comment']['urls-report']\">\n\t\t\t\t<li>\n\t\t\t\t\t<a href=\"{parse url=\"{$r['comment']['urls-report']}&amp;st={$this->request['st']}\" base=\"public\"}\">{$this->lang->words['report_link']}</a>\n\t\t\t\t</li>\n\t\t\t</if>\n\t\t</ul>\n\t\t\n\t</div>\n</div>\n<if test=\"commentinitignored:|:$r['comment']['_ignored'] || $r['comment']['_repignored']\">\n\t<script type='text/javascript'>\n\t\tipb.comments.setCommentHidden( {$r['comment']['comment_id']} );\n\t</script>\n</if>\r\nEOF;\r\n//--endhtml--//\r\nreturn $IPBHTML;\r\n}", "title": "" }, { "docid": "9cabcef2dd9644b37abd70984564c032", "score": "0.54797137", "text": "public function run()\n\t{\n\t\t//First comment\n\t\t$comment = new \\CodeHobby\\Comment();\n\t\t$comment->name = \"Tester Jeff\";\n\t\t$comment->email = \"test@test.test\";\n\t\t$comment->comment = \"Cras eu bibendum justo. Cras et mi massa. Nulla facilisi. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc viverra magna lectus. Cras et sollicitudin eros, non aliquam odio. Etiam mi metus, facilisis ut euismod sit amet, sagittis non nunc.\n\nDonec at efficitur massa. Maecenas scelerisque turpis vitae mauris finibus consectetur. Nam hendrerit, lorem ut volutpat iaculis, nisl orci porttitor lorem, in imperdiet diam metus luctus mauris. Morbi varius libero non augue auctor consequat. Nulla venenatis laoreet odio. Donec quam est, condimentum eget aliquam sit amet, aliquet id neque. Donec sodales ut elit id malesuada. Proin gravida efficitur ligula, et accumsan diam gravida eleifend. Suspendisse scelerisque velit tortor, at dignissim odio lacinia sit amet. Maecenas feugiat molestie velit sed suscipit. Fusce ultrices risus vitae consequat aliquet. Integer hendrerit turpis eget eleifend faucibus. Pellentesque sapien purus, efficitur vel congue quis, finibus in enim. Suspendisse at mollis velit.\n\nVivamus ac nibh pulvinar, mattis felis non, auctor dui. Etiam ac pellentesque dolor. Sed nec massa eget metus accumsan molestie. Vivamus porta tellus in enim laoreet eleifend. Interdum et malesuada fames ac ante ipsum primis in faucibus. Cras gravida neque sit amet dui fringilla, vel ornare justo fermentum. Nunc porta eros id orci semper varius. In auctor felis non sodales elementum. Mauris sit amet leo sed tellus commodo volutpat porttitor quis lectus. Curabitur feugiat rhoncus augue quis accumsan.\n\nProin eget auctor nunc, in accumsan ex. Nam feugiat, leo nec pulvinar vulputate, orci ligula consectetur magna, in venenatis lectus nulla molestie sapien. Sed maximus, justo nec dapibus lobortis, tortor leo accumsan tellus, vel fermentum lacus tellus in lectus. Fusce vitae imperdiet ante. Quisque accumsan tellus id lacus malesuada finibus. Sed eu venenatis magna. Nullam sed quam urna. Aenean a massa semper, ornare turpis vitae, vehicula est. Duis nec consequat nisi, sed fringilla dui. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vivamus vulputate felis turpis, eget varius ante scelerisque sit amet. Nam nec libero ac ex lacinia blandit. Sed sollicitudin orci ut metus luctus, vel bibendum tellus elementum. Aenean commodo ipsum vitae metus posuere finibus. Aliquam cursus nunc sed mollis pharetra. Duis ut felis imperdiet, tempus justo vel, convallis ipsum.\n\nMaecenas lobortis, massa ut bibendum eleifend, nisl mi efficitur diam, eget efficitur justo diam id leo. Donec eu gravida libero, et efficitur nisi. Fusce nec quam a neque tristique volutpat. Mauris quis viverra purus. Donec vel pulvinar quam. Quisque metus sapien, tincidunt eget mollis quis, varius ut sem. Vivamus leo nibh, dapibus at est vitae, laoreet placerat ligula. Vivamus interdum, felis non vulputate hendrerit, lacus velit commodo augue, iaculis convallis ligula leo vitae nunc. Aenean dignissim interdum dolor, quis tristique augue consectetur vitae.\";\n\t\t$comment->save();\n\n\t\t//Second comment\n\t\t$comment = new \\CodeHobby\\Comment();\n\t\t$comment->name = \"Tester Jeff #2\";\n\t\t$comment->email = \"test2@test.test\";\n\t\t$comment->comment = \"In posuere malesuada tortor, posuere viverra enim tempus nec. Nunc lacinia massa non sem rhoncus dapibus. Praesent sagittis scelerisque faucibus. Sed mauris mauris, elementum quis pellentesque a, laoreet non libero. Suspendisse ut ante a velit volutpat sodales. Donec varius dui mi, vel ultrices tellus dictum quis. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Mauris placerat in nisl quis eleifend. Curabitur bibendum auctor feugiat. Aenean id faucibus arcu. Maecenas ac convallis lorem. Nam pretium diam augue, vel fermentum dui mollis ut. Ut ut eros mauris. Mauris pretium nulla nec aliquet iaculis. Curabitur sed purus vel nibh ullamcorper tristique ac non mauris. In sed mauris nibh.\n\nNulla arcu elit, porta nec erat pharetra, aliquam ullamcorper libero. Pellentesque at leo et orci porttitor sagittis quis vitae ante. Vestibulum turpis lectus, pulvinar in tellus at, malesuada egestas dolor. Suspendisse consequat, velit sed ullamcorper eleifend, ante dui suscipit enim, id consectetur dui orci eu tellus. Duis sed gravida felis. Cras auctor lobortis felis ut finibus. In sit amet felis accumsan, varius diam in, interdum dolor. Etiam facilisis pulvinar nisl.\n\nNullam nec metus sit amet turpis condimentum vehicula. Nullam id eros non tortor mattis finibus nec venenatis lectus. Donec auctor, dui vel condimentum luctus, lorem enim efficitur sem, eu consequat elit quam eu justo. Integer et tortor lorem. Nam vitae est nec nisl pulvinar scelerisque sed blandit nisi. Nulla gravida accumsan sapien. Aenean ultrices odio imperdiet est tempor condimentum. Vestibulum vitae fermentum ipsum. Mauris consequat mauris vel arcu finibus ultricies. Pellentesque eget iaculis metus.\n\nVivamus sed tellus bibendum, bibendum quam nec, convallis urna. Ut eget convallis sapien. Morbi et metus in lectus semper porta in et velit. Aenean quis dui pharetra, fermentum elit vulputate, finibus odio. Donec luctus tincidunt massa, nec luctus dolor auctor sed. Proin finibus rutrum rutrum. Ut rutrum viverra velit a congue. Nam hendrerit rhoncus pretium.\n\nNulla facilisi. Aliquam maximus nisi nec felis scelerisque rutrum. Phasellus congue nibh arcu, vel molestie sapien porttitor placerat. Sed ac neque in turpis laoreet mattis. Vivamus sit amet erat libero. Duis tincidunt, sapien eget accumsan lacinia, lorem nunc pretium quam, in placerat felis nibh quis elit. Curabitur ipsum tortor, interdum eu elementum quis, tristique vitae metus. Morbi porttitor tortor eget libero pharetra, tempor euismod neque convallis. Mauris at aliquam enim.\";\n\t\t$comment->save();\n\n\t\t//Third comment\n\t\t$comment = new \\CodeHobby\\Comment();\n\t\t$comment->name = \"Tester Jeff #3\";\n\t\t$comment->email = \"test3@test.test\";\n\t\t$comment->comment = \"Fusce hendrerit lorem eu dignissim ultricies. Suspendisse dapibus augue tortor, nec tincidunt nibh accumsan sed. Suspendisse hendrerit, sem eu imperdiet pulvinar, lacus ante mattis nunc, aliquet volutpat elit tellus et massa. Praesent et nulla nisi. Aliquam erat volutpat. Mauris augue ligula, ullamcorper vitae vehicula vel, porttitor ut quam. Nam et odio vitae orci efficitur consectetur. Fusce maximus nisi et elit tincidunt, a semper orci facilisis. Pellentesque ut justo ullamcorper, varius ex ut, cursus dolor.\";\n\t\t$comment->save();\n\n\t\t//Fourth comment\n\t\t$comment = new \\CodeHobby\\Comment();\n\t\t$comment->name = \"Tester Jeff #4\";\n\t\t$comment->email = \"test4@test.test\";\n\t\t$comment->comment = \"This is an internet troll. You were wrong, it's really the lizard people being controlled by the Illuminate.\";\n\t\t$comment->save();\n\n\t\t//Fifth comment\n\t\t$comment = new \\CodeHobby\\Comment();\n\t\t$comment->name = \"Tester Jeff #5, I don't leave comments\";\n\t\t$comment->email = \"test5@test.test\";\n\t\t$comment->comment = \"\";\n\t\t$comment->save();\n\t}", "title": "" }, { "docid": "30a6b5a77e6eff83945eb1d64eb2e7ec", "score": "0.5479064", "text": "function tokyo_comment( $comment, $args, $depth ) {\n $GLOBALS['comment'] = $comment;\n switch ( $comment->comment_type ) :\n case 'pingback' :\n case 'trackback' :\n ?>\n <li class=\"post pingback\">\n <p><?php _e( 'Pingback:', 'tokyo' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'tokyo' ), '<span class=\"edit-link\">', '</span>' ); ?></p>\n <?php\n break;\n default :\n ?>\n <li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n <article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n <footer class=\"comment-meta\">\n <div class=\"comment-author vcard\">\n <?php\n $avatar_size = 68;\n if ( '0' != $comment->comment_parent )\n $avatar_size = 39;\n\n echo get_avatar( $comment, $avatar_size );\n\n /* translators: 1: comment author, 2: date and time */\n printf( __( '%1$s %2$s <span class=\"says\"><!--:en-->said:<!--:--><!--:fi-->sanoi:<!--:--></span>', 'tokyo' ),\n sprintf( '<span class=\"fn bold\">%s</span>', get_comment_author_link() ),\n sprintf( '<a href=\"%1$s\"><time pubdate datetime=\"%2$s\">%3$s</time></a>',\n esc_url( get_comment_link( $comment->comment_ID ) ),\n get_comment_time( 'c' ),\n /* translators: 1: date, 2: time */\n sprintf( __( '%1$s <!--:en-->at<!--:--><!--:fi-->klo<!--:--> %2$s', 'tokyo' ), get_comment_date(), get_comment_time() )\n )\n );\n ?>\n\n <?php edit_comment_link( __( 'Edit', 'tokyo' ), '<span class=\"edit-link\">', '</span>' ); ?>\n </div><!-- .comment-author .vcard -->\n\n <?php if ( $comment->comment_approved == '0' ) : ?>\n <em class=\"comment-awaiting-moderation\"><?php _e( '<!--:en-->Your comment is awaiting moderation.<--:--><!--:fi-->Viestisi odottaa hyväksyntää<!--:-->', 'tokyo' ); ?></em>\n <br />\n <?php endif; ?>\n\n </footer>\n\n <div class=\"comment-content\"><?php comment_text(); ?></div>\n\n <?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( '\n\t <div class=\"reply btn btn-mini\">\n\t\t\t\t\t<!--:en-->Reply to comment<!--:--><!--:fi-->Vastaa kommenttiin<!--:--><i class=\"icon-arrow-down\"></i>\n\t </div><!-- .reply -->\t\t\t\n\t\t\t', 'tokyo' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n </article><!-- #comment-## -->\n <?php\n break;\n endswitch;\n}", "title": "" }, { "docid": "74614a2936d674722b90af833081f826", "score": "0.5477361", "text": "function df_disable_comments_dashboard() {\n\tremove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');\n}", "title": "" }, { "docid": "1247057e260d5f447ed3de7a2156c607", "score": "0.54732054", "text": "function comment_scratchpads_default_permissions(){\n return array(\n 'anonymous user' => array(\n 'access comments',\n 'post comments'\n ),\n 'authenticated user' => array(\n 'skip comment approval'\n ),\n 'editor' => array(\n 'edit own comments',\n 'administer comments'\n )\n );\n}", "title": "" }, { "docid": "9fbe5fe24f852ef6deaac4c433b5ec3a", "score": "0.54707557", "text": "public function disableComments()\n {\n $postTypes = get_post_types();\n\n foreach ($postTypes as $postType) {\n remove_post_type_support($postType, 'comments');\n remove_post_type_support($postType, 'trackbacks');\n }\n }", "title": "" }, { "docid": "aabfedc5e984638e15c6f02149fec220", "score": "0.5470603", "text": "function urth_understrap_one_comment( $comment, $args, $depth ) {\n $GLOBALS['comment'] = $comment;\n $edit_link_before = '<span class=\"edit-link\">';\n $edit_link_after = '</span>';\n\n if ( 'pingback' == $comment->comment_type OR 'trackback' == $comment->comment_type ) : ?>\n <li id=\"li-comment-<?php comment_ID(); ?>\" <?php comment_class(); ?>>\n <p class=\"row\">\n <strong class=\"ping-label\"><?php _e( 'Pingback:', 'the-bootstrap' ); ?></strong>\n <span class=\"\"><?php comment_author_link(); edit_comment_link( __( 'Edit', 'the-bootstrap' ),\n $edit_link_before, $edit_link_after ); ?></span>\n </p>\n \n <?php else: ?>\n \n <li id=\"li-comment-<?php comment_ID(); ?>\" <?php comment_class(); ?>>\n <article class=\"comment\">\n <div class=\"comment-author-avatar media\">\n <?php echo get_avatar( $comment, 70, null, false, array( 'class' => 'mr-2' ) ); ?>\n <div class=\"media-body\">\n <footer class=\"comment-meta\">\n <div class=\"comment-author vcard\">\n <?php\n /* translators: 1: comment author, 2: date and time */\n printf( __( '%1$s <span class=\"says\">said</span> on %2$s:', 'the-bootstrap' ),\n sprintf( '<span class=\"fn\">%s</span>', get_comment_author_link() ),\n sprintf( '<a href=\"%1$s\"><time pubdate datetime=\"%2$s\">%3$s</time></a>',\n esc_url( get_comment_link( $comment->comment_ID ) ),\n get_comment_time( 'c' ),\n /* translators: 1: date, 2: time */\n sprintf( __( '%1$s at %2$s', 'the-bootstrap' ), get_comment_date(), get_comment_time() )\n )\n );\n edit_comment_link( __( 'Edit', 'the-bootstrap' ), $edit_link_before, $edit_link_after );\n ?>\n </div><!-- .comment-author .vcard -->\n\n <?php if ( ! $comment->comment_approved ) : ?>\n <div class=\"comment-awaiting-moderation alert alert-info\"><em><?php _e( 'Your comment is awaiting moderation.', 'the-bootstrap' ); ?></em></div>\n <?php endif; ?>\n\n </footer><!-- .comment-meta -->\n <div class=\"comment-content\">\n <?php\n comment_text();\n comment_reply_link( array_merge( $args, array(\n 'reply_text' => __( 'Reply <span>&darr;</span>', 'urth-understrap' ),\n 'depth' => $depth,\n 'max_depth' => $args['max_depth']\n ) ) ); ?>\n </div><!-- .comment-content -->\n </div>\n </div>\n </article><!-- #comment-<?php comment_ID(); ?> .comment -->\n \n <?php endif; // comment_type\n}", "title": "" }, { "docid": "0447e2067aded01abbb18f808fe54472", "score": "0.54611003", "text": "function _comment_hook($comment_id){\n \t\r\n\t global $post;\n\t \n\t $meta = get_post_meta($post->ID, '_wppm_project_meta', true);//get meta\n\t \n\t if($meta){\n\t \t\r\n\t\t foreach($meta['_wppm_project_meta_users'] as $user){\n\t\t \t\r\n\t\t \t$data = get_userdata($user);\r\n\t\t\t\t$this->_notice_mail($data->user_email, $data->display_name, $post->post_title, $post->ID, date(DATE_RFC822), 'Updated (comment)');\n\t\t\t\t\r\n\t\t }//foreach\n\t \n\t }//if\n\t \r\n\t}", "title": "" }, { "docid": "9ac72a60c26a87f3c421a74efe687db7", "score": "0.5451337", "text": "function BassClubWebsites_comment_list_pings( $comment ) {\n\t$GLOBALS['comment'] = $comment;\n?>\n\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\"><?php echo comment_author_link(); ?></li>\n<?php }", "title": "" }, { "docid": "0f8a4f529d2dd7c778dd30885daae856", "score": "0.5444852", "text": "function buddyblogvideos_disable_bp_comment_filter() {\n\n\tif ( has_filter( 'comments_open', 'bp_comments_open' ) ) {\n\t\tremove_filter( 'comments_open', 'bp_comments_open', 10, 2 );\n\t}\n}", "title": "" }, { "docid": "f5aceee4c6e63ca0c216e4d05ccc7d13", "score": "0.5444797", "text": "function planningpress_comment( $comment, $args, $depth ) {\n $GLOBALS['comment'] = $comment;\n switch ( $comment->comment_type ) :\n case '' :\n ?>\n <li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n <article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\" role=\"article\">\n <header>\n <div class=\"comment-author vcard\">\n <?php echo get_avatar( $comment, 40 ); ?>\n <?php printf( __( '%s <span class=\"says\">says:</span>', 'planningpress' ), sprintf( '<cite class=\"fn\">%s</cite>', get_comment_author_link() ) ); ?>\n </div><!-- .comment-author .vcard -->\n <?php if ( $comment->comment_approved == '0' ) : ?>\n <em><?php _e( 'Your comment is awaiting moderation.', 'planningpress' ); ?></em>\n <br />\n <?php endif; ?>\n\n <div class=\"comment-meta commentmetadata\">\n <a class=\"comment-link\" href=\"<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>\"><time pubdate datetime=\"<?php comment_time( 'c' ); ?>\">\n <?php\n /* translators: 1: date, 2: time */\n printf( __( '%1$s at %2$s', 'planningpress' ), get_comment_date(), get_comment_time() ); ?>\n </time></a>\n <?php edit_comment_link( __( '(Edit)', 'planningpress' ), ' ' );\n ?>\n </div><!-- .comment-meta .commentmetadata -->\n </header>\n\n <div class=\"comment-body\"><?php comment_text(); ?></div>\n\n <div class=\"reply\">\n <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n </div><!-- .reply -->\n </article><!-- #comment-## -->\n\n <?php\n break;\n case 'pingback' :\n case 'trackback' :\n ?>\n <li class=\"post pingback\">\n <p><?php _e( 'Pingback:', 'planningpress' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'planningpress'), ' ' ); ?></p>\n <?php\n break;\n endswitch;\n}", "title": "" }, { "docid": "94f081fedc01293c9501a347a00aa5eb", "score": "0.54318154", "text": "function acceptComment() {\n if (empty($this->data)) return;\n\n $this->WildPost->WildComment->spamCheck = true;\n if ($this->WildPost->WildComment->save($this->data)) {\n $this->Session->setFlash('Comment succesfuly added.');\n $postId = intval($this->data['WildComment']['post_id']);\n $postSlug = $this->WildPost->field('slug', \"id = $postId\");\n $postLink = '/' . Configure::read('Wildflower.blogIndex') . \"/$postSlug\";\n\n // Clear post cache\n $cacheName = str_replace('-', '_', $postSlug);\n clearCache($cacheName, 'views', '.php');\n\n $this->redirect($this->data['WildPost']['permalink'] . '#comment-' . $this->WildPost->WildComment->id);\n } else {\n $post = $this->WildPost->findById(intval($this->data['WildComment']['post_id']));\n $this->set('post', $post);\n $this->render('view');\n } \n }", "title": "" }, { "docid": "dd09211b3e2d868727223d72545a291b", "score": "0.5420741", "text": "function html5boilerplate_comment($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment; ?>\n <dt <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>-author\">\n <?php /* echo get_avatar($comment,$size='54');*/ ?>\n <?php comment_author_link(); ?> <time datetime=\"\">on <?php comment_date() ?> at <?php comment_time() ?></time> \n <a href=\"#comment-<?php comment_ID() ?>\" title=\"Permanent Link for this comment\">#permalink</a>\n </dt>\n <dd <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>-body\">\n\t<?php if ($comment->comment_approved == '0') : ?>\n\t\t<p><strong>Your comment is awaiting moderation.</strong></p>\n\t<?php endif; ?>\n\t<?php comment_text(); ?>\n\t<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> <?php edit_comment_link('Edit this comment', ' ', ''); ?>\n\t</dd>\n\t<?php \n}", "title": "" }, { "docid": "7c5ccdae1d3b44a74a6184d9c29b7892", "score": "0.54185325", "text": "function impactmt_comment( $comment, $args, $depth ) {\n\t$GLOBALS['comment'] = $comment;\n\tswitch ( $comment->comment_type ) :\n\t\tcase 'pingback' :\n\t\tcase 'trackback' :\n\t\t// Display trackbacks differently than normal comments.\n\t?>\n\t<li <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>\">\n\t\t<p><?php _e( 'Pingback:', 'impactmt' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', 'impactmt' ), '<span class=\"edit-link\">', '</span>' ); ?></p>\n\t<?php\n\t\t\tbreak;\n\t\tdefault :\n\t\t// Proceed with normal comments.\n\t\tglobal $post;\n\t?>\n\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n\t\t<article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n\t\t\t<header class=\"comment-meta comment-author vcard\">\n\t\t\t\t<?php\n\t\t\t\t\techo get_avatar( $comment, 44 );\n\t\t\t\t\tprintf( '<cite class=\"fn\">%1$s %2$s</cite>',\n\t\t\t\t\t\tget_comment_author_link(),\n\t\t\t\t\t\t// If current post author is also comment author, make it known visually.\n\t\t\t\t\t\t( $comment->user_id === $post->post_author ) ? '<span> ' . __( 'Post author', 'impactmt' ) . '</span>' : ''\n\t\t\t\t\t);\n\t\t\t\t\tprintf( '<a href=\"%1$s\"><time pubdate datetime=\"%2$s\">%3$s</time></a>',\n\t\t\t\t\t\tesc_url( get_comment_link( $comment->comment_ID ) ),\n\t\t\t\t\t\tget_comment_time( 'c' ),\n\t\t\t\t\t\t/* translators: 1: date, 2: time */\n\t\t\t\t\t\tsprintf( __( '%1$s at %2$s', 'impactmt' ), get_comment_date(), get_comment_time() )\n\t\t\t\t\t);\n\t\t\t\t?>\n\t\t\t</header><!-- .comment-meta -->\n\t\t\t<?php if ( '0' == $comment->comment_approved ) : ?>\n\t\t\t\t<p class=\"comment-awaiting-moderation\"><?php _e( 'Your comment is awaiting moderation.', 'impactmt' ); ?></p>\n\t\t\t<?php endif; ?>\n\t\t\t<section class=\"comment-content comment\">\n\t\t\t\t<?php comment_text(); ?>\n\t\t\t\t<?php edit_comment_link( __( 'Edit', 'impactmt' ), '<p class=\"edit-link\">', '</p>' ); ?>\n\t\t\t</section><!-- .comment-content -->\n\t\t\t<div class=\"reply\">\n\t\t\t\t<?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply <span>&darr;</span>', 'impactmt' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n\t\t\t</div><!-- .reply -->\n\t\t</article><!-- #comment-## -->\n\t<?php\n\t\tbreak;\n\tendswitch; // end comment_type check\n}", "title": "" }, { "docid": "2cea33df5ea389997327a80fd469633e", "score": "0.5398913", "text": "public function comment()\n {\n $this->comments()->save(\n new Comment(['user_id' => auth()->id()])\n );\n }", "title": "" }, { "docid": "b4b207cfb6ef0cfb2e6e0dbf3aec9bb4", "score": "0.5394411", "text": "public function edit(Portfolio $portfolio)\n {\n //\n }", "title": "" }, { "docid": "b4b207cfb6ef0cfb2e6e0dbf3aec9bb4", "score": "0.5394411", "text": "public function edit(Portfolio $portfolio)\n {\n //\n }", "title": "" }, { "docid": "5badb32b525a1e86d30bed96fb37b7c5", "score": "0.53917944", "text": "public function commentOnProject($projectId = null, $text = \"\")\r\n {\r\n $projectId = $projectId ?: $this->deafultProjectId;\r\n\r\n $data = array(\r\n \"text\" => $text\r\n );\r\n\r\n return $this->askAsana('POST', $this->endPointUrl.\"projects/{$projectId}/stories\", json_encode( array('data' => $data) ));\r\n }", "title": "" }, { "docid": "1d5f4c7672e7c32090ecd92e2b8d08cb", "score": "0.53886425", "text": "function mbdmaster_custom_comment( $comment, $args, $depth ) {\n\n\t$GLOBALS['comment'] = $comment;\n\tswitch ( $comment->comment_type ) :\n\t\tcase 'pingback' :\n\t\tcase 'trackback' :\n\t?>\n\t\n\t<li class=\"post pingback\">\n\t\t<p><?php _e( 'Incoming link:', '_criadoemsampa' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', '_criadoemsampa' ), ' ' ); ?></p>\n\t<?php\n\t\t\tbreak;\n\t\tdefault :\n\t?>\n\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n\t\t<div id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n\t\t\t<header><?php echo get_avatar( $comment, 40 ); ?>\n\t\t\t\t<div class=\"comment-author vcard\">\n\t\t\t\t\t\n\t\t\t\t\t<?php printf( __( '%s <span class=\"says\">says:</span>', '_criadoemsampa' ), sprintf( '<cite class=\"fn\">%s</cite>', get_comment_author_link() ) ); ?></h5>\n\t\t\t\t<span class=\"comment-meta commentmetadata\">\n\t\t\t\t\t<a href=\"<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>\"><time pubdate datetime=\"<?php comment_time( 'c' ); ?>\">\n\t\t\t\t\t<?php\n\t\t\t\t\t\t/* translators: 1: date, 2: time */\n\t\t\t\t\t\tprintf( __( '%1$s at %2$s', '_criadoemsampa' ), get_comment_date(), get_comment_time() ); ?>\n\t\t\t\t\t</time></a>\n\t\t\t\t\t<?php edit_comment_link( __( '(Edit)', '_criadoemsampa' ), ' ' );\n\t\t\t\t\t?>\n\t\t\t\t</span><!-- .comment-meta .commentmetadata -->\n\t\t\t\t</div><!-- .comment-author .vcard -->\n\t\t\t\t<?php if ( $comment->comment_approved == '0' ) : ?>\n\t\t\t\t\t<em><?php _e( 'Your comment is awaiting moderation.', '_criadoemsampa' ); ?></em>\n\t\t\t\t\t<br />\n\t\t\t\t<?php endif; ?>\n\n\t\t\t</header>\n\n\t\t\t<div class=\"comment-content\"><?php comment_text(); ?></div>\n\n\t\t\t<div class=\"reply\">\n\t\t\t\t<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n\t\t\t</div><!-- .reply -->\n\t\t</div><!-- #comment-## -->\n\n\t<?php\n\t\t\tbreak;\n\tendswitch;\n}", "title": "" }, { "docid": "484a9c0a93c671b596cf0c12466ec045", "score": "0.53843224", "text": "function custom_comments($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment;\n $GLOBALS['comment_depth'] = $depth;\n ?>\n <li id=\"comment-<?php comment_ID() ?>\" <?php comment_class() ?>>\n <div class=\"comment-author vcard\"><?php commenter_link() ?></div>\n <div class=\"comment-meta\"><?php printf(__('Posted %1$s at %2$s <span class=\"meta-sep\">|</span> <a href=\"%3$s\" title=\"Permalink to this comment\">Permalink</a>', 'your-theme'),\n get_comment_date(),\n get_comment_time(),\n '#comment-' . get_comment_ID() );\n edit_comment_link(__('Edit', 'your-theme'), ' <span class=\"meta-sep\">|</span> <span class=\"edit-link\">', '</span>'); ?></div>\n <?php if ($comment->comment_approved == '0') _e(\"\\t\\t\\t\\t\\t<span class='unapproved'>Komentar anda sedang menunggu moderasi.</span>\\n\", 'your-theme') ?>\n <div class=\"comment-content\">\n <?php comment_text() ?>\n </div>\n <?php // echo the comment reply link\n if($args['type'] == 'all' || get_comment_type() == 'comment') :\n comment_reply_link(array_merge($args, array(\n 'reply_text' => __('Reply','your-theme'),\n 'login_text' => __('Log in to reply.','your-theme'),\n 'depth' => $depth,\n 'before' => '<div class=\"comment-reply-link\">',\n 'after' => '</div>'\n )));\n endif;\n ?>\n<?php }", "title": "" }, { "docid": "1213f5658548451686fb4cfbbccda100", "score": "0.5367343", "text": "function adriatica_comment( $comment, $args, $depth ) {\n\t$GLOBALS['comment'] = $comment;\n\tswitch ( $comment->comment_type ) :\n\t\tcase 'pingback' :\n\t\tcase 'trackback' :\n\t?>\n\t<li class=\"post pingback\">\n\t\t<p><?php _e( 'Pingback:', 'adriatica' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'adriatica' ), '<span class=\"edit-link\">', '</span>' ); ?></p>\n\t<?php\n\t\t\tbreak;\n\t\tdefault :\n\t?>\n\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n\t\t<article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n\t\t\t<footer class=\"comment-meta\">\n\t\t\t\t<div class=\"comment-author vcard\">\n\t\t\t\t\t<?php\n\t\t\t\t\t\t$avatar_size = 68;\n\t\t\t\t\t\tif ( '0' != $comment->comment_parent )\n\t\t\t\t\t\t\t$avatar_size = 39;\n\n\t\t\t\t\t\techo get_avatar( $comment, $avatar_size );\n\n\t\t\t\t\t\t/* translators: 1: comment author, 2: date and time */\n\t\t\t\t\t\tprintf( __( '%1$s on %2$s <span class=\"says\">said:</span>', 'adriatica' ),\n\t\t\t\t\t\t\tsprintf( '<span class=\"fn\">%s</span>', get_comment_author_link() ),\n\t\t\t\t\t\t\tsprintf( '<a href=\"%1$s\"><time pubdate datetime=\"%2$s\">%3$s</time></a>',\n\t\t\t\t\t\t\t\tesc_url( get_comment_link( $comment->comment_ID ) ),\n\t\t\t\t\t\t\t\tget_comment_time( 'c' ),\n\t\t\t\t\t\t\t\t/* translators: 1: date, 2: time */\n\t\t\t\t\t\t\t\tsprintf( __( '%1$s at %2$s', 'adriatica' ), get_comment_date(), get_comment_time() )\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t?>\n\n\t\t\t\t\t<?php edit_comment_link( __( 'Edit', 'adriatica' ), '<span class=\"edit-link\">', '</span>' ); ?>\n\t\t\t\t</div><!-- .comment-author .vcard -->\n\n\t\t\t\t<?php if ( $comment->comment_approved == '0' ) : ?>\n\t\t\t\t\t<em class=\"comment-awaiting-moderation\"><?php _e( 'Your comment is awaiting moderation.', 'adriatica' ); ?></em>\n\t\t\t\t\t<br />\n\t\t\t\t<?php endif; ?>\n\n\t\t\t</footer>\n\n\t\t\t<div class=\"comment-content\"><?php comment_text(); ?></div>\n\n\t\t\t<div class=\"reply\">\n\t\t\t\t<?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply <span>&darr;</span>', 'adriatica' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n\t\t\t</div><!-- .reply -->\n\t\t</article><!-- #comment-## -->\n\n\t<?php\n\t\t\tbreak;\n\tendswitch;\n}", "title": "" }, { "docid": "f8b73db52635f36f02ea4699d9d354e4", "score": "0.5354061", "text": "function shouldDisplayComment($comment) {\n if ($comment->SocialPermissions->isPending() && !$comment->SocialPermissions->canUpdateStatus() && !$comment->SocialPermissions->isAuthor()) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "24cce74d498f2834a47e50263f019b51", "score": "0.5353067", "text": "function show_comments($comment)\n\t{\n\t\tglobal $header_class, $main_class, $footer_class, $comment, $wpdb, $comment_post_ID;\n\t\t\n\t\t$comment_table = $wpdb->prefix . \"ocmx_comment_meta\";\n\t\t$comment_meta_sql = \"SELECT * FROM $comment_table WHERE commentId = \".$comment->comment_ID.\" LIMIT 1\";\n\t\t$fetch_comment_count = $wpdb->get_row( $wpdb->prepare(\"SELECT comment_count FROM $wpdb->posts WHERE ID = %d\", $comment_post_ID) );\n\t\t$comment_meta = $wpdb->get_row($comment_meta_sql); \n\t\t/* Threaded Comments */\n\t\tif(isset($_POST['comment_parent']) && $_POST['comment_parent'] !== \"0\" && $_POST['comment_parent'] !== \"\") : \n\t\t\t/* Count the Child Comments */\n\t\t\t$sql = \"SELECT * FROM $wpdb->comments WHERE comment_parent = \".$_POST['comment_parent'];\n\t\t\t$child_comments = $wpdb->get_results($sql); ?>\n\t\t\t<li class=\"comment clearfix\">\n\t\t\t\t<div class=\"comment-post clearfix\">\n <h4 class=\"comment-name\"> \n <?php if($comment->comment_author_url !== \"http://\" && $comment->comment_author_url !== \"\") : ?>\n <a href=\"<?php echo $comment->comment_author_url; ?>\" name=\"comment-<?php echo $comment->comment_ID; ?>\" rel=\"nofollow\"> <?php echo $comment->comment_author; ?></a>\n <?php else : ?>\n <?php echo $comment->comment_author; ?>\n <?php endif; ?>\n </h4> \n\t\t\t\t\t<?php if ($comment->comment_approved == '0') : ?>\n\t\t\t\t\t\t<p>Comment is awaiting moderation.</p>\n\t\t\t\t\t<?php else :\n\t\t\t\t\t\t$use_comment = apply_filters('wp_texturize', $comment->comment_content);\n\t\t\t\t\t\t$use_comment = str_replace(\"\\n\", \"<br>\", $use_comment);\n\t\t\t\t\t\techo \"<p>\".$use_comment.\"</p>\";\n\t\t\t\t\tendif; ?>\n\t\t\t\t\t<h5 class=\"date\">\n\t\t\t\t\t\t<?php echo date('d/m/Y', strtotime($comment->comment_date)); ?> <?php echo date('d M Y h:m a', strtotime($comment->comment_date)); ?>\n\t\t\t\t\t\t<?php if($comment_meta->twitter !== \"\") : ?>(<a href=\"http://twitter.com/<?php echo $comment_meta->twitter; ?>\" class=\"twitter-link\" rel=\"nofollow\">@<?php echo $comment_meta->twitter; ?></a>)<?php endif; ?>\n\t\t\t\t\t</h5>\n\t\t\t\t</div>\n\t\t\t</li>\n\t\t<?php \n\t\t/* Regular Comments */\n\t\telse: ?>\n\t\t\t<?php if($fetch_comment_count->comment_count == \"1\") : ?>\n <a name=\"comments\" id=\"comment_anchor\"></a>\n <h3 class=\"section-title\"><?php _e(\"1 Comment\", 'ocmx'); ?></h3>\n \t\t\t<ul class=\"comment-container\">\n\t\t\t<?php endif; ?>\n\t\t\t\t<li class=\"comment clearfix\">\n\t\t\t\t\t<div class=\"comment-avatar\">\n\t\t\t\t\t\t<?php echo get_avatar( $comment, 50); ?>\n <span></span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"comment-post clearfix\">\n <h4 class=\"comment-name\"> \n\t\t\t\t\t\t\t<?php if($comment->comment_author_url !== \"http://\" && $comment->comment_author_url !== \"\") : ?>\n \t<a href=\"<?php echo $comment->comment_author_url; ?>\" name=\"comment-<?php echo $comment->comment_ID; ?>\" rel=\"nofollow\"> <?php echo $comment->comment_author; ?></a>\n <?php else : ?>\n <?php echo $comment->comment_author; ?>\n <?php endif; ?>\n </h4> \n\t\t\t\t\t\t<?php if ($comment->comment_approved == '0') : ?>\n\t\t\t\t\t\t\t<p>Comment is awaiting moderation.</p>\n\t\t\t\t\t\t<?php else :\n\t\t\t\t\t\t\t$use_comment = apply_filters('wp_texturize', $comment->comment_content);\n\t\t\t\t\t\t\t$use_comment = str_replace(\"\\n\", \"<br />\", $use_comment);\n\t\t\t\t\t\t\techo \"<p>\".$use_comment.\"</p>\";\n\t\t\t\t\t\tendif; ?>\n <h5 class=\"date\">\n <?php echo date('d M Y h:m a', strtotime($comment->comment_date)); ?>\n <?php if(($comment_meta->twitter) && $comment_meta->twitter !== \"\") : ?>\n (<a href=\"http://twitter.com/<?php echo $comment_meta->twitter; ?>\" class=\"twitter-link\" rel=\"nofollow\">@<?php echo $comment_meta->twitter; ?></a>)\n <?php endif; ?> \n </h5>\n\t\t\t\t\t\t<?php $comment_id = $comment->comment_ID; ?>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t<?php if($fetch_comment_count->comment_count == \"1\") : ?>\n\t\t\t\t\t</ul>\n\t\t\t<?php endif; ?>\n\t\t<?php endif; ?>\n<?php }", "title": "" }, { "docid": "fb6c90e59697bde2a5deec69f08733a6", "score": "0.5350729", "text": "function comment_notify_scratchpads_default_permissions(){\n return array(\n 'authenticated user' => array(\n 'subscribe to comments'\n ),\n 'maintainer' => array(\n 'administer comment notify'\n )\n );\n}", "title": "" }, { "docid": "39bccb6e11b18721077fb5360c5ab843", "score": "0.5345295", "text": "public function adminAllComments ()\n {\n $adminManager = new AdminManager();\n $resumecomments = $adminManager->getComments ();\n require ('view/backend/AdminAllComments.php');\n }", "title": "" }, { "docid": "07b26446500acf9b77f233da6de67f4c", "score": "0.5335952", "text": "function preShowComment($comment = '') {\n if (is_admin()) {\n return $comment;\n }\n return $this->_processContent($comment, true);\n }", "title": "" }, { "docid": "29186306d147bafe6252a41796573afc", "score": "0.5330637", "text": "function fluxus_comment( $comment, $args, $depth ) {\n\n\tglobal $post;\n\t$GLOBALS['comment'] = $comment;\n\n\tswitch ( $comment->comment_type ) :\n\n\t\tcase 'pingback' :\n\t\tcase 'trackback' : ?>\n\t\t\t<li class=\"post pingback\">\n\t\t\t\t<p>\n\t\t\t\t\t<?php _e( 'Pingback:', 'fluxus' );\n\t\t\t\t\tcomment_author_link();\n\t\t\t\t\tedit_comment_link( __( 'Edit', 'fluxus' ), ' ' ); ?>\n\t\t\t\t</p><?php\n\t\tbreak;\n\n\t\tdefault : ?>\n\t\t\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n\t\t\t\t<article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n\t\t\t\t\t<footer>\n\t\t\t\t\t\t<div class=\"comment-author vcard\"><?php\n\n\t\t\t\t\t\t\t$avatar = get_avatar( $comment, 64 );\n\t\t\t\t\t\t\t$avatar_2x = get_avatar( $comment, 128 );\n\n\t\t\t\t\t\t\tif ( $avatar ) : ?>\n\t\t\t\t\t\t\t\t<div class=\"wrap-avatar\">\n\t\t\t\t\t\t\t\t\t<?php echo $avatar . $avatar_2x; ?>\n\t\t\t\t\t\t\t\t</div><?php\n\t\t\t\t\t\t\tendif;\n\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t<div class=\"comment-author-info\">\n\t\t\t\t\t\t\t\t<?php\n\n\t\t\t\t\t\t\t\t\tprintf( __( '%s', 'fluxus' ), sprintf( '<cite class=\"fn\">%s</cite>', get_comment_author_link() ) );\n\n\t\t\t\t\t\t\t\t\tif ( $comment->user_id > 0 && $user = get_userdata($comment->user_id) ) {\n\t\t\t\t\t\t\t\t\t\tif ( $comment->user_id === $post->post_author ) : ?>\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"bypostauthor-icon\"><?php _e( 'Post author', 'fluxus' ); ?></span><?php\n\t\t\t\t\t\t\t\t\t\tendif;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t<div class=\"comment-meta commentmetadata\">\n\t\t\t\t\t\t\t\t\t<a href=\"<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>\" class=\"comment-time\"><time pubdate datetime=\"<?php comment_time( 'c' ); ?>\">\n\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t/* translators: 1: date, 2: time */\n\t\t\t\t\t\t\t\t\t\tprintf( __( '%1$s at %2$s', 'fluxus' ), get_comment_date(), get_comment_time() ); ?>\n\t\t\t\t\t\t\t\t\t</time></a>\n\t\t\t\t\t\t\t\t\t<div class=\"comment-actions\">\n\t\t\t\t\t\t\t\t\t\t<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n\t\t\t\t\t\t\t\t\t\t<?php edit_comment_link( __( 'Edit', 'fluxus' ), ' ' ); ?>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div><?php\n\t\t\t\t\t\tif ( $comment->comment_approved == '0' ) : ?>\n\t\t\t\t\t\t\t<em><?php _e( 'Your comment is awaiting moderation.', 'fluxus' ); ?></em>\n\t\t\t\t\t\t\t<br /><?php\n\t\t\t\t\t\tendif; ?>\n\t\t\t\t\t</footer>\n\t\t\t\t\t<div class=\"comment-content\"><?php comment_text(); ?></div>\n\t\t\t\t</article><?php\n\t\tbreak;\n\n\tendswitch;\n}", "title": "" }, { "docid": "bc7976511b8eecbcf4eae5a32a1f2f10", "score": "0.53206915", "text": "function custom_comments($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment;\n $GLOBALS['comment_depth'] = $depth;\n ?>\n <li id=\"comment-<?php comment_ID() ?>\" <?php comment_class() ?>>\n <div class=\"comment-meta\"><?php\n printf(__('Posted %1$s at %2$s <span class=\"meta-sep\">|</span> <a href=\"%3$s\" title=\"Permalink to this comment\">Permalink</a>', 'tuscan') ,\n get_comment_date(),\n get_comment_time(),\n '#comment-' . get_comment_ID() );\n\n edit_comment_link(__('Edit', 'tuscan'), ' <span class=\"meta-sep\">|</span> <span class=\"edit-link\">', '</span>'); ?>\n </div>\n\n <?php if ($comment->comment_approved == '0') {\n echo \"\\t\\t\\t\\t\\t<span class='unapproved'>\"; _e('Your comment is awaiting moderation.', 'tuscan'); echo '</span>\\n'; } ?>\n \t\t\n <?php // echo the comment reply link\n if($args['type'] == 'all' || get_comment_type() == 'comment') :\n comment_reply_link(array_merge($args, array(\n 'reply_text' => _('Reply', 'tuscan'), \n 'login_text' => __('Log in to reply.', 'tuscan'),\n 'depth' => $depth,\n 'before' => '<div class=\"comment-reply-link\">', \n 'after' => '</div>'\n )));\n endif; ?>\n\n <div class=\"comment-content\">\n <?php comment_text() ?>\n </div>\n<?php }", "title": "" }, { "docid": "8f4771231af4126f5f267233f581fde6", "score": "0.53195703", "text": "public function publishComment()\n {\n // Initialize necessary vars for admin posts\n $varsArray = $this->initAdminPosts();\n // Prepare params for form validation\n $paramsArray = [\n 'tokenIdentifier' => 'pcp',\n 'tokenIndex' => $this->pcpTokenIndex,\n 'action' => 'update',\n 'errorMessage' => 'Publication action was not performed correctly<br>as concerns comment #',\n 'successMessage' => 'Publication action was performed successfully<br>as concerns comment #',\n 'datas' => [\n 'entity' => 'comment',\n 'values' => [\n 0 => [\n 'type' => 1, // int\n 'column' => 'isPublished',\n 'value' => 1 // true\n ]\n ]\n ]\n ];\n if ($this->authenticatedUser != false) {\n $disallowManagement = $this->disallowPostAndCommentManagement($this->authenticatedUser);\n // Comment management is disallowed because of one particular condition among several cases!\n if (!empty($disallowManagement)) {\n $varsArray['errors']['comment']['state'] = true;\n $varsArray['errors']['paf_failed']['comment']['message2'] = $this->config::isDebug('<span class=\"form-check-notice\">' . $disallowManagement[0]['message'] . '<br>[Debug trace: authenticated user id is \"<strong>' . htmlentities($this->authenticatedUser->id) . '</strong>\".]</span>');\n } else {\n // Validate or not form datas\n $checkedForm = $this->validateEntityForms($paramsArray, $this->adminPostValidator, '/admin/posts');\n // Reset form token immediately after success state\n // This can not be made directly in \"validateEntityForms()\" because of private properties\n if ($this->isActionSuccess()) {\n // Delete current token\n unset($_SESSION['pcp_check']);\n unset($_SESSION['pcp_token']);\n // Regenerate token to be updated in forms\n $this->pcpTokenIndex = $this->adminPostValidator->generateTokenIndex('pcp_check');\n $this->pcpTokenValue = $this->adminPostValidator->generateTokenValue('pcp_token');\n }\n // Remind current paging slide item\n $varsArray['slideRankAfterSubmit'] = isset($_POST['pcp_slide_rank']) && (int) $_POST['pcp_slide_rank'] !== 0 ? $_POST['pcp_slide_rank'] : 1;\n // Need to update errors template var, while there is no redirection to admin posts (success state)\n $varsArray['errors'] = isset($checkedForm['paf_errors']) ? $checkedForm['paf_errors'] : false;\n $varsArray['errors']['comment']['state'] = isset($checkedForm['paf_errors']) ? true : false;\n }\n }\n // Render template with updated vars\n $this->renderAdminPosts($varsArray);\n }", "title": "" }, { "docid": "404a10196cff1a555c7989dd81a9159e", "score": "0.53193206", "text": "public function isComment();", "title": "" }, { "docid": "48ffc6cecaea9493fa56ed6d3f35dc2a", "score": "0.5312736", "text": "function mytheme_comment($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment; ?>\n <li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID() ?>\">\n\t<div id=\"comment-<?php comment_ID(); ?>\" class=\"commbody\">\n\t<div class=\"commleft\">\n\t\t <div class=\"comment-author vcard\">\n\t\t\t <?php echo get_avatar($comment,$size='60' ); ?>\n\n\t\t\t <?php printf(__('<cite class=\"fn\">%s</cite>'), get_comment_author_link()) ?>\n\t\t </div>\n \n\t\t <div class=\"comment-meta commentmetadata\">\n\t\t\t<?php _e('on', 'wpzoom'); ?> <a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php printf(__('%1$s <br/> '), get_comment_date('M d, Y'), get_comment_time()) ?></a>\n\t\t\t<?php _e('at', 'wpzoom'); ?> <a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php printf(__('%2$s'), get_comment_date(), get_comment_time()) ?></a>\n\t\t\t\n\t\t\t\n\t\t\t<?php edit_comment_link(__('{Edit}'),' ','') ?></div>\n </div>\n\n <?php comment_text() ?>\n\t\t <?php if ($comment->comment_approved == '0') : ?>\n\t\t\t <em><?php _e('Your comment is awaiting moderation.', 'wpzoom') ?></em>\n\t\t\t <br />\n\t\t <?php endif; ?>\n <div class=\"reply\">\n <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n </div>\n <div class=\"clear\"></div>\n </div>\n<?php }", "title": "" }, { "docid": "1599e43fe81c94ffb8bc081f7bb39c2f", "score": "0.53120464", "text": "function displayComment($comment, $args, $depth)\n{\n $GLOBALS['comment'] = $comment; ?>\n\n <?php if ($comment->comment_approved == '1'): ?>\n <li>\n <article id=\"comment-<?php comment_ID() ?>\">\n <?php echo get_avatar($comment); ?>\n <h1><?php comment_author_link() ?></h1>\n <time><a href=\"#comment-<?php comment_ID() ?>\" pubdate><?php comment_date() ?> at <?php comment_time() ?></a></time>\n <?php comment_text() ?>\n </article>\n <?php endif;\n}", "title": "" }, { "docid": "36985f4a65dc6a994aace4a15cad9d5f", "score": "0.52947617", "text": "function bones_comments($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment; ?>\n\t<li <?php comment_class(); ?>>\n\t\t<article id=\"comment-<?php comment_ID(); ?>\" class=\"clearfix\">\n\t\t\t<div class=\"comment-author vcard row-fluid clearfix\">\n\t\t\t\t<div class=\"avatar span2\">\n\t\t\t\t\t<?php echo get_avatar($comment,$size='75',$default='<path_to_url>' ); ?>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"span10 comment-text\">\n\t\t\t\t\t<?php printf(__('<h4>%s</h4>','bonestheme'), get_comment_author_link()) ?>\n\t\t\t\t\t<?php edit_comment_link(__('Edit','bonestheme'),'<span class=\"edit-comment btn btn-small btn-info\"><i class=\"icon-white icon-pencil\"></i>','</span>') ?>\n \n <?php if ($comment->comment_approved == '0') : ?>\n \t\t\t\t\t<div class=\"alert-message success\">\n \t\t\t\t<p><?php _e('Your comment is awaiting moderation.','bonestheme') ?></p>\n \t\t\t\t</div>\n\t\t\t\t\t<?php endif; ?>\n \n <?php comment_text() ?>\n \n <time datetime=\"<?php echo comment_time('Y-m-j'); ?>\"><a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php comment_time('F jS, Y'); ?> </a></time>\n \n\t\t\t\t\t<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n </div>\n\t\t\t</div>\n\t\t</article>\n <!-- </li> is added by wordpress automatically -->\n<?php\n}", "title": "" }, { "docid": "77261ec59f8549310d4c4feecd819e40", "score": "0.5284699", "text": "function addComment($articleId, $author, $comment)\n{\n $affectedLines = Comment::post($articleId, $author, $comment);\n\n if ($affectedLines === false) {\n die('Impossible d\\'ajouter le commentaire !');\n }\n else {\n header(\"Location: \".getenv('HOSTNAME').\"/index.php?action=thankYou\");\n }\n}", "title": "" }, { "docid": "6ce17496ff26dae6ac923e704398ce70", "score": "0.52814424", "text": "function amos_comment_permissions($commentparams) {\n return array('post' => true, 'view' => true);\n}", "title": "" }, { "docid": "b0c5754cc9169f80158b311cc3cbf5fe", "score": "0.5279102", "text": "private function updateArticleCommentStatus()\n {\n $this->model->action('article','updateArticle',\n array('id_article' => (int)$this->current_id_article,\n 'error' => &$this->viewVar['error'],\n 'fields' => array('allow_comment' => (int)$this->allow_comment,\n 'close_comment' => (int)$this->close_comment)));\n }", "title": "" }, { "docid": "73a963ccbfa211b1c827402918620aac", "score": "0.5277561", "text": "function custom_comments($comment, $args, $depth) {\n\t $GLOBALS['comment'] = $comment;\n\t $GLOBALS['comment_depth'] = $depth;\n\t ?>\n\t <li id=\"comment-<?php comment_ID() ?>\" <?php comment_class('clearfix') ?>>\n\t <div class=\"comment-wrap clearfix\">\n\t <div class=\"comment-avatar\">\n\t \t<?php if(function_exists('get_avatar')) { echo get_avatar($comment, '100'); } ?>\n\t \t<?php if ($comment->comment_author_email == get_the_author_meta('email')) { ?>\n\t \t<span class=\"tooltip\"><?php _e(\"Author\", \"swiftframework\"); ?><span class=\"arrow\"></span></span>\n\t \t<?php } ?>\n\t </div>\n\t \t\t<div class=\"comment-content\">\n\t \t<div class=\"comment-meta\">\n\t \t\t\t<?php\n\t \t\t\t\tprintf('<span class=\"comment-author\">%1$s</span> <span class=\"comment-date\">%2$s</span>',\n\t \t\t\t\t\tget_comment_author_link(),\n\t \t\t\t\t\tget_comment_date()\n\t \t\t\t\t);\n\t \tedit_comment_link(__('Edit', 'swiftframework'), '<span class=\"edit-link\">', '</span><span class=\"meta-sep\"> |</span>');\n\t ?>\n\t <?php if($args['type'] == 'all' || get_comment_type() == 'comment') :\n\t \tcomment_reply_link(array_merge($args, array(\n\t \t'reply_text' => __('Reply','swiftframework'),\n\t \t'login_text' => __('Log in to reply.','swiftframework'),\n\t \t'depth' => $depth,\n\t \t'before' => '<span class=\"comment-reply\">',\n\t \t'after' => '</span>'\n\t \t)));\n\t endif; ?>\n\t \t\t\t</div>\n\t \t\t\t<?php if ($comment->comment_approved == '0') _e(\"\\t\\t\\t\\t\\t<span class='unapproved'>Your comment is awaiting moderation.</span>\\n\", 'swiftframework') ?>\n\t \t<div class=\"comment-body\">\n\t \t<?php comment_text() ?>\n\t \t</div>\n\t \t\t</div>\n\t </div>\n\t<?php }", "title": "" }, { "docid": "1ef01a3d0ba861936eefd3011d291b2d", "score": "0.5276785", "text": "function mformonkey_comment( $comment, $args, $depth ) {\n\t$GLOBALS['comment'] = $comment;\n\tswitch ( $comment->comment_type ) :\n\t\tcase 'pingback' :\n\t\tcase 'trackback' :\n\t?>\n\t<li class=\"post pingback\">\n\t\t<p><?php _e( 'Pingback:', 'mformonkey' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'mformonkey' ), '<span class=\"edit-link\">', '</span>' ); ?></p>\n\t<?php\n\t\t\tbreak;\n\t\tdefault :\n\t?>\n\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n\t\t<article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n\t\t\t<footer class=\"comment-meta\">\n\t\t\t\t<div class=\"comment-author vcard\">\n\t\t\t\t\t<?php\n\t\t\t\t\t\t$avatar_size = 68;\n\t\t\t\t\t\tif ( '0' != $comment->comment_parent )\n\t\t\t\t\t\t\t$avatar_size = 39;\n\n\t\t\t\t\t\techo get_avatar( $comment, $avatar_size );\n\n\t\t\t\t\t\t/* translators: 1: comment author, 2: date and time */\n\t\t\t\t\t\tprintf( __( '%1$s on %2$s <span class=\"says\">said:</span>', 'mformonkey' ),\n\t\t\t\t\t\t\tsprintf( '<span class=\"fn\">%s</span>', get_comment_author_link() ),\n\t\t\t\t\t\t\tsprintf( '<a href=\"%1$s\"><time pubdate datetime=\"%2$s\">%3$s</time></a>',\n\t\t\t\t\t\t\t\tesc_url( get_comment_link( $comment->comment_ID ) ),\n\t\t\t\t\t\t\t\tget_comment_time( 'c' ),\n\t\t\t\t\t\t\t\t/* translators: 1: date, 2: time */\n\t\t\t\t\t\t\t\tsprintf( __( '%1$s at %2$s', 'mformonkey' ), get_comment_date(), get_comment_time() )\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t?>\n\n\t\t\t\t\t<?php edit_comment_link( __( 'Edit', 'mformonkey' ), '<span class=\"edit-link\">', '</span>' ); ?>\n\t\t\t\t</div><!-- .comment-author .vcard -->\n\n\t\t\t\t<?php if ( $comment->comment_approved == '0' ) : ?>\n\t\t\t\t\t<em class=\"comment-awaiting-moderation\"><?php _e( 'Your comment is awaiting moderation.', 'mformonkey' ); ?></em>\n\t\t\t\t\t<br />\n\t\t\t\t<?php endif; ?>\n\n\t\t\t</footer>\n\n\t\t\t<div class=\"comment-content\"><?php comment_text(); ?></div>\n\n\t\t\t<div class=\"reply\">\n\t\t\t\t<?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply <span>&darr;</span>', 'mformonkey' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n\t\t\t</div><!-- .reply -->\n\t\t</article><!-- #comment-## -->\n\n\t<?php\n\t\t\tbreak;\n\tendswitch;\n}", "title": "" }, { "docid": "760974f7581e60a34a4a82cf6a95fdbb", "score": "0.5276706", "text": "function withComments($withComments);", "title": "" }, { "docid": "21bf8da6c862636572cbc45492958bde", "score": "0.52717334", "text": "function edit_comment_script()\n\t{\n\t\t$src = ee()->functions->fetch_site_index(0, 0).QUERY_MARKER.'ACT=comment_editor';\n\t\treturn $this->return_data = '<script type=\"text/javascript\" charset=\"utf-8\" src=\"'.$src.'\"></script>';\n\t}", "title": "" }, { "docid": "9cd00fbd3f8dec1aa688144e5c363255", "score": "0.5270103", "text": "function bimber_wc_comments_template() {\n\tif ( is_woocommerce() ) {\n\t\t// Disable Disqus.\n\t\tremove_filter( 'comments_template', 'dsq_comments_template' );\n\t}\n}", "title": "" }, { "docid": "b7babc41dddbca38c9e1efaee15fbde3", "score": "0.52681965", "text": "function is_comment_allowed() {\n\t\t\treturn $this->comments_allowed;\n\t\t}", "title": "" }, { "docid": "2e21e09c319711f0565f7a76b6b22bdb", "score": "0.5266334", "text": "function acceptComment() {\n \n $db = $this->getDb();\n \n $req = $db->prepare('UPDATE comments SET comment_status = \"1\" WHERE id_comment = :id_comment');\n $req->bindValue(':id_comment', $_SESSION['id_comment']);\n $req->execute(); \n }", "title": "" }, { "docid": "2a60f9afe32e717ae322a880946eb529", "score": "0.5253004", "text": "function thegeekieawards_comment( $comment, $args, $depth ) {\n\t$GLOBALS['comment'] = $comment;\n\tswitch ( $comment->comment_type ) :\n\t\tcase 'pingback' :\n\t\tcase 'trackback' :\n\t\t// Display trackbacks differently than normal comments.\n\t?>\n\t<li <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>\">\n\t\t<p><?php _e( 'Pingback:', 'thegeekieawards' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', 'thegeekieawards' ), '<span class=\"edit-link\">', '</span>' ); ?></p>\n\t<?php\n\t\t\tbreak;\n\t\tdefault :\n\t\t// Proceed with normal comments.\n\t\tglobal $post;\n\t?>\n\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n\t\t<article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n\t\t\t<header class=\"comment-meta comment-author vcard\">\n\t\t\t\t<?php\n\t\t\t\t\techo get_avatar( $comment, 44 );\n\t\t\t\t\tprintf( '<cite class=\"fn\">%1$s %2$s</cite>',\n\t\t\t\t\t\tget_comment_author_link(),\n\t\t\t\t\t\t// If current post author is also comment author, make it known visually.\n\t\t\t\t\t\t( $comment->user_id === $post->post_author ) ? '<span> ' . __( 'Post author', 'thegeekieawards' ) . '</span>' : ''\n\t\t\t\t\t);\n\t\t\t\t\tprintf( '<a href=\"%1$s\"><time datetime=\"%2$s\">%3$s</time></a>',\n\t\t\t\t\t\tesc_url( get_comment_link( $comment->comment_ID ) ),\n\t\t\t\t\t\tget_comment_time( 'c' ),\n\t\t\t\t\t\t/* translators: 1: date, 2: time */\n\t\t\t\t\t\tsprintf( __( '%1$s at %2$s', 'thegeekieawards' ), get_comment_date(), get_comment_time() )\n\t\t\t\t\t);\n\t\t\t\t?>\n\t\t\t</header><!-- .comment-meta -->\n\n\t\t\t<?php if ( '0' == $comment->comment_approved ) : ?>\n\t\t\t\t<p class=\"comment-awaiting-moderation\"><?php _e( 'Your comment is awaiting moderation.', 'thegeekieawards' ); ?></p>\n\t\t\t<?php endif; ?>\n\n\t\t\t<section class=\"comment-content comment\">\n\t\t\t\t<?php comment_text(); ?>\n\t\t\t\t<?php edit_comment_link( __( 'Edit', 'thegeekieawards' ), '<p class=\"edit-link\">', '</p>' ); ?>\n\t\t\t</section><!-- .comment-content -->\n\n\t\t\t<div class=\"reply\">\n\t\t\t\t<?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply', 'thegeekieawards' ), 'after' => ' <span>&darr;</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n\t\t\t</div><!-- .reply -->\n\t\t</article><!-- #comment-## -->\n\t<?php\n\t\tbreak;\n\tendswitch; // end comment_type check\n}", "title": "" }, { "docid": "328747a08f3284f624c81b8b8df2b5c6", "score": "0.52475417", "text": "function tpl_block_comments( $post, $status = 'approve' ) {\n\n\tglobal $user_identity;\n\n\t$required = get_option( 'require_name_email' );\n\n\ttpl('block','comments',array(\n\t\t'post' => $post,\n\t\t'comments' => get_comments(array(\n\t\t\t'post_id' => $post->ID,\n\t\t\t'status' => $status\n\t\t)),\n\t\t'user_identity' => $user_identity,\n\t\t'commenter' => wp_get_current_commenter(),\n\t\t'required' => $required,\n\t\t'aria_required' => $required ? ' aria-required=\"true\"' : ''\n\n\t));\n}", "title": "" }, { "docid": "b08dbd6249777419fe349f3d28803f2c", "score": "0.5241012", "text": "function sb_filter_comments_open($open, $post_id = 0)\n{\n\treturn FALSE;\n}", "title": "" }, { "docid": "6336f528982ac78463c1aff365b6503d", "score": "0.52341217", "text": "function comment_editor()\n\t{\n\t\t$ajax_url = $this->ajax_edit_url();\n\n$script = <<<CMT_EDIT_SCR\n$.fn.CommentEditor = function(options) {\n\n\tvar OPT;\n\n\tOPT = $.extend({\n\t\turl: \"{$ajax_url}\",\n\t\tcomment_body: '.comment_body',\n\t\tshowEditor: '.edit_link',\n\t\thideEditor: '.cancel_edit',\n\t\tsaveComment: '.submit_edit',\n\t\tcloseComment: '.mod_link'\n\t}, options);\n\n\tvar view_elements = [OPT.comment_body, OPT.showEditor, OPT.closeComment].join(','),\n\t\tedit_elements = '.editCommentBox',\n\t\tcsrf_token = '{csrf_token}';\n\n\treturn this.each(function() {\n\t\tvar id = this.id.replace('comment_', ''),\n\t\tparent = $(this);\n\n\t\tparent.find(OPT.showEditor).click(function(e) { e.preventDefault(); showEditor(id); });\n\t\tparent.find(OPT.hideEditor).click(function(e) { e.preventDefault(); hideEditor(id); });\n\t\tparent.find(OPT.saveComment).click(function(e) { e.preventDefault(); saveComment(id); });\n\t\tparent.find(OPT.closeComment).click(function(e) { e.preventDefault(); closeComment(id); });\n\t});\n\n\tfunction showEditor(id) {\n\t\t$(\"#comment_\"+id)\n\t\t\t.find(view_elements).hide().end()\n\t\t\t.find(edit_elements).show().end();\n\t}\n\n\tfunction hideEditor(id) {\n\t\t$(\"#comment_\"+id)\n\t\t\t.find(view_elements).show().end()\n\t\t\t.find(edit_elements).hide();\n\t}\n\n\tfunction closeComment(id) {\n\t\tvar data = {status: \"close\", comment_id: id, csrf_token: csrf_token};\n\n\t\t$.post(OPT.url, data, function (res) {\n\t\t\tif (res.error) {\n\t\t\t\treturn $.error('Could not moderate comment.');\n\t\t\t}\n\n\t\t\t$('#comment_' + id).hide();\n\t });\n\t}\n\n\tfunction saveComment(id) {\n\t\tvar content = $(\"#comment_\"+id).find('.editCommentBox'+' textarea').val(),\n\t\t\tdata = {comment: content, comment_id: id, csrf_token: csrf_token};\n\n\t\t$.post(OPT.url, data, function (res) {\n\t\t\tif (res.error) {\n\t\t\t\thideEditor(id);\n\t\t\t\treturn $.error('Could not save comment.');\n\t\t\t}\n\n\t\t\t$(\"#comment_\"+id).find('.comment_body').html(res.comment);\n\t\t\thideEditor(id);\n\t\t});\n\t}\n};\n\n\n$(function() { $('.comment').CommentEditor(); });\nCMT_EDIT_SCR;\n\n\t\t$script = ee()->functions->add_form_security_hash($script);\n\t\t$script = ee()->functions->insert_action_ids($script);\n\n\t\tee()->output->enable_profiler(FALSE);\n\t\tee()->output->set_header(\"Content-Type: text/javascript\");\n\n\t\tif (ee()->config->item('send_headers') == 'y')\n\t\t{\n\t\t\tee()->output->send_cache_headers(strtotime(APP_BUILD));\n\t\t\tee()->output->set_header('Content-Length: '.strlen($script));\n\t\t}\n\n\t\texit($script);\n\t}", "title": "" }, { "docid": "1930c4d417cc0375aa81cc1769c2341d", "score": "0.5221948", "text": "function ology_comment_links() {\n\n\tglobal $comment;\n\n\techo ology_open_markup( 'ology_comment_links', 'ul', array( 'class' => 'tm-comment-links uk-subnav uk-subnav-line' ) );\n\n\t\t// Reply.\n\t\techo get_comment_reply_link( array_merge( $comment->args, array(\n\t\t\t'add_below' => 'comment-content',\n\t\t\t'depth' => $comment->depth,\n\t\t\t'max_depth' => $comment->args['max_depth'],\n\t\t\t'before' => ology_open_markup( 'ology_comment_item[_reply]', 'li' ),\n\t\t\t'after' => ology_close_markup( 'ology_comment_item[_reply]', 'li' )\n\t\t) ) );\n\n\t\t// Edit.\n\t\tif ( current_user_can( 'moderate_comments' ) ) :\n\n\t\t\techo ology_open_markup( 'ology_comment_item[_edit]', 'li' );\n\n\t\t\t\techo ology_open_markup( 'ology_comment_item_link[_edit]', 'a', array(\n\t\t\t\t\t'href' => get_edit_comment_link( $comment->comment_ID ) // Automatically escaped.\n\t\t\t\t) );\n\n\t\t\t\t\techo ology_output( 'ology_comment_edit_text', esc_html__( 'Edit', 'ology' ) );\n\n\t\t\t\techo ology_close_markup( 'ology_comment_item_link[_edit]', 'a' );\n\n\t\t\techo ology_close_markup( 'ology_comment_item[_edit]', 'li' );\n\n\t\tendif;\n\n\t\t// Link.\n\t\techo ology_open_markup( 'ology_comment_item[_link]', 'li' );\n\n\t\t\techo ology_open_markup( 'ology_comment_item_link[_link]', 'a', array(\n\t\t\t\t'href' => get_comment_link( $comment->comment_ID ) // Automatically escaped.\n\t\t\t) );\n\n\t\t\t\techo ology_output( 'ology_comment_link_text', esc_html__( 'Link', 'ology' ) );\n\n\t\t\techo ology_close_markup( 'ology_comment_item_link[_link]', 'a' );\n\n\t\techo ology_close_markup( 'ology_comment_item[_link]', 'li' );\n\n\techo ology_close_markup( 'ology_comment_links', 'ul' );\n\n}", "title": "" }, { "docid": "bfc436ffaf8e3884c90a7d7f46fc4284", "score": "0.5220399", "text": "function qb_comments( $comment, $args, $depth ) {\r\n\t$GLOBALS['comment'] = $comment;\r\n\t//$avatar \t\t\t= get_avatar( $comment, 48 );\r\n\t$comment_author_id\t= get_comment( get_comment_ID() )->user_id;\r\n\t$comment_author_url\t= get_comment_author_url();\r\n\r\n\tif ( has_wp_user_avatar( $comment_author_id ) ) {\r\n\t\t//$avatar\t= get_wp_user_avatar_src( $comment_author_id, 48 );\r\n\t\t$avatar = get_wp_user_avatar( $comment_author_id, 48 );\r\n\t} else {\r\n\t\t//$avatar = get_bloginfo( 'template_url' ) . '/images/default/48.png';\r\n\t\t// temporary: this is the same for now, for testing; eventually, it should fall back to default image or Facebook image or smt else\r\n\t\t//$avatar\t= get_wp_user_avatar_src( $comment_author_id, 48 );\r\n\t\t$avatar = get_wp_user_avatar( $comment_author_id, 48 );\r\n\t}\r\n\t?>\r\n\r\n\t<li <?php get_comment_class(); ?>><?php\r\n\r\n\t\tif ( $comment_author_url ) {\r\n\t\t\techo '<a href=\"' . $comment_author_url . '\">' . $avatar . get_comment_author() . '</a>';\r\n\t\t} else {\r\n\t\t\techo $avatar . get_comment_author();\r\n\t\t}\r\n\r\n\t\techo '<time class=\"timeago\" datetime=\"' . get_comment_date( 'c' ) . '\">' . get_comment_date( 'F j, Y' ) . '</time>';\r\n\r\n\t\tcomment_text();\r\n\r\n\t\t//edit_comment_link( 'Edit', '<span class=\"edit\">', '</span>' );\r\n\t\tif ( $comment->comment_approved == '0' ) {\r\n\t\t\techo '<em class=\"moderate\">Your comment is awaiting moderation.</em>';\r\n\t\t}\r\n\r\n\t\t/*comment_reply_link(\r\n\t\t\tarray_merge(\r\n\t\t\t\t$args,\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'reply_text'\t=> 'Reply',\r\n\t\t\t\t\t'depth' \t\t=> $depth,\r\n\t\t\t\t\t'max_depth' \t=> $args['max_depth']\r\n\t\t\t\t)\r\n\t\t\t)\r\n\t\t);*/\r\n\techo '</li>';\r\n}", "title": "" }, { "docid": "e17b6fabfbfdd3053aa59b34e0e123d1", "score": "0.52093625", "text": "function zp_custom_comment_number( ){\n\tglobal $post;\n\t\t$num_comments = get_comments_number();\n\t\tif ( $num_comments == 0 ) {\n\t\t\t$comments = __('No Comments', 'eshop');\n\t\t} elseif ( $num_comments > 1 ) {\n\t\t\t$comments = $num_comments . __(' Comments','eshop' );\n\t\t} else {\n\t\t\t$comments = __('1 Comment','eshop' );\n\t\t}\n\treturn $comments;\n}", "title": "" }, { "docid": "9d81588eece4a5f4fcf373c41b510d63", "score": "0.5208918", "text": "function comments($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment; ?>\n\t<li <?php comment_class(); ?>>\n\t\t<article id=\"comment__<?php comment_ID(); ?>\" class=\"clearfix\">\n\t\t\t<header class=\"comment__author vcard\">\n\t\t\t <!-- custom gravatar call -->\n\t\t\t <?php\n\t\t\t \t// create variable\n\t\t\t \t$bgauthemail = get_comment_author_email();\n\t\t\t ?>\n\t\t\t <img data-gravatar=\"http://www.gravatar.com/avatar/<?php echo md5($bgauthemail); ?>?s=32\" class=\"load__gravatar avatar avatar__48 photo\" height=\"32\" width=\"32\" src=\"<?php echo get_template_directory_uri(); ?>/assets/img/nothing.gif\" />\n\t\t\t <!-- end custom gravatar call -->\n\t\t\t\t<?php printf(__('<cite class=\"custom__gravatar\">%s</cite>'), get_comment_author_link()) ?>\n\t\t\t\t<time datetime=\"<?php echo comment_time('Y-m-j'); ?>\"><a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php comment_time('F jS, Y'); ?> </a></time>\n\t\t\t\t<?php edit_comment_link(__('(Edit)', 'penrosetheme'),' ','') ?>\n\t\t\t</header>\n\t\t\t<?php if ($comment->comment_approved == '0') : ?>\n \t\t\t<div class=\"alert alert__info\">\n \t\t\t<p><?php _e('Your comment is awaiting moderation.', 'penrosetheme') ?></p>\n \t\t</div>\n\t\t\t<?php endif; ?>\n\t\t\t<section class=\"comment__content clearfix\">\n\t\t\t\t<?php comment_text() ?>\n\t\t\t</section>\n\t\t\t<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n\t\t</article>\n <!-- </li> is added by WordPress automatically -->\n<?php\n}", "title": "" }, { "docid": "cfe41b8627b807c2c9867d787b4d2145", "score": "0.5206267", "text": "function xgame_comment( $comment, $args, $depth ) {\n\t\t$GLOBALS['comment'] = $comment;\n\t\tswitch ( $comment->comment_type ) :\n\t\t\tcase 'pingback':\n\t\t\tcase 'trackback':\n\t?>\n\t\t<li class=\"post pingback\">\n\t\t\t<p><?php _e( 'Pingback:', 'xgame' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'xgame' ), '<span class=\"edit-link\">', '</span>' ); ?></p>\n\t<?php\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t?>\n\t\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n\t\t\t<article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n\t\t\t\t<footer class=\"comment-meta\">\n\t\t\t\t\t<div class=\"comment-author vcard\">\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t$avatar_size = ( '0' !== $comment->comment_parent ? 68 : 136 );\n\t\t\t\t\t\t\techo get_avatar( $comment, $avatar_size );\n\n\t\t\t\t\t\t\t/* translators: 1: comment author, 2: date and time */\n\t\t\t\t\t\t\tprintf( __( '%1$s, %2$s', 'xgame' ),\n\t\t\t\t\t\t\t\tsprintf( '<span class=\"fn\">%s</span>', get_comment_author_link() ),\n\t\t\t\t\t\t\t\tsprintf( '<a href=\"%1$s\"><time datetime=\"%2$s\">%3$s</time></a>',\n\t\t\t\t\t\t\t\t\tesc_url( get_comment_link( $comment->comment_ID ) ),\n\t\t\t\t\t\t\t\t\tget_comment_time( 'c' ),\n\t\t\t\t\t\t\t\t\t/* translators: 1: date, 2: time */\n\t\t\t\t\t\t\t\t\tsprintf( __( '%1$s ago', 'xgame' ), human_time_diff( get_comment_time( 'U' ), current_time( 'timestamp' ) ) )\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t?>\n\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\tedit_comment_link( __( 'Edit', 'xgame' ), '<span class=\"edit-link\">', '</span>' );\n\t\t\t\t\t\t?>\n\t\t\t\t\t</div><!-- .comment-author .vcard -->\n\n\t\t\t\t\t<?php if ( '0' === $comment->comment_approved ) : ?>\n\t\t\t\t\t\t<em class=\"comment-awaiting-moderation\"><?php _e( 'Your comment is awaiting moderation.', 'xgame' ); ?></em>\n\t\t\t\t\t\t<br />\n\t\t\t\t\t<?php endif; ?>\n\n\t\t\t\t</footer>\n\n\t\t\t\t<div class=\"comment-content\"><?php comment_text(); ?></div>\n\n\t\t\t\t<div class=\"reply\">\n\t\t\t\t\t<?php\n\t\t\t\t\t\tcomment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply', 'xgame' ) . ' <span>&darr;</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) );\n\t\t\t\t\t?>\n\t\t\t\t</div><!-- .reply -->\n\t\t\t</article><!-- #comment-## -->\n\n\t\t<?php\n\t\t\t\tbreak;\n\t\tendswitch;\n\n\t}", "title": "" }, { "docid": "a7b46e1694cce600f401ebeaedfde1d3", "score": "0.5202937", "text": "function shouldDisplayCommentContent($comment) {\n return $comment->SocialPermissions->isActive() ||\n ($comment->SocialPermissions->isPending() && ($comment->SocialPermissions->canUpdateStatus() || $comment->SocialPermissions->isAuthor())) ||\n ($comment->SocialPermissions->isSuspended() && $comment->SocialPermissions->canUpdateStatus());\n }", "title": "" }, { "docid": "8451add77ba5cf6f922c7e50f7756d37", "score": "0.519883", "text": "function commentsHere($opt = []){\n global $db,$settings,$user,$us_url_root;\n\n /** Get Comment Page info **/\n if(isset($opt['location'])){\n $id = 0;\n $com_location = $opt['location'];\n $com_location_id = $opt['location_id'];\n }else{\n if(!isset($opt['id'])){\n $id = getPageForComments();\n }else{\n $id = $opt['id'];\n }\n if($id == 0){\n echo \"This page id is not in the database\";\n exit();\n }\n $com_location = 0;\n $com_location_id = 0;\n }\n\n /** Get Current Page for Redirect **/\n $cur_page = currentPage();\n\n /** Get user permissions **/\n if(isset($user) && $user->isLoggedIn()){ $user_loggedin = true; }else{ $user_loggedin = false; }\n\n /** Check if Public Comments are Alllowed **/\n if($settings->cmntpub == 1){ $allow_comments = true; }else{ $allow_comments = false; }\n\n /** Check if Comments require Moderation **/\n if($settings->cmntapprvd == 1){\n $require_mod = true;\n $com_approved = 0;\n }else{\n $require_mod = false;\n $com_approved = 1;\n }\n\n /** Check to see if Users Must be logged in to post comments **/\n if($allow_comments == false){\n /** Make sure user is logged in **/\n if($user_loggedin == true){\n $ok_post = true;\n }else{\n $ok_post = false;\n }\n }else{\n /** Public Comments allowed **/\n $ok_post = true;\n }\n\n /** Check to see if user is submitting a comment **/\n if(!empty($_POST['submitComment']) && $ok_post == true){\n global $user;\n if(!$user || !$user->isLoggedIn()){\n $commentsUserId = 0;\n }else{\n $commentsUserId = $user->data()->id;\n }\n\n $com_content = Input::get('comment');\n if(empty($com_content)){\n $errors[]='Comment is Blank';\n }else{\n $fields = array(\n 'page'=>$id,\n 'location'=>$com_location,\n 'location_id'=>$com_location_id,\n 'user'=>$commentsUserId,\n 'comment'=>$com_content,\n 'approved'=>$com_approved\n );\n $db->insert('us_comments_plugin',$fields);\n if($require_mod == true){\n $successes[]='Comment Submitted and Waiting for Moderator Approval';\n }else{\n $successes[]='Comment Posted';\n }\n }\n }\n\n /** Check to see if user or mod is deleting a comment **/\n if(!empty($_POST['deleteComment']) && $ok_post == true){\n $token = $_POST['csrf'];\n if(!Token::check($token)){\n Redirect::to($abs_us_root.$us_url_root.'usersc/scripts/token_error.php');\n }\n $com_id = Input::get('com_id');\n $db->update('us_comments_plugin',$com_id,['deleted'=>1]);\n $successes[]='Comment Deleted';\n }\n\n /** Check to see if user is a Moderator **/\n if(isset($user) && $user->isLoggedIn()){\n $specQ = $db->query(\"SELECT id FROM users WHERE commentmod = 1 AND id = ? \", array($user->data()->id));\n $specC = $specQ->count();\n $user_mod_check = $specQ->results();\n}else{\n $specC = 0;\n}\n if(!empty($user_mod_check)){ $user_is_mod = true; }else{ $user_is_mod = false; }\n\n /** Check to see if mod is approving a comment **/\n if(!empty($_POST['approveComment']) && $ok_post == true && $user_is_mod == true){\n $token = $_POST['csrf'];\n if(!Token::check($token)){\n Redirect::to($abs_us_root.$us_url_root.'usersc/scripts/token_error.php');\n }\n $com_id = Input::get('com_id');\n $db->update('us_comments_plugin',$com_id,['approved'=>1]);\n $successes[]='Comment Approved';\n }\n\n /** Get csrf token for security **/\n $token = Token::generate();\n getPageForComments();\n?>\n<!-- Comments Display Body -->\n<style type=\"text/css\">\n.comment {\n\twhite-space: pre-line;\n\tdisplay: block;\n\tunicode-bidi: embed;\n}\n.comment-box {\n margin-top: 10px !important;\n}\n.comment-box img {\n width: 50px;\n height: 50px;\n}\n.comment-box .media-left {\n padding-right: 4px;\n width: 65px;\n}\n.comment-box .media-body p {\n padding: 2px;\n}\n.comment-box .media-body .media p {\n margin-bottom: 0;\n}\n.comment-box .media-heading {\n padding: 7px 10px;\n position: relative;\n margin-bottom: -1px;\n}\n.comment-box .media-body p {\n border: 1px solid;\n padding: 2px;\n}\n.comment-box .media-content {\n border: 1px solid;\n padding: 2px;\n}\n.comment-box .media-heading {\n border: 1px solid;\n}\n.media-content .comment {\n padding: 4px;\n}\n\n</style>\n<?php if(isset($errors) && !$errors=='') {?><?=display_errors($errors);?><?php } ?>\n<?php if(isset($successes) && !$successes=='') {?><?=display_successes($successes);?><?php } ?>\n<?php\n/** Check to see if user is logged in, and if public comments are allowed **/\nif($ok_post == true){\n?>\n<form class=\"\" action=\"\" method=\"post\">\n <input type=\"hidden\" value=\"<?=$token;?>\" name=\"csrf\">\n <textarea name=\"comment\" rows=\"4\" class=\"form-control\" placeholder=\"Leave a Comment\"></textarea><br>\n <input type=\"submit\" class='btn btn-success btn-sm' name=\"submitComment\" value=\"Post Comment\">\n</form>\n<?php\n}else{\n?>\n<a href=\"../users/login.php\">Login</a> to post comments.\n<?php\n}\n/** Get Comments **/\n/** Display all comments if user is mod **/\nif($user_is_mod == true){\n /** Get all comments **/\n if($com_location != '0'){\n $commentsQ = $db->query(\"SELECT * FROM us_comments_plugin WHERE location = ? AND location_id = ? AND deleted = 0 ORDER BY id DESC LIMIT 100\",array($com_location, $com_location_id));\n $commentsC = $commentsQ->count();\n $comments = $commentsQ->results();\n }else{\n $commentsQ = $db->query(\"SELECT * FROM us_comments_plugin WHERE page = ? AND deleted = 0 ORDER BY id DESC LIMIT 100\",array($id));\n $commentsC = $commentsQ->count();\n $comments = $commentsQ->results();\n }\n}else{\n if($com_location != 0){\n $commentsQ = $db->query(\"SELECT * FROM us_comments_plugin WHERE location = ? AND location_id = ? AND approved = 1 AND deleted = 0 ORDER BY id DESC LIMIT 100\",array($com_location, $com_location_id));\n $commentsC = $commentsQ->count();\n $comments = $commentsQ->results();\n }else{\n /** Get approved Comments **/\n $commentsQ = $db->query(\"SELECT * FROM us_comments_plugin WHERE page = ? AND approved = 1 AND deleted = 0 ORDER BY id DESC LIMIT 100\",array($id));\n $commentsC = $commentsQ->count();\n $comments = $commentsQ->results();\n }\n}\n\n/** Display Comments **/\nif($commentsC < 1){\n echo \"There are no comments. Leave one!\";\n}else{\n ?>\n <h3 align=\"center\">Comments</h3>\n\n <?php foreach($comments as $c){\n /** Check to see if comment is approved - if not then if Mod display approval/delete buttons **/\n if($c->approved == 0){\n $com_not_approved = true; $com_mod_style = 'bg-danger';\n }else{\n $com_not_approved = false; $com_mod_style = '';\n }\n ?>\n <div class='media comment-box'>\n <?php\n $thatUserQ = $db->query(\"SELECT * FROM users WHERE id = ?\",array($c->user));\n $thatUserC = $thatUserQ->count();\n if($thatUserC > 0){\n $thatUser = $thatUserQ->first();\n $grav = get_gravatar(strtolower(trim($thatUser->email)));\n \t$useravatar = '<img src=\"'.$grav.'\" class=\"img img-thumbnail img-fluid rounded\">';\n }\n ?>\n <div class='media-left'>\n <?php\n if($thatUserC > 0){\n if(pluginActive('profile_pic',true) && $thatUser->profile_pic != ''){ ?>\n <img src=\"<?=$us_url_root?>usersc/plugins/profile_pic/files/<?=$thatUser->profile_pic?>\" class=\"img-thumbnail\">\n <?php }else{\n echo $useravatar;\n }\n }\n ?>\n </div>\n <div class='media-body text-break'>\n <div class='media-heading bg-dark'>\n <a href=\"#\"><strong><?php echouser($c->user);?></strong></a>\n <font class='text-muted' size='1'><?php echo time2str($c->timestamp); ?></font>\n </div>\n <div class='media-content <?=$com_mod_style?>'>\n <div class='comment'><?=$c->comment?></div>\n <?php\n /** Display Approve Button if Mod and not approved **/\n if($user_is_mod == true && $com_not_approved == true){\n echo \"\n <strong><font color='red'>Comment Waiting for Approval!</font></strong><Br>\n <form class='' action='' method='post' style='display:inline'>\n <input type='hidden' value='$token' name='csrf'>\n <input type='hidden' value='$c->id' name='com_id'>\n <input type='submit' class='btn btn-sm btn-link' name='approveComment' value='Approve'>\n </form>\n \";\n }\n /** Display Delete Button if Mod or Owner **/\n if($user_loggedin == true && ($user_is_mod == true || $c->user == $user->data()->id)){\n echo \"\n <form class='' action='' method='post' style='display:inline'>\n <input type='hidden' value='$token' name='csrf'>\n <input type='hidden' value='$c->id' name='com_id'>\n <input type='submit' class='btn btn-sm btn-link' name='deleteComment' value='Delete'>\n </form>\n \";\n }\n ?>\n </div>\n </div>\n </div>\n <?php } ?>\n\n <?php\n}\n}", "title": "" }, { "docid": "979b6ea6a9182cfe45b3b5dddcf2b439", "score": "0.5189438", "text": "function alba_theme_comment($comment, $args, $depth) {\n //echo 's';\n $GLOBALS['comment'] = $comment; ?>\n <li class=\"media\">\n <?php echo get_avatar($comment,$size='45' ); ?>\n\n <div class=\"media-body\">\n <h5 class=\"my-0\"><?php printf( esc_html__('%s','alba'), get_comment_author_link()) ?></h5><span><?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> </span>\n <time class=\"small\" datetime=\"<?php $d = \"F d , Y\"; printf(get_comment_date($d)) ?>\"><?php $d = \"F d , Y\"; printf(get_comment_date($d)) ?></time>\n<div class=\"comment_right\">\n <p> <?php comment_text() ?></p>\n </div>\n </div>\n </li>\n<?php\n}", "title": "" }, { "docid": "b26498755f5f64da3207cbff36acf6e6", "score": "0.5180796", "text": "public function setComment($comment);", "title": "" }, { "docid": "6f35ebb6bc533d54f42a627559600b55", "score": "0.5180508", "text": "function exultic_comment($comment, $args, $depth ) {\r\n\t$GLOBALS['comment'] = $comment;\r\n\tswitch ($comment->comment_type ) {\r\n\t\tcase'':\r\n\t?>\r\n <li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\r\n <div id=\"comment-<?php comment_ID(); ?>\">\r\n <div class=\"comment-gravatar\"><?php echo get_avatar($comment, 65 ); ?></div>\r\n\t\t\r\n <div class=\"comment-body\">\r\n <div class=\"comment-meta commentmetadata\"> \r\n <?php printf( __('%s', 'exultic'), sprintf('<cite class=\"fn\">%s</cite>', get_comment_author_link() ) ); ?>\r\n \r\n <span class=\"comment-date\"><?php comment_date('d.m.Y') ?></span><br>\r\n <span class=\"comment-time\"><?php comment_time() ?></span>\r\n </div>\r\n\r\n <?php comment_text(); ?>\r\n\t\t\r\n <?php if($comment->comment_approved =='0') : ?>\r\n <p class=\"moderation\"><?php _e('Your comment is awaiting moderation.', 'exultic'); ?></p>\r\n <?php endif; ?>\r\n\r\n <div class=\"reply\">\r\n <?php comment_reply_link( array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\r\n \r\n </div>\r\n <?php edit_comment_link( __('[edit]', 'exultic'), ''); ?>\t\r\n\t\t\r\n </div>\r\n\t\t\r\n </div>\r\n\r\n <?php\r\n break;\r\n case'pingback' :\r\n case'trackback':\r\n ?>\r\n <li class=\"post pingback\">\r\n <p><?php _e('Pingback:', 'exultic'); ?> <?php comment_author_link(); ?><?php edit_comment_link( __('[edit]', 'exultic'), ''); ?></p>\r\n <?php\r\n break;\r\n }\r\n}", "title": "" }, { "docid": "6d511cfddf2de63b3b0e35f53d35c0a1", "score": "0.51766425", "text": "public function CommentAction( $content, $userId, $tags) {\r }", "title": "" }, { "docid": "dd86269d30460743243b5b1d19ef07ea", "score": "0.5175214", "text": "function tab_content_comments ( $limit, $image_dimension ) {\n global $wpdb;\n $html = '';\n\n $comments = get_comments( array( 'number' => $limit, 'status' => 'approve' ) );\n if ( $comments ) {\n $html .= '<ul class=\"comments\">' . \"\\n\";\n foreach( $comments as $c ) {\n $html .= '<li>' . \"\\n\";\n $html .= get_avatar( $c, 45 );\n $html .= '<a title=\"' . esc_attr( $c->comment_author . ' ' . __( 'on', 'fstpack' ) . ' ' . get_the_title( $c->comment_post_ID ) ) . '\" href=\"' . esc_url( get_comment_link( $c->comment_ID ) ) . '\">' . esc_html( $c->comment_author ) . '</a>' . \"\\n\";\n $html .= '<span class=\"comment-content\">' . stripslashes( substr( esc_html( $c->comment_content ), 0, 50 ) ) . '</span>' . \"\\n\";\n $html .= '</li>' . \"\\n\";\n }\n $html .= '</ul>' . \"\\n\";\n }\n\n return $html;\n }", "title": "" }, { "docid": "3a329fae8264de009a53fe15572051ed", "score": "0.51751184", "text": "function face_comments( $comment, $args, $depth ) {\n $GLOBALS['comment'] = $comment; ?>\n <div id=\"comment-<?php comment_ID(); ?>\" <?php comment_class('cf'); ?>>\n <article class=\"cf\">\n <header class=\"comment-author vcard\">\n <?php\n /*\n this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call:\n echo get_avatar($comment,$size='32',$default='<path_to_url>' );\n */\n ?>\n <?php // custom gravatar call ?>\n <?php\n // create variable\n $bgauthemail = get_comment_author_email();\n ?>\n <img data-gravatar=\"http://www.gravatar.com/avatar/<?php echo md5( $bgauthemail ); ?>?s=40\" class=\"load-gravatar avatar avatar-48 photo\" height=\"40\" width=\"40\" src=\"<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif\" />\n <?php // end custom gravatar call ?>\n <?php printf(__( '<cite class=\"fn\">%1$s</cite> %2$s', 'facetheme' ), get_comment_author_link(), edit_comment_link(__( '(Edit)', 'facetheme' ),' ','') ) ?>\n <time datetime=\"<?php echo comment_time('Y-m-j'); ?>\"><a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php comment_time(__( 'F jS, Y', 'facetheme' )); ?> </a></time>\n\n </header>\n <?php if ($comment->comment_approved == '0') : ?>\n <div class=\"alert alert-info\">\n <p><?php _e( 'Your comment is awaiting moderation.', 'facetheme' ) ?></p>\n </div>\n <?php endif; ?>\n <section class=\"comment_content cf\">\n <?php comment_text() ?>\n </section>\n <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n </article>\n <?php // </li> is added by WordPress automatically ?>\n<?php\n}", "title": "" }, { "docid": "a8b02704540f97583ccbfa1a311aec22", "score": "0.5172094", "text": "function cleanfotografie_entry_comment() {\n\techo '<span class=\"comments-link\">';\n\tcomments_popup_link( esc_html__( 'Leave a comment', 'clean-fotografie' ), esc_html__( '1 Comment', 'clean-fotografie' ), esc_html__( '% Comments', 'clean-fotografie' ) );\n\techo '</span>';\n}", "title": "" } ]
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "a433e4db90e8b2bc1724f47789dc0d06", "score": "0.0", "text": "public function edit($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "ba00ae66e85d515739d2e3ad614735cb", "score": "0.7892186", "text": "public function edit(Resource $resource) {\n return view('admin.resources.update', [\n 'resource' => $resource,\n ]);\n }", "title": "" }, { "docid": "6f20a1779e33227cfc4451ace6ab29af", "score": "0.7699498", "text": "public function edit(resource $resource)\n {\n //\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.7693446", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "1d94403d2acd74d9393297956ff20089", "score": "0.761828", "text": "function edit()\n {\n $this->_form('edit');\n }", "title": "" }, { "docid": "8036d8b9819aa701c22431a726cf0650", "score": "0.72270334", "text": "public function editAction()\n {\n $page = $this->_helper->db->findById();\n $form = $this->_getForm($page);\n $this->view->form = $form;\n $this->_processFieldForm($page, $form, 'edit');\n }", "title": "" }, { "docid": "c99eb92b2f68bf84003855d0f37cad8c", "score": "0.7106957", "text": "public function edit($id)\n\t{\n\t\t$resource = Resources::find($id);\n\t\tif (is_null($resource))\n\t\t{\n\t\t\treturn Redirect::route('secureadmin.resources.index');\n\t\t}\n\t\treturn View::make('secureadmin.resources.edit', compact('resource'));\n \n\t}", "title": "" }, { "docid": "a31e023b1fc8db49c8ba300ea164e563", "score": "0.7042168", "text": "public function editAction()\n {\n $term = $this->_helper->db->findById();\n $this->view->form = $this->_getForm($term);\n $this->_processPageForm($term, 'edit');\n }", "title": "" }, { "docid": "7baaec18e51362dc6376494a199472cb", "score": "0.70408624", "text": "public function edit($id)\n {\n if (is_null($this->resource)) {\n return view('admin.errors.unresolved-resource');\n }\n\n $className = Manager::getResourceClass($this->resource);\n\n $model = $className::find($id);\n\n if (is_null($model)) {\n return view('admin.errors.inexistent-model');\n }\n\n return view(Manager::resolveResourceView($this->resource, 'edit'), [\n 'resource' => $this->resource,\n 'model' => $model,\n 'action' => 'update',\n 'token' => csrf_token()\n ]);\n }", "title": "" }, { "docid": "5a02684925f991ee39abcb153d80d058", "score": "0.7009886", "text": "public function edit()\r\n {\r\n return view('hr::edit');\r\n }", "title": "" }, { "docid": "f457a7aac87ab5b3de5b0f6358698582", "score": "0.6953053", "text": "public function edit(Form $form)\n {\n \n }", "title": "" }, { "docid": "38b4c2bcc5d6f933f82442e502068ae3", "score": "0.6946892", "text": "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "title": "" }, { "docid": "de51e28e1cd4ca0b702510f31a890083", "score": "0.6890537", "text": "function edit_quiz_resource($id_quiz_resource) {\n if (!$this->ion_auth->logged_in()) {\n redirect();\n } else {\n $temp = $this->model_quiz->select_quiz_resource_by_id($id_quiz_resource)->row();\n $data['title'] = $temp->title;\n $data['description'] = $temp->description;\n $data['show'] = $temp->show;\n $data['id_quiz_resource'] = $id_quiz_resource;\n\n $this->load->view('quiz/form_edit_quiz_resource', $data);\n }\n }", "title": "" }, { "docid": "817360c379f8b1ec2b8f9a122de58d2d", "score": "0.68691325", "text": "function edit(){\n\t\t$id = $this->input->get('id');\n\t\t$data = array();\n\t\t$data['title']\t\t= 'Edit '.$this->title;\n\t\t$data['controller']\t= $this->controller;\n\t\t$data['state']\t\t= 'edit';\n\t\t$data['id'] \t\t= $id;\n\n\t\t// because it's simple index and form, use common form\n\t\t$data['table_field'] = $this->ipk->table_field;\n\t\t$data['primary_key'] = $this->ipk->primary_key;\n\t\t$data['content']\t= 'content/common/form';\n\t\t$data['datas'] = $this->ipk->get(decrypt_id($id));\n\n\t\t$data['datas'] = $this->ipk->reformat_sql_to_form($data['datas']);\n\n\t\t$this->template($data);\n\t}", "title": "" }, { "docid": "6c233bfe3c56ffa57401216d102fe97a", "score": "0.6857624", "text": "public function edit($id)\n {\n $this->show($id);\n }", "title": "" }, { "docid": "a695b4f4340bb78a765476c7a7b02c4c", "score": "0.6837069", "text": "public function edit()\n {\n return view('clientapp::edit');\n }", "title": "" }, { "docid": "8fc05e7ee75d6832d8a160b41adfb194", "score": "0.6834344", "text": "public function editAction(){\n return $formResponse = $this->FormManager()->process(\n $this,\n new \\ZendCommerce\\Common\\Model\\FormOperation(\n $this->getFormOperationDefinition()\n )\n );\n }", "title": "" }, { "docid": "c4d03e67f990c37b8eb676c851ca4a4d", "score": "0.6830173", "text": "public function edit($id)\n {\n $item = \\App\\Form::find($id);\n return view('admin.form.edit',[\n 'item' => $item,\n ]);\n }", "title": "" }, { "docid": "7a371c130868901633e4849cba486699", "score": "0.6819266", "text": "public function edit($id)\n\t{\n\t\t$product = Product::find($id);\n if (is_null ($product)) {\n App::abort(404);\n }\n return View::make('business/products/form')->with('product', $product);\n\t}", "title": "" }, { "docid": "4ef09bf2e2f9d9322bedfcd1819a1801", "score": "0.68112475", "text": "public function editAction() {\n $id = filter_input(INPUT_POST, 'o_id');\n $product = Object_Abstract::getById($id);\n $this->view->product = $product;\n }", "title": "" }, { "docid": "a7f6bb1c17e099bebaaeaa8fa4992420", "score": "0.6797452", "text": "public function edit($id) {\n $object = Entity::findOrFail($id);\n return View::make('admin.' . $this->path . '.edit')->with('object', $object);\n }", "title": "" }, { "docid": "231882e93a58215aa3b11a974a66292d", "score": "0.67936623", "text": "public function edit()\n {\n return view('admin::edit');\n }", "title": "" }, { "docid": "231882e93a58215aa3b11a974a66292d", "score": "0.67936623", "text": "public function edit()\n {\n return view('admin::edit');\n }", "title": "" }, { "docid": "8556aaf7cff24f5e410f81955fa32806", "score": "0.67907083", "text": "public function edit()\n {\n return view('spk::edit');\n }", "title": "" }, { "docid": "6c1f157ed1e542e35be21641e6fe4291", "score": "0.67857856", "text": "public function edit(Entity $entity)\n\t{\n\t\treturn view( 'entities.edit', compact( 'entity' ) );\n\t}", "title": "" }, { "docid": "9341e591311afec65c0cf3045ad076a9", "score": "0.67619574", "text": "public function edit($identifier)\n {\n if ($this->permissions['update'] != '' && !\\Auth::user()->hasPermissionTo($this->permissions['update'])) {\n flash(trans('core::core.you_dont_have_access'))->error();\n return redirect()->route($this->routes['index']);\n }\n\n $repository = $this->getRepository();\n\n $entity = $repository->find($identifier);\n\n $this->entity = $entity;\n\n if (empty($entity)) {\n flash(trans('core::core.entity.entity_not_found'))->error();\n\n return redirect(route($this->routes['index']));\n }\n\n if ($this->blockEntityOwnableAccess()) {\n flash(trans('core::core.you_dont_have_access'))->error();\n return redirect()->route($this->routes['index']);\n }\n\n $updateForm = $this->form($this->formClass, [\n 'method' => 'PATCH',\n 'url' => route($this->routes['update'], $entity),\n 'id' => 'module_form',\n 'model' => $entity\n ]);\n\n $updateView = $this->views['edit'];\n\n $this->entity = $entity;\n\n $view = view($updateView);\n $view->with('form_request', $this->storeRequest);\n $view->with('entity', $entity);\n $view->with('show_fields', $this->showFields);\n $view->with('sectionButtons', $this->sectionButtons);\n\n\n $view->with('form', $updateForm);\n\n return $view;\n }", "title": "" }, { "docid": "c41a659c6811677b0b43a9144fd42379", "score": "0.67613775", "text": "public function edit($id)\n\t{\n\t\t$project = Project::find($id);\t\t\t\t\t\n\t\treturn View::make('project.form')->with('project', $project);\t\t\t\t\t\t\t\t\t\t\n\t}", "title": "" }, { "docid": "5d7bee078a1572f61b7e28dcc2ac5c36", "score": "0.6755102", "text": "public function edit($id)\n {\n $user = auth()->user();\n\n $id = Crypt::decrypt($id);\n\n $form = Form::where(['user_id' => $user->id, 'id' => $id])->firstOrFail();\n\n $pageTitle = 'Edit Form';\n\n $saveURL = route('formbuilder::forms.update', $form);\n\n // get the roles to use to populate the make the 'Access' section of the form builder work\n $form_roles = Helper::getConfiguredRoles();\n\n return view('Forms.edit', compact('form', 'pageTitle', 'saveURL', 'form_roles'));\n }", "title": "" }, { "docid": "af1ae147b46a5dbc0c8b9ec58527eeb0", "score": "0.6747543", "text": "public function edit()\n {\n return view('catalog::edit');\n }", "title": "" }, { "docid": "057b48bb7cf2107466c426e2c9e428fe", "score": "0.67463523", "text": "public function edit(form $form)\n {\n //\n }", "title": "" }, { "docid": "6c156cf995c4d50636dfb4550651518b", "score": "0.674307", "text": "public function edit()\n {\n return view('purchaserequest::edit');\n }", "title": "" }, { "docid": "444f98d0090cda3d8ec6a32c569483fe", "score": "0.6731936", "text": "public function edit()\n {\n return view('item::edit');\n }", "title": "" }, { "docid": "a18df7fa246cdc38054b7905a9bcfb6f", "score": "0.673143", "text": "public function edit($id) {\n\n $checkrights = \\App\\Models\\Admin::checkPermission(\\App\\Models\\Admin::$EDIT_CRON);\n\n if ($checkrights) {\n return $checkrights;\n }\n\n $formObj = $this->modelObj->find($id);\n\n if (!$formObj) {\n abort(404);\n }\n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \" . $this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText . \".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\";\n\n return view($this->moduleViewName . '.add', $data);\n }", "title": "" }, { "docid": "9b1fce8c32438e8cd4b5e3dd43e195df", "score": "0.6730314", "text": "public function edit()\n {\n return view('partner::edit');\n }", "title": "" }, { "docid": "36e81b336316946d6eebd6bc3678ef52", "score": "0.672446", "text": "public function edit($id)\r\n {\r\n return view('superadmin::edit');\r\n }", "title": "" }, { "docid": "5c67586ee68b758ffb35f2cbc6d5b38a", "score": "0.67243785", "text": "public function edit($id)\n {\n //@todo here and the view\n }", "title": "" }, { "docid": "23dadaa6b2b77d4862c924bed4317349", "score": "0.6718896", "text": "public function edit($id)\n\t{\n\t\t$item = $this->object->with($this->relations)->where('id', $id)->firstOrFail();\n\n\t\tFormer::populate($item);\n\t\tFormer::withRules($this->getRules());\n\n\t\treturn View::make('conferencer::admin.' .$this->namespace. '.create')\n\t\t\t->with('item', $item);\n\t}", "title": "" }, { "docid": "8524a51e55f52d742bd04ba646a0cc54", "score": "0.67154294", "text": "public function edit($id)\n\t{\n\t\treturn view('angular.field.edit')->with('field', Field::find($id));\n\t}", "title": "" }, { "docid": "b3a17e5117200de0a9bc5597a7a160d5", "score": "0.6714851", "text": "public function edit($id) {\n return view('frontend.'.$this->folder.'.edit');\n }", "title": "" }, { "docid": "6c5ab41883f9c63e9d204b41b416cfbe", "score": "0.6706786", "text": "public function editForm() {\n\t\t$layout = $this->input->get('layout', null, 'string');\n\t\t$nameModelForm = (empty($layout)) ? $this->nameKey.'form' : $layout.'form';\n\t\t$layout = (empty($layout)) ? 'edit' : 'edit_'.$layout; //EcDebug::log($layout, __method__);\n\t\t$view = $this->getView($this->default_view, \n\t\t\tJFactory::getDocument()->getType(), '', array('layout' => $layout));\n\t\t$view->setModel($this->getModel($this->nameKey));\n\t\t$view->setModel($this->getModel($nameModelForm));\n\t\t$view->editForm();\n\t}", "title": "" }, { "docid": "ec8462a847e6da7c744621b95e55e354", "score": "0.6688819", "text": "public function edit($id)\n\t{\n\t\t$formMode = GlobalsConst::FORM_EDIT;\n\t\t$user = User::find($id);\n\t\treturn View::make('users.edit')->nest('_form','users.partials._form',compact('formMode','user'));\n\t}", "title": "" }, { "docid": "c674456a3a2c3e7eaae1d581b5193627", "score": "0.66819197", "text": "public function edit($id)\n\t{\n\t\t$entity = Umbrella::find($id);\n\t\treturn view('partner.umbrella.edit', ['entity' => $entity]);\n\t}", "title": "" }, { "docid": "ac8f085fa840d486f8d59d14411a0385", "score": "0.6672867", "text": "public function edit(Form $form)\n {\n return view('iforms::admin.forms.edit', compact('form'));\n }", "title": "" }, { "docid": "4cff7330fb7639f41f48bfd168776ed8", "score": "0.66644543", "text": "public function editAction()\n {\n $search = $this->_helper->db->findById();\n $this->view->form = $this->_getForm($search);\n $this->_processCatalogSearchForm($search, 'edit');\n }", "title": "" }, { "docid": "fa330dea11d4ceb5de51306745584597", "score": "0.66640455", "text": "public function edit($id)\n {\n $this->checkRole();\n\n //\tGet the model instance\n $model = $this->getModelInstance($id);\n\n //\tGet all the fields wich will be shown in the edit form\n $fields = new RenderDetail($this->getFieldsForEdit());\n\n //\tRender the view\n return view('crud::templates.edit', $this->parseViewData(compact('model', 'fields')));\n }", "title": "" }, { "docid": "c23aa59da02ffaff80b50d5fe993ac20", "score": "0.66602963", "text": "public function edit($id)\n {\n $record = Parentt::find($id);\n return view('studentAffairs\\student\\create&edit_student', compact('record'));\n }", "title": "" }, { "docid": "1e640024572be6feda125ecd9457ecd2", "score": "0.6658405", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('AVBundle:Reto')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Reto entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('AVBundle:Reto:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "104ea06ce41e3f1bf43db0097da1535b", "score": "0.66549915", "text": "public function editAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$id = $this->_request->getParam('id'); \n\t\t$this->view->data = $model->getContent($id);\n\t }", "title": "" }, { "docid": "d33a07845d905f66518d6d6763c5bac0", "score": "0.6649905", "text": "public function editAction($id)\n {\n \n\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('SrpvProtocolizacionBundle:Oficina')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Oficina entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('SrpvAdminBundle:Oficina:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "28b5f6da3a8cb9d992528f53b99c70ae", "score": "0.6646471", "text": "public function editAction($id)\r\n {\r\n $em = $this->getDoctrine()->getManager();\r\n $entity = $em->getRepository('fidiEcommerceBundle:Promo')->find($id);\r\n if (!$entity) {\r\n throw $this->createNotFoundException('Entité évènement non trouvée.');\r\n }\r\n $editForm = $this->createEditForm($entity);\r\n $deleteForm = $this->createDeleteForm($id);\r\n return $this->render('fidiEcommerceBundle:Administration:Promo/layout/edit.html.twig', array(\r\n 'entity' => $entity,\r\n 'edit_form' => $editForm->createView(),\r\n 'delete_form' => $deleteForm->createView(),\r\n ));\r\n }", "title": "" }, { "docid": "7aad47d22925f5965c8ba3723cf17bc6", "score": "0.6644796", "text": "public function edit()\n\t {\n\t \t\t$clientID = Input::get('clientID');\n\t \t\treturn View::make('edit.update');\n\t }", "title": "" }, { "docid": "13bb58ad7c61c9444df16430ac8bde95", "score": "0.66447717", "text": "public function edit($id)\n {\n //\n $url = \"program_update\";\n $program = Program::where('id_program', $id)->first();\n return view('master.program.form', compact('program', 'url'));\n }", "title": "" }, { "docid": "56e8e9b08c0406905beb3036122cd7af", "score": "0.6644097", "text": "public function edit()\n {\n return view('home::edit');\n }", "title": "" }, { "docid": "726fbec6ca5fcc7025d5ad34f1a23ae4", "score": "0.66306216", "text": "public function edit($id)\n\t{\n\t\treturn $this->view('product.edit', []);\n\t}", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.6629497", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.6629497", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "728e06e03d9c69b99cb774080f4aeedc", "score": "0.66255856", "text": "public function edit($id)\n {\n \t$decode = Hashids::decode($id)[0];\n $recipe = Recipe::find($decode);\n\n $formAction = action('RecipeController@update', $id);\n return view(\"backend/recipes/form\", compact('recipe', 'formAction'));\n }", "title": "" }, { "docid": "ba226cc5cbe521fc1ec6d9737f556687", "score": "0.6619321", "text": "public function edit(Entity $entity)\n {\n return view('actions.entity.edit', compact('entity'));\n }", "title": "" }, { "docid": "472228351e7887542be13d4c2080e6b7", "score": "0.6615089", "text": "public function actionEdit()\n {\n return $this->render('index');\n }", "title": "" }, { "docid": "ed2b2f4ad09fa837c01addc64ae2c574", "score": "0.6613416", "text": "public function edit($id)\n {\n //\n\n $book = Book::find($id);\n return view('kelola_buku.form_edit',compact('book'));\n\n }", "title": "" }, { "docid": "66837fc9fc0ee5928b83285bf597aa8d", "score": "0.661021", "text": "public function edit($id)\n\t{\n // get the show\n\t\t$show = Show::find($id);\n\n\t\t// show the edit form and pass the nerd\n\t\treturn View::make('shows.edit')\n\t\t\t->with('show', $show);\n\t}", "title": "" }, { "docid": "035eb13b2ca5fd52c8005c0d17b6d221", "score": "0.6610172", "text": "public function edit()\n {\n return view('dashboard::edit');\n }", "title": "" }, { "docid": "fb75ecb723bf601f0c220bda3e7a2405", "score": "0.6609937", "text": "public function edit($id);", "title": "" }, { "docid": "fb75ecb723bf601f0c220bda3e7a2405", "score": "0.6609937", "text": "public function edit($id);", "title": "" }, { "docid": "fb75ecb723bf601f0c220bda3e7a2405", "score": "0.6609937", "text": "public function edit($id);", "title": "" }, { "docid": "fb75ecb723bf601f0c220bda3e7a2405", "score": "0.6609937", "text": "public function edit($id);", "title": "" }, { "docid": "fb75ecb723bf601f0c220bda3e7a2405", "score": "0.6609937", "text": "public function edit($id);", "title": "" }, { "docid": "fb75ecb723bf601f0c220bda3e7a2405", "score": "0.6609937", "text": "public function edit($id);", "title": "" }, { "docid": "4a58f356a8d049651b8ab4fb9678c3e0", "score": "0.66074497", "text": "public function edit($id)\n {\n $className = $this->modelClass;\n $model = $className::findOrFail($id);\n \n return view('admin.update')\n ->with('pageTitle', $this->pageTitle)\n ->with('secondTitle', $this->secondTitle)\n ->with('updateTitle', $this->updateTitle)\n ->with('urlName', $this->urlName)\n ->with('fields', $this->fields)\n ->with('model', $model);\n }", "title": "" }, { "docid": "4c5588355977302054cfd9b100838cb9", "score": "0.6605141", "text": "public function edit($id)\n {\n\t\t$sRow = \\App\\Models\\Master\\SMD\\Owner::find($id);\n\t\treturn view('Master.SMD.owner_form')->with( array('sRow'=>\t$sRow, 'sShow'=> false) );\n }", "title": "" }, { "docid": "dfbae1c76e8376876e167bfdda34a588", "score": "0.6602554", "text": "public function edit($entity);", "title": "" }, { "docid": "087b45daa3af8c19f727d1f3385fe015", "score": "0.6601881", "text": "public function showEdit($id) {\n //\n }", "title": "" }, { "docid": "2a47ad7ce79b806f24d1a15c7fc9c440", "score": "0.6598295", "text": "public function edit($id)\n {\n return view('frontend::edit');\n }", "title": "" }, { "docid": "8259db386503d6eae96505af980a406f", "score": "0.65979", "text": "public function edit()\n {\n return view('basajax::edit');\n }", "title": "" }, { "docid": "8cb14fe6247e5b9988a5ac22e2f4f5db", "score": "0.65955967", "text": "public function edit()\n {\n return view('page::edit');\n }", "title": "" }, { "docid": "740a6ee4ee5d75e1d22a5d50c92d7a7d", "score": "0.65930474", "text": "public function edit()\n {\n // will be shown by angular\n }", "title": "" }, { "docid": "e77b4a1d450f192da67f95bae41d70d2", "score": "0.65893835", "text": "public function edit()\n {\n return view('shopify::edit');\n }", "title": "" }, { "docid": "34a5f2387b26650a994b3549c4251646", "score": "0.6585542", "text": "protected function editAction()\n {\n $this->editAction\n ->setAccess($this, Access::CAN_EDIT)\n ->execute($this, UserEntity::class, UserActionEvent::class, NULL, __METHOD__, [], ['user_id' => $this->thisRouteID()])\n ->render()\n ->with(['user' => $this->toArray($this->findOr404())])\n ->form($this->formUser)\n ->end();\n }", "title": "" }, { "docid": "4ee5eaeb20875ab52fdae081c9bf480a", "score": "0.6581471", "text": "public function edit($id){\n return $this->model->getForm('edit', $id);\n }", "title": "" }, { "docid": "c2b3a157b59989df8794ae251941ad58", "score": "0.6579401", "text": "public function edit($id)\n {\n $project = Project::withTrashed()->where('id', $id)->first();\n $form = new AdministrationForm();\n $form->route(Administration::route('projects.update', $project->id));\n $form->form(ProjectForm::class);\n $form->model($project);\n $form->method('PUT');\n\n Breadcrumbs::register('administration', function ($breadcrumbs) {\n $breadcrumbs->parent('base');\n $breadcrumbs->push(trans('projects::admin.module_name'), Administration::route('projects.index'));\n $breadcrumbs->push(trans('administration::admin.edit'));\n });\n\n Administration::setTitle(trans('projects::admin.module_name') . ' - ' . trans('administration::admin.edit'));\n\n return $form->generate();\n }", "title": "" }, { "docid": "e3ab1d1abd4a651c9d5aa4d8d1dfb2b4", "score": "0.6575369", "text": "public function edit($id) {\n\t\t//\n\t\t$this->product = $this->product->find($id);\n\t\treturn View::make('products.edit')->withProduct($this->product);\n\t}", "title": "" }, { "docid": "bf3f13b2122423abdd69599faa2c05bb", "score": "0.6574471", "text": "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('FundeuisEducacionBundle:Programaacademico')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Programaacademico entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('FundeuisEducacionBundle:Programaacademico:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "bd5eb4f99db773898848f68b64807602", "score": "0.6573885", "text": "public function edit($id)\n {\n // busca regstro\n $this->repository->findOrFail($id);\n \n // autorizacao\n $this->repository->authorize('update');\n \n // breadcrumb\n $this->bc->addItem($this->repository->model->produto->produto, url('produto', $this->repository->model->produto->codproduto));\n $this->bc->header = $this->repository->model->descricao;\n $this->bc->addItem($this->repository->model->descricao);\n $this->bc->addItem('Alterar');\n \n // retorna formulario edit\n return view('produto-embalagem.edit', ['bc'=>$this->bc, 'model'=>$this->repository->model]);\n }", "title": "" }, { "docid": "87f80527ccf944a69125ffa41418e52d", "score": "0.6570687", "text": "public function edit()\n {\n return view('inventory::edit');\n }", "title": "" }, { "docid": "4cb427c029c8f922bb5b7149e530dddc", "score": "0.6570183", "text": "public function edit($id)\n {\n $request = $this->expertMediaRequest->findOrFail($id);\n\n return view('admin.expertrequest.form', compact('request'));\n }", "title": "" }, { "docid": "7a2a16aa982fa32e1bbf88f19cbc245d", "score": "0.6569499", "text": "public function edit()\n {\n return view('initializer::edit');\n }", "title": "" }, { "docid": "fbe54f697c308404a46533310933e03d", "score": "0.65639853", "text": "public function edit(Form $Form)\n {\n //\n }", "title": "" }, { "docid": "45e4675e537bbfcb427d8919d16534d1", "score": "0.6562968", "text": "public function edit($id)\n {\n $model = $this->modelName;\n $item = $model::find($id);\n\n if (!$item) {\n msg('The requested item does not exist or has been deleted.', 'danger');\n return redirect()->route(\"admin.{$this->moduleLower}.index\");\n }\n\n $thisObj = $this;\n Former::populate($item);\n $formButtons = $this->formButtons(__FUNCTION__, $item, null);\n $statusButton = function ($item) use ($thisObj) {\n return $thisObj->renderStatusButtons($item);\n };\n\n // Add validation from model to former\n $validationRules = $model::rulesMergeUpdate();\n\n return view(\"{$this->viewBase}.edit\",\n compact(\n 'item',\n 'formButtons',\n 'statusButton',\n 'validationRules'\n ));\n }", "title": "" }, { "docid": "3e70ed023b5dd49a994b2dcecd6ad17d", "score": "0.65613735", "text": "public function editProductForm($id)\n {\n\n //fetch a single product data from the db with id\n $product = Product::find($id);\n\n return view(\"admin.editProductForm\", [\"product\"=>$product]);\n\n }", "title": "" }, { "docid": "56a9fdf978586649b9ba34518312ed30", "score": "0.65600145", "text": "public function edit($id)\n {\n $record = $this->singular;\n $data = $this->service->repository()->getRecord($id);\n $$record = $data;\n\n return view($this->views['edit'], compact($record));\n }", "title": "" }, { "docid": "e5d9b07a25e49927272f5d8d6bb0851b", "score": "0.6558671", "text": "public function edit($id)\n\t{\n return View::make('applications.edit');\n\t}", "title": "" }, { "docid": "b820ff73eff2193b50fc7631693ea243", "score": "0.6557456", "text": "function resources_edit($js, $file) {\n // Setup ctools modal variables.\n $form_state['ajax'] = $js;\n $form_state['build_info']['args'] = array();\n $form_state['cache'] = TRUE;\n\n // Set modal title\n $resource_info = resources_get_info_by_file($file);\n $form_state['title'] = t('Edit @type', array('@type' => $resource_info['label']));\n\n // Get the resource type information.\n $resource_types = resources_get_info();\n\n // Figure out the resource type from the scheme.\n // @todo: Extract into resources_get_info.\n foreach ($resource_types as $resource_type => $resource_type_info) {\n if (variable_get('resources_' . $resource_type . '_file_type', '') === $file->type) {\n $form_state['resource_type'] = $resource_type;\n break;\n }\n }\n\n // Keep track of the file object.\n $form_state['file'] = $file;\n\n // Add file entity form.\n form_load_include($form_state, 'pages.inc', 'file_entity');\n\n // Add more modal information.\n ctools_include('modal');\n\n // Get the ctools version of the form.\n $output = ctools_modal_form_wrapper('resources_edit_form', $form_state);\n\n // If we are not using javascript then just return the output.\n if (!$js) {\n return $output;\n }\n\n // Set the ctools form settings to a commands variable we'll use to combine\n // other commands.\n $commands = $output;\n\n // If a button executes the form but also flags the form to be rebuilt, do not\n // treat it as an actual form submission, and do not close the modal.\n if (!empty($form_state['executed']) && !$form_state['rebuild']) {\n // Add ajax javascript from ctools.\n ctools_include('ajax');\n\n // Add our javascript.\n ctools_add_js('resources-modal-helper', 'resources');\n $commands = array();\n // If there are status messages, print them.\n if ($messages = theme('status_messages')) {\n $commands[] = ajax_command_html('#console', $messages);\n }\n\n // Add the javascript function we want to call.\n // Pass the rendered output of a resource and the fid.\n $commands[] = array(\n 'command' => 'resources_edit_resource',\n 'resource' => _resources_generate_resource_preview_html($form_state['file']),\n 'fid' => $form_state['file']->fid,\n );\n\n // Close the modal.\n $commands[] = ctools_modal_command_dismiss();\n }\n print ajax_render($commands);\n exit();\n}", "title": "" }, { "docid": "b06e6a42f2e8bf527923d5480998d1f4", "score": "0.6552953", "text": "public function edit($id)\n\t{\n $employee = Employee::find($id);\n\n return View::make('employee.edit')\n ->with('employee', $employee);\n\t}", "title": "" }, { "docid": "a7e2c450a9ec8d35cddcb8dabd65d41c", "score": "0.6548956", "text": "public function edit($id)\n {\n $formulario = Formulario::findOrFail($id);\n\n return view('formulario.edit', compact('formulario'));\n }", "title": "" }, { "docid": "8ffff9b8ef10bb7d3e390e5ab3a54d03", "score": "0.65474546", "text": "public function editAction()\n {\n View::renderTwigTemplate('/UserDetail/edit.html', [\n 'user' => Authenticate::getUser()\n ]);\n }", "title": "" }, { "docid": "a171c7211a9f37ff1b48786fe5cc4a57", "score": "0.6545995", "text": "public function edit()\r\n {\r\n $model = new ProductModel();\r\n\r\n $model->loadData($this->request->all());\r\n $model->loadData($model->one(\"id = $model->id\"));\r\n\r\n echo $this->view(\"productUpdate\", \"main\", $model);\r\n }", "title": "" }, { "docid": "0e871b4496a7eeea573b74dde7e4b70e", "score": "0.65448076", "text": "public function edit($id)\n {\n $form = Form::findOrFail($id);\n $this->authorize('update', $form);\n $platforms = $this->getPlatforms();\n return view('web.form.create')->with([\n 'method' => 'PUT',\n 'url' => route('web.form.update', $id),\n 'form' => $form,\n 'wechatPlatforms' => $platforms,\n ]);\n }", "title": "" }, { "docid": "3ca8fe1ab3811a7f61b09f62a71b8e9a", "score": "0.6542176", "text": "public function edit($id)\n\t{\n\t\ttry {\n\t\t\t$employee = Employee::findOrFail($id);\n\t\t\treturn View::make('employees.edit', ['employee'=>$employee]);\n\t\t\t\n\t\t} catch (ModelNotFoundException $e) {\n\t\t\treturn View::make('errors.model');\n\t\t}\n\n\t}", "title": "" }, { "docid": "9e0e527bb293d8f6f1f6889c0969986d", "score": "0.65403897", "text": "function edit(){\n\t\t$id = $this->input->get('id');\n\t\t$data = array();\n\t\t$data['title']\t\t= 'Edit '.$this->title;\n\t\t$data['controller']\t= $this->controller;\n\t\t$data['state']\t\t= 'edit';\n\t\t$data['id'] \t\t= $id;\n\n\t\t// because it's simple index and form, use user form\n\t\t$data['table_field'] = $this->user->table_field;\n\t\tforeach ($data['table_field'] as $i => $tf) {\n\t\t\tif($tf['type'] == 'select'){\n\t\t\t\t$this->load->model($tf['value'][0]);\n\t\t\t\t$data['table_field'][$i]['value'] = $this->{$tf['value'][0]}->populate_select($tf['value'][1], $tf['value'][2], $tf['value'][3]);\n\t\t\t}elseif($tf['type'] == 'select-year'){\n\t\t\t\t$this->load->model($tf['value'][0]);\n\t\t\t\t$data['table_field'][$i]['value'] = $this->{$tf['value'][0]}->populate_select_year($tf['value'][1], $tf['value'][2], $tf['value'][3]);\n\t\t\t}\n\t\t}\n\t\t$data['primary_key'] = $this->user->primary_key;\n\t\t$data['content']\t= 'content/common/form';\n\t\t$data['datas'] = $this->user->get(decrypt_id($id));\n\n\t\t$data['datas'] = $this->user->reformat_sql_to_form($data['datas']);\n\n\t\t$this->template($data);\n\t}", "title": "" }, { "docid": "f45506e1eb4c9818c7c6486f9f220b97", "score": "0.6540291", "text": "public function edit($id)\n {\n //see modal controller\n }", "title": "" }, { "docid": "1283f826be7043d4d5a97c16e640665a", "score": "0.6536525", "text": "public function edit()\n {\n return view('moduleshop::edit');\n }", "title": "" }, { "docid": "4a8ca9e90c9a453275db5ced549faeff", "score": "0.6534423", "text": "public function edit($id)\n\t{\n\t\t$contactinfo = ContactInfo::find($id);\n\t \n\t \n\t\treturn view('admin.contactinfo.edit', compact('contactinfo'));\n\t}", "title": "" } ]
1e9a6c6a4ca09e6b6340fe290b89aa7c
Configure the password hash options.
[ { "docid": "42b6b07d0b85a755b9d17c7507759051", "score": "0.0", "text": "private function configureOptions(OptionsResolver $resolver): void\n {\n $resolver->setAllowedTypes('cost', 'int');\n $resolver->setAllowedTypes('memory_cost', 'int');\n $resolver->setAllowedTypes('time_cost', 'int');\n $resolver->setAllowedTypes('threads', 'int');\n }", "title": "" } ]
[ { "docid": "9306e7946e5e6fefcd296554b1825c38", "score": "0.6594404", "text": "public function password_hash($options)\n {\n $def_opt = array(\n 'algo' => PASSWORD_BCRYPT,\n 'password' => 'rasmuslerdorf',\n 'encode' => true,\n 'hash_options' => array(\n 'cost' => 6,\n 'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM),\n )\n ); \n $options = array_merge( $def_opt, $options );\n if(!isset($options['key']))\n {\n $key = $this->handshakeKey('',true);\n $options['key'] = array($key['key_A'], $key['key_B']);\n }\n $hashing = password_hash($options['password'], $options['algo'], $options['hash_options']);\n $explode_password = explode('$', $hashing);\n\n $data['raw_password'] = array_pop($explode_password);\n $data['encrypted_password'] = $this->encrypt($data['raw_password'], $options['key'][0], $options['key'][1], $options['encode']);\n $data['key'] = $options['key'];\n $data['head_raw_password'] = implode('$', $explode_password);\n return $data;\n }", "title": "" }, { "docid": "7539dc782b75076dcf8671e7ea93db65", "score": "0.64057434", "text": "private function _set_hashed_password()\n\t{\n\t\t$newpassword = $this->_get_param('newpassword');\n\n\t\tif ( $this->_is_hashed_password_defined() || $newpassword == '' ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Set up a new hasher instance\n\t\t$this->_init_password_hasher();\n\t\t$hash = $this->_hasher->HashPassword($newpassword);\n\n\t\t// Open up the config file for writing the hash to\n\t\t$handle = fopen(CONFIG_FILE, 'a') or die('Cannot open file: ' . CONFIG_FILE);\n\n\t\t// Set up the new data to write to the config.\n\t\t$configAdditions = array();\n\t\t$configAdditions[] = '';\n\t\t$configAdditions[] = '// This hashed password is set automatically.';\n\t\t$configAdditions[] = '// To reset your password, delete this comment and the HASHED_PASSWORD line below reload index.php in a browser';\n\t\t$configAdditions[] = \"define('HASHED_PASSWORD', '$hash');\";\n\n\t\t// And write it.\n\t\tfwrite($handle, implode(\"\\n\", $configAdditions));\n\t\t// Close out the file\n\t\tfclose($handle);\n\t}", "title": "" }, { "docid": "f516143f6902cb4b1e100b53aafd4cdd", "score": "0.62389517", "text": "private function hashPassword() {\n\n\t\t$tmp = md5(microtime());\n\t\t$pwhash = md5($this->getData('password'));\n\n\t\t$salt = substr($tmp, 0, 5);\n\t\t$pwhash = $salt . substr(md5($salt . $pwhash), 5);\n\n\t\t$this->setData('password', $pwhash);\n\t}", "title": "" }, { "docid": "ff5f834bd86f4f9bdc6c0376a369b86e", "score": "0.622053", "text": "function password_hash($password, $algo, $options = array())\n{\n}", "title": "" }, { "docid": "bf36f2209a6cebc9e911aa5e5ac0d1f9", "score": "0.6191065", "text": "private function autoHash()\n {\n if (isset($this->attributes['password'])) {\n if ($this->attributes['password'] != $this->getOriginal('password')) {\n $this->attributes['password'] = Hash::make($this->attributes['password']);\n }\n }\n }", "title": "" }, { "docid": "6a6f84f1ab344f2225a89af4bf3aa5ee", "score": "0.6185535", "text": "public function enablePasswordHashing()\n {\n $this->hashPassword = true;\n\n return $this;\n }", "title": "" }, { "docid": "5a9ff3c949f05335f5412ed4470200d2", "score": "0.6151203", "text": "public static function hashPassword($password, $options = NULL)\n\t{\n\t\t/*if ($password === Strings::upper($password)) { // perhaps caps lock is on\n\t\t\t$password = Strings::lower($password);\n\t\t}\n\t\t$password = substr($password, 0, self::PASSWORD_MAX_LENGTH);\n\t\t$options = $options ?: implode('$', array(\n\t\t\t'algo' => PHP_VERSION_ID < 50307 ? '$2a' : '$2y', // blowfish\n\t\t\t'cost' => '07',\n\t\t\t'salt' => Strings::random(22),\n\t\t)); \n\t\treturn crypt($password, $options);\n */\n return md5($password);\n \n\t}", "title": "" }, { "docid": "82b55b229b3c946c9368fbe88d380325", "score": "0.61296785", "text": "private function hashPassword() {\n\t\tif($this->user->info['oldPass']) {\n\t\t\t$this->hashed = md5($this->unhashed);\n\t\t}\n\n\t\telse {\n\t\t\t$this->hashed = md5(md5(md5($this->salt) . md5($this->unhashed)) . md5($this->unhashed) . $this->salt . md5($this->hashTime));\n\t\t}\n\t}", "title": "" }, { "docid": "03a9cea83389ac0b9a62e35a94a56308", "score": "0.5979581", "text": "public function setHash($password) {\n $this->hash = PasswordAuthenticator::calculateHash($password, $this);\n }", "title": "" }, { "docid": "9af90f414f57a12942118ff8035b9cb8", "score": "0.5959406", "text": "public function setPasswordHash($v)\n {\n if (!is_null($v) && !is_string($v))\n {\n $v = (string) $v;\n }\n\n if ($this->password !== $v)\n {\n $this->_set('password', $v);\n }\n }", "title": "" }, { "docid": "b1e71f3feb157de6bf3a680d09538ccf", "score": "0.58977306", "text": "function hashPassword() {\n\t\t// This if very simply right now, but we can change it in the future\n\t\t$this->setPassword(md5($this->getPassword()));\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "3b9fee7131818748db7884b6abb9caa5", "score": "0.58880174", "text": "function password_reset_hash() {\r\n\t\t\t$this->profile['reset_pass_hash'] = UM()->validation()->generate();\r\n\t\t\t$this->update_usermeta_info('reset_pass_hash');\r\n\t\t}", "title": "" }, { "docid": "95a2928e1d5c4bce8f6e25fe134875a2", "score": "0.5885761", "text": "function setPassword($password)\r\n {\r\n $this->password = password_hash($password, PASSWORD_DEFAULT);\r\n }", "title": "" }, { "docid": "172b92beae08da758a159166cf7ff9d4", "score": "0.5884044", "text": "public function setPasswordHash($v) {\n if (!is_null($v) && !is_string($v)) {\n $v = (string) $v;\n }\n\n if ($this->password !== $v) {\n $this->_set('password', $v);\n }\n }", "title": "" }, { "docid": "6fee05d631b4f7b03af4cd92b522f09d", "score": "0.5876904", "text": "private function _init_password_hasher()\n\t{\n\t\tif ( isset($this->_hasher) ) {\n\t\t\treturn;\n\t\t}\n\t\t$this->_hasher = new PasswordHash(32768, false);\n\t}", "title": "" }, { "docid": "1e01d77b754cffb5e89a90274d5957e7", "score": "0.5840085", "text": "public function hashPass()\n {\n $this->Pass= password_hash($this->UserPass,PASSWORD_BCRYPT);\n }", "title": "" }, { "docid": "80a1972930e6c015757f3b9007b9ec28", "score": "0.5834249", "text": "public static function bootHashPassword()\n {\n static::creating(function (Model $user) {\n if (Hash::needsRehash($user->password)) {\n $user->password = Hash::make($user->password);\n }\n });\n\n\n static::updating(function (Model $user) {\n\n if ($user->password != null && Hash::needsRehash($user->password)) {\n $user->password = Hash::make($user->password);\n }\n });\n }", "title": "" }, { "docid": "9f665c30bc80bb3d0e8933f98a880d49", "score": "0.5761501", "text": "function setHash($hash)\n {\n $this->hashParam = $hash = strtolower($hash);\n switch ($hash) {\n case 'md5-96':\n case 'sha1-96':\n case 'sha256-96':\n case 'sha512-96':\n $hash = substr($hash, 0, -3);\n $this->l = 12; // 96 / 8 = 12\n break;\n case 'md2':\n case 'md5':\n $this->l = 16;\n break;\n case 'sha1':\n $this->l = 20;\n break;\n case 'sha256':\n $this->l = 32;\n break;\n case 'sha384':\n $this->l = 48;\n break;\n case 'sha512':\n $this->l = 64;\n }\n\n switch ($hash) {\n case 'md2':\n $mode = CRYPT_HASH_MODE == CRYPT_HASH_MODE_HASH && in_array('md2', hash_algos()) ?\n CRYPT_HASH_MODE_HASH : CRYPT_HASH_MODE_INTERNAL;\n break;\n case 'sha384':\n case 'sha512':\n $mode = CRYPT_HASH_MODE == CRYPT_HASH_MODE_MHASH ? CRYPT_HASH_MODE_INTERNAL : CRYPT_HASH_MODE;\n break;\n default:\n $mode = CRYPT_HASH_MODE;\n }\n\n switch ($mode) {\n case CRYPT_HASH_MODE_MHASH:\n switch ($hash) {\n case 'md5':\n $this->hash = MHASH_MD5;\n break;\n case 'sha256':\n $this->hash = MHASH_SHA256;\n break;\n case 'sha1':\n default:\n $this->hash = MHASH_SHA1;\n }\n return;\n case CRYPT_HASH_MODE_HASH:\n switch ($hash) {\n case 'md5':\n $this->hash = 'md5';\n return;\n case 'md2':\n case 'sha256':\n case 'sha384':\n case 'sha512':\n $this->hash = $hash;\n return;\n case 'sha1':\n default:\n $this->hash = 'sha1';\n }\n return;\n }\n\n switch ($hash) {\n case 'md2':\n $this->b = 16;\n $this->hash = array($this, '_md2');\n break;\n case 'md5':\n $this->b = 64;\n $this->hash = array($this, '_md5');\n break;\n case 'sha256':\n $this->b = 64;\n $this->hash = array($this, '_sha256');\n break;\n case 'sha384':\n case 'sha512':\n $this->b = 128;\n $this->hash = array($this, '_sha512');\n break;\n case 'sha1':\n default:\n $this->b = 64;\n $this->hash = array($this, '_sha1');\n }\n\n $this->ipad = str_repeat(chr(0x36), $this->b);\n $this->opad = str_repeat(chr(0x5C), $this->b);\n }", "title": "" }, { "docid": "e63e59ce27e044bacffcb2340dc93d9d", "score": "0.57489467", "text": "public function setPassword($password) {\r\n $this->password = $this->hashPassword($password);\r\n }", "title": "" }, { "docid": "e247075b9184c0c18f69dccfb34049a0", "score": "0.57039505", "text": "public function password($name, $title, $value = '', $option = [])\n {\n }", "title": "" }, { "docid": "c33799cfc934a80802d7269bb9c83885", "score": "0.5683806", "text": "public function hash_passwords() {\n\t\t$this->security('admin_menu',$_SESSION['user_typeID']);\n\n\t\t$sql = \"SELECT `userID`,`password` FROM `users`\";\n\t\t$result = $this->new_mysql($sql);\n\t\twhile ($row = $result->fetch_assoc()) {\n\t\t\t$password = password_hash($row['password'], PASSWORD_DEFAULT);\n\t\t\t$sql2 = \"UPDATE `users` SET `password` = '$password' WHERE `userID` = '$row[userID]'\";\n\t\t\t$result2 = $this->new_mysql($sql2);\n\t\t}\n\t\tprint \"Done!\";\n\t}", "title": "" }, { "docid": "3ea1a2bfb9cb280ab587f893007f6788", "score": "0.5677606", "text": "public static function password($name, $options = array()){ return self::resolve(); }", "title": "" }, { "docid": "aa21eb8989b197c184ded0ac243ff081", "score": "0.5664457", "text": "public function _extend()\n\t{\n\t\t$this->properties['type'] = 'password';\n\t}", "title": "" }, { "docid": "914935e2343af8141d006f3f8cb7d3e3", "score": "0.5635999", "text": "public function setPassword($password)\n {\n $this->password_hash = password_hash($password, PASSWORD_DEFAULT);\n }", "title": "" }, { "docid": "b5334bb08852b3f5c9e87853fbbb2aa3", "score": "0.56140244", "text": "public function setPassword($password) {\n $this->passwordHash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "ffd062b10964a9a56f3b4f71230fb51a", "score": "0.5568282", "text": "public function hash(){\n $this->hashedpassword = sha1($this->pass.$this->salt);\n }", "title": "" }, { "docid": "4a5d8631212d860c5a1ce9c09b80a6bb", "score": "0.5564199", "text": "private function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "5c0d28d7a61c5963c01721c620e52bb0", "score": "0.5561459", "text": "private function SetPassword()\n {\n $password = $this->Value('Password');\n if ($password)\n {\n $salt = Str::Start(md5(uniqid(microtime())), 8);\n $pwHash = hash('sha256', $password . $salt);\n $this->member->SetPassword($pwHash);\n $this->member->SetPasswordSalt($salt);\n }\n }", "title": "" }, { "docid": "4c704e0486dde4e888befb2061e1dcc2", "score": "0.55596554", "text": "public function setPassHash ($passHash) {\n $this->passHash = $passHash;\n }", "title": "" }, { "docid": "3d59f4d054c098cd4f3d53c92838ea99", "score": "0.55254626", "text": "public final function setUp() : void {\n\t\tparent::setUp();\n\t\t$password = \"abc123\";\n\t\t$this->VALID_ADMIN_HASH = password_hash($password, PASSWORD_ARGON2I, [\"time_cost\" => 384]);\n\t}", "title": "" }, { "docid": "ba36e369724704bdd176455090228c90", "score": "0.5519248", "text": "public function setPassword($password)\n {\n $this->passwordHash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "ba36e369724704bdd176455090228c90", "score": "0.5519248", "text": "public function setPassword($password)\n {\n $this->passwordHash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "ba36e369724704bdd176455090228c90", "score": "0.5519248", "text": "public function setPassword($password)\n {\n $this->passwordHash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "ba36e369724704bdd176455090228c90", "score": "0.5519248", "text": "public function setPassword($password)\n {\n $this->passwordHash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "ba36e369724704bdd176455090228c90", "score": "0.5519248", "text": "public function setPassword($password)\n {\n $this->passwordHash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "2765ffeb49be6b9c1dfae8558aae1bdd", "score": "0.5516524", "text": "public function setPassword(string $password)\n {\n // all. Backends like Comemrcetools already hash themselves. With a\n // dynamic hashing mechanism like password_hash (random salt) this\n // would not verify.\n //\n // This hashing here would basically just be an additional transport\n // hashing and ensure backends like Commercetools never sees any real\n // password.\n $this->passwordHash = $password;\n }", "title": "" }, { "docid": "14b8cc1d71110e67e9b12f8a73416e5b", "score": "0.5515343", "text": "protected function _set_passwd_fields() {\n\t\t$this->form_data->password = \"\";\n\t\t$this->form_data->password2 = \"\";\n\t}", "title": "" }, { "docid": "fee762435ae69db73bff76c2716eadcb", "score": "0.5510863", "text": "public function setHashMdp()\n {\n $this->setMdp(hash(\"sha256\", $this->getMdp() . $this->salt));\n }", "title": "" }, { "docid": "e878ceda922109e6d0d26ad44ba02da8", "score": "0.5502055", "text": "public function setPassword($password) {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "6b6f8030a06f0273332e5dd8c5bf13b9", "score": "0.5498251", "text": "public\n function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "487e8b4e515cf60555250fa51a2ccc35", "score": "0.5479419", "text": "public function setPassword($password)\r\n {\r\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\r\n }", "title": "" }, { "docid": "487e8b4e515cf60555250fa51a2ccc35", "score": "0.5479419", "text": "public function setPassword($password)\r\n {\r\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\r\n }", "title": "" }, { "docid": "65e3195bca8a5a0d1b0ca79204acf3b2", "score": "0.5471181", "text": "public function setPasswordHashForIdentity($identity, $hash);", "title": "" }, { "docid": "592c348209d9934bc6d2fa0698ebce7c", "score": "0.54529464", "text": "public function hash(#[\\SensitiveParameter] string $plainPassword): string;", "title": "" }, { "docid": "d6fa8014165318b894cb056be2cebac6", "score": "0.54441255", "text": "function password_hash($password, $algo, $options = array()) {\n\t\tif (!function_exists('crypt')) {\n\t\t\ttrigger_error(\"Crypt must be loaded for password_hash to function\", E_USER_WARNING);\n\t\t\treturn null;\n\t\t}\n\t\tif (!is_string($password)) {\n\t\t\ttrigger_error(\"password_hash(): Password must be a string\", E_USER_WARNING);\n\t\t\treturn null;\n\t\t}\n\t\tif (!is_int($algo)) {\n\t\t\ttrigger_error(\"password_hash() expects parameter 2 to be long, \" . gettype($algo) . \" given\", E_USER_WARNING);\n\t\t\treturn null;\n\t\t}\n\t\tswitch ($algo) {\n\t\t\tcase PASSWORD_BCRYPT:\n\t\t\t\t// Note that this is a C constant, but not exposed to PHP, so we don't define it here.\n\t\t\t\t$cost = 10;\n\t\t\t\tif (isset($options['cost'])) {\n\t\t\t\t\t$cost = $options['cost'];\n\t\t\t\t\tif ($cost < 4 || $cost > 31) {\n\t\t\t\t\t\ttrigger_error(sprintf(\"password_hash(): Invalid bcrypt cost parameter specified: %d\", $cost), E_USER_WARNING);\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$required_salt_len = 22;\n\t\t\t\t$hash_format = sprintf(\"$2y$%02d$\", $cost);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\ttrigger_error(sprintf(\"password_hash(): Unknown password hashing algorithm: %s\", $algo), E_USER_WARNING);\n\t\t\t\treturn null;\n\t\t}\n\t\tif (isset($options['salt'])) {\n\t\t\tswitch (gettype($options['salt'])) {\n\t\t\t\tcase 'NULL':\n\t\t\t\tcase 'boolean':\n\t\t\t\tcase 'integer':\n\t\t\t\tcase 'double':\n\t\t\t\tcase 'string':\n\t\t\t\t\t$salt = (string) $options['salt'];\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'object':\n\t\t\t\t\tif (method_exists($options['salt'], '__tostring')) {\n\t\t\t\t\t\t$salt = (string) $options['salt'];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\tcase 'array':\n\t\t\t\tcase 'resource':\n\t\t\t\tdefault:\n\t\t\t\t\ttrigger_error('password_hash(): Non-string salt parameter supplied', E_USER_WARNING);\n\t\t\t\t\treturn null;\n\t\t\t}\n\t\t\tif (strlen($salt) < $required_salt_len) {\n\t\t\t\ttrigger_error(sprintf(\"password_hash(): Provided salt is too short: %d expecting %d\", strlen($salt), $required_salt_len), E_USER_WARNING);\n\t\t\t\treturn null;\n\t\t\t} elseif (0 == preg_match('#^[a-zA-Z0-9./]+$#D', $salt)) {\n\t\t\t\t$salt = str_replace('+', '.', base64_encode($salt));\n\t\t\t}\n\t\t} else {\n\t\t\t$salt = __password_make_salt($required_salt_len);\n\t\t}\n\t\t$salt = substr($salt, 0, $required_salt_len);\n\n\t\t$hash = $hash_format . $salt;\n\n\t\t$ret = crypt($password, $hash);\n\n\t\tif (!is_string($ret) || strlen($ret) < 13) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "efdd4155a5bca3b07aa51196fa47145e", "score": "0.54406756", "text": "public function setPasswordHash($passwordHash)\n {\n $this->passwordHash = $passwordHash;\n }", "title": "" }, { "docid": "3691994545bb74662c052bd9b4060b67", "score": "0.5437155", "text": "public function beforeSave($options = array()) {\n if (isset($this->data[$this->alias]['password'])) {\n $passwordHasher = new BlowfishPasswordHasher();\n $this->data[$this->alias]['password'] = $passwordHasher->hash(\n $this->data[$this->alias]['password']\n );\n }\n return true;\n}", "title": "" }, { "docid": "febd63943adf1438baf11e633e79dd1e", "score": "0.54369974", "text": "public function set_password($password)\n\t\t{\n\t\t\t$this->salt = self::generate_salt();\n\n\t\t\t// Set options array\n\t\t\t$options = array(\n\t\t\t\t\"cost\" => config::HASH_COST,\n\t\t\t\t\"salt\" => $this->salt\n\t\t\t);\n\n\t\t\t// Use PHP password API to generate new password\n\t\t\t$this->password = password_hash($password, config::HASH_ALGORITHM, $options);\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "772051091b163867edb1226347c40c50", "score": "0.54319793", "text": "public function setPassword($password) {\r\n $this->password = Yii::$app->security->generatePasswordHash($password);\r\n }", "title": "" }, { "docid": "9649e61a2d717f3d432dd9922d4a8c5a", "score": "0.5411243", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password, Yii::$app->getModule('user')->cost);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "b97709ea456f61a89645bb52039faa5a", "score": "0.5409344", "text": "public function setPassword($password)\n {\n $this->password_hash = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "db345ed70cc8f500775e75a37cb16e22", "score": "0.54068685", "text": "public function setPassword($password)\n {\n $this->password_hash = Security::generatePasswordHash($password);\n }", "title": "" }, { "docid": "5ce7ed12945fd49fa0c2abb611c8b984", "score": "0.5406186", "text": "public function setPassword($password) {\n $this->password = $this->generatePasswordHash($password);\n }", "title": "" }, { "docid": "5d9f432c045118948dc5beb4911942e5", "score": "0.5405718", "text": "public function setPassword($pw){\n\t\t$hash = password_hash($pw, PASSWORD_BCRYPT);\n\t\tif($hash!=false){\n\t\t\t$this->pw = $hash;\n\t\t}\n\t}", "title": "" }, { "docid": "43f1e16889b003b1f48eade835d9cd48", "score": "0.54050976", "text": "public function testPassword(): void\n {\n\n // Bcrypt - Version Y\n $plain = 'secret';\n $hash = '$2y$08$PDbMtV18J1KOBI9tIYabBuyUwBrtXPGhLxCy9pWP6xkldVOKLrLKy';\n $generatedHash = Auth::passwordHash($plain, 'bcrypt');\n $this->assertEquals(true, Auth::passwordVerify($plain, $generatedHash, 'bcrypt'));\n $this->assertEquals(true, Auth::passwordVerify($plain, $hash, 'bcrypt'));\n $this->assertEquals(false, Auth::passwordVerify('wrongPassword', $hash, 'bcrypt'));\n\n // Bcrypt - Version A\n $plain = 'test123';\n $hash = '$2a$12$3f2ZaARQ1AmhtQWx2nmQpuXcWfTj1YV2/Hl54e8uKxIzJe3IfwLiu';\n $generatedHash = Auth::passwordHash($plain, 'bcrypt');\n $this->assertEquals(true, Auth::passwordVerify($plain, $generatedHash, 'bcrypt'));\n $this->assertEquals(true, Auth::passwordVerify($plain, $hash, 'bcrypt'));\n $this->assertEquals(false, Auth::passwordVerify('wrongPassword', $hash, 'bcrypt'));\n\n // Bcrypt - Cost 5\n $plain = 'hello-world';\n $hash = '$2a$05$IjrtSz6SN7UJ6Sh3l.b5jODEvEG2LMJTPAHIaLWRvlWx7if3VMkFO';\n $generatedHash = Auth::passwordHash($plain, 'bcrypt');\n $this->assertEquals(true, Auth::passwordVerify($plain, $generatedHash, 'bcrypt'));\n $this->assertEquals(true, Auth::passwordVerify($plain, $hash, 'bcrypt'));\n $this->assertEquals(false, Auth::passwordVerify('wrongPassword', $hash, 'bcrypt'));\n\n // Bcrypt - Cost 15\n $plain = 'super-secret-password';\n $hash = '$2a$15$DS0ZzbsFZYumH/E4Qj5oeOHnBcM3nCCsCA2m4Goigat/0iMVQC4Na';\n $generatedHash = Auth::passwordHash($plain, 'bcrypt');\n $this->assertEquals(true, Auth::passwordVerify($plain, $generatedHash, 'bcrypt'));\n $this->assertEquals(true, Auth::passwordVerify($plain, $hash, 'bcrypt'));\n $this->assertEquals(false, Auth::passwordVerify('wrongPassword', $hash, 'bcrypt'));\n\n // MD5 - Short\n $plain = 'appwrite';\n $hash = '144fa7eaa4904e8ee120651997f70dcc';\n $generatedHash = Auth::passwordHash($plain, 'md5');\n $this->assertEquals(true, Auth::passwordVerify($plain, $generatedHash, 'md5'));\n $this->assertEquals(true, Auth::passwordVerify($plain, $hash, 'md5'));\n $this->assertEquals(false, Auth::passwordVerify('wrongPassword', $hash, 'md5'));\n\n // MD5 - Long\n $plain = 'AppwriteIsAwesomeBackendAsAServiceThatIsAlsoOpenSourced';\n $hash = '8410e96cf7ac64e0b84c3f8517a82616';\n $generatedHash = Auth::passwordHash($plain, 'md5');\n $this->assertEquals(true, Auth::passwordVerify($plain, $generatedHash, 'md5'));\n $this->assertEquals(true, Auth::passwordVerify($plain, $hash, 'md5'));\n $this->assertEquals(false, Auth::passwordVerify('wrongPassword', $hash, 'md5'));\n\n // PHPass\n $plain = 'pass123';\n $hash = '$P$BVKPmJBZuLch27D4oiMRTEykGLQ9tX0';\n $generatedHash = Auth::passwordHash($plain, 'phpass');\n $this->assertEquals(true, Auth::passwordVerify($plain, $generatedHash, 'phpass'));\n $this->assertEquals(true, Auth::passwordVerify($plain, $hash, 'phpass'));\n $this->assertEquals(false, Auth::passwordVerify('wrongPassword', $hash, 'phpass'));\n\n // SHA\n $plain = 'developersAreAwesome!';\n $hash = '2455118438cb125354b89bb5888346e9bd23355462c40df393fab514bf2220b5a08e4e2d7b85d7327595a450d0ac965cc6661152a46a157c66d681bed20a4735';\n $generatedHash = Auth::passwordHash($plain, 'sha');\n $this->assertEquals(true, Auth::passwordVerify($plain, $generatedHash, 'sha'));\n $this->assertEquals(true, Auth::passwordVerify($plain, $hash, 'sha'));\n $this->assertEquals(false, Auth::passwordVerify('wrongPassword', $hash, 'sha'));\n\n // Argon2\n $plain = 'safe-argon-password';\n $hash = '$argon2id$v=19$m=2048,t=3,p=4$MWc5NWRmc2QxZzU2$41mp7rSgBZ49YxLbbxIac7aRaxfp5/e1G45ckwnK0g8';\n $generatedHash = Auth::passwordHash($plain, 'argon2');\n $this->assertEquals(true, Auth::passwordVerify($plain, $generatedHash, 'argon2'));\n $this->assertEquals(true, Auth::passwordVerify($plain, $hash, 'argon2'));\n $this->assertEquals(false, Auth::passwordVerify('wrongPassword', $hash, 'argon2'));\n\n // Scrypt\n $plain = 'some-scrypt-password';\n $hash = 'b448ad7ba88b653b5b56b8053a06806724932d0751988bc9cd0ef7ff059e8ba8a020e1913b7069a650d3f99a1559aba0221f2c277826919513a054e76e339028';\n $generatedHash = Auth::passwordHash($plain, 'scrypt', [ 'salt' => 'some-salt', 'length' => 64, 'costCpu' => 16384, 'costMemory' => 12, 'costParallel' => 2]);\n\n $this->assertEquals(true, Auth::passwordVerify($plain, $generatedHash, 'scrypt', [ 'salt' => 'some-salt', 'length' => 64, 'costCpu' => 16384, 'costMemory' => 12, 'costParallel' => 2]));\n $this->assertEquals(true, Auth::passwordVerify($plain, $hash, 'scrypt', [ 'salt' => 'some-salt', 'length' => 64, 'costCpu' => 16384, 'costMemory' => 12, 'costParallel' => 2]));\n $this->assertEquals(false, Auth::passwordVerify($plain, $hash, 'scrypt', [ 'salt' => 'some-wrong-salt', 'length' => 64, 'costCpu' => 16384, 'costMemory' => 12, 'costParallel' => 2]));\n $this->assertEquals(false, Auth::passwordVerify($plain, $hash, 'scrypt', [ 'salt' => 'some-salt', 'length' => 64, 'costCpu' => 16384, 'costMemory' => 10, 'costParallel' => 2]));\n $this->assertEquals(false, Auth::passwordVerify('wrongPassword', $hash, 'scrypt', [ 'salt' => 'some-salt', 'length' => 64, 'costCpu' => 16384, 'costMemory' => 12, 'costParallel' => 2]));\n\n // ScryptModified tested are in provider-specific tests below\n\n /*\n Provider-specific tests, ensuring functionality of specific use-cases\n */\n\n // Provider #1 (Database)\n $plain = 'example-password';\n $hash = '$2a$10$3bIGRWUes86CICsuchGLj.e.BqdCdg2/1Ud9LvBhJr0j7Dze8PBdS';\n $generatedHash = Auth::passwordHash($plain, 'bcrypt');\n $this->assertEquals(true, Auth::passwordVerify($plain, $generatedHash, 'bcrypt'));\n $this->assertEquals(true, Auth::passwordVerify($plain, $hash, 'bcrypt'));\n $this->assertEquals(false, Auth::passwordVerify('wrongPassword', $hash, 'bcrypt'));\n\n // Provider #2 (Blog)\n $plain = 'your-password';\n $hash = '$P$BkiNDJTpAWXtpaMhEUhUdrv7M0I1g6.';\n $generatedHash = Auth::passwordHash($plain, 'phpass');\n $this->assertEquals(true, Auth::passwordVerify($plain, $generatedHash, 'phpass'));\n $this->assertEquals(true, Auth::passwordVerify($plain, $hash, 'phpass'));\n $this->assertEquals(false, Auth::passwordVerify('wrongPassword', $hash, 'phpass'));\n\n // Provider #2 (Google)\n $plain = 'users-password';\n $hash = 'EPKgfALpS9Tvgr/y1ki7ubY4AEGJeWL3teakrnmOacN4XGiyD00lkzEHgqCQ71wGxoi/zb7Y9a4orOtvMV3/Jw==';\n $salt = '56dFqW+kswqktw==';\n $saltSeparator = 'Bw==';\n $signerKey = 'XyEKE9RcTDeLEsL/RjwPDBv/RqDl8fb3gpYEOQaPihbxf1ZAtSOHCjuAAa7Q3oHpCYhXSN9tizHgVOwn6krflQ==';\n\n $options = [ 'salt' => $salt, 'saltSeparator' => $saltSeparator, 'signerKey' => $signerKey ];\n $generatedHash = Auth::passwordHash($plain, 'scryptMod', $options);\n $this->assertEquals(true, Auth::passwordVerify($plain, $generatedHash, 'scryptMod', $options));\n $this->assertEquals(true, Auth::passwordVerify($plain, $hash, 'scryptMod', $options));\n $this->assertEquals(false, Auth::passwordVerify('wrongPassword', $hash, 'scryptMod', $options));\n }", "title": "" }, { "docid": "9020fcd59ba80c28cc94274e366d484f", "score": "0.53998923", "text": "public function setPasswordAttribute($value){\n\n $this->attributes['password'] = Hash::make($value);\n }", "title": "" }, { "docid": "c8faf6f455ae4555b0876d7ae2beb143", "score": "0.5391538", "text": "public function setPassword($password)\n {\n $this->password_hash = \\Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "43df62cd92cb5b76df3953069ab24169", "score": "0.5387504", "text": "public function disablePasswordHashing()\n {\n $this->hashPassword = false;\n\n return $this;\n }", "title": "" }, { "docid": "1e411bcebd6920c1da7bff15c70c36ea", "score": "0.53788185", "text": "public function hash_password($password)\n {\n }", "title": "" }, { "docid": "2b5889a4a682bced80d0d6068af376b7", "score": "0.5371948", "text": "public function beforeSave($options = array()) {\r\n\r\n $passwordHasher = new SimplePasswordHasher(array('hashType' => 'sha256'));\r\n\r\n if (!empty($this->data[$this->alias]['password'])) \r\n {\r\n $this->data[$this->alias]['password'] = $passwordHasher->hash(\r\n $this->data[$this->alias]['password']\r\n );\r\n }\r\n \r\n return true;\r\n }", "title": "" }, { "docid": "ee081cab6b00d7c8633a573f23749c21", "score": "0.5366879", "text": "public function setPassword($password) {\n $this->password = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "8a0176d31a889c2eb7869730a3d9e45d", "score": "0.5359287", "text": "protected function hash_password($force=false)\n\t{\n\t\tif ($force || !key_exists(\"salt\", $this->data))\n\t\t{\n\t\t\t$this->data[\"salt\"] = $this->get_random_salt();\n\t\t\t$this->data[\"password\"] = $this->get_hashed_password($this->data[\"password\"], $this->data[\"salt\"]);\n\t\t}\n\t}", "title": "" }, { "docid": "03263a4ff6aca7770f2d7b394d2576aa", "score": "0.5343344", "text": "public function set_password($password)\n {\n $this->set_attribute('password', Hash::make($password));\n }", "title": "" }, { "docid": "631374fe61045d7539a44be32f782c46", "score": "0.5342163", "text": "public function __construct()\n\t\t{\n\t\t\t$this->privilege();\n\t\t\t\n\t\t\t$oldPassword = ifsetor($_POST['oldPassword']);\n\t\t\t$newPassword = ifsetor($_POST['newPassword']);\n\t\t\t$repeatPassword = ifsetor($_POST['repeatPassword']);\n\t\t\t\n\t\t\tif (!PasswordUtils::validate($oldPassword, $this->settings->userHash))\n\t\t\t{\n\t\t\t\t$this->error('This is not your current password');\n\t\t\t}\n\t\t\tif ($oldPassword == $newPassword)\n\t\t\t{\n\t\t\t\t$this->error('This is your current password');\n\t\t\t}\n\t\t\tif ($newPassword != $repeatPassword)\n\t\t\t{\n\t\t\t\t$this->error('New password and repeat password don\\'t match');\n\t\t\t}\n\t\t\tif (strlen($newPassword) < 6)\n\t\t\t{\n\t\t\t\t$this->error('Password much be six (6) or more characters long');\n\t\t\t}\n\t\t\t\n\t\t\tif (!$this->ifError)\n\t\t\t{\n\t\t\t\tif (!$this->user->updatePassword($newPassword))\n\t\t\t\t{\n\t\t\t\t\t$this->error('There was a problem updating your password. Try again.');\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->success('Password updated!');\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "5fe6cad08ecc1c7648b99ae17193c92e", "score": "0.53394395", "text": "public function setPasswordAttribute($value) {\n $this->attributes['password'] = Hash::make($value);\n }", "title": "" } ]
1996717234349dcb0f64e28752dcbbad
Gets name of the property to be projected, if this is root node then name will be null.
[ { "docid": "2261afd0eab9803639caf17a97e78e2d", "score": "0.70370823", "text": "public function getPropertyName()\r\n {\r\n return $this->propertyName;\r\n }", "title": "" } ]
[ { "docid": "2ec2fce9d3315fb74e836ca9437f68b3", "score": "0.7311011", "text": "public function get_name()\n {\n return $this->get_default_property(self::PROPERTY_NAME);\n }", "title": "" }, { "docid": "9f33f3279e3a8875eba9e9eaa3b36776", "score": "0.7232447", "text": "function get_name() {\n return $this->get_mapped_property('name');\n }", "title": "" }, { "docid": "9b615c114981d3afac85ba7885f63dc7", "score": "0.72251403", "text": "function getName()\n {\n return $this->get_default_property(self::PROPERTY_NAME);\n }", "title": "" }, { "docid": "73e09addfa48f9df9f0f62316133293e", "score": "0.70864195", "text": "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "73e09addfa48f9df9f0f62316133293e", "score": "0.70864195", "text": "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "73e09addfa48f9df9f0f62316133293e", "score": "0.70864195", "text": "public function getName()\n {\n if (array_key_exists(\"name\", $this->_propDict)) {\n return $this->_propDict[\"name\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "4e409b8eda94b90f13c1d820d6ee2c5d", "score": "0.704664", "text": "function getPropertyName()\n {\n return $this->propertyName;\n }", "title": "" }, { "docid": "decb60ad801dc1696320d3885dec1182", "score": "0.7044318", "text": "public function getPropertyName()\n {\n $filter = new DbToPhpPropertyName();\n $name = $filter->filter($this->column->getName());\n return $name;\n }", "title": "" }, { "docid": "af6daf109b92348bc0adf7630461a947", "score": "0.6936013", "text": "public function getName() {\r\n\t\treturn $this->getProperty('name');\r\n\t}", "title": "" }, { "docid": "fdccddcb59a0dde6bfac605aa479fc1e", "score": "0.6922301", "text": "function getPropertyName(){}", "title": "" }, { "docid": "e881a582c8cc864acb8e1ca5d267d6c2", "score": "0.69019914", "text": "public function getPropertyName();", "title": "" }, { "docid": "b41b8ccd6af6f1d94253d8b5576fa958", "score": "0.6762458", "text": "public function getPropertyName() {\n return $this->propertyName; \n }", "title": "" }, { "docid": "c6c2604947f8e32cfd9d33e3f493a386", "score": "0.67236793", "text": "public function getPropertyName()\n\n {\n\n return $this->property_name;\n\n\n}", "title": "" }, { "docid": "d1306b35d98e9bf322fa1f8556c67be9", "score": "0.66861826", "text": "public function getName()\n {\n return $this->getProperty(self::NAME);\n }", "title": "" }, { "docid": "3d2d667c58cb28c3f3b36fe9e9aa04f7", "score": "0.66777414", "text": "public function getProperty(): string\n {\n return $this->property;\n }", "title": "" }, { "docid": "6c6b881b080a2e9db5e3b8f5a2e00747", "score": "0.6597726", "text": "public function getName()\n {\n if (!$this->isPropertyAvailable(\"Name\")) {\n return null;\n }\n return $this->getProperty(\"Name\");\n }", "title": "" }, { "docid": "8501c345fd91a58008df6976e181f9b4", "score": "0.65851796", "text": "protected function getPropertyName($property)\n {\n return $this->translatedProperties->getName($property);\n }", "title": "" }, { "docid": "7e4d6ebd7c2167407ef2860cce16aaeb", "score": "0.6560818", "text": "protected function getNameProperty() {\n return \"name\";\n }", "title": "" }, { "docid": "508c9a2eb0e64126914ca2f7c96f256f", "score": "0.6516068", "text": "public function getName()\n {\n return $this->root->getName();\n }", "title": "" }, { "docid": "9c08f13be5295127d862d20fcbc4a750", "score": "0.64930934", "text": "public function getName()\n {\n return isset($this->name) ? $this->name : $this->getPath();\n }", "title": "" }, { "docid": "4c097dd84d8c1e8544edfccd419f9769", "score": "0.64495426", "text": "public function getName() {\r\n\t\treturn $this->mapObj->name;\r\n\t}", "title": "" }, { "docid": "bc6fe0695e35d71fe2c44aacacbba7b3", "score": "0.6417229", "text": "public function getPropertyTypeNameAttribute()\n\t{\n\t\treturn PropertyType::find($this->attributes['property_type'])->name;\n\t}", "title": "" }, { "docid": "50f55efa8e219777be30ab112852599d", "score": "0.6373902", "text": "public function mapToName() {\n\t\treturn is_null($this->_mapToName) ? $this->_name : $this->_mapToName;\n\t}", "title": "" }, { "docid": "4e8fb23853ff330a2c7d4c6446adbd1e", "score": "0.6370769", "text": "public function getName()\n {\n return isset($this->name) ? $this->name : null;\n }", "title": "" }, { "docid": "4e8fb23853ff330a2c7d4c6446adbd1e", "score": "0.6370769", "text": "public function getName()\n {\n return isset($this->name) ? $this->name : null;\n }", "title": "" }, { "docid": "c3ff6085ebb8dbe283e05410bb043895", "score": "0.63664246", "text": "public function getName() {\n\t\tif (isset($this -> name)) {\n\t\t\treturn $this -> name;\n\t\t} else {\n\t\t\t// By default return NodeX\n\t\t\treturn 'Node'.$this -> id;\n\t\t}\n\t}", "title": "" }, { "docid": "b55f0416e475e46d568179b55169ac02", "score": "0.63438773", "text": "public function getName() {\n\t\treturn $this->_structureNode->getname();\n\t}", "title": "" }, { "docid": "7c9de096e855c1aa5a92355218fb05b2", "score": "0.63228023", "text": "public function getName()\n {\n return $this->node->getName();\n }", "title": "" }, { "docid": "f563c18d18a3338fa567dc3223431a61", "score": "0.63045377", "text": "public function getName()\n {\n $value = $this->get(self::name);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "f563c18d18a3338fa567dc3223431a61", "score": "0.63045377", "text": "public function getName()\n {\n $value = $this->get(self::name);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "f563c18d18a3338fa567dc3223431a61", "score": "0.63045377", "text": "public function getName()\n {\n $value = $this->get(self::name);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "f563c18d18a3338fa567dc3223431a61", "score": "0.63045377", "text": "public function getName()\n {\n $value = $this->get(self::name);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "d22ad068768d355f9fdc7e8e478e5a90", "score": "0.62863225", "text": "public function getName()\n {\n return isset($this->name) ? $this->name : '';\n }", "title": "" }, { "docid": "d22ad068768d355f9fdc7e8e478e5a90", "score": "0.62863225", "text": "public function getName()\n {\n return isset($this->name) ? $this->name : '';\n }", "title": "" }, { "docid": "d22ad068768d355f9fdc7e8e478e5a90", "score": "0.62863225", "text": "public function getName()\n {\n return isset($this->name) ? $this->name : '';\n }", "title": "" }, { "docid": "d22ad068768d355f9fdc7e8e478e5a90", "score": "0.62863225", "text": "public function getName()\n {\n return isset($this->name) ? $this->name : '';\n }", "title": "" }, { "docid": "85c09d84a11167b9789eb7a457523dec", "score": "0.6248202", "text": "public function getFieldName()\n {\n return $this->name;\n }", "title": "" }, { "docid": "5501996a2ca5b9d2d02340ae7d119525", "score": "0.6228149", "text": "protected function getRealNameProperty(string $property): string\n {\n }", "title": "" }, { "docid": "63b76408d1c24eda6bace60264102410", "score": "0.62064093", "text": "public function get_name() {\n return $this->name;\n }", "title": "" }, { "docid": "63b76408d1c24eda6bace60264102410", "score": "0.62064093", "text": "public function get_name() {\n return $this->name;\n }", "title": "" }, { "docid": "6705055f6ce77f4977901ed15193f432", "score": "0.6204187", "text": "public function getProjectNameAttribute()\n {\n $project = Project::where('id', $this->project_id)->first();\n if (is_object($project)) {\n return $project->name;\n } else {\n return '';\n }\n }", "title": "" }, { "docid": "7919970c4ef69dec9a54506e38036b05", "score": "0.6179607", "text": "public function getName() {\n\t\treturn $this->_project->getID() ? $this->_project->getName() : '-';\n\t}", "title": "" }, { "docid": "8b60632f50578b24f03e960299ee12f5", "score": "0.61739993", "text": "public function getName() {\n return $this->getRawName();\n }", "title": "" }, { "docid": "eaefc7b7a9faa60ac645bc1a8b19a3fe", "score": "0.61674625", "text": "protected function getTransformerProperty()\n {\n if (property_exists($this, 'transformProperty')) {\n return $this->transformProperty;\n }\n\n return 'transformer';\n }", "title": "" }, { "docid": "a9f5c63b86ee424b909ddfb549392d33", "score": "0.61613005", "text": "public function get_name() {\n\t\treturn $this->name;\n\t}", "title": "" }, { "docid": "a9f5c63b86ee424b909ddfb549392d33", "score": "0.61613005", "text": "public function get_name() {\n\t\treturn $this->name;\n\t}", "title": "" }, { "docid": "a9f5c63b86ee424b909ddfb549392d33", "score": "0.61613005", "text": "public function get_name() {\n\t\treturn $this->name;\n\t}", "title": "" }, { "docid": "6500db219674861eeb4edd05719082ea", "score": "0.615946", "text": "public function getProjectName() : ?string\n {\n return $this->getAttribute('project.name');\n }", "title": "" }, { "docid": "4146b1f70b764f21b4a2cfe4167922f1", "score": "0.6150686", "text": "public function get_name() {\n\n\t\treturn $this->name;\n\t}", "title": "" }, { "docid": "9416c7c9b2b22692a3a97f2b34eec0a8", "score": "0.614808", "text": "public function getName()\n {\n return (!isset($this->_data['name'])) ? null : $this->_data['name'];\n }", "title": "" }, { "docid": "c15ba7d792102c3b1761a481f93dd07f", "score": "0.6138418", "text": "public function getPropertySourceName(Property $property): string\n {\n return $this->sourceMap[$property] ?? $property->getName();\n }", "title": "" }, { "docid": "daebccef0a573085b00de9fad5f0d01a", "score": "0.6130055", "text": "public function getName()\n {\n if (empty($this->_name)) {\n $this->_name = $this->getInfo()->getName();\n }\n\n return $this->_name;\n }", "title": "" }, { "docid": "242425ee26b1bc151520863b7a22f10a", "score": "0.612962", "text": "public function getName()\n {\n $value = $this->get(self::NAME);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "242425ee26b1bc151520863b7a22f10a", "score": "0.612962", "text": "public function getName()\n {\n $value = $this->get(self::NAME);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "242425ee26b1bc151520863b7a22f10a", "score": "0.612962", "text": "public function getName()\n {\n $value = $this->get(self::NAME);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "2e2bc566c46a22f3322783648b751639", "score": "0.61283535", "text": "public function getProperty() {\n $object = $this->obj;\n return $object->property->__toString();\n }", "title": "" }, { "docid": "65114c2641972e6f209e85ad92fb95cf", "score": "0.61261684", "text": "public function get_name()\n {\n return $this->name;\n }", "title": "" }, { "docid": "65114c2641972e6f209e85ad92fb95cf", "score": "0.61261684", "text": "public function get_name()\n {\n return $this->name;\n }", "title": "" }, { "docid": "d762415e6ea1048ec4b6fc981da24089", "score": "0.6111116", "text": "public function name() {\n\t\treturn $this->name;\n\t}", "title": "" }, { "docid": "d762415e6ea1048ec4b6fc981da24089", "score": "0.6111116", "text": "public function name() {\n\t\treturn $this->name;\n\t}", "title": "" }, { "docid": "284e0b14f0d602634dfba48c9922551f", "score": "0.6109105", "text": "public function getNodeName()\n {\n return data_get($this->getNode(), 'name.value');\n }", "title": "" }, { "docid": "506a70be8a1d8492090a456f5adb818f", "score": "0.6098474", "text": "public function name() {\r\n\t\treturn $this->name;\r\n\t}", "title": "" }, { "docid": "33d9558ee966c266ebea34141c3b16fa", "score": "0.6096061", "text": "public function name()\n {\n return $this->_name;\n }", "title": "" }, { "docid": "3f6efcc224ea002c2257cc706fb09673", "score": "0.60954124", "text": "public function getName()\n {\n return $this->get('name');\n }", "title": "" }, { "docid": "3f6efcc224ea002c2257cc706fb09673", "score": "0.60954124", "text": "public function getName()\n {\n return $this->get('name');\n }", "title": "" }, { "docid": "40967f18361a980850a8e9fde9f47d22", "score": "0.6086935", "text": "public function name() {\n\t\t\treturn $this->_name;\n\t\t}", "title": "" }, { "docid": "ce7519fc2a2bbeed3e8ad498ba5606a4", "score": "0.6083587", "text": "public function get_name(): string {\n return $this->name;\n }", "title": "" }, { "docid": "8aa12f75e4e0151d12c5f90277a2202d", "score": "0.60818017", "text": "public function getName() {\n return $this->__name;\n }", "title": "" }, { "docid": "404198862b675051c37d49be36cef2a5", "score": "0.60767996", "text": "final public function name()\n {\n return $this->doName();\n }", "title": "" }, { "docid": "10cc18bd10be7bd09042957e79b30ca5", "score": "0.60746676", "text": "public function name()\n {\n return $this->name;\n }", "title": "" }, { "docid": "10cc18bd10be7bd09042957e79b30ca5", "score": "0.60746676", "text": "public function name()\n {\n return $this->name;\n }", "title": "" }, { "docid": "10cc18bd10be7bd09042957e79b30ca5", "score": "0.60746676", "text": "public function name()\n {\n return $this->name;\n }", "title": "" }, { "docid": "10cc18bd10be7bd09042957e79b30ca5", "score": "0.60746676", "text": "public function name()\n {\n return $this->name;\n }", "title": "" }, { "docid": "10cc18bd10be7bd09042957e79b30ca5", "score": "0.60746676", "text": "public function name()\n {\n return $this->name;\n }", "title": "" }, { "docid": "10cc18bd10be7bd09042957e79b30ca5", "score": "0.60746676", "text": "public function name()\n {\n return $this->name;\n }", "title": "" }, { "docid": "10cc18bd10be7bd09042957e79b30ca5", "score": "0.60746676", "text": "public function name()\n {\n return $this->name;\n }", "title": "" }, { "docid": "3faaf365498012cfcf63b9e91e1d2d33", "score": "0.606971", "text": "public function getName()\n\t{\n\t\treturn $this->get('name');\n\t}", "title": "" }, { "docid": "ff865f497d5d7196e4b29661f0bdb2a3", "score": "0.60615504", "text": "public function getNameFieldName()\n {\n return $this->nameFieldName;\n }", "title": "" }, { "docid": "c1ab81ae4b5413d731c6a0faf9d1d579", "score": "0.6057327", "text": "public function getName()\n {\n return !is_null($this->name) ? $this->name : $this->id;\n }", "title": "" }, { "docid": "ea47982b67e1dae86dd3c8d792873aa2", "score": "0.604542", "text": "public function getName() {\r\n return $this->getProperty(\"navigation_name\");\r\n }", "title": "" }, { "docid": "6681bf7042428a4a83d99d16409785ad", "score": "0.60407597", "text": "public function name()\n {\n return (string) $this->data['name'];\n }", "title": "" }, { "docid": "a4d1b7e087bda77be112c1f9d593f1a6", "score": "0.60398173", "text": "function getName() {\n\t\treturn $this->m_name;\n\t}", "title": "" }, { "docid": "f546b97ddfc25b0ad0bbc121ac250bcd", "score": "0.60378104", "text": "public function get_name()\n\t{\n\t\treturn $this->name;\n\t}", "title": "" }, { "docid": "f546b97ddfc25b0ad0bbc121ac250bcd", "score": "0.60378104", "text": "public function get_name()\n\t{\n\t\treturn $this->name;\n\t}", "title": "" }, { "docid": "f546b97ddfc25b0ad0bbc121ac250bcd", "score": "0.60378104", "text": "public function get_name()\n\t{\n\t\treturn $this->name;\n\t}", "title": "" }, { "docid": "f546b97ddfc25b0ad0bbc121ac250bcd", "score": "0.60378104", "text": "public function get_name()\n\t{\n\t\treturn $this->name;\n\t}", "title": "" }, { "docid": "f546b97ddfc25b0ad0bbc121ac250bcd", "score": "0.60378104", "text": "public function get_name()\n\t{\n\t\treturn $this->name;\n\t}", "title": "" }, { "docid": "5968f08c18ed6baa8cd3c23e50d8e142", "score": "0.6035119", "text": "public function getName ( ) { return $this->name; }", "title": "" }, { "docid": "1c85e60382df299faa32044aaffa588f", "score": "0.6033866", "text": "public function getName()\n {\n return $this->getAttr('name');\n }", "title": "" }, { "docid": "de960e8433124d48fda778b3f1f653bf", "score": "0.6031496", "text": "public function getName() {\n return $this->data->name;\n }", "title": "" }, { "docid": "de960e8433124d48fda778b3f1f653bf", "score": "0.6031496", "text": "public function getName() {\n return $this->data->name;\n }", "title": "" }, { "docid": "2b8b7c13d53938867ba7912b2831dc76", "score": "0.6031436", "text": "public function get_name() { return $this->name; }", "title": "" }, { "docid": "a55b97805e9e7c8a0c5e75b9c5067b5a", "score": "0.6031074", "text": "public function getName()\n\t{\n\t\treturn $this->get('Name');\n\t}", "title": "" }, { "docid": "75cbc18a5b976fc12c08c8b100a112df", "score": "0.6024935", "text": "public function name()\r\n {\r\n return $this->name;\r\n }", "title": "" }, { "docid": "3ae2c5cdc800dd306b3e3031cc88ae6f", "score": "0.6013637", "text": "public function getName() {\n\t\tif (isset($this->_data['name'])) {\n\t\t\treturn $this->_data['name'];\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "e452b7efa6f59be1d28ffb0e3a0ff989", "score": "0.6013373", "text": "public function get_name()\n\t{\n\t\treturn $this->_name;\n\t}", "title": "" }, { "docid": "a4785b97f97ea7a93e90bb0763cd387c", "score": "0.60114485", "text": "public function name() {\n\t\treturn $this->_test_field( 'name' );\n\t}", "title": "" }, { "docid": "76bff21b9236cc686a554f9f50ddaa78", "score": "0.60100013", "text": "public function name() {\n return $this -> name;\n }", "title": "" }, { "docid": "fce594b7c2830bc57658898e69602c28", "score": "0.6009913", "text": "function get_name() {\n return $this->name;\n }", "title": "" }, { "docid": "1a65b9686604ad7acc7c96a73facd9bf", "score": "0.60069495", "text": "public function getDisplayNameByProperty($property) {\n\n\t \t\t foreach($this->getColumns() as $column)\n\t \t\t \t\t if($column->getModelPropertyName() == $property)\n\t \t\t \t\t \t return $column->getDisplay() ? $column->getDisplay() : ucfirst($column->getName()); \n\n\t\t\t Log::debug('Table::getDisplayNameByProperty returning null value for property \\'' . $property . '\\'.');\n\n\t \t\t return null;\n\t }", "title": "" } ]
cf2bac0af36e79fdeba3c9da2ad94a95
Consulta a la tabla Funcionarios y tbUsuarioAplicacion por el campo id_usuario
[ { "docid": "6aa9c6cc4fae2f661e26eb6371c3d4a3", "score": "0.0", "text": "public function BR_ConsultarUsuarioxIDUsuario($SessionObj){\r\n $result = $this->dac->DA_ConsultarUsuarioxIDUsuario($SessionObj);\r\n\t\tif($result!=false){\r\n\t\t\tif($result->rowCount() > 0){\r\n\t\t\t\treturn $result->fields;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n }", "title": "" } ]
[ { "docid": "b50e892f527f6f0946ab49defe2e7fa5", "score": "0.75990295", "text": "function get_operador_usuario($id_usuario) {\n $this->db->where('id_usuario', $id_usuario);\n return $this->db->get(\"tb_usuario_operador\");\n }", "title": "" }, { "docid": "8f49d5935d7d1a51736107867e3ffb6d", "score": "0.74419475", "text": "public function get_usuario_por_id($id_usuario){\n \n $conectar=parent::conexion();\n // parent::set_names();\n\n $sql=\"select * from usuarios where id_usuario=?\";\n\n $sql=$conectar->prepare($sql);\n\n $sql->bindValue(1, $id_usuario);\n $sql->execute();\n\n return $resultado=$sql->fetchAll();\n\n \t }", "title": "" }, { "docid": "84f4ade266ca24e6bdd7194bc695a48a", "score": "0.7441281", "text": "function consultaTodosFuncionarios(){\n $bd= conectaBD();\n $sql = \"SELECT *\n FROM funcionario\n INNER JOIN usuario ON funcionario.ID_Usuario = usuario.ID_Usuario\";\n $resultado = $bd->query($sql);\n $bd->close();\n return $resultado;\n }", "title": "" }, { "docid": "d7834551464f3178a2edd0a25a165493", "score": "0.735748", "text": "function consultaOcorrenciaFuncionarios(){\n $sql=\"SELECT ID_Ocorrencia, Tipo_Ocorrencia, usuario.ID_Usuario, nome, cpf, Data_Inicio, Data_Final\n FROM ocorrencias\n INNER JOIN funcionario\n INNER JOIN usuario ON usuario.ID_Usuario = funcionario.ID_Usuario\n WHERE ocorrencias.ID_Usuario = funcionario.ID_Usuario;\";\n $bd= conectaBD();\n $resultado = $bd->query($sql);\n $bd->close();\n return $resultado;\n }", "title": "" }, { "docid": "83fe4937fc7d8517ac4968dc977ece0a", "score": "0.71695787", "text": "function consulta_Todos_Usuarios()\n\t\t{\n\t\t\t$this->sql=\"SELECT * FROM usuario \";\n\t\t\t$this->sql.=\"inner join inf_personal \";\n\t\t\t$this->sql.=\"where inf_personal.ip_id = usuario.ip_id\";\n\t\t\treturn parent::ejecutaQUERY();\n\t\t}", "title": "" }, { "docid": "88c714631817e784332e2b1d75f07155", "score": "0.71642804", "text": "function consultarDatosUsuario($idUsuario, UsuarioBean $usuarioBean);", "title": "" }, { "docid": "966d337371f3d2428d6688abe1466b7b", "score": "0.71325594", "text": "public function consulta() {\n\n\t\t// Buscar as informações do usuario atual logado\n\t\t$this->sql = \"SELECT * FROM dados_usuario WHERE Id = '$this->id'\";\n\n\t\t$this->dados_usuario = mysqli_fetch_array(mysqli_query($this->con, $this->sql));\t\t\n\n\t}", "title": "" }, { "docid": "90b25b842ae892086befeb96667d3a12", "score": "0.7052359", "text": "public function traerDatosUsuario(){\n\n if(isset($_GET[\"id\"])){\n\n $id_usuario = $_GET[\"id\"];\n\n $respuesta = Datos::traerDatosDeUsuario($id_usuario, \"usuarios\");\n\n return $respuesta;\n\n }\n }", "title": "" }, { "docid": "7663a27cadd328226e7c6b6e65ef04ea", "score": "0.6978303", "text": "public function _list($id = null, $usuario = \"\", $cliente = \"\") {\n\t\t\t\n\t\tif (!is_null($id)) {\n\t\t\t$st_query = \"SELECT cliente.*, usuario.*, clienteUsuario.* FROM cliente\n\t\t\t\t\t\tINNER JOIN clienteUsuario ON clienteUsuario.cliente_pk_cliente = cliente.pk_cliente\n\t\t\t\t\t\tINNER JOIN usuario ON usuario.pk_usuario = clienteUsuario.usuario_pk_usuario\n\t\t\t\t\t\tWHERE clienteUsuario.pk_clienteUsuario = \".$id.\" \n\t\t\t\t\t\tORDER BY cliente.pk_cliente ASC;\";\n\t\t} else {\n\t\t\t\t\n\t\t\t$st_query = \"SELECT clienteUsuario.*, cliente.*, usuario.*\n\t\t\t\t\t\tFROM clienteUsuario\n\t\t\t\t INNER JOIN cliente ON cliente.pk_cliente = clienteUsuario.cliente_pk_cliente\n\t\t\t\t INNER JOIN usuario ON usuario.pk_usuario = clienteUsuario.usuario_pk_usuario\";\n\t\t\t\n\t\t\tif ($_SESSION['hashid'] == \"superadmin\") {\n\t\t\t\t$st_query = \"SELECT clienteUsuario.*, cliente.*, usuario.*, perfil.*, filialCliente.*, filial.*\n\t\t\t\t\t\t\tFROM clienteUsuario\n\t\t\t\t\t INNER JOIN cliente ON cliente.pk_cliente = clienteUsuario.cliente_pk_cliente\n\t\t\t\t\t INNER JOIN filialCliente ON filialCliente.cliente_pk_cliente = cliente.pk_cliente\n\t\t\t\t\t INNER JOIN filial ON filial.pk_filial = filialCliente.filial_pk_filial\n\t\t\t\t\t INNER JOIN usuario ON usuario.pk_usuario = clienteUsuario.usuario_pk_usuario\n\t\t\t\t\t INNER JOIN perfil ON perfil.pk_perfil = usuario.perfil_pk_perfil\n\t\t\t\t\t\t\t AND perfil.hashid LIKE 'cliente'\";\n\t\t\t\n\t\t\t\t// FILTROS\n\t\t\t\t// filtro por usuario\n\t\t\t\tif ($usuario != \"\") {\n\t\t\t\t\t$st_query .= \" AND usuario.nome LIKE '%\".$usuario.\"%'\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// filtro por cliente\n\t\t\t\tif ($cliente != \"\") {\n\t\t\t\t\t$st_query .= \" AND cliente.fantasia LIKE '%\".$cliente.\"%'\";\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif ($_SESSION['hashid'] == \"gerentefilial\") {\n\t\t\t\t$st_query = \"SELECT clienteUsuario.*, cliente.*, usuario.*, perfil.*, filialCliente.*, filial.*\n\t\t\t\t\t\t\tFROM clienteUsuario\n\t\t\t\t\t INNER JOIN cliente ON cliente.pk_cliente = clienteUsuario.cliente_pk_cliente\n\t\t\t\t\t INNER JOIN filialCliente ON filialCliente.cliente_pk_cliente = cliente.pk_cliente\n\t\t\t\t\t INNER JOIN filial ON filial.pk_filial = filialCliente.filial_pk_filial \n\t\t\t\t\t INNER JOIN usuario ON usuario.pk_usuario = clienteUsuario.usuario_pk_usuario\n\t\t\t\t\t INNER JOIN perfil ON perfil.pk_perfil = usuario.perfil_pk_perfil\n\t\t\t\t\t\t\t AND perfil.hashid LIKE 'cliente'\n\t\t\t\t\t \t\t AND filial.pk_filial = \".$_SESSION['idFilial'];\n\t\t\t}\n\t\t\t\n\t\t\t$st_query .= \" ORDER BY cliente.pk_cliente ASC;\";\n\t\t}\n\t\t\n\t\t// print $st_query; break;\n\t\t\n\t\t$vetor = array();\n\t\t\n\t\ttry {\n\t\t\t$o_data = $this->o_db->query($st_query);\n\t\t\t\n\t\t\twhile ($o_ret = $o_data->fetchObject()) {\n\t\t\t\t\n\t\t\t\t$objeto = new UsuarioClienteModel();\n\t\t\t\t\n\t\t\t\t$objeto->setPkClienteUsuario($o_ret->pk_clienteUsuario);\n\t\t\t\t$objeto->setPkdoCliente($o_ret->pk_cliente);\n\t\t\t\t$objeto->setNomedoCliente($o_ret->fantasia);\n\t\t\t\t$objeto->setPkdoUsuario($o_ret->usuario_pk_usuario);\n\t\t\t\t$objeto->setNomedoUsuario($o_ret->nome);\n\t\t\t\t\n\t\t\t\tarray_push($vetor,$objeto);\n\t\t\t}\n\t\t}\n\t\tcatch(PDOException $e) { }\n\t\treturn $vetor;\n\t}", "title": "" }, { "docid": "f23b4f2c82d892b6c8a3bf32c38e4533", "score": "0.6976329", "text": "function consultaUsuario($id){\r\n $campos=\"*\";\r\n $tabla=\"usuarios\";\r\n $donde = \" WHERE id=?\";\r\n $resultado=$this->invoco->ConsultaPreparada($tabla,$campos,$donde,'i',array($id),\"consultaUsuario\");\r\n if(count($resultado)>0){\r\n return $resultado;\r\n }\r\n \r\n }", "title": "" }, { "docid": "e38a5ec68db86387ed37191d2f64f0e5", "score": "0.69042563", "text": "function obtiene_datos_usuario (){\t\n\t\t//preparo la consulta a la base\n if($this->optbusca == 1){//TRAE LOS USUARIOS ACTIVOS\n $query = \"SELECT * FROM usuario as u, nivel as n WHERE u.nivel=n.id_nivel and n.id_nivel <> 4\";\n }else{//TRAE LOS USUARIOS INACTIVOS\n $query = \"SELECT * FROM usuario as u, nivel as n WHERE u.nivel=n.id_nivel and n.id_nivel = 4\";\n }\t\t\t\t\t\t\t\t \t\t\n\t\t$datos = mysql_query($query);\t\n\t\treturn $datos;\t\t\t\n\t}", "title": "" }, { "docid": "e8889f9d4b1e6d0bcfe586a064615888", "score": "0.6888922", "text": "function consultaOcorrencias($id){\n $sql=\"SELECT *\n FROM ocorrencias\n WHERE ID_Usuario='\".$id.\"'\";\n $bd= conectaBD();\n $resultado = $bd->query($sql);\n $bd->close();\n return $resultado;\n }", "title": "" }, { "docid": "4910fe92d70c4026f7421a523ef30c83", "score": "0.6880339", "text": "function listarAlmacenUsuario(){\n $this->procedimiento='alm.ft_almacen_usuario_sel';\n $this->transaccion='SAL_ALMUSR_SEL';\n $this->tipo_procedimiento='SEL';//tipo de transaccion\n \n //Definicion de la lista del resultado del query\n $this->captura('id_almacen_usuario','int4');\n $this->captura('id_usuario','int4');\n $this->captura('cuenta','varchar');\n $this->captura('estado_reg','varchar');\n $this->captura('id_usuario_reg','int4');\n $this->captura('fecha_reg','timestamp');\n $this->captura('fecha_mod','timestamp');\n $this->captura('id_usuario_mod','int4');\n $this->captura('usr_reg','varchar');\n $this->captura('usr_mod','varchar');\n \n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n \n //Devuelve la respuesta\n return $this->respuesta;\n }", "title": "" }, { "docid": "baa8f5386be967828a03f4d5edbbb95c", "score": "0.6831872", "text": "function Verifica_usuarios($id_funcionario)\n{\n$query = $this->db->query(\" \n\t\t\t\t\t\t\tSELECT\n\t\t\t\t\t\t\tus_usuarios.id_usuario,\n\t\t\t\t\t\t\tus_usuarios.tipo_de_usuario,\n\t\t\t\t\t\t\tus_usuarios.usuario,\n\t\t\t\t\t\t\tus_usuarios.contraseña,\n\t\t\t\t\t\t\tus_usuarios.estado,\n\t\t\t\t\t\t\tus_funcionarios.nombres,\n\t\t\t\t\t\t\tus_funcionarios.paterno,\n\t\t\t\t\t\t\tus_funcionarios.materno,\n\t\t\t\t\t\t\tus_funcionarios.cargo\n\t\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\tus_usuarios\n\t\t\t\t\t\t\tINNER JOIN us_funcionarios ON us_usuarios.funcionario = us_funcionarios.id_funcionario\n\t\t\t\t\t\t\tWHERE\n\t\t\t\t\t\t\tus_usuarios.funcionario ='\".$id_funcionario.\"'\n\t\t\t\t\t\t\t \");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tif($query->num_rows()>0)\n\t\t\t{\n\t\t\t\treturn $query->result();\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\t\n\t\t\t}\n}", "title": "" }, { "docid": "4400afb2d4eb50d76b3e6176b95ba437", "score": "0.6829332", "text": "public function verUsuarioFactura($id)\n {\n\n //$cnx = new Conexion;\n $sql = \"SELECT U.nom1, U.nom2, U.ape1, U.ape2 , T.tel , D.dir\n from usuario U join telefono T on T.CF_us = U.ID_us\n join direccion D on D.CF_us = U.ID_us\n where U.ID_us = '$id'\n limit 1\";\n $stm = $this->db->prepare($sql);\n $stm->execute();\n $result = $stm->fetchAll(); \n return $result;\n //$result = $cnx->query($sql);\n //return $result;\n }", "title": "" }, { "docid": "bfa233dec07fe13887222f6a812ecb9d", "score": "0.6824751", "text": "public function selectUsuarios($id){\n $sql = \"SELECT U.FK_tipo_doc, U.ID_us, \n U.nom1, U.nom2, U.ape1, \n U.ape2, U.pass, U.foto, \n U.correo, U.fecha, \n R.nom_rol, R_U.estado, R.ID_rol_n,\n T.tel, D.dir\n FROM usuario U \n left JOIN rol_usuario R_U ON R_U.FK_us = U.ID_us\n left JOIN rol R ON R_U.FK_rol = R.ID_rol_n \n left JOIN telefono T ON U.ID_us = T.CF_us\n left JOIN direccion D ON D.CF_us = U.ID_us\n WHERE ID_us = :id\n LIMIT 1\n \";\n $c = $this->db->prepare($sql);\n $c->bindValue(\":id\", $id, PDO::PARAM_STR);\n $c->execute();\n $r = $c->fetchAll();\n return $r;\n }", "title": "" }, { "docid": "56313b4c281b265f207f170b6a14f7fd", "score": "0.68180686", "text": "public function select($usuarios){\r\n $correo=$usuarios->getCorreo();\n\r\n try {\r\n $sql= \"SELECT `Correo`, `Nombre`, `Password`\"\r\n .\"FROM `usuarios`\"\r\n .\"WHERE `Correo`='$correo'\";\r\n $data = $this->ejecutarConsulta($sql);\r\n for ($i=0; $i < count($data) ; $i++) {\r\n $usuarios->setCorreo($data[$i]['Correo']);\n $usuarios->setNombre($data[$i]['Nombre']);\n $usuarios->setPassword($data[$i]['Password']);\n\r\n }\r\n return $usuarios; } catch (SQLException $e) {\r\n throw new Exception('Primary key is null');\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "7fc07f1a38016ca611013c71563e983f", "score": "0.6812215", "text": "public function getDatosActuales($id, $tabla) {\n \n $consulta = \"SELECT first_name, last_name, email, nivel FROM \".$tabla.\" WHERE user_id =\".$id;\n $sql = $this->db->query($consulta);\n \n return $sql->result_array(); \n }", "title": "" }, { "docid": "145e18b715167b0f6ad39e6768573d04", "score": "0.6799693", "text": "function obtener_usuario($id_usuario){\n\t\n\t\t\t\t $usuario_buscado = $modelo_usuario->obtener_usuario($id_usuario);\n\t\n\t\t\t\t return $usuario_buscado;\n\t\n\t\t}", "title": "" }, { "docid": "3f396cab8a3ebfdb62a299a58e4de846", "score": "0.6795476", "text": "public function accionListaActividadesCrud(){\n if (!Sistema::app() -> acceso() -> hayUsuario()) {\n Sistema::app() -> sesion() -> set(\"pagPrevia\", array(\"actividades\", \"listaActividadesCrud\"));\n Sistema::app() -> sesion() -> set(\"parametrosAnt\", array());\n Sistema::app() -> irAPagina(array(\"inicial\", \"login\"));\n exit ;\n } \n else if (!Sistema::app() -> acceso() -> puedeConfigurar()) {\n Sistema::app() -> paginaError(400, \"No tiene permiso para acceder\");\n exit ;\n } \n else {\n $actividades=new Actividades(); \n\t\t\t\t\n\t\t\t\t//establezco las opciones de filtrado\n\t $opciones=array();\n\t $cadena=\"\";\n\t $filtrado=array();\n\t $opciones[\"select\"]=\" t.*, tem.nombre as temporada \"; \n\t $opciones[\"from\"]=\" join temporadas tem using(cod_temporada) \";\n\t $opciones[\"order\"]= \" t.nombre \";\n\t //filtrado \n\t //si no existe filtrado se muestran todas las actividades\t\t\t\t\n\t\t\t\t//Filtro temporada\n\t\t\t\tif(isset($_REQUEST[\"temporada\"]) && $_REQUEST[\"temporada\"]!==\"\"){\n\t\t\t\t\t$cadena.=\" t.cod_temporada=\".intval($_REQUEST[\"temporada\"]);\n\t\t\t\t\t$temporada=intval($_REQUEST[\"temporada\"]);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$cadena.=\" tem.fecha_inicio<='\".date(\"Y-m-d\").\"' and tem.fecha_fin>='\".date(\"Y-m-d\").\"'\";\t\n\t\t\t\t}\n\t \n\t $opciones[\"where\"]=$cadena;\n\t\t\t\t\n\t\t\t\t \n $filas=$actividades->buscarTodos($opciones);\t\t\t\t\t\t\t\t\t\t\t\t\n \n $this->dibujaVista(\"listaActividadesCrud\", array(\"filas\"=>$filas, \"temporada\"=>(isset($temporada)? $temporada: \"\")) , \"Lista de Actividades \");\n }\n }", "title": "" }, { "docid": "c00c5ec8086f8c532c92de7a600dc632", "score": "0.67372894", "text": "public function usuarios($id){\n $sql=\"SELECT u.id, u.id_oficina, o.oficina, u.username, u.nombre, u.last_login,u.mosca,u.cargo,u.email,u.logins, u.fecha_creacion,u.genero,n.nivel FROM users u\n INNER JOIN oficinas o ON u.id_oficina=o.id\n INNER JOIN niveles n ON u.nivel=n.id\n WHERE u.id <> '$id'\";\n return $this->_db->query(Database::SELECT, $sql, TRUE);\n }", "title": "" }, { "docid": "346929b981f8a9c7c3799bb4c9d80bda", "score": "0.6731869", "text": "function getDatosUsuario () {\r\n $this->objFunc=$this->create('MODReporte');\r\n $this->res=$this->objFunc->getDatosUsuario($this->objParam);\r\n $this->res->imprimirRespuesta($this->res->generarJson());\r\n }", "title": "" }, { "docid": "427e92960dd4cc3845d500e8b7d9da83", "score": "0.67174333", "text": "public function consultarDataUsuario($id_inicio, $id_final) {\n $con = \\Yii::$app->db; \n $sql = \"select usu_id, p.per_cedula from \" . $con->dbname . \".usuario u inner join \" . $con->dbname . \".persona p on (p.per_id = u.per_id) \n where usu_id between :id_inicio and :id_final \n and u.usu_estado = '1' and p.per_estado = '1'\n \";\n $command = $con->createCommand($sql);\n $command->bindParam(\":id_inicio\", $id_inicio, \\PDO::PARAM_INT);\n $command->bindParam(\":id_final\", $id_final, \\PDO::PARAM_INT); \n return $command->queryAll(); \n }", "title": "" }, { "docid": "ba8ea634d8e9675a22822e16a80e0e54", "score": "0.6688053", "text": "public function verUsuario()\r\n {\r\n $sql = \"SELECT * FROM usuario WHERE id_Usuario = '{$this-> id_Usuario}'\";\r\n $resultado = $this-> conex-> consultaRetorno($sql);//Guarda el Resultado de la Consulta\r\n //Guarda una fila del Resulset(Tabla Virtual) en un array asociativo\r\n $fila = mysqli_fetch_assoc($resultado);\r\n\r\n //Asignacion de Atributos de la Tabla Usuario\r\n $this-> id_Usuario = $fila['id_Usuario'];\r\n $this-> numeroId_Usuario = $fila['numeroId_Usuario'];\r\n $this-> id_TipoDoc = $fila['id_TipoDocumento'];\r\n $this-> nombres_Usuario = $fila['nombres_Usuario'];\r\n $this-> apellidos_Usuario = $fila['apellidos_Usuario'];\r\n $this-> genero_Usuario = $fila['genero_Usuario'];\r\n $this-> telefono_Usuario = $fila['telefono_Usuario'];\r\n $this-> celular_Usuario = $fila['celular_Usuario'];\r\n $this-> email_Usuario = $fila['email'];\r\n $this-> id_Ciudad = $fila['id_Ciudad'];\r\n $this-> foto_Usuario = $fila['foto_Usuario'];\r\n $this-> id_Centro = $fila['id_Centro'];\r\n $this-> id_Programa = $fila['id_Programa'];\r\n $this-> id_Rol = $fila['id_Rol'];\r\n $this-> id_Regional = $fila['id_Regional'];\r\n $this-> fechaNacimiento_Usuario= $fila['fechaNacimiento_Usuario'];\r\n $this-> cargo = $fila['cargo'];\r\n $this-> activacion= $fila['activacion'];\r\n $this-> numeroFicha_Usuario= $fila['numeroFicha_Usuario'];\r\n\r\n return $fila;\r\n }", "title": "" }, { "docid": "d20c3dce3dcea4b9de3d2da8473eb6af", "score": "0.6681645", "text": "public function cambia_datos_usuario() {\n\t\t$usuario = $this -> ssouva -> login();\n\t\t$datos[\"usuario\"] = $usuario;\n\n\t\t// Cosas de sesiones y si es admin o no\n\t\tif ($this -> admin_model -> es_admin($usuario)>0) {\n\t\t\t$idu = $this -> input -> post(\"idu\");\n\t\t\t$nombre = $this -> input -> post(\"nombre\");\n\t\t\t$apellidos = $this -> input -> post(\"apellidos\");\n\t\t\t$login = $this -> input -> post(\"login\");\n\t\t\t$password = $this -> input -> post(\"password\");\n\t\t\t$direccion = $this -> input -> post(\"direccion\");\n\t\t\t$tlf = $this -> input -> post(\"tlf\");\n\t\t\t$email = $this -> input -> post(\"email\");\n\t\t\t$verificado = $this -> input -> post(\"verificado\");\n\n\t\t\t$this -> usuarios_model -> updatea_user($idu, $nombre, $apellidos, $login, $password, $direccion, $tlf, $email, $verificado);\n\t\t\t// Y recargamos los datos\n\t\t\t$datos[\"denuncias\"] = $this -> comentarios_model -> hay_denuncias();\n\t\t\t$datos[\"usuarios_no\"] = $this -> usuarios_model -> usuarios_no_activados();\n\t\t\t$datos[\"pisos_no\"] = $this -> pisos_model -> mostar_pisos_no_validados();\n\t\t\t$this -> load -> view(\"doc/index\", $datos);\n\t\t}\n\t}", "title": "" }, { "docid": "27a7fc947ef2c7d55418efe4be6ea753", "score": "0.6678882", "text": "public function vistaUsuariosModel($tabla){\n //Se realiza la conexion y se prepara la consulta de insercion\n $stmt = Conexion::conectar()->prepare(\"SELECT u.id, t.tipo, u.usuario, u.nombre, u.correo, u.contrasena FROM $tabla u INNER JOIN tipos_usuarios t on u.id_tipo_usuario = t.id\");\t\n //Ejecuta la consulta\n $stmt->execute();\n \n #fetchAll(): Obtiene todas las filas de un conjunto de resultados asociado al objeto PDOStatement. \n return $stmt->fetchAll();\n \n $stmt->close();\n \n }", "title": "" }, { "docid": "38f9cb745c02359e237f37573aec292b", "score": "0.66738236", "text": "public function informacionUsuario()\r\n {\r\n $user = $_SESSION['id'];\r\n $sql1 = $this->conn->prepare(\"SELECT `id`,`nombres`,`apellidos`,`usuario`,`fecha` FROM usuarios WHERE `id`=?\"); //consultar información del usuario que inició sesión\r\n $sql1->bind_param('i', $user); //agregar variables a la sentencia preparada\r\n $sql1->execute(); //ejecutar sentencia preparada con los parametros indicados\r\n $result = $sql1->get_result();\r\n $datos = $result->fetch_assoc();\r\n $sql1->close();//liberar los datos almacenados en memoria de la consulta\r\n return $datos;\r\n }", "title": "" }, { "docid": "9747ce59111e60cc805bfa142b63ba37", "score": "0.6671321", "text": "public static function getUsuarios()\n {\n //verificar que este todo bien con respecto a la BD\n $query = \"SELECT id,nombre,apellido,cedula,direccion,telefono,celular,usuario,privilegio FROM usuarios\";\n\n self::getConexion();\n\n $resultado = self::$cnx->prepare($query);\n\n \n\n $resultado->execute();\n\n $filas =$resultado->fetchAll();\n \n\n return $filas;\n }", "title": "" }, { "docid": "57cafee2bac06d314a6f263bb59f9d59", "score": "0.667081", "text": "public function consultarUsuarios() {\r\n\r\n if ($this->getRol() != ROL_ADMINISTRADOR) {\r\n echo \"NO TIENE ACCESO A ESTA OPCIÓN\";\r\n } else {\r\n $this->crearMenu($menu2, \"administrador/registrar\", \"Crear usuario\");\r\n $this->view->setMenu2($menu2);\r\n\r\n $this->view->setParams($this->usuario->getUsuarios(), 'ALL_USERS');\r\n $this->view->setTitle(\"CONSULTAR TODOS LOS USUARIOS\");\r\n $this->view->setJs(array(\"switch\"));\r\n $this->view->renderize(\"consultarUsuarios\");\r\n }\r\n }", "title": "" }, { "docid": "51052efe532643c0b5707557ecc57937", "score": "0.66674215", "text": "function buscarusr($idusuario,$conexion){\n $sql2=\"SELECT * FROM usuarios WHERE id='$idusuario'\";\n $result = $conexion->query($sql2);\n $row=$result->fetch_assoc(); \n $usr=$row['nombre'];\n //fin de busqueda\n return $usr;\n }", "title": "" }, { "docid": "6a321e8dea62f75fdd875a32d2f1059b", "score": "0.66559696", "text": "public function verUsuarioFactura($id){\n $sql = \"SELECT U.nom1, U.nom2, U.ape1, U.ape2 , T.tel , D.dir\n FROM usuario U JOIN telefono T ON T.CF_us = U.ID_us\n JOIN direccion D ON D.CF_us = U.ID_us\n WHERE U.ID_us = ?\n LIMIT 1\";\n $stm = $this->db->prepare($sql);\n $stm->bindValue( 1, $id, PDO::PARAM_STR );\n $stm->execute();\n $result = $stm->fetchAll(); \n return $result;\n }", "title": "" }, { "docid": "cb7d754b1040f6924ef9cdc8388ac5b1", "score": "0.66415703", "text": "public function cargaUsuario(){\n\t\t\t//se toma el id existente mediante el metodo GET\n\t\t\tif (isset($_GET['id'])) {\n\t\t\t\t//a la variable id se le asinga el id obtenido\n\t\t\t\t$id = $_GET['id'];\n\t\t\t\t//se manda a la clase Datos el id y el nombre de la tabla\n\t\t\t\t$respuesta = Datos::cargaUsuario($id, 'usuarios');\n\t\t\t\t//se cra un pequeño form de los campos del usuario con el nombre la contraseña y el email cargados\n\t\t\t\techo '<input type=\"hidden\" name=\"id\" value=\"'.$respuesta[\"id\"].'\">\n\t\t\t\t\t<label>Usuario:</label><br>\n\t\t\t\t\t<input type=\"text\" value=\"'.$respuesta[\"usuario\"].'\" name=\"usuario\" required><br>\n\t\t\t\t\t<label>Contraseña:</label><br>\n\t\t\t\t\t<input type=\"text\" value=\"'.$respuesta[\"password\"].'\" name=\"password\" required><br>\n\t\t\t\t\t<label>Correo:</label><br>\n\t\t\t\t\t<input type=\"email\" value=\"'.$respuesta[\"email\"].'\" name=\"email\" required><br>\n\t\n\t\t\t\t\t<input type=\"submit\" value=\"Actualizar\">';\n\t\t\t}\n\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "ed2de3c0b21820b578c5855e6191755b", "score": "0.6641458", "text": "public function listado($condiciones)\n\t{\n\t\t$sql = \t' SELECT usuario.*, perfil.nombre as perfil_nombre, grupo_dispo_cab.nombre AS grupo_dispo, grupo_precio_cab.nombre AS grupo_precio, calidad.nombre AS nombre_calidad, usuario.login_fox'.\n\t\t\t\t' FROM usuario LEFT JOIN perfil '.\n\t\t\t\t'\t\t ON perfil.id = usuario.perfil_id '.\n\t\t\t\t'\t\t\t\tLEFT JOIN grupo_dispo_cab '.\n\t\t\t\t'\t\t\t\t\t ON grupo_dispo_cab.id = usuario.grupo_dispo_cab_id '.\n\t\t\t\t'\t\t\t\tLEFT JOIN grupo_precio_cab '.\n\t\t\t\t'\t\t\t\t\t ON grupo_precio_cab.id = usuario.grupo_precio_cab_id '.\n\t\t\t\t'\t\t\t\tLEFT JOIN calidad '.\n\t\t\t\t'\t\t\t\t\tON calidad.id = usuario.calidad_id '.\n\t\t\t\t' WHERE 1 = 1 ';\n\t\t\n\t\tif (!empty($condiciones['criterio_busqueda']))\n\t\t{\n\t\t\t$sql = $sql.\" and (usuario.nombre like '%\".$condiciones['criterio_busqueda'].\"%'\".\n\t\t\t\t\t\t\" or usuario.id like '%\".$condiciones['criterio_busqueda'].\"%'\".\n\t\t\t\t\t\t\" or usuario.username like '%\".$condiciones['criterio_busqueda'].\"%'\".\n\t\t\t\t\t\t\" or usuario.email like '%\".$condiciones['criterio_busqueda'].\"%')\";\t\t\t\t\t\t\n\t\t}//end if\n\t\t\n\t\tif (!empty($condiciones['estado']))\n\t\t{\n\t\t\t$sql = $sql.\" and usuario.estado = '\".$condiciones['estado'].\"'\";\n\t\t}//end if \n\t\t\n\t\tif (!empty($condiciones['cliente_id']))\n\t\t{\n\t\t\t$sql = $sql.\" and usuario.cliente_id = '\".$condiciones['cliente_id'].\"'\";\n\t\t}//end if\n\t\t\n\t\tif (!empty($condiciones['solo_vendedor_administrador']))\n\t\t{\n\t\t\t$sql = $sql.\" and usuario.perfil_id <> 1\";\n\t\t}\t\n\t\tif (isset($condiciones['perfil_id']))\n\t\t{\n\t\tif ($condiciones['perfil_id']!='')\n\t\t{\n\t\t\t\t$sql = $sql.\" and perfil_id = \".$condiciones['perfil_id'];\n\t\t\t}//end if\n\t\t}//end if\n\t\t$sql=$sql.\" order by usuario.nombre\";\n\t\t$stmt = $this->getEntityManager()->getConnection()->prepare($sql);\n\t\t$stmt->execute();\n\t\t$result = $stmt->fetchAll(); //Se utiliza el fecth por que es un registro\n\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "de76d6e518240f1a094a0c472e57ba3a", "score": "0.6639754", "text": "function usuarios_datos()\n\t{\n\n\t\tparent::objeto();\n\n\t\t$this->tabla=\"usuarios\";\n\t\t$this->campoClave=\"Id\";\n\t\t$this->id=null;\n\t\t\n\t\t\n$v=new Variable(1,$this->tabla,\"Id\",1);\n\t\t\t\n$v->clave=true;\n\t\t\t\n\t\t\t\n$v->autonumerica=true;\n\t\t\t\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"Usuario\",2);\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"Clave\",3);\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"Nombre\",4);\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"Apellido\",5);\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"Mail\",6);\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"IdNivel\",7);\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"IdEstadoUsuario\",8);\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"Creacion\",9);\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"Actualizacion\",10);\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"UltimoIntento\",11);\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"UltimoIngreso\",12);\n$this->agregarVariable2($v);\n\n\t}", "title": "" }, { "docid": "3088a7d0b143d11fedd7bbc6e2e9dc89", "score": "0.6637854", "text": "public function verTelefonosUsuarioPorID($id){\n//include_once '../clases/class.conexion.php';\n//$c = new Conexion;\n $sql = \"SELECT U.ID_us , U.nom1 , U.ape1 , R.nom_rol , T.tel\n from rol R join rol_usuario R_U on R.ID_rol_n = R_U.FK_rol\n join usuario U on R_U.FK_us = U.ID_us\n join telefono T on U.ID_us = T.CF_us\n where CF_us = :id\";\n $consulta= $this->db->prepare($sql);\n $consulta->bindValue(':id', $id);\n $result = $consulta->execute();\n $result = $consulta->fetchAll();\n return $result;\n//echo $sql;\n//$result= $c->query($sql);\n//return $result;\n}", "title": "" }, { "docid": "1a60c8eb0950028cdf30798103a3c0fe", "score": "0.6625315", "text": "function buscarUsuariosCadastrados(){\r\n\t\t$query = \"SELECT * FROM USUARIO WHERE ID_Usuario > 1\";\r\n\t\t$sql = mysql_query($query) or die (\"Erro ao selecionar na tabela USUARIO\". mysql_error());\r\n\r\n\t\t// retorno as Usuarios\r\n\t\treturn $sql;\r\n\r\n\t}", "title": "" }, { "docid": "29ee851a65bedc88c3293d97bd3a7a7d", "score": "0.6615431", "text": "public function buscar_usuario($id){\n\t\t$sql = \"SELECT \n\t\t id, \n\t\t nombre_us, \n\t\t nivel_id, \n\t\t cedula\n\t\t FROM \n\t\t usuarios \n\t\t WHERE \n\t\t id = \".$id;\n\t\t$resp = $this->procesar_query($sql);\n\t\treturn $resp; \n\t}", "title": "" }, { "docid": "86a82d68260de326736c983f4b655874", "score": "0.6610418", "text": "public function __construct(/*$conexion, $id*/){\n\t\t$this->nomTabla = 'usuarios';\n\n\t\t//Comprobamos si se han recibido las claves primarias\n\t\t$arg_list = func_get_args();\n\t\tif (func_num_args() == 2){\n\t\t\t//Inicializamos el array de claves primarias y el nombre de la tabla\n\t\t\t$this->pks = array('idUsuario'=>$arg_list[1]);\n\t\t}\n\n\t\t//Llamamos al constructor de tabla\n\t\tparent::__construct($arg_list[0]);\n\n\t\t//Comprobamos que el usuario existe\n\t\tif (func_num_args() == 2){\n\t\t\tif(!$this->existeUsuario()){\n\t\t\t\t$_SESSION['error'] = \"userNotFound\";\n\t\t\t\t$_SESSION['debug'] = \"El usuario \" . $arg_list[1] . \" no existe.\";\n\t\t\t\theader(\"Location:errores.php\");\n\t\t\t}\n\t\t}\n\n\t\t//Consultas preparadas\n\t\t$this->preparar('getUsuario', \"SELECT * FROM \" . $this->nomTabla . \" WHERE idUsuario = :id\");\n\t\t$this->preparar('getProvincia', \"SELECT P.idProvincia, P.nombre FROM provincias P, \" . $this->nomTabla . \" U WHERE U.idUsuario = :id AND P.idProvincia = U.idProvincia\");\n\t\t$this->preparar('existeEmail', \"SELECT * FROM \" . $this->nomTabla . \" WHERE email = :id\");\n\t\t$this->preparar('existeAlias', \"SELECT * FROM \" . $this->nomTabla . \" WHERE alias = :id\");\n\t}", "title": "" }, { "docid": "b33cb73bfb6ab3e7a15fc32e0692cc4c", "score": "0.6602291", "text": "public function VistaUsuarioController(){\n\t\t\t//se le asigna la clase Datos con la funcion de vista cpn el parametro que es el nombre de la tabla \n\t\t\t$respuesta = Datos::vistaUsuarioModel(\"usuarios\");\n\t\t\t//Estilo para la tabla o listado Usuarios\n\t\t\techo '\n\t\t\t<!--Inicio del estilo para la tabla -->\n\t\t\t <style>\n\t\t\ttable {\n\t\t\t\tfont-family: cursive;\n\t\t\t\tborder-collapse: collapse;\n\t\t\t\twidth: 70%;\n\t\t\t}\n\t\t\t\n\t\t\ttd, th {\n\t\t\t\tborder: 7px solid #dddddd;\n\t\t\t\ttext-align: center;\n\t\t\t\tpadding: 8px;\n\t\t\t}\n\t\t\t\n\t\t\ttr:nth-child(even) {\n\t\t\t\tbackground-color: #D5F5E3;\n\t\t\t}\n\t\t\t</style>\n\t\t\t<!-- Fin del estilo-->\n\t\t\t<!-- Inicio de la tabla -->\n\t\t\t<table>\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th>Id</th>\n\t\t\t\t\t\t\t<th>Usuario</th>\n\t\t\t\t\t\t\t<th>Contraseña</th>\n\t\t\t\t\t\t\t<th>E-mail</th>\n\t\t\t\t\t\t\t<th>Editar</th>\n\t\t\t\t\t\t\t<th>Eliminar</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>';\n\t\t\t\t\tforeach ($respuesta as $usuario => $item) {\n\t\t\t\t\t\techo '<tr>\n\t\t\t\t\t\t<td>'.$item[\"id\"].'</td>\n\t\t\t\t\t\t\t<td>'.$item[\"usuario\"].'</td>\n\t\t\t\t\t\t\t<td>'.$item[\"password\"].'</td>\n\t\t\t\t\t\t\t<td>'.$item[\"email\"].'</td>\n\t\t\t\t\t\t\t<td><a href=\"index.php?action=editar&id='.$item[\"id\"].'\"><button>Editar</button></a></td>\n\t\t\t\t\t\t\t<td><a href=\"index.php?action=eliminar&id='.$item[\"id\"].'\"><button>Borrar</button></a></td>\n\t\t\t\t\t\t</tr>';\n\t\t\t\t\t}\t\n\t\t\techo '</tbody>\n\t\t\t\t</table>';\n\n\n\n\n\n\t\t}", "title": "" }, { "docid": "ed3789aec4340583dc895e18eb64b5c8", "score": "0.65979564", "text": "function privilegios($id_usuario)\n\t\t{\n\t\t\t$sql = \"select * usuario from where correo = '$id_usuario';\";\n\t\t\t$res = $this -> db ->query ($sql);\n\t\t\treturn $res->result();\n\t\t}", "title": "" }, { "docid": "51fc80404dcb1a70a91183a92dc6ca05", "score": "0.6596571", "text": "function traerDatos()\n{\n //usamos global $conn para usar la variable global que almacena al objeto msqli\n global $conn;\n\n $query = \"SELECT * FROM ldg_users ORDER BY id ASC\"; //trae todos los datos de la tabla de manera ascendiente\n $result = $conn->query($query); //hacemos la consulta y el resultado lo almacenamos en result\n while ($res = $result->fetch_assoc()) { //en res se iteraran las filas de la tabla\n if ($res[\"id\"] > 0) {\n //se imprime una fila para cada registro de la tabla\n echo \"<tr id='user\" . $res['id'] . \"'>\"; //almacena el id de cada registro\n echo \"<td scoped=row>\" . $res['id'] . \"</td>\";\n echo \"<td class='name'>\" . $res['name'] . \"</td>\"; //almacena el nombre de cada registro\n echo \"<td class='age'>\" . $res['age'] . \"</td>\"; //almacena la edad de cada registro\n echo \"<td class='email'>\" . $res['email'] . \"</td>\"; //almacena el email de cada registro\n echo \"<td>\n <button class='btn-edit btn btn-primary' onclick='editarUsuario(\" . $res['id'] . \")'><span>Editar </span><i class=' fas fa-user-edit'></i></button> \n <button class='btn-delete btn btn-danger' onclick='eliminarUsuario(\" . $res[\"id\"] . \")'><span>Eliminar </span><i class=' fas fa-user-minus'></i></button>\n </td>\"; //botones para añadir y eliminar registros que al hacer click llaman a funciones en javascript\n echo \"<tr>\";\n }\n }\n}", "title": "" }, { "docid": "a219d0bf91d0db4d384634cb14580a0a", "score": "0.6595834", "text": "public function usuarios() {\n\t\t$usuario = $this -> ssouva -> login();\n\t\t$datos[\"usuario\"] = $usuario;\n\n\t\t// Cosas de sesiones y si es admin o no\n\t\tif ($this -> admin_model -> es_admin($usuario)>0) {\n\t\t\t$datos[\"q\"] = \"\";\n\t\t\t$buscar = $this -> input -> post(\"buscar\");\n\t\t\tif ($buscar==1) {\n\t\t\t\t// Ha entrado a hacer una busqueda\n\t\t\t\t$datos[\"q\"] = $this -> input -> post(\"q\");\n\t\t\t\t$datos[\"resultados\"] = $this -> usuarios_model -> buscar_usuario($datos[\"q\"]);\n\t\t\t}\n\t\t\t$datos[\"usuarios_uva\"] = $this -> usuarios_model -> show_pisos_usuario_uva();\n\t\t\t$datos[\"usuarios_no\"] = $this -> usuarios_model -> usuarios_no_activados();\n\t\t\t$this -> load -> view(\"doc/usuarios\", $datos);\n\t\t}\n\t}", "title": "" }, { "docid": "43cfe24ddcd5e51551d2da7a04b722b7", "score": "0.6586962", "text": "public function get_curso_por_id($id_usuario){\r\n $conectar=parent::conexion();// hacemos nuestra conexion\r\n parent::set_names(); // este es para no tener probllemas con las tilde \r\n $sql=\"select * from curso where id =?\";\r\n $sql=$conectar->prepare($sql); //HACE UNA CONSULTA EN TODOS LOS CAMPOS\r\n $sql->bindValue(1,$id_usuario);\r\n $sql->execute();\r\n return $resultado=$sql->fetchAll(PDO::FETCH_ASSOC);\r\n }", "title": "" }, { "docid": "d4fb58787ecee7cf01ed7b7628bcd3f3", "score": "0.6575713", "text": "public function VistaUsuarioModelo($tabla){\n\n $statement = conexion::conectar()->prepare(\"SELECT id, usuario, password,email FROM $tabla\");\n\n $statement -> execute();\n # el fetchAll obtiene todas las filas de un conjuno de resultados \n return $statement ->fetchAll();\n $statement ->close();\n}", "title": "" }, { "docid": "f078552bd3b33ddb9ea044db365983be", "score": "0.6575173", "text": "public static function listarFuncionarioById(){\n $funcionario = new Funcionario();\n $funcionario->idFuncionario = $_GET['id'];\n $funcionario->perfilFuncionario = $_POST['idNivelUsuario'];\n $retornoFuncionario = $funcionario::SelectByIdFuncionario($funcionario->idFuncionario);\n\n $funcionario->nome = $retornoFuncionario->nome;\n $funcionario->usuario = $retornoFuncionario->usuario;\n $funcionario->senha = $retornoFuncionario->senha;\n $funcionario->idFuncionario = $retornoFuncionario->idFuncionario;\n $funcionario->perfilFuncionario = $retornoFuncionario->perfilFuncionario;\n return $funcionario;\n }", "title": "" }, { "docid": "8a6f5631b527960bdc8111db684dcf0f", "score": "0.65640545", "text": "function buscarPorID(Usuario $o_usuario) {\r\n\t\t$this->sql = sprintf ( \"SELECT * FROM usuario WHERE id = %d\", mysqli_real_escape_string ( $this->con, $o_usuario->getId () ) );\r\n\t\t\r\n\t\t$result = mysqli_query ( $this->con, $this->sql );\r\n\t\tif (! $result) {\r\n\t\t\tdie ( '[ERRO]: ' . mysqli_error ( $this->con ) );\r\n\t\t}\r\n\t\twhile ( $row = mysqli_fetch_object ( $result ) ) {\r\n\t\t\t\r\n\t\t\t// busca o perfil desse usuario\r\n\t\t\t$perfil = new Perfil ( $row->idperfil );\r\n\t\t\t$perfilControl = new PerfilControl ( $perfil );\r\n\t\t\t$perfil = $perfilControl->buscarPorId ();\r\n\t\t\t\r\n\t\t\t// busca a pessoafisica desse usuario\r\n\t\t\t$pessoafisica = new PessoaFisica ( $row->idpessoafisica );\r\n\t\t\t$pessoafisicaControl = new PessoaFisicaControl ( $pessoafisica );\r\n\t\t\t$pessoafisica = $pessoafisicaControl->buscarPorID ();\r\n\t\t\t\r\n\t\t\t$this->o_usuario = new Usuario ( $row->id, $row->nome, $row->usuario, $row->senha, $row->email, $row->ativo, $row->datacadastro, $row->dataedicao, $perfil, $pessoafisica );\r\n\t\t}\r\n\t\t\r\n\t\treturn $this->o_usuario;\r\n\t}", "title": "" }, { "docid": "622032ee186b672eb7327bfbe69411f5", "score": "0.65609586", "text": "function listarCuestionarioFuncionario(){\n\t\t$this->procedimiento='ssig.ft_cuestionario_funcionario_sel';\n\t\t$this->transaccion='SSIG_CUEFUN_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_cuestionario_funcionario','int4');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('id_cuestionario','int4');\n\t\t$this->captura('id_funcionario','int4');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_ai','int4');\n\t\t$this->captura('usuario_ai','varchar');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t$this->captura('desc_person','varchar');\n\t\t$this->captura('codigo','varchar');\n\t\t$this->captura('sw_final','varchar');\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "c37e3cd21b78068f85721b4f60419a77", "score": "0.65604687", "text": "function Verifica_usuario($id_funcionario, $tipo_de_usuario)\n{\n$query = $this->db->query(\" SELECT * FROM us_usuarios WHERE funcionario ='\".$id_funcionario.\"' and tipo_de_usuario ='\".$tipo_de_usuario.\"'\t\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\tif($query->num_rows()>0)\n\t\t\t{\n\t\t\t\treturn $query->result();\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\t\n\t\t\t}\n}", "title": "" }, { "docid": "b286afcf5083c1584056e34249d5ac4a", "score": "0.65558064", "text": "public function mostrar($idusuario){\n\t\t$sql=\"SELECT * FROM usuario WHERE idusuario='$idusuario'\";\n\t\treturn ejecutarConsultaSimpleFila($sql);\n\t}", "title": "" }, { "docid": "45f765cd6ee953b713948711fbf7359f", "score": "0.6549514", "text": "function controlusuario(){\r\n\t$query =0;\r\n\t\r\n\t\r\n\t\r\n\t\tif(isset($_POST['fechaIni'])){\r\n\t\t\t$fecha1=trim($_POST['fechaIni']);\r\n\t\t\t$fecha2=trim($_POST['fechaFin']);\r\n\t\t\tif(strlen($fecha1)!=0 && strlen($fecha2)!=0 ){\r\n\t\t\t//Inicializamos las variables\r\n\t\t\t$idusuario=$_POST['idusuario'];\r\n\t\t\t$fechaini=date(\"Y-m-d\", strtotime(str_replace('/','-',$fecha1)));\r\n\t\t\t$fechafin=date(\"Y-m-d\", strtotime(str_replace('/','-',$fecha2)));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(strtotime($fechaini)>strtotime($fechafin)){\r\n\t\t\t\t$aux=$fechafin;\r\n\t\t\t\t$fechafin = $fechaini;\r\n\t\t\t\t$fechaini=$aux;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Buscamos todos los datos que necesitamos del control de usuarios\r\n\t\t\t$query =\"SELECT * FROM BITACORA WHERE IDUSUARIO='$idusuario' AND FECHAULTIMAMODIFICACION BETWEEN '$fechaini' AND '$fechafin'\";\r\n\t\t\t\r\n\t\t\t$result=mysql_query($query) or die(\"Error en: \" . mysql_error());\r\n\t\t\t@$num_result = mysql_num_rows($result);\r\n\t\t\t\r\n\t\t\t//Procedemos a dibujar la tabla\r\n\t\t\tif(@$num_result>= $GLOBALS[\"cantFilas\"] ){\r\n\t\t\t\techo '<div style=\"height:300px;width:700px;overflow:scroll;\">\r\n\t\t\t\t<Table border=\"0\">';\r\n\t\t\t}else{\r\n\t\t\t echo '<Table border=\"0\">';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Procedemos a dibujar la tabla\r\n\t\t\techo '<tr>\r\n\t\t\t <caption class=\"log\">\r\n Información de '.date(\"d-m-Y\", strtotime($fechaini)).' hasta '.date(\"d-m-Y\", strtotime($fechafin)).'\r\n </caption>\r\n <th width=\"70\" scope=\"col\" class=\"log\">Id Usuario</th>\r\n <th width=\"515\" scope=\"col\" class=\"log\">Evento</th>\r\n <th width=\"71\" scope=\"col\" class=\"log\">Fecha de última Modificación</th>\r\n </tr>';\r\n\t\t\t//verificamos si hay registros\r\n\t\t\tif( $num_result >= 1){\r\n\t\t\t\t$i=0;\r\n\t\t\t\tfor($i=0; $i <$num_result; $i++){\r\n\t\t\t\t\t$fila=mysql_fetch_array($result);\r\n\t\t\t\t\techo '<tr>';\r\n\t\t\t\t\techo '<td class=\"log\">'.$fila['IDUSUARIO'].'</td>';\r\n\t\t\t\t\techo '<td class=\"log\">'.$fila['EVENTO'].'</td>';\r\n\t\t\t\t\techo '<td class=\"log\">'.$fila['FECHAULTIMAMODIFICACION'].'</td>';\r\n\t\t\t\t\techo '</tr>';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$salida=1;\r\n\t\t\t\r\n\t\techo '</table></div>';\r\n\t\t//Cerrando div\r\n\t\t\tif(@$num_result >= $GLOBALS[\"cantFilas\"] )\r\n\t\t\t\techo '</div>';}\r\n\t\t}\r\n}", "title": "" }, { "docid": "4694238b6987acc1c5fd0418f476703b", "score": "0.6544449", "text": "public static function mostrarUsuarios() {\n $query = \"SELECT * FROM Usuario u \n INNER JOIN UsuarioRol ur \n ON u.idUsuario=ur.Usuario_idUsuario\n INNER JOIN Rol r\n ON ur.Rol_idRol=r.idRol\";\n\n// self::getConexion();\n\n $resultado = self::getConexion()->prepare($query);\n $resultado->execute();\n\n return $resultado->fetchAll();\n }", "title": "" }, { "docid": "0b91af0ab1ce620bb31e83e99291b797", "score": "0.65437424", "text": "function listar_usuarios() {\n\t\tglobal $tipo_verificacion_usuario;\n\t\t$res = consulta (\"SELECT * FROM usuarios ORDER BY tiene_permiso, id_usuario DESC\");\n\t\t\t\t\n\t\techo \"<tr><td>\\n\";\n\t\tif (@mysql_num_rows($res)>0) {\n\t\t?>\n\t\t<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"1\" class=\"tabla_de_temas\">\n\t\t\t <tr class=\"encabezado_de_temas\">\n\t\t\t\t<td align=\"center\">ID.</td>\n\t\t\t\t<td>USUARIO</td>\n\t\t\t\t<td>NOMBRE</td>\n\t\t\t\t<td align=\"center\">EMAIL</td>\n\t\t\t\t<td align=\"center\">ALTA</td>\n\t\t\t\t<td align=\"center\">ULT.ACCESO</td>\n\t\t\t\t<td align=\"center\">ACTIVO</td>\n\t\t\t\t<td align=\"center\">&nbsp;</td>\n\t\t\t\t<?php if ($tipo_verificacion_usuario=='administrador') { ?><td align=\"center\">&nbsp;</td><?php } ?>\n\t\t\t </tr>\n\t\t<?php\n\t\t\twhile ($reg = @mysql_fetch_array($res)) {\n\t\t\t\t$id_usuario = $reg ['id_usuario'];\n\t\t\t\t$login = $reg ['login'];\n\t\t\t\t$nombre = $reg ['nombre_usuario'].\" \".$reg ['apellidos_usuario'];\n\t\t\t\t$email = $reg ['email_usuario'];\n\t\t\t\t$fecha_alta = $reg ['fecha_alta'];\n\t\t\t\t$fecha_ultimo_acceso = $reg ['fecha_ultimo_acceso'];\n\t\t\t\t$estado = $reg ['tiene_permiso'];\n\t\t\t\t@mysql_free_result($res_num_mensajes);\n\t\t\t\techo \"\t\t\t<tr class=\\\"fila_de_tabla\\\">\\n\";\n\t\t\t\techo \" <td align=\\\"center\\\">$id_usuario</td>\\n\";\n\t\t\t\techo \" <td>$login</td>\\n\";\n\t\t\t\techo \" <td>$nombre</td>\\n\";\n\t\t\t\techo \" <td align=\\\"center\\\"><a href=\\\"mailto:$email\\\">$email</a></td>\\n\";\n\t\t\t\techo \" <td align=\\\"center\\\">\".formatear_fecha($fecha_alta).\"</td>\\n\";\n\t\t\t\tif ($fecha_ultimo_acceso)\n\t\t\t\t\techo \" <td align=\\\"center\\\">\".formatear_fecha($fecha_ultimo_acceso).\"</td>\\n\";\n\t\t\t\telse\n\t\t\t\t\techo \" <td align=\\\"center\\\">NUNCA</td>\\n\";\t\n\t\t\t\tif ($estado=='NO' && $tipo_verificacion_usuario=='administrador') echo \" <td align=\\\"center\\\"><a href=\\\"index.php?user=$id_usuario\\\">Activar usuario</a></td>\\n\";\n\t\t\t\telse echo \" <td align=\\\"center\\\">$estado</td>\\n\";\n\t\t\t\techo \" <td align=\\\"center\\\"><a href=\\\"index.php?borrar=usuario&id=$login\\\">borrar usuario</a></td>\\n\";\n\t\t\t\tif ($tipo_verificacion_usuario=='administrador')\n\t\t\t\t\techo \" <td align=\\\"center\\\"><a href=\\\"index.php?nuevaClave=SI&id=$id_usuario\\\">Nueva clave</a></td>\\n\";\n\t\t\t\techo \"</tr>\\n\";\n\t\t\t}\n\t\t\techo \"\t\t</table>\\n\";\n\t\t} else {\n\t\t\techo \"<table width=\\\"100%\\\" border=\\\"0\\\" cellspacing=\\\"2\\\" cellpadding=\\\"1\\\" class=\\\"tabla_de_temas\\\"><tr class=\\\"fila_de_tabla\\\"><td>No hay usuarios</td></tr></table>\\n\";\n\t\t}\n\t\t@mysql_free_result($res);\n\t\techo \"</td></tr>\\n\";\n\t}", "title": "" }, { "docid": "5e1667bf4a98c2321c641bfe7a5d4e98", "score": "0.6530982", "text": "public function mostrar($idusuario)\n {\n $sql = \"SELECT * FROM usuario WHERE idusuario='$idusuario' \";\n return ejecutarConsultaSimpleFila($sql);\n }", "title": "" }, { "docid": "7a6859eeea522b7d34ffadda1459a407", "score": "0.6526267", "text": "public function getDatosUsuario($id) {\n \n $consulta = \"SELECT \". join(\",\",$this->fields) .\" FROM usuarios WHERE user_id =\".$id;\n $sql = $this->db->query($consulta);\n \n return $sql->result_array(); \n }", "title": "" }, { "docid": "8bcad08fb683c2be31faed728df95013", "score": "0.6515135", "text": "public static function usuarios($id){ \n return DB::table('users')\n ->leftJoin('puestos', 'users.puesto_id', '=', 'puestos.id')\n -> where('users.id', '=', $id)\n ->select('users.*', 'puestos.puesto','puestos.abogado')\n ->get();\n\n }", "title": "" }, { "docid": "d6b44eb68237b45ba7111e2d684c81a9", "score": "0.6514208", "text": "function obtiene_datos_de_un_usuario ($cod){\n\t \n\t\t//conexion a base de datos\t\t\n\t\t//mysql_connect(\"localhost\",\"root\",\"\");\t\t\n\t\t//preparo la consulta a la base\n $this->codigo = $cod;\n\t\t$query = \"SELECT * FROM usuario as u, nivel as n \nWHERE u.nivel=n.id_nivel and u.id_usuario=\".$this->codigo;\t\t\t\n\t\t//mysql_select_db(\"check\") or die('No pudo seleccionarse la BD.');\t\t\t\t\t\t \t\t\n\t\t$datos = mysql_query($query);\t\n\t\treturn $datos;\t\t\t\n\t}", "title": "" }, { "docid": "0296afa0922d97bf8e81c5d305af46c6", "score": "0.651398", "text": "function buscarusr($idusuario,$conexion){\n $sql2=\"SELECT * FROM usuarios WHERE id='$idusuario'\";\n $result = $conexion->query($sql2);\n $row=$result->fetch_assoc(); \n $usr=$row;\n //fin de busqueda\n return $usr;\n }", "title": "" }, { "docid": "89a4e2be917e72f399b49115f0c46987", "score": "0.65130895", "text": "public function showUsuarios(){\n $conexion = new Connect();\n $consulta = $conexion->prepare('SELECT * FROM '.self::TABLA.' WHERE id_usuario IS NOT NULL GROUP BY id_responsable DESC');\n $consulta->execute();\n $registros = $consulta->fetchAll();\n return $registros;\n }", "title": "" }, { "docid": "31611bfed23c3b3dd28dfaedcccae0e0", "score": "0.65043855", "text": "public function mostrar_pisos_usuario() {\n\t\t$usuario = $this -> ssouva -> login();\n\t\t$datos[\"usuario\"] = $usuario;\n\t\tif ($this -> admin_model -> es_admin($usuario)>0) {\n\t\t\t// Cogemos el usuario\n\t\t\t$idabuscar = $this -> input -> post_get(\"idusuario\");\n\t\t\t$datos[\"busqueda\"] = $this -> pisos_model -> pisos_usuario($idabuscar);\n\t\t\t$datos[\"q\"] = \"\";\n\n\n\t\t\t$this -> load -> view(\"doc/buscar\", $datos);\n\t\t}\n\t}", "title": "" }, { "docid": "19188ba422ced769c73bf3a9223f118f", "score": "0.6503949", "text": "public function buscarUsuarioPorID($idusuario){\n\t\t\t\t\n\t\t$sql = \"SELECT * FROM usuario WHERE idusuario=\".$idusuario;\n\t\t$rs = $this->acceso->ejecutarSQL($sql);\n\t\t\n\t\tif (odbc_fetch_row($rs)){\n\t\t\t$idusuario=odbc_result($rs,\"idusuario\");\n\t\t\t$nombre=odbc_result($rs,\"nombre\");\n\t\t\t$apellido1=odbc_result($rs,\"apellido1\");\n\t\t\t$apellido2=odbc_result($rs,\"apellido2\");\n\t\t\t$numero_cedula=odbc_result($rs,\"numero_cedula\");\n\t\t\t$nombreusuario=odbc_result($rs,\"nombreusuario\");\n\t\t\t$contrasenna=odbc_result($rs,\"contrasenna\");\n\t\t\t$idestado=odbc_result($rs,\"idestado\");\n\t\t\t$consulta = array($idusuario, $nombre, $apellido1, $apellido2, $numero_cedula, $nombreusuario, $contrasenna, $idestado);\n\t\t}\n\t\t$this->acceso->cerrarConexion();\n\t\treturn $consulta;\n\t}", "title": "" }, { "docid": "d1ab8e1dff74e68c7637243a88cecc8d", "score": "0.65012795", "text": "function tablaDatos(){\n\n $editar = $this->Imagenes($this->PrimaryKey,0);\n $eliminar = $this->Imagenes($this->PrimaryKey,1);\n $sql = 'SELECT L.`descripcion`,L.`clase`, L.`tipo`, L.`categoria`, L.`marca`, C.descripcion as Clasificacion,'.$editar.','.$eliminar.' \n FROM `lubricantes` L\n INNER JOIN clasificaciones C ON L.cod_clasificacion = C.id_clasificaciones\n WHERE L.activo = 1\n ORDER BY L.marca,L.clase,C.descripcion'\n ;\n \n $datos = $this->Consulta($sql,1); \n if(count($datos)){\n $_array_formu = array();\n $_array_formu = $this->generateHead($datos);\n $this->CamposHead = ( isset($_array_formu[0]) && is_array($_array_formu[0]) )? $_array_formu[0]: array();\n \n $tablaHtml = '<div class=\"row\">\n <div class=\"col-md-12\">\n <div class=\"panel panel-default\">\n <div class=\"panel-body recargaDatos\" style=\"page-break-after: always;\">\n <div class=\"table-responsive\">';\n $tablaHtml .='';\n \t\t$tablaHtml .= $this->print_table($_array_formu, 8, true, 'table table-striped table-bordered',\"id='tablaDatos'\");\n \t\t$tablaHtml .=' </div>\n </div>\n </div>\n </div>\n </div>\n ';\n }else{\n $tablaHtml = '<div class=\"col-md-8\">\n <div class=\"alert alert-info alert-dismissable\">\n <button class=\"close\" aria-hidden=\"true\" data-dismiss=\"alert\" type=\"button\">×</button>\n <strong>Atenci&oacute;n</strong>\n No se encontraron registros.\n </div>\n </div>';\n }\n \n if($this->_datos=='r') echo $tablaHtml;\n else return $tablaHtml;\n \n }", "title": "" }, { "docid": "fa65173830044e66bc92fcbe576f9f65", "score": "0.65006375", "text": "public function verTelefonosUsuarioPorID($id){\n $sql = \"SELECT U.ID_us , U.nom1 , U.ape1 , R.nom_rol , T.tel\n from rol R join rol_usuario R_U on R.ID_rol_n = R_U.FK_rol\n join usuario U on R_U.FK_us = U.ID_us\n join telefono T on U.ID_us = T.CF_us\n where CF_us = :id\";\n $consulta= $this->db->prepare($sql);\n $consulta->bindValue(':id', $id);\n $result = $consulta->execute();\n $result = $consulta->fetchAll();\n return $result;\n }", "title": "" }, { "docid": "f3f2addbb723f34585bf0cb3e2569c5f", "score": "0.6478392", "text": "public function select($usuario_has_hojaruta){\n $usuario_idusuario=$usuario_has_hojaruta->getUsuario_idusuario()->getIdusuario();\n$hojaRuta_idhojaRuta=$usuario_has_hojaruta->getHojaRuta_idhojaRuta()->getIdhojaRuta();\n\n try {\n $sql= \"SELECT `usuario_idusuario`, `hojaRuta_idhojaRuta`\"\n .\"FROM `usuario_has_hojaruta`\"\n .\"WHERE `usuario_idusuario`='$usuario_idusuario' AND`hojaRuta_idhojaRuta`='$hojaRuta_idhojaRuta'\";\n $data = $this->ejecutarConsulta($sql);\n for ($i=0; $i < count($data) ; $i++) {\n $usuario = new Usuario();\n $usuario->setIdusuario($data[$i]['usuario_idusuario']);\n $usuario_has_hojaruta->setUsuario_idusuario($usuario);\n $hojaruta = new Hojaruta();\n $hojaruta->setIdhojaRuta($data[$i]['hojaRuta_idhojaRuta']);\n $usuario_has_hojaruta->setHojaRuta_idhojaRuta($hojaruta);\n\n }\n return $usuario_has_hojaruta; } catch (SQLException $e) {\n throw new Exception('Primary key is null');\n return null;\n }\n }", "title": "" }, { "docid": "b0cbb37b720e9e3c3f2260fc40a7df16", "score": "0.64728427", "text": "function getUsuarioPredio($documento) {\r\n\t\t///require_once('../../configs/conexion.php'); \r\n\t\tinclude '../../configs/conexion.php';\r\n\t\t$consulta = mysqli_query($conexion, \"SELECT * FROM usuario as u inner join predio_usuario as pu on u.Id_Usuario = pu.Id_Usuario inner join tipo_predio as tp on pu.Id_Tipo_Predio = tp.Id_Tipo_Predio WHERE u.Estado = 1 AND u.Nombre_Usuario = '$documento' OR u.Apellido_Usuario = '$documento' AND u.Estado = 1 OR u.Documento_Usuario = '$documento' AND u.Estado = 1\") or die(2);\r\n\r\n\t\t$i = 0;\r\n\t\twhile($campos = mysqli_fetch_array($consulta)){\t\t\t\r\n\t\t\t\t\r\n\t\t\t$items = array();\r\n\r\n\t\t\t$items[\"Id_Predio_Usuario\"] \t= $campos[\"Id_Predio_Usuario\"];\r\n\t\t\t$items[\"Fecha_Inscripcion\"] \t= $campos[\"Fecha_Inscripcion\"];\r\n\t\t\t$items[\"Id_Usuario\"] \t\t\t= $campos[\"Id_Usuario\"];\t\r\n\t\t\t$items[\"Id_Tipo_Predio\"] \t\t= $campos[\"Id_Tipo_Predio\"];\t\r\n\t\t\t$items[\"Id_Usuario\"] \t\t= $campos[\"Id_Usuario\"];\r\n\t\t\t$items[\"Nombre_Usuario\"] \t= $campos[\"Nombre_Usuario\"];\r\n\t\t\t$items[\"Apellido_Usuario\"] = $campos[\"Apellido_Usuario\"];\t\r\n\t\t\t$items[\"Documento_Usuario\"] = $campos[\"Documento_Usuario\"];\t\r\n\t\t\t$items[\"Telefono_Usuario\"] = $campos[\"Telefono_Usuario\"];\r\n\t\t\t$items[\"Estrato_Usuario\"] = $campos[\"Estrato_Usuario\"];\r\n\t\t\t$items[\"Nombre_Predio\"] = $campos[\"Nombre_Predio\"];\t\r\n\t\t\t$items[\"Nombre_Tipo_Predio\"] = $campos[\"Nombre_Tipo_Predio\"];\r\n\r\n\t\t\t$items[\"Alcantarillado\"] = $campos[\"Alcantarillado\"];\t\r\n\r\n\t\t\t\t\r\n\r\n \r\n\t\t\t$items[\"Tamano_Predio\"] = $campos[\"Tamano_Predio\"];\t\r\n\t\t\t$items[\"Valor_Hectarea\"] = $campos[\"Valor_Hectarea\"];\t\r\n\t\t\t$items[\"Valor_Total\"] = $campos[\"Valor_Total\"];\r\n\r\n\r\n\r\n\t\t\t$listado[$i] = $items;\r\n\t\t\t$i++;\r\n\r\n\t\t}\r\n\t\treturn @$listado;\r\n\t}", "title": "" }, { "docid": "bf6a2a2955df3e807cfffb0c877cbaeb", "score": "0.64720213", "text": "public function get_usuario($id_tip){\n \n $sede=$this->session->userdata('sucursal');\n \n $this->db->select('rut_usu as rut, pnombre as nom,apellido_pa as pat, apellido_ma as mat');\n $this->db->from('usuarios');\n $this->db->join('sucursales','sucursales.id_suc=usuarios.id_suc');\n $this->db->where('id_tip', $id_tip);\n $this->db->where('nombre_suc',$sede);\n $usuarios = $this->db->get();\n\n if($usuarios->num_rows() > 0 ){\n \n return $usuarios->result();\n\n }\n \n \n }", "title": "" }, { "docid": "5cf60eadedaaec5f77deaa1ef67e8c8f", "score": "0.64705294", "text": "public function get_datos_usuario($id='')\n {\n $this->db->where('id',$id);\n return $this->db->get('usuarios')->result_array();\n }", "title": "" }, { "docid": "5f7265c08fdc675c397fbacb3821c0c7", "score": "0.64668566", "text": "public function Obtenerintentos(login $data){\n try \n {\n \t\n $stm = $this->pdo\n ->prepare(\"SELECT * FROM tbl_usuario \n INNER JOIN tbl_rol ON tbl_usuario.fk_rol = tbl_rol.id_rol\n INNER JOIN tbl_estado ON tbl_usuario.fk_estado = tbl_estado.id_estado WHERE usuario = ? \");\n \n\n $stm->execute(array($data->usuario));\n return $stm->fetchAll(PDO::FETCH_OBJ);\n }\n catch(Exception $e)\n {\n die($e->getMessage());\n }\n }", "title": "" }, { "docid": "3001abc8d563172206ceb82c930a9b67", "score": "0.6462572", "text": "function tablaDatos(){\n\n $editar = $this->Imagenes($this->PrimaryKey,0);\n $imagen = $this->Imagenes($this->PrimaryKey,12);\n $eliminar = $this->Imagenes($this->PrimaryKey,1);\n $sql = \"SELECT L.clientetercerizado,\".$imagen.\",L.nombre,\".$editar.\",\".$eliminar.\" FROM \".$this->Table.\" L where estado='A'\";\n \n $datos = $this->Consulta($sql,1); \n if(count($datos)){\n $_array_formu = array();\n $_array_formu = $this->generateHead($datos);\n $this->CamposHead = ( isset($_array_formu[0]) && is_array($_array_formu[0]) )? $_array_formu[0]: array();\n \n $tablaHtml = '<div class=\"row\">\n <div class=\"col-md-12\">\n <div class=\"panel panel-default\">\n <div class=\"panel-body recargaDatos\" style=\"page-break-after: always;\">\n <div class=\"table-responsive\">';\n $tablaHtml .='';\n \t\t$tablaHtml .= $this->print_table($_array_formu, 5, true, 'table table-striped table-bordered',\"id='tablaDatos'\");\n \t\t$tablaHtml .=' </div>\n </div>\n </div>\n </div>\n </div>\n ';\n }else{\n $tablaHtml = '<div class=\"col-md-8\">\n <div class=\"alert alert-info alert-dismissable\">\n <button class=\"close\" aria-hidden=\"true\" data-dismiss=\"alert\" type=\"button\">×</button>\n <strong>Atenci&oacute;n</strong>\n No se encontraron registros.\n </div>\n </div>';\n }\n \n if($this->_datos=='r') echo $tablaHtml;\n else return $tablaHtml;\n \n }", "title": "" }, { "docid": "d55d8d6923dfef74799f4b7ce47da6c0", "score": "0.6456472", "text": "function vista_inicio($id_usuario, $conn) {\n $sql = \"SELECT id, tipo_cuenta, cantidad \n FROM cuentas \n WHERE usuario_id = :id_usuario\";\n $statement = $conn->prepare($sql);\n $statement->bindParam(':id_usuario', $id_usuario);\n $statement->execute();\n $results = $statement->fetchAll(PDO::FETCH_OBJ);\n\n return $results;\n }", "title": "" }, { "docid": "659db75e1ec4b8d165fd9e13c36d89eb", "score": "0.6441426", "text": "public function get_un_fue_a($id_usuario){\n $conectar= parent::conexion();\n parent::set_names();\n $sql=\" SELECT CONCAT(e.nombre_fue) as nom,COUNT(*) AS total\n FROM unidad_educativa_a a, comunidad b, municipio c, departamento d , fuente e\n where a.id_comunidad = b.id_comunidad\n and b.id_municipio = c.id_municipio\n and c.id_departamento = d.id_departamento\n and a.id_estado = '2' and a_estado=0\n and a.id_fuente = e.id_fuente\n GROUP BY e.nombre_fue\n ORDER BY nom DESC\";\n $sql=$conectar->prepare($sql);\n $sql->bindValue(1, $id_usuario);\n $sql->execute();\n return $resultado=$sql->fetchAll();\n }", "title": "" }, { "docid": "83b86b769793a5acc1afc07229b1e8ba", "score": "0.6438032", "text": "public function get_usuario($id_tip,$id_suc){\n \n \n $this->db->select('rut_usu as rut, pnombre as nom,apellido_pa as pat, apellido_ma as mat');\n $this->db->from('usuarios');\n $this->db->join('sucursales','sucursales.id_suc=usuarios.id_suc');\n $this->db->where('id_tip', $id_tip);\n $this->db->where('usuarios.id_suc',$id_suc);\n $usuarios = $this->db->get();\n\n if($usuarios->num_rows() > 0 ){\n \n return $usuarios->result();\n\n }\n \n \n }", "title": "" }, { "docid": "127634e0bafcd03d7ec90532a8c5ae75", "score": "0.64374226", "text": "public function BR_ConsultarFuncionarioxIDUsuario($SessionObj){\r\n $result = $this->dac->DA_ConsultarFuncionarioxIDUsuario($SessionObj);\r\n\t\tif($result!=false){\r\n\t\t\tif($result->rowCount() > 0){\r\n\t\t\t\treturn $result->fields;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n }", "title": "" }, { "docid": "e2b91655266aeb3c9936747bb6374415", "score": "0.64342993", "text": "function ObtenerUsuario($EntidadUsuario){\n /**\n * objeto para usar los metodos relacionados con la conexion\n */\n $Conexion = new Conexion();\n\n /**\n * se asigna el nombre de la base de datos\n */\n $BaseDatos = $EntidadUsuario['BaseDatos'];\n\n /**\n * se obtiene la cadena de conexion\n */\n $DatosConexion = $Conexion->ObtenerConexionBD($BaseDatos);\n\n $Resultado = array();\n\n if(count($EntidadUsuario) != 0){ \n /**\n * sie el arreglo de entrada tiene al menos 1 registro\n */\n\n /**\n * consulta del la informacion colocada en el login\n * no hace falta aplicar el sha1 a la contraseña\n * debido a que ya llega aqui con el algoritmo\n */\n $result = $DatosConexion->query(\"SELECT * FROM operacion_usuarios where Usuario='\".$EntidadUsuario['Usuario'].\"' AND Contrasenia='\".$EntidadUsuario['Contrasenia'].\"' AND Estado=1\");\n\n /**\n * si retorno resultadose se asignan\n * los valores\n */\n if($result)\n { \n $Resultado = $result->fetch_array(MYSQLI_ASSOC);\n }\n else{\n /**\n * en caso contrario se\n * retorna el siguiente mensaje\n */\n $Resultado = array (\n 'TipoRespuesta' => '2',\n 'TextoRespuesta' => 'Usuario o Contraseña invalidas'\n );\n }\n }\n else{\n /**\n * arreglo a retornar si no hay un \n * usuario en el arreglo\n */\n $Resultado = array (\n 'TipoRespuesta' => '2',\n 'TextoRespuesta' => 'Acceso vacio'\n );\n }\n\n return $Resultado;\n }", "title": "" }, { "docid": "654c60f43f5a78edcadb6d58aded2551", "score": "0.64326066", "text": "public function listarUsuarioVistas($ID_USUARIO)\n {\n try\n {\n// $query=\"SELECT tbestructura.id_estructura, tbestructura.id_submodulos,tdsubmodulos.nombre nombre_submodulo ,tbestructura.descripcion, tbestructura.id_vistas,tbvistas.nombre,tbestructura.vista_nombre_logico,tbestructura.nombre_contenido_dentro_submodulos nombre_contenido_sub,tbestructura.imagen_seccion_up,tbestructura.imagen_seccion_izquierda,\n// tbusuarios_vistas.new,tbusuarios_vistas.consult \n// FROM usuarios_vistas tbusuarios_vistas\n// JOIN estructura tbestructura ON tbusuarios_vistas.id_estructura = tbestructura.id_estructura\n// JOIN vistas tbvistas ON tbvistas.id_vistas = tbestructura.id_vistas\n// JOIN submodulos tdsubmodulos ON tdsubmodulos.id_submodulos = tbestructura.id_submodulos\n// WHERE tbusuarios_vistas.id_usuario=$ID_USUARIO \";\n\n $query=\"SELECT tbestructura.id_estructura, tbestructura.id_submodulos,tdsubmodulos.nombre nombre_submodulo ,tbestructura.descripcion, tbestructura.id_vistas,tbvistas.nombre,tbestructura.vista_nombre_logico,tbestructura.nombre_contenido_dentro_submodulos nombre_contenido_sub,tbestructura.imagen_seccion_up,tbestructura.imagen_seccion_izquierda, tbusuarios_vistas.EDIT,\n tbusuarios_vistas.delete, tbusuarios_vistas.new,tbusuarios_vistas.consult \n FROM usuarios_vistas tbusuarios_vistas\n JOIN estructura tbestructura ON tbusuarios_vistas.id_estructura = tbestructura.id_estructura\n JOIN vistas tbvistas ON tbvistas.id_vistas = tbestructura.id_vistas\n JOIN submodulos tdsubmodulos ON tdsubmodulos.id_submodulos = tbestructura.id_submodulos\n WHERE tbusuarios_vistas.id_usuario=$ID_USUARIO\";\n\n // $query=\"SELECT tbestructura.id_estructura, tbestructura.id_submodulos,tdsubmodulos.nombre nombre_submodulo,\n // tbestructura.descripcion, tbestructura.id_vistas,tbvistas.nombre,tbestructura.vista_nombre_logico,\n // tbestructura.nombre_contenido_dentro_submodulos nombre_contenido_sub,tbestructura.imagen_seccion_up,\n // tbestructura.imagen_seccion_izquierda, tbusuarios_vistas.EDIT,\n // tbusuarios_vistas.delete, tbusuarios_vistas.new,tbusuarios_vistas.consult \n // FROM usuarios_vistas tbusuarios_vistas\n // JOIN estructura tbestructura ON tbusuarios_vistas.id_estructura = tbestructura.id_estructura\n // JOIN vistas tbvistas ON tbvistas.id_vistas = tbestructura.id_vistas\n // JOIN submodulos tdsubmodulos ON tdsubmodulos.id_submodulos = tbestructura.id_submodulos\n // WHERE tbusuarios_vistas.id_usuario = $ID_USUARIO AND tbvistas.id_vistas = (IF(tbvistas.id_vistas = 24,\n // IF(\n // (SELECT tbsubmodulos.adquirido FROM submodulos tbsubmodulos WHERE tbsubmodulos.id_submodulos=3)=0,\n // -1,tbvistas.id_vistas\n // )\n // ,tbvistas.id_vistas))\";\n // echo $query;\n $db= AccesoDB::getInstancia();\n $lista = $db->executeQuery($query);\n \n return $lista;\n } catch (Exception $ex)\n {\n throw $ex;\n return false;\n }\n }", "title": "" }, { "docid": "e6f16d74f5b64375286260a0af9024fa", "score": "0.6431379", "text": "public function darBajaUsuario($idUsuario);", "title": "" }, { "docid": "94ab20854ec70db637ea6783e863d369", "score": "0.64307815", "text": "function listarUsuarios() {\n\tglobal $BD;\n \n\t$BD->query(\"SELECT su.* , sp.desc \"\n\t\t. \"FROM sys_usuario su inner join sys_perfil sp on (su.perfil = sp.id_perfil) \"\n\t\t. \"where (id > 1) \"\n\t\t. \"order by login\");\n\t$html = \"<div id=\\\"div_lista_usuarios\\\">\\n<h1>Listado de usuarios</h1>\\n\";\n \n //si usuario tiene permiso -> muestra menu de opciones CREAR NUEVO USUARIO\n\tif (tienePermiso(ID_ROL_USR, 'nuevo')) {\n\t\t$html .= \"<h2>\" . enlace('?r=' . USR_NUEVO, 'Nuevo Usuario', \"Registrar un nuevo usuario\") . \"</h2>\";\n\t}\n //si existen datos\n\tif ($BD->numRows() > 0) {\n\t\t$html .= \"<table class=\\\"listado\\\" cellspacing=\\\"0\\\">\\n\"\n\t\t\t. \"<tr>\\n\"\n\t\t\t. \"<th>USUARIO</th>\\n\"\n\t\t\t. \"<th>PERFIL</th>\\n\"\n\t\t\t. \"<th>ESTADO</th>\\n\"\n\t\t\t. \"<th>ACCIONES</th>\\n\"\n\t\t\t. \"</tr>\\n\";\n\t\twhile ($reg = $BD->getNext()) {\n\t\t\t$id = $reg['id'];\n\t\t\t$acciones = array();\n\t\t\tif (tienePermiso(ID_ROL_USR, 'ver')) {\n\t\t\t\t$acciones[] = enlace('?r=' . USR_MOSTRAR . $id, 'Ver', \"Ver los datos del usuario\");\n\t\t\t}\n\t\t\tif (tienePermiso(ID_ROL_USR, 'modificar')) {\n\t\t\t\t$acciones[] = enlace('?r=' . USR_EDITAR . $id, 'Editar', \"Editar los datos del usuario\");\n\t\t\t}\n\t\t\tif (tienePermiso(ID_ROL_USR, 'eliminar')) {\n\t\t\t\t$acciones[] = enlace('?r=' . USR_ELIMINAR . $id, 'Eliminar', \"Eliminar el usuario\");\n\t\t\t}\n\t\t\t$estado = '';\n\t\t\tswitch ($reg['estado']) {\n\t\t\t\tcase 'A':\t$estado = 'ACTIVO'; break;\n\t\t\t\tcase 'I':\t$estado = 'INACTIVO'; break;\n\t\t\t}\n\t\t\t$html .= \"<tr>\\n\"\n\t\t\t. \"<td>Nick: {$reg['login']} <hr/>Nombre: {$reg['nombre']} </td>\"\n\t\t\t. \"<td>{$reg['desc']}</td>\"\n\t\t\t. \"<td>$estado</td>\"\n\t\t\t. \"<td>\" . implode('|', $acciones)\n\t\t\t. \"</td>\"\n\t\t\t. \"</tr>\\n\";\n\t\t}\n\t\t$html .= \"</table>\";\n\t} else {\n\t\t$html .= mensajeNoExistenRegistros();\n\t}\n\t$html .= \"</div>\";\n\treturn $html;\n}", "title": "" }, { "docid": "a06d50ce8d260c9e9ebbd5308ff7d961", "score": "0.6426417", "text": "public function obtenerDatos($id){\n $usuario = User::find($id);\n // Obtenemos los datos del usuario para verlos en el form\n $this->user_id = $usuario->id;\n $this->name = $usuario->name;\n $this->email = $usuario->email;\n $this->password = $usuario->password;\n $this->telefono = $usuario->telefono;\n // Obtenenos el rol del usuario\n $rol_user = $usuario->rol;\n // dd($rol_user);\n $this->rol_id = $rol_user->role_id;\n $rolname = Role::find($this->rol_id);\n $this->rol = $rolname->name;\n // Comprobamos si el usuario tiene direccion\n $idDireccion = $usuario->direccion;\n if(isset($idDireccion)){\n $direccion = Direccion::find($idDireccion->direccion_id);\n\n $this->tipo_via = $direccion->tipo_via;\n $this->nombre_via = $direccion->nombre_via;\n $this->dni = $direccion->dni;\n $this->numero = $direccion->numero;\n $this->planta = $direccion->planta;\n $this->puerta = $direccion->puerta;\n $this->localidad = $direccion->localidad;\n $this->provincia = $direccion->provincia;\n $this->codigo_postal = $direccion->codigo_postal;\n $this->pais = $direccion->pais;\n }\n\n }", "title": "" }, { "docid": "cc7e2195be2118418012947dcbae04a3", "score": "0.64259446", "text": "public static function usuario_seleccionado($conexion, $codigo) {\n $lista_usuarios = array();\n\n if (isset($conexion)) {\n try {\n $sql = \"SELECT\n usuarios.codigo_usuario,\n usuarios.codigo_institucion,\n usuarios.nombre,\n usuarios.apellido,\n usuarios.telefono,\n usuarios.correo,\n usuarios.foto,\n usuarios.direccion,\n usuarios.sexo,\n usuarios.estado,\n usuarios.observaciones,\n institucion.nombre\n FROM\n usuarios\n INNER JOIN institucion ON usuarios.codigo_institucion = institucion.codigo_institucion\n where codigo_usuario = '$codigo'\";\n \n //preparando y ejecutando el sql\n $sentencia = $conexion->prepare($sql);\n $sentencia->execute();\n $resultado = $sentencia->fetchAll();\n \n //recorriendo el array\n if (count($resultado)) {\n foreach ($resultado as $fila) {\n $usuario = new Usuario();\n //guardando el resultado en un objeto de tipo usuario\n $usuario->setApellido($fila['apellido']);\n $usuario->setCodigo_institucion($fila['11']);\n $usuario->setCodigo_usuario($fila['codigo_usuario']);\n $usuario->setCorreo($fila['correo']);\n $usuario->setDireccion($fila['direccion']);\n $usuario->setEmail($fila['correo']);\n $usuario->setNombre($fila['2']);\n $usuario->setSexo($fila['sexo']);\n $usuario->setTelefono($fila['telefono']);\n $usuario->setFoto($fila['foto']);\n \n //guardando los datos en un array\n $lista_usuarios[] = $usuario;\n }\n }\n } catch (PDOException $exc) {\n print('ERROR' . $exc->getMessage());\n }\n }\n return $lista_usuarios;\n }", "title": "" }, { "docid": "c2ab6bfb8f6b6a3b6626fec4a560c78e", "score": "0.6415889", "text": "function get_Usuarios(){\n\t\t$con = new DBConexion;\n\t\t $lista = array(); \n\t\tif($con->conectar()==true){// nombreTipoUsuario no es de la tabla cedula, es de la tbtipousuario\n\t\t\t$query = \"call usuarioSeleccionarTodo\";\n\t\t\t$result = @mysql_query($query);\t\n\t\n\t\t\t$i=0;\n\t\t\twhile($row = mysql_fetch_array($result)){\n\t\t\t\t$id = \"'\".$row[0].\"'\";\n\t\t $btnEliminar = '<input type=\"button\" onclick=\"eliminar('.$id.')\" value=\"Eliminar\"/>';\n\t\t\t\t$btnModificar = '<input type=\"button\" onclick=\"modificar('.$id.')\" value=\"Modificar\"/>';\n\t\t\t\t$lista[$i] = array($row[0],$row[1],$btnEliminar,$btnModificar);\t\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\tif (!$lista){\n\t\t\t\treturn false;\n\t\t\t}else{\n\t\t\t\n\t\t\t\treturn $lista;\n\t\t\t}\t\n\t\t}\n\t}", "title": "" }, { "docid": "2c1749cae5b3d7bd8f72fa2978e51626", "score": "0.6414944", "text": "function consultarUsuario($usuario,$senha)\n{\n\t//conexão\n\t$conexao\t= conectar();\n\t\n\t//só sera usada depois que tudo for cadastrado\n\t$sql = \"SELECT usu.idUsuario,usu.nome,usu.email,usu.endereco,usu.numero,usu.telefone,usu.loginUsuario,cas.idCasa FROM usuario as usu \n\t\tinner join casa as cas on usu.idUsuario = cas.idCasa where loginUsuario='$usuario' && senhaUsuario='$senha'\";\n\n\t//variavel de apoio para obter o resultado $rs \n\t$rs= mysqli_query($conexao, $sql);\n\n\t$resultado = mysqli_fetch_assoc($rs);\t\n\t\n\t//retornando o resultado da pesquisa\n\treturn $resultado;\n}", "title": "" }, { "docid": "6913b8bbc8fff50cbdd343d21f5d0200", "score": "0.6404197", "text": "public static function getUsuarios(){\r\n\t\t\t/*\r\n\t\t\t * Retorna un array bidimensional con las siguientes columnas:\r\n\t\t\t * 0->ID Alumno\r\n\t\t\t * 1->Nombre y apellidos\r\n\t\t\t * 2->Edat\r\n\t\t\t * 3->email\r\n\t\t\t * 4->prestacion(SI/no)\r\n\t\t\t * 5->Situacion laboral (int)\r\n\t\t\t * 6->Telefono fijo\r\n\t\t\t * 7->Telefono mobil\r\n\t\t\t * 8->Numero de preinscripciones a cursos\r\n\t\t\t */\r\n\t\t\t$user_table = Config::get()->db_user_table;\r\n\t\t\t$consulta = \"select u.id,concat(nom,' ', cognom1,' ',cognom2) as nom,\r\n\t\t\t\t\t year(curdate())-year(u.data_naixement)+if(date_format(curdate(),'%m-%d')>date_format(u.data_naixement,'%m-%d'),0,1) as edat,\r\n\t\t\t\t\t\tu.email,\r\n\t\t\t\t\t\tif(prestacio,'','Si') prestacio,\r\n\t\t\t\t\t\tsituacio_laboral,telefon_fix,telefon_mobil,\r\n\t\t\t\t\t\tcount(*) as inscripcions\t\t\t\t\t\t\r\n\t\t\t\t\tfrom usuaris u\r\n\t\t\t\t\t left join preinscripcions p on p.id_usuari=u.id\r\n\t\t\t\t\tgroup by u.id,concat(nom,' ', cognom1,' ',cognom2) ,\r\n\t\t\t\t\t \tyear(curdate())-year(u.data_naixement)+if(date_format(curdate(),'%m-%d')>date_format(u.data_naixement,'%m-%d'),0,1),\r\n\t\t\t\t\t\tu.email,prestacio,situacio_laboral,\ttelefon_fix,telefon_mobil;\";\r\n\t\t\t\r\n\t\t\t$resultado = Database::get()->query($consulta);\r\n\t\t\t\r\n\t\t\t$usuaris=array();\r\n\t\t\t\r\n\t\t\twhile($us = $resultado->fetch_object())\r\n\t\t\t\t$usuaris[]=$us;\r\n\t\t\t$resultado->free();\t\t\t\t\r\n\t\t\treturn $usuaris;\r\n\t\t}", "title": "" }, { "docid": "8ba1b8b7503b7c254f4cbbde9c1c0bb5", "score": "0.6399676", "text": "public function consultarUsuario($id_user){\n $sql = \"SELECT * FROM usuarios where id = '$id_user'\";\n $resultado = mysqli_query($this->conexao->getCon(), $sql);\n \n //Esse paramentro 'mysqli_num_rows' ve quantos resultados obtivemos\n if(mysqli_num_rows($resultado) > 0){//Aqui comparamos se é maior que 0\n return $resultado; \n }else{//Se nao achar nada a função acaba.\n return false;\n }\n }", "title": "" }, { "docid": "e5056c255e3da8aa5a4d5a9e3e124c95", "score": "0.6392118", "text": "public function get_Usuario($username, $password, &$respuesta)\n {\n //date_default_timezone_set('America/Argentina/Buenos_Aires');\n\n //Busco por la tabla Usuario\n $qry = \"SELECT * FROM vw_usuarios WHERE usr_nombre = '{$username}' and usr_clave = '{$password}' and usr_SuperUsuario > 0 and usr_nombre is not null\";\n //echo($qry);\n $superusuario = $this->mysqli->query($qry);\n if ($superusuario->num_rows == 0)\n {\n //usr_nombre es el nro de documento\n $qry = \"SELECT * FROM vw_sociosusuario WHERE usr_nombre = '{$username}' and usr_clave = '{$password}'\";\n $resultado = $this->mysqli->query($qry);\n }\n else\n {\n $resultado = $superusuario;\n }\n\n if ($resultado->num_rows == 0)\n {\n //No hay coincidencias \n $respuesta = \"No existen registros asociados con ese número de documento y esa clave.\";\n }\n else\n { \n $fila = $resultado->fetch_assoc();\n //Si es estado es Habilitado pasa\n if ($fila['hab_idHabilitacion'] == 3)\n { \n //session_start();\n $this->loadsession($fila); \n $resp = 1;\n }\n else\n {\n //El estado NO es Habilitado \n $this->EnvioBotonDeActivacion($fila, $fila['usr_Email']);\n $respuesta = \"Su usuario no esta habilitado aún para operar, le enviamos un pedido de confirmación a este email a {$fila['usr_Email']} \";\n }\n }\n //$resultado->free();\n $this->closeCNX();\n\n return $resp;\n }", "title": "" }, { "docid": "1275aceebb323f017f59c8e958dac4b6", "score": "0.6391733", "text": "public function readUsuarios(){\n\ttry{\n\t\t$sql=(\"SELECT\n\t\t usuario.idUsuario,\t\n\t\t usuario.username,\n\t\t usuario.uname,\n\t\t usuario.ulastname,\n\t\t usuario.uemail,\n\t\t roles.idRoles,\n\t\t roles.tipos\n\t\t FROM usuariorol\n\t\t INNER JOIN usuario\n\t\t ON usuario.idUsuario = usuariorol.idUsuario\n\t\t INNER JOIN roles\n\t\t ON roles.idRoles = usuariorol.idRoles\n\t\t ORDER BY username \");\n\t\t$query = $this->conx->prepare($sql);\n\t\t$query->execute();\n\n\t\tif ($query->rowCount()>0){\n\t\t\twhile ($filas=$query->fetch(PDO::FETCH_ASSOC)) {\n\t\t\t\textract($filas);\n\t\t\t\techo'<tr>';\n\t\t\t\techo' \t\n \t<td class=\"success\">'.$username.'</td>\n \t<td>'.$uname.'</td>\n \t<td>'.$ulastname.'</td>\n \t<td>'.$uemail.'</td>\n \t<td>'.$tipos.'</td>\n \t</tr>';\n \t }\n \t\n\t\t\t\t}\n\t\t\t \telse{\n\t\t\t\t\techo '<tr><td>No hay Usuarios Registrados</td></tr>';\n\t\t\t}\n\t}catch(PDOException $e){\n\t\t echo $e->getMessage(); \n \t\t return false;\n\t}\n}", "title": "" }, { "docid": "68773d3bb02a7b0c2016d43a70b97724", "score": "0.6389134", "text": "public function registroUsuarios() {\n\n $tabla = \"usuarios\";\n \n $nombre = $this->nombre_p;\n $apellidos = $this->apellidos_p;\n $fecha_N = $this->fechaN_p;\n $sexo = $this->sexo_p;\n $ciudad = $this->ciudad_p;\n $tipo_usuario = $this->tipo_usuario_p;\n $curp = $this->curp_p;\n $email = $this->email_p;\n $cel = $this->cel_p;\n $tel = $this->tel_p;\n $servicio = $this->servicio_p;\n $password = $this->password_p;\n\n //$items = array('nombre','apellidos','fecha_nacimiento','id_sexo', 'email', 'password', 'celular', 'telefono', 'curp', 'id_servicio', 'id_tipoUsuario', 'id_ciudad' );\n $items = array('nombre','apellidos','id_sexo', 'email', 'password','celular');\n $datos = array($nombre, $apellidos, $sexo, $email, $password, $cel);\n //$datos = array($nombre, $apellidos, $fecha_N, $sexo, $email, $password, $cel, $tel, $curp, $servicio, $tipo_usuario, $ciudad );\n\n\n \n $item = \"\"; \n $data = \"\";\n $aux = 0;\n \n foreach ($items as $key => $value) {\n $item .= ($aux > 0) ? \",\" : \"\";\n $item .= $value;\n $aux += 1;\n }\n\n $aux = 0;\n \n foreach ($datos as $key => $value) {\n $data .= ($aux > 0) ? \",\" : \"\";\n $data .= \"'\". $value . \"'\";\n $aux += 1;\n }\n \n $respuesta = registroUsuarios::mdlRegistroUsuarios($tabla,$item, $data);\n\n echo $item;\n echo $data;\n echo $respuesta;\n\n \n \n }", "title": "" }, { "docid": "470bd81237b326badd1722e8e6d3b4f8", "score": "0.6388201", "text": "function fnUsuarioInformacionBasicaObtener(){\n\t//primer pantalla datos basicos del usuario\n\t$result;\n\ttry {\n\t\t$strUsuario = $_GET['strUsuario']; //obligatorio\n\t\t$buscar = fnDBResult(\"SELECT * FROM wp_vivemov_users_informacion WHERE strUsuario = '$strUsuario' ORDER BY intId DESC LIMIT 1;\");\n\t\tif (count($buscar) > 0) {\n\t\t\t$buscar = $buscar[0];\n\t\t\t$decAltura = $buscar['decAltura'];\n\t\t\t$decPeso = $buscar['decPeso'];\n\t\t\t$buscar['decIMC'] = (($decPeso / 2.2) / (($decAltura/100) * ($decAltura/100)));\n\t\t\t\n\t\t\t$result['strTipo'] = 'success';\n\t\t\t$result['listDatosBasicos'] = $buscar;\t\t\t\n\t\t}else{\n\t\t\t$result['strTipo'] = 'warning';\n\t\t\t$result['strMensaje'] = 'Sin datos Basicos!';\n\t\t}\n\t} catch (Exception $e) {\n\t\t$result['strTipo'] = 'error';\n\t\t$result['strMensaje'] = $e->getMessage();\n\t}\n\tfnEndCallback($result);\n}", "title": "" }, { "docid": "8045d9402abb4a18886a93bce999e483", "score": "0.6384345", "text": "public function listarmarcados($idusuario)\n {\n $sql= \" SELECT * FROM usuario_permiso WHERE idusuario='$idusuario'\";\n return ejecutarConsulta($sql);\n }", "title": "" }, { "docid": "5aa8e12b6e106053a8b5bbb3dd508fb1", "score": "0.63667274", "text": "function consultaUsuarioPorCedula($cedula){\r\n $campos=\"t2.pregunta\";\r\n $tabla=\"usuarios t1 inner join preguntas_seguridad t2 ON t1.id_preg_seg=t2.id\";\r\n $donde = \" WHERE t1.cedula = ?\";\r\n $resultado=$this->invoco->ConsultaPreparada($tabla,$campos,$donde,'i',array($cedula),\"consultaUsuarioPorCedula\");\r\n if(count($resultado)>0){\r\n return $resultado;\r\n }\r\n \r\n }", "title": "" }, { "docid": "cc1b5ddc27c28924f83f153c98d1fd81", "score": "0.63633555", "text": "public function listar()\n {\n\n // $this->query = 'select Nombres, Apellido, Email, Descripcion from usuarios where usuarios.PerfilUsuarioId = perfilusuario.PerfilUsuarioId';\n $this->query = '\n SELECT U.usuarioId AS ClienteId, U.Nombres, U.Apellido, U.Email, R.Descripcion AS Rol\n FROM usuarios U\n JOIN usuarios_roles UR ON UR.UsuarioId = U.UsuarioId\n JOIN roles R ON R.RolId = UR.RolId\n WHERE U.Borrado IS NULL\n ';\n $this->consultaResultados();\n return $this->rows;\n }", "title": "" }, { "docid": "87fc4927728f7a0f76622bbdf5245a16", "score": "0.6362993", "text": "public function obtener_Usuario()\n {\n\n //Esto siempre va es para instanciar la base de datos\n $CI = &get_instance();\n $CI->load->database();\n \n //Seguridad\n $token = @$CI->db->token;\n $this->datosObtenidos = json_decode(file_get_contents('php://input'));\n if ($this->datosObtenidos->token != $token) {\n exit(\"No coinciden los token\");\n }\n\n $Id = $_GET[\"Id\"];\n\n $this->db->select('\ttbl_usuarios.*,\n tbl_usuarios.Nombre as Nombre_principal, \n\t\t\t\t\t\t\ttbl_roles.Nombre_rol'); // BUSCAR SOLO DATOS NECESARIOS\n $this->db->from('tbl_usuarios');\n $this->db->join('tbl_roles', 'tbl_roles.Acceso = tbl_usuarios.Rol_acceso', 'left');\n \n $this->db->where('tbl_usuarios.Id', $Id);\n $this->db->order_by(\"tbl_usuarios.Nombre\", \"asc\");\n $query = $this->db->get();\n $result = $query->result_array();\n\n echo json_encode($result);\n\n }", "title": "" }, { "docid": "f207c8bf45ce68cf6b9595d18d7aac12", "score": "0.63602924", "text": "public function getUsuariosLocaisUsuario () {\n $sql = 'select usuario.ID,usuario.LOCAL_ID,usuario.FOTO_AVATAR,usuario.PERFIL_ID,usuario.LOGIN,usuario.SENHA,usuario.DATA_EXPIRACAO_SENHA,usuario.DATA_ULTIMO_ACESSO,\nusuario.URL,usuario.NOME,usuario.ENDERECO,usuario.COMPLEMENTO,usuario.NUMERO,usuario.BAIRRO,\nusuario.CIDADE,usuario.EMAIL,usuario.UF,usuario.CEP,usuario.CPF,usuario.FONE,usuario.FONE2,\nusuario.CELULAR,usuario.NASCIMENTO,usuario.SETOR_ID,usuario.SITUACAO,usuario.DATA_CADASTRO,\nusuario.SAIDA_FERIAS,usuario.VOLTA_FERIAS from usuario where usuario.situacao not in (-1) and usuario.local_id in\n (\n select l.id from \n ((local_usuario lu join local l on lu.local_id = l.id) join\n usuario u on lu.usuario_id = u.id)\n where \n u.id = '.$this->getId().' and lu.situacao <> -1\n \n )';\n\n $con = Propel::getConnection(UsuarioPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n $stmt = $con->prepare($sql);\n $stmt->execute();\n\n return UsuarioPeer::populateObjects($stmt);\n }", "title": "" }, { "docid": "9432c2f2326fcb8817ba914c92bc7e78", "score": "0.635917", "text": "function ArmarTabla($usuario) {\n $conexion = InstanciarConexion() or die('Imposible instanciar.'); \n }", "title": "" }, { "docid": "dd284f78765e8b25dfeffa7c6cea3f80", "score": "0.6358841", "text": "public function selectUsuarios(){\n $whereAdmin = \"\";\n if ($_SESSION['idUser'] != 1) {\n $whereAdmin = \" AND p.idpersona != 1 \";//Esto es para que no extraiga al super usuario\n }\n $sql = \"SELECT p.idpersona, p.identificacion, p.nombres, p.apellidos, p.telefono, \n p.email_user, p.status, r.idrol, r.nombrerol\n FROM persona p\n INNER JOIN rol r\n ON p.rolid = r.idrol\n WHERE p.status != 0\".$whereAdmin;\n $request = $this->select_all($sql);\n return $request;\n }", "title": "" }, { "docid": "6239f21cffb3c8318cd67767733be3af", "score": "0.6358696", "text": "public function lista_usuarios($id_actividad) {\n $usuario = new Modelo();\n $sql = (\"SELECT * \n FROM evt_actividades a INNER JOIN evt_asistentes_actividades ac \n ON a.id_actividad = ac.id_actividad\n INNER JOIN evt_asistentes s ON s.id_asistente = ac.id_asistente\n WHERE a.id_actividad = \" . $id_actividad);\n $rs = $usuario->consulta_sql($sql);\n// die(\"<pre>\".$sql.\"</pre>\");\n $arreglo = $rs->GetArray();\n return $arreglo;\n }", "title": "" }, { "docid": "0b251d6e33866ba52a70f9455494d68d", "score": "0.63581955", "text": "function mostrarUsuario($id) {\n\tglobal $BD;\n\t$BD->query(\"SELECT su.* , sp.desc \"\n\t\t. \"FROM sys_usuario su inner join sys_perfil sp on (su.perfil = sp.id_perfil) \"\n\t\t. \"where (id = $id) \"\n\t\t. \"order by login\");\n\t$reg = $BD->getNext();\n\t$link_ret = enlace('?r=' . USR_LISTAR, 'Regresar', 'Regresar al listado de usuarios');\n\t$estado = '';\n\tswitch ($reg['estado']) {\n\t\tcase 'A':\t$estado = 'ACTIVO'; break;\n\t\tcase 'I':\t$estado = 'INACTIVO'; break;\n\t}\n\t$html = <<<MOSTREG\n\t\t<div id=\"div_mostrar_datos\">\\n\n\t\t\t<h1>Registro de usuario</h1>\\n\n\t\t\t<table class=\"tbl_formulario\">\n\t\t\t <tr>\n\t\t\t <td><label class=\"etiqueta\">Nick:</label></td>\n\t\t\t <td>{$reg['login']}</td>\n\t\t\t </tr>\n <tr>\n\t\t\t <td><label class=\"etiqueta\">Nombre de usuario:</label></td>\n\t\t\t <td>{$reg['nombre']}</td>\n\t\t\t </tr>\n <tr>\n\t\t\t <td><label class=\"etiqueta\">Password:</label></td>\n\t\t\t <td>******</td>\n\t\t\t </tr> \n\t\t\t <tr>\n\t\t\t <td><label class=\"etiqueta\">Perfil:</label></td>\n\t\t\t <td>{$reg['desc']}</td>\n\t\t\t </tr>\n\t\t\t <tr>\n\t\t\t <td><label class=\"etiqueta\">Estado:</label></td>\n\t\t\t <td>$estado</td>\n\t\t\t </tr>\n\t\t\t</table>\n\t\t</div>\n\t\t<div class=\"div_normal\">$link_ret</div>\nMOSTREG;\n\treturn $html;\n}", "title": "" }, { "docid": "17f6e60b740ae84e4e649fa71e8a5d61", "score": "0.63565296", "text": "public function asistenciaUsuario($id_Usuario)\r\n {\r\n $sql = \"SELECT a.id_AsistenciaEvento FROM asistenciaevento a\r\n JOIN usuario u ON a.id_Usuario = u.id_Usuario\r\n WHERE a.id_Usuario = $id_Usuario\";\r\n $resultado = $this-> conex-> consultaRetorno($sql);\r\n $numrows = mysqli_num_rows($resultado);\r\n if($numrows != 0){\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "200511467ed0fdbb2b304d5030c76df3", "score": "0.63562673", "text": "public function selectUsuario(int $idpersona){\n $this->intIdUsuario = $idpersona;\n $sql = \"SELECT p.idpersona, p.identificacion, p.nombres, p.apellidos, p.telefono, \n p.email_user, p.nit, p.nombrefiscal, p.direccionfiscal,r.idrol, r.nombrerol, p.status,\n DATE_FORMAT(p.datecreated, '%d-%m-%y') as fechaRegistro\n FROM persona p\n INNER JOIN rol r\n ON p.rolid = r.idrol\n WHERE p.idpersona = $this->intIdUsuario\";\n // echo $sql;exit;\n $request = $this->select($sql);\n return $request;\n }", "title": "" }, { "docid": "dfd9a114f3b214916a8120b193f4b3ac", "score": "0.6353217", "text": "public function getTipoUsuario(){\n $sql = 'SELECT `id_tipo_usuario` codigo, `descripcion` FROM `tipo_usuario` WHERE `activo` = 1';\n return $this->Consulta($sql);\n }", "title": "" }, { "docid": "ab9225cca1358c8fdfa72b86bcca7f2c", "score": "0.6350541", "text": "public function buscarId(){\n $this->objetoDato->conectar();\n $rs=$this->objetoDato->ejecutar(\"SELECT id_usuario FROM usuarios WHERE nom_usuario LIKE '$this->nom_usuario' AND pass_usuario LIKE '$this->pass_usuario';\");\n if(count($rs)){\n for($i=0; $i<count($rs); $i++){\n return $rs[$i]['id_usuario'];\n }\n }\n $this->objetoDato->desconectar();\n }", "title": "" }, { "docid": "df4abb3747330f1ca8a7220df2c8a61b", "score": "0.63401186", "text": "function BusquedaUsuario($param)\r\n {\r\n $consulta = \"\";\r\n switch ($param[1]) {\r\n case GRUPO_ESTUDIANTE :\r\n switch ($param[2]) {\r\n case POR_CARNE : /*echo \"por carnet\"; die;*/\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t$consulta = \"and e.usuarioid = '\".$param[0].\"'\";\r\n\r\n $consulta = $this->gsql->BusquedaUsuario_select1_1($param[0]);\r\n\r\n break;\r\n case POR_NOMBRE : // $consulta = \"and e.nombre like '%\".$param[3].\"%'\";\r\n\r\n $consulta = $this->gsql->BusquedaUsuario_select1_2($param[3]);\r\n\r\n break;\r\n case POR_APELLIDO : // $consulta = \"and e.apellido like '%\".$param[4].\"%'\";\r\n\r\n $consulta = $this->gsql->BusquedaUsuario_select1_3($param[4]);\r\n\r\n break;\r\n case POR_NOMBREAPELLIDO : // $consulta = \"and e.nombre like '%\".$param[3].\"%'\".\r\n//\t\t \t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t \"and e.apellido like '%\".$param[4].\"%'\";\r\n\r\n $consulta = $this->gsql->BusquedaUsuario_select1_4($param[3], $param[4]);\r\n\r\n break;\r\n } //Por tipo de busqueda\r\n//\t\t\t\t\t\t\t\t $query_usuario = sprintf(\"select e.usuarioid,e.nombre,e.apellido,ec.carrera\r\n// from estudiante e,estudiantecarrera ec\r\n// \t\t\t\t\t\t where e.usuarioid = ec.usuarioid\r\n//\t\t\t\t\t\t\t \t\t\t\t\t\t %s order by e.usuarioid,ec.carrera;\",$consulta);\r\n\r\n $query_usuario = $this->gsql->BusquedaUsuario_select1($consulta);\r\n\r\n //echo $query_usuario; die;\r\n $_SESSION[\"sBdd\"]->query($query_usuario);\r\n if ($_SESSION[\"sBdd\"]->num_rows() < 1) {\r\n return 0;\r\n } //No existe el usuario\r\n else //Si existe el usuario\r\n {\r\n $_SESSION[\"sBdd\"]->next_record();\r\n $this->mUsuarioid = trim($_SESSION[\"sBdd\"]->f('usuarioid'));\r\n $this->mCarrera = trim($_SESSION[\"sBdd\"]->f('carrera'));\r\n //Para estudiantes con carreras dobles\r\n if ($_SESSION[\"sBdd\"]->num_rows() == 2) {\r\n $_SESSION[\"sBdd\"]->next_record();\r\n $this->mOtraCarrera = trim($_SESSION[\"sBdd\"]->f('carrera'));\r\n }\r\n }\r\n break;\r\n case GRUPO_DOCENTE :\r\n switch ($param[2]) {\r\n case POR_CARNE : // $consulta = \"personal = '\".$param[0].\"'\";\r\n\r\n $consulta = $this->gsql->BusquedaUsuario_select2_1($param[0]);\r\n\r\n break;\r\n case POR_NOMBRE : // $consulta = \"nombre like '%\".$param[3].\"%'\";\r\n\r\n $consulta = $this->gsql->BusquedaUsuario_select2_2($param[3]);\r\n\r\n break;\r\n case POR_APELLIDO : // $consulta = \"apellido like '%\".$param[4].\"%'\";\r\n\r\n $consulta = $this->gsql->BusquedaUsuario_select2_3($param[4]);\r\n\r\n break;\r\n case POR_NOMBREAPELLIDO : // $consulta = \"nombre like '%\".$param[3].\"%'\".\r\n//\t\t \t\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t \"and apellido like '%\".$param[4].\"%'\";\r\n\r\n $consulta = $this->gsql->BusquedaUsuario_select2_4($param[3], $param[4]);\r\n\r\n } //Por tipo de busqueda\r\n//\t\t\t\t\t\t\t\t $query_usuario = sprintf(\"select personal,nombre,apellido\r\n// from personal\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t where %s order by personal;\",$consulta);\r\n\r\n $query_usuario = $this->gsql->BusquedaUsuario_select2($consulta);\r\n\r\n\r\n $_SESSION[\"sBdd1\"]->query($query_usuario);\r\n\r\n if ($_SESSION[\"sBdd1\"]->num_rows() < 1) {\r\n return 0;\r\n } //No existe el usuario\r\n else //Si existe el usuario\r\n {\r\n $_SESSION[\"sBdd1\"]->next_record();\r\n $this->mUsuarioid = trim($_SESSION[\"sBdd1\"]->f('personal'));\r\n }\r\n break;\r\n } //Por grupo estudiante o docente\r\n return 1;\r\n }", "title": "" }, { "docid": "01b8c310809912dc1a3bfd3d8bc9439c", "score": "0.6337584", "text": "function consulta_Usuario_NombreUsuario($u_id)\n\t\t{\n\t\t\t$this->sql=\"SELECT u_usuario FROM usuario \";\n\t\t\t$this->sql.=\"where u_id = $u_id\";\n\t\t\treturn parent::ejecutaQUERY();\n\t\t}", "title": "" } ]
bce88142e633fe25af019b7f158167c9
custom tag cloud tool tip function
[ { "docid": "65a8cf081ce40646d3c4adaacee63a53", "score": "0.5895772", "text": "function custom_tooltip_callback($count){\n return sprintf( \n _n('%s Topic.', '%s Topics.', $count),\n number_format_i18n($count)\n );\n}", "title": "" } ]
[ { "docid": "58a721ad780ee34258b45841ee5e4df5", "score": "0.6992886", "text": "function tagCloud()\n {\n\n global $tags, $tagMaxMin, $articles, $miscTagThreshold;\n\n $headerToolTip = \"Word cloud showing tags found in the search results.\";\n $headerToolTip1 = \"\\nTags that are associated with only 1 item are not shown; articles for these tags are displayed on the Miscellaneous Tags line\";\n $headerToolTip2 = \"\\nTags that are associated with \" . $miscTagThreshold . \" or less items are not shown initially; click the chevron to the left to show/hide theses tags\";\n $showCloudToolTip = 'Show Tag Cloud';\n $hideCloudToolTip = 'Hide Tag Cloud';\n $showMinorTagsToolTip = \"Show tags that occur in \";\n $hideMinorTagsToolTip = \"Hide tags that occur in \";\n if ($miscTagThreshold == 1)\n {\n $showMinorTagsToolTip = $showMinorTagsToolTip . \"only 1 item\";\n $hideMinorTagsToolTip = $hideMinorTagsToolTip . \"only 1 item\";\n }\n else\n {\n $showMinorTagsToolTip = $showMinorTagsToolTip . $miscTagThreshold . \" or less items\";\n $hideMinorTagsToolTip = $hideMinorTagsToolTip . $miscTagThreshold . \" or less items\";\n }\n\n // header\n echo \"\n <div class=\\\"tagCloudHeader\\\">\n <span title=\\\"\" . $headerToolTip;\n if ($miscTagThreshold > 0)\n {\n if ($miscTagThreshold == 1)\n {\n echo $headerToolTip1;\n }\n else\n {\n echo $headerToolTip2;\n }\n }\n echo \"\\\">Tags</span>\n <div class=\\\"tagCloudHeader_left\\\">\n <span\n class=\\\"tagCloudButton_left\\\"\n \";\n if ($miscTagThreshold == 0)\n {\n echo \"\n >\n &nbsp;\n \";\n }\n else\n {\n echo \"\n title=\\\"\" . $showMinorTagsToolTip . \"\\\"\n id=\\\"showMinorTags_button\\\"\n onclick=\\\"showMinorTags()\\\"\n >\n &#187;\n </span>\n <span\n class=\\\"tagCloudButton_left\\\"\n title=\\\"\" . $hideMinorTagsToolTip . \"\\\"\n id=\\\"hideMinorTags_button\\\"\n onclick=\\\"hideMinorTags()\\\"\n >\n &#171;\n \";\n }\n echo \"\n </span>\n &nbsp;\n </div>\n <div class=\\\"tagCloudHeader_right\\\">\n <span\n class=\\\"tagCloudButton_right\\\"\n title=\\\"\" . $showCloudToolTip . \"\\\"\n id=\\\"showTagCloud_button\\\"\n onclick=\\\"showTagCloud()\\\"\n >\n +\n </span>\n <span\n class=\\\"tagCloudButton_right\\\"\n title=\\\"\" . $hideCloudToolTip . \"\\\"\n id=\\\"hideTagCloud_button\\\"\n onclick=\\\"hideTagCloud()\\\"\n >\n &#215;\n </span>\n </div>\n </div>\n \";\n\n // body\n ksort($tags);\n echo \"\n <div class=\\\"tagCloud\\\" id=\\\"tagCloud\\\" >\n <span class=\\\"tagCloud\\\"><br/>\";\n foreach($tags as $t => $t_value)\n {\n if ($t_value[0] != TAG_MISC)\n {\n $count = count($articles[$t_value[1]])-1;\n if($count > $miscTagThreshold)\n {\n $tagGroup=ceil($count/(ceil($tagMaxMin[0]/8))) + 1;\n if ($tagGroup > 9)\n {\n $tagGroup = 9;\n }\n }\n else\n {\n $tagGroup=1;\n }\n $s = str_replace(\" \", \"&nbsp;\", $t_value[0]);\n $classId = \"tag\" . $tagGroup;\n $displayId = \"display$t_value[1]\";\n\n echo \"\n <span\n class=\\\"$classId\\\"\n \";\n\n // if there are too many tags, we consolidate the those with fewer articles into a single timeline,\n // so no onclick for them, and a different title\n if ($count > $miscTagThreshold)\n {\n echo \"\n title=\\\"$count items.\\nClick to show on timeline.\\\"\n onclick=\\\"showDisplayTag('$displayId')\\\"\n >\n \";\n }\n else\n {\n echo \"\n title=\\\"$count item\";\n if ($count>1)\n {\n echo \"s.\\nThese items are \";\n }\n else\n {\n echo \".\\nThis item is \";\n }\n echo \"displayed on the \" . TAG_MISC . \" timeline.\\\"\n >\n \";\n }\n echo $s;\n echo \"</span>\";\n }\n }\n echo \"\n </span>\n </div>\n \";\n }", "title": "" }, { "docid": "b2d3aa3dcceee26578d82f3c45ad65ac", "score": "0.6813279", "text": "function braftonCustomTags(){\n global $options;\n $tip = 'Each tag seperated by a comma. I.E. (first,second,third)';\n tooltip($tip); ?>\n<input type=\"text\" name=\"braftonCustomTags\" value=\"<?php\n\t\techo $options['braftonCustomTags']; ?>\"/>\n<?php \n}", "title": "" }, { "docid": "e1bd97e2f1c20c1db107d84b4f450581", "score": "0.66654634", "text": "function sc_tooltip($atts, $content=null){\t\n\tif (in_shortcode_blogger()) return '';\n extract(shortcode_atts(array(\n\t\t\"id\" => \"\",\n\t\t\"class\" => \"\",\n\t\t\"title\" => \"\"\n ), $atts));\n\treturn '<span' . ($id ? ' id=\"' . $id . '\"' : '') . ' class=\"sc_tooltip_parent'. (!empty($class) ? ' '.$class : '').'\">' . do_shortcode($content) . '<span class=\"sc_tooltip\">' . $title . '</span></span>';\n}", "title": "" }, { "docid": "efc0db334ae3fe178d20ebd94511048f", "score": "0.65138066", "text": "protected function show_tag($tag){}", "title": "" }, { "docid": "93ae2929106ca68076a854b3d3725ea0", "score": "0.650256", "text": "public function get_tooltip() {\n\t\tglobal $config;\n\t\t$tt = $this->parse_link_template($config->get_string('image_tip'), \"no_escape\");\n\n\t\t// Removes the size tag if the file is an mp3 \n\t\tif($this->ext === 'mp3'){\n\t\t\t$iitip = $tt;\n\t\t\t$mp3tip = array(\"0x0\");\n\t\t\t$h_tip = str_replace($mp3tip, \" \", $iitip);\n\n\t\t\t// Makes it work with a variation of the default tooltips (I.E $tags // $filesize // $size)\n\t\t\t$justincase = array(\" //\", \"// \", \" //\", \"// \", \" \");\n\t\t\tif(strstr($h_tip, \" \")) {\n\t\t\t\t$h_tip = html_escape(str_replace($justincase, \"\", $h_tip));\n\t\t\t}else{\n\t\t\t\t$h_tip = html_escape($h_tip);\n\t\t\t}\n\t\t\treturn $h_tip;\n\t\t}\n\t\telse {\n\t\t\treturn $tt;\n\t\t}\n\t}", "title": "" }, { "docid": "1fcf3d960db5619bb01a90dc09c6ac32", "score": "0.6474611", "text": "function maker_portfolio_toolkit_tag() {\n\t$tags_list = get_the_term_list( get_the_ID(), 'portfolio-tag', '', ', ', '' );\n\tif ( $tags_list ) {\n\t\tprintf( '<div class=\"project-tags\">%s</div>', $tags_list ); // WPCS: XSS OK.\n\t}\n}", "title": "" }, { "docid": "f65f3efb85480256e41bb3bada0fcaac", "score": "0.64601326", "text": "function question_tooltip($text) {\n\t \treturn ' <i class=\"fa fa-question-circle ls-tooltip\" title=\"'.htmlentities($text, ENT_COMPAT, 'UTF-8').'\"></i>';\n\t }", "title": "" }, { "docid": "ee763aafd8ea82c79b429dc93cbd1dec", "score": "0.6434228", "text": "function minti_tooltip( $atts, $content = null)\n{\n\textract(shortcode_atts(array(\n 'text' => ''\n ), $atts));\n \n return '<span class=\"tooltips\"><a href=\"#\" rel=\"tooltip\" title=\"'.$text.'\">'. do_shortcode($content) . '</a></span>';\n}", "title": "" }, { "docid": "71569aa9f00558f393525cf5ba1d0f95", "score": "0.642993", "text": "function erric_widget_custom_tag_cloud($args) {\n\t// Control number of tags to be displayed - 0 no tags\n\t$args['number'] = 25;\n\n\t// Outputs our edited widget\n\treturn $args;\n}", "title": "" }, { "docid": "f15c822b709d1e172387e02ad3b4af86", "score": "0.642962", "text": "abstract public function tips();", "title": "" }, { "docid": "5823c2181453d1f4652b68e6b86a9f33", "score": "0.6424252", "text": "function wcs_help_tip( $tip, $allow_html = false ) {\n\n\tif ( function_exists( 'wc_help_tip' ) ) {\n\n\t\t$help_tip = wc_help_tip( $tip, $allow_html );\n\n\t} else {\n\n\t\tif ( $allow_html ) {\n\t\t\t$tip = wc_sanitize_tooltip( $tip );\n\t\t} else {\n\t\t\t$tip = esc_attr( $tip );\n\t\t}\n\n\t\t$help_tip = sprintf( '<img class=\"help_tip\" data-tip=\"%s\" src=\"%s/assets/images/help.png\" height=\"16\" width=\"16\" />', $tip, esc_url( WC()->plugin_url() ) );\n\t}\n\n\treturn $help_tip;\n}", "title": "" }, { "docid": "df859d1a9340d38c9530ce463eceed47", "score": "0.64118904", "text": "function print_tag_cloud($tagcloud, $shuffle=true, $max_size=180, $min_size=80) {\n\n global $CFG;\n\n if (empty($tagcloud)) {\n return;\n }\n\n if ( $shuffle ) {\n shuffle($tagcloud);\n }\n\n $count = array();\n foreach ($tagcloud as $key => $value){\n if(!empty($value->count)) {\n $count[$key] = log10($value->count);\n }\n else{\n $count[$key] = 0;\n }\n }\n\n $max = max($count);\n $min = min($count);\n\n $spread = $max - $min;\n if (0 == $spread) { // we don't want to divide by zero\n $spread = 1;\n }\n\n $step = ($max_size - $min_size)/($spread);\n\n $systemcontext = get_context_instance(CONTEXT_SYSTEM);\n $can_manage_tags = has_capability('moodle/tag:manage', $systemcontext);\n\n //prints the tag cloud\n echo '<ul id=\"tag-cloud-list\">';\n foreach ($tagcloud as $key => $tag) {\n\n $size = $min_size + ((log10($tag->count) - $min) * $step);\n $size = ceil($size);\n\n $style = 'style=\"font-size: '.$size.'%\"';\n $title = 'title=\"'.s(get_string('thingstaggedwith','tag', $tag)).'\"';\n $href = 'href=\"'.$CFG->wwwroot.'/tag/index.php?id='.$tag->id.'\"';\n\n //highlight tags that have been flagged as inappropriate for those who can manage them\n $tagname = $tag->name;\n if ($tag->flag > 0 && $can_manage_tags) {\n $tagname = '<span class=\"flagged-tag\">' . $tag->name . '</span>';\n }\n\n $tag_link = '<li><a '.$href.' '.$title.' '. $style .'>'.$tagname.'</a></li> ';\n\n echo $tag_link;\n\n }\n echo '</ul>';\n\n}", "title": "" }, { "docid": "0067e8603ea75bf2d0ab508eed5c4bc5", "score": "0.62934583", "text": "function toast_tooltip( $atts, $content = null)\n{\n\textract(shortcode_atts(array(\n 'text' => ''\n ), $atts));\n \n return '<span class=\"tooltips\"><a href=\"#\" rel=\"tooltip\" title=\"'.$text.'\">'. do_shortcode($content) . '</a></span>';\n}", "title": "" }, { "docid": "1a1835d66fd424319e6e61ba6726c6b8", "score": "0.6278138", "text": "function displayTagCloud($tag)\n {\n global $serendipity;\n\n $tags = $this->getTagCloudTags($tag);\n\n $serendipity['smarty']->assign('freetag_tagTitle', serendipity_specialchars(is_array($this->displayTag) ? implode(', ',$this->displayTag) : $this->displayTag));\n\n if (!empty($tags)) {\n $useRotCanvas = serendipity_db_bool($this->get_config('use_rotacloud', 'false'));\n $useWordCloud = serendipity_db_bool($this->get_config('use_wordcloud', 'false'));\n $serendipity['smarty']->assign('freetag_hasTags', true);\n\n $min = $this->get_config('min_percent', 100);\n $max = $this->get_config('max_percent', 300);\n\n ob_start();\n self::displayTags($tags, false, false, true, $max, $min,\n $this->get_config('taglink'), $this->get_config('template'), $this->get_config('xml_image', 'img/xml.gif'),\n $useRotCanvas, $this->get_config('rotacloud_tag_color', '3E5F81'), $this->get_config('rotacloud_tag_border_color', 'B1C1D1'), $this->get_config('rotacloud_width', '500'),\n $useWordCloud);\n $tagout = ob_get_contents();\n ob_end_clean();\n $serendipity['smarty']->assign('freetag_displayTags', $tagout);\n } else {\n $serendipity['smarty']->assign('freetag_hasTags', false);\n }\n\n $content = $this->parseTemplate('plugin_freetag.tpl');\n echo $content;\n }", "title": "" }, { "docid": "66cb9cec2cd277a7507e64ace84a0971", "score": "0.6248642", "text": "function uni_cpo_sanitize_tooltip( $var )\n{\n $allowed_tags = uni_cpo_get_allowed_tags();\n $var = str_replace( '\"', \"'\", $var );\n return wp_kses( html_entity_decode( $var ), $allowed_tags['tooltip'] );\n}", "title": "" }, { "docid": "6397a4c47f321f87f30c7c7b6892ce92", "score": "0.6186203", "text": "function appai_tag_cloud_widget($args) {\r\n $args['largest'] = 12; //largest tag\r\n $args['smallest'] = 12; //smallest tag\r\n $args['unit'] = 'px'; //tag font unit\r\n return $args;\r\n}", "title": "" }, { "docid": "f0385eaf1dd86ecef1e60c3288b4cfc1", "score": "0.61817354", "text": "function labelInfo($str)\t{\n\t\treturn ' title=\"'.htmlspecialchars($str).'\" style=\"cursor:help;\"';\n\t}", "title": "" }, { "docid": "506cde3922d9e7e1897a2b8bbcdee3a3", "score": "0.61196536", "text": "function wpb_tag_cloud() { \n $tags = get_tags();\n $args = array(\n 'smallest' => 10, \n 'largest' => 22,\n 'unit' => 'px', \n 'number' => 10, \n 'format' => 'flat',\n 'separator' => \" \",\n 'orderby' => 'count', \n 'order' => 'DESC',\n 'show_count' => 1,\n 'echo' => false\n ); \n \n $tag_string = wp_generate_tag_cloud( $tags, $args );\n \n return $tag_string; \n \n }", "title": "" }, { "docid": "37feeb51d8344b17813af85ff63f42c3", "score": "0.6014425", "text": "public function tag();", "title": "" }, { "docid": "fff88daf3c6f468113e46f2454788e01", "score": "0.6013974", "text": "function definitiontag_func($atts, $content) {\n extract($atts);\n $term = sanitize_title_with_dashes($term);\n \n\treturn '<a class=\"tooltip\" href=\"glossary.html#'.$term.'\">' . $content . '</a>';\n}", "title": "" }, { "docid": "599766ba9d4019f769c107706510ab30", "score": "0.5987124", "text": "function custom_tag_cloud_widget($args)\n{\n\t$args['number'] = 0; //adding a 0 will display all tags\n\t$args['largest'] = 19; //largest tag\n\t$args['smallest'] = 19; //smallest tag\n\t$args['unit'] = 'px'; //tag font unit\n\t$args['format'] = 'list'; //ul with a class of wp-tag-cloud\n\treturn $args;\n}", "title": "" }, { "docid": "348b46f90d0a6d639cb8965aa8d9bbb4", "score": "0.59844095", "text": "function buscaTipos();", "title": "" }, { "docid": "90807dff36223589a5e59f4857c0f96a", "score": "0.59786546", "text": "function tc_display_tagline() {\n\t\t?>\n\t\t<div class=\"container outside\">\n\t <h2 class=\"site-description\"><?php bloginfo( 'description' ); ?></h2>\n\t </div>\n\t\t<?php \n\t}", "title": "" }, { "docid": "43ad4b882260f6f6b2d4b164d893792b", "score": "0.5976569", "text": "public function getAltTag();", "title": "" }, { "docid": "bb750df771fae7a3407c8a1f6b34be70", "score": "0.5975783", "text": "function get_tags_content_title()\n{\n global $page;\n $title = '<a href=\"'.get_root_url().'tags.php\" title=\"'.lang('display available tags').'\">'\n . lang( count($page['tags']) > 1 ? 'Tags' : 'Tag' )\n . '</a> ';\n\n for ($i=0; $i<count($page['tags']); $i++)\n {\n $title.= $i>0 ? ' + ' : '';\n\n $title.=\n '<a href=\"'\n .make_index_url(\n array(\n 'tags' => array( $page['tags'][$i] )\n )\n )\n .'\" title=\"'\n .lang('display photos linked to this tag')\n .'\">'\n .trigger_change('render_tag_name', $page['tags'][$i]['name'], $page['tags'][$i])\n .'</a>';\n\n if (count($page['tags']) > 2)\n {\n $other_tags = $page['tags'];\n unset($other_tags[$i]);\n $remove_url = make_index_url(\n array(\n 'tags' => $other_tags\n )\n );\n\n $title.=\n '<a href=\"'.$remove_url.'\" style=\"border:none;\" title=\"'\n .lang('remove this tag from the list')\n .'\"><img src=\"'\n .get_root_url().get_themeconf('icon_dir').'/remove_s.png'\n .'\" alt=\"x\" style=\"vertical-align:bottom;\">'\n .'</a>';\n }\n }\n return $title;\n}", "title": "" }, { "docid": "220f80f4e6634ec5d5f218d40234cbeb", "score": "0.5971109", "text": "function uni_cpo_get_allowed_tags()\n{\n return array(\n 'tooltip' => array(\n 'br' => array(),\n 'em' => array(),\n 'strong' => array(),\n 'small' => array(),\n 'span' => array(),\n 'ul' => array(),\n 'li' => array(),\n 'ol' => array(),\n 'p' => array(),\n 'img' => array(\n 'alt' => true,\n 'align' => false,\n 'border' => false,\n 'height' => true,\n 'hspace' => false,\n 'longdesc' => false,\n 'vspace' => false,\n 'src' => true,\n 'usemap' => false,\n 'width' => true,\n ),\n ),\n 'text' => array(\n 'address' => array(),\n 'a' => array(\n 'class' => true,\n 'id' => true,\n 'href' => true,\n 'rel' => true,\n 'rev' => true,\n 'name' => true,\n 'target' => true,\n 'title' => true,\n ),\n 'abbr' => array(),\n 'acronym' => array(),\n 'audio' => array(\n 'autoplay' => true,\n 'controls' => true,\n 'loop' => true,\n 'muted' => true,\n 'preload' => true,\n 'src' => true,\n ),\n 'b' => array(),\n 'bdo' => array(\n 'dir' => true,\n ),\n 'big' => array(),\n 'blockquote' => array(\n 'cite' => true,\n 'lang' => true,\n 'xml:lang' => true,\n ),\n 'br' => array(),\n 'button' => array(\n 'disabled' => true,\n 'name' => true,\n 'type' => true,\n 'value' => true,\n ),\n 'caption' => array(\n 'align' => true,\n ),\n 'cite' => array(\n 'dir' => true,\n 'lang' => true,\n ),\n 'code' => array(),\n 'col' => array(\n 'align' => true,\n 'char' => true,\n 'charoff' => true,\n 'span' => true,\n 'dir' => true,\n 'valign' => true,\n 'width' => true,\n ),\n 'colgroup' => array(\n 'align' => true,\n 'char' => true,\n 'charoff' => true,\n 'span' => true,\n 'valign' => true,\n 'width' => true,\n ),\n 'del' => array(\n 'datetime' => true,\n ),\n 'dd' => array(),\n 'dfn' => array(),\n 'details' => array(\n 'align' => true,\n 'dir' => true,\n 'lang' => true,\n 'open' => true,\n 'xml:lang' => true,\n ),\n 'dl' => array(),\n 'dt' => array(),\n 'em' => array(),\n 'figure' => array(\n 'align' => true,\n 'dir' => true,\n 'lang' => true,\n 'xml:lang' => true,\n ),\n 'figcaption' => array(\n 'align' => true,\n 'dir' => true,\n 'lang' => true,\n 'xml:lang' => true,\n ),\n 'font' => array(\n 'color' => true,\n 'face' => true,\n 'size' => true,\n ),\n 'h1' => array(\n 'align' => true,\n 'class' => true,\n 'id' => true,\n ),\n 'h2' => array(\n 'align' => true,\n 'class' => true,\n 'id' => true,\n ),\n 'h3' => array(\n 'align' => true,\n 'class' => true,\n 'id' => true,\n ),\n 'h4' => array(\n 'align' => true,\n 'class' => true,\n 'id' => true,\n ),\n 'h5' => array(\n 'align' => true,\n 'class' => true,\n 'id' => true,\n ),\n 'h6' => array(\n 'align' => true,\n 'class' => true,\n 'id' => true,\n ),\n 'hr' => array(\n 'align' => true,\n 'noshade' => true,\n 'size' => true,\n 'width' => true,\n ),\n 'i' => array(),\n 'img' => array(\n 'alt' => true,\n 'align' => true,\n 'border' => true,\n 'height' => true,\n 'hspace' => true,\n 'longdesc' => true,\n 'vspace' => true,\n 'src' => true,\n 'usemap' => true,\n 'width' => true,\n 'class' => true,\n 'id' => true,\n ),\n 'ins' => array(\n 'datetime' => true,\n 'cite' => true,\n ),\n 'input' => array(\n 'class' => true,\n 'id' => true,\n 'name' => true,\n 'value' => true,\n 'data-parsley-trigger' => true,\n 'data-parsley-type' => true,\n 'data-parsley-min' => true,\n 'step' => true,\n 'data-parsley-id' => true,\n 'type' => true,\n ),\n 'kbd' => array(),\n 'li' => array(\n 'align' => true,\n 'value' => true,\n ),\n 'mark' => array(),\n 'q' => array(\n 'cite' => true,\n ),\n 'p' => array(\n 'class' => array(),\n ),\n 's' => array(),\n 'samp' => array(),\n 'span' => array(\n 'dir' => true,\n 'align' => true,\n 'lang' => true,\n 'xml:lang' => true,\n ),\n 'small' => array(),\n 'strike' => array(),\n 'strong' => array(),\n 'sub' => array(),\n 'summary' => array(\n 'align' => true,\n 'dir' => true,\n 'lang' => true,\n 'xml:lang' => true,\n ),\n 'sup' => array(),\n 'table' => array(\n 'align' => true,\n 'bgcolor' => true,\n 'border' => true,\n 'cellpadding' => true,\n 'cellspacing' => true,\n 'dir' => true,\n 'rules' => true,\n 'summary' => true,\n 'width' => true,\n 'class' => true,\n 'id' => true,\n ),\n 'tbody' => array(\n 'align' => true,\n 'char' => true,\n 'charoff' => true,\n 'valign' => true,\n ),\n 'td' => array(\n 'abbr' => true,\n 'align' => true,\n 'axis' => true,\n 'bgcolor' => true,\n 'char' => true,\n 'charoff' => true,\n 'colspan' => true,\n 'dir' => true,\n 'headers' => true,\n 'height' => true,\n 'nowrap' => true,\n 'rowspan' => true,\n 'scope' => true,\n 'valign' => true,\n 'width' => true,\n 'class' => true,\n 'id' => true,\n ),\n 'tfoot' => array(\n 'align' => true,\n 'char' => true,\n 'charoff' => true,\n 'valign' => true,\n ),\n 'th' => array(\n 'abbr' => true,\n 'align' => true,\n 'axis' => true,\n 'bgcolor' => true,\n 'char' => true,\n 'charoff' => true,\n 'colspan' => true,\n 'headers' => true,\n 'height' => true,\n 'nowrap' => true,\n 'rowspan' => true,\n 'scope' => true,\n 'valign' => true,\n 'width' => true,\n 'class' => true,\n 'id' => true,\n ),\n 'thead' => array(\n 'align' => true,\n 'char' => true,\n 'charoff' => true,\n 'valign' => true,\n ),\n 'title' => array(),\n 'tr' => array(\n 'align' => true,\n 'bgcolor' => true,\n 'char' => true,\n 'charoff' => true,\n 'valign' => true,\n ),\n 'track' => array(\n 'default' => true,\n 'kind' => true,\n 'label' => true,\n 'src' => true,\n 'srclang' => true,\n ),\n 'tt' => array(),\n 'u' => array(),\n 'ul' => array(\n 'type' => true,\n ),\n 'ol' => array(\n 'start' => true,\n 'type' => true,\n 'reversed' => true,\n ),\n 'var' => array(),\n 'video' => array(\n 'autoplay' => true,\n 'controls' => true,\n 'height' => true,\n 'loop' => true,\n 'muted' => true,\n 'poster' => true,\n 'preload' => true,\n 'src' => true,\n 'width' => true,\n ),\n ),\n );\n}", "title": "" }, { "docid": "dfb702371d4b76c9ce30989713b892d1", "score": "0.59329575", "text": "function admin_add_tag() {\n\t\t//\n\t}", "title": "" }, { "docid": "fe9e89ee69a2eccef629c57b09000c56", "score": "0.5918573", "text": "function mosToolTip($tooltip, $title = '', $width = '', $image = 'tooltip.png', $text = '', $href = '#', $link = 1)\n{\n global $mosConfig_live_site;\n\n if ($width) {\n $width = ', WIDTH, \\'' . $width . '\\'';\n }\n if ($title) {\n $title = ', CAPTION, \\'' . $title . '\\'';\n }\n if (!$text) {\n $image = $mosConfig_live_site . '/includes/js/ThemeOffice/' . $image;\n $text = '<img src=\"' . $image . '\" border=\"0\" alt=\"tooltip\"/>';\n }\n $style = 'style=\"text-decoration: none; color: #333;\"';\n if ($href) {\n $style = '';\n } else {\n $href = '#';\n }\n\n $mousover = 'return overlib(\\'' . $tooltip . '\\'' . $title . ', BELOW, RIGHT' . $width . ');';\n\n $tip = \"<!-- Tooltip -->\\n\";\n if ($link) {\n $tip .= '<a href=\"' . $href . '\" onmouseover=\"' . $mousover . '\" onmouseout=\"return nd();\" ' . $style . '>' . $text . '</a>';\n } else {\n $tip .= '<span onmouseover=\"' . $mousover . '\" onmouseout=\"return nd();\" ' . $style . '>' . $text . '</span>';\n }\n\n return $tip;\n}", "title": "" }, { "docid": "2cd88ce8e08798c36dce1203c39286b5", "score": "0.59105253", "text": "function display_tagcloud($threshold = 1, $limit = 10, $metadata_name = \"\", $entity_type = \"object\", $entity_subtype = \"\", $owner_guid = \"\", $site_guid = -1, $start_ts = \"\", $end_ts = \"\") {\n\n\t//elgg_deprecated_notice('display_cloud() was deprecated by elgg_view_tagcloud()!', 1.8);\n\t\n\treturn elgg_view(\"output/tagcloud\",array('value' => get_tags($threshold, $limit, $metadata_name, $entity_type, $entity_subtype, $owner_guid, $site_guid, $start_ts, $end_ts),\n\t\t\t\t\t\t\t\t\t\t\t'type' => $entity_type,\n\t\t\t\t\t\t\t\t\t\t\t'subtype' => $entity_subtype));\n}", "title": "" }, { "docid": "b9e9b36f0573a806c3fabe0ce72d7520", "score": "0.5898855", "text": "function bon_technoratiTagging($text)\r\n{\r\n $bon_TechnoTaggingOptions = bon_technoratiTaggingLoadOptions();\r\n\r\n // variable initialisation\r\n $tagList = '';\r\n\r\n // get the tags\r\n $tagOldList = get_post_custom_values('ttaglist'); // compatibility with tags from TechnoTag by Keith McDuffee <http://www.gudlyf.com>\r\n $tagNewList = get_post_custom_values('technorati');\r\n\r\n $tagList = $tagOldList[0] . ',' . $tagNewList[0];\r\n\r\n $tagArray = preg_split(\"/[,]+/\", $tagList, -1, PREG_SPLIT_NO_EMPTY);\r\n sort($tagArray);\r\n\r\n if (count($tagArray) == 0)\r\n {\r\n // definetely no tags\r\n }\r\n else\r\n {\r\n $tagFormattedArray = array();\r\n\r\n foreach ($tagArray as $tag)\r\n {\r\n $tag = trim(strtolower($tag));\r\n\r\n if ($tag == '')\r\n continue;\r\n\r\n $tagFixed = bon_technorati_fixTag($tag);\r\n\r\n $tagFormattedArray[] = str_replace(\"%URL%\", $bon_TechnoTaggingOptions['technoTag_link'] . $tagFixed, str_replace(\"%TAG%\", $tag, $bon_TechnoTaggingOptions['technoTag_format']));\r\n }\r\n\r\n if (count($tagFormattedArray) > 0)\r\n {\r\n // check if there were no tags (spaces can confuse previous check)\r\n $text .= $bon_TechnoTaggingOptions['technoTag_prefix'];\r\n $text .= implode($bon_TechnoTaggingOptions['technoTag_seperator'], $tagFormattedArray);\r\n $text .= $bon_TechnoTaggingOptions['technoTag_suffix'];\r\n }\r\n }\r\n\r\n return $text;\r\n}", "title": "" }, { "docid": "a36315e67e0c01a39aceb8c79b6fb89d", "score": "0.5898645", "text": "function goldust_filter_tips($tips, $long = FALSE, $extra = '') {\n return '';\n}", "title": "" }, { "docid": "04b0f91f36b8bd832198ac26b2177dbd", "score": "0.5883005", "text": "function dttheme_adminpanel_tooltip($tooltip) {\n\t$output = \"<div class='bpanel-option-help'>\\n\";\n\t$output .= \"<a href='' title=''> <img src='\" . IAMD_FW_URL . \"theme_options/images/help.png' alt='' title='' /> </a>\\n\";\n\t$output .= \"\\r<div class='bpanel-option-help-tooltip'>\\n\";\n\t$output .= $tooltip;\n\t$output .= \"\\r</div>\\n\";\n\t$output .= \"</div>\\n\";\n\techo $output;\n}", "title": "" }, { "docid": "322283e553176927b18a995865cf000d", "score": "0.58570474", "text": "function sunix_tagged_in($args = []){\n $args = wp_parse_args($args, [\n 'class' => '',\n 'hint' => '',\n 'icon' => 'fas fa-tag',\n 'before' => '',\n 'after' => '',\n 'before_tag' => '',\n 'after_tag' => '',\n 'sep' => ', ',\n 'show_tag' => is_single() ? sunix_get_theme_opt( 'post_tags_on', '1' ) : sunix_get_theme_opt( 'archive_tags_on', '1' ),\n 'echo' => true\n ]);\n if('1' !== $args['show_tag']) return;\n $classes = ['red-tagged-in hint--top', $args['class']];\n $tags_list = get_the_term_list( get_the_ID(), sunix_get_post_taxonomies('tag'), '', $args['sep'], '' );\n ob_start();\n if ( $tags_list)\n {\n printf(\n '%1$s<div class=\"%2$s\" data-hint=\"%3$s\">\n %4$s %5$s %6$s %7$s%8$s\n </div>%8$s',\n $args['before'],\n trim(implode(' ', $classes)),\n esc_html($args['hint']),\n !empty($args['icon']) ? '<span class=\"'.$args['icon'].'\"></span>' : '',\n '<span>'.esc_html__('Posted in:','sunix').'</span>',\n $args['before_tag'],\n $tags_list,\n $args['after_tag'],\n $args['after']\n );\n }\n if($args['echo']){\n echo ob_get_clean();\n } else {\n return ob_get_clean();\n }\n }", "title": "" }, { "docid": "c5ee73eb25e54362f1e8885026213c4d", "score": "0.58544916", "text": "function displayTagCloud() {\n // get our array of tags to display\n $cloud = $this->getAllTags();\n \n // build our HTML to display the cloud\n $this->displayTagCloudHTML($cloud);\n }", "title": "" }, { "docid": "1b4d15cd71f124cba33c3e2bc46d4da4", "score": "0.5850185", "text": "protected function renderTags($tags) {\n\t\t$cloud = \"\";\n\t\tforeach ($tags as $tagData) {\n\t\t\t$tagData = $this->objToArray($tagData);\n\t\t\textract($tagData);\n\t\t\t$text = $this->arguments['titleIsTag'] ? $title : $tag;\n\t\t\tif (strpos($href, 'http://') !== 0) {\n\t\t\t\t$href = \"http://\" . $_SERVER['HTTP_HOST'] . '/' . $href;\n\t\t\t}\n\t\t\t$cloud .= <<< TAG\n<a href='{$href}' style='font-size: {$size}px; {$style}' rel='tag' title='{$title}'>{$text}</a>\nTAG;\n\t\t}\n\t\treturn $cloud;\n\t}", "title": "" }, { "docid": "0fbb974f8cce28b97699f8f8adc0c986", "score": "0.5835355", "text": "function custom_tag_cloud($args) {\n $args['unit'] = 'em';\n $args['smallest'] = 0.8;\n $args['largest'] = 2;\n $args['order'] = 'RAND';\n $args['number'] = 20;\n return $args;\n }", "title": "" }, { "docid": "4a91475f220c3f1fe2e2d829832387b9", "score": "0.5833209", "text": "function renderTagsToString($obj)\r\n{\r\n $tagsString = '';\r\n foreach ($obj->GetTags() as $tag)\r\n {\r\n $tagsString .= '<span class=\"text-label\">' . $tag . '</span>';\r\n }\r\n return $tagsString;\r\n}", "title": "" }, { "docid": "81fb3f2c655096dbc032e207f4692988", "score": "0.5831487", "text": "public static function label()\n {\n return 'Tipovi izleta';\n }", "title": "" }, { "docid": "83b5422f4604360136fe2faf2c57a6a2", "score": "0.5828402", "text": "public function getTitleTag();", "title": "" }, { "docid": "3f9846893069ecac385070e791d00394", "score": "0.58262485", "text": "function print_tag_description_box($tag_object) {\n\n global $USER, $CFG;\n\n $tagname = /*ucwords*/($tag_object->name);\n $related_tags = related_tags($tag_object->id); //get_item_tags('tags',$tag_object->id);\n\n\n print_box_start('generalbox', 'tag-description');\n\n if (!empty($tag_object->description)) {\n echo format_text($tag_object->description, $tag_object->descriptionformat );\n }\n else {\n echo format_text(get_string('thistaghasnodesc','tag'));\n }\n\n\n if ($related_tags) {\n echo '<br/><b>'.get_string('relatedtags','tag').': </b>' . tag_links_csv($related_tags);\n }\n\n print_box_end();\n}", "title": "" }, { "docid": "3a8e8beaf56a697637e08f52b211024a", "score": "0.5804806", "text": "function no_follow_widget_tag_cloud($args) {\n\textract($args);\n\t$options = get_option('widget_tag_cloud');\n\t$title = empty($options['title']) ? __('Tags') : apply_filters('widget_title', $options['title']);\n\n\techo $before_widget;\n\techo $before_title . $title . $after_title;\n\tno_follow_tag_cloud();\n\techo $after_widget;\n}", "title": "" }, { "docid": "6192d6702651149bb2ec4a4d11e5fb02", "score": "0.5788656", "text": "public function tag()\n\t{\n\t\t$data['postTag'] = $this->getPostTagHistory();\n\t\t$data['content'] = $this->load->view('add_tag', $data, true);\n\t\t$this->load->view('dashboard/dashboard_layout', $data);\n\t}", "title": "" }, { "docid": "bcb4d797cb40bf97fcaef3767e961ec1", "score": "0.57871664", "text": "function set_widget_tag_cloud_args($args) {\n $my_args = array(\n 'smallest' => 10, \n 'largest' => 18,\n 'unit' => 'px', \n 'number' => 44, \n 'format' => 'flat',\n 'separator' => \"\\n\",\n 'orderby' => 'name', \n 'order' => 'ASC',\n 'exclude' => null, \n 'include' => null, \n 'topic_count_text_callback' => default_topic_count_text,\n 'link' => 'view', \n 'taxonomy' => 'post_tag', \n 'echo' => true,\n 'show_count' => 0,\n 'child_of' => null,\n );\n $args = wp_parse_args( $args, $my_args );\n return $args;\n}", "title": "" }, { "docid": "33881a0392df292188c69799cfdaef8a", "score": "0.577373", "text": "function ultimate_tag_cloud($order='tag', $direction='asc') {\r\n\tglobal $wpdb, $tablepost2tag, $utw;\r\n\r\n\t$q = \"SELECT count(*) FROM $tablepost2tag\";\r\n\t$totalTags = $wpdb->get_var($q);\r\n\r\n\t$tags = $utw->GetPopularTags(-1,$order, $direction);\r\n\r\n\t// The average number of times a tag appears on each post.\r\n\t$average = (count($tags) / $totalTags);\r\n\r\n\t$baseurl = get_option('utw_base_url');\r\n\t$siteurl = get_option('home');\r\n\r\n \tforeach($tags as $tag) {\r\n\t\tif ($tag->count > $average * 20) {\r\n\t\t\t$tagclass = \"taglevel1\";\r\n\t\t} else if ($tag->count > $average * 10) {\r\n\t\t\t$tagclass = \"taglevel2\";\r\n\t\t} else if ($tag->count > $average * 6) {\r\n\t\t\t$tagclass = \"taglevel3\";\r\n\t\t} else if ($tag->count > $average * 4) {\r\n\t\t\t$tagclass = \"taglevel4\";\r\n\t\t} else if ($tag->count > $average * 2) {\r\n\t\t\t$tagclass = \"taglevel5\";\r\n\t\t} else if ($tag->count > $average) {\r\n\t\t\t$tagclass = \"taglevel6\";\r\n\t\t} else if ($tag->count <= $average) {\r\n\t\t\t$tagclass = \"taglevel7\";\r\n\t\t}\r\n\r\n\t\t$tag_name = strtolower($tag->tag);\r\n\r\n\t\t$tag_display = str_replace('_',' ', $tag->tag);\r\n\t\t$tag_display = str_replace('-',' ',$tag_display);\r\n\r\n\t\techo \"<a href=\\\"$siteurl$baseurl$tag_name\\\" class=\\\"$tagclass\\\" title=\\\"$tag_display ($tag->count)\\\">$tag_display</a> \";\r\n \t}\r\n}", "title": "" }, { "docid": "6792ccdbae49dcf1f236de45c435823e", "score": "0.5773705", "text": "function basestation_do_post_tags() {\n $post_tags = get_the_tags();\n if ( $post_tags ) {\n echo '<span class=\"tags-links\"><i class=\"meta-icon icon-tag\" title=\"Tags\"></i>' . \"\\n\";\n $num_tags = count( $post_tags );\n $tag_count = 1;\n $nofollow = ' nofollow'; // tell search engines to not index tag url\n foreach( $post_tags as $tag ) {\n $html_before = '<a href=\"' . get_tag_link($tag->term_id) . '\" rel=\"tag'.$nofollow.'\" class=\"tag-text\">';\n $html_after = '</a>';\n if ( $tag_count < $num_tags )\n $sep = \", \\n\";\n elseif ( $tag_count == $num_tags )\n $sep = \"\\n\";\n echo $html_before . $tag->name . $html_after . $sep;\n $tag_count++;\n }\n echo '</span>' . \"\\n\";\n }\n}", "title": "" }, { "docid": "d0049505d62bc8a9ad96ae3dd2fefd2e", "score": "0.5766488", "text": "function ultimate_show_post_tags($separator=\"&nbsp;\", $baseurl='/tag/', $notagmessage = \"\", $morelinks=\"\") {\r\n\tglobal $post, $utw;\r\n\r\n\t$id = $post->postid;\r\n\tif(empty($id)) {\r\n\t\t$id = $post->ID;\r\n\t}\r\n\r\n\t$baseformat = \"%taglink%\";\r\n\r\n\tif ($baseurl != '/tag/') {\r\n\t\t$baseformat = \"<a href=\\\"$baseurl%tag%\\\" rel=\\\"tag\\\">%tagdisplay%</a>\";\r\n\t}\r\n\r\n\tif ($morelinks) {\r\n\t\tif (is_array($morelinks)) {\r\n\t\t\tforeach($morelinks as $link) {\r\n\t\t\t\t$baseformat .= \" <a href=\\\"$link%tag%\\\" rel=\\\"tag\\\">&raquo;</a> \";\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\t$baseformat .= \" <a href=\\\"\" . $morelinks . \"%tag%\\\" rel=\\\"tag\\\">&raquo;</a> \";\r\n\t\t}\r\n\t}\r\n\r\n\t$format = Array();\r\n\t$format[\"default\"] = $baseformat . $separator;\r\n\t$format[\"last\"] = $baseformat;\r\n\t$format[\"none\"] = $notagmessage;\r\n\r\n\t$utw->ShowTagsForPost($id, $format);\r\n}", "title": "" }, { "docid": "4c9f214a3b7931a48dfd2dfe0d19e811", "score": "0.57353145", "text": "public function label()\n {\n $result = $this->title;\n if ($this->subtitle) {\n $result .= '. ' . $this->subtitle;\n }\n if ($this->author) {\n $result .= ' <span style=\"color:#b3b3b3;padding-left:3px\">[' . $this->author . ']</span>';\n }\n if ($this->tags) {\n $tags = '[' . implode('] [', preg_split('/\\s*,\\s*/', $this->tags)) . ']';\n $result .= ' <span style=\"font-weight:bold;padding-left:20px;float:right;\">' . $tags . '</span>';\n }\n return $result;\n }", "title": "" }, { "docid": "c16b44d5deac31eae2371e47e42c173d", "score": "0.57319045", "text": "function tag( $tag, $type = \"article\" )\r\n{ \r\n\t$tag = str_replace('%20', ' ', $tag); ?>\r\n\t<title><?php echo( ucwords( $type ) ); ?> Tag : <?php echo( ucwords( $tag ) ); ?> - <?php showOption( 'name' ); ?></title><?php\r\n\tresetLoop( 'getTags', [$tag, $type] );\r\n\t$data = array();\r\n\t$data['tag'] = ucwords( $tag );\r\n\trequire_once( _ABSTHEMES_ . getOption( 'activetheme' ) .'/templates/archive.php' );\r\n}", "title": "" }, { "docid": "116e4d4f3fbcbb88672fb087e064597b", "score": "0.5728152", "text": "public function getName()\n {\n return 'tags_text';\n }", "title": "" }, { "docid": "dba3b1699d504299fd8393f2749570ce", "score": "0.5712142", "text": "function display_tagcloud($threshold = 1, $limit = 10, $metadata_name = \"\", $entity_type = \"object\",\n$entity_subtype = \"\", $owner_guid = \"\", $site_guid = -1, $start_ts = \"\", $end_ts = \"\") {\n\n\telgg_deprecated_notice('display_tagcloud() was deprecated by elgg_view_tagcloud()!', 1.8);\n\n\t$tags = get_tags($threshold, $limit, $metadata_name, $entity_type,\n\t\t$entity_subtype, $owner_guid, $site_guid, $start_ts, $end_ts);\n\n\treturn elgg_view('output/tagcloud', array(\n\t\t'value' => $tags,\n\t\t'type' => $entity_type,\n\t\t'subtype' => $entity_subtype,\n\t));\n}", "title": "" }, { "docid": "88f2d76694b07b1c0103b67e989e03c9", "score": "0.57094526", "text": "function displayTagCloudHTML($cloud) {\n if (count($cloud)) {\n ?>\n <div id=\"cloud_tag\">\n <ol class='tag-cloud'>\n <b class=\"head\">Popular Tags</b><br />\n <?php\n // loop through our array\n for ($i = 0; $i < count($cloud); $i++) {\n ?>\n <li class=\"<?php print $this->displayTagStyle($cloud[$i][\"count\"]); ?>\"><span><?php print $cloud[$i][\"count\"]; ?> posts are tagged with </span><a href=\"/blogs/index.php?tag=<?php print urlencode($cloud[$i][\"tag\"]); ?>\" class=\"tag\"><?php print $cloud[$i][\"tag\"]; ?></a></li>\n <?php\n }\n ?>\n </ol>\n </div>\n <?php\n }\n }", "title": "" }, { "docid": "fcd16b2802e0fb407ff54befa4fee8c1", "score": "0.5699373", "text": "function mk_text_over_graphic($args) {\n extract($args);\n\n $anchor_class .= ($is_current_page ? ' current_item' : '');\n $anchor_class = NAVT_FE::set_item_class($style_flags, 'a', $anchor_class);\n $item_class = NAVT_FE::set_item_class($style_flags, $sBeforeItem, $navt_item_class, $user_item_class, $wp_item_class);\n $div_class = NAVT_FE::set_item_class($style_flags, 'div', 'navt_tog '.$usr_defined_class);\n\n $li = _indentt($in) . \"<$sBeforeItem\" . (!isBlank($item_class) ? \" $item_class\": '' ) .\n \"><div\" . (!isBlank($div_class) ? \" $div_class\" : '') . \"><a href='$link_url' title='\" . attribute_escape($tooltip) . \"'\" .\n (!isBlank($reltags) ? \" $reltags\" : '') . (!isBlank($anchor_class) ? \" $anchor_class\": '') . \">$alt_text\" .\n (!isBlank($post_count) ? \" $post_count\" : '') . \"</a></div>$sAfterItem\\n\";\n\n return($li);\n }", "title": "" }, { "docid": "fe8d5b9366019762378e86c063948476", "score": "0.56854725", "text": "function style_my_tag_cloud($tags)\n\t{\n\t$tags = preg_replace_callback(\"|(class='tag-link-[0-9]+)('.*?)(style='font-size: )([0-9]+)(pt;')|\",\n\tcreate_function(\n\t'$match',\n\t'$low=1; $high=5; $sz=($match[4]-8.0)/(22-8)*($high-$low)+$low;'\n\t),\n\t$tags);\n\treturn $tags;\n\t}", "title": "" }, { "docid": "e2ea6023c3b1267486386c86aeefe49d", "score": "0.5675473", "text": "function woo_new_product_tab_tags_content(){\n\t$alltags = wp_get_post_terms( get_the_Id(), 'product_tag' );\n\t//var_dump($alltags);\n\techo '<p>';\n\tforeach($alltags as $alltag ):\n\t\techo '<b>'.$alltag->name.'</b> ';\n\tendforeach;\n\techo '</p>';\n\t\n}", "title": "" }, { "docid": "f56be771140d6c97ed0e5bfac661910e", "score": "0.56750035", "text": "function makeTag() {\n\t\treturn $this->cObject->typolink(\n\t\t\t$this->_makeLabel(),\n\t\t\t$this->_makeConfig('tag')\n\t\t);\n\t}", "title": "" }, { "docid": "eea47a22aa4f99e5baa91d5868a6368a", "score": "0.5665324", "text": "function appthemes_add_quicktags() {\n?>\n <script type=\"text/javascript\">\n QTags.addButton( 'eg_full_img', 'full_img', '<img class=\"aligncenter\" src=\"https://img.maxbeta.com/uploads/<?php echo date('Y/m'); ?>/\" alt=\"\">', '', '', '', 201 );\n </script>\n<?php\n}", "title": "" }, { "docid": "3110004453a863c787480ea86ce00c55", "score": "0.5658285", "text": "protected function generate_tag($tag){}", "title": "" }, { "docid": "c65561d168f488f2052027c2b7b64949", "score": "0.5649733", "text": "public function getTag(): string;", "title": "" }, { "docid": "c34d2cdad9d65c4267743c19977f1aea", "score": "0.562428", "text": "function braftonTags(){\n global $options;\n $tip = 'Tags are rarely used and hold no true SEO Value, however we provide you with options if you choose to use them. The Option you select must be included in your XML Feed.';\n tooltip($tip); ?>\n<input type=\"radio\" name=\"braftonTags\" value=\"tags\" <?php checkRadioval($options['braftonTags'], 'tags'); ?> />Tags as tags<br /> \n<input type=\"radio\" name=\"braftonTags\" value=\"keywords\" <?php checkRadioval($options['braftonTags'], 'keywords');?> />Keywords as tags<br />\n<input type=\"radio\" name=\"braftonTags\" value=\"cats\" <?php checkRadioval($options['braftonTags'], 'cats');?> />Categories as tags<br />\n<input type=\"radio\" name=\"braftonTags\" value=\"none_tags\" <?php checkRadioval($options['braftonTags'], 'none_tags');?> /> None \n<?php \n}", "title": "" }, { "docid": "626e09d053431dde6e72cf4bc2865070", "score": "0.56207705", "text": "function getTagCloud() {\n $strReturn = '';\n $arrKeywords = $this->createKeywordArray();\n\n if (count($arrKeywords) > 0) {\n $strReturn = '<ul class=\"forumTagCloud\">';\n $intMinimum = min($arrKeywords);\n $intMaximum = max($arrKeywords);\n $intRange = $intMaximum - $intMinimum;\n\n foreach ($arrKeywords as $strTag => $intKeywordValue) {\n $strCssClass = '';\n\n if ($intKeywordValue >= $intMinimum + $intRange * 1.0) {\n $strCssClass = 'forumTagCloudLargest';\n } else if ($intKeywordValue >= $intMinimum + $intRange * 0.75) {\n $strCssClass = 'forumTagCloudLarge';\n } else if ($intKeywordValue >= $intMinimum + $intRange * 0.5) {\n $strCssClass = 'forumTagCloudMedium';\n } else if ($intKeywordValue >= $intMinimum + $intRange * 0.25) {\n $strCssClass = 'forumTagCloudSmall';\n } else {\n $strCssClass = 'forumTagCloudSmallest';\n }\n\n $strReturn .= '<li class=\"'.$strCssClass.'\"><a href=\"'.CONTREXX_SCRIPT_PATH.'?section=Forum&amp;cmd=searchTags&amp;term='.$strTag.'\" title=\"'.$strTag.'\">'.$strTag.'</a></li>';\n }\n\n $strReturn .= '</ul>';\n }\n\n return $strReturn;\n }", "title": "" }, { "docid": "678039527b7281a41cd85b173ed00915", "score": "0.5618645", "text": "function displayManageTags()\n {\n global $serendipity;\n\n if ($this->get_config('dbversion', 1) != 2) {\n $this->install();\n $this->set_config('dbversion', 2);\n }\n\n $full_permission = serendipity_checkPermission('adminPlugins'); // AFAIS, BY USERLEVEL permission checks are being deprecated\n\n $tagview = array('all', 'entryleaf', 'leaf', 'entryuntagged', 'keywords', 'cat2tag', 'tagupdate', 'cleanupmappings');// strange issue occurs, when first comes 'leaf', then 'entryleaf' is not replaced correct, so we need to check the latter first!\n $tagviewtitle = array(PLUGIN_EVENT_FREETAG_MANAGE_ALL, PLUGIN_EVENT_FREETAG_MANAGE_LEAFTAGGED, PLUGIN_EVENT_FREETAG_MANAGE_LEAF, PLUGIN_EVENT_FREETAG_MANAGE_UNTAGGED, PLUGIN_EVENT_FREETAG_KEYWORDS, PLUGIN_EVENT_FREETAG_GLOBALLINKS, PLUGIN_EVENT_FREETAG_REBUILD, PLUGIN_EVENT_FREETAG_MANAGE_CLEANUP);\n if (!empty($serendipity['GET']['tagview'])) {\n $freetag_section = str_replace($tagview, $tagviewtitle, $serendipity['GET']['tagview']);\n }\n?>\n\n <h2 id=\"freetag_adminer_title\"><?php echo (empty($freetag_section) ? PLUGIN_EVENT_FREETAG_MANAGETAGS : $freetag_section); ?></h2>\n\n <div class=\"freetagMenu\">\n <svg display=\"none\" width=\"0\" height=\"0\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <defs>\n <symbol id=\"icon-tags\" viewBox=\"0 0 1024 1024\">\n <title>tags</title>\n <path glyph-name=\"tags\" unicode=\"&#xe805;\" d=\"M250 600q0 30-21 51t-50 20-51-20-21-51 21-50 51-21 50 21 21 50z m595-321q0-30-20-51l-274-274q-22-21-51-21-30 0-50 21l-399 399q-21 21-36 57t-15 65v232q0 29 21 50t50 22h233q29 0 65-15t57-36l399-399q20-21 20-50z m215 0q0-30-21-51l-274-274q-22-21-51-21-20 0-33 8t-29 25l262 262q21 21 21 51 0 29-21 50l-399 399q-21 21-57 36t-65 15h125q29 0 65-15t57-36l399-399q21-21 21-50z\" horiz-adv-x=\"1071.4\" />\n </symbol>\n <symbol id=\"icon-tag\" viewBox=\"0 0 1024 1024\">\n <title>tag</title>\n <path glyph-name=\"tag\" unicode=\"&#xe804;\" d=\"M250 600q0 30-21 51t-50 20-51-20-21-51 21-50 51-21 50 21 21 50z m595-321q0-30-20-51l-274-274q-22-21-51-21-30 0-50 21l-399 399q-21 21-36 57t-15 65v232q0 29 21 50t50 22h233q29 0 65-15t57-36l399-399q20-21 20-50z\" horiz-adv-x=\"857.1\" />\n </symbol>\n <symbol id=\"icon-notag\" viewBox=\"0 0 1024 1024\">\n <title>entries-notag</title>\n <path glyph-name=\"notag\" unicode=\"&#xf0f6;\" d=\"M819 638q16-16 27-42t11-50v-642q0-23-15-38t-38-16h-750q-23 0-38 16t-16 38v892q0 23 16 38t38 16h500q22 0 49-11t42-27z m-248 136v-210h210q-5 16-12 23l-175 175q-6 7-23 12z m215-853v572h-232q-23 0-38 15t-16 38v233h-429v-858h715z m-572 483q0 7 5 12t13 5h393q8 0 13-5t5-12v-36q0-8-5-13t-13-5h-393q-8 0-13 5t-5 13v36z m411-125q8 0 13-5t5-13v-36q0-8-5-13t-13-5h-393q-8 0-13 5t-5 13v36q0 8 5 13t13 5h393z m0-143q8 0 13-5t5-13v-36q0-8-5-13t-13-5h-393q-8 0-13 5t-5 13v36q0 8 5 13t13 5h393z\" horiz-adv-x=\"857.1\" />\n </symbol>\n <symbol id=\"icon-leaftag\" viewBox=\"0 0 1024 1024\">\n <title>entries-leaftag</title>\n <path glyph-name=\"leaftag\" unicode=\"&#xf15c;\" d=\"M819 584q8-7 16-20h-264v264q13-8 21-16z m-265-91h303v-589q0-23-15-38t-38-16h-750q-23 0-38 16t-16 38v892q0 23 16 38t38 16h446v-304q0-22 16-38t38-15z m89-411v36q0 8-5 13t-13 5h-393q-8 0-13-5t-5-13v-36q0-8 5-13t13-5h393q8 0 13 5t5 13z m0 143v36q0 8-5 13t-13 5h-393q-8 0-13-5t-5-13v-36q0-8 5-13t13-5h393q8 0 13 5t5 13z m0 143v36q0 7-5 12t-13 5h-393q-8 0-13-5t-5-12v-36q0-8 5-13t13-5h393q8 0 13 5t5 13z\" horiz-adv-x=\"857.1\" />\n </symbol>\n <symbol id=\"icon-keytag\" viewBox=\"0 0 1024 1024\">\n <title>key-to-tag</title>\n <path glyph-name=\"keytag\" unicode=\"&#xe803;\" d=\"M464 564q0 45-31 76t-76 31-76-31-31-76q0-23 11-46-23 11-47 11-44 0-76-32t-31-76 31-75 76-32 76 32 31 75q0 24-10 47 23-11 46-11 45 0 76 31t31 76z m475-393q0-9-27-36t-37-28q-5 0-16 9t-20 19-22 22-13 14l-54-53 123-123q15-16 15-38 0-23-21-45t-46-22q-22 0-38 16l-374 374q-98-73-204-73-91 0-148 57t-57 149q0 89 53 174t138 139 175 53q91 0 148-58t57-148q0-105-73-203l198-199 54 54q-2 2-15 14t-22 21-18 21-9 15q0 10 27 37t37 28q7 0 13-6 3-3 26-25t45-44 49-48 40-44 16-23z\" horiz-adv-x=\"1000\" />\n </symbol>\n <symbol id=\"icon-ctag\" fill=\"#3aaadf\" viewBox=\"0 0 1024 1024\">\n <title>category-tags</title>\n <path glyph-name=\"ctag\" unicode=\"&#xe807;\" d=\"M429 493q0 59-42 101t-101 42-101-42-42-101 42-101 101-42 101 42 42 101z m142 0q0-61-18-100l-203-432q-9-18-27-29t-37-11-38 11-26 29l-204 432q-18 39-18 100 0 118 84 202t202 84 202-84 83-202z\" horiz-adv-x=\"571.4\" />\n </symbol>\n <symbol id=\"icon-autotag\" fill=\"#3aaadf\" viewBox=\"0 0 1024 1024\">\n <title>automatic-key-tags</title>\n <path glyph-name=\"autotag\" unicode=\"&#xe802;\" d=\"M620 294v2l-13 179q-1 7-7 13t-12 5h-104q-7 0-13-5t-6-13l-14-179v-2q0-6 5-11t12-4h136q7 0 12 4t4 11z m424-260q0-41-26-41h-393q7 0 12 5t5 13l-11 143q-1 7-7 12t-12 5h-152q-7 0-13-5t-6-12l-11-143q-1-8 4-13t12-5h-392q-26 0-26 41 0 30 14 64l233 583q5 11 15 18t21 8h189q-7 0-13-5t-6-13l-8-107q-1-8 4-13t12-5h93q7 0 12 5t5 13l-9 107q0 8-6 13t-13 5h190q11 0 21-8t14-18l233-583q15-34 15-64z\" horiz-adv-x=\"1071.4\" />\n </symbol>\n <symbol id=\"icon-cleantag\" fill=\"#e5534b\" viewBox=\"0 0 1024 1024\">\n <title>clean-unused-tags</title>\n <path glyph-name=\"cleantag\" unicode=\"&#xe806;\" d=\"M286 439v-321q0-8-5-13t-13-5h-36q-8 0-13 5t-5 13v321q0 8 5 13t13 5h36q8 0 13-5t5-13z m143 0v-321q0-8-5-13t-13-5h-36q-8 0-13 5t-5 13v321q0 8 5 13t13 5h36q8 0 13-5t5-13z m142 0v-321q0-8-5-13t-12-5h-36q-8 0-13 5t-5 13v321q0 8 5 13t13 5h36q7 0 12-5t5-13z m72-404v529h-500v-529q0-12 4-22t8-15 6-5h464q2 0 6 5t8 15 4 22z m-375 601h250l-27 65q-4 5-9 6h-177q-6-1-10-6z m518-18v-36q0-8-5-13t-13-5h-54v-529q0-46-26-80t-63-34h-464q-37 0-63 33t-27 79v531h-53q-8 0-13 5t-5 13v36q0 8 5 13t13 5h172l39 93q9 21 31 35t44 15h178q22 0 44-15t30-35l39-93h173q8 0 13-5t5-13z\" horiz-adv-x=\"785.7\" />\n </symbol>\n </defs>\n </svg>\n <ul class=\"plainList clearfix\">\n<?php\n $taction = array('all', 'leaf', 'entryuntagged', 'entryleaf', 'keywords', 'cat2tag', 'tagupdate', 'cleanupmappings'); //re-ordered for button usage (see above)\n $tagtitle = array(PLUGIN_EVENT_FREETAG_MANAGE_ALL, PLUGIN_EVENT_FREETAG_MANAGE_LEAF, PLUGIN_EVENT_FREETAG_MANAGE_UNTAGGED, PLUGIN_EVENT_FREETAG_MANAGE_LEAFTAGGED, PLUGIN_EVENT_FREETAG_KEYWORDS, PLUGIN_EVENT_FREETAG_GLOBALLINKS, PLUGIN_EVENT_FREETAG_REBUILD, PLUGIN_EVENT_FREETAG_MANAGE_CLEANUP);\n $svgsrc = array('tags', 'tag', 'notag', 'leaftag', 'keytag', 'ctag', 'autotag', 'cleantag');\n $svgtitle = array('tags', 'tag', 'no-tags', 'leaf-tag', 'key-to-tag', 'category-tags', 'autotag', 'clean-tag');\n foreach ($taction AS $tk => $tv) {\n if ($tk > 1) {\n if ($full_permission === false) { break; }\n }\n $active = (isset($serendipity['GET']['tagview']) && $serendipity['GET']['tagview'] == $tv) ? ' tagview_active' : '';\n $confirm = ($tk == 6 && $tv == 'tagupdate') ? ' onclick=\"return confirm(\\'' . htmlspecialchars(PLUGIN_EVENT_FREETAG_REBUILD_DESC, ENT_COMPAT, LANG_CHARSET) . '\\')\"' : '';\n echo '<li><a class=\"button_link' . $active . '\" href=\"' . FREETAG_MANAGE_URL . '&amp;serendipity[tagview]=' . $tv . '\"' . $confirm . ' title=\"'. $tagtitle[$tk] .'\"><svg class=\"icon icon-' . $svgsrc[$tk] . '\" title=\"' . $svgtitle[$tk] . '\"><use xlink:href=\"#icon-' . $svgsrc[$tk] . '\"></use></svg></a></li>'.\"\\n\";\n }\n?>\n </ul>\n </div>\n <script type=\"text/javascript\">\n var deftitle = \"<?php echo (empty($freetag_section) ? PLUGIN_EVENT_FREETAG_MANAGETAGS : $freetag_section); ?>\";\n $('.freetagMenu .button_link').mouseover( function() {\n $('#freetag_adminer_title').empty().append( '<span>' + this.title + '</span>' );\n });\n $('.freetagMenu .button_link').mouseout( function() {\n $('#freetag_adminer_title').empty().append( '<span>' + deftitle + '</span>' );\n });\n </script>\n\n<?php\n if (isset($this->_eventData['GET']['tagaction']) && !empty($this->_eventData['GET']['tagaction'])) {\n $this->displayTagAction($full_permission);\n }\n\n // backend menu cases\n if (isset($this->_eventData['GET']['tagview'])) {\n\n switch ($this->_eventData['GET']['tagview']) {\n\n case 'all': // 1\n $tags = (array)$this->getAllTags();\n $this->displayEditTags($tags);\n break;\n\n case 'leaf': // 2\n $tags = (array)$this->getLeafTags();\n $this->displayEditTags($tags);\n break;\n\n case 'entryuntagged': // 3\n if ($full_permission === true) {\n $this->displayUntaggedEntries();\n }\n break;\n\n case 'entryleaf': // 4\n if ($full_permission === true) {\n $this->displayLeafTaggedEntries();\n }\n break;\n\n case 'keywords': // 5\n if ($full_permission === true) {\n $tags = (array)$this->getAllTags();\n $this->displayKeywordAssignment($tags);\n }\n break;\n\n case 'cat2tag': // 6\n if ($full_permission === true) {\n $this->displayCategoryToTags();\n }\n break;\n\n case 'tagupdate': // 7\n if ($full_permission === true) {\n break;\n }\n if (!serendipity_db_bool($this->get_config('keyword2tag', 'false'))) {\n echo '<span class=\"msg_notice\"><span class=\"icon-info-circled\" aria-hidden=\"true\"></span> The option \"' . PLUGIN_EVENT_FREETAG_KEYWORDS . '\" is not set!</span>'.\"\\n\"; // i18n?\n break;\n }\n $this->displayTagUpdate();\n break;\n\n case 'cleanupmappings': // 8\n if ($full_permission === true) {\n $this->cleanupTagAssignments();\n }\n break;\n\n default:\n if (!empty($this->_eventData['GET']['tagview'])) {\n echo '<span class=\"msg_notice\"><span class=\"icon-info-circled\" aria-hidden=\"true\"></span> ' . \"Can't execute tagview</span>\\n\";\n }\n break;\n }\n\n }\n return true;\n }", "title": "" }, { "docid": "c1568cb91908d213f06a38fd12c818ac", "score": "0.5604471", "text": "function zozo_tooltip_shortcode( $atts, $content = null ) {\n\n\t$atts = extract(shortcode_atts(\n\n\t\t\tarray(\t\t\t\t\n\n\t\t\t\t'title' \t=> '',\n\n\t\t\t\t'link_type'\t=> 'text',\n\n\t\t\t\t'position' \t=> 'top',\n\n\t\t\t\t'style' \t=> '',\n\n\t\t\t), $atts));\n\n\t\n\n\t$output = '';\n\n\t$extra_class = '';\n\n\t\n\n\tif( $link_type == \"button\" ) {\n\n\t\t$extra_class = ' btn btn-'.$style.'';\n\n\t}\n\n\t$output .= '<span class=\"zozo-tooltip'.$extra_class.'\" data-toggle=\"tooltip\" data-placement=\"'.$position.'\" title=\"'.$title.'\">';\n\n\t$output .= do_shortcode($content);\t\n\n\t$output .= '</span>';\n\n\t\n\n\treturn $output;\n\n}", "title": "" }, { "docid": "4ed19d4a97dd95eafb8653919abd606d", "score": "0.5580413", "text": "static function tip($title, $value, $show = false) {\n\t\t$tag = '<acronym style=\"border-bottom'; if($show) { $tag .= ': 1px dotted'; } else { $tag .= '-width: 0'; }\n\t\t$tag .= '\" title=\"' . $title. '\">'. $value. '</acronym>';\n\t\treturn $tag;\n\t}", "title": "" }, { "docid": "0f41c7c684f4d82cbf02804bb0c6cd54", "score": "0.55719185", "text": "function tiga_new_tag_cloud( $args ) {\n\t$args['largest'] \t= 12;\n\t$args['smallest'] \t= 12;\n\t$args['unit'] \t\t= 'px';\n\treturn $args;\n}", "title": "" }, { "docid": "eb7d50dffff23ab4d2d1d26e0ef7ce4a", "score": "0.556933", "text": "public function getTagAttribute(){\n if($this->featured_type && $this->featured_expires_at > Carbon::now()){\n\t \treturn '<div style=\"background-color:#1C7BBA; position:absolute; top:15px; left:15px;\" class=\"uk-text-contrast uk-text-center uk-h3\"><p class=\"uk-margin-small-bottom uk-margin-small-top uk-margin-left uk-margin-right\"><i class=\"uk-icon-check\" data-uk-tooltip title=\"'.trans(\"frontend.listing_featured\").'\"></i></p></div>';\n }\n return '';\n }", "title": "" }, { "docid": "fc01e28b5ddb510a1996c05aa33e0609", "score": "0.5556073", "text": "function blog_tag() {\n\n\t$labels = array(\n\t\t'name' => _x( 'Blog Tags', 'Taxonomy General Name', 'text_domain' ),\n\t\t'singular_name' => _x( 'Blog Tag', 'Taxonomy Singular Name', 'text_domain' ),\n\t\t'menu_name' => __( 'Blog Tags', 'text_domain' ),\n\t\t'all_items' => __( 'All Blog Tags', 'text_domain' ),\n\t\t'parent_item' => __( 'Parent Blog Tag', 'text_domain' ),\n\t\t'parent_item_colon' => __( 'Parent Blog Tag:', 'text_domain' ),\n\t\t'new_item_name' => __( 'New Blog Tag', 'text_domain' ),\n\t\t'add_new_item' => __( 'Add New Blog Tag', 'text_domain' ),\n\t\t'edit_item' => __( 'Edit Blog Tag', 'text_domain' ),\n\t\t'update_item' => __( 'Update Blog Tag', 'text_domain' ),\n\t\t'view_item' => __( 'View Blog Tag', 'text_domain' ),\n\t\t'separate_items_with_commas' => __( 'Separate Blog Tags with commas', 'text_domain' ),\n\t\t'add_or_remove_items' => __( 'Add or remove blog tags', 'text_domain' ),\n\t\t'choose_from_most_used' => __( 'Choose from the most used', 'text_domain' ),\n\t\t'popular_items' => __( 'Popular Blog Tags', 'text_domain' ),\n\t\t'search_items' => __( 'Search Blog Tags', 'text_domain' ),\n\t\t'not_found' => __( 'Not Found', 'text_domain' ),\n\t\t'no_terms' => __( 'No Blog Tags', 'text_domain' ),\n\t\t'items_list' => __( 'Blog Tags list', 'text_domain' ),\n\t\t'items_list_navigation' => __( 'Blog Tags list navigation', 'text_domain' ),\n\t);\n\t$args = array(\n\t\t'labels' => $labels,\n\t\t'hierarchical' => false,\n\t\t'public' => true,\n\t\t'show_ui' => true,\n\t\t'show_admin_column' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'show_tagcloud' => true,\n\t);\n\tregister_taxonomy( 'blog-tag', array( 'blog' ), $args );\n\n}", "title": "" }, { "docid": "a69e7506c4789d3f09a66c24680f4910", "score": "0.55558926", "text": "function showMusicTips() {\n\t\t\n\t\t$this->render($this->getTpl('tips'));\n\t}", "title": "" }, { "docid": "6ec94832817a3e32844ef62061d1148a", "score": "0.5547928", "text": "function generate_tooltip_description($row) {\n global $boolRating;\n global $boolComment;\n global $boolUpload;\n global $boolDefect;\n global $uploaddir;\n global $arrTopic;\n global $arrDefect;\n global $db;\n\n $description = $row['description'];\n $numUps = $row['thumb_ups'];\n $numDowns = $row['thumb_downs'];\n $id = $row['id'];\n $topic = $row['topic'];\n $numDatum= strtotime($row['created_at']);\n $datum= date(\"d.m.Y\",$numDatum);\n\n\n $strDescription = \"<strong>Anmerkung zu \".$arrTopic[$topic].\"</strong><br>\";\n if ($boolUpload && isset($row['filename'])) {\n $strDescription .= \"<a href=\\'images/\".$row['filename'].\"\\' data-lightbox=\\'radweg\".$id.\"\\'>\";\n $strDescription .= \"<img src=\\'images/\".$row['filename'].\"\\' style=\\'width:200px;\\' /></a><br>\";\n }\n $strDescription .= nl2br2($description);\n $strDescription .= \"<br> - \".$row['username'].\" (\".$datum.\")\";\n if ($boolDefect) {\n if ($row['defect']>0) {\n $strDescription .= \"<br><em>\" . $arrDefect[$row['defect']] .\"</em>\";\n }\n }\n if ($boolRating) {\n $strDescription .=\" <hr><div style=\\'text-align:center\\'>\";\n $strDescription .= \"<a href=\\'#\\' onclick=\\'thumb_up_down(\".$id.\",\".$numUps.\",up)\\'>\";\n $strDescription .= \"<i class=\\'text-muted fa fa-thumbs-up\\'></i></a> \";\n $strDescription .= \"&nbsp;<span class=\\'text-muted\\' id=\\'ups_\".$id.\"\\'>\".$numUps.\"</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\";\n $strDescription .= \"<a href=\\'#\\' onclick=\\'thumb_up_down(\".$id.\",\".$numDowns.\",down)\\'>\";\n $strDescription .= \"<i class=\\'text-muted fa fa-thumbs-down\\'></i></a>\";\n $strDescription .= \"&nbsp;<span class=\\'text-muted\\' id=\\'downs_\".$id.\"\\'>\".$numDowns.\"</span></div>\";\n }\n if ($boolComment) {\n $strDescription .= \"<hr><div style=\\'text-align:center\\'>\";\n $strDescription .= \"<a href=\\'#\\' onclick=\\'open_comment(\".$id.\")\\'>Kommentar hinzufügen</a>\";\n $strDescription .= \"</div>\";\n\n $strSQL = \"SELECT username,comment,created_at FROM comment WHERE loc_id=\".$id;\n $result = $db->query($strSQL);\n while ($comment = $result->fetchArray()) {\n $strDescription .= \"<div class=\\'comment\\'>\";\n $strDescription .= \"<em>\".$comment['username'].\" schrieb am \";\n $numDatum = strtotime($comment['created_at']);\n $strDatum = date(\"d.m.Y\",$numDatum);\n $strDescription .= $strDatum.\"</em><br>\";\n $strDescription .= nl2br2($comment['comment']);\n $strDescription .= \"</div>\";\n }\n }\n return $strDescription;\n}", "title": "" }, { "docid": "ffaf3bd7237581b510cb3c72fcbeaa12", "score": "0.5547846", "text": "public function getTooltip() { return $this->Tooltip; }", "title": "" }, { "docid": "835d9d6424e05d4127ccc469faf1aa0d", "score": "0.554168", "text": "public function renderTag();", "title": "" }, { "docid": "7f60f6ed64762ce76cb5c4b7190feba5", "score": "0.5536541", "text": "public function getTipfun(){\n\t\treturn $this->tipfun;\n\t}", "title": "" }, { "docid": "50b7ace93e4f0d09a79e53b924c8ab1d", "score": "0.55330235", "text": "static function getToolTip($a_el_id, $a_text, $a_container = \"\",\n\t\t$a_my = \"bottom center\", $a_at = \"top center\", $a_use_htmlspecialchars = true)\n\t{\n\t\t$addstr = \"\";\n\n\t\t// not needed, just make sure the position plugin is included\n//\t\t$addstr.= \", position: {viewport: $('#fixed_content')}\";\n\t\t\n\t\tif ($a_container != \"\")\n\t\t{\n\t\t\t$addstr.= \", container: '\".$a_container.\"'\";\n\t\t}\n\n\t\tif ($a_use_htmlspecialchars)\n\t\t{\n\t\t\t$a_text = htmlspecialchars(str_replace(array(\"\\n\", \"\\r\"), \"\", $a_text));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$a_text = str_replace(array(\"\\n\", \"\\r\", \"'\", '\"'), array(\"\", \"\", \"\\'\", '\\\"'), $a_text);\n\t\t}\n\t\treturn 'il.Tooltip.add(\"'.$a_el_id.'\", {'.\n\t\t\t' context:\"'.$a_el_id.'\",'.\n\t\t\t' my:\"'.$a_my.'\",'.\n\t\t\t' at:\"'.$a_at.'\",'.\n\t\t\t' text:\"'.$a_text.'\" '.$addstr.'} );';\n\t}", "title": "" }, { "docid": "df7ef23f17219153e5644820e6219bc5", "score": "0.5529474", "text": "public function getTag();", "title": "" }, { "docid": "df7ef23f17219153e5644820e6219bc5", "score": "0.5529474", "text": "public function getTag();", "title": "" }, { "docid": "df7ef23f17219153e5644820e6219bc5", "score": "0.5529474", "text": "public function getTag();", "title": "" }, { "docid": "54fa3feb90908e968bb267140876a56e", "score": "0.55257714", "text": "function mosToolTip( $tooltip, $title='', $width='', $image='tooltip.png', $text='', $href='', $link=1 )\n{\n\tglobal $mainframe;\n\n\t$lang =& JFactory::getLanguage();\n\n\t$tooltip\t= addslashes(htmlspecialchars($tooltip));\n\t$title\t\t= addslashes(htmlspecialchars($title));\n\n\t$url = $mainframe->isAdmin() ? $mainframe->getSiteURL() : JURI::base();\n\n\tif ( $width ) {\n\t\t$width = ', WIDTH, \\''.$width .'\\'';\n\t}\n\n\tif ( $title ) {\n\t\t$title = ', CAPTION, \\''. JText::_( $title ) .'\\'';\n\t}\n\n\tif ( !$text ) {\n\t\t$image \t= $url . 'includes/js/ThemeOffice/'. $image;\n\t\t$text \t= '<img src=\"'. $image .'\" border=\"0\" alt=\"'. JText::_( 'Tooltip' ) .'\"/>';\n\t} else {\n\t\t$text \t= JText::_( $text, true );\n\t}\n\n\t$style = 'style=\"text-decoration: none; color: #333;\"';\n\n\tif ( $href ) {\n\t\t$href = ampReplace( $href );\n\t\t$style = '';\n\t}\n\t$pos = $lang->isRTL() ? 'LEFT': 'RIGHT';\n\t$mousover = 'return overlib(\\''. JText::_( $tooltip, true ) .'\\''. $title .', BELOW, '.$pos. $width .');';\n\n\t$tip = '<!--'. JText::_( 'Tooltip' ) .'--> \\n';\n\tif ( $link ) {\n\t\t$tip = '<a href=\"'. $href .'\" onmouseover=\"'. $mousover .'\" onmouseout=\"return nd();\" '. $style .'>'. $text .'</a>';\n\t} else {\n\t\t$tip = '<span onmouseover=\"'. $mousover .'\" onmouseout=\"return nd();\" '. $style .'>'. $text .'</span>';\n\t}\n\n\treturn $tip;\n}", "title": "" }, { "docid": "b3444f8df39a08a79e8dd0068cff664e", "score": "0.5525255", "text": "function basepress_post_tags() {\n\n\t\t$metadata = array_flip( apply_filters('basepress_enable_post_metadata', array('tag') ) );\n\n\t\t// Get tags.\n\t\t$tag_list = get_the_tag_list( '', __(', ', 'basepress') );\n\n\t\t\t\n\t\t\t// Display tags.\n\t\t\tif ( $metadata ) :\n\n\t\t\t\tif ( isset( $metadata['tag'] ) ) :\n\n\t\t\t\t?>\n\t\t\t\t\t<?php if ( $tag_list ) : ?>\n\n\t\t\t\t\t\t\t<div class=\"entry-footer\">\n\n\t\t\t\t\t\t\t\t<div class=\"entry-tags\">\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<?php echo __('<i class=\"fa fa-tags\" aria-hidden=\"true\"></i> ', 'basepress') . wp_kses_post($tag_list); ?>\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</div><!-- .entry-tags -->\n\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t<?php endif; ?>\n\n\t\t\t\t<?php\n\t\t\tendif;\n\n\t\telse :\n\t\t?>\n\t\t\t<?php if ( $tag_list ) : ?>\n\n\t\t\t\t<div class=\"entry-footer\">\n\n\t\t\t\t\t<div class=\"entry-tags\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t<?php echo __('<i class=\"fa fa-tags\" aria-hidden=\"true\"></i>', 'basepress') . wp_kses_post($tag_list); ?>\n\t\t\t\t\t\t\n\t\t\t\t\t</div><!-- .entry-tags -->\n\n\t\t\t\t</div>\n\n\t\t\t<?php endif; ?>\n\n\t\t<?php\n\t\tendif;\n\t}", "title": "" }, { "docid": "77d7ba59801c6d990497068f31696faa", "score": "0.55220366", "text": "function getHelpTip($codigo) {\n global $help;\n if (!is_object($help) || get_class($help) != 'Helpdesk') {\n $help = new Helpdesk();\n $help->getAllObjects();\n }\n $help->getTooltip(strtolower($codigo));\n}", "title": "" }, { "docid": "48b0468d8e91bec8e1442f02bedbc8a5", "score": "0.5521822", "text": "function title_tag() {\n\n\techo get_title_tag();\n\n}", "title": "" }, { "docid": "354f43393561b06e47e86f7093e008ac", "score": "0.5507887", "text": "function pebble_custom_classifications(){\n $tags = wp_get_post_tags(get_the_id());\n if( $tags && is_array($tags) ){ ?>\n <div class=\"btn-group\">\n <?php foreach ( $tags as $tag ){ ?>\n <button type=\"button\" class=\"btn btn-default <?php echo esc_attr($tag->slug); ?>\">\n <a href=\"<?php echo get_term_link($tag); ?>\">\n <?php echo $tag->name; ?>\n </a>\n </button>\n <?php } ?>\n </div>\n <?php }\n}", "title": "" }, { "docid": "8eb3ea893f99e88f2984816541f86b26", "score": "0.5497881", "text": "function tooltip($translation, $position = 'top')\n{\n return sprintf('<div class=\"alphasss-tooltip\" data-delay-show=\"100\" data-toggle=\"tooltip\" data-placement=\"top\" title=\"%s\"></div>', $translation);\n}", "title": "" }, { "docid": "3eebdda8d984aa8319e3e06e55f07aa2", "score": "0.5496583", "text": "function braftonCustomCategories(){\n global $options;\n $tip = 'Each category seperated by a comma. I.E. (first,second,third)';\n tooltip($tip); ?>\n<input type=\"text\" name=\"braftonCustomCategories\" value=\"<?php\n\t\techo $options['braftonCustomCategories'];\n?>\"/>\n<?php \n}", "title": "" }, { "docid": "73b5195ce8ca5f19147512d814f10dfb", "score": "0.5481102", "text": "function titleToTags() {\n\t\t$this->__construct();\n\t}", "title": "" }, { "docid": "08075a6989150ca3fbf213455249af93", "score": "0.5481028", "text": "public function tagged(){\n }", "title": "" }, { "docid": "f6f5c9cc1c23cddd279f336ea32be1ce", "score": "0.54641545", "text": "function tre($label, $description = \"\", $tokens = array(), $options = array()) {\n echo tr($label, $description, $tokens, $options);\n}", "title": "" }, { "docid": "9dbd8aa4c4ca95e72ef18580f986a0dc", "score": "0.545924", "text": "public function fusion_builder_add_quicktags_button() {\n\t\t\t?>\n\t\t\t<script type=\"text/javascript\" charset=\"utf-8\">\n\t\t\t\tif ( 'function' === typeof QTags ) {\n\t\t\t\t\tQTags.addButton( 'fusion_shortcodes_text_mode', ' ','', '', 'f' );\n\t\t\t\t}\n\t\t\t</script>\n\t\t\t<?php\n\t\t}", "title": "" }, { "docid": "41fa872c6def795b906833990390e5ba", "score": "0.545789", "text": "public function createTag();", "title": "" }, { "docid": "d5b955fb51dafd884b5c735310a75b32", "score": "0.5449288", "text": "function widget_Football_Tips($args) \n\t {\n\t\t $options = get_option('widget_Football_Tips');\n\t\t $title = empty($options['title']) ? __('Football_Tips') : $options['title'];\n\t\t\t\n\t\t extract($args);\n\t\t echo $before_widget;\n\t\t echo $before_title;\n\t\t echo $title;\n\t\t echo $after_title;\n\t\t Football_Tips();\n\t\t echo $after_widget;\n\t }", "title": "" }, { "docid": "47377d6b493e7cadcf0adda4ee5f8a00", "score": "0.5445077", "text": "abstract public function\n\t\tget_tag_string();", "title": "" }, { "docid": "5b0b0a340e3d2386773887c28d2f3f22", "score": "0.54384696", "text": "public function registerMarkupTags () \n {\n \n }", "title": "" }, { "docid": "e90088e14514d0138f688d37cb8e727f", "score": "0.5436115", "text": "function no_follow_generate_tag_cloud( $tags, $args = '' ) {\n\tglobal $wp_rewrite;\n\t$defaults = array(\n\t\t'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 0,\n\t\t'format' => 'flat', 'orderby' => 'name', 'order' => 'ASC',\n\t\t'topic_count_text_callback' => 'default_topic_count_text',\n\t);\n\n\tif ( !isset( $args['topic_count_text_callback'] ) && isset( $args['single_text'] ) && isset( $args['multiple_text'] ) ) {\n\t\t$body = 'return sprintf (\n\t\t\t__ngettext('.var_export($args['single_text'], true).', '.var_export($args['multiple_text'], true).', $count),\n\t\t\tnumber_format_i18n( $count ));';\n\t\t$args['topic_count_text_callback'] = create_function('$count', $body);\n\t}\n\n\t$args = wp_parse_args( $args, $defaults );\n\n\textract( $args );\n\n\tif ( empty( $tags ) )\n\t\treturn;\n\n\t// SQL cannot save you; this is a second (potentially different) sort on a subset of data.\n\tif ( 'name' == $orderby )\n\t\tuasort( $tags, create_function('$a, $b', 'return strnatcasecmp($a->name, $b->name);') );\n\telse\n\t\tuasort( $tags, create_function('$a, $b', 'return ($a->count < $b->count);') );\n\n\tif ( 'DESC' == $order )\n\t\t$tags = array_reverse( $tags, true );\n\telseif ( 'RAND' == $order ) {\n\t\t$keys = array_rand( $tags, count( $tags ) );\n\t\tforeach ( $keys as $key )\n\t\t\t$temp[$key] = $tags[$key];\n\t\t$tags = $temp;\n\t\tunset( $temp );\n\t}\n\n\tif ( $number > 0 )\n\t\t$tags = array_slice($tags, 0, $number);\n\n\t$counts = array();\n\tforeach ( (array) $tags as $key => $tag )\n\t\t$counts[ $key ] = $tag->count;\n\n\t$min_count = min( $counts );\n\t$spread = max( $counts ) - $min_count;\n\tif ( $spread <= 0 )\n\t\t$spread = 1;\n\t$font_spread = $largest - $smallest;\n\tif ( $font_spread < 0 )\n\t\t$font_spread = 1;\n\t$font_step = $font_spread / $spread;\n\n\t$a = array();\n\n\t$rel = ( is_object( $wp_rewrite ) && $wp_rewrite->using_permalinks() ) ? ' rel=\"tag\"' : '';\n\n\tforeach ( $tags as $key => $tag ) {\n\t\t$count = $counts[ $key ];\n\t\t$tag_link = '#' != $tag->link ? clean_url( $tag->link ) : '#';\n\t\t$tag_id = isset($tags[ $key ]->id) ? $tags[ $key ]->id : $key;\n\t\t$tag_name = $tags[ $key ]->name;\n\t\t$a[] = \"<a href='$tag_link' rel='nofollow' class='tag-link-$tag_id' title='\" . attribute_escape( $topic_count_text_callback( $count ) ) . \"'$rel style='font-size: \" .\n\t\t\t( $smallest + ( ( $count - $min_count ) * $font_step ) )\n\t\t\t. \"$unit;'>$tag_name</a>\";\n\t}\n\n\tswitch ( $format ) :\n\tcase 'array' :\n\t\t$return =& $a;\n\t\tbreak;\n\tcase 'list' :\n\t\t$return = \"<ul class='wp-tag-cloud'>\\n\\t<li>\";\n\t\t$return .= join( \"</li>\\n\\t<li>\", $a );\n\t\t$return .= \"</li>\\n</ul>\\n\";\n\t\tbreak;\n\tdefault :\n\t\t$return = join( \"\\n\", $a );\n\t\tbreak;\n\tendswitch;\n\n\treturn apply_filters( 'wp_generate_tag_cloud', $return, $tags, $args );\n}", "title": "" }, { "docid": "02cf31d19a73d4f2ca70e8d14134f6a5", "score": "0.54226136", "text": "public function email_tags( $tags ) {\n\t\t$tags = array(\n\t\t\t'download' => array(\n\t\t\t\t'tag' => strtolower( edd_get_label_singular() ),\n\t\t\t\t'description' => __( 'Name of the download the review was posted on', 'edd-reviews' ),\n\t\t\t\t'function' => 'download_tag'\n\t\t\t),\n\t\t\t'author' => array(\n\t\t\t\t'tag' => 'author',\n\t\t\t\t'description' => __( 'The review author', 'edd-reviews' ),\n\t\t\t\t'function' => 'author_tag'\n\t\t\t),\n\t\t\t'email' => array(\n\t\t\t\t'tag' => 'email',\n\t\t\t\t'description' => __( \"The reviewer's email\", 'edd-reviews' ),\n\t\t\t\t'function' => 'email_tag'\n\t\t\t),\n\t\t\t'url' => array(\n\t\t\t\t'tag' => 'url',\n\t\t\t\t'description' => __( \"The reviewer's URL\", 'edd-reviews' ),\n\t\t\t\t'function' => 'url_tag'\n\t\t\t),\n\t\t\t'rating' => array(\n\t\t\t\t'tag' => 'rating',\n\t\t\t\t'description' => __( 'The rating given by the reviewer', 'edd-reviews' ),\n\t\t\t\t'function' => 'rating_tag'\n\t\t\t),\n\t\t\t'item_as_described' => array(\n\t\t\t\t'tag' => 'item_as_described',\n\t\t\t\t'description' => __( 'If the item was as described or not', 'edd-reviews' ),\n\t\t\t\t'function' => 'item_as_described_tag'\n\t\t\t),\n\t\t\t'feedback' => array(\n\t\t\t\t'tag' => 'feedback',\n\t\t\t\t'description' => __( 'The content of the feedback', 'edd-reviews' ),\n\t\t\t\t'function' => 'review_tag'\n\t\t\t)\n\t\t);\n\n\t\treturn $tags;\n\t}", "title": "" }, { "docid": "37fc21752efc88ceccddefd90ff475d2", "score": "0.5419605", "text": "function printTag($tags) {\r\n foreach($tags as $t) {\r\n echo $t['token'] . \"/\" . $t['tag'] . \" \";\r\n }\r\n echo \"\\n\";\r\n\t}", "title": "" }, { "docid": "9ea70de931fb12a116a7a982b924d1cc", "score": "0.54081994", "text": "protected function tooltip()\n {\n $tooltips = 'var tooltips=[];' . \"\\n\";\n foreach ($this->table_config->getAllHeights() as $key)\n $tooltips .= 'tooltips[' . $key['id_config'] . ']=[\"/images/heights/' . $key['height_image'] . '.jpg\"];';\n return $tooltips . \"\\n\";\n }", "title": "" }, { "docid": "79d3023528b315bb5e906c286c12809e", "score": "0.54012775", "text": "function tpl_img_getTag($tags, $alt = '', $src = null) {\n // Init Exif Reader\n global $SRC;\n\n if(is_null($src)) $src = $SRC;\n\n static $meta = null;\n if(is_null($meta)) $meta = new JpegMeta($src);\n if($meta === false) return $alt;\n $info = cleanText($meta->getField($tags));\n if($info == false) return $alt;\n return $info;\n}", "title": "" }, { "docid": "74dd8a78af8322ef6a1af17438481640", "score": "0.53995633", "text": "public function tag($tag);", "title": "" }, { "docid": "830ed01b8dda00ab89ef757f34138e71", "score": "0.5392303", "text": "public function getTag3();", "title": "" }, { "docid": "127e17fe563697ee3860b942ea225e16", "score": "0.5390301", "text": "public function esig_sanitize_tooltip($var) {\n return wp_kses(html_entity_decode($var), array(\n 'br' => array(),\n 'em' => array(),\n 'strong' => array(),\n 'span' => array(),\n 'ul' => array(),\n 'li' => array(),\n 'ol' => array(),\n 'p' => array(),\n ));\n }", "title": "" }, { "docid": "0ed5f72e22245ec690f7874bcecf323a", "score": "0.53895015", "text": "public function get_tooltip_html( $data ) {\n\t\t\t// If icon is an URL to custom image.\n\t\t\tif ( filter_var( $data['icon'], FILTER_VALIDATE_URL ) ) {\n\t\t\t\t$icon_html = '<img src=\"' . esc_url( $data['icon'] ) . '\">';\n\t\t\t} else {\n\t\t\t\t$icons = array(\n\t\t\t\t\t'info' => 'dashicons dashicons-info',\n\t\t\t\t\t'help' => 'dashicons dashicons-editor-help',\n\t\t\t\t);\n\t\t\t\t$class = isset( $icons[ $data['icon'] ] ) ? $icons[ $data['icon'] ] : 'dashicons ' . $data['icon'];\n\t\t\t\t$icon_html = '<span class=\"' . esc_attr( $class ) . '\"></span>';\n\t\t\t}\n\t\t\t$tooltip_html = sprintf(\n\t\t\t\t'<span class=\"mb-tooltip\" data-tippy-allowHTML=\"%s\" data-tippy-placement=\"%s\" data-tippy-content=\"%s\">%s</span>',\n\t\t\t\t$data['allow_html'] ? 'true' : 'false',\n\t\t\t\tesc_attr( $data['position'] ),\n\t\t\t\tesc_attr( $data['content'] ),\n\t\t\t\t$icon_html\n\t\t\t);\n\n\t\t\treturn $tooltip_html;\n\t\t}", "title": "" }, { "docid": "d5ceee5cc4ef4351d32ea1f23a2fd1c0", "score": "0.5383954", "text": "function output_tag_action($tag) {\r\n\treturn 'otf_'.$tag;\r\n}", "title": "" } ]
309947c0ac2b260f7f1ebd0a20ae6e16
Return the query string
[ { "docid": "729bedc40a4080f20948e12f03455575", "score": "0.80724984", "text": "public function queryString()\n\t\t{\n\t\t\treturn $this->server->get('QUERY_STRING');\n\t\t}", "title": "" } ]
[ { "docid": "fe84a176fb6ae4be4537129d76c6fd9f", "score": "0.85518825", "text": "public function getQueryString(): string\n {\n return http_build_query($this->query);\n }", "title": "" }, { "docid": "3c72e666b9098c6f26ceab40233aea0b", "score": "0.851429", "text": "protected function getQueryString()\n {\n $query = null;\n $params = $this->request->getParameters();\n\n if (count($params))\n {\n $query = http_build_query($params);\n }\n\n return $query;\n }", "title": "" }, { "docid": "4dbafbc0bc05afa90e7093b2fd461ef7", "score": "0.8405072", "text": "private function __getQueryString() {\n $params = $this->__validParameters;\n $requestParams = $this->_getAllParams(); \n $qs = '';\n foreach ($params as $param) {\n $value = $this->_getParam($param, null);\n if ($value) {\n $qs .= \"{$param}/{$value}/\"; \n }\n }\n return $qs;\n }", "title": "" }, { "docid": "68ef74b3fcb30e70fc1593143d5c89fe", "score": "0.83827806", "text": "public function getQuery()\n {\n if (!$this->getQueryParams()) {\n return '';\n }\n $output = '';\n foreach ($this->getQueryParams() as $key => $value) {\n $output .= rawurlencode($key) . '='. rawurlencode($value) . '&';\n }\n return substr($output, 0, -1);\n }", "title": "" }, { "docid": "c95e3b0919bac8022b719543074bb002", "score": "0.83619654", "text": "private function queryString()\n {\n $qstring = $this->app->request \n ->queryString(true);\n\n return self::removeQueryString($qstring);\n }", "title": "" }, { "docid": "2e6ab0ae40edd9adf5c294fc35f7fc3f", "score": "0.8360985", "text": "public function getQueryString();", "title": "" }, { "docid": "2e6ab0ae40edd9adf5c294fc35f7fc3f", "score": "0.8360985", "text": "public function getQueryString();", "title": "" }, { "docid": "2e6ab0ae40edd9adf5c294fc35f7fc3f", "score": "0.8360985", "text": "public function getQueryString();", "title": "" }, { "docid": "569d1a77c55735ee8bf3fca022f5921b", "score": "0.8346156", "text": "public function getQueryString()\n {\n return $this->query_string;\n }", "title": "" }, { "docid": "e96466c48be825efde8fdaa728629227", "score": "0.8308818", "text": "protected function getQueryString()\n {\n if (null !== $qs = $this->request->getQueryString()) {\n $qs = '?'.$qs;\n }\n\n return $qs;\n }", "title": "" }, { "docid": "aa1abfeae93c915821007e9ea6245335", "score": "0.8274183", "text": "public function getQuery()\n\t{\n\t\treturn QueryString::encode($this->queryString);\n\t}", "title": "" }, { "docid": "31b3acc7ecfd27c3b9c04c9267803143", "score": "0.82688373", "text": "public function getQueryString(): string;", "title": "" }, { "docid": "9d691ae1ebcf600b703934bd40f876c3", "score": "0.82669985", "text": "public static function getQueryString(){}", "title": "" }, { "docid": "9d691ae1ebcf600b703934bd40f876c3", "score": "0.82669985", "text": "public static function getQueryString(){}", "title": "" }, { "docid": "038eb106a6fdbc12c7a4482ca58447eb", "score": "0.82642144", "text": "public function getQueryString(): string\n {\n return $this->_queryString;\n }", "title": "" }, { "docid": "e87d3ffeb90175e1f51f91e0fa48e3b3", "score": "0.8236124", "text": "public function getQueryString() {\n return $this->query;\n }", "title": "" }, { "docid": "7fa8c379462a332b885d91d4022bd12b", "score": "0.822385", "text": "function getQueryString() {\n\t\t$str = '?';\n\t\tforeach( $this->data as $k => $v ) {\n\t\t\tif ( in_array( $k, array( 'column_map' ) ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$str .= sprintf( '%s=%s&', $k, urlencode( $v ) );\n\t\t}\n\t\treturn $str;\n\t}", "title": "" }, { "docid": "5299b2c0923cbfead112695fb4056048", "score": "0.82002074", "text": "public function queryString()\n {\n return (isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : \"\");\n }", "title": "" }, { "docid": "e8417107a1709636714577ac620a0599", "score": "0.8155541", "text": "public function getQueryString()\n {\n $query = $_GET;\n\n $builder = $this->getBuilder();\n $direction = $this->getDirection('asc');\n\n array_set($query, $builder->getTableOption('prefix') . 'order_by', $this->getSortColumn());\n array_set($query, $builder->getTableOption('prefix') . 'sort', $direction == 'asc' ? 'desc' : 'asc');\n\n return http_build_query($query);\n }", "title": "" }, { "docid": "71a405f9864057c92522f9ede52956e4", "score": "0.8125458", "text": "public function getQueryString()\n\t{\n\t\treturn $this->queryString;\n\t}", "title": "" }, { "docid": "8450724833b6c01cee70f20da73b2221", "score": "0.81221426", "text": "public function queryString()\n {\n if (!$this->strQueryString) {\n if (isset($_SERVER['QUERY_STRING'])) {\n $this->strQueryString = $_SERVER['QUERY_STRING'];\n }\n }\n return $this->strQueryString;\n }", "title": "" }, { "docid": "92c8c2c1d30f5cc58db71e68f589bdaf", "score": "0.8113752", "text": "public function getQueryString()\n {\n return isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '';\n }", "title": "" }, { "docid": "10aba9e7997ca10d97d103acd1362ed2", "score": "0.8097251", "text": "public function queryString(): string\n {\n return $this->queryString;\n }", "title": "" }, { "docid": "879b2322c002a02b20dae2e3361d1529", "score": "0.80624014", "text": "public function getQuery()\n {\n $query = '';\n\n if ($this->components['query'] != '') {\n $query = $this->components['query'];\n\n if (strpos($query, '%') === false) {\n $pairs = explode('&', $query);\n $parts = [];\n\n foreach ($pairs as $pair) {\n list($name, $value) = explode('=', $pair);\n $parts[] = \"$name=\" . rawurlencode($value);\n }\n\n $query = implode('&', $parts);\n }\n }\n\n return $query;\n }", "title": "" }, { "docid": "b4e1d34f955c2ab6089c883969a4d13a", "score": "0.8020054", "text": "public function getQueryString()\n {\n return $this->_queryString;\n }", "title": "" }, { "docid": "166123f4c853f79a361560ae2e8f64cb", "score": "0.8010814", "text": "public function getQueryString() {\n\t\treturn $_SERVER['QUERY_STRING'];\n\t}", "title": "" }, { "docid": "e9deceb328bab16e7e680d5097f67e84", "score": "0.79633474", "text": "public function getQueryString() {\r\n if ($this->_haveParametersChanged) {\r\n $this->_setQueryString($this->_generateQueryStringFromParameters());\r\n $this->_haveParametersChanged = false;\r\n }\r\n return $this->_queryString;\r\n }", "title": "" }, { "docid": "4cdf7c2dcba7caec0d268b1200f7fd58", "score": "0.79600775", "text": "public function toQueryString();", "title": "" }, { "docid": "2b87deaad5708427ea84d7f7b840d663", "score": "0.79501045", "text": "public function getQuery() {\n\t\t$query = explode('?', $this->server['REQUEST_URI']);\n\t\tarray_shift($query);\n\t\treturn implode('?', $query);\n\t}", "title": "" }, { "docid": "f224dab52a5df3306293fe5aa8f94772", "score": "0.7935319", "text": "protected function makeQueryString() {\n\t\tif (count($this->getVars) > 0) {\n\t\t\t$first = true;\n\t\t\t$query = '';\n\t\t\tforeach ($this->getVars as $name => $val) {\n\t\t\t\tif ($first) {\n\t\t\t\t\t$query .= '?';\n\t\t\t\t\t$first = false;\n\t\t\t\t} else {\n\t\t\t\t\t$query .= '&';\n\t\t\t\t}\n\t\t\t\t$query .= $name . '=' . $val;\n\t\t\t}\n\t\t} else {\n\t\t\t$query = '';\n\t\t}\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "fc97cb6a7be116a83a65e2fbe264cd04", "score": "0.79247105", "text": "public function getQueryString(){\n return $this->queryString;\n }", "title": "" }, { "docid": "7850cd11c82c77ac44790010fa13b7ff", "score": "0.78923756", "text": "public function getQuery()\n {\n $query = \"\";\n\n if (isset($this->query['query'])) {\n $query = $this->query['query'];\n }\n\n return $query;\n }", "title": "" }, { "docid": "e71cef5cd5d80189fe8cb508489fb2d5", "score": "0.78919524", "text": "public function getQuery(): string\n {\n return $this->query;\n }", "title": "" }, { "docid": "e71cef5cd5d80189fe8cb508489fb2d5", "score": "0.78919524", "text": "public function getQuery(): string\n {\n return $this->query;\n }", "title": "" }, { "docid": "e71cef5cd5d80189fe8cb508489fb2d5", "score": "0.78919524", "text": "public function getQuery(): string\n {\n return $this->query;\n }", "title": "" }, { "docid": "f81c34a61951cbc002c959a41e96e460", "score": "0.78901803", "text": "private function buildQueryString(){\n if( count($this->querystrings ) == 0) {\n return '';\n }\n else {\n $querystring = '?';\n\n foreach($this->querystrings as $index => $value) {\n if( $index > 0 ) {\n $querystring .= '&';\n }\n $querystring .= $value;\n }\n return $querystring;\n }\n }", "title": "" }, { "docid": "b3a648563c3686147fef08e94a68a26b", "score": "0.780664", "text": "public function getQueryString()\n {\n $query = 'SELECT ' .\n $this->getColumns() . ' ' .\n $this->getFromClause() . ' ' .\n $this->getWhere() . ' ' .\n $this->getOrdering() . ' ' .\n $this->getLimit();\n\n return $query;\n }", "title": "" }, { "docid": "683ece595748e6031325778b1ca117f2", "score": "0.7803578", "text": "public function getQueryString() {\n\t\treturn !empty($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : null;\n\t}", "title": "" }, { "docid": "def193bbfaecb7c12265ea60544489f3", "score": "0.77980644", "text": "function getSearchQueryAsString() {\n\t\treturn http_build_query($this->getSearchQuery());\n\t}", "title": "" }, { "docid": "2f58d3ca2b5b57a40a68527600c7e3f8", "score": "0.7775069", "text": "public function getQueryString()\n {\n return (isset($this->data['queryString'])) ? $this->data['queryString'] : null;\n }", "title": "" }, { "docid": "a1fa60e770ada4823b0fcee5b652ff4b", "score": "0.7762837", "text": "function getFullQueryForURL ()\n\t\t{\n\t\t\treturn urlencode($this->getFullQuery());\n\t\t}", "title": "" }, { "docid": "237176d8cc1f55d0fa859033e585048b", "score": "0.77189416", "text": "function getQuery() {\r\n\t\t$q = $this->query;\r\n\r\n\t\t$sort = $_GET['sort'] ? $_GET['sort'] :\r\n\t\t\t$this->defaultSort ? $this->defaultSort : '';\r\n\t\tif($sort) {\r\n\t\t\t$q .= ' order by '.$sort;\r\n\t\t}\r\n\r\n\t\tif($this->isPaging()) {\r\n\t\t\tlist($page, $show) = $this->getPageShow();\r\n\t\t\t$q .= ' limit '.($page*$show).','.$show;\r\n\t\t}\r\n\t\telse if($this->defaultShow) {\r\n\t\t\t$q .= ' limit '.$this->defaultShow;\r\n\t\t}\r\n\r\n\t\treturn($q);\r\n\t}", "title": "" }, { "docid": "24b8550e7baa29314851fe5292a2e3e0", "score": "0.77081543", "text": "public static function urlQueryString()\n {\n return (isset($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : '';\n }", "title": "" }, { "docid": "5421a6f1b16103b316e736ca03e8dbeb", "score": "0.7707025", "text": "public function query(){\n return $this->url['query'];\n }", "title": "" }, { "docid": "12a62ad69b6ed7ede92f704d5110193d", "score": "0.77057946", "text": "protected static function getRequestQueryString()\n {\n return $_SERVER['QUERY_STRING'] ?? '';\n }", "title": "" }, { "docid": "6232dcb46c5bdb6b885b851c1e72f191", "score": "0.7682134", "text": "function queryString()\n{\n\t$qString = array();\n\t\n\tforeach($_GET as $key => $value) {\n\t\tif (trim($value) != '') {\n\t\t\t$qString[] = $key. '=' . trim($value);\n\t\t} else {\n\t\t\t$qString[] = $key;\n\t\t}\n\t}\n\t\n\t$qString = implode('&', $qString);\n\t\n\treturn $qString;\n}", "title": "" }, { "docid": "6e8153555cb5076df72cd3710029eb75", "score": "0.7668765", "text": "function getRupaQueryString ()\n\t\t{\n\t\t\t$query =\t'q='.$this->getFullQuery().\n\t\t\t\t\t\t$this->getCategoryIDsAsString().\n\t\t\t\t\t\t$this->getSitesAsString('&sites[]=', true).\n\t\t\t\t\t\t$this->getPartialFieldsNamesAsString('&partialFieldsNames[]=').\n\t\t\t\t\t\t$this->getPartialFieldsValuesAsString('&partialFieldsValues[]=');\n\t\t\t\n\t\t\tif ($this->startNum != $this->defaultStartNum) {\n\t\t\t\t$query .= '&startNum='.$this->startNum;\n\t\t\t}\n\t\t\t\n\t\t\tif ($this->numToShow != $this->defaultNumToShow) {\n\t\t\t\t$query .= '&numToShow='.$this->numToShow;\n\t\t\t}\n\t\t\t\n\t\t\tif ($this->sortBy != $this->defaultSortBy) {\n\t\t\t\t$query .= '&sortBy='.$this->sortBy;\n\t\t\t}\n\t\t\t\n\t\t\tif ($this->filterResults != $this->defaultFilter) {\n\t\t\t\t$query .= '&filter=' . $this->filterResults;\n\t\t\t}\n\t\t\n\t\t\treturn $query;\n\t\t}", "title": "" }, { "docid": "7ffb57befac6ac025afe51ad00978945", "score": "0.7631124", "text": "public function getQueryString(): ?string\n {\n $keyValuePairs = [];\n foreach ($this->getQueryStringParameters() as $key => $value) {\n $keyValuePairs[] = $key . '=' . $value;\n }\n return !empty($keyValuePairs) ? implode('&', $keyValuePairs) : null;\n }", "title": "" }, { "docid": "f200e9e3b6d0b3d4ae4b1c8e76a7e9b2", "score": "0.7613212", "text": "function getQuery()\n {\n $result = $this->_area . '/' . $this->_action . '/' . $this->_identifier\n . implode('/', $this->_arguments);\n return $result;\n }", "title": "" }, { "docid": "3a6b2f20ad5e2798a40c793eb1118ce1", "score": "0.75307053", "text": "public function getQuery()\n {\n return $this->_url->getQuery();\n }", "title": "" }, { "docid": "b592d843b7dab4d10805ddcef079bb8c", "score": "0.75209635", "text": "public function getArgsAsQueryString()\n {\n foreach ($this as $key => $value) {\n if (is_array($key)) {\n $ret.= $this->getNumeredFilters().'&';\n } else {\n if ($value) {\n $ret.= $key.'='.$value.'&';\n }\n }\n }\n\n return rtrim($ret, '&');\n }", "title": "" }, { "docid": "36fc3c82b927cd82f1d433822fa9cecd", "score": "0.75085586", "text": "public static function query()\n {\n return $_GET;\n }", "title": "" }, { "docid": "98b476f8e78bf0b11309bad6ee01165c", "score": "0.7504009", "text": "function getRupaQueryStringForURL ()\n\t\t{\n\t\t\t$query =\t'q='.$this->getFullQueryForURL().\n\t\t\t\t\t\t$this->getCategoryIDsAsStringForURL().\n\t\t\t\t\t\t$this->getSitesAsStringForURL('&sites[]=').\n\t\t\t\t\t\t$this->getPartialFieldsNamesAsStringForURL('&partialFieldsNames[]=').\n\t\t\t\t\t\t$this->getPartialFieldsValuesAsStringForURL('&partialFieldsValues[]=');\n\t\t\t\n\t\t\tif ($this->startNum != $this->defaultStartNum) {\n\t\t\t\t$query .= '&startNum='.$this->startNum;\n\t\t\t}\n\t\t\t\n\t\t\tif ($this->numToShow != $this->defaultNumToShow) {\n\t\t\t\t$query .= '&numToShow='.$this->numToShow;\n\t\t\t}\n\t\t\t\n\t\t\tif ($this->sortBy != $this->defaultSortBy) {\n\t\t\t\t$query .= '&sortBy='.$this->sortBy;\n\t\t\t}\n\t\t\t\n\t\t\tif ($this->filterResults != $this->defaultFilter) {\n\t\t\t\t$query .= '&filter=' . $this->filterResults;\n\t\t\t}\n\t\t\n\t\t\treturn $query;\n\t\t}", "title": "" }, { "docid": "0c2d66aabc6aabc1fd2beb7d3bba2100", "score": "0.74842405", "text": "private function queryString() {\n\t\tif (isset($_SERVER['QUERY_STRING'])) {\n\t\t\t$this->query_string = $_SERVER['QUERY_STRING'];\n\t\t}\n\t}", "title": "" }, { "docid": "ed77b71c08f8e1cd47a33e58d8037490", "score": "0.74772", "text": "public function getQuery();", "title": "" }, { "docid": "ed77b71c08f8e1cd47a33e58d8037490", "score": "0.74772", "text": "public function getQuery();", "title": "" }, { "docid": "ed77b71c08f8e1cd47a33e58d8037490", "score": "0.74772", "text": "public function getQuery();", "title": "" }, { "docid": "ed77b71c08f8e1cd47a33e58d8037490", "score": "0.74772", "text": "public function getQuery();", "title": "" }, { "docid": "ed77b71c08f8e1cd47a33e58d8037490", "score": "0.74772", "text": "public function getQuery();", "title": "" }, { "docid": "ed77b71c08f8e1cd47a33e58d8037490", "score": "0.74772", "text": "public function getQuery();", "title": "" }, { "docid": "ed77b71c08f8e1cd47a33e58d8037490", "score": "0.74772", "text": "public function getQuery();", "title": "" }, { "docid": "ed77b71c08f8e1cd47a33e58d8037490", "score": "0.74772", "text": "public function getQuery();", "title": "" }, { "docid": "ed77b71c08f8e1cd47a33e58d8037490", "score": "0.74772", "text": "public function getQuery();", "title": "" }, { "docid": "ed77b71c08f8e1cd47a33e58d8037490", "score": "0.74772", "text": "public function getQuery();", "title": "" }, { "docid": "fe478ae3221ce9aad2b498a8a280a1b7", "score": "0.74726695", "text": "public function getQuery()\n {\n return isset($this->config['query']) ? $this->config['query'] : '';\n }", "title": "" }, { "docid": "8a6ef53919d13c1e7be92011e39f3c85", "score": "0.7441809", "text": "public function toQueryString(): string\n {\n return http_build_query($this->toArray(), '', '&');\n }", "title": "" }, { "docid": "a5726f73862d7e3031e7438b37a56e9e", "score": "0.74362725", "text": "protected function getRequestQuery()\n {\n return $this->getConfigValue('request_query');\n }", "title": "" }, { "docid": "b00da01c679d17667669477ee061f449", "score": "0.74252415", "text": "public function getQueryString() {\n\t\treturn \"SELECT \" . implode(\", \", $this->columnNames) .\n\t\t \" FROM \" . $this->tableName .\n\t\t \" \" . $this->getFilter() . // Where\n\t\t \" \" . $this->getOrder() . // Order by \n\t\t \" \" . $this->getLimit(); // Limit query \n\t}", "title": "" }, { "docid": "4e6d06c1fcc83bb29c20b8b4aed1894f", "score": "0.74213094", "text": "public function getQuery() \n {\n //Grab the query string from the everyman query.\n return $this->query->getQuery();\n }", "title": "" }, { "docid": "2086567b7230ae69dba09b097a0c9b77", "score": "0.74212044", "text": "public function get_query(){\n //return htmlentities ( $this->query );\n return $this->query;\n }", "title": "" }, { "docid": "a62174b31ba252107d23cd1b8fb16ab0", "score": "0.7392182", "text": "public function buildQuery(): string {\n return http_build_query($this->getQuery()->toArray());\n }", "title": "" }, { "docid": "04bfcf1775cc2b7fc0b729895380fbbd", "score": "0.7345723", "text": "public function query_string() {\n\t\t\t$args = func_get_args();\n\t\t\t$args[] = 'msg';\n\t\t\t$args[] = 'err';\n\t\t\t$get = array();\n\t\t\tparse_str($_SERVER['QUERY_STRING'], $querystring);\n\t\t\tforeach ((array) $querystring AS $key => $value)\n\t\t\t\t$get[$key] = \"{$key}={$value}\";\n\t\t\tforeach ((array) array_keys((array) $get) AS $key) {\n\t\t\t\tif (in_array($key, $args))\n\t\t\t\t\tunset($get[$key]);\n\t\t\t}\n\t\t\treturn implode('&', $get);\n\t\t}", "title": "" }, { "docid": "aff7d61523878674e5e54fc8efd35c58", "score": "0.7334162", "text": "public function getQuery()\n {\n return $this->uriQuery;\n }", "title": "" }, { "docid": "5c85ba1aff0ff9a10bbafc85f9372fc2", "score": "0.73022074", "text": "function getQuery();", "title": "" }, { "docid": "2a7809b96307aabc208b530c21c442b2", "score": "0.7292819", "text": "public final function queryString(): QueryString\n\t{\n\t\treturn $this->queryString;\n\t}", "title": "" }, { "docid": "0e7eafd2fe397aa96bf809526140866a", "score": "0.7285207", "text": "public function query(): string;", "title": "" }, { "docid": "46546b34303cd7b3e00c84d90e32ec29", "score": "0.7225859", "text": "private function queryString($query) {\n return (is_array($query) && !empty($query))\n ? '?' . http_build_query($query, '', '&')\n : '';\n }", "title": "" }, { "docid": "52a0ca52d530ce5476a2b87c273c63be", "score": "0.721172", "text": "public function get_query_string()\n \t{\n \t\t$queryStr = array();\n \t\t$queryStr[\"task\"] = $this->task_name;\n \t\t\n \t\tif($this->id != null)\n \t\t{\n \t\t\t$queryStr[\"by\"] = \"catid\";\n\t\t\t$queryStr[\"id\"] = $this->id;\n \t\t}\n\t\t\n\t\treturn $queryStr;\n \t\t\n \t}", "title": "" }, { "docid": "7da070a031a206ed6dd3aa9c88111eea", "score": "0.7184845", "text": "public function getQueryString()\n {\n $dialect = Dialect::create($this->_adapter->getDialect(), $this);\n return $dialect->getSqlStatement();\n }", "title": "" }, { "docid": "f824aa9927d0c69a6437cddeb8b6d747", "score": "0.7162627", "text": "public function getQueryData()\n\t{\n\t\treturn $this->queryString;\n\t}", "title": "" }, { "docid": "839b7e1356a125e1dc2f5a1684af810e", "score": "0.7139149", "text": "function getQuery ()\n\t\t{\n\t\t\treturn $this->query;\n\t\t}", "title": "" }, { "docid": "81ca294439d79fdbf29e98ed4573a2b7", "score": "0.71120316", "text": "public function getQuery()\n {\n return $this->getValue(self::QUERY);\n }", "title": "" }, { "docid": "fa6173773844e661e6e6fc4a0faf7137", "score": "0.7111063", "text": "public function getQuery() {\n\t\treturn $this->query; \n\t}", "title": "" }, { "docid": "07a52ed2a392139923a8d0cebfb13929", "score": "0.7105084", "text": "public function getQuery()\n\t{\n\t\treturn $this->query;\n\t}", "title": "" }, { "docid": "07a52ed2a392139923a8d0cebfb13929", "score": "0.7105084", "text": "public function getQuery()\n\t{\n\t\treturn $this->query;\n\t}", "title": "" }, { "docid": "0dfc95d872b0f98b63f3aba84b251e9f", "score": "0.7103535", "text": "public function getQuery() {\n\t\treturn $this->query;\n\t}", "title": "" }, { "docid": "0dfc95d872b0f98b63f3aba84b251e9f", "score": "0.7103535", "text": "public function getQuery() {\n\t\treturn $this->query;\n\t}", "title": "" }, { "docid": "0dfc95d872b0f98b63f3aba84b251e9f", "score": "0.7103535", "text": "public function getQuery() {\n\t\treturn $this->query;\n\t}", "title": "" }, { "docid": "ab0341b83178f69cc11c7eb026092927", "score": "0.70819104", "text": "public function getQuery()\n {\n $this->initialize();\n return $this->data['query'];\n }", "title": "" }, { "docid": "85a352b50a37c71dae8fd0c4fcbf7215", "score": "0.70443994", "text": "protected function canonical_querystring()\n\t{\n\t\tif (!isset($this->canonical_querystring))\n\t\t{\n\t\t\t$this->canonical_querystring = $this->util->to_signable_string($this->query['body']);\n\t\t}\n\n\t\treturn $this->canonical_querystring;\n\t}", "title": "" }, { "docid": "5b826539ccbf886b0569b9a928b44aeb", "score": "0.7033802", "text": "public function getQueryString($split = true) {\n $query = $this->components['query'];\n if ($split) return $query;\n return $this->combineQueryString();\n }", "title": "" }, { "docid": "e70d774daaacb2c2cbf26eeba61bbd1e", "score": "0.70330626", "text": "public function get_query()\n {\n return $this->getQuery();\n }", "title": "" }, { "docid": "24a6ef2dd0764c9e4e373f1325bff396", "score": "0.7022721", "text": "public function __toString()\n\t{\n\t\t$query = http_build_query($this->params);\n\t\tif ($frag = $this->table->getFragment())\n\t\t{\n\t\t\t$query .= '#'. $frag;\n\t\t}\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "dcff50aedb23f2e5bb3ed8f7ec0f1e9a", "score": "0.7022509", "text": "public function getQuery(): ?string\r\n {\r\n return $this->query;\r\n }", "title": "" }, { "docid": "02ec38532b323e63fbd74602338fdf16", "score": "0.70188993", "text": "abstract public function getQuery();", "title": "" }, { "docid": "02ec38532b323e63fbd74602338fdf16", "score": "0.70188993", "text": "abstract public function getQuery();", "title": "" }, { "docid": "29a0a336233f5885110fbe87a6a27234", "score": "0.70182085", "text": "public function getQuery()\r\r\n {\r\r\n return $this->query;\r\r\n }", "title": "" }, { "docid": "ef97206fe7e6e2d7500741743618eeb4", "score": "0.6994304", "text": "public function getQuery(): string\n {\n return $this->sql;\n }", "title": "" }, { "docid": "71c5839261d2bfd6c2c52e38dd9133c4", "score": "0.698973", "text": "private function set_querystring(){\r\n $this->querystring = '';\r\n\r\n $exclude = array('pg','page','i','ipp');\r\n\r\n if (isset($_GET)) {\r\n $this->querystring .= FaqFuncs::get_all_get_params($exclude);\r\n }\r\n\r\n if (isset($_POST)) {\r\n $pparams = FaqFuncs::get_all_post_params($exclude, true);\r\n\r\n if(FaqFuncs::not_null($pparams)){\r\n $this->querystring .= (FaqFuncs::not_null($this->querystring) ? '&':'') . $pparams;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "6e15c9133974aca38d9d6fb2c5d2ce2c", "score": "0.6972418", "text": "public function getQuery(): ?string {\n\t\treturn $this->query;\n\t}", "title": "" } ]
fbf1a720aeb9393bb554feef2e832075
Handle the incoming request.
[ { "docid": "8780832665b6efdb81481495331d9ad1", "score": "0.0", "text": "public function __invoke(Post $post)\n {\n auth()->user()->like($post);\n\n return response()->json(['message' => 'Liked post.']);\n }", "title": "" } ]
[ { "docid": "a0583c2455a7c431c0ab0c2f58a33f8f", "score": "0.8054052", "text": "public function handleRequest();", "title": "" }, { "docid": "e999a8977676b42fb4dcf9f93d8e3d7b", "score": "0.80058074", "text": "abstract public function handleRequest();", "title": "" }, { "docid": "3335c61a6bd88b7f1f94b2a0b29d40e3", "score": "0.79485923", "text": "public function handle()\n {\n self::request();\n }", "title": "" }, { "docid": "1eb6c45e2336f14585af5cfcbc2e9e93", "score": "0.79178697", "text": "abstract protected function handleRequest();", "title": "" }, { "docid": "d2e8a8613371f0697f669dd8d483a7f1", "score": "0.7737116", "text": "public function handleRequest()\n {\n if (!$this->checkLicense()) {\n $this->markAsLicenseRestriction();\n\n } elseif (!$this->checkAccess()) {\n $this->markAsAccessDenied();\n\n } elseif (!$this->isVisible()) {\n $this->display404();\n\n } elseif ($this->needSecure()) {\n $this->redirectToSecure();\n\n } else {\n $this->run();\n }\n\n if ($this->isRedirectNeeded()) {\n $this->doRedirect();\n\n } elseif ($this->isAJAX()) {\n \\XLite\\Core\\Event::getInstance()->display();\n \\XLite\\Core\\Event::getInstance()->clear();\n }\n }", "title": "" }, { "docid": "929298d5468b8dbd64c491612a9019b4", "score": "0.7526348", "text": "public function handleRequest()\n {\n $router = $this->serviceContainer->get('router');\n\n $router->handleRequest(Router::getUriFromGlobals());\n }", "title": "" }, { "docid": "86c7e80bf1cfa54a7ccde840bf65613d", "score": "0.7516908", "text": "public function handleRequest()\n {\n if ($this->config->isSetupRequired()) {\n return $this->doAppSetup();\n }\n\n return $this->request_handler->handleRequest();\n }", "title": "" }, { "docid": "ac39f852cae78deac9d50b5773666405", "score": "0.7390381", "text": "public function handleRequest() {\n $this->loadDictionary();\n $actionKey = $this->getProperty('actionKey','service');\n \n if (!empty($_POST) && isset($_POST[$actionKey]) && !$this->isAuthenticated) {\n if ($_POST[$actionKey] == $this->getProperty('loginKey','login')) {\n $this->login();\n } else {\n $this->modx->log(modX::LOG_LEVEL_ERROR,$this->modx->lexicon('login.invalid_post',array(\n 'action' => $_POST[$actionKey],\n )));\n }\n } elseif ($_REQUEST[$actionKey] == $this->getProperty('logoutKey','logout') && $this->isAuthenticated) {\n $this->logout();\n }\n }", "title": "" }, { "docid": "90f0274440d48e01e07b68cccda827d4", "score": "0.7384267", "text": "public function handle() {\n $this->request = new Request($_SERVER['REQUEST_METHOD'], $_SERVER['REQUEST_URI']);\n $this->request->parse_payload();\n //short-circuits so method_exists won't be called if the controller isn't loaded,\n if ($this->load_controller() && method_exists($this->controller, $this->request->get_verb())) {\n $this->controller->{$this->request->get_verb()}($this->request->get_payload());\n $data = $this->controller->get_result_array();\n $this->response = new Response(200, $data);\n } else {\n //If the Controller couldn't be loaded, a 404 response is created.\n $message = sprintf('Page %s not found!', $this->request->get_endpoint());\n $this->response = new Response(404, $message);\n }\n $this->response->send();\n }", "title": "" }, { "docid": "dc762604f096667d920215a13afe47ef", "score": "0.7384", "text": "function handleRequest()\n {\n $actionParameter = $this->getConfigValue('url.action_parameter');\n if (strlen($actionParameter) == 0) {\n $path = isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : '';\n $params = array_filter(explode('/', $path));\n\n $action = count($params) > 0 ? array_shift($params) : '';\n }\n else {\n $action = isset($_GET[$actionParameter]) ? $_GET[$actionParameter] : '';\n $params = array();\n }\n\n $this->handleAction($action, $params, $_GET);\n }", "title": "" }, { "docid": "2023a8696eba4f8d7acf94fff7c29f7d", "score": "0.7379447", "text": "public function handleRequest() {\n\t\t$response = new Response();\n\n\t\tswitch ($this->request->getFormat()) {\n\t\t\tcase 'rss.xml' :\n\t\t\tcase 'rss' :\n\t\t\t\t$response->setHeader('Content-Type', 'application/rss+xml');\n\t\t\t\tbreak;\n\t\t\tcase 'atom.xml' :\n\t\t\tcase 'atom' :\n\t\t\t\t$response->setHeader('Content-Type', 'application/atom+xml');\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$this->dispatcher->dispatch($this->request, $response);\n\t\t$response->send();\n\t}", "title": "" }, { "docid": "8c9a4b5ca0f4e6a6067cd7acbdb92e9e", "score": "0.73530465", "text": "public function handleRequest(FW_Request $request, FW_Response $response);", "title": "" }, { "docid": "fa006fff43590c1034397acc6103104c", "score": "0.72890705", "text": "public function handle($request)\r\n {\r\n }", "title": "" }, { "docid": "097c1c2a678f1b4083b7b436f9e65d0c", "score": "0.7283201", "text": "public function process_request()\n {\n $response = null;\n $sender = $this->get_request_data()['sender'];\n $message = $this->get_request_data()['message'];\n\n try {\n $handler = new Handler($message);\n $response = $handler->handle_request();\n } catch (\\Exception $e) {\n $this->send_response($e->getMessage());\n }\n\n if ($response) {\n /* TODO: Globalize responses as arrays */\n if (is_array($response)) {\n foreach ($response as $resp)\n $this->send_response($resp);\n } else {\n $this->send_response($response);\n }\n }\n }", "title": "" }, { "docid": "a8514c69e9091c8d56c305084bc962f6", "score": "0.7270331", "text": "public function process() {\n $request = new Request();\n $response = new Response();\n\n if (false === ($handler = $this->match($request->method, $request->uri, $params))) {\n // Error case\n $this->default_handlers[$request->method]($request, $response);\n }\n\n // route params applied to the request object\n if (null !== $params) {\n foreach ($params as $k => $v) {\n $request->$k = $v;\n }\n }\n\n $handler($request, $response);\n }", "title": "" }, { "docid": "f527ce9ff6e25a6f69c02dd54e36d00d", "score": "0.7258031", "text": "public function handle_request() {\r\n\t\t// If it exists, and its set to something other than \"\" we can do\r\n\t\t// something with this request\r\n\t\t//\r\n if (isset($_POST[\"action\"]) && !empty($_POST[\"action\"])) {\r\n\r\n \t// Get the action requested, save it in an easy to access variable\r\n \t// Your API is defined here, the 'actions' this server responds to and\r\n \t// the parameters each action expects. do some error checking.\r\n \t//\r\n $action = $_POST[\"action\"];\r\n switch( $action ) {\r\n\r\n case \"test\":\r\n $this->do_test();\r\n break;\r\n\r\n default:\r\n $this->is_error( \"Error 101: Invalid Command.\");\r\n break;\r\n }\r\n }\r\n\r\n\t}", "title": "" }, { "docid": "239e238df3d9b4655b26d5cf28ae3433", "score": "0.7252322", "text": "public function handle(Request $request)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b2ea4a8e9412fe1af222e4e141c8ccf9", "score": "0.72207993", "text": "public function processRequest();", "title": "" }, { "docid": "9df81b57eccc67c3183ccef320967934", "score": "0.72125345", "text": "public function handle_request()\n {\n if (! $this->user->is_connected())\n {\n if ($this->signed_in() && $this->signin->is_valid())\n {\n if ($this->valid_login_credentials())\n {\n $this->user->login();\n }\n }\n else if ($this->signed_up() && $this->signup->is_valid())\n {\n if ($this->valid_signup_credentials())\n {\n $this->user->register();\n $this->user->login();\n }\n }\n }\n else\n {\n if ($this->tweet_liked())\n {\n $this->like_tweet();\n }\n else if ($this->tweet_reposted())\n {\n $this->repost_tweet();\n }\n else if ($this->tweet_submited() && $this->tweetForm->is_valid())\n {\n if ($this->tweet_is_reply())\n {\n if ($this->tweetForm->contains_upload())\n {\n $this->upload_image();\n }\n $this->create_new_reply(); \n }\n else\n {\n if ($this->tweetForm->contains_upload())\n {\n $this->upload_image();\n }\n $this->create_new_tweet(); \n }\n }\n }\n }", "title": "" }, { "docid": "61ef9e7ed6f3c8e607cf71da8414b9c4", "score": "0.7194993", "text": "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 'addSale':\n $this->handleAddSale();\n\t\t\t\tbreak;\n\n case 'deleteSale':\n $this->handleDeleteSale();\n break;\n\n case 'billAllInternalSales':\n $this->handleInternalSalesBillAll();\n break;\n\n default:\n $this->respond(new Response(Response::BAD_REQUEST, 'Invalid action on Sale'));\n }\n }", "title": "" }, { "docid": "33ceb0ab85cb144e59035c2f653782a6", "score": "0.71865135", "text": "public function handle(Request $request);", "title": "" }, { "docid": "33ceb0ab85cb144e59035c2f653782a6", "score": "0.71865135", "text": "public function handle(Request $request);", "title": "" }, { "docid": "20a3d5885779225aea3ad328148e7dce", "score": "0.71563184", "text": "public function handle(En_HttpRequest $request, En_HttpResponse $response);", "title": "" }, { "docid": "50a56ba5221ac2fd001718ab23d8800d", "score": "0.7137177", "text": "public function process()\n {\n log::debug(\"handling request...\");\n\n // 1.\n if (true != $this->initialize())\n {\n log::crit(\"unable to initialize handler\");\n return $this->reply(false);\n }\n\n // 2\n if (false === ($l_action = $this->getParam(\"action\")))\n $l_action = \"default\";\n $l_reflex = new ReflectionClass($this);\n try {\n $l_method = $l_reflex->getMethod(sprintf(\"h_%s\", $l_action));\n }\n catch (ReflectionException $l_error) {\n log::info(\"unknown action '%s'\", $l_action);\n return $this->reply(false);\n }\n\n // 3\n $l_params = $l_method->getParameters();\n $l_callArgs = Array();\n foreach ($l_params as $c_param)\n {\n list($l_paramAttr, $l_paramName) = explode(\"_\", $c_param->getName(), 2);\n\n if (false === ($l_paramValue = $this->getParam($l_paramName)))\n {\n if (false == $c_param->isDefaultValueAvailable())\n {\n log::error(\"requested param '%s' not available\", $l_paramName);\n return $this->reply(false);\n }\n $l_paramValue = $c_param->getDefaultValue();\n }\n else\n {\n if (false == $this->validateParam($l_paramName, $l_paramAttr, $l_paramValue))\n return $this->reply(false);\n }\n\n array_push($l_callArgs, $l_paramValue);\n }\n\n // 4.\n if (false === $l_method->invokeArgs($this, $l_callArgs))\n return $this->reply(false);\n\n // 5.\n if (true != $this->finalize())\n {\n log::crit(\"unable to finalize handler\");\n return $this->reply(false);\n }\n\n // 6.\n return $this->reply(true);\n }", "title": "" }, { "docid": "b47f75375a6eba3836cdc2559b5e33ce", "score": "0.7055795", "text": "public function processRequest() {\n\n\t\t$this -> _request_method = strtolower($_SERVER[$this -> _request_method]);\n\t\t\n\t\tswitch ($this -> _request_method) {\n\n\t\t\tcase 'get' :\n\t\t\t\t$this -> _request_data = $_GET;\n\t\t\t\tbreak;\n\t\t\tcase 'post' :\n\t\t\t\t$this -> _request_data = $_POST;\n\t\t\t\tbreak;\n\t\t\tcase 'put' :\n\t\t\t\tparse_str(file_get_contents('php://input'), $vars);\n\t\t\t\t$this -> _request_data = $vars;\n\t\t\t\tbreak;\n\t\t\tcase 'delete' :\n\t\t\t\tparse_str(file_get_contents('php://input'), $vars);\n\t\t\t\t$this -> _request_data = $vars;\n\t\t\t\tbreak;\n\t\t\tcase 'head' :\n\t\t\t\techo 'Run around like a chicken with it\\'s head cut off';\n\t\t\t\tbreak;\n\t\t\tcase 'continue' :\n\t\t\t\techo 'Run around like a chicken with it\\'s head cut off';\n\t\t\t\tbreak;\n\t\t}\n\n\t}", "title": "" }, { "docid": "2e988e1e19540e87f20acb5abdf86b2d", "score": "0.7045881", "text": "abstract public function processRequest();", "title": "" }, { "docid": "e45aa62c24c58530e828e395f255944e", "score": "0.7045278", "text": "public abstract function processRequest();", "title": "" }, { "docid": "19486080e5b6c1479a2d42abc4266ccf", "score": "0.7031315", "text": "public function handle(){\n\n $requestMethod = 'do'.ucfirst(strtolower($_SERVER['REQUEST_METHOD']));\n\n $this->$requestMethod();\n\n }", "title": "" }, { "docid": "befe3acadf50879dd1e833431e570f98", "score": "0.70142365", "text": "public function processRequest()\n {\n switch ($this->requestMethod) {\n case 'GET':\n $response = $this->getStatistics();\n break;\n case 'POST':\n $response = $this->createStatisticsFromRequest();\n break;\n case 'DELETE':\n $response = $this->deleteStatistics();\n break;\n default:\n $response = $this->notFoundResponse();\n break;\n }\n header($response['status_code_header']);\n if ($response['body']) {\n echo $response['body'];\n }\n }", "title": "" }, { "docid": "76de7dbc77c1e2ebcb50a270ef08d15d", "score": "0.6932031", "text": "public function handleRequest(HttpRequest $request);", "title": "" }, { "docid": "cbee332186c9f44c16da2c5881b4a31a", "score": "0.6913106", "text": "function handleRequest(){\n\t\t\t$frontModel = new frontendModel();\n\t\t\t// khoi tao Lib dung chung\n\t\t\t$libs = new LibCommon();\n\n\t\t\t$controller = isset($_GET['controller'])?$_GET['controller']:'front';\n\t\t\t$action = isset($_GET['action'])?$_GET['action']:'home';\n\n\t\t\tswitch ($controller) {\n\t\t\t\tcase 'front':\n\t\t\t\t\t$this->handleFront($action, $frontModel, $libs);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'products':\n\t\t\t\t\t$this->handleProduct($action, $frontModel, $libs);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'users':\n\t\t\t\t\t$this->handleUsers($action, $frontModel, $libs);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'comment':\n\t\t\t\t\t$this->handleComment($action, $frontModel, $libs);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'rate':\n\t\t\t\t\t$this->handleRate($action, $frontModel, $libs);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t# code...\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "176c8ab27ff8b5b66f4851ff4d814405", "score": "0.690366", "text": "function handle_request() {\n $this->controller = $this->uri->url[\"controller\"];\n $this->method = restful($this->uri->url[\"method\"]);\n $this->params = $this->uri->url[\"params\"];\n\n if($this->debug) {\n dbug(\"The controller \",$this->controller);\n dbug(\"The method \",$this->method);\n dbug(\"The params \",$this->params);\n }\n\n // set file location\n $file = CONTROLLER_FOLDER.'/'.$this->controller.'.php';\n\n // check if the class file (controller) exist , else throw error\n if(!file_exists($file))\n {\n header(\"Content-Type: application/json\");\n echo json_encode([\"status\" => \"fail\", \"response\" => \"The requested API does not exist.\"]);\n die( header(\"HTTP/1.0 404 Oops requested url does not exist or has moved \") );\n }\n\n // include the class file (controller)\n require_once($file);\n\n $controller = $this->controller;\n\n // initialize the controller\n $this->app = new $controller( $this->autoload );\n\n // if the method exist in this controller\n if( method_exists( $this->app, $this->method ) ) :\n $this->app->{$this->method}( $this->params);\n else :\n header(\"Content-Type: application/json\");\n echo json_encode([\"status\" => \"fail\", \"response\" => \"The requested API does not exist.\"]);\n header(\"HTTP/1.0 404 Oops requested url does not exist \");\n endif;\n\n }", "title": "" }, { "docid": "dcb515e222112d20da0f919b10ed2be0", "score": "0.6898569", "text": "public function handleRequest($request)\n {\n }", "title": "" }, { "docid": "4e9671468462e1af8952a27db1f96e02", "score": "0.6894549", "text": "private function handleRequest(){\n \n $dp = new Test_Timeline_Data_Provider();\n $this->response = $dp->get_data();\n }", "title": "" }, { "docid": "0cfd3599aaf939553c1a127cdb723bfe", "score": "0.6880656", "text": "public function handleRequest()\n {\n try {\n $httpStatus = 200;\n if (isset($_SERVER['CONTENT_TYPE']) && strpos($_SERVER['CONTENT_TYPE'], 'application/json') !== false) {\n $raw = $this->readInput();\n $data = json_decode($raw, true);\n\n Utils::invariant(\n is_array($data),\n \"GraphQL Server expects JSON object with keys 'query' and 'variables', but got \" . Utils::getVariableType($data)\n );\n } else {\n $data = $_REQUEST ?: [];\n }\n $data += ['query' => null, 'variables' => null];\n $result = $this->executeQuery($data['query'], (array) $data['variables'])->toArray();\n } catch (\\Exception $e) {\n // This is only possible for schema creation errors and some very unpredictable errors,\n // (all errors which occur during query execution are caught and included in final response)\n $httpStatus = $this->unexpectedErrorStatus;\n $error = new Error($this->unexpectedErrorMessage, null, null, null, null, $e);\n $result = ['errors' => [$this->formatError($error)]];\n } catch (\\Throwable $e) {\n $httpStatus = $this->unexpectedErrorStatus;\n $error = new Error($this->unexpectedErrorMessage, null, null, null, null, $e);\n $result = ['errors' => [$this->formatError($error)]];\n }\n\n $this->produceOutput($result, $httpStatus);\n }", "title": "" }, { "docid": "47ebec903d502df30521ecdf1e6baebb", "score": "0.6860585", "text": "function handle(Request $Req, Response $Res);", "title": "" }, { "docid": "ed7a92289fd4ee1af5badb8cc7b5d85c", "score": "0.6856216", "text": "private function _processRequest()\n\t{\n\t\t// prevent unauthenticated access to API\n\t\t$this->_secureBackend();\n\n\t\t// get the request\n\t\tif (!empty($_REQUEST)) {\n\t\t\t// convert to object for consistency\n\t\t\t$this->request = json_decode(json_encode($_REQUEST));\n\t\t} else {\n\t\t\t// already object\n\t\t\t$this->request = json_decode(file_get_contents('php://input'));\n\t\t}\n\n\t\t//check if an action is sent through\n\t\tif(!isset($this->request->action)){\n\t\t\t//if no action is provided then reply with a 400 error with message\n\t\t\t$this->reply(\"No Action Provided\", 400);\n\t\t\t//kill script\n\t\t\texit();\n\t\t}\n\n\t\t//check if method for the action exists\n\t\tif(!method_exists($this, $this->request->action)){\n\t\t\t//if method doesn't exist, send 400 code and message with reply'\n\t\t\t$this->reply(\"Action method not found\",400);\n\t\t\t//kill script\n\t\t\texit();\n\t\t}\n\n\t\t\n\t\t//call appropriate function for the action provided\n\t\t// $lti_id = $this->request->lti_id;\n\t\t// $user_id = $this->request->user_id;\n\n\t\tswitch($this->request->action){\n\t\t\tcase \"hello\":\n\t\t\t\terror_log(\"hello has been sent through\");\n\t\t\t\t\n\t\t\t\t$this->hello();\n\t\t\t\tbreak;\n\t\t\tcase \"send_grades\":\n\t\t\t\terror_log(\"send_grades has been sent through\");\n\n\t\t\t\t$data = json_decode($this->request->data);\n\t\t\t\t$this->send_grades($data);\n\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->reply(\"action switch failed\",400);\n\t\t\tbreak;\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "71efbb14de291449a92d267f68188bab", "score": "0.6855408", "text": "static function handle_request() {\n self::verify_user(true);\n session_write_close();\n try {\n $headers = apache_request_headers();\n header('Content-Type: text/event-stream');\n header('Cache-Control: no-cache');\n header(\"Connection: keep-alive\");\n $limit = isset($_GET['initialSize']) ? $_GET['initialSize'] : 20;\n $last_id = isset($headers['Last-Event-ID']) ? (int) $headers['Last-Event-ID'] : self::push_latest($limit);\n self::loop($last_id);\n } catch (\\Exception $e) {\n exit();\n }\n }", "title": "" }, { "docid": "a6c9e8fd00b6e540b3a64590ab2b711c", "score": "0.6816392", "text": "public function process(Request $request, Response $response);", "title": "" }, { "docid": "366ce8a40ba8c8a7483e42c11d4ad3ab", "score": "0.675203", "text": "public function start(){\n\t\tdate_default_timezone_set(\"UTC\");\n\t\t\n\t\trequire_once DIR_HANDLERS . DIRECTORY_SEPARATOR . $this->handlerPath;\n\t\t$handler = new $this->handlerClass();\n\t\t\n\t\t//determine which method to call\n\t\t$method = \"get\";\n\t\tif($_SERVER['REQUEST_METHOD'] == 'POST'){\n\t\t\t$method = \"post\";\n\t\t}\n\t\t\n\t\t//if handlerMethod was set in the route, use it instead\n\t\tif($this->handlerMethod){\n\t\t\tif(!$this->requestMethod || $this->requestMethod == $method){\n\t\t\t\t$method = $this->handlerMethod;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//TODO create mechanism for handling error responses\n\t\t\t\tRender::view(\"error.unknownurl\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!method_exists($handler, $method)){\n\t\t\tRender::view(\"error.unknownurl\");\n\t\t\texit;\n\t\t}\n\t\t//call onCreate() method for preprocessing\n\t\tcall_user_func_array([$handler, \"onCreate\"], $this->args);\n\t\t//process the request using get() or post() method\n\t\tcall_user_func_array([$handler, $method], $this->args);\n\t}", "title": "" }, { "docid": "e6f4a649419c106772e325523e378ec7", "score": "0.6737692", "text": "public function handleRequest() {\n $method = isset($_GET['method'])?$_GET['method']:NULL;\n try {\n if ( $method=='register' ) {\n $this->register();\n } elseif ( $method == 'login' ) {\n $this->login();\n } else {\n $this->showError(\"Page not found\", \"Page for operation \".$method.\" was not found!\");\n }\n } catch ( Exception $e ) {\n // some unknown Exception got through here, use application error page to display it\n $this->showError(\"Application error\", $e->getMessage());\n }\n }", "title": "" }, { "docid": "2510a9b7984279636387cd808f075add", "score": "0.6737058", "text": "public function processRequest(Request $request);", "title": "" }, { "docid": "32bc4ed6946b75b3be1fb02e8f054ee9", "score": "0.6735836", "text": "public function handleRequest(){\n\t\t$task = $_GET['task'];\n\t\t\n\t\tif($task == 'login'){\n\t\t\t$success = User::authenticate($_POST['username'], $_POST['pass']);\n\t\t\tif($success['valid']){\n\t\t\t\theader('LOCATION: /');\n\t\t\t} else {\n\t\t\t\t// failed login. re-render login page with reason (msg)\n\t\t\t\trender('login', array(\n\t\t\t\t\t'title'\t\t=> 'Login to CDU Explorer',\n\t\t\t\t\t'msg'\t\t=> $success['msg'],\n\t\t\t\t\t'task'\t\t=> $task\n\t\t\t\t));\n\t\t\t}\n\t\t} else {\n\t\t\t// if any other task is specified, render login page\n\t\t\trender('login', array(\n\t\t\t\t'title'\t\t=> 'Login to CDU Explorer',\n\t\t\t\t'task'\t\t=> $task,\n\t\t\t\t'header'\t=> 'none',\n\t\t\t\t'id'\t\t=> 'login'\n\t\t\t));\n\t\t}\n\t}", "title": "" }, { "docid": "ea60d9a7dcdf6c8688ad985027b222f5", "score": "0.66670424", "text": "public function run()\n {\n try {\n $this->request->parseRequestUri();\n $this->request->parseHeaders();\n //$params = $this->request->parseGetParams();//I think this shit is useless \n $controller = $this->request->getContoller();\n $result = $this->request->callAction($controller);\n if ($result) {\n $this->response->setHeaders($this->request->getFormat());\n $this->response->send($result, $this->request->getFormat());\n }\n } catch (\\Throwable $e) {\n $this->displayError($e);\n }\n }", "title": "" }, { "docid": "116c7f73e142797816feacd73245aded", "score": "0.66535276", "text": "public function handle_request()\n {\n if ($this->form_submited())\n {\n if ($this->form_matches('messenger'))\n {\n if ($this->form->is_valid())\n {\n $this->send_message();\n }\n }\n }\n }", "title": "" }, { "docid": "7d6125dfe80f8d1729f20b537b68b754", "score": "0.66486347", "text": "public function handleRequest()\n {\n $this->loadErrorHandler();\n // If enabled, send the X-Powered-By header to identify this site as running MODX, per discussion in #12882\n if ($this->modx->getOption('send_poweredby_header', null, true)) {\n $version = $this->modx->getVersionData();\n header(\"X-Powered-By: MODX {$version['code_name']}\");\n }\n $this->sanitizeRequest();\n $this->modx->invokeEvent('OnHandleRequest');\n if (!$this->modx->checkSiteStatus()) {\n if (zoomx()->getRoutingMode() === Service::ROUTING_STRICT) {\n try {\n abortx(503);\n } catch (HttpException $e) {\n $this->sendErrorPage($e);\n }\n } else {\n header($_SERVER['SERVER_PROTOCOL'] . ' 503 Service Unavailable');\n if (!$this->modx->resourceIdentifier = $this->modx->getOption('site_unavailable_page', null, 1)) {\n $this->modx->resource = $this->modx->newObject('modDocument');\n $this->modx->resource->template = 0;\n $this->modx->resource->content = $this->modx->getOption('site_unavailable_message');\n $this->modx->resourceIdentifier = 0;\n }\n $this->getIdRequestHandler();\n }\n } else {\n $this->checkPublishStatus();\n $this->modx->resourceIdentifier = $this->handler->getResourceIdentifier();\n }\n $this->modx->beforeRequest();\n $this->modx->invokeEvent(\"OnWebPageInit\");\n\n if (!$this->isApiMode() &&\n !is_object($this->modx->resource) &&\n $this->autoloadResource())\n {\n try {\n if (!$this->modx->resource = $this->getResource('', $this->modx->resourceIdentifier)) {\n abortx(404);\n }\n } catch (HttpException $e) {\n $this->sendErrorPage($e);\n }\n }\n\n $this->prepareResponse();\n }", "title": "" }, { "docid": "24bf7677950548a294e3146367b9f6d9", "score": "0.66486126", "text": "public function handle() {\n\t\tif ($_SERVER[\"REQUEST_METHOD\"]==\"GET\") {\n\t\t\theader(\"Content-Type: \" . $this->library->getContentType());\n\t\t\t$this->library->renderTargetCode($this->targetClass);\n\t\t} else {\n\t\t\theader(\"Content-Type: application/json\");\n\t\t\t/** @todo TODO: Work out how to handle exceptions. Surely try / catch is sufficient? */\n\t\t\t//set_error_handler(\"exception_error_handler\");\n\t\t\t$return = array (\n\t\t\t\t\"jsonrpc\" => \"2.0\",\n\t\t\t\t\"id\" => null,\n\t\t\t\t\"result\" => null,\n\t\t\t\t\"error\" => null\n\t\t\t);\n\t\n\t\t\t$input = file_get_contents(\"php://input\");\n\t\t\t\n\t\t\t/* If JSON decoding fails:\n\t\t\t * this should never happen since our Javascript proxy should be doing\n\t\t\t * the JSON encoding - i.e. our fault if the request isn't properly encoded.\n\t\t\t */\n\t\t\t$request = json_decode($input);\n\t\t\tif ($request==null) {\n\t\t\t\t$return['error'] = array(\n\t\t\t\t\t\"code\" => -32700,\n\t\t\t\t\t\"message\" => \"JSON parsing failed.\"\n\t\t\t\t);\n\t\t\t} else {\t\t\t\n\t\t\t\tif (is_array($request)) {\n\t\t\t\t\t$response = array();\n\t\t\t\t\tforeach ($request as $r) {\n\t\t\t\t\t\t$thisResponse = $this->processRequest($r, $this->interface, $this->server);\n\t\t\t\t\t\tif (null!=$thisResponse) {\n\t\t\t\t\t\t\tarray_push($response, $thisResponse);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t// If all requests were notifications, we don't send any response\n\t\t\t\t\tif (0 == count($response)) $response = null;\n\t\t\t\t} else {\n\t\t\t\t\terror_log(\"About to call processRequest()\");\n\t\t\t\t\t$response = $this->processRequest($request, $this->interface, $this->server);\n\t\t\t\t}\n\t\t\t\tif (null!=$response) {\n\t\t\t\t\tprint(json_encode($response));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "64a5b777e32f10f381b6e77769a50bd0", "score": "0.66362506", "text": "public function handle()\n {\n foreach ($this->requestProcessors as $processor) {\n Common::printDebug(\"Executing \" . get_class($processor) . \"::manipulateRequest()...\");\n\n $processor->manipulateRequest($this->request);\n }\n\n $this->visitProperties = new VisitProperties();\n\n foreach ($this->requestProcessors as $processor) {\n Common::printDebug(\"Executing \" . get_class($processor) . \"::processRequestParams()...\");\n\n $abort = $processor->processRequestParams($this->visitProperties, $this->request);\n if ($abort) {\n Common::printDebug(\"-> aborting due to processRequestParams method\");\n return;\n }\n }\n\n $isNewVisit = $this->request->getMetadata('CoreHome', 'isNewVisit');\n if (!$isNewVisit) {\n $isNewVisit = $this->triggerPredicateHookOnDimensions($this->getAllVisitDimensions(), 'shouldForceNewVisit');\n $this->request->setMetadata('CoreHome', 'isNewVisit', $isNewVisit);\n }\n\n foreach ($this->requestProcessors as $processor) {\n Common::printDebug(\"Executing \" . get_class($processor) . \"::afterRequestProcessed()...\");\n\n $abort = $processor->afterRequestProcessed($this->visitProperties, $this->request);\n if ($abort) {\n Common::printDebug(\"-> aborting due to afterRequestProcessed method\");\n return;\n }\n }\n\n $isNewVisit = $this->request->getMetadata('CoreHome', 'isNewVisit');\n\n // Known visit when:\n // ( - the visitor has the Piwik cookie with the idcookie ID used by Piwik to match the visitor\n // OR\n // - the visitor doesn't have the Piwik cookie but could be match using heuristics @see recognizeTheVisitor()\n // )\n // AND\n // - the last page view for this visitor was less than 30 minutes ago @see isLastActionInTheSameVisit()\n if (!$isNewVisit) {\n try {\n $this->handleExistingVisit($this->request->getMetadata('Goals', 'visitIsConverted'));\n } catch (VisitorNotFoundInDb $e) {\n $this->request->setMetadata('CoreHome', 'visitorNotFoundInDb', true); // TODO: perhaps we should just abort here?\n }\n }\n\n // New visit when:\n // - the visitor has the Piwik cookie but the last action was performed more than 30 min ago @see isLastActionInTheSameVisit()\n // - the visitor doesn't have the Piwik cookie, and couldn't be matched in @see recognizeTheVisitor()\n // - the visitor does have the Piwik cookie but the idcookie and idvisit found in the cookie didn't match to any existing visit in the DB\n if ($isNewVisit) {\n $this->handleNewVisit($this->request->getMetadata('Goals', 'visitIsConverted'));\n }\n\n // update the cookie with the new visit information\n $this->request->setThirdPartyCookie($this->visitProperties->getProperty('idvisitor'));\n\n foreach ($this->requestProcessors as $processor) {\n Common::printDebug(\"Executing \" . get_class($processor) . \"::recordLogs()...\");\n\n $processor->recordLogs($this->visitProperties, $this->request);\n }\n\n $this->markArchivedReportsAsInvalidIfArchiveAlreadyFinished();\n }", "title": "" }, { "docid": "affcde317805f65e8f5a55e32736878c", "score": "0.6629426", "text": "public function handleRequest() {\n\t\n\t\t$action = $this->getParam('action');\n\t\tswitch ($action) {\n\t\t\tcase 'select':\n\t\t\t\t$list = explode('#',$this->getParam('id_list',true));\n\t\t\t\tif (is_array($list) && sizeof($list)>0) {\n\t\t\t\t\t$this->doSelectedMovies($list);\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tredirect('?page=add_listed');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\n\t\t\tcase 'confirm':\n\t\t\t\t$list = explode('#',$this->getParam('id_list',true));\n\t\t\t\tif (is_array($list) && sizeof($list)>0) {\n\t\t\t\t\t$this->doAddSelectedMovies($list);\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tredirect('?page=add_listed');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\tredirect('?page=add_listed');\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "403175315cf4ef05674d0eb09f22a6cb", "score": "0.6615205", "text": "public function handle() {\n $client = new \\GuzzleHttp\\Client();\n $url = 'https://atomic.incfile.com/fakepost';\n $response = $this->doRequest($client, $url, 1);\n if ($response->getStatusCode() === 200) {\n echo 'The request was successful and get: ' . $response->getBody();\n }else{\n echo 'The request was successful but the status code is: ' . $response->getStatusCode();\n }\n }", "title": "" }, { "docid": "8e0e6320c520464ddd77fc7f0e10fe46", "score": "0.6585083", "text": "public function handle() {\n\n if (!$this->sso->isConnected())\n OpenM_Header::error(403, \"Not Connected [ERRNO:\" . OpenM_SSO::RETURN_ERROR_CODE_NOT_CONNECTED_VALUE . \"]\");\n\n $params = array_merge($_GET, $_POST);\n $param = HashtableString::from($params, \"String\");\n\n $api = $param->get(\"api\");\n $method = $param->get(\"method\");\n\n $args = array();\n for ($i = 1; $i < $param->size(); $i++) {\n OpenM_Log::debug(\"Is exist arg$i ?\", __CLASS__, __METHOD__, __LINE__);\n if ($param->containsKey(\"arg$i\"))\n $args[] = OpenM_URL::decode($param->get(\"arg$i\"));\n else\n break;\n }\n\n try {\n echo OpenM_RESTControllerClient::call($this->api_path, $api, $method, $args, $this->sso, true);\n } catch (OpenM_HttpError_Forbidden $e) {\n try {\n if (!$this->sso->isSSOapiConnectionOK(false)) {\n OpenM_Header::error(403, \"Not Connected [ERRNO:\" . OpenM_SSO::RETURN_ERROR_CODE_NOT_CONNECTED_VALUE . \"]\");\n } else {\n $this->displayException($e);\n }\n } catch (Exception $e) {\n $this->displayException($e);\n }\n } catch (Exception $e) {\n $this->displayException($e);\n }\n }", "title": "" }, { "docid": "d3558827080fd68c927bf9022d4f14d3", "score": "0.6547598", "text": "public function ProcessRequest(){\n\t\t$request_method = strtolower($_SERVER['REQUEST_METHOD']);\n\t\t\n\t\tswitch ($request_method) \n\t\t{ \n\t\t\tcase 'get': \n\t\t\t\t$result = $this->ProcessGetRequest();\n\t\t\t\tbreak; \n\t\t\tcase 'post': \n\t\t\t\t$result = $this->ProcessPostRequest();\n\t\t\t\tbreak; \n\t\t\tdefault:\n\t\t\t\t$this->status = 2;\n\t\t\t\t$result = $this->createReturn($this->status);\n\t\t\t\tbreak;\n\t\t}\t\n\t\techo json_encode($result).\"\\n\";\n\t\t$this->shadow_upload();\n }", "title": "" }, { "docid": "835846becb11b435f7e3d12e6d61f531", "score": "0.6547059", "text": "public function handle(Request $request)\n {\n \\Log::info($request);\n\n return response(env('APP_NAME'), 200);\n\n //need to check if csrf is disabled in this route\n// if ($request->secret == env('TELERIVET_WEBHOOK_SECRET')) {\n// switch ($request->event) {\n// case 'default':\n// $this->persistAirTimeTransfer($request);\n//\n// return response(env('APP_NAME'), 200);\n// default:\n// # code...\n// break;\n// }\n// }\n//\n// return response(env('APP_NAME'), 401);\n }", "title": "" }, { "docid": "c0a32d59ed421a8a01527d574a24ff27", "score": "0.6489025", "text": "public function postHandleRequest(HttpRequest $request, HandleResult $result);", "title": "" }, { "docid": "5cf5acd74371c844e591db4fb325edb8", "score": "0.6488981", "text": "function run() {\n //Handle server request\n $this->router->handle_request();\n }", "title": "" }, { "docid": "43157548c59fb48c1d8c762b7b51d50e", "score": "0.6451341", "text": "public function handleRequest()\r\n {\r\n $data = [\r\n 'ip_address' => $this->headers['REMOTE_ADDR'], // can be bin2hex(inet_pton($this->headers['REMOTE_ADDR']))\r\n 'user_agent' => $this->headers['HTTP_USER_AGENT'], // can be md5($this->headers['HTTP_USER_AGENT'])\r\n 'page_url' => $this->headers['HTTP_REFERER'], // also can be hashed\r\n ];\r\n\r\n $fields = [];\r\n\r\n foreach ($data as $field => $value) {\r\n $fields[] = \"`$field` = :$field\";\r\n }\r\n\r\n $sql = 'SELECT `views_count` FROM `' . static::$table . '` WHERE ' . implode(' AND ', $fields) . ' LIMIT 1 FOR UPDATE';\r\n\r\n $db = DataStore::getDb();\r\n $statement = $db->prepare($sql);\r\n\r\n if (! $statement->execute($data)) { // an error possibly should be logged\r\n return;\r\n }\r\n\r\n if (! $statement->fetch()) {\r\n // REPLACE is used instead of INSERT to avoid \"Primary key exists\" error if the same record was added shortly after SELECT\r\n $sql = 'REPLACE `' . static::$table . '` SET ' . implode(', ', $fields);\r\n } else {\r\n $sql = 'UPDATE `' . static::$table . '` SET `view_date` = NOW(), `views_count` = `views_count` + 1 WHERE ' . implode(' AND ', $fields) . ' LIMIT 1';\r\n }\r\n\r\n $statement = $db->prepare($sql);\r\n\r\n $statement->execute($data); // an error possibly should be logged\r\n }", "title": "" }, { "docid": "8e99728e8d83fec4f08cf95604e73598", "score": "0.6408736", "text": "final public function handleRequest() {\n $action = 'index';\n $method = 'get';\n\t\t\tif (isset($_GET[\"action\"])) {\n $a = strtolower($_GET[\"action\"]);\n if (method_exists($this, \"post_\" . ucwords($a))) {\n $method = 'post';\n $action = $a;\n } else if (method_exists($this, \"get_\" . ucwords($a))) {\n $method = 'get';\n $action = $a;\n }\n\t\t\t}\n \n //Validate inputs against running method\n $inputs = $this->getInputFilters($action);\n if (!is_array($inputs)) $inputs = array();\n $validInputs = array();\n $invalidInputs = array();\n $values = array();\n foreach ($inputs as $name => $filters) {\n \n if (!is_array($filters)) $filters = (array)$filters;\n \n //Check if it exists\n if ($method == \"post\" && isset($_POST[$name])) {\n $value = $_POST[$name];\n } else if ($method == \"get\" && isset($_GET[$name])) {\n $value = $_GET[$name];\n } else {\n $value = \"\";\n }\n \n //If notnull filter doesn't exist and input is null, accept input as valid\n if (!in_array(\"notnull\", $filters) && $value == \"\") {\n $validInputs[] = $name;\n $values[$name] = $value;\n continue;\n }\n \n //Process filter validation\n $invalid = array();\n foreach ($filters as $filter) {\n \n switch ($filter) {\n \n case 'notnull':\n if ($value == \"\") $invalid[] = 'null';\n break;\n \n case 'int':\n if (filter_var($value, FILTER_VALIDATE_INT) === false) $invalid[] = 'int';\n break;\n \n case 'bool':\n if (filter_var($value, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE) === null) $invalid[] = 'bool';\n break;\n \n case 'email':\n if (!filter_var($value, FILTER_VALIDATE_EMAIL)) $invalid[] = 'email';\n break;\n \n case 'ip':\n if (!filter_var($value, FILTER_VALIDATE_IP)) $invalid[] = 'ip';\n break;\n \n case 'url':\n if (!filter_var($value, FILTER_VALIDATE_URL)) $invalid[] = 'url';\n break;\n \n }\n \n }\n \n //If invalid\n if (count($invalid) > 0) $invalidInputs[$name] = $invalid;\n else $validInputs[] = $name;\n $values[$name] = $value;\n \n }\n\t\t\t\n\t\t\t//Run child page action\n $this->valid = $validInputs;\n $this->invalid = $invalidInputs;\n\t\t\tcall_user_func(array($this, $method . '_' . ucwords($action)), $values);\n \n }", "title": "" }, { "docid": "7698a57b6485a6f5bfd780da039f798d", "score": "0.64069885", "text": "abstract public function process(Request $request): Response;", "title": "" }, { "docid": "0c0edd031c22e74d65c6a6eaa92c7dd4", "score": "0.63739884", "text": "public function handleIt(ServerRequestInterface $request): ResponseInterface;", "title": "" }, { "docid": "519504a5a0ebca823cf8749671284295", "score": "0.6371039", "text": "public function processRequest() {\n\n // Get the action that we wish to execute\n // We use the isset so we will not see notice messageß\n $action = isset($_POST['action']) ? $_POST['action'] : null;\n\n if (isset($action)) {\n switch ($action) {\n case 'create':\n $this->createDB();\n break;\n }\n }\n }", "title": "" }, { "docid": "bf10cae39ba1a387a3f131203096068c", "score": "0.6363603", "text": "public /*String*/ function handleRequest() { \n\n\t\tparent::handleRequest();\r\n\t\t\r\n\t\t// Retrieve all the user's projects\r\n\t\t$search = new Partnership();\n\t\t// TODO FIX : use fake user for now\r\n\t\t// $search->publisher = $_SESSION['user']->id;\n\t\t$search->publisher = \"FAKE_USER_ID\";\n\t\t// END TODO FIX : use fake user for now\r\n\t\t$this->result = $search->find();\r\n\t\t\n\t\t// Render MyPublicationView\r\n\t\t$this->renderView(\"MyPublication\");\n\t\t\n\t}", "title": "" }, { "docid": "8025aa49c26add8e4b8ae16f6406682a", "score": "0.6358725", "text": "public static function handle(){\n\t\t\t$uri=$_SERVER['REQUEST_URI'];\n\t\t\t// clean up GET and REQUEST parameters from router trigger\n\t\t\tunset($_REQUEST['k2fhandleroute']);\n\t\t\tunset($_POST['k2fhandleroute']);\n\t\t\tunset($_GET['k2fhandleroute']);\n\t\t\t// do some logging\n\t\t\txlog('Handling route ',$uri,$_REQUEST);\n\t\t\tif(CFG::get('DEBUG_VERBOSE'))xlog(count(self::$routes),' routes:',self::$routes);\n\t\t\t// handle the routes\n\t\t\tforeach(self::$routes as $route){\n\t\t\t\tlist($regex,$function)=$route;\n\t\t\t\t$matches=array();\n\t\t\t\tErrors::trap_errors_begin();\n\t\t\t\t$result=preg_match($regex,$uri,$matches);\n\t\t\t\tif(Errors::trap_errors_end()==0 && $result){\t// it is a regex and it matched\n\t\t\t\t\tself::_call($function,$regex,$matches);\n\t\t\t\t}elseif($regex==$uri)\t\t\t\t\t\t\t// it is not a regex\n\t\t\t\t\tself::_call($function,$regex);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "cf6c11cddc10a0246e55623747ab3495", "score": "0.6355721", "text": "function handle()\n {\n $this->verifyPost();\n\n $postTarget = $this->determinePostTarget();\n\n $verify_csrf = true;\n if ($verify_csrf && !$this->controller->validateCSRF()) {\n throw new \\Exception('Invalid security token provided. If you think this was an error, please retry the request.', 403);\n }\n\n $this->filterPostData();\n\n switch ($postTarget) {\n case 'upload_media':\n $this->handleMediaFileUpload();\n break;\n case 'feed':\n $this->handleFeed();\n break;\n case 'feed_media':\n $this->handleFeedMedia();\n break;\n case 'feed_users':\n $this->handleFeedUsers();\n break;\n case 'delete_media':\n $this->handleDeleteMedia();\n break;\n case 'delete_feed':\n $this->handleDeleteFeed();\n break;\n case 'copy_text_track_file':\n $this->handleCopyTextTrackFile();\n break;\n case 'update_text_track_file';\n $this->handleUpdateTextTrackFile();\n break;\n case 'delete_text_track_file';\n $this->handleDeleteTextTrackFile();\n break;\n case 'pull_amara':\n $this->handleAmara();\n break;\n case 'order_rev':\n $this->handleRev();\n break;\n case 'download_rev':\n $this->downloadRev();\n break;\n case 'set_active_text_track':\n $this->setActiveTextTrack();\n break;\n case 'retry_transcoding_job':\n $this->retryTranscodingJob();\n break;\n }\n }", "title": "" }, { "docid": "e539d67553c508faf98e678c2f91da22", "score": "0.6353806", "text": "public function run($request) {\n\t}", "title": "" }, { "docid": "3551440c97a2802e8497cfbf735525c1", "score": "0.6334053", "text": "function handle_request() // Colorize: green\n { // Colorize: green\n switch ($_SERVER[\"REQUEST_METHOD\"]) // Colorize: green\n { // Colorize: green\n case \"GET\": // Colorize: green\n { // Colorize: green\n handle_get(); // Colorize: green\n } // Colorize: green\n break; // Colorize: green\n // Colorize: green\n case \"POST\": // Colorize: green\n { // Colorize: green\n handle_post(); // Colorize: green\n } // Colorize: green\n break; // Colorize: green\n // Colorize: green\n default: // Colorize: green\n { // Colorize: green\n die(\"Unknown method\"); // Colorize: green\n } // Colorize: green\n break; // Colorize: green\n } // Colorize: green\n }", "title": "" }, { "docid": "3551440c97a2802e8497cfbf735525c1", "score": "0.6334053", "text": "function handle_request() // Colorize: green\n { // Colorize: green\n switch ($_SERVER[\"REQUEST_METHOD\"]) // Colorize: green\n { // Colorize: green\n case \"GET\": // Colorize: green\n { // Colorize: green\n handle_get(); // Colorize: green\n } // Colorize: green\n break; // Colorize: green\n // Colorize: green\n case \"POST\": // Colorize: green\n { // Colorize: green\n handle_post(); // Colorize: green\n } // Colorize: green\n break; // Colorize: green\n // Colorize: green\n default: // Colorize: green\n { // Colorize: green\n die(\"Unknown method\"); // Colorize: green\n } // Colorize: green\n break; // Colorize: green\n } // Colorize: green\n }", "title": "" }, { "docid": "405bf615e2ba3d72d4c5f0a5ed470e71", "score": "0.6326243", "text": "public function handle(ServerRequestInterface $request): ResponseInterface;", "title": "" }, { "docid": "da72b8dba61c6b2db1aa858745993715", "score": "0.63180906", "text": "function post_handler() {\n\n\tglobal $app;\n\n\t$request = \\Slim\\Slim::getInstance()->request();\n\t$action = ltrim($request->getPathInfo(), '/');\n\t$methodAlias = $request->headers('method');\n\t$contentType = $request->headers('Content-Type');\n\t$acceptType = $request->headers('Accept');\n\t$requestBody = $request->getBody();\n\n\t$req = new BaseRequest($contentType);\n\t$validInput = false;\n\n\ttry {\n\t\t$req->setDataFromString($requestBody);\n\t\t$validInput = true;\n\t} catch(Exception $e) {\n\t\t$resp = new BaseResponse();\n\t\t$resp->setStatus('error');\n\t\t$resp->setData(array('text' => ERR_BAD_INPUT));\n\t}\n\t\n\tif(true == $validInput) {\n\t\t$base = new BaseController();\n\t\t$resp = $base->doAction('post', $action, $methodAlias, $req);\n\t}\n\n\tif('json' == $acceptType) {\n\t\t$app->contentType('application/json');\n\t\tprint $resp->asJson();\n\n\t} else if('xml' == $acceptType) {\n\t\t$app->contentType('application/xml');\n\t\tprint $resp->asXml();\n\n\t} else { //default\n\t\t$app->contentType('application/json');\n\t\tprint $resp->asJson();\n\t}\n}", "title": "" }, { "docid": "fb51a6bac55d2e4cc8da0c4e94e4686f", "score": "0.63180465", "text": "public function handle(Request $request, Application $app = null);", "title": "" }, { "docid": "330e843b8c0d5100d036a61ab25e29ca", "score": "0.62982184", "text": "public function run($request)\n {\n $this->process();\n }", "title": "" }, { "docid": "48a3b2ad38b9bfe54982f6cabeccef78", "score": "0.6274519", "text": "public function processRoute(): void\n {\n $router = $this->container->resolve(Router::class);\n $request = $this->container->resolve(Request::class);\n\n $this->response = $router->dispatch($this->buildRoutes(), $request);\n }", "title": "" }, { "docid": "39889d442cdcd5501185a6bbf90a4d5b", "score": "0.62606996", "text": "function handleGETRequest() {\n if (connectToDB()) {\n if (array_key_exists('aggregateTuples', $_GET)) {\n handleAggregationRequest();\n } else if (array_key_exists('displayTuples', $_GET)) {\n handleDisplayRequest();\n } else if (array_key_exists('divisionRequest', $_GET)) {\n handleDivisionRequest();\n } else if (array_key_exists('aggregateGroupByRequest', $_GET)) {\n handleAggregationGroupByRequest();\n } else if (array_key_exists('aggregateHavingRequest', $_GET)) {\n handleAggregationHavingRequest();\n } else if (array_key_exists('nestedAggregationRequest', $_GET)) {\n handleNestedAggregationRequest();\n }\n\n disconnectFromDB();\n }\n }", "title": "" }, { "docid": "1ca23ee54eec18442aef300a7800ce83", "score": "0.62590945", "text": "abstract public function process(array $request);", "title": "" }, { "docid": "721d3bdc2e2de13190e14b73e1e2e8bf", "score": "0.62533474", "text": "abstract protected function handleRequest(RequestInterface $request);", "title": "" }, { "docid": "1ec734e02b9cac3f0f997996c5c90804", "score": "0.62489074", "text": "public function preHandleRequest(HttpRequest $request);", "title": "" }, { "docid": "6fcd27443cd858c18036f36fadf1b265", "score": "0.6247274", "text": "public function handleServer(Request $request) {\n\n\t\t$action = $request->input('action');\n\n\t\t$response = null;\n\n\t\tswitch ($action) {\n\t\t\tcase 'createGame':\n\t\t\t\t$response = $this->createGame($request->input('password'));\n\t\t\t\tbreak;\n\t\t\tcase 'isGameValid':\n\t\t\t\t$response = $this->isGameValid($request->input('gameID'), $request->input('gamePassword'));\n\t\t\t\tbreak;\n\t\t\tcase 'sendMove':\n\t\t\t\t$response = $this->sendMove($request->input('gameID'), $request->input('gamePassword'), $request->input('move'));\n\t\t\t\tbreak;\n\t\t\tcase 'getLastMove':\n\t\t\t\t$response = $this->getLastMove($request->input('gameID'));\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$response = \"error\";\n\t\t}\n\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "a1ab8b0c202a7c1a45f2e8c9cdde1cd3", "score": "0.6241515", "text": "public function serveRequest()\r\n {\r\n //we are suing Singleton for the controller\r\n call_user_func_array(array(SingletonHelper::instance($this->controller), $this->\r\n method), $this->params);\r\n }", "title": "" }, { "docid": "8751f9323527f46ab106978c027b0f7b", "score": "0.6233955", "text": "protected function _handle() {\r\n $this->m_server->handle();\r\n }", "title": "" }, { "docid": "dd42b02befc415346bccb14da25124ee", "score": "0.6230292", "text": "public function handle(Request $request) {\n $opName = $request->getOperationName();\n\n return $this->_handleOperation($opName, $request->getPayload(), $request->getQueryParams());\n }", "title": "" }, { "docid": "b4dc91d3f9e1cc0cebeb992d619bf32e", "score": "0.6220193", "text": "public function handle()\n {\n // \\Log::info(\"Request handled!\");\n $results = DB::select('call AutoForwardLeaveRequests()');\n // $forwarded = collect($results)[0]->forwarded;\n $this->info('Job just started');\n\n\n }", "title": "" }, { "docid": "a8c9398b6632d345cf67a2df5a7cd910", "score": "0.6211007", "text": "public function handle()\n\t{\n\t\t//pass off to controller/method\n\n\t\t$parseUri = $this->parseUri();\n\t\tConfigure::setConfigValue('parseUri',$parseUri);\n\n\t\t$parseUri[0] = (!isset($parseUri[0]) || empty($parseUri[0])) ? 'index' : $parseUri[0];\n\t\t$parseUri[1] = (!isset($parseUri[1]) || empty($parseUri[1])) ? 'index' : $parseUri[1];\n\n\t\t$action = array_shift($parseUri);\n\t\t$method = array_shift($parseUri);\t\n\n\t\t// load the class\n\t\t$class = 'Controller_'.ucwords(strtolower($action));\n\t\t$requestObject = new $class;\n\n\t\t// filter the incoming superglobals\n $requestObject->filter = new Filter();\n $requestObject->filter->importGet();\n $requestObject->filter->importPost();\n\n\t\t//$requestObject->$method();\n\t\tcall_user_func_array(array($requestObject,$method),$parseUri);\n\t\t\n\t\t// output to our view\n\t\t$viewFile = $this->_view_path.'/'.$action.'/'.$method.'.php';\n\n\t\tif(is_file($viewFile)){\n\t\t\t$view = new View();\n\t\t\t$view->setViewPath($this->_view_path);\n\t\t\t$view->render($requestObject->_viewData,$viewFile,$requestObject->useTemplate);\n\t\t}else{\n\t\t\tthrow new Exception('View file not found! ('.$action.'/'.$method.')');\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "9849e4c00565e404a35de1de65299a09", "score": "0.620972", "text": "public function processRequest() {\n \n // get all POST params from device\n isset($this->_request['device']) ? $this->device = $this->_request['device'] : $this->device = '';\n \n // get all possible readings passed by HTTP request\n foreach ($this->readings as $readingKey => $readingValue) isset($this->_request[$readingValue[0]]) ? $this->readings[$readingKey][1] = $this->_request[$readingValue[0]] : $this->readings[$readingKey][1] = null;\n }", "title": "" }, { "docid": "ed727365eab60025431af6ebc1b71ea1", "score": "0.6191282", "text": "public function run()\n {\n $response = $this->router->dispatch($this->request);\n $this->emitter->emit($response);\n }", "title": "" }, { "docid": "d3c5f76d51ea661688c2f06326fc0e89", "score": "0.61793935", "text": "public function handle() {\n\t\tcheck_ajax_referer( 'c27_ajax_nonce', 'security' );\n\n\t\t$result = $this->run( $_GET );\n\n\t\twp_send_json( $result );\n\t}", "title": "" }, { "docid": "9ff10278cecef17bb43fd2d3adabf5a6", "score": "0.6172428", "text": "function handle_request(){\n\t\t//get request\n\t\tif(empty($_REQUEST[\"cmd\"])){\n\t\t\tEgoLib::exit_invalid(\"missing command attribute\");\n\t\t}\n\t\t$cmd=strtolower($_REQUEST[\"cmd\"]);\n\t\t\n\t\t//check if all arguments are syntactically ok\n\t\tEgoLib::check_arguments();\n\t\t\n\t\t//extract locationinfo\n\t\t$locationinfo=EgoLib::extract_locationinfo();\n\t\t\n\t\t//make sure we have a (dummy) callback\n\t\tif($this->callback == null){\n\t\t\t$this->callback=new EgoCallback();\n\t\t}\n\t\t\n\t\tswitch($cmd){\n\t\t\tcase \"addlocation\":\n\t\t\t\t$required=array(\"installationid\",\"timestamp\",\"lat\",\"lng\");\n\t\t\t\tEgoLib::check_required($required);\n\t\t\t\t$serverid=$this->callback->add_location($locationinfo);\n\t\t\t\tif(empty($serverid))$serverid=\"script_did_not_return_a_serverid\";\n\t\t\t\tEgoLib::exit_ok($serverid);\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase \"updatelocation\":\n\t\t\t\t$required=array(\"installationid\",\"locationid\");\n\t\t\t\tEgoLib::check_required($required);\n\t\t\t\t$this->callback->update_location($locationinfo);\n\t\t\t\tif(empty($serverid))$serverid=\"\";\n\t\t\t\tEgoLib::exit_ok($serverid);\n\t\t\t\t\n\t\t\tcase \"deletelocation\":\n\t\t\t\t$required=array(\"installationid\",\"locationid\");\n\t\t\t\tEgoLib::check_required($required);\n\t\t\t\t$this->callback->delete_location($locationinfo);\n\t\t\t\tEgoLib::exit_ok(\"deleted\");\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase \"addmetadata\":\n\t\t\t\t$required=array(\"installationid\",\"mdatatype\",\"locationid\",\"mdatacontent\");\n\t\t\t\tEgoLib::check_required($required);\n\t\t\t\t$serverid=$this->callback->add_metadata($locationinfo[\"locationid\"],$_REQUEST[\"mdatatype\"],$_REQUEST[\"mdatacontent\"]);\n\t\t\t\tif(empty($serverid))$serverid=\"script_did_not_return_a_serverid\";\n\t\t\t\tEgoLib::exit_ok($serverid);\n\t\t\t\t\n\t\t\tcase \"deletemetadata\":\n\t\t\t\t$required=array(\"installationid\",\"mdataid\",\"locationid\");\n\t\t\t\tEgoLib::check_required($required);\n\t\t\t\t$this->callback->delete_metadata($locationinfo[\"locationid\"],$_REQUEST[\"mdataid\"]);\n\t\t\t\tEgoLib::exit_ok(\"deleted\");\n\t\t\t\t\n\t\t\tcase \"uploadfile\":\n\t\t\t\t$required=array(\"installationid\");\n\t\t\t\tEgoLib::check_required($required);\n\t\t\t\tif(!array_key_exists(\"uploadedfile\",$_FILES)){\n\t\t\t\t\tEgoLib::exit_invalid(\"missing uploadedfile\");\n\t\t\t\t} \n\t\t\t\t$filename=$_FILES[\"uploadedfile\"][\"tmp_name\"];\n\t\t\t\t$serverid=$this->callback->upload_file($filename);\n\t\t\t\tif(empty($serverid))$serverid=\"script_did_not_return_a_serverid\";\n\t\t\t\tEgoLib::exit_ok($serverid);\n\t\t\t\n\t\t\tdefault:\n\t\t\t\tEgoLib::exit_notsupported(\"unknown command $cmd\");\n\t\t\t\t\n\t\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "ad8ce9a8cf3d66862172ba3da258347a", "score": "0.61619294", "text": "public function handle()\n {\n $response = $this->getResponse()->getBody();\n $newResponse = $response;\n $isJson = $this->isRequestJson();\n if ($isJson) {\n $response = stripslashes($response);\n }\n $regexps = array(\n '~<[^>]+\\ssrc=[\"\\']([^\"\\']+)[\"\\']~',\n '~<link\\s[^>]*href=[\"\\']([^\"\\']+)[\"\\']~',\n );\n $values = array();\n foreach ($regexps as $exp) {\n preg_match_all($exp, $response, $glob);\n foreach ($glob[1] as $string) {\n $crc = crc32($string);\n if (!isset($values[$crc])) {\n $newResponse = str_replace(\n $this->jsonTransform($string, $isJson),\n $this->computeAsset($string, $isJson),\n $newResponse\n );\n $values[$crc] = 1;\n }\n }\n }\n $this->getResponse()->setBody($newResponse);\n }", "title": "" }, { "docid": "6b737dda8548ea9c67d41583fbfdd191", "score": "0.61587447", "text": "public function processRequest()\n {\n if (array_key_exists('session_id', $_GET)) {\n if ($_GET[\"session_id\"] == '' || !is_numeric($_GET[\"session_id\"])) {\n $response = new Response(400, false, null, 'Invalid session ID.', false);\n $response->send();\n }\n\n $session_id = intval($_GET[\"session_id\"]);\n\n if (!isset($_SERVER['HTTP_AUTHORIZATION']) || strlen($_SERVER['HTTP_AUTHORIZATION']) < 1) {\n $response = new Response(401, false, null, 'Unauthorized access.', false);\n $response->send();\n }\n\n $access_token = $_SERVER['HTTP_AUTHORIZATION'];\n\n if ($_SERVER[\"REQUEST_METHOD\"] === \"DELETE\") {\n $this->gateway->delete($session_id, $access_token);\n } elseif ($_SERVER[\"REQUEST_METHOD\"] === \"PATCH\" || $_SERVER[\"REQUEST_METHOD\"] === \"PUT\") {\n $this->gateway->update($session_id, $access_token);\n } else {\n $response = new Response(405, false, null, 'Request method not allowed.', false);\n $response->send();\n }\n }\n\n //Create a new session\n elseif (empty($_GET)) {\n if ($_SERVER['REQUEST_METHOD'] !== 'POST') {\n $response = new Response(405, false, null, 'Request method not allowed.', false);\n $response->send();\n }\n\n sleep(1);\n $this->gateway->create();\n }\n \n //404 endpoint\n else {\n $response = new Response(405, false, null, 'Endpoint not found.', false);\n $response->send();\n }\n }", "title": "" }, { "docid": "a6906a535b2b8d6fe3a9c84ea5da46f5", "score": "0.6153506", "text": "public function handler(): Response;", "title": "" }, { "docid": "718b799ddbc3cb7a067ee373e03d0ccc", "score": "0.61530596", "text": "public function handleRequest()\n {\n $this->aCaptureParams = array_map('trim', $_REQUEST);\n $this->oNovalnetUtil = oxNew('novalnetutil');\n $this->oSession = oxRegistry::getSession();\n $this->blProcessTestMode = $this->oNovalnetUtil->getNovalnetConfigValue('blCallbackTestMode');\n $this->oDb = oxDb::getDb(oxDb::FETCH_MODE_ASSOC);\n $this->_oLang = oxNew('oxLang');\n\n $this->_aViewData['sNovalnetMessage'] = '';\n if ($this->_validateCaptureParams())\n {\n // check callpack is to update the affiliate detail or process the callback for the transaction\n if (!empty($this->aCaptureParams['vendor_activation']))\n {\n $this->_updateAffiliateActivationDetails();\n } else {\n $this->_processNovalnetCallback();\n }\n }\n return false;\n }", "title": "" }, { "docid": "0d6b40bc29d3230c55594b5b06447655", "score": "0.6151142", "text": "public function handle( $request = null )\n {\n if ( !$request ) {\n $request = Request::createFromGlobals();\n }\n\n $dispatcher = $this->module->get( EventDispatcher::class );\n $dispatcher->addSubscriber( $this->module->get( Router::class ) );\n $dispatcher->addSubscriber( $this->module->get( AuthListener::class ) );\n $dispatcher->addSubscriber( $this->module->get( SignatureListener::class ) );\n $dispatcher->addSubscriber( new ExceptionListener() );\n\n $this->subscribeActivityHandlers( $dispatcher );\n\n $controllerResolver = new ControllerResolver();\n $argumentResolver = new ArgumentResolver();\n\n $kernel = new HttpKernel(\n $dispatcher, $controllerResolver, new RequestStack(), $argumentResolver\n );\n return $kernel->handle( $request );\n }", "title": "" }, { "docid": "0094aa9b96d34a6401c3c1eee7744aab", "score": "0.6147921", "text": "abstract public function process(Zend_Controller_Request_Abstract $request);", "title": "" }, { "docid": "d48d16e011ec2ae8bd5a766ca78d0b96", "score": "0.61472774", "text": "public function run() {\r\n $request = new WebRequest;\r\n $response = new WebResponse;\r\n\r\n if (isset($this->_config[\"engine\"])) {\r\n $ec = $this->_config[\"engine\"];\r\n if (isset($ec[\"default_encoding\"]))\r\n $response->setEncoding($ec[\"default_encoding\"]);\r\n if (isset($ec[\"default_content_type\"]))\r\n $response->setContentType($ec[\"default_content_type\"]);\r\n }\r\n\r\n // ROUTING\r\n // Find module for current request.\r\n // Use base class implementation, if no specific module has been found.\r\n $module = $this->findModule($request);\r\n if (empty($module)) {\r\n $response->fail(404);\r\n return;\r\n }\r\n\r\n // Module execution.\r\n if (!$module->beforeProcessRequest($request, $response)) {\r\n return;\r\n }\r\n if (!$module->processRequest($request, $response)) {\r\n return;\r\n }\r\n if (!$module->afterProcessRequest($request, $response)) {\r\n return;\r\n }\r\n }", "title": "" }, { "docid": "e7e7675724c28e0babf1c71433cbb040", "score": "0.6142918", "text": "protected abstract function handle(Request $request, $params): ?Response;", "title": "" }, { "docid": "256ca6dd34c13a4ef0d92d47398f9430", "score": "0.61363894", "text": "public function handle(\\isys_register $p_request, \\isys_application $p_application)\n {\n\n }", "title": "" }, { "docid": "5bfccf46cdfbc80446d44191284dd67b", "score": "0.6129096", "text": "public function handle(Request $request, Response $response): void {\n call_user_func_array($this->handler, [$request, $response]);\n }", "title": "" }, { "docid": "1e01b338dbe553a57cdb5e396de37f07", "score": "0.611768", "text": "function get_handler() {\n\n\tglobal $app;\n\n\t$request = \\Slim\\Slim::getInstance()->request();\n\t$action = ltrim($request->getPathInfo(), '/');\n\t$methodAlias = $request->headers('method');\n\t$contentType = $request->headers('Content-Type');\n\t$acceptType = $request->headers('Accept');\n\t$requestBody = $_GET;\n\n\t$req = new BaseRequest($contentType);\n\t$req->setData($requestBody);\n\n\t$base = new BaseController();\n\t$resp = $base->doAction('get', $action, $methodAlias, $req);\n\n\tif('json' == $acceptType) {\n\t\t$app->contentType('application/json');\n\t\tprint $resp->asJson();\n\n\t} else if('xml' == $acceptType) {\n\t\t$app->contentType('application/xml');\n\t\tprint $resp->asXml();\n\n\t} else { //default\n\t\t$app->contentType('application/json');\n\t\tprint $resp->asJson();\n\t}\n}", "title": "" }, { "docid": "c7620510dd39e0c15668020d5e9037e4", "score": "0.6117034", "text": "function handleGETRequest() {\n if (connectToDB()) {\n if (array_key_exists('countTuples', $_GET)) {\n handleCountRequest();\n }\n if (array_key_exists('displayTuples', $_GET)) {\n handleDisplayRequest();\n }\n disconnectFromDB();\n }\n }", "title": "" }, { "docid": "0d292c4d9c06daf57d9da15db86df38d", "score": "0.6114224", "text": "public function handle($request = null)\r\n {\r\n if (! $request instanceof Request) {\r\n $request = Request::createFromGlobals();\r\n }\r\n\r\n $this->request = $request;\r\n\r\n $this->fire('init');\r\n\r\n $method = $this->request->get('_method', $this->request->getMethod());\r\n\r\n try {\r\n return $this->{$method.'Action'}($this->request);\r\n } catch (AbortException $e) {\r\n $error = $e->getMessage() ?: $this->uploader->getErrorMessage('abort');\r\n return $this->json($error, 400);\r\n } catch (FileNotFoundException $e) {\r\n return $this->json($this->uploader->getErrorMessage('not_found'), 404);\r\n } catch (Exception $e) {\r\n if ($this->uploader->config('debug')) {\r\n throw $e;\r\n }\r\n\r\n return $this->json($this->uploader->getErrorMessage('error'), 500);\r\n }\r\n }", "title": "" }, { "docid": "7eb49fa4474c64a837981676cbb17622", "score": "0.611144", "text": "private function processRequest()\n {\n\t$request = $_REQUEST['request'];\n\t\n\t//get the provided app id\n\t$app_id = $_REQUEST['app_id'];\n \n \n\t//check first if the app id exists in the list of applications\n\tif( $app_id !== _APP_ID ) {\n throw new Exception('Application does not exist!');\n\t}\n\t\n\t//decrypt the request\n\t$params = json_decode($request,true);\n \n \n\t//check if the request is valid by checking if it's an array and looking for the controller and action\n\tif( !isset($params['controller']) || !isset($params['action']) ) {\n throw new Exception('Request is not valid.');\n\t}\n\t\n\t//cast it into an array\n\t$this->params = (array)$params;\n //$this->params = stripSlashesDeep($params); \n \n //$this->params = $_REQUEST;\n \n }", "title": "" }, { "docid": "82fdcdeecbfa9c8ec3c4fdbdef978dc9", "score": "0.60950017", "text": "public function handle_requests() {\n \n // If valid path for API\n global $wp;\n if (isset($wp->query_vars[\"icarustreeapi\"]) &&\n isset($wp->query_vars[\"endpoint\"])) {\n \n // Get JSON\n $input = file_get_contents('php://input');\n $json = $this->object_to_array(json_decode($input));\n \n // Check for API Key\n if (isset($json[\"api_key\"])) {\n \n // Check API Key Valid\n if ($json[\"api_key\"] == $this->api_key) {\n \n // Remove API key from JSON\n unset($json[\"api_key\"]);\n \n // Get endpoint\n $endpoint = $wp->query_vars[\"endpoint\"];\n \n // Check if endpoint requires token & user ID\n if (in_array($endpoint,$this->secure_endpoints)) {\n \n // Check for token and user ID\n if (isset($json[\"token\"]) && isset($json[\"user_id\"])) {\n \n $userid = $json[\"user_id\"];\n $token = $json[\"token\"];\n \n if ($this->check_token($userid, $token)) {\n \n unset($json[\"user_id\"]);\n unset($json[\"token\"]);\n \n }\n \n } else {\n \n $this->error(\"This endpoint requires a token and user ID.\");\n \n }\n \n }\n \n // Endpoint switch\n switch($endpoint) {\n case \"login\": $this->login($json); break;\n case \"logout\": $this->logout($userid); break;\n case \"register\": $this->register($json); break;\n case \"post\": $this->post($json,$userid); break;\n default: $this->error(\"Not valid endpoint!\"); break;\n }\n \n } else {\n \n $this->error(\"API key is invalid!\");\n \n }\n \n } else {\n \n $this->error(\"API key not in request!\");\n \n }\n \n }\n \n }", "title": "" }, { "docid": "108e46d64c3895b65d8023fb09092417", "score": "0.60889703", "text": "public function handle(Request $request)\n {\n //dump($request->all());\n admin_success('Processed successfully.');\n\n return back();\n }", "title": "" } ]
4fb0067cc902fc0c7ea8dbb174c890d2
Attribution: (the code is on the comments.)
[ { "docid": "1d0637e0511a652603d625053810c919", "score": "0.0", "text": "function endsWith($haystack, $needle)\n{\n return substr($haystack, -strlen($needle)) === $needle;\n}", "title": "" } ]
[ { "docid": "f47a22bbb5af7c17c5b49bfd04a7d718", "score": "0.61395377", "text": "private function vzdy()\r\n\t{\r\n\r\n\t}", "title": "" }, { "docid": "3b1dcccf4b5a98484cf2109c65a10f42", "score": "0.5696789", "text": "public function extact();", "title": "" }, { "docid": "651fb9382cd2bdea4f908ce479f02b58", "score": "0.55736345", "text": "function Decideur () {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.5543226", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.5543226", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.5543226", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.5543226", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.5543226", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.5543226", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.5543226", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.5543226", "text": "final private function __construct() {}", "title": "" }, { "docid": "a9e876c85e38882c5a3514c2eca20d6c", "score": "0.5543226", "text": "final private function __construct() {}", "title": "" }, { "docid": "b4e425e88b336f2040e816b9d78c807f", "score": "0.5494979", "text": "protected function __init__() { }", "title": "" }, { "docid": "589cbe00982421ff787891936a6ab230", "score": "0.54859304", "text": "final private function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "abafabb2e6139e8d44ba1c18cfac7358", "score": "0.5421462", "text": "final private function __construct() { }", "title": "" }, { "docid": "4d3ec4d120da4f4ba73783b84248d6ac", "score": "0.54144156", "text": "private final function __construct() {}", "title": "" }, { "docid": "b7c1ea8f9a2e6354501fbb78c2b61a4a", "score": "0.53945917", "text": "protected static function helper(){}", "title": "" }, { "docid": "089ebd532e13604b055a02a6da9fc7e0", "score": "0.5387698", "text": "abstract function comer();", "title": "" }, { "docid": "82b2fec70d74bb46c033845355f283e5", "score": "0.53426385", "text": "private function __() {\n }", "title": "" }, { "docid": "82b2fec70d74bb46c033845355f283e5", "score": "0.53426385", "text": "private function __() {\n }", "title": "" }, { "docid": "82b2fec70d74bb46c033845355f283e5", "score": "0.53426385", "text": "private function __() {\n }", "title": "" }, { "docid": "0e59379112512b1f4fc1b3ae6ccaa830", "score": "0.52963674", "text": "private function __construct () {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.529604", "text": "private function __construct() {}", "title": "" }, { "docid": "95ec5f4562f77d02680d4789ff46f0bb", "score": "0.52153295", "text": "final protected function __construct() {}", "title": "" }, { "docid": "84ddfdec1a38722865c36fda9889cb26", "score": "0.5191", "text": "private function _construct(){ \n\t \n\t }", "title": "" }, { "docid": "f404c7b8759a2f55d8154740885bae19", "score": "0.51629066", "text": "private function foo() {\n }", "title": "" }, { "docid": "303c6463401e09821159820390808780", "score": "0.5155138", "text": "final private function __construct()\n\t{\n\t}", "title": "" }, { "docid": "f5ea4bd1ed89c8ca22ebf3393a3ddef5", "score": "0.5093096", "text": "function internalFirst(){}", "title": "" }, { "docid": "9b1da6936cf9cfe9f62de8efa414a876", "score": "0.5092543", "text": "abstract public function getCubex();", "title": "" }, { "docid": "276362be5f5ea3bf5bc80b7e7cc36b61", "score": "0.509015", "text": "private function __construct ()\r\n\t{\t\t\r\n\t}", "title": "" }, { "docid": "4035e742ed1810ce710a2d8ca00bc253", "score": "0.5089872", "text": "private function __construct()\r\n {}", "title": "" }, { "docid": "7ba74cf80319857b879252eb0e239339", "score": "0.5081192", "text": "private function __construct()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "7ba74cf80319857b879252eb0e239339", "score": "0.5081192", "text": "private function __construct()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5078688", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5078688", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5078688", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5078688", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5078688", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5078688", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5078688", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5078688", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5078688", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5078688", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5078688", "text": "private function __construct() { }", "title": "" }, { "docid": "a20013630f56448e8a812105d91578ee", "score": "0.5078688", "text": "private function __construct() { }", "title": "" }, { "docid": "fb76b3a53fbc9e552595fb36e96cdb87", "score": "0.505859", "text": "private function __construct() {\n\t\n\t}", "title": "" }, { "docid": "661be32d230139c52033d20562b205a5", "score": "0.5037919", "text": "protected function __init()\r\n\t{}", "title": "" }, { "docid": "f04d77b1faa64e0729003398de58f63a", "score": "0.50336945", "text": "public function zatrub()\n {\n }", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.50092", "text": "private function __construct(){}", "title": "" } ]
3acf98fa859744c634399549104ea06d
/ Begin Actual Setup
[ { "docid": "ac7496f753ae3a228d5ad4e2329ced9f", "score": "0.0", "text": "public function setUp()\n {\n parent::setUp();\n }", "title": "" } ]
[ { "docid": "09dbe96464fd6a693ebd6630f64a174a", "score": "0.8356524", "text": "protected function setup() {}", "title": "" }, { "docid": "ec8315dfbe94070ccd0677c201a3b44d", "score": "0.819242", "text": "private function setup()\n {\n }", "title": "" }, { "docid": "0daddd8a7500a92bf6013d223395a268", "score": "0.8181703", "text": "public function setup() {}", "title": "" }, { "docid": "911153a5633b64d92c6982edf7473069", "score": "0.8133478", "text": "protected abstract function setup();", "title": "" }, { "docid": "c4b4715712a9f542a319f7e9a86d1a32", "score": "0.80681497", "text": "abstract public function __runSetup();", "title": "" }, { "docid": "57fa5e97be029f3a4fd4a7cfce491a31", "score": "0.8052012", "text": "public function setup();", "title": "" }, { "docid": "57fa5e97be029f3a4fd4a7cfce491a31", "score": "0.8052012", "text": "public function setup();", "title": "" }, { "docid": "57fa5e97be029f3a4fd4a7cfce491a31", "score": "0.8052012", "text": "public function setup();", "title": "" }, { "docid": "57fa5e97be029f3a4fd4a7cfce491a31", "score": "0.8052012", "text": "public function setup();", "title": "" }, { "docid": "a8cbec544af06f064d2d7dcd41c57a72", "score": "0.8002337", "text": "public abstract static function setup();", "title": "" }, { "docid": "5826649a76354c8880de9a90c3dcaf5f", "score": "0.79416835", "text": "public static function setup() {\n }", "title": "" }, { "docid": "e2329a25e62e3100d9db7597f4de49a2", "score": "0.78674656", "text": "function setup() {}", "title": "" }, { "docid": "cd224c7c355ea8a227b899af1f70d0e1", "score": "0.7847339", "text": "public function setup() {\r\n \r\n }", "title": "" }, { "docid": "66e43860bd5eb4c85b4d38ac084e125e", "score": "0.7733233", "text": "public function setup(){\r\n \t\r\n }", "title": "" }, { "docid": "4b35567d91a62d246209e0183ab8d3c4", "score": "0.7674165", "text": "public function setup() {\n\t}", "title": "" }, { "docid": "7348c1d5d67e0511fe4fc04e46b686d6", "score": "0.7666339", "text": "public function setup()\n {\n\n $this->setVersion();\n\n $this->setEnvVariables();\n\n $this->setMediumApiHeaders();\n\n }", "title": "" }, { "docid": "c5108e66f71bbdfa0e50823c666064df", "score": "0.7624727", "text": "public function Setup() {\n }", "title": "" }, { "docid": "c5108e66f71bbdfa0e50823c666064df", "score": "0.7624727", "text": "public function Setup() {\n }", "title": "" }, { "docid": "1650b05da0cee27a4e42da03c821da00", "score": "0.7590517", "text": "public function setup()\n {\t\t\n }", "title": "" }, { "docid": "5b30a8b9fe7b1a5e5922964e267edc67", "score": "0.75714254", "text": "protected function set_up()\n {\n }", "title": "" }, { "docid": "d2d9f01bd869b87db1e11ce6ca3cc8b8", "score": "0.7553509", "text": "public function setup() {\n\t\t$this->includes();\n\t\t$this->init_hooks();\n\t\t$this->instance();\n\t}", "title": "" }, { "docid": "ad1892a2361ea926f21c472ec81453b4", "score": "0.7532792", "text": "public function setup() {\n }", "title": "" }, { "docid": "3d8cf67e5d9c8ee26d519c736fc002ad", "score": "0.7467968", "text": "public function setup()\n\t{\n\t\t$this->_initView();\n\t\t$this->_initSearch();\n\t\t$this->_initNavigation();\n\t}", "title": "" }, { "docid": "abe6bb536654efbc7be28d0f0c27c78e", "score": "0.7374502", "text": "public function setup14()\n\t{\n\n\t}", "title": "" }, { "docid": "50a0856de90238c47b993de4b956d553", "score": "0.73741055", "text": "public function setup12()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "7de6cd953aa60e4e3b96ed9d04a0d9be", "score": "0.73536164", "text": "protected function _setUp() {}", "title": "" }, { "docid": "6d3b842307b28ca3e9bef00519d94522", "score": "0.73416734", "text": "public function setup()\n {\n // TODO: Implement setup() method.\n }", "title": "" }, { "docid": "b71e6bae6acc07ab82569352bc57f5aa", "score": "0.7332637", "text": "public function setup()\n {\n parent::setup();\n }", "title": "" }, { "docid": "b71e6bae6acc07ab82569352bc57f5aa", "score": "0.7332637", "text": "public function setup()\n {\n parent::setup();\n }", "title": "" }, { "docid": "d8020f226b375056b254e82b2b99541a", "score": "0.73144925", "text": "protected function setup() {\n\n\t\t$this->loadServices();\n\n\t\t$this->loadConfiguration();\n\t}", "title": "" }, { "docid": "0031a0cba32b2b9b504e4fa95b9519dc", "score": "0.730197", "text": "public function setup(): void\n {\n # do by default just nothing\n }", "title": "" }, { "docid": "0ff370b6b76176a1d3ad5ece2361fd95", "score": "0.72717315", "text": "protected function setup(){\n\t\t\n\t\t$this->setCreditDetails( array( \n\t\t\t'name' => $this->getName(), \n\t\t\t'version' => self::VERSION,\n\t\t\t'author' => 'Jean-Lou Dupont', \n\t\t\t'description' => 'Some description. ',\n\t\t\t'url' \t\t=> 'http://mediawiki.org/wiki/Extension:ExtensionManager',\t\t\t\n\t\t\t) );\n\t\t\n\t\t$this->setStatus( self::STATE_OK );\n\t\t\t\n\t\t// do some other stuff here\n\t}", "title": "" }, { "docid": "22a987a2503eefc47a1cc1ab09d93a55", "score": "0.7269789", "text": "public function setup()\n {\n }", "title": "" }, { "docid": "22a987a2503eefc47a1cc1ab09d93a55", "score": "0.7269789", "text": "public function setup()\n {\n }", "title": "" }, { "docid": "22a987a2503eefc47a1cc1ab09d93a55", "score": "0.7269789", "text": "public function setup()\n {\n }", "title": "" }, { "docid": "22a987a2503eefc47a1cc1ab09d93a55", "score": "0.7269789", "text": "public function setup()\n {\n }", "title": "" }, { "docid": "ff622598ab6e3a6165b83614a31b14db", "score": "0.7265547", "text": "public function setup(){\n \t\treturn true;\n \t}", "title": "" }, { "docid": "d00b67417f96f2ada2eb4fb5e28b6961", "score": "0.72643733", "text": "public function setup() {\n $this->structure();\n }", "title": "" }, { "docid": "d00b67417f96f2ada2eb4fb5e28b6961", "score": "0.72643733", "text": "public function setup() {\n $this->structure();\n }", "title": "" }, { "docid": "f06e5d405408f2b9a3712428a0c7efc9", "score": "0.72611374", "text": "private function setup() {\n // No need?\n if (self::g('client') != \"\") return;\n\n // Setup!\n self::s('client', Encryption::enc($this->client, Site::getKey('session')));\n self::s('created', date(\"Y-m-d H:i:s\"));\n // Every Session use a unique key; see getInternalKey().\n //\n $this->buildInternalKey();\n $this->set(\"end\", \"now.\");\n }", "title": "" }, { "docid": "86feb62de2c285afd5fd94fb6f13a8c4", "score": "0.7258749", "text": "public function setup()\r\n {\r\n }", "title": "" }, { "docid": "2d0befe5ad80f2935cc11fca2c5150a0", "score": "0.7193699", "text": "public function setup() {\r\n $config = SiteConfig::current_site_config();\r\n\t\t$username = $config->SurveyMonkeyUserName;\t\t\r\n\t\t$password = $config->SurveyMonkeyPassword; // TODO Decryption logic will go here\r\n\r\n\t\t\r\n\t\t$this->totalSteps = 1;\r\n\t}", "title": "" }, { "docid": "92a671dbb47b7663b5c93c35a79b914a", "score": "0.7192143", "text": "public function setup22()\n\t{\n\n\t}", "title": "" }, { "docid": "f1c45d6e7cd80005a99fa189f968620f", "score": "0.71919787", "text": "function ea_setup() {\n\t /* do stuff heree. */\n\t}", "title": "" }, { "docid": "bee1bb2aa0d660b8a5a7744faade6115", "score": "0.7170709", "text": "public function startup() {\n\t\t\n\t}", "title": "" }, { "docid": "acd7582e32327546d7cbb563f48628d9", "score": "0.7157614", "text": "private function setup(){\n\t\t$this->sql_config();\n\t\t$this->sql_connect();\n\t\t$this->sql_select();\n\t}", "title": "" }, { "docid": "7183e1938b1157898dca10f13b7abbda", "score": "0.71511257", "text": "function setUp()\n\t{\n\t\t$_SERVER['HTTP_NO_CC_CALL'] = 'true';\n\t\t\n\t\t$this->stamp = $_SERVER['STAMP'];\n\t\t$_SERVER['STAMP'] = __CLASS__.'-'.$_SERVER['STAMP'];\n\n\t\t$this->ids = $_SERVER['unit_test_ids'];\n\t\t$this->user = logTestUserIn($_SERVER['unit_test_ids']['user_id']);\n \t$this->merchant_id = $_SERVER['unit_test_ids']['merchant_id'];\n \t$this->merchant = SplickitController::getResourceFromId($this->merchant_id, 'Merchant');\n\t\tsetContext('com.splickit.worldhq');\n\t}", "title": "" }, { "docid": "a409726c12214338367309a0cfc6f94d", "score": "0.7147402", "text": "public function backend_setup() {\n\n\t\t$this->create_instances();\n\t\t$this->add_actions();\n\t}", "title": "" }, { "docid": "0d23ef100c12f159b86e2b5e1550d443", "score": "0.7117667", "text": "protected function setUp ()\n\t{\n\n\t}", "title": "" }, { "docid": "649f805b428b54aed33d2b1f666e0f2e", "score": "0.7116933", "text": "public function startup()\n\t{\n\t}", "title": "" }, { "docid": "108cb2c2ded2ff12298b55468be34b12", "score": "0.7102352", "text": "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\n\t}", "title": "" }, { "docid": "f68076abd814e4099064b40d1b51edc5", "score": "0.7097047", "text": "protected function setUp() {\r\n\t\t$this->config = new Tx_Addthis_Config ();\r\n\t\t$this->codeGenerator = new Tx_Addthis_CodeGenerator ( $this->config );\r\n\t}", "title": "" }, { "docid": "bcf228b07a8ffe4993ba575234f2897e", "score": "0.70964813", "text": "protected function setUp()\n {\n if ($GLOBALS['OFFICIAL_API'] == 1) {\n $this->fm = new \\FileMaker($GLOBALS['DB_FILE'], $GLOBALS['DB_HOST'], $GLOBALS['DB_USER'], $GLOBALS['DB_PASSWD']);\n } else {\n $this->fm = new FileMaker($GLOBALS['DB_FILE'], $GLOBALS['DB_HOST'], $GLOBALS['DB_USER'], $GLOBALS['DB_PASSWD'], ['errorHandling' => 'exception']);\n }\n //$this->fm->newPerformScriptCommand('sample', 'cleanup db')->execute();\n }", "title": "" }, { "docid": "e227724783d22d6b5198bd8068128939", "score": "0.7091172", "text": "public function __runAfterSetup() { }", "title": "" }, { "docid": "886c1398e865017409911a1eda4f3299", "score": "0.70876366", "text": "protected function setUp() {\n\n\t\t$this->registry = tx_pttools_registry::getInstance();\n\t\n\t}", "title": "" }, { "docid": "f3b144baf27c06c129ffe4c3e8f379bf", "score": "0.708517", "text": "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}", "title": "" }, { "docid": "f3b144baf27c06c129ffe4c3e8f379bf", "score": "0.708517", "text": "public function setUp() {\n\t\t$this->student = StudentData::getStudent();\n\t\t$this->school = SchoolData::getSchool();\n\t}", "title": "" }, { "docid": "63a9af04b43dbce64a8e72dd1e62c875", "score": "0.70736396", "text": "public function setup() {\r\n\t\t$this->path_user = \"user_logs/\";\t\t\t//\r\n\t\t$this->path_server = \"server_logs/\";\t\t\t//\r\n\t\tif (!is_dir($this->path_user))\t\t\t\t//\r\n\t\t\tmkdir($this->path_user);\t\t\t//\r\n\t\tif (!is_dir($this->path_server))\t\t\t//\r\n\t\t\tmkdir($this->path_server);\t\t\t//\r\n\t\tif (!file_exists(\"spoof_list\"))\t\t\t\t//\r\n\t\t\ttouch(\"spoof_list\");\t\t\t\t//\r\n\t\tif (!file_exists(\"users.conf\"))\t\t\t\t//\r\n\t\t\ttouch(\"users.conf\");\t\t\t\t//\r\n\t}", "title": "" }, { "docid": "7984c51dffc6435f10e42b736d5b1aea", "score": "0.7063348", "text": "private function setupInitialData()\n {\n \n }", "title": "" }, { "docid": "3533d1c495644d9a1cdf4c6e6483a145", "score": "0.7060069", "text": "protected function setUp() {\n\t\t\n\t}", "title": "" }, { "docid": "5e481e3a52d88d2c78c5e871ff92b7c8", "score": "0.7039306", "text": "function setup() {\n\t\t\n\t}", "title": "" }, { "docid": "b5afdef277a52087e17e2342c925d24e", "score": "0.6992322", "text": "public function setUp()\n\t{\n\t\t$this->utils = new Blackbox_Utils();\n\t}", "title": "" }, { "docid": "19d8c25804eeda4c125795042f0b4820", "score": "0.69842887", "text": "protected function setUp()\n\t{\n\t\tBlackbox_Utils::setToday('2008-01-01 10:15:00');\n\n\t\tif (!@include_once(BFW_DIR.'/include/modules/olp/stat_limits.php'))\n\t\t{\n\t\t\t$this->markTestSkipped('I am ashamed of you!');\n\t\t}\n\n\t\t$this->db = @Setup_DB::Get_Instance('blackbox', 'LOCAL');\n\n\t\t$this->config = OLPBlackbox_Config::getInstance();\n\t\t$this->config->olp_db = $this->db;\n\t}", "title": "" }, { "docid": "307f3c357c9942a11925114fba2eb038", "score": "0.6970364", "text": "public function startup()\n\t{\n\n\t\tparent::startup();\n\t}", "title": "" }, { "docid": "eede839046441ee6e044274a12f06b29", "score": "0.69678295", "text": "public function setUp() {\n\t\n\t\t$this->logic_obj= new logicGenerator();\n\t}", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.6964809", "text": "protected function setUp() {}", "title": "" }, { "docid": "0cee9c62b358af9a08f52ecb5a3eecdb", "score": "0.6959971", "text": "public function setUp()\n {\n $this->obj = $this->createObj();\n }", "title": "" }, { "docid": "256b7be537d384bd5b4e3820c3199d04", "score": "0.69573194", "text": "public function setup() {\n // If it does, turn on error reporting\n if ($_COOKIE['debug'] == \"true\") {\n ini_set('display_errors', 1);\n ini_set('display_startup_errors', 1);\n error_reporting(E_ALL);\n }\n }", "title": "" }, { "docid": "7d371de5a1f002193dc204e296e3a231", "score": "0.6954617", "text": "protected function setup()\n {\n $this->server = new BuiltInServer('configLoader');\n $this->server_addr = $this->server->start();\n $this->server_pid = $this->server->getPid();\n\n $this->shared_file = sys_get_temp_dir().'/'.$this->server_pid.'.lock';\n @unlink($this->shared_file); // remove it if it exists\n }", "title": "" }, { "docid": "de4c3a27c4375fea290beb656dbf523a", "score": "0.6940908", "text": "protected function setUp(): void\n\t{\n\t\trequire_once(SUBSDIR . '/Auth.subs.php');\n\t}", "title": "" }, { "docid": "132a4c8a5435048dd4dd99c7456f935b", "score": "0.6934582", "text": "public static function run() {\r\n \tself::setupPath();\r\n \tself::definePaths();\r\n \tself::defineTimezone();\r\n \tself::classLoader();\r\n \tself::sessionStart();\r\n self::errorHandling();\r\n self::setupRegistry();\r\n self::setupView();\r\n self::setupDatabase();\r\n self::setupController();\r\n }", "title": "" }, { "docid": "cfd1db4771862dbecb60200ae9f47a29", "score": "0.69239116", "text": "public function setup() {\n\t\tparent::setup();\n\n\t\t$this->Lib = new RomanLib();\n\t}", "title": "" }, { "docid": "4e5cce06d04c3e2ab3493b6b1c7cad62", "score": "0.69179416", "text": "public static function setup()\r\n {\r\n\r\n\t\ttry{\r\n\r\n\t\t\t/*Incident Create\r\n\t\t\t$incidentOne = new RNCPHP\\Incident();\r\n\r\n\t\t\t$incidentOne->Subject = \"Product Info\";\r\n\r\n\t\t\t$incidentOne->Threads = new RNCPHP\\ThreadArray();\r\n\t\t\t$incidentOne->Threads[0] = new RNCPHP\\Thread();\r\n\t\t\t$incidentOne->Threads[0]->EntryType = new RNCPHP\\NamedIDOptList();\r\n\t\t\t$incidentOne->Threads[0]->EntryType->ID = 3;\r\n\t\t\t$incidentOne->Threads[0]->Text = \"I need the info about the broadband services.\";\r\n\r\n\t\t\t$incidentOne->StatusWithType = new RNCPHP\\StatusWithType() ;\r\n\t\t\t$incidentOne->StatusWithType->Status = new RNCPHP\\NamedIDOptList() ;\r\n\t\t\t$incidentOne->StatusWithType->Status->ID = 2 ;\r\n\r\n\t\t\t//$incidentOne->PrimaryContact = RNCPHP\\Contact::fetch(self::$contact_id);\r\n\t\t\t$incidentOne->PrimaryContact = RNCPHP\\Contact::fetch(5);\r\n\r\n\t\t\t$incidentOne->save(RNCPHP\\RNObject::SuppressAll);\r\n\t\t\tself::$incident_id = $incidentOne->ID;\r\n\r\n\t\t\techo '<br/> Incident Id:'.$incidentOne->ID.'<br/>';\r\n\t\t\techo 'Subject:'.$incidentOne->Subject.' Desc:'.$incidentOne->Threads[0]->Text;\r\n\r\n\t\t\techo \"<br/><br/><br/>\";\r\n\t\t\t//print_r($incidentOne);\r\n\r\n\t\t\techo \"TestingPhase_Stage1\";*/\r\n\t\t\t// Object Creation\r\n\r\n\t\t}\r\n\t\tcatch (Exception $err ){\r\n\t\t\techo $err->getMessage();\r\n\t\t}\r\n\r\n\r\n return;\r\n }", "title": "" }, { "docid": "e805f3164862ad0660466bd75275c59e", "score": "0.6911852", "text": "public function setup()\n {\n $this->errorOutputStream = new MemoryOutputStream();\n TestConsoleApp::$exception = null;\n }", "title": "" }, { "docid": "4a2f5791215d4ccb0ac6422a48f7811b", "score": "0.6909167", "text": "public function setup() {\n\t\t$this->parsePageMeta();\n\t\t$this->setupPageData();\n\t\t$this->formatPageContent();\n\t\t$this->formatPageExcerpt();\n\t\t$this->formatPageDate();\n\t\t$this->createPermalink();\n\t}", "title": "" }, { "docid": "39bca3a6a77c269193f7dee1a99ab8c6", "score": "0.690584", "text": "public function setUp(): void\n {\n $this->setFs(new Filesystem());\n\n // generate unique working path for future use in commands\n $this->setWorkingPath(PATH_TMP . DS . uniqid('bluzman_'));\n\n $loader = new NativeLoader();\n $fixture = $loader->loadfile(__DIR__ . DS . 'Resources' . DS . 'fixtures' . DS . 'application.yml');\n $this->setApplication($fixture->getObjects()['app']);\n }", "title": "" }, { "docid": "6a3a4870eadfecdfb03ff0f5e4eb4107", "score": "0.6899047", "text": "public function setUp(): void\n {\n\t\t$app = new Yahmi\\Core\\Application(\n\t\t \"/Users/inspire/Sites/research/yahmi-app\"\n\t\t);\n //create config folder and \n fwrite(STDOUT, __METHOD__ . \"\\n\");\n \n }", "title": "" }, { "docid": "87f4ec473f02ed5556e2b72cafefae6a", "score": "0.68961084", "text": "public final function setUp() : void {\n\t\tparent::setUp();\n\t}", "title": "" }, { "docid": "7aa4faa74308401c4cf93eb84c520550", "score": "0.68945044", "text": "protected function setUp()\n\t{\n\t\tparent::setUp();\n\t\t$this->workDir = get_class($this) . '/' . $this->name;\n\t\tif ($this->dataName || 0 === $this->dataName) {\n\t\t\t//TODO dataName should be escaped\n\t\t\t$this->workDir .= '/' . $this->dataName;\n\t\t}\n\n\t\t$this->fsDriver = new FileSystemDriver(WORK_DIR);\n\t\t$this->builder = new PhpCmcBuilder($this->assert);\n\t}", "title": "" }, { "docid": "fcb035b281d29c25244626ef356d55ef", "score": "0.6891472", "text": "public function startup() {\n\t\tparent::startup();\n\t}", "title": "" }, { "docid": "2e553fdef9ba3f89b3833f42a619c595", "score": "0.6890954", "text": "public function setup() {\n\t\t$typeLength = sizeof($this->types);\n\t\t$this->totalSteps = $typeLength;\n\t}", "title": "" }, { "docid": "2cb024d1f250366c6f9900f84b2c535b", "score": "0.68896276", "text": "protected function setUp()\n {\n $this->fm = new FileMaker($GLOBALS['DB_FILE'], $GLOBALS['DB_HOST'], $GLOBALS['DB_USER'], $GLOBALS['DB_PASSWD']);\n }", "title": "" }, { "docid": "e6f09be3041cbf1a2d56344c7348a35a", "score": "0.6875377", "text": "public function setUp()\n {\n $this->library = new TaskLibrary();\n }", "title": "" }, { "docid": "374a9206c73c3e4128c821fc1c921c96", "score": "0.6875118", "text": "public function setup(){\n\t\t\t// Register settings\n\t\t\trequire_once( PRODUCTS_SLIDER_INCLUDES_DIR . '/products-slider-settings.php' );\n\t\t\t$this->settings = new Product_Slider_Settings;\n\n\t\t\trequire_once( PRODUCTS_SLIDER_INCLUDES_DIR . '/products-slider-ajax.php' );\n\t\t\t//$this->ajax = new ps_ajax;\n\t\t}", "title": "" }, { "docid": "b285baf722a3fb30f43530733d1a06fc", "score": "0.6874865", "text": "function setUp(){\n\t}", "title": "" }, { "docid": "e6bd13a355db60acd5f112daa8e0ed1b", "score": "0.68699634", "text": "private static function initialise() {\n\t\t\tself::registerAutoloader();\n\t\t\tself::checkRequirements();\n\t\t}", "title": "" }, { "docid": "12438a6e5b76ac7a87e74b8d2dc68664", "score": "0.6868734", "text": "public function startup()\n {\n // nothing to do\n }", "title": "" }, { "docid": "733a3d5f1b2037bad0451fb2f61b9718", "score": "0.6868436", "text": "public function setUp()\n\t{\n\t\tparent::setUp();\n\t\t$this->prepareForTests();\n\t}", "title": "" }, { "docid": "2497ad19999ef808a421276450aac912", "score": "0.6855109", "text": "protected function setUp() {\n $this->bmresult = new Result;\n }", "title": "" }, { "docid": "bf14095236a1885b30a3e95e0632dde9", "score": "0.6848098", "text": "protected function _init() {}", "title": "" }, { "docid": "bf14095236a1885b30a3e95e0632dde9", "score": "0.6848098", "text": "protected function _init() {}", "title": "" }, { "docid": "935b5771bf39d3688f0495fc4b250dca", "score": "0.68466306", "text": "function startup(){\n $sPath = APP_PATH .'config' .DS. 'fixtures';\n\n if(isset($this->params['p'])) $sPath = $this->params['p'];\n if(isset($this->params['path'])) $sPath = $this->params['path'];\n \n define('FIXTURES_PATH', $sPath );\n \n if(isset($this->params['c'])) $this->sConnection = $this->params['c'];\n if(isset($this->params['connection'])) $this->sConnection = $this->params['connection'];\n \n if( !class_exists( 'Fixturize' ) )\n $this->error( 'File not found', 'Fixtures class is needed for this shell to run. Could not be found - exiting.' );\n \n $this->oFixtures = new Fixturize( $this->sConnection );\n \n $this->_welcome();\n }", "title": "" }, { "docid": "f63275b72ee490f65c9621411f282e38", "score": "0.6844055", "text": "function setup() {\n\t\tif ($this->database['connected']) {\n\t\t\t$this->pref\t\t= new PrefManager();\n\n\t\t\t$this->domain\t= $this->currentDomain();\n\t\t\t\n\t\t\t$storedBase = $this->pref->read('baseURL');\n\t\t\tif ($storedBase && strlen($storedBase)>0) {\n\t\t\t\t$this->baseURL\t= $storedBase;\n\t\t\t} else {\n\t\t\t\t$this->baseURL\t= \"http\" . (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ? \"s\" : \"\") . \"://\" . $this->domain . preg_replace(\"/\\?(&?[^=]+=?[^=]*)*$/\", \"\", $_SERVER['REQUEST_URI']);\n\t\t\t}\n\n\t\t\t$this->auth\t\t= new AuthManager();\n\t\t\t$this->stats\t= new StatManager();\n\t\t\t$this->apps\t\t= new AppManager();\n\t\t\t$this->versions\t= new VersionManager();\n\t\t\t$this->rates\t= new RateManager();\n\t\t\t$this->table\t= new TableManager();\n\t\t}\n\t}", "title": "" }, { "docid": "415b71225b8acd462355e9bee0c8396f", "score": "0.6843767", "text": "protected function setUp()\n\t{\n\t\t// does nothing\n\t}", "title": "" }, { "docid": "d66db13c5ad22977bda3af79be639837", "score": "0.6839703", "text": "protected function setUp() {\n\t\tob_start ();\n\t\t\n\t\t$this->object = new zabbix_permissions ( false, \"TESTS zabbix permissions\" );\n\t}", "title": "" }, { "docid": "c39f4589ff49cabd8d1903d590506424", "score": "0.68357", "text": "function setup()\n {\n Uber::init();\n $path = dirname(dirname(__FILE__));\n Uber_Loader::registerNamespace('Xmpl', $path . DIRECTORY_SEPARATOR . 'fixtures' . DIRECTORY_SEPARATOR . 'plugin');\n $GLOBALS['UBER']['actions'] = array();\n parent::setUp();\n }", "title": "" }, { "docid": "47e37af71892912e63125ae5ae3fbe91", "score": "0.6835211", "text": "function setUp() {\r\n $this->sqlmap =& MapsicleFactory::buildMapsicle(MAPSICLE_TEST_CONFIG);\r\n $this->db =& $this->sqlmap->db;\r\n }", "title": "" }, { "docid": "4fe4fb91f13f18c83ed1264b559b70c9", "score": "0.68338317", "text": "public function setUp() {\n\t\t\n\t}", "title": "" }, { "docid": "7b7a465ba815a31885e3684cb21bc4f3", "score": "0.68297017", "text": "protected function setUp()\n\t{\n\t\t$this->object = new JLanguage;\n\n\t\tinclude_once 'inspectors.php';\n\t}", "title": "" }, { "docid": "02c2f222006559a620bcbd0582ee4f3c", "score": "0.6823004", "text": "function __construct(){\n\t\t\t$this->setup();\n\t\t}", "title": "" }, { "docid": "3a2b97dbbc678e4267f0ad8d8e4a9b0a", "score": "0.68208116", "text": "public function setUp() {\n\t\t$this->parser = new OsParser();\n\t}", "title": "" } ]
7d82d9dac68706c09507eb4c3f5104e7
Initializes the collFishpandls collection. By default this just sets the collFishpandls collection to an empty array (like clearcollFishpandls()); however, you may wish to override this method in your stub class to provide setting appropriate to your application for example, setting the initial array to the values stored in database.
[ { "docid": "c42dafe2f7c5a8a211dd5f84a2093087", "score": "0.6956059", "text": "public function initFishpandls($overrideExisting = true)\n {\n if (null !== $this->collFishpandls && !$overrideExisting) {\n return;\n }\n\n $collectionClassName = FishpandlTableMap::getTableMap()->getCollectionClassName();\n\n $this->collFishpandls = new $collectionClassName;\n $this->collFishpandls->setModel('\\lwops\\lwops\\Fishpandl');\n }", "title": "" } ]
[ { "docid": "920040c014597b139441cf737181d472", "score": "0.66932833", "text": "public function clearFishpandls()\n {\n $this->collFishpandls = null; // important to set this to NULL since that means it is uninitialized\n }", "title": "" }, { "docid": "6d6d22a65f869c1ecfbfbbab131efa00", "score": "0.62704295", "text": "public function setFishpandls(Collection $fishpandls, ConnectionInterface $con = null)\n {\n /** @var ChildFishpandl[] $fishpandlsToDelete */\n $fishpandlsToDelete = $this->getFishpandls(new Criteria(), $con)->diff($fishpandls);\n\n\n $this->fishpandlsScheduledForDeletion = $fishpandlsToDelete;\n\n foreach ($fishpandlsToDelete as $fishpandlRemoved) {\n $fishpandlRemoved->setLineofbusiness(null);\n }\n\n $this->collFishpandls = null;\n foreach ($fishpandls as $fishpandl) {\n $this->addFishpandl($fishpandl);\n }\n\n $this->collFishpandls = $fishpandls;\n $this->collFishpandlsPartial = false;\n\n return $this;\n }", "title": "" }, { "docid": "355bb05c20c411038b428a0ae00bc01c", "score": "0.53857666", "text": "public function __construct()\n {\n $this->acoesFiscalizacao = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }", "title": "" }, { "docid": "770b4c38e254f7c9acb29956630d2953", "score": "0.5338394", "text": "public function initCamps()\n\t{\n\t\t$this->collCamps = array();\n\t}", "title": "" }, { "docid": "6980425ac09e0171611fbbba06cb1798", "score": "0.53348565", "text": "protected function doInitialize()\n {\n $property = $this->getCollectionProperty();\n\n $items = array();\n if (property_exists($this, $property)) {\n if (is_array($this->$property)) {\n $items = $this->$property;\n } else {\n $items[] = $this->$property;\n }\n }\n\n $this->collection = new ArrayCollection($items);\n }", "title": "" }, { "docid": "3141efef78f3932dc3e68994f3e18b84", "score": "0.52506113", "text": "public function initLembSertifikasis($overrideExisting = true)\n {\n if (null !== $this->collLembSertifikasis && !$overrideExisting) {\n return;\n }\n $this->collLembSertifikasis = new PropelObjectCollection();\n $this->collLembSertifikasis->setModel('LembSertifikasi');\n }", "title": "" }, { "docid": "610362eecba750d24bee891004fda5f7", "score": "0.50824904", "text": "public function initPettyCashs()\n\t{\n\t\t$this->collPettyCashs = array();\n\t}", "title": "" }, { "docid": "d3f2489de9d3cfd0c463dd2b720b962c", "score": "0.5057846", "text": "public function getFishpandls(Criteria $criteria = null, ConnectionInterface $con = null)\n {\n $partial = $this->collFishpandlsPartial && !$this->isNew();\n if (null === $this->collFishpandls || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collFishpandls) {\n // return empty collection\n $this->initFishpandls();\n } else {\n $collFishpandls = ChildFishpandlQuery::create(null, $criteria)\n ->filterByLineofbusiness($this)\n ->find($con);\n\n if (null !== $criteria) {\n if (false !== $this->collFishpandlsPartial && count($collFishpandls)) {\n $this->initFishpandls(false);\n\n foreach ($collFishpandls as $obj) {\n if (false == $this->collFishpandls->contains($obj)) {\n $this->collFishpandls->append($obj);\n }\n }\n\n $this->collFishpandlsPartial = true;\n }\n\n return $collFishpandls;\n }\n\n if ($partial && $this->collFishpandls) {\n foreach ($this->collFishpandls as $obj) {\n if ($obj->isNew()) {\n $collFishpandls[] = $obj;\n }\n }\n }\n\n $this->collFishpandls = $collFishpandls;\n $this->collFishpandlsPartial = false;\n }\n }\n\n return $this->collFishpandls;\n }", "title": "" }, { "docid": "730f840ff3ed17d445f4bf4a1fae0777", "score": "0.50399977", "text": "public function initDemografis($overrideExisting = true)\n {\n if (null !== $this->collDemografis && !$overrideExisting) {\n return;\n }\n $this->collDemografis = new PropelObjectCollection();\n $this->collDemografis->setModel('Demografi');\n }", "title": "" }, { "docid": "ddaabb7c86bd72fe47727df574db6a80", "score": "0.49772787", "text": "public function initViajes()\n {\n $collectionClassName = ViajeUsuarioTableMap::getTableMap()->getCollectionClassName();\n\n $this->collViajes = new $collectionClassName;\n $this->collViajesPartial = true;\n $this->collViajes->setModel('\\Viaje');\n }", "title": "" }, { "docid": "f163227789d4f24efd6cd3ce5471d23c", "score": "0.4951166", "text": "public function __construct() {\n\t\t$this->listsOfCandidates = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n\t}", "title": "" }, { "docid": "2befe6782aa731297775eb96f98adafe", "score": "0.49443814", "text": "public function __construct()\n {\n $this->groupes = new ArrayCollection();\n $this->membres = new ArrayCollection();\n }", "title": "" }, { "docid": "62f7376e3a2d0178fb2cfe28bccadc94", "score": "0.49051273", "text": "public function __construct()\n {\n $this->albums = new ArrayCollection();\n $this->pictures = new ArrayCollection();\n $this->categories = new ArrayCollection();\n }", "title": "" }, { "docid": "0f0e07403b5a8df12e568ab2667d3431", "score": "0.4901464", "text": "public function initMuloks($overrideExisting = true)\n {\n if (null !== $this->collMuloks && !$overrideExisting) {\n return;\n }\n $this->collMuloks = new PropelObjectCollection();\n $this->collMuloks->setModel('Mulok');\n }", "title": "" }, { "docid": "981e1a7de33a9378dfbb3e4fcbaca6b5", "score": "0.48582804", "text": "public function initSekolahs($overrideExisting = true)\n {\n if (null !== $this->collSekolahs && !$overrideExisting) {\n return;\n }\n $this->collSekolahs = new PropelObjectCollection();\n $this->collSekolahs->setModel('Sekolah');\n }", "title": "" }, { "docid": "586f7c926c62595220a97165522b079e", "score": "0.48436314", "text": "public function __construct()\n {\n $this->clubs = new ArrayCollection();\n }", "title": "" }, { "docid": "ca7b4e7bbf9f8df108161cb5c2433d23", "score": "0.48360282", "text": "public function initFeatures($overrideExisting = true)\n {\n if (null !== $this->collFeatures && !$overrideExisting) {\n return;\n }\n $this->collFeatures = new PropelObjectCollection();\n $this->collFeatures->setModel('Feature');\n }", "title": "" }, { "docid": "bd6d0bb4fbd28fdc8958f72062206f3f", "score": "0.48256022", "text": "public function initFacturaDetalles($overrideExisting = true)\n {\n if (null !== $this->collFacturaDetalles && !$overrideExisting) {\n return;\n }\n $this->collFacturaDetalles = new PropelObjectCollection();\n $this->collFacturaDetalles->setModel('FacturaDetalle');\n }", "title": "" }, { "docid": "1565b1b28116c1c8ca2b657424b9a752", "score": "0.48184264", "text": "public function init()\n {\n if ($this->Collection() === null) {\n return;\n }\n $event = new Enlight_Event_Handler_Default('Enlight_Controller_Action_PreDispatch', [\n $this, 'onPreDispatch',\n ]);\n $this->Application()->Events()->registerListener($event);\n }", "title": "" }, { "docid": "6695b0e6f3a47fb24b779e1cc72d17d9", "score": "0.48113364", "text": "public function __construct()\n {\n $this->teams = new ArrayCollection();\n $this->officials = new ArrayCollection();\n }", "title": "" }, { "docid": "c6acf8e8b9bac54c0d972328220abca4", "score": "0.48076257", "text": "protected function init()\r\n {\r\n $this->totais = [\r\n 'valor_recebido' => 0,\r\n 'liquidados' => 0,\r\n 'entradas' => 0,\r\n 'baixados' => 0,\r\n 'protestados' => 0,\r\n 'erros' => 0,\r\n 'alterados' => 0,\r\n ];\r\n }", "title": "" }, { "docid": "da9327b148b7fe22a5480fd92598dbe4", "score": "0.48033866", "text": "protected function init()\n\t{\n\t\t$this->addIngredient(new PizzaSauce)->addIngredient(new SpicyCheese);\n\t}", "title": "" }, { "docid": "ccfc51692d9738cdb391add5db953ad2", "score": "0.4794907", "text": "public function initExpensesTranss()\n\t{\n\t\t$this->collExpensesTranss = array();\n\t}", "title": "" }, { "docid": "3f9b64f1817e97e6d0ea65950d79c023", "score": "0.4792358", "text": "static private function initAllShoes() {\n\t\tself::$AllShoes = array();\n\t\t$shoes = DB::getInstance()->query('SELECT * FROM `'.PREFIX.'shoe` '.self::getOrder())->fetchAll();\n\t\tforeach ($shoes as $shoe)\n\t\t\tself::$AllShoes[(string)$shoe['id']] = $shoe;\n\t}", "title": "" }, { "docid": "356c8613a7c6f27451a3d7bad25e6840", "score": "0.47920787", "text": "public function __construct() {\n\t\t$this->products = new ArrayCollection();\n\t}", "title": "" }, { "docid": "c8dc3849487b2da45ec62c05e622f9a9", "score": "0.47798753", "text": "public function __construct()\n {\n $this->composants = new ArrayCollection();\n $this->listeCompo = new ArrayCollection();\n\n }", "title": "" }, { "docid": "9a9046a1fec7cd17ee35eb5e6f161cc2", "score": "0.47708493", "text": "public function init()\r\n\t{\r\n\t\t// For compatibility reasons, collection name must be stored in \"authFile\"\r\n\t\t$this->authFile = $this->collectionName;\r\n\t\t$this->load();\r\n\t}", "title": "" }, { "docid": "72c7e620acb20304f387db8fdca9204c", "score": "0.47579032", "text": "public function __construct()\r\n\t{\r\n\t\t$this->produtos = new ArrayCollection();\r\n\t}", "title": "" }, { "docid": "38f5aadbe309166fae781cf30a236367", "score": "0.47538128", "text": "public function __construct(\\Mu4ddi3\\Compensa\\Webservice\\ArrayType\\ArrayOfScalpelCorrection $scalpelCorrections = null)\n {\n $this\n ->setScalpelCorrections($scalpelCorrections);\n }", "title": "" }, { "docid": "84ab6f253191548d8da8a461ab6f2319", "score": "0.47518605", "text": "protected function _init()\n\t{\n\t\tparent::_init();\n\t\t$this->setArray(array(\n\t\t\t\t\t\t\t array('id'=>1,\n\t\t\t\t\t\t\t\t 'name'=>'mvc',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t\t array('id'=>2,\n\t\t\t\t\t\t\t\t 'name'=>'other',\n\t\t\t\t\t\t\t ),\n\t\t\t\t\t\t));\n\t}", "title": "" }, { "docid": "759b7ebbf17bc4959b1440fc11981d18", "score": "0.4744396", "text": "public function initPubs($overrideExisting = true)\n {\n if (null !== $this->collPubs && !$overrideExisting) {\n return;\n }\n $this->collPubs = new PropelObjectCollection();\n $this->collPubs->setModel('Pub');\n }", "title": "" }, { "docid": "c0a4ba00f8be16943f9f2913697e8029", "score": "0.47427708", "text": "public function __construct() {\n $this->items = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }", "title": "" }, { "docid": "dbba33b0102986471a0e06d9d8636f91", "score": "0.47349265", "text": "public function initialize(CollectionInterface $collection);", "title": "" }, { "docid": "d0a6572e690ef17fc29e734b3587c973", "score": "0.47339892", "text": "protected function init() {\n\t\t$this->setValueIfExists('columnCount');\n\t\t$this->setValueIfExists('selectedGalleryUid');\n\t}", "title": "" }, { "docid": "f595a7cf473b1aa93830908b7d4b425c", "score": "0.47137943", "text": "public function initSucursaless($overrideExisting = true)\n {\n if (null !== $this->collSucursaless && !$overrideExisting) {\n return;\n }\n $this->collSucursaless = new PropelObjectCollection();\n $this->collSucursaless->setModel('Sucursales');\n }", "title": "" }, { "docid": "fa91cd6c49e790dca15bc33a5a483b73", "score": "0.4706616", "text": "public function initialize()\n {\n $this->setSchema(\"calculadoras\");\n $this->setSource(\"calendario_bebe_chino_2019\");\n }", "title": "" }, { "docid": "7075692f2f45975ed13a9425830693be", "score": "0.4705699", "text": "public function initPenggunas($overrideExisting = true)\n {\n if (null !== $this->collPenggunas && !$overrideExisting) {\n return;\n }\n $this->collPenggunas = new PropelObjectCollection();\n $this->collPenggunas->setModel('Pengguna');\n }", "title": "" }, { "docid": "d586eef3541b6c1b75601ce9e9c800a9", "score": "0.46904334", "text": "public static function setUpBeforeClass()\n {\n static::$entityCollection = array();\n }", "title": "" }, { "docid": "a078c736126266b12e09eefc79bcc6a4", "score": "0.46897772", "text": "function __construct() {\n $this->comments = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->favourite_posts = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }", "title": "" }, { "docid": "e54036f48d606a5e617e07f128b8beeb", "score": "0.46818218", "text": "public function initMissionPhotos()\n\t{\n\t\t$this->collMissionPhotos = array();\n\t}", "title": "" }, { "docid": "d43f0549b2d126f217e2e0081b6edf2a", "score": "0.4681256", "text": "public function initFormatss($overrideExisting = true)\n {\n if (null !== $this->collFormatss && !$overrideExisting) {\n return;\n }\n $this->collFormatss = new ObjectCollection();\n $this->collFormatss->setModel('\\Formats');\n }", "title": "" }, { "docid": "f14100799f3b1912b54eb2dea23e5e5a", "score": "0.46672115", "text": "protected function initialize() {\n //relaciones\n $this->has_and_belongs_to_many('recursos', 'model: recursos', 'fk: recursos_id', 'through: roles_recursos', 'key: roles_id');\n $this->has_and_belongs_to_many('usuarios', 'model: usuarios', 'fk: usuarios_id', 'through: roles_usuarios', 'key: roles_id');\n \n //validaciones\n $this->validates_presence_of('rol','message: Debe escribir el <b>Nombre del Rol</b>');\n $this->validates_uniqueness_of('rol','message: Este Rol <b>ya existe</b> en el sistema');\n \n }", "title": "" }, { "docid": "dbffd19ce5fd3b5ffa1d42a69d90841d", "score": "0.46520236", "text": "public function initialize()\n {\n $this->setSchema('rtb_shop_front_office');\n $this->hasMany('Id', 'Guestrelation', 'ContactId', array('alias' => 'Guestrelation'));\n }", "title": "" }, { "docid": "6fdaf574520cdd3516a6cc9195dce98a", "score": "0.46426114", "text": "public function initCitas($overrideExisting = true)\n {\n if (null !== $this->collCitas && !$overrideExisting) {\n return;\n }\n $this->collCitas = new PropelObjectCollection();\n $this->collCitas->setModel('Cita');\n }", "title": "" }, { "docid": "78ec53b752e74cd689471869b7b3404a", "score": "0.46421632", "text": "public function initialize()\n {\n $this->setSchema(\"cine2\");\n $this->setSource(\"salas\");\n $this->hasMany('id_sala', 'Proyecciones', 'sala', ['alias' => 'Proyecciones']);\n }", "title": "" }, { "docid": "4c1b14ee54d8849a2f86555aea2926bc", "score": "0.46406752", "text": "public function __construct() {\n\t\tparent::__construct();\n\t\t$this->upVotes = new ArrayCollection();\n\t\t$this->downVotes = new ArrayCollection();\n\t\t$this->favorites = new ArrayCollection();\n\t\t$this->posts = new ArrayCollection();\n\t\t$this->followedCategories = new ArrayCollection();\n\t\t$this->followedTags = new ArrayCollection();\n\t\t$this->followedUsers = new ArrayCollection();\n\t\t$this->followers = new ArrayCollection();\n\t}", "title": "" }, { "docid": "97b5165fa7a1f2cb041d00cfe9728000", "score": "0.461656", "text": "public function init()\n\t{\n\t\t$this->list_table = new WordCloud_CloudListTable( $this );\n\t}", "title": "" }, { "docid": "2ffa14f674294274823a2a03d8ac74aa", "score": "0.4616163", "text": "public function __construct()\n {\n $this->roles = new ArrayCollection();\n $this->congViecs = new ArrayCollection();\n $this->groups = new ArrayCollection();\n }", "title": "" }, { "docid": "8fab7fa08ff8d681b6aa90407732a4fd", "score": "0.46113205", "text": "public function initDatas($overrideExisting = true)\n {\n if (null !== $this->collDatas && !$overrideExisting) {\n return;\n }\n $this->collDatas = new ObjectCollection();\n $this->collDatas->setModel('\\Data');\n }", "title": "" }, { "docid": "27d0925f640a8b9c4db6f498e5c3f08a", "score": "0.46084118", "text": "public function initJadwals($overrideExisting = true)\n {\n if (null !== $this->collJadwals && !$overrideExisting) {\n return;\n }\n $this->collJadwals = new PropelObjectCollection();\n $this->collJadwals->setModel('Jadwal');\n }", "title": "" }, { "docid": "9bbcb1b60220e04024de99c225b1cb0a", "score": "0.45875746", "text": "public function __construct()\n {\n parent::__construct();\n $this->files = new ArrayCollection();\n $this->exerciseSubmissions = new ArrayCollection();\n $this->enrollments = new ArrayCollection();\n $this->photos = new ArrayCollection();\n $this->activityLogEntries = new ArrayCollection();\n }", "title": "" }, { "docid": "857c3ede6e8fbcfea6560a9e6594773a", "score": "0.45801935", "text": "public function initGrupos()\n {\n $collectionClassName = MiembrosGrupoTableMap::getTableMap()->getCollectionClassName();\n\n $this->collGrupos = new $collectionClassName;\n $this->collGruposPartial = true;\n $this->collGrupos->setModel('\\Grupo');\n }", "title": "" }, { "docid": "b3eed4c94788dd9d4d887c1023846fbc", "score": "0.45766643", "text": "public function initDairypandls($overrideExisting = true)\n {\n if (null !== $this->collDairypandls && !$overrideExisting) {\n return;\n }\n\n $collectionClassName = DairypandlTableMap::getTableMap()->getCollectionClassName();\n\n $this->collDairypandls = new $collectionClassName;\n $this->collDairypandls->setModel('\\lwops\\lwops\\Dairypandl');\n }", "title": "" }, { "docid": "33412952677206ba9acf4a7c94e615e6", "score": "0.45738208", "text": "private function init() {\n // grouped with binary to make comparisons easy, since we have two classes\n $this->suits = ['D' => 1, 'H' => 1, 'C' => 0, 'S' => 0];\n $this->cards = ['A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K'];\n }", "title": "" }, { "docid": "4ccc189fa6e1be8424eb0ce264fe86b6", "score": "0.45696595", "text": "public function initialize()\n {\n //$this->setSchema(\"kierkegaard\");\n }", "title": "" }, { "docid": "d12338ad3879ec57817f182c6d718c3c", "score": "0.45665368", "text": "public function initialize()\n {\n $this->setSchema(\"public\");\n $this->setSource(\"products\");\n $this->hasManyToMany(\n \"id\",\n \"OrderProducts\",\n \"product_id\",\n \"order_id\",\n \"Orders\",\n \"id\",\n array('alias' => 'orders')\n );\n }", "title": "" }, { "docid": "63a13102a3a76f86fead5ef6a766bc23", "score": "0.45626244", "text": "public function __construct() {\n $this->calendarattendees = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n $this->calendarComments = new \\Doctrine\\Common\\Collections\\ArrayCollection();\n }", "title": "" }, { "docid": "80c220f97c5602db2b1c1c3a0bf35b30", "score": "0.45505142", "text": "public function init() \n\t{\n\t\tunset( $this->items );\n\t\tunset( $this->query );\n\t\t$this->query_vars = array();\n\t\tunset( $this->queried_object );\n\t\tunset( $this->queried_object_id );\n\t\t$this->item_count = 0;\n\t\t$this->current_item = -1;\n\t\t$this->in_the_loop = false;\n\t\tunset( $this->request );\n\t\tunset( $this->item );\n\t\t$this->found_items = 0;\n\t}", "title": "" }, { "docid": "6e613616ac998cd8b5e5e12f855ab98d", "score": "0.45503774", "text": "public function setInitColumns(): self ;", "title": "" }, { "docid": "cb4da2626f0806cfd4d770d3ac4c269c", "score": "0.4550356", "text": "public function initProducts($overrideExisting = true)\n {\n if (null !== $this->collProducts && !$overrideExisting) {\n return;\n }\n $this->collProducts = new PropelObjectCollection();\n $this->collProducts->setModel('Product');\n }", "title": "" }, { "docid": "947c5f684fdea2409f74133cae727c02", "score": "0.45472485", "text": "function initAsSpecimen()\n\t{\n\t\t$this->id=0;\n\t\t\n\t\t$this->ref_interne='';\n\t\t$this->fk_soc='';\n\t\t$this->fk_biens='';\n\t\t$this->date_contrat='';\n\t\t$this->date_cloture='';\n\t\t$this->status='';\n\t\t$this->mise_en_service='';\n\t\t$this->fin_validite='';\n\t\t$this->fk_bails='';\n\t\t$this->fk_commercial='';\n\t\t$this->notes_private='';\n\t\t$this->notes_public='';\n\t\t$this->fk_user_author='';\n\t\t$this->datec='';\n\t\t$this->fk_user_mod='';\n\t\t$this->tms='';\n\t\t$this->entity='';\n\n\t\t\n\t}", "title": "" }, { "docid": "08475b3dbecacb354e08683963da46cd", "score": "0.45330253", "text": "public function initDeck()\n\t{\n\t\t$this->cards = [];\n\n\t\tforeach(array_keys(Card::rankMap()) as $rank)\n\t\t{\n\t\t\tforeach(array_keys(Card::suitMap()) as $suit)\n\t\t\t{\n\t\t\t\t$this->cards[] = new Card($rank, $suit);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "27a13869d472d9eb7daa158dd6ebfc7b", "score": "0.45225987", "text": "protected function init() {\n\t\t\tif (!$this->arrKeys) {\n\t\t\t\t$this->arrKeys = array();\n\t\t\t}\n\t\t\tparent::init();\n\t\t}", "title": "" }, { "docid": "6e330495b6b589133790116bb37ec753", "score": "0.4514833", "text": "public function initInstalasis($overrideExisting = true)\n {\n if (null !== $this->collInstalasis && !$overrideExisting) {\n return;\n }\n $this->collInstalasis = new PropelObjectCollection();\n $this->collInstalasis->setModel('Instalasi');\n }", "title": "" }, { "docid": "07803a4b1d88e6de7792c05a1a3c7c92", "score": "0.4514443", "text": "public function initialize()\n {\n $this->setSchema(\"atiempo_prod\");\n }", "title": "" }, { "docid": "7c2a66a616850d8771ca965181d83294", "score": "0.45111614", "text": "public function initLembagaNonSekolahs($overrideExisting = true)\n {\n if (null !== $this->collLembagaNonSekolahs && !$overrideExisting) {\n return;\n }\n $this->collLembagaNonSekolahs = new PropelObjectCollection();\n $this->collLembagaNonSekolahs->setModel('LembagaNonSekolah');\n }", "title": "" }, { "docid": "4d22941982b412dbe80433a87b687acd", "score": "0.45109263", "text": "public function initialize()\n {\n $this->setSchema(\"cenopdb\");\n $this->setSource(\"detalleingreso\");\n }", "title": "" }, { "docid": "19989d875b198034409080b80e616c53", "score": "0.4509453", "text": "public function __construct($initVals = null)\n {\n $this->classifications = new Collections\\ArrayCollection();\n }", "title": "" }, { "docid": "fe3e22fe79c2cc0c6a45f52602d1dd5b", "score": "0.4501391", "text": "protected static function hookInit() {\r\n\t\t\r\n\t\tif(!isset(static::p()->hooks)) {\r\n\t\t\tstatic::p()->hooks = array();\r\n\t\t\t\r\n\t\t\tif(!isset(static::$hooks) or !is_array(static::$hooks)) return;\r\n\t\t\t\r\n\t\t\tforeach(static::$hooks as $hook) {\r\n\t\t\t\tif(isset(static::$$hook) and is_array(static::$$hook)) {\r\n\t\t\t\t\tforeach(static::$$hook as $callback) {\r\n\t\t\t\t\t\tstatic::addHook($hook, $callback);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f8ae6c57c59f6380c5fc8fac236836c8", "score": "0.44980547", "text": "public function initIssuess($overrideExisting = true)\n {\n if (null !== $this->collIssuess && !$overrideExisting) {\n return;\n }\n $this->collIssuess = new ObjectCollection();\n $this->collIssuess->setModel('\\Issues');\n }", "title": "" }, { "docid": "7b7bf653d41574b8b594e15ca1da9b11", "score": "0.44958222", "text": "public function __construct()\n\t{\n\t\t$this->histori = new ArrayCollection();\n\t\t$this->tags = new ArrayCollection();\n\t}", "title": "" }, { "docid": "28f07f9eb69d3c7f8953dbd714729a14", "score": "0.44957668", "text": "public function __construct()\n {\n $this->categories = new ArrayCollection();\n }", "title": "" }, { "docid": "28f07f9eb69d3c7f8953dbd714729a14", "score": "0.44957668", "text": "public function __construct()\n {\n $this->categories = new ArrayCollection();\n }", "title": "" }, { "docid": "aa5b7541c0a22fbed6262eeb29cf2194", "score": "0.44775283", "text": "public function initialize()\n {\n $this->setSchema(\"kuansing_uniks_notif_jadwal\");\n $this->setSource(\"jadwal_kuliah\");\n }", "title": "" }, { "docid": "98c3ed8f35d53a88bbda4bfddf863cd4", "score": "0.4476772", "text": "public function addFishpandl(ChildFishpandl $l)\n {\n if ($this->collFishpandls === null) {\n $this->initFishpandls();\n $this->collFishpandlsPartial = true;\n }\n\n if (!$this->collFishpandls->contains($l)) {\n $this->doAddFishpandl($l);\n\n if ($this->fishpandlsScheduledForDeletion and $this->fishpandlsScheduledForDeletion->contains($l)) {\n $this->fishpandlsScheduledForDeletion->remove($this->fishpandlsScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }", "title": "" }, { "docid": "4efb289782bface2b2333ec66add92e2", "score": "0.4470242", "text": "public function initBookss($overrideExisting = true)\n {\n if (null !== $this->collBookss && !$overrideExisting) {\n return;\n }\n $this->collBookss = new ObjectCollection();\n $this->collBookss->setModel('\\Books');\n }", "title": "" }, { "docid": "7eca911ddb117b78633a9546136122e3", "score": "0.44695514", "text": "public function initialize()\n {\n $this->setSchema(\"public\");\r\n $this->setSource(\"tipo_clase\");\r\n $this->hasMany('id', 'CapacidadClase', 'id_clases', ['alias' => 'CapacidadClase']);\r\n $this->hasMany('id', 'DetalleVuelo', 'tipo_clase_id', ['alias' => 'DetalleVuelo']);\r\n $this->hasMany('id', 'PrecioClase', 'tipo_clase_id', ['alias' => 'PrecioClase']);\n }", "title": "" }, { "docid": "522e016371e87acd61dfdcef9aed46c3", "score": "0.4466133", "text": "public function initPesertaDidiks($overrideExisting = true)\n {\n if (null !== $this->collPesertaDidiks && !$overrideExisting) {\n return;\n }\n $this->collPesertaDidiks = new PropelObjectCollection();\n $this->collPesertaDidiks->setModel('PesertaDidik');\n }", "title": "" }, { "docid": "f5d22c1e58aa9fe43ca672ad04a01832", "score": "0.44653156", "text": "public function __construct(LoopInterface $loop, $factoryClass = null)\n {\n $this->store = new ArrayStore;\n $this->serverId = Str::uuid()->toString();\n }", "title": "" }, { "docid": "b7d3e197a30715152cfaaecfb3ce1296", "score": "0.4463901", "text": "public function init() {\n\t\t//\t$this->albums = new Application_Model_DbTable_Album();\n\t\t$this->tbAlbums = new Application_Model_ModAlbum();\n\t}", "title": "" }, { "docid": "9f1930a758eda7dc9e46c66eefcdabbc", "score": "0.44635308", "text": "public function init() {\n $this->_contacts = new Contacts();\n $this->_finds = new Finds();\n $this->_helper->_acl->allow('public',null);\n \n }", "title": "" }, { "docid": "027abe83abcca4ea9ab69157dfe0251a", "score": "0.44629696", "text": "public function initLembagaAkreditasis($overrideExisting = true)\n {\n if (null !== $this->collLembagaAkreditasis && !$overrideExisting) {\n return;\n }\n $this->collLembagaAkreditasis = new PropelObjectCollection();\n $this->collLembagaAkreditasis->setModel('LembagaAkreditasi');\n }", "title": "" }, { "docid": "f893b52631ac91c2431e1798f4e664fc", "score": "0.44577545", "text": "public function __construct($initial=array())\t\n {\n $this->data = array();\n }", "title": "" }, { "docid": "c8fbccd7f3d39d5767453820b64f590a", "score": "0.44483316", "text": "public function testConstructor_WithParameters_InitializeTheCollection() {\r\n $arr = array(0, 1);\r\n $col = new Core\\Collection($arr);\r\n $this->object($col)->hasSize(2);\r\n }", "title": "" }, { "docid": "8fab44a0b052402472d5bfbdac70d23e", "score": "0.44455612", "text": "public function initTanahs($overrideExisting = true)\n {\n if (null !== $this->collTanahs && !$overrideExisting) {\n return;\n }\n $this->collTanahs = new PropelObjectCollection();\n $this->collTanahs->setModel('Tanah');\n }", "title": "" }, { "docid": "5f1871697b18ad18c0697a7884de3e0a", "score": "0.44393688", "text": "protected function setUp()\n {\n $this->pl = new ProductList();\n\n $this->pl->addProduct(new Product(\"First\", \"First Product\", 2.50, 1000));\n $this->pl->addProduct(new Product(\"Second\", \"Second Product\", 0.50, 2000));\n $this->pl->addProduct(new Product(\"Third\", \"Third Product\", 10.00, 3550));\n }", "title": "" }, { "docid": "a909d762896915120c3082f24d8a22b9", "score": "0.4430994", "text": "public function __construct()\n {\n parent::__construct();\n\n $this->images = new ArrayCollection();\n }", "title": "" }, { "docid": "0c2cbeb95f64c13d39df52343fbb6025", "score": "0.44258878", "text": "public function initialize()\n {\n $this->setSchema(\"catering\");\n $this->setSource(\"dishOrders\");\n $this->belongsTo('orderId', '\\Orders', 'id', ['alias' => 'Orders']);\n $this->belongsTo('dishId', '\\Dishes', 'id', ['alias' => 'Dishes']);\n }", "title": "" }, { "docid": "5c71886624019fccbe89a2c62f8ab87d", "score": "0.44237402", "text": "public function __construct()\n {\n $this->items = Collection::make();\n }", "title": "" }, { "docid": "8043e10076dbaca427367a21e50dc127", "score": "0.4423734", "text": "public function __construct()\r\n {\r\n \t$this->category = new ArrayCollection();\r\n \t$this->translations = new \\Doctrine\\Common\\Collections\\ArrayCollection();\r\n }", "title": "" }, { "docid": "8ffcfffc8f57602eb236e2c2318cd1c4", "score": "0.44234526", "text": "public function initialize()\n {\n $this->setSchema(\"challenge\");\n\n $this->belongsTo(\n 'product_id',\n 'Challenge\\\\Model\\\\Products',\n 'id',\n [\n 'alias' => 'Products'\n ]\n );\n\n $this->hasOne(\n 'id',\n 'Challenge\\\\Model\\\\Images',\n 'variant_id',\n [\n 'alias' => 'Images'\n ]\n );\n\n $this->hasMany(\n 'id',\n 'Challenge\\\\Model\\\\OrderItems',\n 'variant_id',\n [\n 'alias' => 'OrderItems'\n ]\n );\n }", "title": "" }, { "docid": "d552fc13a920328cc176075fe8b4f8f7", "score": "0.44186032", "text": "public function init(){\n \t$this->tbl_quizzes = new Application_Model_DbTable_Quizzes();\n \t$this->tbl_responses = new Application_Model_DbTable_Responses();\n }", "title": "" }, { "docid": "cf69d5f0bd7326c04cf4ce7dcabe0eeb", "score": "0.44101256", "text": "public function initialize() {\n\t\t$this->setSchema( \"admin_pte\" );\n\t\t$this->hasMany('id', 'PostCategories', 'posts_id', ['alias' => 'PostCategories']);\n\t\t$this->hasManyToMany( 'id', 'PostCategories', 'posts_id', 'categories_id', 'Categories', 'id', [ 'alias' => 'PostCategories2' ] );\n\t\t$this->belongsTo( 'author_id', '\\Authors', 'id', [ 'alias' => 'Authors' ] );\n\t\t$this->belongsTo( 'post_type_id', '\\PostTypes', 'id', [ 'alias' => 'PostTypes' ] );\n\t}", "title": "" }, { "docid": "c3a4ed082b091c7512598cbad2b8bcc0", "score": "0.4407801", "text": "public function initialize()\n {\n $this->setSchema(\"crud_recetas\");\n $this->setSource(\"ingredientes\");\n }", "title": "" }, { "docid": "083d498ccaae42f2eb4b2f2113a52821", "score": "0.4406917", "text": "public function initSettingss($overrideExisting = true)\n {\n if (null !== $this->collSettingss && !$overrideExisting) {\n return;\n }\n $this->collSettingss = new PropelObjectCollection();\n $this->collSettingss->setModel('Settings');\n }", "title": "" }, { "docid": "d1607e3e5dfb93c12169902855694f75", "score": "0.44061387", "text": "public function init(){\n\t\t$c = new umkmCart();\n\t\t$this->cart = $c->getCartCookie();\n\n\t\t$this->halaman = Pages::model()->with(array(\n\t\t\t'pUmkm'=>array(\n\t\t\t\t'condition'=>'umkm_alias = \\''.$_GET['a'].'\\'',\n\t\t\t\t'select'=>false)))->findAll(array(\n\t\t'select'=>array('p_judul','p_alias'),\n\t\t'condition'=>'p_status = '.Pages::STATUS_PUBLISHED));\n\t\t$style = Kustomisasi::model()->with(array(\n\t\t\t'kusUmkm'=>array(\n\t\t\t\t'condition'=>'umkm_alias = \\''.$_GET['a'].'\\'',\n\t\t\t\t'select'=>false)))->find(array(\n\t\t'select'=>array('kus_background')));\n\n\t\t$this->styler = $style->kus_background;\n\t\n\t}", "title": "" }, { "docid": "a3d4de051a9d0d1b09549d01b3fa1598", "score": "0.44056088", "text": "public function initPtks($overrideExisting = true)\n {\n if (null !== $this->collPtks && !$overrideExisting) {\n return;\n }\n $this->collPtks = new PropelObjectCollection();\n $this->collPtks->setModel('Ptk');\n }", "title": "" }, { "docid": "a3d4de051a9d0d1b09549d01b3fa1598", "score": "0.44056088", "text": "public function initPtks($overrideExisting = true)\n {\n if (null !== $this->collPtks && !$overrideExisting) {\n return;\n }\n $this->collPtks = new PropelObjectCollection();\n $this->collPtks->setModel('Ptk');\n }", "title": "" }, { "docid": "4c134972417146a84a4370abdba17056", "score": "0.44027212", "text": "public function initialize(): void\n {\n // Initalise a new content object, with the content-database as argument.\n $this->content = new Content($this->app->db);\n }", "title": "" }, { "docid": "4d61b384c6ef59d2e6ef5137390cbaff", "score": "0.4399602", "text": "public static function init() {\n\t\tglobal $query, $wtcDB, $rankImages;\n\n\t\t$getRankImages = new Query($query['rankImage']['get_all']);\n\t\t$rankImages = Array();\n\n\t\twhile($rankImage = $wtcDB->fetchArray($getRankImages)) {\n\t\t\t$rankImages[$rankImage['rankiid']] = new RankImage('', $rankImage);\n\t\t}\n\t}", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "497f2d9c92f6b9b529d68905d21af52d", "score": "0.0", "text": "public function update(Request $request, Menu $menu, MenuItem $item)\n {\n $this->validate($request, [\n 'title' => 'required|max:255',\n 'type' => 'required|max:255',\n 'link' => 'required|max:255',\n ]);\n\n $data = $request->all();\n $item->fill($data);\n if ($item->save()) {\n $item->hasMoved();\n }\n\n if (isset($data['parent_id']) && $data['parent_id'] !== '') {\n $parent = MenuItem::find($data['parent_id']);\n $parent->appendNode($item);\n }\n return response()->json(['message' => 'success', 'data' => $item->jsonSerialize()]);\n }", "title": "" } ]
[ { "docid": "ae90a700efd6cf3cd7c51c1c4442503a", "score": "0.7658553", "text": "public function update(ResourceInterface $resource);", "title": "" }, { "docid": "d6a508508d13bb02f2a247e9bf196f78", "score": "0.71877676", "text": "function update ( $id, $resource ) {\r\n\r\n }", "title": "" }, { "docid": "8466495927f3bd478b5fd2d917f45f08", "score": "0.7099208", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "9a55d4f96f94897978c13d34337c1901", "score": "0.6808637", "text": "public function update(StoreResource $request, $id)\n {\n $input = $request->all();\n \n $resource = Resource::find($id);\n \n $resource->fill($input);\n \n $resource->save();\n\n // redirect\n Session::flash('message', 'Successfully saved resource!');\n return redirect('resources');\n }", "title": "" }, { "docid": "cce47cfb911f4e7678d10bb61eec6271", "score": "0.6523108", "text": "public function update(Request $request, Resource $resource)\n {\n $this->validate($request, [\n 'name' => 'required|max:255',\n ]);\n \n $resource->update($request->except(['_method', '_token']));\n \n flash('El recurso fue actualizado');\n \n return redirect()->route('resource.index');\n }", "title": "" }, { "docid": "1414dc19f0f4ccb3b9d9b0c2f9754c1a", "score": "0.64248925", "text": "public function update(Request $request, Storage $storage)\n {\n //\n $storage->update($request->all());\n\n return redirect()->route('storage.index');\n }", "title": "" }, { "docid": "8b641f5e241101e64f479c764289bfd7", "score": "0.64144814", "text": "public function update(Request $request, Resource $resource)\n {\n\n try {\n $this->validate($request, [\n 'name' => 'required|string|unique:resources,name,' . $resource->id,\n 'group' => 'required|exists:groups,id',\n \"description\" => \"nullable|string\"\n ]);\n $resource->name = $request->name;\n $resource->group_id = $request->group;\n $resource->description = $request->description;\n $resource->save();\n session()->flash('flash_success', 'Updated Successfully.');\n return Redirect::route('resources.index');\n } catch (ValidationException $exception) {\n return Redirect::back()->withErrors($exception->errors())->withInput();\n } catch (Exception $e) {\n session()->flash('flash_error', 'Something went wrong');\n return $e->getMessage();\n return Redirect::back();\n }\n }", "title": "" }, { "docid": "d131fb800138c5d8889803afda8ecf7b", "score": "0.62923384", "text": "public function updateResource(){\n\t\t$this->setTitle('Update resource');\n $this->name = $_POST['name'];\n $this->id = $_POST['resource_id'];\n $this->rate = $_POST['rate'];\n $this->description = $_POST['description'];\n $this->type = $_POST['type'];\n $this->loadModel('resource');\n\t\t$this->added_resource = $this->model->updateResources($this->id,$this->name,$this->rate,$this->description,$this->type);\n $this->render('resource/_bewerkt.tpl');\n\t}", "title": "" }, { "docid": "6644414d1c8deb86d17216b9f77e38da", "score": "0.62589455", "text": "public function updateStream($path, $resource, $config = null);", "title": "" }, { "docid": "35958bbf8b0dca0d5dcadddf00962ef1", "score": "0.6193939", "text": "public function update() {\n \t\t//Does the Resource object have an id?\n if ( is_null( $this->id ) ) trigger_error (\"Resource::update(): Attempt to update an Resource object that does not have its ID property set.\", E_USER_ERROR );\n\n\t\t//Update the Resource\n $conn = new mysqli( $DB_HOST, $DB_USERNAME, $DB_PASSWORD, $DB_NAME );\n $sql = \"UPDATE resources SET title=:?, summary=?, url=?, content=?, category=?, is_free=?, is_featured=?, is_favorite=?, date_created=? WHERE id = ?\";\n $st = $conn->prepare ( $sql );\n $st->bind_param( 'sssssiiisi', $this->title, $this->summary, $this->url, $this->content, $this->category, $this->is_free, $this->is_featured, $this->is_favorite, date(\"Y-m-d H:i:s\"), $this->id );\n\n $st->execute();\n $conn = null;\n}", "title": "" }, { "docid": "27fdfad09c0210d824e7b3fabe4e253e", "score": "0.6178334", "text": "public function update(Request $request, $id)\n {\n // if(Auth::user()->admin){\n $storage = Storage::findOrFail($id);\n $storage->name = $request->name;\n $storage->address = $request->address;\n $storage->save();\n Session::flash('success','You successfully updated storage!');\n// }\n// else{\n// Session::flash('error','You do not have enough permission!');\n// }\n return redirect()->route('storage.index');\n }", "title": "" }, { "docid": "a25688f30a6b62a181559b84d042105c", "score": "0.6148197", "text": "public function update(Request $request, $resource)\n {\n $this->authorize('update', $resource);\n\n $resource->load($this->with);\n\n $this->form()->setModel($resource)->save(function($data,$form) use (&$resource){\n $general = $data->pull('general'); \n $relations = $data->get('relations');\n\n $admin = \\Auth::guard('admin')->user();\n \n $resource->forceFill($general->toArray()); \n\n $this->event('updating', $resource); \n\n $resource->save(); \n\n $this->syncRelations($relations, $resource); \n\n $this->event('updated', $resource); \n\n return $resource;\n }); \n\n $this->checkOwner($resource);\n\n return $this->redirect($request, $resource); \n }", "title": "" }, { "docid": "9a5dcd97258a1dde56734d3bfd713b95", "score": "0.6116463", "text": "public function updateResource(Request $request, $id)\n {\n $validatedData = $request->validate(\n [\n 'title' => 'required',\n 'description' => 'required',\n 'uploadedfile' => 'mimes:flv,mp4,avi,wmv,3gp,mov,mkv,vob'\n ],\n [\n 'title.required' => 'Please enter video title.',\n 'description.required' => 'Please enter description.',\n 'uploadedfile.mimes' => 'Video format not supported.'\n ]\n );\n\n if($file = $request->hasFile('uploadedfile')) {\n \n $file = $request->file('uploadedfile') ; \n $fileName = $file->getClientOriginalName() ;\n $destinationPath = public_path().'/storage/resource' ;\n $file->move($destinationPath,$fileName);\n $resourceUpdate = DB::table('table_resources')->where([\n ['id','=',$id],\n ])->update(array(\n 'title' => $request->title,\n 'description' => $request->description,\n 'url' => $fileName\n ));\n if($resourceUpdate) {\n return redirect()->back()->with('message', 'Resource successfully updated.');\n } else {\n return redirect()->back()->withErrors(['Nothing changed. Please try again.']);\n }\n \n } else {\n $resourceUpdate = DB::table('table_resources')->where([\n ['id','=',$id],\n ])->update(array(\n 'title' => $request->title,\n 'description' => $request->description \n ));\n if($resourceUpdate) {\n return redirect()->back()->with('message', 'Resource successfully updated.');\n } else {\n return redirect()->back()->withErrors(['Nothing changed. Please try again.']);\n }\n\n }\n\n }", "title": "" }, { "docid": "7bfce29a195f384d1bcc21b603c792d2", "score": "0.6033452", "text": "public function update(Request $request, $id){\n\n $this->validate($request, $this->getValidationRules($request), $this->getValidationMessages($request));\n \n if($request->file('image')){\n $rules = [\n 'image' => 'image|mimes:jpg,jpeg,png'\n ];\n\n $this->validate($request, $rules);\n }\n\n \n try {\n $resource = Resource::withTrashed()->findOrFail($id); \n }catch (ModelNotFoundException $e){\n $errors = collect(['El recurso con ID '.$id.' no se encuentra.']);\n return back()\n ->withInput()\n ->with('errors', $errors);\n }\n $this->setResource($resource, $request);\n \n $resource->spaces()->detach();\n $resource->spaces()->attach($request->spaces);\n\n return redirect()->route('resources.index')\n ->with('session_msg', '¡El recurso, se ha editado correctamente!');\n }", "title": "" }, { "docid": "88d2a1e76ebbaa8bd165532adff21092", "score": "0.6013595", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $resource = Resource::where('product_id', $id)->first();\n\n $this->validate(request(), [\n 'category_id' => 'required',\n 'name' => 'required',\n 'short_name' => 'required',\n// 'article' => 'required',\n 'price' => 'required',\n 'collection_id' => 'required',\n 'atribut_id' => 'required',\n ]);\n\n $product->category_id = $request->get('category_id');\n $product->name = $request->get('name');\n $product->short_name = $request->get('short_name');\n// $product->article = $request->get('article');\n $product->price = $request->get('price');\n $product->collection_id = $request->get('collection_id');\n $product->atribut_id = $request->get('atribut_id');\n\n $method = __METHOD__;\n LogFile::ProductLog($product, $method);\n $product->save(); //Сохраняем изменения продукта\n\n return redirect('admin/products')->with('update', 'Продукт обновлен');\n }", "title": "" }, { "docid": "9349dc7f33c6326d0383abd536af6ce3", "score": "0.596908", "text": "public function updated(\n $resource = null,\n array $links = [],\n $meta = null,\n array $headers = []\n ): Response {\n return $this->getResourceResponse($resource, $links, $meta, $headers);\n }", "title": "" }, { "docid": "4e5acd860dcda74c61d836d96050b079", "score": "0.59593076", "text": "public function put(Storage $storage);", "title": "" }, { "docid": "215d42ed153b26bc9b49ae5c5951d499", "score": "0.5955367", "text": "public function update(StoragesUpdateRequest $request, $id)\n {\n $now = \\Carbon\\Carbon::now();\n $storage = Storage::find($id);\n $by_id = Auth::user()->id;\n\n $storage->fill([\n 'maker' => $request->maker,\n 'model_number' => $request->model_number,\n 'serial_number' => $request->serial_number,\n 'size' => $request->size,\n 'types' => $request->types,\n 'supported_os' => $request->supported_os,\n 'recovery_key' => $request->recovery_key,\n 'storage_password' => $request->storage_password,\n 'deleted_at' => $request->deleted_at === \"1\" ? $now : null,\n 'reason' => $request->reason,\n 'updated_by' => $by_id,\n ])\n ->save();\n\n return redirect()->route('storages.show', $storage->id)->with('information', 'レコードを更新しました。');\n }", "title": "" }, { "docid": "da49ecf5dc35b8e5edb8b21644469290", "score": "0.5939757", "text": "public function update(RespondentStoreRequest $request, $id)\n {}", "title": "" }, { "docid": "b96bbe109f16f366cfd72892d0d0be64", "score": "0.5903822", "text": "public function update(Request $Request, Resource $Resource)\n {\n\t\t\t$Actions = ($Request->actions)?:[1];\n\t\t\t$Action = \"0.\" . implode(\"\",array_replace(array_fill(1,max($Actions),0),array_fill_keys($Actions,1)));\n\t\t\t$Request->action = $Action;\n\t\t\t$UpdateArray = []; $Rules = Resource::ValidationRules(); $MyRules = [];\n\t\t\tforeach($Resource->FillableFields() as $Field){\n\t\t\t\tif($Field == \"code\") continue;\n\t\t\t\tif($Request->$Field != $Resource->$Field){\n\t\t\t\t\t$Resource->$Field = $UpdateArray[$Field] = $Request->$Field;\n\t\t\t\t\tif(isset($Rules[$Field])) $MyRules[$Field] = $Rules[$Field];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(empty($UpdateArray)) return redirect()->back()->with([\"info\"=>true,\"type\"=>\"info\",\"text\"=>\"No fields to update.\"]);\n\t\t\t$Validator = Validator::make($UpdateArray,$MyRules,Resource::ValidationMessages());\n\t\t\tif($Validator->fails()) return redirect()->back()->withErrors($Validator);\n\t\t\tif($Resource->status == \"ACTIVE\" && $Resource->save()) return redirect()->route('resource.index')->with([\"info\"=>true,\"type\"=>\"info\",\"text\"=>\"The Resource: \" . $Resource->displayname . \", updated successfully\"]);\n\t\t\treturn view(\"resource.error\");\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5890722", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "f78906153226222ee5bdfc9d13a06d23", "score": "0.58857", "text": "protected function save($resource) {\n if (isset($resource['public_id'])) {\n $this->collection->update(array('public_id' => $resource['public_id']), $resource, array('upsert' => TRUE));\n }\n }", "title": "" }, { "docid": "99960e81f0d443f90e5e0aa954abd481", "score": "0.5885372", "text": "public function update($id, Request $request) {\n $this->validate($request, isset($this->model->rules_update) ? $this->model->rules_update : $this->model->rules);\n\n ${$this->resource} = $this->model->findOrFail($id);\n\n $fillable_data = array_only($request->all(), $this->model->getFillable());\n\n App::setLocale(Helpers::getLang());\n\n ${$this->resource}->update($fillable_data);\n\n Admin::handleFileUpload('image', ${$this->resource}, 'image');\n\n return Redirect::route($this->view_path . '.index')->with('success', 'yeah');\n }", "title": "" }, { "docid": "a516665e3766b23c94ab33c5940aab8d", "score": "0.5874832", "text": "public function update(UpdateRequest $request, $id)\n {\n $data = $request->all();\n $product = Product::findOrFail($id);\n\n DB::beginTransaction();\n try {\n\n tap($product)->update($data);\n\n if ($request->hasFile('image')) {\n @unlink('products' . $product->image);\n $product->image = time() . '-' . $product->description . '.' . $request->file('image')\n ->getClientOriginalExtension();\n $request->file('image')->move('products', $product->image);\n }\n\n $product->save();\n\n $productResource = new ProductResource($product);\n\n DB::commit();\n return $this->responseSuccess([\n 'message' => trans('response.ProductController.update.success'),\n 'data' => $productResource,\n ]);\n } catch (\\Exception $exception) {\n DB::rollBack();\n return $this->responseError([\n 'message' => trans('response.ProductController.update.error'),\n 'errors' => $exception->getMessage(),\n ], Response::HTTP_INTERNAL_SERVER_ERROR);\n }\n }", "title": "" }, { "docid": "dbe374356cb114ab5e44b198d87b232f", "score": "0.58492017", "text": "public function put($resource, $data){\n $client = new Client([\n 'base_uri' => $this->baseUri\n ]);\n\n //Trim left slashes\n $resource = ltrim($resource,'/');\n\n //Cache miss call to API\n $res = $client->request('PUT', $resource, [\n 'json' => $data,\n 'headers' => [\n 'Authorization' => 'Bearer ' . $this->accessToken,\n 'User-Agent' => env('BASECAMP_AGENT')\n ]\n ]);\n\n //Get JSON payload\n $json = $res->getBody()->getContents();\n\n return json_decode($json);\n }", "title": "" }, { "docid": "0bb389e7c0c131b01dec97c33ec501e0", "score": "0.579422", "text": "public function update(Request $request, $id)\n {\n $resource = MyResource::find($id);\n if ($resource != null) {\n if ($resource->user->id == $request->user()->id || $request->user()->hasRole('Admin')) {\n $request->merge(['module_id' => $request->get('module_id')]);\n $request->validate(['title' => 'required|string', 'description' => 'nullable|string', 'google_drive' => 'nullable|url|max:255', 'publish_year' => 'required|numeric|digits:4|between:2008,' . date('Y'), 'module_id' => 'required|integer|exists:modules,id']);\n $resource->update($request->all());\n\n return redirect()->route('resources.index')\n ->with('success', 'Resource updated successfully');\n }\n return abort(401, 'You\\'re not allowed to edit this resource!');\n }\n return abort('404', 'User not found!');\n }", "title": "" }, { "docid": "7dec035d65557a5fa957575b344e390d", "score": "0.5787175", "text": "protected function saveResource(&$resource) {\n $this->getConfig()->set($resource['key'], $resource['value']);\n\n $resource['id'] = $resource['key'];\n }", "title": "" }, { "docid": "231bf07a63b0a16b02c083ef86c176fd", "score": "0.57833594", "text": "public function update(Request $request, $id)\n {\n $input=$request->file_path;\n if(isset($input)) {\n $File = $this->fileUpload($input);\n }\n else{\n $File = \"course_resource/default.jpg\";\n }\n\n\n $course_resources = CourseResource::whereId($id)->firstOrFail();\n $course_resources->course_id = $request->get('course_id');\n $course_resources->title = $request->get('title');\n $course_resources->description = $request->get('description');\n $course_resources->file_path = $File;\n\n\n $course_resources->save();\n return redirect(action('CourseResourcesController@edit', $course_resources->id))->with('status', 'The file has been updated!');\n }", "title": "" }, { "docid": "611dd800c7185eb18c8f75c9a8595a6c", "score": "0.57606536", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $product->name = $request->name;\n $product->rock = $request->rock;\n $product->weight = $request->weight;\n $product->carat = $request->carat;\n $product->stock = $request->stock;\n $product->price = $request->price;\n $product->color = $request->color;\n $product->category_id =Category::find($request->category_id)->id;\n\n if($request->hasFile(\"image\")){\n //delete old image and save new image\n unlink(storage_path('app/public/productImages/'. $product->src));\n $product->src=$request->image->hashName();\n $request->image->store(\"productImages\",\"public\");\n }\n \n if($product->save()){\n return redirect()->route('products.index');\n }else{\n return view(\"partials.error\");\n }\n }", "title": "" }, { "docid": "3b6c3aaa23b4fb918ebc093545c13dc6", "score": "0.57525045", "text": "public function update($entity);", "title": "" }, { "docid": "eaf18f66946228a152f8b83c6b49e31e", "score": "0.5747208", "text": "public function update($id, $data) {}", "title": "" }, { "docid": "ab7c78237c36ea0911a0a7aba52fe065", "score": "0.5722473", "text": "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $body = json_encode($json);\n $request = new Request('PUT', '/entities', [], $body);\n $response = $this->send($request);\n return $response;\n }", "title": "" }, { "docid": "94a50f00a1fdfc16d75925e06f8f3ece", "score": "0.5718023", "text": "public function update($resource, $id, array $data = [], array $fileData = [],\n array $options = []\n ) {\n $request = new Request(Request::UPDATE, $resource);\n $request->setId($id)\n ->setContent($data)\n ->setFileData($fileData)\n ->setOption($options);\n return $this->execute($request);\n }", "title": "" }, { "docid": "8d0a97cdf24a3e49996a055c1d6f9ee9", "score": "0.5674049", "text": "public function put($data);", "title": "" }, { "docid": "dd89d251e44d4f4288498c4f3fcdbd27", "score": "0.5669232", "text": "public function update(StoreQuestionRequest $request, Question $question)\n {\n $question->update($request->all());\n return (new QuestionResource($question))->response()->setStatusCode(Response::HTTP_OK);\n }", "title": "" }, { "docid": "07d0f77b1ff351c39ea339ec0c30336e", "score": "0.5668569", "text": "public function update(Request $request, $id)\n {\n $product=Product::find($id);\n $photo=$product->photo;\n if($request->file('photo')){\n $photo=$request->file('photo')->store('public/products');\n \\Storage::delete($product->photo);\n \n \n }\n $product->name=$request->name;\n $product->category_id=$request->category;\n $product->subcategory_id=$request->subcategory;\n $product->description=$request->description;\n $product->photo=$photo;\n $product->price=$request->price;\n $product->quantity=10;\n $product->update();\n notify()->success('Product Update Successfully!');\n return redirect('/product');\n }", "title": "" }, { "docid": "50feec899487537246234315718a4677", "score": "0.56560737", "text": "public function updated(Octocat $resource)\n {\n session()->flash('title', $resource->name);\n session()->flash('message', \"Octocat successfully updated\");\n session()->flash('type', 'success');\n }", "title": "" }, { "docid": "6310b8a0a92465d8b22379c86deeecd7", "score": "0.564211", "text": "public function put($resource, array $parameters = [], $headers = [])\n {\n return $this->request('PUT', $resource, [\n 'form_params' => $parameters,\n 'headers' => $headers,\n ]);\n }", "title": "" }, { "docid": "d31fe3056f944a65fa9ec19317300e44", "score": "0.5622648", "text": "public function update(Request $request)\n {\n \t$validator = Validator::make($request->all(), [\n 'title' => 'required',\n 'id' => 'required',\n 'url' => 'required'\n ]);\n if ($validator->fails()) {\n return redirect(route('manage-contractor-resources-edit', $request->id))\n ->withErrors($validator)\n ->withInput();\n }\n\n $info['title'] = $request->title;\n $info['url'] = $request->url;\n $info['chapter'] = $request->chapter;\n $info['description'] = $request->description;\n $id = $info['id'] =$request->id;\n if(!$id){ \n $request->session()->flash('error', \"Nothing to update (or) unable to update.\");\n return redirect(route('manage-contractor-resources'))->withInput();\n }\n if((new ContractorResource)->updateContractorResource($info)) {\n $request->session()->flash('success', \"Contractor Resource Updated Successfully.\");\n return redirect(route('manage-contractor-resources'));\n } else { \n $request->session()->flash('error', \"Nothing to update (or) unable to update.\");\n return redirect(route('manage-contractor-resources'))->withInput();\n }\n }", "title": "" }, { "docid": "45805699e2ef60790309007e165386e9", "score": "0.5617589", "text": "public function update(Request $request, $id)\n {\n if(count($request->all()) == 0)\n {\n return redirect()->route('home');\n }\n $item = Item::where('id', $id)->first();\n \n if($item)\n { $this->validate($request, [\n 'itemDescription' => ['required']\n ]); \n $item->itemDescription = $request->get('itemDescription');\n $item->inventoryID = $request->get('inventoryID');\n if($request->file('select_file'))\n { \n $this->validate($request, ['select_file' => 'image|mimes:jpeg,png,jpg,gif|max:2048']);\n $image = $request->file('select_file');\n $path = $image->store('stock', 's3');\n\n $item->photoUploadLink = $path;\n }\n $item->save();\n return redirect()->route('stock')->with('success','Stock was successfully updated.');\n }\n else{\n return redirect()->route('stock')->with('error','Unfortunately an error has occurred.');\n }\n }", "title": "" }, { "docid": "0ca7ba7cd4456dc2a52499c097eb460d", "score": "0.5611832", "text": "public function update(Request $request, Memory $memory)\n {\n \n }", "title": "" }, { "docid": "28ac32d59483ead96eb99c3920d2d977", "score": "0.56017566", "text": "public function update( Request $request, $id ) {\n if ( $request->hasFile( 'newphoto' ) ) {\n\n $file = $request->file( 'newphoto' );\n $file_name = time() . '.' . $file->extension();\n $file->move( public_path( 'backend/supplier/' ), $file_name );\n\n $supplier = Supplier::find( $id );\n\n $oldPhoto = $supplier->photo;\n\n if ( $oldPhoto ) {\n $photo_url = $oldPhoto;\n $part = explode( '/', $photo_url );\n $slicedArr = array_slice( $part, 3 );\n $photoStr = implode( '/', $slicedArr );\n unlink( $photoStr );\n }\n\n $supplier->name = $request->name;\n $supplier->email = $request->email;\n $supplier->address = $request->address;\n $supplier->phone = $request->phone;\n $supplier->shopname = $request->shopname;\n $supplier->photo = asset( \"backend/supplier/{$file_name}\" );\n $supplier->save();\n return $request;\n } else {\n $supplier = Supplier::find( $id );\n\n $supplier->name = $request->name;\n $supplier->email = $request->email;\n $supplier->address = $request->address;\n $supplier->phone = $request->phone;\n $supplier->shopname = $request->shopname;\n $supplier->photo = $request->photo;\n $supplier->save();\n return $request;\n }\n }", "title": "" }, { "docid": "a9e48624384796f4304eebd40f4ae1bc", "score": "0.5599046", "text": "public function update()\n {\n $id = Input::get('id');\n $obj = Product::find($id);\n if ($obj == null) {\n return view('404');\n }\n $obj->name = Input::get('name');\n $obj->images = Input::get('images');\n $obj->description = Input::get('description');\n $obj->price = Input::get('price');\n $obj->save();\n return redirect('/admin/product');\n }", "title": "" }, { "docid": "feafa85fd136a8bfa7378058dbef8934", "score": "0.55935574", "text": "public function update(StoreQuestion $request, Question $question)\n {}", "title": "" }, { "docid": "5583a1a1065b5e63099c0ebbfcc38083", "score": "0.55854446", "text": "public function modifyResource($uri,\n $sparql = \"\",\n $headers = [],\n $transaction = \"\") {\n $options = [];\n\n // Set content.\n $options['body'] = $sparql;\n\n // Set headers.\n $options['headers'] = $headers;\n $options['headers']['Content-Type'] = 'application/sparql-update';\n\n // Ensure uri takes transaction into account.\n $uri = $this->prepareUri($uri, $transaction);\n\n $response = $this->client->request(\n 'PATCH',\n $uri,\n $options\n );\n\n return null;\n }", "title": "" }, { "docid": "4016847dea9b55e59a4acd18600a30f5", "score": "0.55813426", "text": "public function update($request, $id);", "title": "" }, { "docid": "15b871253c843a97a53c3d5984ec74b9", "score": "0.5576059", "text": "public function update(Request $request, $id)\n {\n //\n $this->validate($request, [\n 'name' => 'required',\n 'price' => 'required',\n 'image_url' => 'image|nullable|max:1999'\n ]);\n\n $product = Product::find($id);\n $product->name = $request->input('name');\n $product->price = $request->input('price');\n $product->groups = $request->input('groups');\n $product->stocks = $request->input('stocks');\n $product->description = $request->input('description');\n //to handle file in updload this way if no new image added the image \n //wont be updated.\n if ($request->hasFile('image_url')){\n //to get the filename with ext\n $file = $request->file('image_url')->getClientOriginalName();\n //get file name\n $filename = pathinfo($file, PATHINFO_FILENAME);\n //get extensiopn\n $ext = $request->file('image_url')->getClientOriginalExtension();\n //new filename\n $fileNameToStore = $filename.'_'.time().'.'.$ext;\n #upload\n $path = $request->file('image_url')->storeAs('public/images', $fileNameToStore);\n }else{\n $fileNameToStore = $product->image_url;\n }\n $product->image_url= $fileNameToStore;\n $product->save();\n\n return redirect('/');\n }", "title": "" }, { "docid": "d30de7511ec7de74e32f94e01d31fafe", "score": "0.5566411", "text": "public function update(Request $r, $id){\n $prk = Portkey::find($id);\n $prk->name = $r->name;\n \n if(isset($r->image)){\n Storage::disk('portkeyMap')->delete($prk->image);\n $path = $r->file('image')->store('', 'portkeyMap');\n $prk->image = $path;\n }\n $prk->save();\n return redirect()->route('portkey.index');\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "8f8dacf3ca2fb2c9044973cfcebc7c92", "score": "0.555745", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if(!empty($request->input('tags'))){\n $product->tags()->sync($request->input('tags'));\n }else {\n $product->tags()->detach();\n }\n\n //gestion sup image\n if($request->input('delete_picture')=='true'){\n if(!is_null($product->picture)) {\n Storage::delete($product->picture->uri);\n $product->picture->delete();\n }\n }\n\n //gestion de la modification image\n if(!is_null($request->file('thumbnail'))){\n if(!is_null($product->picture)) {\n Storage::delete($product->picture->uri);\n $product->picture->delete();\n }\n\n $im = $request->file('thumbnail');\n $ext = $im->getClientOriginalExtension();\n $uri = str_random(12).'.'.$ext;\n $picture = Picture::create([\n 'uri' => $uri,\n 'type' => $ext,\n 'size' => $im->getClientSize(),\n 'product_id' => $product->id\n ]);\n\n $request->file('thumbnail')->move(env('UPLOAD_PATH','./uploads'), $picture->uri);\n\n }\n\n $product->update($request->all());\n return redirect('product')->with(['message'=>'success']);\n }", "title": "" }, { "docid": "603c333c3d11c6ec2de9c240d7fa4363", "score": "0.55474466", "text": "public function update(Request $request, $id)\n {\n $image = $request->file('image')->store('product', 'public');\n $product = Product::find($id);\n\n $product->nombre = $request->input('nombre');\n $product->descripcion = $request->input('descripcion');\n $product->precio = $request->input('precio');\n $product->stock = $request->input('stock');\n $product->category_id = $request->input('category_id');\n $product->image = $image;\n \n $product->save();\n\n return redirect(\"/$product->id/showProduct\"); \n }", "title": "" }, { "docid": "7412cf8d4f3cd118bf4c8ef71352185b", "score": "0.5544467", "text": "public function update(Request $request, Restify $restify)\n {\n //\n }", "title": "" }, { "docid": "4c0ab51ecbeaff3788498a88d8e05dde", "score": "0.55394554", "text": "public function update($id) {\n \n }", "title": "" }, { "docid": "66139d48c34ab92a5f49f5d92e5064cc", "score": "0.55334014", "text": "public function put_products($productName)\n{\n $raw = file_get_contents('php://input');\n $newProduct = Product::fromJson($raw);\n\n $db = new DataStore();\n $db->beginTransaction();\n $oldProduct = Product::productByName($db, $productName);\n if (is_null($oldProduct))\n throw new RESTException('Product not found.', 404);\n\n $oldProduct->update($db, $newProduct);\n $db->commit();\n echo('Product ' . $productName . ' updated.');\n}", "title": "" }, { "docid": "45a4f9a4a649b70b7c4d70ad32264661", "score": "0.5530422", "text": "public function update(Request $request,$id)\n { \n $slider = Slider::find($id);\n //start image upload\n if($request->file('image') != \"\"){\n $_IMAGE = $request->file('image');\n $name = time().$_IMAGE->getClientOriginalName();\n $uploadPath = 'public/frontend/images/main-slider/';\n $_IMAGE->move($uploadPath,$name);\n $_imageUrl = $uploadPath.$name;\n\n //delete previous image\n if(!empty($slider->image)){\n try{\n unlink(\"$slider->image\");\n }\n catch(\\Exception $e){\n\n }\n finally{\n $flag = true; \n }\n }\n //store updated image\n $slider->image = $_imageUrl;\n\n }\n //end image upload\n $slider->type = $request->type;\n $slider->title = $request->title;\n $slider->sub_title = $request->sub_title;\n $slider->redirect_link = $request->redirect_link;\n $slider->active = $request->active;\n $slider->slider_order = $request->slider_order;\n $slider->save();\n\n return redirect('/admin/sliders')->with('success',' Data Updated');\n }", "title": "" }, { "docid": "0b10222182779f95692d101f822f75b6", "score": "0.55273986", "text": "public function update(Request $request, $id)\n {\n\n $slider=Slider::findorfail($id);\n $this->validate($request,[\n \"title\"=>\"required|max:100\",\n \"image\"=>\"nullable|image\"\n ]);\n\n $slider->name=$request->get(\"title\");\n if($request->hasFile(\"image\")){\n $old_location=public_path(\"images/slider/\".$slider->image_url);\n if(file_exists($old_location))\n unlink($old_location);\n\n $dblocation=uniqid(true).'.png';\n $location=public_path('images/slider/'.$dblocation);\n $file=$request->file(\"image\");\n Image::make($file)->encode(\"png\")->save($location);\n $slider->image_url=$dblocation;\n }\n\n $slider->save();\n Session::flash(\"success\",\"Slider has been updated\");\n\n return redirect()->back();\n\n\n }", "title": "" }, { "docid": "122628d1e06ea888611a75c166b89b4c", "score": "0.552677", "text": "public function patch($data) {\n if (isset($data['id']) && !is_numeric($data['id'])) {\n // Throw an error....\n return new ResourceResponse(\n [\n 'error' => t('You must provide an valid ID when updating a resource.'),\n ],\n ResourceResponse::HTTP_BAD_REQUEST\n );\n }\n $file_system_access_entity = entity_load('file_system_access', $data['id']);\n if (empty($file_system_access_entity)) {\n return new ResourceResponse(\n [\n 'error' => t('Resource not found.'),\n ],\n 404\n );\n }\n if (isset($data['entity_id']) && is_numeric($data['entity_id'])) {\n $file_system_access_entity->set('entity_id', $data['entity_id']);\n }\n if (isset($data['entity_type'])) {\n $file_system_access_entity->set('entity_type', $data['entity_type']);\n }\n if (isset($data['can_view']) && in_array($data['can_view'], [0, 1])) {\n $file_system_access_entity->set('can_view', $data['can_view']);\n }\n if (isset($data['can_write']) && in_array($data['can_write'], [0, 1])) {\n $file_system_access_entity->set('can_write', $data['can_write']);\n }\n if (isset($data['notify_of_upload']) && in_array($data['notify_of_upload'], [0, 1])) {\n $file_system_access_entity->set('notify_of_upload', $data['notify_of_upload']);\n }\n if (isset($data['user_id'])) {\n $file_system_access_entity->set('user_id', ['target_id' => $data['user_id']]);\n }\n // Save the FileSystemAccess Entity.\n $file_system_access_entity->save();\n // Return reponse.\n return new ModifiedResourceResponse(NULL, 202);\n }", "title": "" }, { "docid": "a82e18d865c6a0f13355d38c12c144b4", "score": "0.5523652", "text": "public function updateFilepath(){\n if(!empty($this->originalResource)){\n $this->setFilepath($this->getOriginalResource()->getIdentifier());\n }\n }", "title": "" }, { "docid": "c2ba30e945f68db8e69ec9299a2bf860", "score": "0.55200166", "text": "public function setResource($resource){\n $this->resource = $resource;\n }", "title": "" }, { "docid": "66fbae8975fea1c3ac6a3142735e3664", "score": "0.55114806", "text": "public function update(Request $request, $id)\n {\n $lens = Lens::find($id);\n\n File::delete(str_replace('public','storage',$lens->image));\n\n $lens->delete();\n\n $path = $request->file('image')->store('public');\n\n $lens = Lens::create($request->all());\n\n $lens->image = $path;\n $lens->update();\n\n return redirect()->route('lens.index');\n }", "title": "" }, { "docid": "265c7e4e1d9ccb8f2d919846c5c6d0e1", "score": "0.55072427", "text": "public function update($id, $input);", "title": "" }, { "docid": "70d4983ca950042ec52182066262a01f", "score": "0.55057055", "text": "public function update(Request $request, Product $product)\n {\n \n $product->name = $request->name;\n $product->price = $request->price;\n $product->description = $request->description;\n $product->featured = $request->featured;\n $product->image = $request->image;\n $product->category_id = $request->category_id;\n $product->brand_id = $request->brand_id;\n\n $product->save();\n\n return response([\n 'data' => new ProductResource($product)\n ],Response::HTTP_CREATED);\n }", "title": "" }, { "docid": "a1981e95d8e1e839e57300bff0e83269", "score": "0.5500746", "text": "abstract public function update_storage_site();", "title": "" }, { "docid": "012a18ea3549362ce2727f6242b46f5a", "score": "0.5497882", "text": "public function update(UpdateProductRequest $request, $id)\n {\n $products = Product::find($id);\n $path = null;\n $requestData = $request->all();\n if ($request->file('image')) {\n $path = $request->file('image')->store('public');\n @unlink('storage/'. $products->image);\n }\n if($request->hasFile('image')) {\n //\\File::delete($events->image);\n $requestData['image'] = $path;\n// $requestData['image'] = IdomNotification::uploadAndResize($request->file('image'));\n }\n\n\n\n\n// dd($data);\n $products->update($requestData);\n// $idoms->update($requestData);\n\n return redirect('/admin/products')->with('success','Item update successfully!');\n }", "title": "" }, { "docid": "631ec05d06376fc3d4e4c009809fbc97", "score": "0.54973245", "text": "public function update(SliderRequestUpdate $request, $id)\n {\n $slider=Slider::find($id);;\n $slider->TituloSlider=$request->TituloSlider;\n $slider->DescripcionSlider=$request->DescripcionSlider;\n $slider->EstadoSlider=$request->EstadoSlider;\n\n if ($request->file('file')) {\n \n Storage::disk('s3')->delete('sliders/'.$slider->file_name);\n\n $nameFile = $request->file('file');\n \n $newName = time().rand().'.'.$nameFile->getClientOriginalExtension();\n #Amazon\n\n $path = $nameFile->storeAs('sliders', $newName,'s3');\n Storage::disk('s3')->setVisibility($path, 'public');\n \n $slider->file_url=Storage::disk('s3')->url($path);\n $slider->file=$nameFile->getClientOriginalName();\n $slider->file_name=$newName;\n $slider->file_type=$nameFile->getClientOriginalExtension();\n\n }\n\n \n # $slider->file_url\n $slider->update();\n\n return $slider;\n }", "title": "" }, { "docid": "5ec7d4d96d210f32e09b80058c55a490", "score": "0.5496931", "text": "public function update(Request $request, $id){\n $product = Product::find($id);\n // dd($product);\n if($product){\n if($request->description){\n $product->description = $request->description;\n }\n if($request->name){\n $product->name = $request->name;\n }\n if($request->qty){\n $product->qty = $request->qty;\n }\n if($request->price){\n $product->price = $request->price;\n }\n if ($request->hasFile('image')) {\n $img_src = $request->file('image')->store('public/images');\n $product->image_src = $img_src;\n }\n\n return $product->save() ? 'product updated!' : 'could not update the product';\n }else{\n return 'product not found';\n }\n \n }", "title": "" }, { "docid": "ba09590827a6c41287d661376548ea80", "score": "0.5494963", "text": "public function update(Request $request, $client, $resource)\n\t{\n\t\t$resource = Resource::findBySlug($client, $resource);\n\n\t\tif (!$resource) {\n\t\t\treturn response(view('resources.404'), 404);\n\t\t}\n\n\t\t$resource->load('client');\n\t\t$client = $resource->client;\n\n\t\t$this->authorize('manage', $resource);\n\n\t\t$this->validate($request, [\n\t\t\t'name' => ['required', 'max:255'],\n\t\t\t'slug' => [\n\t\t\t\t'required',\n\t\t\t\t'max:255',\n\t\t\t\t'alpha_dash',\n\t\t\t\t'unique:resources,slug,'.$request->input('slug', $resource->slug).',slug,client_id,'.$resource->client->id,\n\t\t\t\t'not_in:create,destroy,edit,prune'\n\t\t\t],\n\t\t\t// 'metadata' => ['array'],\n\n\t\t\t'attachments' => ['array'],\n\t\t\t'uploads' => ['array'],\n\n\t\t\t'type' => ['required'],\n\n\t\t\t'client' => ['required', 'exists:clients,id'],\n\n\t\t\t'tags' => ['array'],\n\t\t\t'tags.*' => ['exists:tags,id'],\n\t\t]);\n\n\t\tif (($newClient = $request->input('client', $resource->client->id)) != $resource->client->id) {\n\t\t\t$client = Client::find($newClient);\n\t\t\t$resource->client()->associate($client);\n\t\t}\n\n\t\t$resource->name = $request->input('name');\n\t\t$resource->slug = $request->input('slug');\n\t\t$resource->metadata = $request->input('metadata', []);\n\n\t\t$attachments = $request->input('attachments', []);\n\n\t\tif ($request->hasFile('uploads')) {\n\t\t\t$uploads = $request->file('uploads');\n\t\t\t$attachments = array_merge($attachments, $uploads);\n\t\t}\n\n\t\t$resource->attachments = $attachments;\n\n\t\t// set type\n\t\tif (!($type = ResourceType::findBySlug($request->input('type')))) {\n\t\t\t$type = ResourceType::create([\n\t\t\t\t'name' => $request->input('type'),\n\t\t\t\t'slug' => str_slug($request->input('type')),\n\t\t\t]);\n\t\t}\n\n\t\t$resource->type()->associate($type);\n\n\t\t$resource->save();\n\n\t\t$resource->tags()->sync($request->input('tags', []));\n\n\t\treturn redirect()->route('clients.resources.show', ['client' => $resource->client->url, 'resource' => $resource->url])\n\t\t\t->with('alert-success', 'Resource updated!');\n\t}", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "96e3e53de207d1c0165b2f8d9b2e8bd8", "score": "0.5492371", "text": "public function update(Request $request, $id)\n {\n $book = Book::findOrFail($id);\n $path = Storage::putfile('public',$request->file('image'));\n $url = Storage::url($path);\n\n $book->title = $request->title;\n $book->price = $request->price;\n $book->image = $url;\n $book->subject = $request->subject;\n $book->author = $request->author;\n $book->pub_house = $request->pub_house;\n $book->description = $request->description;\n $book->update();\n\n return redirect()->route('land_page');\n }", "title": "" }, { "docid": "f34e0cee27ed61fcc8d340527f1d9673", "score": "0.5490983", "text": "#[Put('/{slug}', middleware: ['auth', 'can:update,slug'])]\n #[Operation(tags: ['Articles'], security: 'BearerToken')]\n #[RequestBody(factory: UpdateArticleRequestBody::class)]\n #[Response(factory: SingleArticleResponse::class, statusCode: 200)]\n #[Response(factory: ErrorValidationResponse::class, statusCode: 422)]\n public function update(Article $slug, UpdateArticleRequest $request): SingleArticleResource\n {\n $slug->update($request->input('article'));\n\n return new SingleArticleResource($slug->loadCount('favoritedBy'));\n }", "title": "" }, { "docid": "4d408504ca6fc63ae1c9b25f108a04b1", "score": "0.5490762", "text": "public function update(Request $request, $id)\n {\n $item = Item::find($id);\n $item->fill($request->all())->save();\n\n //file upload\n if($request->file('image_img')){\n $path = Storage::disk('public')->put('images/photos' , $request->file('image_img'));\n $item->fill(['image_img' => asset($path)])->save();\n }\n\n //tags\n $item->tags()->sync($request->get('tags'));\n\n return redirect()->route('item.index')->with('flash','Article actualizado correctamente.');\n }", "title": "" }, { "docid": "2f3b20927c08bdb57df533acda52a1fe", "score": "0.5490345", "text": "public function update(Request $request) {\n $this->validateItemInput($request);\n \n $item = Db::get()\n ->find(\n $this->classCall, $request->attributes->get('id')\n );\n if (!($item instanceof $this->classCall)) {\n $response = new Response('Trying to update non existing item.');\n $response->setStatusCode(400);\n return $response;\n }\n $oldPath = $item->path;\n $item->update($request->request->all());\n if ($oldPath !== $item->path) {\n $item->path = $this->getUniquePath($item->path);\n }\n Db::get()->persist($item);\n return $item;\n }", "title": "" }, { "docid": "eb69ca57c3bde9f06755b1a82e717baa", "score": "0.54793954", "text": "public function update(Request $request, $id)\n {\n $item = Item::findOrFail($id);\n \n $currentPhoto = $item->photo;\n if ($request->photo != $currentPhoto) {\n $name = time().'.' . explode('/',explode(':', substr($request->photo, 0, strpos($request->photo, ';')))[1])[1];\n\n \\Image::make($request->photo)->save(public_path('/img/item/').$name);\n $request->merge(['photo' => $name]);\n\n $itemPhoto = public_path('/img/item/').$currentPhoto;\n if (file_exists($itemPhoto)) {\n @unlink($itemPhoto);\n }\n }\n $item->update($request->all());\n \n return ['message' => 'Updated Success'];\n }", "title": "" }, { "docid": "ceac6ee3c36ec0367a2b9490feebe7a9", "score": "0.5478989", "text": "public function update(Request $request, $id)\n {\n\n $requestData = $request->all();\n $imagePaths = [];\n\n if ($request->hasFile('path')) {\n for ( $index = 0; $index < sizeof( $requestData['path']); $index++) {\n $imagePath = 'storage/' . $request->file('path')[$index]\n ->store('uploads', 'public');\n array_push($imagePaths, $imagePath);\n }\n }\n $image = Image::findOrFail($id);\n\n if (sizeof($imagePaths) === 0) {\n $requestData['path'] = $image->path;\n $image->update($requestData);\n }\n else {\n $oldImagePath = $image->path;\n $oldImagePath = str_replace(\"storage/\",storage_path('') . '/app/public/' , $oldImagePath);\n\n foreach ($imagePaths as $imagePath){\n\n $requestData['path'] = $imagePath;\n $image->update($requestData);\n }\n\n if(File::exists($oldImagePath)){\n File::delete($oldImagePath);\n }\n }\n\n\n\n return redirect('images/' . $request->get('post_id'))->with('flash_message', 'Image updated!');\n }", "title": "" }, { "docid": "6dbe9a80c3cc7c4c7214a73b919cb78b", "score": "0.54670787", "text": "public function update($request);", "title": "" }, { "docid": "2840f4acb2ccb4170d4557d937e25de4", "score": "0.5465156", "text": "public function update(Request $request, $id)\n {\n $data = Image::find($id);\n $all = $request->all();\n if(is_null($data))\n return response()->json(['error' => 'Resource introuvable'], 404);\n else\n {\n if(isset($all['url']))\n {\n $name = File::image($all['url']);\n if($name)\n {\n $all['url'] = $name;\n }else $all['url'] = $data->url;\n }\n\n $data->update($all);\n $data->categories()->sync($request->categories);\n $data->tags()->sync($request->tags);\n\n return response()->json(new ImageResource($data), 200);\n }\n }", "title": "" }, { "docid": "9080726c97000b95123e3a3548679cb5", "score": "0.5464735", "text": "public function update(Request $request, $id)\n {\n $this->slider = $this->slider->find($id);\n $rule =$this->slider->getRules('update');\n $request->validate($rule);\n $data = $request->except('image');\n\n if($request->image){\n $image_name = uploadImage($request->image,'slider','500x300');\n if($image_name){\n $data['image'] = $image_name;\n if($this->slider->image!= ''){\n deleteImage($this->slider->image,'slider');\n };\n }\n }\n $update = $this->slider->update($data);\n if($update){\n request()->session()->flash('success','Product has been updated');\n }else {\n request()->session()->flash('error','Product has not Been updated');\n\n }\n return redirect()->route('slider.index');\n\n }", "title": "" }, { "docid": "a1d61f0aa122378fb9049378295f5945", "score": "0.54586715", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "a1d61f0aa122378fb9049378295f5945", "score": "0.54586715", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "a1d61f0aa122378fb9049378295f5945", "score": "0.54586715", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "536db9f9519d6601d2b49cdcde95f013", "score": "0.5458005", "text": "public function update(Request $request, $id)\n {\n //\n $this->validate($request,[\n 'id_manufacture' => 'required',\n 'asset_tag' => 'required',\n 'id_category' => 'required',\n 'order_number' => 'required',\n 'qty' => 'required',\n 'min_qty' => 'required',\n 'id_location' => 'required'\n ]);\n $input = $request->all();\n $asset = Assets::find($id);\n if(!empty($input['image'])){\n Storage::delete(public_path('storage'),$asset->image);\n $input['image'] = time().'.'.$request->image->getClientOriginalExtension();\n $request->image->move(public_path('storage/assets/'), $input['image']);\n }else {\n $input = array_except($input, array('image'));\n }\n $input['created_by'] = Auth::user()->name;\n $asset->update($input);\n return redirect()->route('assets.index')->with(['success' => 'Asset updated successfully', 'class' => 'close']);\n }", "title": "" }, { "docid": "db3837780a308513dc99c922897e898e", "score": "0.54579574", "text": "public function update()\n {\n $this->delete();\n $this->save();\n }", "title": "" }, { "docid": "5f36cdc3217c7c251089de9b1597e8a0", "score": "0.54572374", "text": "public static function put(string $resource, array $body = []) {\r\n $response = self::getClient()->request(\r\n \"PUT\",\r\n self::createUrl($resource),\r\n self::createHeaders(!empty($body)),\r\n NullStripper::strip($body)\r\n );\r\n\r\n if (!self::isSuccessful($response)) {\r\n self::handleFailure($response);\r\n }\r\n return self::handleSuccess($response);\r\n }", "title": "" }, { "docid": "8f4a12a4a3962d1da8617ab2c1add338", "score": "0.5455601", "text": "public function update(Request $request, Product $product)\n {\n if($request->image != NULL) {\n #Image uploading\n $storedPath = $request->file('image')->store('public/products'); \n }\n \n \n #Update the current product\n $product->update([\n 'title' => $request->title,\n 'body' => $request->body,\n 'price' => auth()->user()->id == $product->user_id ? $request->price : $product->price,\n 'category' => $request->category,\n 'image_path' => $request->image != NULL ? $storedPath : $product->image_path,\n 'status' => $request->status\n ]);\n\n #Return back to list page\n return redirect('/products');\n }", "title": "" }, { "docid": "19323452d4f8b1e3cc766b966234512d", "score": "0.54551905", "text": "public function update($obj) {\n }", "title": "" }, { "docid": "236d64bd92646776ec0d62483983f6b1", "score": "0.5442009", "text": "public function update($id, $data)\n {\n try {\n $this->logger->info(\"Trying to update resource in database table\");\n $this->checkId($id);\n\n $putValues = $this->putValues($id, $data);\n\n $query = \"UPDATE guest.student SET name = :name, surname = :surname, indexno = :indexno, address = :address WHERE id = :id\";\n $stmt = $this->conn->prepare($query);\n\n $stmt->bindParam(\":id\", $id);\n $stmt->bindParam(\":name\", $putValues[\"name\"]);\n $stmt->bindParam(\":surname\", $putValues[\"surname\"]);\n $stmt->bindParam(\":indexno\", $putValues[\"indexno\"]);\n $stmt->bindParam(\":address\", $putValues[\"address\"]);\n\n $stmt->execute();\n echo \"Resource successfully updated\";\n $this->logger->info(\"Updating resource successful in database table\");\n\n } catch (InvalidIdException $e) {\n $this->logger->warning(\"ID doesn't exist in database table\");\n echo \"Error: \" . $e->getMessage();\n } catch (\\Exception $e) {\n $this->logger->warning(\"Error updating resource in database table\");\n echo \"Error updating resource: \" . $e->getMessage();\n }\n }", "title": "" }, { "docid": "a098fb5d396525d0b997679afe399e81", "score": "0.54363286", "text": "public function update(Request $request, $id)\n {\n\n $product = $this->productRepo->getById($id);\n $request_data = $request->except(['_method', '_token', 'photo', 'product_cats', 'ar', 'en']);\n\n $locale = $request->only('ar', 'en');\n $cats = $request->product_cats;\n\n\n if ($request->hasFile('photo')) {\n /*delete old photo*/\n $oldPath = public_path('/images/products/' . $product->photo);\n $oldThumbPPath = public_path('/images/products/thumb/' . $product->photo);\n File::delete($oldPath, $oldThumbPPath);\n\n $image = $this->upload($request->photo, 'products', true);\n $request_data['photo'] = $image;\n\n }\n\n $this->productRepo->updateData($id, $request_data, $locale, $cats);\n\n return redirect()->route('products.index')->with('update', 'data updated successfully');\n\n\n }", "title": "" }, { "docid": "78c9828cfb522a8b15c9e25aecac3a44", "score": "0.54266506", "text": "public function update(Request $request, $id)\n {\n $order = Order::findOrFail($id);\n $previous_qty = $order->quantity;\n $order->user_id = auth()->id();\n $order->product_id = $request['product_id'];\n $order->quantity = $request['quantity'];\n\n if ($order->save()) {\n Inventory::where('product_id', $order->product_id)->decrement('quantity', $order->quantity);\n Inventory::where('product_id', $order->product_id)->increment('quantity', $previous_qty);\n return new OrderResource($order);\n }\n }", "title": "" }, { "docid": "ecf201c555a1f2a407beb441493f659d", "score": "0.5425398", "text": "public function update(Request $request, $id)\n {\n //\n // dd($request);\n $this->validate($request, [\n 'name' => 'required',\n 'price' => 'required',\n 'point' => 'required',\n 'category' => 'required',\n 'image' => 'image|mimes:jpeg,png,jpg,gif|max:2048',\n ]);\n $new_name = \"\";\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $new_name = time() . '.' . $image->getClientOriginalExtension();\n Image::make($image)->resize(450, 400)->save(public_path('picture/product/' . $new_name));\n $out_of_stock = Out_of_stock::find($id);\n $out_of_stock->name = $request->get('name');\n $out_of_stock->price = $request->get('price');\n $out_of_stock->point = $request->get('point');\n $out_of_stock->category = $request->get('category');\n $oldpruductname = $out_of_stock->picture;\n $out_of_stock->picture = $new_name;\n Storage::delete('product/'.$oldpruductname);\n } else {\n $out_of_stock = Out_of_stock::find($id);\n $out_of_stock->name = $request->get('name');\n $out_of_stock->price = $request->get('price');\n $out_of_stock->point = $request->get('point');\n $out_of_stock->category = $request->get('category');\n }\n\n $out_of_stock->save();\n return back()->with('success', 'Edit data success');\n }", "title": "" }, { "docid": "4da53910fe95b40fc7708d69a5bc4caf", "score": "0.54252774", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'sub_title' => 'required',\n 'image' => 'required|mimes:jpeg,bmp,png'\n ]);\n $slider = Slider::find($id);\n $image = $request->file('image');\n $filename = $image->getClientOriginalName();\n $filename = time(). '.' . $filename;\n $path = 'upload/slider/'.$filename;\n $storage = Storage::disk('s3');\n $storage->put($path, fopen($image, 'r+'), 'public');\n\n $slider->title = $request->title;\n $slider->sub_title = $request->sub_title;\n $slider->image = $path;\n $slider->save();\n Toastr::success('Slider Successefully Updated!', 'Success', [\"positionClass\" =>\"toast-top-right\"]);\n return redirect()->route('slider.index');\n }", "title": "" }, { "docid": "a4ae1c30e150f5cf694572b68551bd23", "score": "0.5425028", "text": "public function update(Request $request, $id)\n {\n $this->validate($request,[\n 'title'=>'required',\n 'content'=>'required',\n 'date'=>'required',\n 'image'=>'required|image',\n ]);\n $product = Product::find($id);\n $product->edit($request->all());\n $product -> uploadImage($request->file('image'));\n $product->setCategory($request->get('category_id'));\n $product->toggleStock($request->get('in_stock'));\n\n return redirect()->route('products.index');\n }", "title": "" }, { "docid": "f08541062169cb53c21e52b58cdb2dcd", "score": "0.5424735", "text": "public function update(Request $request, $id)\n {\n //\n $id = $request->id;\n $store_edit = Store::find($id);\n $store_edit->store_name = $request->store_name;\n $store_edit->store_tel = $request->store_tel;\n $store_edit->store_type_id = $request->store_type;\n $store_edit->store_lineid = $request->store_line;\n $store_edit->store_contact = $request->store_contact;\n $store_edit->store_address = $request->store_address;\n $store_edit->store_detail = $request->store_detail;\n $store_edit->store_status = $request->store_status;\n $store_edit->store_tax_contact = $request->store_tax_contact;\n $store_edit->store_tax_name = $request->store_tax_name;\n $store_edit->store_tax_id = $request->store_tax_id;\n $store_edit->confirm = $request->confirm;\n $store_edit->store_lat = $request->store_lat;\n $store_edit->store_lng = $request->store_lng;\n $tmp = '';\n if($request->check_list){\n foreach($request->check_list as $key => $item){\n if($key == 0){\n $tmp = $item;\n }\n else{\n $tmp = $item.','.$tmp;\n } \n }\n }\n $store_edit->store_promotion = $tmp;\n $store_edit->store_status = $request->store_status;\n\n\n if($request->hasFile('storeimage')){\n Storage::disk('do_spaces')->delete('stores/'.$store_edit->store_image); \n $newFileName = uniqid().'.'.$request->storeimage->extension();//gen name\n $imageStore = $request->file('storeimage');\n $t = Storage::disk('do_spaces')->put('stores/'.$newFileName, file_get_contents($imageStore), 'public');\n $store_edit->store_image = $newFileName;\n }\n if($request->hasFile('storeimageline')){\n Storage::disk('do_spaces')->delete('stores/'.$store_edit->store_lineid_image);\n $newFileName = uniqid().'.'.$request->storeimageline->extension();//gen name\n $imageStoreLine = $request->file('storeimageline');\n $t = Storage::disk('do_spaces')->put('stores/'.$newFileName, file_get_contents($imageStoreLine), 'public');\n $store_edit->store_lineid_image = $newFileName;\n }\n if($request->hasFile('storeimagetax')){\n Storage::disk('do_spaces')->delete('stores/'.$store_edit->store_tax_image);\n $newFileName = uniqid().'.'.$request->storeimagetax->extension();//gen name\n $imageStoreTax = $request->file('storeimagetax');\n $t = Storage::disk('do_spaces')->put('stores/'.$newFileName, file_get_contents($imageStoreTax), 'public');\n $store_edit->store_tax_image = $newFileName;\n }\n $store_edit->save();\n return redirect()->route('store.index')->with('feedback' ,'แก้ไขข้อมูลเรียบร้อยแล้ว');\n }", "title": "" }, { "docid": "2ed05e577c404795cab2b1dde733d75c", "score": "0.5418497", "text": "public function update(Request $request, $id)\n {\n $datos = $request->except('_token','_method');\n\n if ($request->hasFile('foto')) {\n $artista = Artista::findOrfail($id);\n Storage::delete('public/uploads/'.$artista->id.'/'. $artista->foto);\n $datos['foto'] = $request->file('foto')->getClientOriginalName();\n $request->file('foto')->storeAs('public/uploads/'.$artista->id, $datos['foto']);\n }\n\n Artista::where('id','=',$id)->update($datos);\n return redirect('artista');\n }", "title": "" }, { "docid": "da9aacaea3d57116c579322deaba3198", "score": "0.5416959", "text": "public function update(Request $request, $id)\n {\n try {\n $result = $this->model->find($id);\n\n if ($result) {\n $inputs = $request->except('_token');\n\n if ($request->hasFile('image')) {\n $fileName = time() . '.' . $request->image->getClientOriginalExtension();\n $file = $request->file('image');\n\n Storage::put($this->dishImageStoragePath . $fileName, file_get_contents($file), 'public');\n\n $inputs['image'] = $fileName;\n\n if (isset($result->image) && $result->image) {\n if (Storage::exists($this->dishImageStoragePath . $result->image)) {\n Storage::delete($this->dishImageStoragePath . $result->image);\n }\n }\n }\n\n $isSaved = $result->update($inputs);\n\n if ($isSaved) {\n return redirect($this->moduleRoute)->with(\"success\", __($this->moduleName . \" updated!\"));\n }\n }\n return redirect($this->moduleRoute)->with(\"error\", __(\"Something went wrong, please try again later.\"));\n } catch (\\Exception $e) {\n return redirect($this->moduleRoute)->with('error', $e->getMessage());\n }\n }", "title": "" }, { "docid": "9909c434dfa1fa2de013b52dc098057a", "score": "0.54166603", "text": "public function updateProduct();", "title": "" }, { "docid": "83fd3d73dd82fcaecb92e078c534bdfe", "score": "0.54161036", "text": "public function update(Request $request, $id)\n {\n $data = array();\n $data['status'] = $request->status;\n \n \n $image = $request->newphoto;\n\n if ($image) {\n $position = strpos($image, ';');\n $sub = substr($image, 0, $position);\n $ext = explode('/', $sub)[1];\n\n $name = time().\".\".$ext;\n $img = Image::make($image)->resize(240,200);\n $upload_path = 'backend/supplier/';\n $image_url = $upload_path.$name;\n $success = $img->save($image_url);\n \n if ($success) {\n $data['photo'] = $image_url;\n $img = DB::table('patients')->where('id',$id)->first();\n $image_path = $img->photo;\n $done = unlink($image_path);\n $user = DB::table('patients')->where('id',$id)->update($data);\n }\n \n }else{\n $oldphoto = $request->photo;\n $data['photo'] = $oldphoto;\n $user = DB::table('patients')->where('id',$id)->update($data);\n }\n }", "title": "" }, { "docid": "fa90d4335b5457d60aed5f93219c9fb9", "score": "0.5414578", "text": "function update($resource_id,$options)\n\t{\n\t\t//allowed fields\n\t\t$valid_fields=array(\n\t\t\t//'resource_id',\n\t\t\t//'survey_id',\n\t\t\t'dctype',\n\t\t\t'title',\n\t\t\t'subtitle',\n\t\t\t'author',\n\t\t\t'dcdate',\n\t\t\t'country',\n\t\t\t'language',\n\t\t\t//'id_number',\n\t\t\t'contributor',\n\t\t\t'publisher',\n\t\t\t'rights',\n\t\t\t'description',\n\t\t\t'abstract',\n\t\t\t'toc',\n\t\t\t'subjects',\n\t\t\t'filename',\n\t\t\t'dcformat',\n\t\t\t'changed');\n\n\t\t//add date modified\n\t\t$options['changed']=date(\"U\");\n\t\t\t\t\t\n\t\t//remove slash before the file path otherwise can't link the path to the file\n\t\tif (isset($options['filename']))\n\t\t{\n\t\t\tif (substr($options['filename'],0,1)=='/')\n\t\t\t{\n\t\t\t\t$options['filename']=substr($options['filename'],1,255);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//pk field name\n\t\t$key_field='resource_id';\n\t\t\n\t\t$update_arr=array();\n\n\t\t//build update statement\n\t\tforeach($options as $key=>$value)\n\t\t{\n\t\t\tif (in_array($key,$valid_fields) )\n\t\t\t{\n\t\t\t\t$update_arr[$key]=$value;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//update db\n\t\t$this->db->where($key_field, $resource_id);\n\t\t$result=$this->db->update('resources', $update_arr); \n\t\t\n\t\treturn $result;\t\t\n\t}", "title": "" }, { "docid": "cc834cb0ddf4d709f9b0966aeba0c395", "score": "0.5407511", "text": "public function update(Request $request, Product $product)\n {\n\n if (Auth::id()==$product->user_id) {\n $product->update($request->all());\n\n return response([\n 'data'=>new ProductResource($product)\n ],Response::HTTP_CREATED); \n }\n\n \nelse {\n return response([\n 'error'=>'product doesnt belong to current user'\n ],Response::HTTP_NOT_FOUND); \n}\n // return response()->json(new ProductResource($product), 200); \n\n \n\n \n }", "title": "" } ]
9a045dbf75ebbf330b900e711fa3684a
Make a form builder.
[ { "docid": "e03ff2b77baca33143810f02d928a25c", "score": "0.6741776", "text": "protected function form()\n {\n $form = new Form(new LuckyDraw02List);\n\n $form->text('rdid', 'Rdid');\n $form->text('openid', 'Openid');\n $form->switch('is_winning', 'Is winning');\n $form->text('code', 'Code');\n $form->switch('status', 'Status');\n $form->text('token', 'Token');\n $form->number('prize_id', 'Prize id');\n// $form->token\n\n return $form;\n }", "title": "" } ]
[ { "docid": "0d0a6b8acc2c6f2d3cff91132020ac90", "score": "0.744362", "text": "public function formBuilder()\n {\n return $this->form;\n }", "title": "" }, { "docid": "831b02e9959f0ed8d78ddf4ed5af6c0c", "score": "0.73351854", "text": "private static function factoryForm(): Form\n\t{\n\t\t$form = new Form;\n\t\t$form->addReCaptcha('recaptcha', 'reCAPTCHA for you', \"Please prove you're not a robot.\");\n\t\t$form->addSubmit('send', 'Submit form');\n\t\treturn $form;\n\t}", "title": "" }, { "docid": "4034e7e1b36aae5980a3890bcb588dbb", "score": "0.72423583", "text": "public function formBuilder()\n {\n return $this->_formBuilder;\n }", "title": "" }, { "docid": "647cb9af606d6b2f070e9e8a3beadbea", "score": "0.72313595", "text": "protected function form()\n {\n $form = new Form(new With());\n\n $form->number('user_id', __('User id'));\n $form->number('activity_id', __('Activity id'));\n $form->number('cate', __('Cate'))->default(1);\n $form->text('name', __('Name'));\n $form->mobile('phone', __('Phone'));\n\n return $form;\n }", "title": "" }, { "docid": "29a15a1a8b5d8ed90b0eb11cda0c6574", "score": "0.7226714", "text": "public function build(FormBuilder $formBuilder);", "title": "" }, { "docid": "6c89c3b5d5e8d5016a172248bfb2f798", "score": "0.7167584", "text": "public function builder()\n {\n return app(PostLinkTypeFormBuilder::class);\n }", "title": "" }, { "docid": "e483a65cf29283268f76ecab63895939", "score": "0.7160676", "text": "public function builder(FormInterface $form);", "title": "" }, { "docid": "6f31c93c2387d1af2ba86b9bdec4fe16", "score": "0.71426666", "text": "protected function form()\n {\n $form = new Form(new Website());\n\n $form->text('title', __('Title'))->default('網站');\n $form->textarea('description', __('Description'));\n $form->textarea('keyword', __('Keyword'));\n $form->text('ga_key', __('Ga key'));\n $form->text('domain', __('Domain'));\n $form->switch('status', __('field.status'));\n\n return $form;\n }", "title": "" }, { "docid": "2960632bc4ced7f7d1d75e82f23efe38", "score": "0.71331424", "text": "protected function form()\n {\n $form = new Form(new Link());\n\n $form->text('name', '名称');\n $form->url('url', 'Url');\n $form->text('logo', 'Logo');\n $form->number('sort', '排序')->default(0);\n $form->switch('status', '状态')->default(1);\n\n return $form;\n }", "title": "" }, { "docid": "148a46a81ee6921c800061dfd3111fd0", "score": "0.71318495", "text": "public function getFormBuilder()\n {\n $this->formOptions['data_class'] = $this->getClass();\n\n $this->formOptions['allow_extra_fields'] = true;\n $this->formOptions['validation_groups'] = false;\n $this->formOptions['error_bubbling'] = false;\n\n $formBuilder = $this->getFormContractor()->getFormBuilder(\n $this->getUniqid(),\n $this->formOptions\n );\n\n $this->defineFormBuilder($formBuilder);\n\n return $formBuilder;\n }", "title": "" }, { "docid": "62dc7465811ee4b8471c4d5dc046d853", "score": "0.7098322", "text": "protected function form()\n {\n $form = new Form(new Activity);\n\n $form->text('name', __('Name'));\n $form->decimal('quota', __('Quota'));\n $form->decimal('offer', __('Offer'));\n $form->text('type', __('Type'))->default('normal');\n $form->datetime('expire', __('Expire'))->default(date('Y-m-d H:i:s'));\n\n return $form;\n }", "title": "" }, { "docid": "e0736185e6dc421721513f15a13945e2", "score": "0.7088421", "text": "protected function form()\n {\n $form = new Form(new contacts());\n\n $form->text('fax', __('Fax'));\n $form->text('billing_city', __('Billing city'));\n $form->text('billing_street', __('Billing street'));\n $form->text('billing_state', __('Billing state'));\n $form->text('billing_postal_code', __('Billing postal code'));\n $form->text('shipping_city', __('Shipping city'));\n $form->text('shipping_street', __('Shipping street'));\n $form->text('shipping_state', __('Shipping state'));\n $form->text('shipping_postal_code', __('Shipping postal code'));\n $form->text('first_name', __('First name'));\n $form->text('last_name', __('Last name'));\n $form->number('account_id', __('Account id'));\n $form->text('office_phone', __('Office phone'));\n $form->email('email', __('Email'));\n $form->mobile('mobile', __('Mobile'));\n $form->text('job_title', __('Job title'));\n $form->text('email_type', __('Email type'));\n\n return $form;\n }", "title": "" }, { "docid": "2181ed4a3d6f9e57e71cf7835e4e99ce", "score": "0.7084713", "text": "public function create() {\n return new Form($this->cxt);\n }", "title": "" }, { "docid": "0fb3cd8c0145f29782110ab7515d252a", "score": "0.7083732", "text": "protected function _createTargetForm()\n {\n return new \\Gems_Form();\n }", "title": "" }, { "docid": "17b4e97f9ce50272ce8b8cef582245f6", "score": "0.70773464", "text": "protected function makeForm(){\n $form = new \\Foundation\\Form;\n $form->setAction($this->_controller->getActionPath());\n $field = $form->newField();\n $field->setLegend($this->_applicationPage->getTitle());\n $field->setInstructions($this->_applicationPage->getInstructions());\n \n $element = $field->newElement('SelectList', 'branching');\n $element->setLabel($this->_applicationPage->getPage()->getVar('branchingElementLabel'));\n $element->addValidator(new \\Foundation\\Form\\Validator\\NotEmpty($element));\n \n foreach($this->_applicationPage->getPage()->getChildren() as $child){\n $element->newItem($child->getId(), $child->getTitle());\n }\n $form->newHiddenElement('level', 1);\n $form->newButton('submit', 'Next');\n return $form;\n }", "title": "" }, { "docid": "63e67451cba7e6f4902812af7f2c55a5", "score": "0.7066335", "text": "protected function form()\n {\n $form = new Form(new Contact);\n\n $form->tab('Основное', function (Form $form) {\n $form->display('ID');\n $form->switch('active', 'Активность')->options(AdminHelper::switcherData());\n $form->number('sort', 'Сортировка');\n $form->select('position', 'Позиция')->options(['top' => 'top','bottom' => 'bottom']);\n $form->image('icon', 'Иконка');\n });\n $form->tab('RU', function (Form $form) {\n $form->text('headline_ru', 'Заголовок RU');\n $form->textarea('source_ru', 'Ресурс RU');\n });\n $form->tab('EN', function (Form $form) {\n $form->text('headline_en', 'Заголовок EN');\n $form->textarea('source_en', 'Ресурс EN');\n });\n\n return $form;\n }", "title": "" }, { "docid": "5cb6f9e7532570899cbf1641e157cbe7", "score": "0.7044576", "text": "protected function form()\n {\n $form = new Form(new WeiboUser);\n\n $form->text('avatar_hd', 'Avatar hd');\n $form->text('cover_image_phone', 'Cover image phone');\n $form->text('description', 'Description');\n $form->text('follow_count', 'Follow count');\n $form->text('followers_count', 'Followers count');\n $form->text('gender', 'Gender');\n $form->text('weibo_id', 'Weibo id');\n $form->number('mbrank', 'Mbrank');\n $form->number('mbtype', 'Mbtype');\n $form->text('screen_name', 'Screen name');\n $form->number('statuses_count', 'Statuses count');\n $states = [\n 'on' => ['value' => 0, 'text' => 'new', 'color' => 'primary'],\n 'off' => ['value' => 1, 'text' => 'old', 'color' => 'default'],\n ];\n $form->select('status', 'Status')->default(0)->options([0 => 'new', 1 => 'old']);\n\n return $form;\n }", "title": "" }, { "docid": "84bea0a4ec2bc03d1ff1394424e8fb25", "score": "0.7042551", "text": "protected function form()\n {\n $form = new Form(new Activity());\n\n $form->text('title', __('Title'));\n $form->image('cover', __('Cover'));\n $form->image('img', __('Img'));\n $form->datetime('starttime', __('Starttime'))->default(date('Y-m-d H:i:s'));\n $form->datetime('endtime', __('Endtime'))->default(date('Y-m-d H:i:s'));\n $form->datetime('sign_endtime', __('Sign endtime'))->default(date('Y-m-d H:i:s'));\n $form->text('zubie', __('Group'));\n $form->text('guize', __('Rule'));\n $form->text('xize', __('Detail'));\n\n return $form;\n }", "title": "" }, { "docid": "de4fcbd6a7a5efa1861957b6632262e1", "score": "0.7040053", "text": "protected function form()\n {\n $form = new Form(new WeiboUser());\n\n $form->text('weibo_id', __(trans('hhx.weibo_id')));\n $form->text('screen_name', __(trans('hhx.screen_name')));\n\n return $form;\n }", "title": "" }, { "docid": "1f59225dcfc8c643094698616bfd3f75", "score": "0.7039822", "text": "protected function form()\n {\n $form = new Form(new Link);\n\n $form->text('web_name', __('Web name'));\n $form->url('link', __('Link'));\n $form->text('top_domain', __('Top domain'));\n $form->text('domain_name', __('Domain name'));\n $form->number('category_id', __('Category id'));\n $form->switch('status', __('Status'));\n $form->number('view', __('View'));\n $form->ip('ip', __('Ip'));\n $form->switch('failure_times', __('Failure times'));\n $form->text('type', __('Type'));\n $form->number('rank', __('Rank'));\n\n return $form;\n }", "title": "" }, { "docid": "f50a1dbaed2bacb12da2382011c9d5bd", "score": "0.7037942", "text": "protected function form()\n {\n $form = new Form(new Record());\n\n $form->text('platform', __('平台'));\n $form->text('keyword', __('关键字'));\n $form->ip('ip', __('IP'));\n $form->text('url_token', __('URL标志'));\n $form->url('url', __('URL'));\n\n return $form;\n }", "title": "" }, { "docid": "20e10688351b0d6f1f72ac18736f917c", "score": "0.703539", "text": "protected function form()\n {\n $form = new Form(new Classifys());\n\n $form->text('name', __('Class Name'))->rules('required', ['不能为空']);\n $form->number('ord', __('Ord'))->default(1);\n\n $states = [\n 'on' => ['value' => 1, 'text' => '启用', 'color' => 'primary'],\n 'off' => ['value' => 2, 'text' => '禁用', 'color' => 'default'],\n ];\n //$form->switch($c_status)->rules('required', ['请选择状态'])->default(1);;\n $form->switch('c_status', '状态')->rules('required', ['请选择状态'])->states($states);\n\n\n $form->text('info');\n $form->text('appid')->default(GetRandStr(16))->readonly();\n Admin::script('console.log(\"hello world\");');\n $form->text('appsecret')->default(GetRandStr(16))->readonly();\n\n\n if (1) {\n $form->tools(function (Form\\Tools $tools) {\n\n\n // 添加一个按钮, 参数可以是字符串, 或者实现了Renderable或Htmlable接口的对象实例\n $tools->append('<a class=\"btn btn-sm\" onclick=\"$(\"#appid\").val(\"2222\")\"><i class=\"fa fa-trash\"></i> 随机生成</a>');\n });\n }\n\n $form->footer(function ($footer) {\n // 去掉`查看`checkbox\n $footer->disableViewCheck();\n });\n $form->tools(function (Form\\Tools $tools) {\n // 去掉`查看`按钮\n $tools->disableView();\n });\n return $form;\n }", "title": "" }, { "docid": "989e1e23cf1367a99b49193aeca2d10d", "score": "0.7026644", "text": "abstract protected function buildForm();", "title": "" }, { "docid": "56b6fe8b2fe68c1b74cd1e8f9777338f", "score": "0.7021989", "text": "protected function form()\n {\n $form = new Form(new Banner);\n $form->image('img_url', '上传图片')->uniqueName()->removable()->help('建议图片长宽比 5:3');;\n $form->switch('status', '启用?')->default(BannerEnum::BANNER_STATUS_TRUE);\n $form->footer(function ($footer) {\n // 去掉`重置`按钮\n $footer->disableReset();\n\n // 去掉`提交`按钮\n //$footer->disableSubmit();\n // 去掉`查看`checkbox\n $footer->disableViewCheck();\n // 去掉`继续编辑`checkbox\n $footer->disableEditingCheck();\n // 去掉`继续创建`checkbox\n $footer->disableCreatingCheck();\n\n });\n return $form;\n }", "title": "" }, { "docid": "1ada90235087168992e0e269904c7ab6", "score": "0.69990045", "text": "protected function form()\n {\n $form = new Form(new Device);\n $form->text('brand', '品牌');\n $form->text('brand_set', '品牌系列');\n $form->text('dload', '载重(kg)');\n $form->number('speedup', '速度(m/s)');\n $form->number('floor', '楼层');\n $form->number('hoisting_height', '标准提升高度(m)');\n $form->currency('freeboard_dev', '设备超米费(元/米)')->symbol('¥');\n $form->currency('freeboard_ins', '安装超米费(元/米)')->symbol('¥');\n $form->currency('device_price', '设备单价')->symbol('¥');\n $form->currency('install_price', '安装单价')->symbol('¥');\n $form->slider('device_rate', '设备税率')->options(['max' => 0.17, 'min' => 0, 'step' => 0.01]);\n $form->slider('install_rate', '安装税率')->options(['max' => 0.11, 'min' => 0, 'step' => 0.01]);\n $form->tools(function (Form\\Tools $tools) {\n $tools->disableView();\n });\n $form->footer(function ($footer) {\n // 去掉`查看`checkbox\n $footer->disableViewCheck();\n // 去掉`继续编辑`checkbox\n $footer->disableEditingCheck();\n // 去掉`继续创建`checkbox\n $footer->disableCreatingCheck();\n });\n return $form;\n }", "title": "" }, { "docid": "9db2b55db5492c9c5743b0b38f7f8853", "score": "0.6997872", "text": "public static function build($options = [])\n {\n $form = new Form();\n\n if ($options['element']) {\n if (is_array($options['element'])) {\n foreach ($options['element'] as $e) {\n $form->addElement($e instanceof Element\\ElementAbstract ? $e : ElementBuilder::build($e));\n }\n }\n else {\n $form->addElement($e instanceof Element\\ElementAbstract ? $options['element'] : ElementBuilder::build($options['element']));\n }\n }\n unset($options['element']);\n\n if ($options['bucketData']) {\n if (is_array($options['bucketData'])) {\n foreach ($options['bucketData'] as $k => $v) {\n $form->bucket()->set($k, $v);\n }\n }\n else {\n $form->bucket()->set('bucketData', $options['bucketData']);\n }\n }\n unset($options['bucketData']);\n\n if ($options['attr']) {\n if (is_array($options['attr'])) {\n foreach ($options['attr'] as $k => $v) {\n $form->getFormDecor()->setAttr($k, $v);\n }\n }\n }\n unset($options['attr']);\n\n if ($options['class']) {\n if (is_array($options['class'])) {\n $form->getFormDecor()->setClasses($options['class']);\n }\n else {\n $form->getFormDecor()->setAttr('class', $options['class']);\n }\n }\n unset($options['class']);\n\n if ($options['style']) {\n if (is_array($options['style'])) {\n $form->getFormDecor()->setStyles($options['style']);\n }\n else {\n $form->getFormDecor()->setAttr('style', $options['style']);\n }\n }\n unset($options['style']);\n\n foreach ($options as $k => $v) {\n if (method_exists($form, \"set\" . ucfirst($k))) {\n $form->{\"set\" . ucfirst($k)}($v);\n }\n if (method_exists($form, $k)) {\n $form->{$k}($v);\n }\n }\n\n return $form;\n }", "title": "" }, { "docid": "56593a25f700d7100cadcd4ce5e9585d", "score": "0.6996354", "text": "protected function form()\n {\n $form = new Form(new Serial());\n\n $form->number('payment_id', __('Payment id'));\n $form->select('product_id', __('Ticket'))->options([1 => 'VIP Ticket', 2 => 'GEN AD Ticket']);\n $form->text('number', __('Number'));\n $form->select('status', __('Status'))->options(['available' => 'Available', 'used' => 'Used', 'blocked' => 'Blocked', 'duplicated' => 'Cancelled']);\n\n return $form;\n }", "title": "" }, { "docid": "22508c9e5c9bf8072db53963e2475150", "score": "0.69874805", "text": "protected function form()\n {\n $form = new Form(new NavBarElement);\n\n $form->textarea('title', __('Заголовок'));\n// $form->number('parent_id', __('Id Родительского Элемента'));\n $menuModel = NavBarElement::class;\n $form->select('parent_id', trans('admin.parent_id'))->options($menuModel::selectOptions());\n $form->icon('icon', __('Иконка'));\n $form->textarea('link', __('Ссылка'));\n $form->number('order', __('Порядок'));\n $form->footer(function ($footer) {\n $footer->disableViewCheck();\n });\n $form->tools(function (Form\\Tools $tools) {\n $tools->disableView();\n });\n return $form;\n }", "title": "" }, { "docid": "2de74bfb79ae81e92c2175eaeff584dc", "score": "0.69853777", "text": "protected function form()\n {\n $form = new Form(new AdPointBanner);\n\n $form->switch('enable', '狀態')->default(true);\n $form->image('image', '圖片(768x384)')->uniqueName();\n $form->text('name', '名稱');\n $form->text('description', '描述');\n $form->text('link', '連結');\n $form->number('sort', '優先權')->default(1);\n\n return $form;\n }", "title": "" }, { "docid": "fb1128421a7b3e44ac6c6226ae56c902", "score": "0.69837093", "text": "protected function form()\n {\n $form = new Form(new GoodsModel);\n $form->text('goods_name', __('Goods name'));\n $form->textarea('goods_desc', __('Goods desc'));\n $form->switch('is_up', __('Is up'));\n $form->file('goods_img', __('Goods img'));\n $form->number('status', __('Status'));\n\n return $form;\n }", "title": "" }, { "docid": "d511cae50eea8398e343f5c5532be3a9", "score": "0.69784784", "text": "protected function form()\n {\n $form = new Form(new Record);\n\n\n\n return $form;\n }", "title": "" }, { "docid": "5937ba5961211bef9cd5a78cdd857cbd", "score": "0.6953489", "text": "protected function form()\n {\n $form = new Form(new Setting);\n\n $form->text('name');\n $form->text('key');\n $form->text('value');\n $form->text('module', '位置');\n $form->text('payload', '备注');\n\n $form->footer(function ($footer) {\n \n // 去掉`查看`checkbox\n $footer->disableViewCheck();\n \n // 去掉`继续编辑`checkbox\n $footer->disableEditingCheck();\n \n // 去掉`继续创建`checkbox\n $footer->disableCreatingCheck();\n \n });\n\n return $form;\n }", "title": "" }, { "docid": "03c3ab52399fe58edc19423fd810c631", "score": "0.69374686", "text": "protected function form()\n {\n $categories = Category::pluck('name', 'id');\n $form = new Form(new Word);\n \n \n $form->text('name', __('Name'));\n $form->text('yomigana', __('Yomigana'));\n $form->textarea('explain', __('explain'));\n $form->image('photo', 'Photo')->removable();\n $form->select('category_id', 'Category')->options($categories);\n\n return $form;\n }", "title": "" }, { "docid": "375c98d405837361b104bebbc670f5a1", "score": "0.6937392", "text": "protected function form()\n {\n $form = new Form(new Web);\n\n $form->text('title', '网站名称')->rules('required');\n $form->text('notice', '小白板')->rules('required');\n $form->text('message', '通知');\n $form->text('urgent_message', '紧急通知');\n $form->text('copyright', '版权声明')->rules('required');\n $form->text('author', '站长')->rules('required');\n $form->text('record', '备案')->rules('required');\n $form->text('img_api', '随机图片API')->rules('required');\n $form->text('contact', '联系方式1')->rules('required');\n $form->text('contact_bak', '联系方式2')->rules('required');\n $form->datetime('time', '网站创建时间')->default(date('Y-m-d H:i:s'));\n return $form;\n }", "title": "" }, { "docid": "ad74b0fad567ca21da9ba02dfc7adf5b", "score": "0.6934686", "text": "private function buildForm() {\n\n $widget = new VTCore_Bootstrap_Form_BsInstance(array(\n 'type' => false,\n ));\n\n $widget\n ->BsText(array(\n 'text' => __('Title', 'victheme_core'),\n 'name' => $this->get_field_name('title'),\n 'id' => $this->get_field_id('title'),\n 'value' => $this->instance['title'],\n ))\n ->BsTextarea(array(\n 'text' => __('Description', 'victheme_core'),\n 'name' => $this->get_field_name('description'),\n 'id' => $this->get_field_id('description'),\n 'value' => $this->instance['description'],\n ))\n ->BsElement(array(\n 'type' => 'div',\n 'attributes' => array(\n 'class' => array('table-manager'),\n ),\n ))\n ->lastChild()\n ->Table(array(\n 'headers' => array(\n ' ',\n __('Content', 'victheme_core'),\n ' ',\n ),\n 'rows' => $this->buildRows(),\n 'attributes' => array(\n 'data-filter' => 2,\n ),\n ))\n ->Button(array(\n 'text' => __('Add New Entry', 'victheme_core'),\n 'attributes' => array(\n 'data-tablemanager-type' => 'addrow',\n 'class' => array('button', 'button-large', 'button-primary'),\n ),\n ));\n\n return $widget;\n }", "title": "" }, { "docid": "5e6a4f6a824d2af61589b4e992b024ca", "score": "0.69342846", "text": "protected function form()\n {\n $form = new Form(new BrowseLog);\n\n $form->text('ip_addr', 'Ip addr');\n $form->text('request_url', 'Request url');\n $form->text('city_name', 'City name');\n\n return $form;\n }", "title": "" }, { "docid": "57e3fc0d5cb2e41696f1c068a467fa18", "score": "0.69308484", "text": "protected function form()\n {\n $form = new Form(new Banner);\n\n $form->cropper('cover', '轮播图');\n// ->cRatio();\n $form->select('type', __('Type'))\n ->options(Definition::BANNER_TYPE_EXPLAINS)\n ->required();\n $form->url('href', __('Href'))\n ->help('外部链接: 类型为<b>链接</b>时必填');\n $form->editor('content', __('Content'))\n ->help('图文内容: 类型为<b>图文</b>时必填');\n $form->select('recommend_lesson_id', __('Recommend lesson id'))\n ->options(Lesson::where('recommended', 1)->pluck('name', 'id'))\n ->help('图文内容: 类型为<b>推荐课程</b>时必填');\n // $form->number('sort', __('Sort'));\n $form->switch('status', __('Status'))->default(1)\n ->states(Presuppose::ON_OFF_STATES);\n\n return $form;\n }", "title": "" }, { "docid": "39570c88ddf5eac86ae0f78fdcb296a8", "score": "0.6930247", "text": "public function createBuilder(FormFactoryInterface $factory, string $name, array $options = []): FormBuilderInterface;", "title": "" }, { "docid": "f05b1d1176e411026d6f4d44a62e2bdc", "score": "0.69102836", "text": "public static function getFormBuilder()\n {\n return static::$formBuilder;\n }", "title": "" }, { "docid": "85de427879b1d3f656f8a36b2c009c6b", "score": "0.6903967", "text": "protected function form()\n {\n $form = new Form(new SelfService);\n\n// $form->text('token', 'Token');\n $form->switch('status', '状态');\n $form->text('name', '机器名称');\n $form->text('region', '区域名称');\n\n $form->decimal('lat', '纬度')->default(0.000000);\n $form->decimal('lng', '经度')->default(0.000000);\n\n $form->hidden('token')->default(session('wxtoken'));\n return $form;\n }", "title": "" }, { "docid": "14e56e06a5cabfabd2d757ed2bbb10dc", "score": "0.69029903", "text": "protected function form()\n {\n $form = new Form(new Flight);\n\n $form->text('arrCode', 'ArrCode');\n $form->text('price', 'Price');\n $form->text('discount', 'Discount');\n $form->text('arrName', 'ArrName');\n $form->text('depName', 'DepName');\n $form->text('depDate', 'DepDate');\n $form->text('priceDesc', 'PriceDesc');\n $form->text('depCode', 'DepCode');\n\n return $form;\n }", "title": "" }, { "docid": "59f314d6f340f09a1076893ba7105538", "score": "0.6902926", "text": "protected function form()\n {\n $types = BillType::all()->pluck('name', 'id');\n $form = new Form(new Bill());\n $form->text('money', __('Money'));\n $form->select('type', '类型')->options($types);\n\n return $form;\n }", "title": "" }, { "docid": "6643eb7021d60c61b345dc06d475224b", "score": "0.68920547", "text": "protected function form()\n {\n $form = new Form(new Employee);\n\n $form->number('number', __('Number'));\n $form->text('name', __('Name'));\n $form->email('mail', __('Mail'));\n $form->password('password', __('Password'));\n $form->text('department', __('Department'));\n\n $form->tools(function (Form\\Tools $tools) {\n\n // 去掉`删除`按钮\n $tools->disableDelete();\n\n // 添加一个按钮, 参数可以是字符串, 或者实现了Renderable或Htmlable接口的对象实例\n $tools->add('<a class=\"btn btn-sm btn-danger\"><i class=\"fa fa-trash\"></i>&nbsp;&nbsp;delete</a>');\n });\n return $form;\n }", "title": "" }, { "docid": "4dfe17f63cfdc70d10566fcab2368d5d", "score": "0.6880897", "text": "private function createForm($entity = null)\n {\n $builder = $this->getService('form')->create();\n $builder->setValidatorService($this->getService('validator'));\n $builder->setFormatter(new BasicFormFormatter());\n $builder->setDesigner(new DoctrineDesigner($this->getDoctrine(), 'Entity\\DeviceType'));\n\n $builder->removeField('current');\n\n if ($entity) {\n $builder->removeField('symbolPrefix');\n $helper = $this->getService('form.helper');\n $data = $helper->entityToArray($entity);\n $builder->setData($data);\n }\n $builder->submit($this->getRequest());\n $builder->render();\n\n return $builder;\n }", "title": "" }, { "docid": "98481b9322607f20e2b93ec41952d343", "score": "0.68688875", "text": "protected function form()\n {\n $form = new Form(new FriendshipLink());\n\n $form->text('name', __('Name'))\n ->autofocus()\n ->rules('required|max:20');\n $form->url('url', __('Url'))\n ->required();\n $form->text('description', __('Description'))\n ->rules('required|max:100');\n $form->url('avatar', __('Avatar'));\n $form->number('sort', __('Sort'))\n ->default(0)\n ->min(0);\n $form->switch('status', __('Status'))\n ->default(1);\n\n return $form;\n }", "title": "" }, { "docid": "31bc06b9b2de3fd3c6a0b648f51e81d9", "score": "0.68652904", "text": "protected function form()\n {\n $form = new Form(new User());\n\n $form->text('name', __('Name'));\n $form->email('email', __('Email'));\n $form->mobile('phone', __('Phone'));\n $form->decimal('money', __('Money'))->default(0.00);\n $form->textarea('avatar_url', __('Avatar url'));\n $form->text('remark', __('Remark'));\n $form->switch('is_black', __('Is black'));\n $form->number('parent_id', __('Parent id'));\n\n return $form;\n }", "title": "" }, { "docid": "2f10592ad600b33f03c9ee46303d930c", "score": "0.6830497", "text": "protected function form()\n {\n $form = new Form(new Vehiculo_Historico());\n\n // $form->number('vehiculo_id', __('Vehiculo id'));\n $form->select('vehiculo_id', __('Vehiculo'))->options(\n Vehiculo::all()->pluck('matricula', 'id') //retorna todos los nombres de las marcas como options\n );\n // $form->number('oficina_id', __('Oficina id'));\n $form->select('oficina_id', __('Oficina'))->options(\n Oficina::all()->pluck('nombre', 'id') //retorna todos los nombres de las marcas como options\n );\n $form->date('fecha_inicio', __('Fecha inicio'))->default(date('Y-m-d'));\n if($form->isCreating()){\n $form->date('fecha_fin', __('Fecha fin'))->default(null);\n } else {\n $form->date('fecha_fin', __('Fecha fin'))->default(date('Y-m-d'));\n }\n \n // $form->number('estado_vehiculo_id', __('Estado vehiculo id'));\n $form->select('estado_vehiculo_id', __('Estado'))->options(\n EstadoVehiculo::all()->pluck('nombre', 'id') //retorna todos los nombres de las marcas como options\n );\n \n $form->text('reserva_id', __('Reserva id'));\n\n return $form;\n }", "title": "" }, { "docid": "a0a74b59231c16d69c31dd21391b861c", "score": "0.6829037", "text": "protected function form()\n {\n $form = new Form(new Engine());\n\n $form->text('title', __('标题'))->autofocus();\n\n return $form;\n }", "title": "" }, { "docid": "1c8ee96dc5a5087c61e7c9e26a5a29fa", "score": "0.68261683", "text": "public function createForm();", "title": "" }, { "docid": "1c8ee96dc5a5087c61e7c9e26a5a29fa", "score": "0.68261683", "text": "public function createForm();", "title": "" }, { "docid": "b0443fcd83fad39169ee34c4c284fbc0", "score": "0.6802374", "text": "protected function form()\n {\n\n\n\n $form = new Form(new NavCategory);\n\n // $form->number('navid', __('Navid'));\n $form->select('navid',\"导航类别\")->options(Navbar::pluck(\"name\",\"id\"));\n $form->text('name',\"菜单名称\");\n //$form->select('type','品牌类型')->options([0 => '国产', 1 => '进口']);\n\n return $form;\n }", "title": "" }, { "docid": "edd411c99a2856da87116193ef6adc55", "score": "0.67948073", "text": "protected function form()\n {\n $form = new Form(new Order());\n\n $form->date('tgl_order', __('Tgl order'))->default(date('Y-m-d'));\n $form->date('tgl_upakara', __('Tgl upakara'))->default(date('Y-m-d'));\n \n $listbanten = Banten::pluck('name','id');\n $form->select('banten_id', __('Banten'))->options($listbanten);\n\n $listpembeli = Pembeli::pluck('name','id');\n $form->select('pembeli_id', __('Pembeli'))->options($listpembeli);\n\n $form->currency('harga',__('Harga'))->symbol('Rp')->default(0);\n\n $form->text('pengayah', __('Pengayah'))->rules('nullable');\n $form->textarea('notes', __('Notes'));\n $form->select('status',__('Status'))->options(['draft' => 'Draft', 'process' => 'Process', 'finish' => 'Finish']);\n\n return $form;\n }", "title": "" }, { "docid": "465cb59c36972ba083332476cc9dfb66", "score": "0.67922175", "text": "protected function form()\n {\n $form = new Form(new Sentence);\n\n $form->textarea('content', '内容')->rules('required');\n /*$form->number('copy_num', __('Copy num'));*/\n $form->radio('online', '上架')->options(['1' => '是', '0'=> '否'])->default('0');\n $data = SentenceType::query()->pluck('type_name', 'id');\n $form->select('type', '分类')->options($data);\n return $form;\n }", "title": "" }, { "docid": "740d2f02f6352163b50fa25ac7d88cd6", "score": "0.67861396", "text": "protected function form()\n {\n $form = new Form(new Room());\n\n\n $form->display('id', 'ID');\n $form->text('name', trans('admin.name'))->rules('required');\n $form->text('description', trans('admin.description'))->rules('required');\n $form->number('max_users', 'Max Users')->rules('required')->default(200);\n $form->multipleSelect('room_roles', 'Rolls')->options(RoomRole::all()->pluck('name', 'id'));\n //$form->image('avatar', trans('admin.avatar'));\n\n\n if ($form->isCreating()) {\n $form->hidden('user_id');\n $form->hidden('url');\n }\n $form->saving(function (Form $form) {\n\n if ($form->isCreating()) {\n $form->user_id = Admin::user()->id;\n $form->url = Str::random(30);\n };\n });\n\n return $form;\n }", "title": "" }, { "docid": "0fa05c480814fae13fc832d3434ceb64", "score": "0.6782095", "text": "protected function form()\n {\n $form = new Form(new User);\n\n $form->text('nickname', 'Nickname');\n $form->text('openid', 'Openid');\n $form->mobile('mobile', 'Mobile');\n $form->image('avatar', 'Avatar');\n\n return $form;\n }", "title": "" }, { "docid": "30b63d6cf36795d28c1e34cedbfbff1b", "score": "0.67800146", "text": "public function build(): Builder;", "title": "" }, { "docid": "06cea64c9c6fc5e5d0d63ec769ef0f41", "score": "0.67759794", "text": "protected function form()\n {\n $form = new Form(new Comment());\n\n $form->switch('school_id', __('School id'));\n $form->number('teacher_id', __('Teacher id'));\n $form->number('grade_id', __('Grade id'));\n $form->text('comment', __('Comment'));\n $form->text('images', __('Images'));\n $form->switch('score', __('Score'));\n $form->number('user_id', __('User id'));\n $form->text('reply', __('Reply'));\n $form->number('comment_time', __('Comment time'));\n $form->number('reply_time', __('Reply time'));\n\n return $form;\n }", "title": "" }, { "docid": "40535797991a3d83ba277b21a47bf168", "score": "0.6769408", "text": "protected function form()\n {\n $form = new Form(new Movie());\n\n $form->text('title', __('Title'));\n $form->number('director', __('Director'));\n $form->textarea('describe', 'Describe');\n $form->rate('rate', 'Rate');\n $form->select('released','Released')->options([1 => 'drafted', 2 => 'published', ]);\n $form->datetime('released_at', __('released_at'))->default(date('Y-m-d H:i:s'));\n\n return $form;\n }", "title": "" }, { "docid": "d03e9eb4d01755ad48f7b8fcce23e798", "score": "0.6767786", "text": "protected function form()\n {\n $form = new Form(new Cargo());\n\n $form->number('cid', __('客户编号'));\n $form->text('name', __('收货人'));\n $form->mobile('phone', __('收货号码'));\n $form->text('address', __('收获地址'));\n $form->switch('state', __('状态'));\n\n return $form;\n }", "title": "" }, { "docid": "f98306fccf75e1b6c0bcfcfef8e0edfa", "score": "0.6767373", "text": "protected function form()\n {\n $form = new Form(new Column());\n\n $form->text('name', '名称');\n $form->text('link', '链接');\n $form->textarea('description', '描述');\n\n return $form;\n }", "title": "" }, { "docid": "68e4a8ef3227cb30f2d39b983b104e97", "score": "0.67664117", "text": "protected function form()\n {\n $form = new Form(new Record());\n\n $form->text('user_id', __('User id'));\n $form->text('book_id', __('Book id'));\n $form->datetime('borrow_date', __('借阅时间'))->default(date('Y-m-d H:i:s'));\n $form->datetime('return_deadline', __('最晚归还时间'))->default(date('Y-m-d H:i:s',strtotime(\"+2 months\")));\n return $form;\n }", "title": "" }, { "docid": "94f23f53edcd43350beb081ab591e4fa", "score": "0.6758998", "text": "protected function form()\n {\n $form = new Form(new Orders);\n $form->number('s_id', '商品id');\n $form->number('price', '价格(分)');\n $form->text('order_code', '订单编号');\n $form->select('status', '订单状态')->options($this->order_status);\n $form->mobile('phone', '手机号');\n $form->text('qq', 'qq');\n $form->editor('order_des', '订单描述');\n $form->number('u_id', '用户id');\n\n return $form;\n }", "title": "" }, { "docid": "7d0a38a6f0ec4186138a85851ee1c2b6", "score": "0.67561793", "text": "protected function form()\n {\n $form = new Form(new Milestone());\n\n $form->text('seq', '届数')->placeholder('请输入届数');\n $form->text('theme', '主题')->placeholder('请输入主题');\n $form->text('address', '地点')->placeholder('请输入地点');\n $form->date('date', '举办日期')->placeholder('请选择举办日期');\n $form->text('number', '第几届')->placeholder('请输入第几届');\n $form->image('list_bg', '背景图片');\n\n //表单底部定义\n $form->footer(function ($footer) {\n\n // 去掉`重置`按钮\n $footer->disableReset();\n // 去掉`查看`checkbox\n $footer->disableViewCheck();\n // 去掉`继续编辑`checkbox\n $footer->disableEditingCheck();\n // 去掉`继续创建`checkbox\n $footer->disableCreatingCheck();\n });\n\n return $form;\n }", "title": "" }, { "docid": "216a7aa34822ed6961f0749d084f6040", "score": "0.67550147", "text": "protected function form()\n {\n $form = new Form(new WxUserModel);\n\n $form->text('openid', 'Openid');\n $form->number('add_time', 'Add time');\n $form->text('nickname', 'Nickname');\n $form->text('sex', 'Sex');\n $form->text('headimgurl', 'Headimgurl');\n $form->number('subscribe_time', 'Subscribe time');\n $form->text('unionid', 'Unionid');\n $form->switch('uid', 'Uid');\n\n return $form;\n }", "title": "" }, { "docid": "a7d9f25a3b8361b8dacc7bd59399aa21", "score": "0.6754057", "text": "protected function form()\n {\n $form = new Form(new boss);\n $form->display('name', __('真实姓名'));\n $form->display('id_card_num', __('身份证号'));\n $form->divider();\n $form->display('id_card_front', __('身份证正面'))->with(function ($id_card_front) {\n return \"<img src=\".$id_card_front.\" height=\\\"200\\\" width=\\\"200\\\" />\";\n });\n $form->display('id_card_back', __('身份证背面'))->with(function ($id_card_back) {\n return \"<img src=\".$id_card_back.\" height=\\\"200\\\" width=\\\"200\\\" />\";\n });\n $form->display('business_license', __('企业认证'))->with(function ($business_license) {\n return \"<img src=\".$business_license.\" height=\\\"200\\\" width=\\\"200\\\" />\";\n });\n $auth_status = [\n 0 => '不通过',\n 2 => '通过',\n ];\n\n $form->select('auth_status', '认证状态')->options($auth_status);\n $form->textarea('comment', '原因');\n\n $form->tools(function (Form\\Tools $tools) {\n\n // 去掉`列表`按钮\n // $tools->disableList();\n\n // 去掉`删除`按钮\n $tools->disableDelete();\n\n // 去掉`查看`按钮\n $tools->disableView();\n\n // 添加一个按钮, 参数可以是字符串, 或者实现了Renderable或Htmlable接口的对象实例\n // $tools->add('<a class=\"btn btn-sm btn-danger\"><i class=\"fa fa-trash\"></i>&nbsp;&nbsp;delete</a>');\n });\n\n $form->footer(function ($footer) {\n\n // 去掉`重置`按钮\n $footer->disableReset();\n\n // 去掉`提交`按钮\n // $footer->disableSubmit();\n\n // 去掉`查看`checkbox\n $footer->disableViewCheck();\n\n // 去掉`继续编辑`checkbox\n $footer->disableEditingCheck();\n\n // 去掉`继续创建`checkbox\n $footer->disableCreatingCheck();\n\n });\n\n\n return $form;\n }", "title": "" }, { "docid": "a05ee2810a882d5a257ede8bd74ae00e", "score": "0.6751423", "text": "protected function form()\n {\n $form = new Form(new Product());\n\n $form->text('product_number', __('Product number'));\n $form->text('product_name', __('Product name'));\n $form->text('short_name', __('Short name'));\n $form->text('category', __('Category'));\n $form->select('brand_id', __('Brand id'))->options(Brand::getBrands());\n $form->text('specification', __('Specification'));\n $form->text('country', __('Country'));\n $form->text('unit', __('Unit'));\n $form->decimal('weight', __('Weight'));\n $form->decimal('volume', __('Volume'));\n $form->text('record_code', __('Record code'));\n $form->text('barcode', __('Barcode'));\n $form->text('hs_code', __('Hs code'));\n $form->text('note', __('Note'));\n\n $form->footer(function ($footer){\n $footer->disableEditingCheck();\n });\n\n return $form;\n }", "title": "" }, { "docid": "ef4f730169ac137d3a2221083197a2f6", "score": "0.6749608", "text": "protected function form()\n {\n $form = new Form(new Upgrade());\n\n $form->text('version', '版本号')->required();\n $form->select('device_type', '客户端类型')->options(UpgradeEnum::getTyps())->required();\n $form->textarea('desc', '更新说明');\n $form->text('download_url', '下载地址');\n\n return $form;\n }", "title": "" }, { "docid": "37e0b0635683ddc726fdc3e7830bc262", "score": "0.6745843", "text": "protected function form()\n {\n $form = new Form(new Task());\n\n $form->text('name', '微信');\n $form->radio('task','性别')->options(['一级任务人'=>'一级任务人','二级任务人'=>'二级任务人'])->rules('required');\n\n $form->number('num','暗号');\n $form->number('nums','完成任务人数');\n\n\n\n $form->footer(function ($footer) {\n\n // 去掉`重置`按钮\n// $footer->disableReset();\n\n // 去掉`提交`按钮\n// $footer->disableSubmit();\n\n // 去掉`查看`checkbox\n $footer->disableViewCheck();\n\n // 去掉`继续编辑`checkbox\n $footer->disableEditingCheck();\n\n // 去掉`继续创建`checkbox\n $footer->disableCreatingCheck();\n\n });\n $form->tools(function (Form\\Tools $tools) {\n\n // 去掉`列表`按钮\n// $tools->disableList();\n\n // 去掉`删除`按钮\n $tools->disableDelete();\n\n // 去掉`查看`按钮\n// $tools->disableView();\n\n // 添加一个按钮, 参数可以是字符串, 或者实现了Renderable或Htmlable接口的对象实例\n// $tools->add('<a class=\"btn btn-sm btn-danger\"><i class=\"fa fa-trash\"></i>&nbsp;&nbsp;delete</a>');\n });\n\n return $form;\n }", "title": "" }, { "docid": "304c1c0e2069787763c2449478b85c0c", "score": "0.6743334", "text": "abstract public function builder();", "title": "" }, { "docid": "022e72d1ee1f9401ec3902cc6f5c1de2", "score": "0.67429894", "text": "protected function form()\n {\n $form = new Form(new Category());\n\n $form->hidden('parent_id', __('Parent id'))->default(0);\n $form->text('erp_id', __('ID'));\n $form->text('name', __('Name'));\n $form->hidden('type', __('Type'))->default(1);\n\n return $form;\n }", "title": "" }, { "docid": "fb0e42cc775568cfdb0564099768eaea", "score": "0.6742581", "text": "private function buildForm()\n {\n \t$eMateria \t\t= new Materia();\n\t\t$materia \t\t= $this->getDoctrine()->getRepository(Materia::class)->getNamesAndTypes();\n\n\t\tforeach ($materia as $sort) {\n\t\t\t$formChoices[strtolower($sort['type'])][$sort['name']] = $sort['name'];\n\t\t}\n\n foreach ($formChoices as $key => $value) {\n asort($formChoices[$key]);\n }\n\n\t\t$form = $this->createFormBuilder($eMateria)->add('name', ChoiceType::class, \n \t\t[\n \t\t\t'choices' => [\n \t\t\t\t'Please Select'\t=> null,\n \t\t\t\t'Command' \t\t=> $formChoices['command'],\n\t\t\t\t\t'Independent'\t=> $formChoices['independent'],\n\t\t\t\t\t'Magic'\t\t\t=> $formChoices['magic'],\n \t\t\t\t'Summon' \t\t=> $formChoices['summon'],\n \t\t\t\t'Support' \t\t=> $formChoices['support'],\n \t\t\t],\n \t\t\t'label' \t=> 'Materia Name',\n \t\t\t'attr' \t=> ['class' => 'form-control', 'required' => true]\n \t\t]\n \t)->add('submit', SubmitType::class, ['label' => 'Search', 'attr' => ['class' => 'btn btn-primary mt-2']])\n \t->getForm();\n\n \treturn $form;\n\n }", "title": "" }, { "docid": "8e9957ea0067eb99e0a0882800609daf", "score": "0.67414165", "text": "protected function form()\n {\n $form = new Form(new Motto());\n\n $form->text('motto', __('Motto'))\n ->autofocus()\n ->rules('required|max:50');\n\n return $form;\n }", "title": "" }, { "docid": "9a0ab283c4d0eb8e19ba4294d6af52f2", "score": "0.6737681", "text": "public function buildContactForm(){\n\t\t$form = new Form(\"traitement.php\");\n\t\t$form->addInput(\"Motif\", \"motif\")\n\t\t\t->addInput(\"Mail\", \"mail\", true, \"mail\")\n\t\t\t->addTextarea(\"Message\", \"message\")\n\t\t\t->addSelect(\"Destinataire\", \"destinataire\", [\"Administration\", \"Formateurs\", \"Réseau\"])\n\t\t\t->setSubmit(\"Valider\");\n\n\t\treturn $form;\n\t}", "title": "" }, { "docid": "2b9cabd83baa00a7f5df7dde9d0a42d1", "score": "0.67364746", "text": "protected function form()\n {\n $form = new Form(new User());\n\n $form->text('openid', __('Openid'));\n $form->text('session_key', __('Session key'));\n $form->image('avatar', __('Avatar'));\n $form->text('nickname', __('Nickname'));\n $form->switch('sex', __('Sex'))->default(1);\n $form->text('tel', __('Tel'));\n $form->switch('status', __('Status'))->states([\n 'on'=>['value' => 1, 'text' => '正常', 'color' => 'success'],\n 'off' => ['value' => 0, 'text' => '禁用', 'color' => 'danger']\n ]);\n $form->text('token', __('Token'));\n\n return $form;\n }", "title": "" }, { "docid": "a46f0023d7653e79a58e193378f287b8", "score": "0.67344964", "text": "protected function form()\n {\n $form = new Form(new Bonus());\n\n $form->number('user_id', __('User id'));\n $form->number('order_id', __('Order id'));\n $form->text('user_type', __('User type'));\n $form->decimal('bonus', __('Bonus'))->default(0.00);\n\n return $form;\n }", "title": "" }, { "docid": "448447985272b566f25d89bbc6e43b70", "score": "0.6730471", "text": "public function getFormBuilder()\n {\n $builder = explode('\\\\', get_class($this));\n\n $extension = array_pop($builder);\n\n return app(implode('\\\\', $builder) . '\\Form\\\\' . substr($extension, 0, -9) . 'FormBuilder');\n }", "title": "" }, { "docid": "e4538d8d8983f6a6836de0189c799039", "score": "0.6725377", "text": "protected function form()\n {\n $form = new Form(new Cooler);\n\n// $form->number('cooler_category_id2', 'Cooler category id2');\n $form->text('cooler_sn', '冰箱SN');\n $form->text('nipis_code', '疾控编码');\n $form->text('cooler_name', '冰箱名称');\n $form->select('cooler_type', '冰箱类型')->options(Cooler::COOLER_TYPE);\n// $form->text('cooler_img', 'Cooler img');\n $form->text('cooler_brand', '冰箱品牌');\n $form->text('cooler_model', '型号');\n $form->radio('is_medical', '')->options(Cooler::IS_MEDICAL);\n $form->text('cooler_size', '冷藏容积');\n $form->text('cooler_size2', '冷冻容积');\n $form->text('come_from', '来源');\n return $form;\n }", "title": "" }, { "docid": "16db87cdb08a8c068b2e313cabf68edb", "score": "0.6721758", "text": "protected function form()\n {\n $form = new Form(new Item);\n\n $form->text('name', __('Name'));\n $form->text('code', __('Code'));\n $form->text('image_top', __('Image top'));\n $form->text('image_cloth', __('Image cloth'));\n $form->text('image_sub1', __('Image sub1'));\n $form->text('image_sub2', __('Image sub2'));\n $form->text('image_sub3', __('Image sub3'));\n $form->text('image_sub4', __('Image sub4'));\n $form->text('image_sub5', __('Image sub5'));\n $form->text('image_sub6', __('Image sub6'));\n $form->textarea('description', __('Description'));\n $form->textarea('comment', __('Comment'));\n $form->number('price', __('Price'));\n\n return $form;\n }", "title": "" }, { "docid": "836295f3389bff76ba190874fa36c136", "score": "0.6721072", "text": "public static function get_builder_factory() : builder_factory {\n global $PAGE;\n\n return new builder_factory(\n self::get_legacy_data_mapper_factory(),\n self::get_exporter_factory(),\n self::get_vault_factory(),\n self::get_manager_factory(),\n $PAGE->get_renderer('mod_forum')\n );\n }", "title": "" }, { "docid": "9dd2d251221d2a0c61bf7e51e08f135c", "score": "0.6714576", "text": "protected function form()\n {\n $form = new Form(new WxtextModel);\n\n $form->text('openid', 'Openid');\n $form->number('t_time', 'T time');\n $form->text('wx_text', 'Wx text');\n\n return $form;\n }", "title": "" }, { "docid": "e67084486b49cd55c0bfea3f2faada9a", "score": "0.6712658", "text": "protected function form()\n {\n $form = new Form(new Complaint);\n\n $form->display('content', __('投诉内容'));\n $form->textarea('replay', __('回复'));\n\n $form->saving(function (Form $form){\n if($form->model()->status == 0){\n $form->model()->status = 1;\n }\n });\n\n $form->tools(function (Form\\Tools $tools) {\n $tools->disableDelete();\n $tools->disableView();\n });\n\n return $form;\n }", "title": "" }, { "docid": "62c3ee6b327bcb4219cdca5fd53a0806", "score": "0.6706021", "text": "protected function form()\n {\n $form = new Form(new Tank());\n\n $form->select('power_station_id', __('Power station'))\n ->options(PowerStation::all()->pluck('name', 'id'))\n ->required();\n $form->text('name', __('Name'))\n ->required();\n $form->select('fuel_type', __('Fuel type'))\n ->options([\n 'Hard fuel' => 'Hard fuel',\n 'Light fuel' => 'Light fuel',\n ])\n ->required();\n $form->text('capacity', __('Tank Capacity (in Ltrs)'))\n ->attribute(['type' => 'number'])\n ->required();\n $form->textarea('details', __('Details'));\n\n return $form;\n }", "title": "" }, { "docid": "ac403ae957ce3c4e7fe510922b750886", "score": "0.67044115", "text": "protected function form()\n {\n return Form::make(new FbaStorage(), function (Form $form) {\n $form->display('id');\n $form->text('address');\n $form->text('area');\n $form->text('city');\n $form->text('code');\n $form->text('country');\n $form->text('country_code');\n $form->text('state');\n $form->text('status');\n \n $form->display('created_at');\n $form->display('updated_at');\n });\n }", "title": "" }, { "docid": "5a219fc28167e31dbcc5b29280aba08e", "score": "0.6701884", "text": "protected function form()\n {\n $form = new Form(new User());\n $form->disableViewCheck();\n $form->disableEditingCheck();\n $form->disableCreatingCheck();\n\n $form->number('type', __('Type'))->default(1);\n $form->mobile('phone', __('Phone'));\n $form->email('email', __('Email'));\n $form->datetime('email_verified_at', __('Email verified at'))->default(date('Y-m-d H:i:s'));\n $form->datetime('terms_at', __('Terms at'))->default(date('Y-m-d H:i:s'));\n\n return $form;\n }", "title": "" }, { "docid": "f575cad282d599bf7e7ba74f99cd6343", "score": "0.6701471", "text": "public function get_builder();", "title": "" }, { "docid": "e7010c9c759d96f3459bc9eeb72aadd7", "score": "0.6690615", "text": "public function createForm() {\n $builder = &$this->createEditFormBuilder();\n return $builder->createForm($form);\n }", "title": "" }, { "docid": "5091cc0e1dc360b4443e501fdd6f90b6", "score": "0.66851103", "text": "protected function form()\n {\n $form = new Form(new Materials());\n\n $form->textarea('content', __('内容'));\n $form->multipleImage('link', '图片/视频')->uniqueName()->removable();\n// $form->textarea('link', __('图片/视频'));\n $form->switch('type', __('类型'));\n $form->display('time', __('时间'))->with(function($time){\n return date('Y-m-d H:i:s',$time);\n });\n $form->number('class_id', __('类别'));\n $form->switch('status', __('状态'))->default(1);\n// $form->switch('is_del', __('Is del'));\n $form->saving(function (Form $form) {\n $time = $form->time;\n if (!$time) {\n $form->time=time();\n }else{\n $form->time=strtotime($time);\n }\n });\n return $form;\n }", "title": "" }, { "docid": "cb1e769168a012ef1e2efb8a9897e240", "score": "0.6684038", "text": "protected function form()\n {\n $form = new Form(new Pest);\n\n $form->text('name', '名称')->required();\n $form->select('tree_sign', '所属树木')->options([\n 1 => '桃子树',\n 2 => '李子树',\n ])->required();\n\n return $form;\n }", "title": "" }, { "docid": "2581da0f48428135405a535c3593761d", "score": "0.6678775", "text": "protected function form()\n {\n $form = new Form(new Fashion());\n\n $form->text('title', __('标题'))->required();\n $form->image('thumb', __('封面图片'))->uniqueName()->required()->help('图片参考尺寸至少 90*90 比例1:1');\n //$form->file('video', __('视频'));\n $form->textarea('description', __('描述'));\n $form->editor('content', __('内容'));\n $form->number('order', __('排序'))->default(0)->help('越小越靠前');\n $states1 = [\n 'on' => ['value' => 0, 'text' => '不推荐', 'color' => 'default'],\n 'off' => ['value' => 1, 'text' => '推荐', 'color' => 'primary'],\n ];\n// hyh客户要求增加时间修改 app端用的是update_at hyh增加判断,如果时间为空,返回空值,默认返回1970.01.01\n $form->datetime('updated_at',__('更新时间'));\n $form->switch('is_recommend', __('是否推荐'))->states($states1);\n $form->tools(function (Form\\Tools $tools) {\n // 去掉`查看`按钮\n $tools->disableView();\n });\n return $form;\n }", "title": "" }, { "docid": "6ce9d719658b307408e5454e13b54eb1", "score": "0.6670689", "text": "protected function form()\n {\n $form = new Form(new championshipsConfiguration());\n\n $form->datetime('beginTime', ___('BeginTime'))->default(date('Y-m-d H:i:s'));\n $form->datetime('endTime', ___('EndTime2'))->default(date('Y-m-d H:i:s'));\n $form->text('gameRounds', ___('GameRounds'));\n $form->text('distributionGold', ___('DistributionGold'));\n $form->text('awardsNum', ___('AwardsNum'));\n $form->text('playDetail', ___('PlayDetail'));\n $form->text('eventDetail', ___('EventDetail'));\n\n return $form;\n }", "title": "" }, { "docid": "a1365edd7285f06163d22ed7aa7fcad2", "score": "0.6669552", "text": "private function _buildForm()\n {\n $form = new Zend_Form(\n array(\n 'disableLoadDefaultDecorators' => true,\n )\n );\n $form->addElementPrefixPath(\n 'Msd_Form_Decorator',\n 'Msd/Form/Decorator/',\n 'decorator'\n );\n $form->addPrefixPath(\n 'Msd_Form_Decorator',\n 'Msd/Form/Decorator/',\n 'decorator'\n );\n $form->setAction(\n $this->view->url(\n array(\n 'controller' => 'config',\n 'action' => 'index'\n )\n )\n );\n\n $langs = $this->view->lang->getAvailableLanguages();\n asort($langs);\n\n $formGeneral = $this->_getSubformIni('general');\n $elementTitle = $formGeneral->getElement('title');\n $elementTitle->setValue(\n $this->_config->getParam('general.title')\n );\n\n $form->addSubForm($formGeneral, 'general');\n $form->addSubForm($this->_getPanelDatabases(), 'dbuser');\n $form->addSubForm($this->_getSubformIni('autodelete'), 'autodelete');\n $form->addSubForm(new Application_Form_Config_Email(), 'email');\n $form->addSubForm(new Application_Form_Config_Ftp(), 'ftp');\n $form->addSubForm($this->_getSubformIni('cronscript'), 'cronscript');\n\n $formInterface = $this->_getSubformIni('interface');\n $themeSelect = $formInterface->getElement('theme');\n $themeSelect->setMultiOptions(Msd_File::getThemeList());\n $langSelect = $formInterface->getElement('language');\n $langSelect->setMultiOptions($langs);\n $form->addSubForm($formInterface, 'interface');\n\n $form->clearDecorators();\n $translator = $this->view->lang->getTranslator();\n\n $saveIcon = $this->view->getIcon('save', $translator->_('L_SAVE'));\n $form->addElement(\n 'submit',\n 'save',\n array(\n 'class' => 'Formbutton',\n 'helper' => 'formButton',\n 'content' => $saveIcon . ' ' . $translator->_('L_SAVE'),\n 'escape' => false,\n 'type' => 'submit',\n 'disableLoadDefaultDecorators' => true,\n 'decorators' => array(\n 'ViewHelper',\n 'Tooltip'\n )\n )\n );\n $form->addDecorator('ConfigForm');\n $this->_setFormDefaultValues($form);\n $this->_setGroupVisibilities($form);\n $this->view->form = $form;\n }", "title": "" }, { "docid": "0a4b0159c0240def62da44246029bbc4", "score": "0.6669466", "text": "protected function form()\n {\n $form = new Form(new Post());\n\n $form->select('category_id', __blog('category'))->options(Category::all()->pluck('title', 'id'))->required();\n $form->multipleSelect('tags', __blog('tag'))->options(Tag::all()->pluck('title', 'id'));\n $form->text('title', __blog('title'))->required();\n $form->simplemde('content', __blog('content'))->required();\n $form->number('order', __blog('order'))->default(0);\n $form->select('type', __blog('type'))->options(Post::$type_map)->required();\n $form->switch('published', __blog('published'));\n\n return $form;\n }", "title": "" }, { "docid": "0e07d697dc133d0a5925b2b8ede42a60", "score": "0.6663708", "text": "public function getFormTodoCreate()\n {\n return new MyFisdap_Form_TodoCreate();\n }", "title": "" }, { "docid": "27c2d50cdaa3e5ffd624a8feed8395c5", "score": "0.6662441", "text": "protected function form()\n {\n $form = new Form(new PageDesigner());\n\n $form->tab('Page Design', function ($form) {\n $form->pagedesigner('data', __('pageDesign'));\n });\n\n $form->tab('Page', function ($form) {\n $form->switch('status', __('Status'));\n $form->number('rank', __('Rank'));\n $form->select('type', __('Type'))->options(['root'=>'Homepage', 'page_designer'=>'Page Designer', 'contact'=>'Contact', 'external'=>'External Link'])->default('page_designer');\n $form->text('title', __('Title'));\n $form->text('slug', __('Slug'));\n });\n\n $form->tab('Seo', function ($form) {\n $form->text('meta_title', __('Meta title'));\n $form->textarea('meta_description', __('Meta description'));\n $form->textarea('meta_keywords', __('Meta keywords'));\n });\n\n return $form;\n }", "title": "" }, { "docid": "7d90f662881b11e454b54e4c9d580c72", "score": "0.6661119", "text": "protected function form()\n {\n $form = new Form(new SiteAd);\n\n $form->select('user_id', __('site-ad::ad.user_id'))\n ->options(function ($use_id) {\n $model = User::find($use_id);\n if ($model) {\n return [$model->id => $model->username];\n }\n })\n ->ajax(route('admin.select.user'))\n ->rules('required');\n $form->select('site_ad_package_id', __('site-ad::ad.site_ad_package_id'))\n ->options(SiteAdPackage::all()->pluck('name', 'id'));\n $form->text('moduleable_type', __('site-ad::ad.moduleable_type'))->required();\n $form->number('moduleable_id', __('site-ad::ad.moduleable_id'))->required();\n $form->datetime('start_time', __('site-ad::ad.start_time'))->default(now());\n $form->datetime('end_time', __('site-ad::ad.end_time'))->default(now()->addWeeks());\n $form->number('uv', __('site-ad::ad.uv'))->default(0);\n $form->number('pv', __('site-ad::ad.pv'))->default(0);\n\n return $form;\n }", "title": "" }, { "docid": "10d5805ffe25ab40b890e7fda71c56b3", "score": "0.66593564", "text": "protected function form()\n {\n $form = new Form(new ArticleComment());\n $form->switch('isgood', __('Isgood'));\n\n return $form;\n }", "title": "" }, { "docid": "f125eae0f4e2bf14ad3de6e7c059cced", "score": "0.6656481", "text": "protected function form()\n {\n $form = new Form(new Ggdz);\n\n $form->text('name', '案例标题');\n $form->image('image', '案例图片')->uniqueName();\n\n return $form;\n }", "title": "" }, { "docid": "4e04a7b65790548d7cbe66516b9a643b", "score": "0.6654671", "text": "public function getBuilder();", "title": "" }, { "docid": "46cc682ed1861046995baba6e022f5de", "score": "0.6653404", "text": "protected function form()\n {\n $form = new Form(new Active);\n\n $form->text('title', '活动主题');\n $form->simplemde('content', '活动介绍');\n $form->text('host', '主办单位');\n $form->text('time', '活动时间');\n $form->text('place', '活动地点');\n $form->number('price', '活动价格');\n $form->number('few', '活动期数');\n $form->image('logo', '封面图')->move('/image')->resize(318,201);\n // $form->image('logo', '图片')->move('/image')->resize(300, 200);\n \n\n return $form;\n }", "title": "" }, { "docid": "367b32fc314c46c3a440208ccfa24889", "score": "0.6650236", "text": "protected function form()\n {\n $form = new Form(new SectionMaintain());\n\n $form->text('section_title', __('节名称'));\n\n $form->select('chapter_id', '所属章')->options(ChapterMaintain::where('chapter_open', '1')->get()->pluck('chapter_title', 'id'));\n\n $form->number('section_sort', __('排序权重'))->default(1);\n $form->switch('section_open', __('开启状态'))->default(1);\n\n return $form;\n }", "title": "" } ]
20c259624202946a531b0036c60b74c5
date d'il y a $days jours
[ { "docid": "0a68c7b563ae8202608d5ae069a4896d", "score": "0.0", "text": "public function purge($days)\n {\n\n\n $date = new \\Datetime($days . ' days ago');\n $date;\n // return new Response($date);\n //$date1 = new \\DateTime();\n\n\n //return new Response(\"\".$date);\n //dump($date);\n\n // On récupère les réservations à supprimer\n $listAdverts = $this->em->getRepository('ColocationBundle:Reservationcolocation')->getreservationBefore($date);\n\n // On parcourt les reservations pour les supprimer effectivement\n foreach ($listAdverts as $advert) {\n $this->em->remove($advert);\n }\n\n // Et on n'oublie pas de faire un flush !\n $this->em->flush();\n }", "title": "" } ]
[ { "docid": "8dd8b7feffd014cf1212d0945bc2c234", "score": "0.634065", "text": "function nbJours()\n{\n global $RS_TABLE_LOG;\n\n $d = getVar(\"d\");\n $m = getVar(\"m\");\n $s = getVar(\"s\");\n\n // choix des dates pour la requete...\n if ($s != 0)\n {\n return 7;\n }\n else if ($m != 0)\n {\n $today = getdate();\n if ($m == $today['mon'])\n {\n return $today['mday']; \n }\n else\n {\n $month = substr($d, 4 ,2);\n $day = substr($d, 6, 2);\n $year = substr($d, 0 ,4);\n $timestamp = mktime(0, 0, 0, $month, $day, $year);\n return date(\"t\", $timestamp);\n }\n }\n else\n {\n return 1;\n }\n}", "title": "" }, { "docid": "ad313eca2bf276372ef6cf9898de28d9", "score": "0.6051109", "text": "function jdtounix($jday)\n{\n}", "title": "" }, { "docid": "3971b0de7635ddc7d57aaa663f250ed9", "score": "0.5911202", "text": "function jour($mois, $annee)\n {\n return cal_days_in_month(CAL_GREGORIAN, intval($mois), intval($annee));\n }", "title": "" }, { "docid": "cf92a02a914bb34b188df77afc036df7", "score": "0.57303315", "text": "function todaysDate() {\n return date(\"Ymd\") . \"-\" . date(\"his\");\n}", "title": "" }, { "docid": "43fc90584a0ae6369581d3cf3f7d875f", "score": "0.5672791", "text": "function suma_fecha($fecha,$dias){\n\n$inicio=strtotime($fecha); \n$dias=($dias*86400); \nreturn date(\"Y-m-d\",$inicio+$dias); \n \n}", "title": "" }, { "docid": "16c85f10d5dd3f39ec2d4251f5c661d8", "score": "0.55928826", "text": "public function p_time_for_daily_form( ) {\n // $num_day = $this->start->diffInDays( $this->end ) + 1;\n $num_day = $this->getNumDates();\n\n if( $num_day >= 2 ) {\n if( $this->all_day ) {\n return \"終日\" . $this->end->format( ' 【 ~ Y年 n月 j日 】');\n } else {\n return $this->start->format( 'H:i' ) . '~' . $this->end->format( 'H:i' ) . $this->end->format( ' 【 ~ Y年 n月 j日 】'); \n }\n }\n if( $this->all_day ) {\n return \"終日\";\n } else {\n return $this->start->format( 'H:i' ) . '~' . $this->end->format( 'H:i' ); \n }\n }", "title": "" }, { "docid": "212ed728bb4b7e7c9992cce2ef4e3e02", "score": "0.55327827", "text": "public function getDay()\n {\n return (int) $this->format('j');\n }", "title": "" }, { "docid": "b95fcc8e4a0ff65aeab191495e9ec64d", "score": "0.54816115", "text": "private function getDate() {\n\t\tif(isset($_REQUEST[\"day\"])) {\n\t\t\tif($_REQUEST[\"datum\"]) {\n\t\t\t\t$day = $this->DatumToDate($_REQUEST[\"datum\"])+($_REQUEST[\"day\"]*90000);\n\t\t\t}\n\t\t\telse $day = time()+($_REQUEST[\"day\"]*90000);\n\n\t\t}\n\t\telseif($_REQUEST[\"datum\"]) $day = $this->DatumToDate($_REQUEST[\"datum\"]);\n\t\telse $day = time();\n\t\treturn $day;\n\t}", "title": "" }, { "docid": "8cc4a0a0c6c9334c4273bf2eddb43300", "score": "0.5459267", "text": "function ezDate( $d ) {\n\t$ts = time() - $d;\n\tif ( $ts>31536000 ) $val = round( $ts/31536000, 0 ) . ' year';\n\telseif ( $ts>2419200 ) $val = round( $ts/2419200, 0 ) . ' month';\n\telseif ( $ts>604800 ) $val = round( $ts/604800, 0 ) . ' week';\n\telseif ( $ts>86400 ) $val = round( $ts/86400, 0 ) . ' day';\n\telseif ( $ts>3600 ) $val = round( $ts/3600, 0 ) . ' hour';\n\telseif ( $ts>60 ) $val = round( $ts/60, 0 ) . ' minute';\n\telse $val = $ts . ' second';\n\tif ( $val>1 ) $val .= 's';\n\treturn $val;\n}", "title": "" }, { "docid": "0c35639d628c4e2662e64c0f6aa31ec7", "score": "0.5440019", "text": "function fecha()\n {\n $fecha = date('Y-m-j H:i:s');\n $nuevafecha = strtotime ( '-6 hour' , strtotime ( $fecha ) ) ;\n $fecha = date ( 'Y-m-j' , $nuevafecha );\n return $fecha;\n }", "title": "" }, { "docid": "1766c9453e08e219ae7e74a72a377234", "score": "0.54010165", "text": "function nombreJoursMois($intMois,$intAnnee){\n return date(\"t\", strtotime(\"01-\".$intMois.\"-\".$intAnnee));\n}", "title": "" }, { "docid": "ca33fe245ff22ef988a06f02176af621", "score": "0.5400716", "text": "function datefr($jj, $mm, $aaaa){\n\t$userDate = mktime(0,0,0,$mm,$jj,$aaaa);\n\t$jours = array('dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi');\n\t$mois = array('', 'janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre');\n\treturn $jours[date(\"w\", $userDate)] . \" \" . $jj . \" \" . $mois[date(\"n\", $userDate)] . \" \" . $aaaa;\n}", "title": "" }, { "docid": "ddaf9bc1097372ed749ebe091a5ee111", "score": "0.53929394", "text": "function day($fecha)\n{\n $fc1 = new Jenssegers\\Date\\Date($fecha);\n return $fc1->day;\n}", "title": "" }, { "docid": "88bd83e4b071f16fa7d001a152e4f4a6", "score": "0.5383708", "text": "function sumar2fecha($fecha, $dias, $meses, $anos) {\n\tlist ( $ano, $mes, $dia ) = split ( \"-\", $fecha );\n\treturn date ( 'Y-m-d', mktime ( 0, 0, 0, $mes + $meses, $dia + $dias, $ano + $anos ) );\n}", "title": "" }, { "docid": "632fb5aaa954f3c106cb372f4ff5259e", "score": "0.5377197", "text": "function days($dateDebutWeek){\n $days=array();\n $days[0]=$dateDebutWeek;\n for($day=1;$day<7;$day++){\n //on incremente les jours \n $dateDebutWeek=date('Y-m-d', strtotime(' '.$dateDebutWeek .\"+1 day\"));\n $days[$day]=$dateDebutWeek;\n }\n return $days;\n}", "title": "" }, { "docid": "ecc5dc321b8abc0c0460cfa1dc61e5f3", "score": "0.53612155", "text": "function days($dateDebutWeek){\n $days=array();\n $days[0]=$dateDebutWeek;\n for($day=1;$day<7;$day++){\n //on incremente les jours\n $dateDebutWeek=date('Y-m-d', strtotime(' '.$dateDebutWeek .\"+1 day\"));\n $days[$day]=$dateDebutWeek;\n }\n return $days;\n}", "title": "" }, { "docid": "eea76e17156f8f2a0d4928736b925cad", "score": "0.5352628", "text": "public function getDay() {\n\t\treturn \\date('j', $this->_timestamp);\n\t}", "title": "" }, { "docid": "a228242f88530a7bd588ab7bdc2aa11e", "score": "0.53376704", "text": "public function format_interval_FR($dt_now,$dt_key_date,$started){\n\t\t$PM=($dt_key_date->format('A')=='AM'?'matin':'soir');\n\t\t$dt_key_date->SetTime(0,0);\n\t\t$dt_now->SetTime(0,0);\n\t\t$dt_interv=$dt_now->diff($dt_key_date);\n\t\t//var_dump($dt_interv);\n\t\t$num_days= $dt_interv->days;\n\t\tswitch (true){\n\t\t\tcase $num_days==0:\n\t\t\t\tif ($started){\n\t\t\t\t\treturn mb_convert_encoding('� ce moment', 'UTF-8','ISO-8859-15');\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn 'Ce '.$PM;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase $num_days==1:\n\t\t\t\treturn 'Demain '.$PM;\n\t\t\t\tbreak;\n\t\t\tcase ($num_days % 7):\n\t\t\t\treturn 'Dans '.$num_days.' jours';\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t\treturn 'Dans '.($num_days/7).' semaine'.(($num_days/7>1)?'s':''); \n\t\t\t break;\n\t\t}\n\t}", "title": "" }, { "docid": "07cd21e896f6afb022acc1c4266a38d4", "score": "0.53275913", "text": "function calculeNbJoursEntreDates($strDateDebut, $strDateFin)\n{\n $dtDebut = \\DateTime::createFromFormat('Y-m-d', $strDateDebut);\n $dtFin = \\DateTime::createFromFormat('Y-m-d', $strDateFin);\n\n $di = $dtFin->diff($dtDebut);\n $nbJours = $di->format('%a');\n\n return $nbJours;\n}", "title": "" }, { "docid": "c1606fc9c569c18bb294cf5c73e449f0", "score": "0.5312718", "text": "function la_date($give){\n $today = microtime(true);\n $micro = sprintf(\"%06d\",($today - floor($today)) * 1000000);\n $dates = new DateTime(date('Y-m-d'.$micro,$today));\n#scinder la date.\n $today_sep= explode('/', $dates);\n#identifier la table avec le jour et le mois.\n $le_jour = $today_sep[0];\n $le_mois = $today_sep[1];\n $l_annee = $today_sep[2];\n $le_mois = array ('1' => 'JANVIER','2' => 'FEVRIER','3' => 'MARS','4' => 'AVRIL','5' => 'MAI','6' => 'JUIN','7' => 'JUILLET','8' => 'AOUT','9' => 'SEPTEMBRE','10' => 'OCTOBRE','11' => 'NOVEMBRE','12' => 'DECEMBRE');\n\n#verifier que le nombre de seconde entré est arrondi à un int.\n $count_days = round($give/60/60/24);\n#trouver le nouveau jour.\n $day_of_event = $le_jour - $count_days;\n#donner la date reelle.\n $le_jour = $day_of_event;\n echo \"L'évènement a eu lieu le \" . $le_jour . \" \". $le_mois . \" \" . $le_mois ;\n}", "title": "" }, { "docid": "fe5a739c85b0d6bd0ee7b9eca5ddd42e", "score": "0.5301484", "text": "function resta_dias_Date($dias){\r\n /* si no se emplea moment hay que habilitar las lineas que siguen\r\n $fecha = date(gmdate(DATE_ISO8601, time())); \r\n $new_fecha = strtotime($fecha.'+ 6 hours 20 seconds');\r\n return date(DATE_ISO8601,$new_fecha); \r\n */ \r\n \r\n $fecha = date(DATE_ISO8601, time()); \r\n $m = new \\Moment\\Moment($fecha, 'CET');\r\n return $m->subtractDays($dias)->format(\"d-m-Y H:i:s\");\r\n}", "title": "" }, { "docid": "b064122b6c9215f79de8e3fe24cf5066", "score": "0.5298607", "text": "public function FechaHijo()\n {\n $tiempo = parent::Fecha(1994)+25;\n echo \"Hijo: Tu edad sera: \" . $tiempo . \"<br>\";\n }", "title": "" }, { "docid": "24eb5d6e3c92c394239394d5b289f1d1", "score": "0.5295877", "text": "public static function timeInDays($days = 0)\n {\n // Zie: http://www.php.net/manual/en/function.time.php\n return time() + 60 * 60 * 24 * $days;\n }", "title": "" }, { "docid": "697b0e5ee764eccf99e48cae1114d987", "score": "0.52884185", "text": "function affiche_date_locale($moment){\r\n$decalage_hiver=1;\r\nif (!$moment){\r\n$temps=time();\r\n}\r\nelse {\r\n$temps=$moment;\r\n}\r\n/*l'heure d'hiver commence le dernier dimanche de mars à 1h GMT et finit le dernier dimanche d'hiver à 1h GMT*/\r\n$jourdesemaine=gmdate(\"w\", mktime(1,0,0, 3,31,gmdate(\"Y\")));\r\n//variable pour connaître le jour de semaine du 31 mars\r\n$limite_inf=mktime(1,0,0, 3,31-$jourdesemaine,gmdate(\"Y\"));\r\n//variable pour trouver le dernier dimanche de mars pour l'année courante\r\n$jourdesemaine=gmdate(\"w\", mktime(1,0,0, 10,31,gmdate(\"Y\")));\r\n//variable pour connaître le jour de semaine du 31 octobre\r\n$limite_sup=mktime(1,0,0, 10,31-$jourdesemaine,gmdate(\"Y\"));\r\n//variable pour trouver le dernier dimanche d'octobre pour l'année courante\r\n/*maintenant nous testons la date pour savoir si elle est comprise entre les deux limites et dans ce cas elle est en heure d'été*/\r\nif ($temps>$limite_inf && $temps<$limite_sup){\r\n$decalage=$decalage_hiver+1;\r\n}\r\nelse {\r\n$decalage=$decalage_hiver;\r\n}\r\n$moment=mktime(gmdate(\"G\")+$decalage,gmdate(\"i\"),0, gmdate(\"n\"),gmdate(\"j\"),gmdate(\"Y\"));\r\n//ici nous fabriquons le timestamp avec mktime() en incluant le décalage\r\n$ladate=affiche_jour($moment) .\" \".date(\"j\", $moment).\" \". affiche_mois($moment) .\" \". date(\"Y\", $moment);\r\n/*la date inclut le mois en français grâce à l'appel de la fonction. Vous pouvez dans certains cas faire précéder la fonction du @ pour éviter le message d'erreur si vous n'envoyez pas de paramètre par exemple alors que la fonction en utilise un.*/\r\n$heure = date(\"G\",$moment);\r\n$minute = date(\"i\", $moment);\r\n$ladate.=\"<BR>\"; \r\n$ladate.=\"$heure\"; \r\n$ladate.=\"h\"; \r\n$ladate.=\"$minute\";\r\nreturn $ladate;\r\n }", "title": "" }, { "docid": "7c1f0931bdff933bbbebe772130706ac", "score": "0.52763295", "text": "function add_dias_Date($dias){\r\n /* si no se emplea moment hay que habilitar las lineas que siguen\r\n $fecha = date(gmdate(DATE_ISO8601, time())); \r\n $new_fecha = strtotime($fecha.'+ 6 hours 20 seconds');\r\n return date(DATE_ISO8601,$new_fecha); \r\n */ \r\n \r\n $fecha = date(DATE_ISO8601, time()); \r\n $m = new \\Moment\\Moment($fecha, 'CET');\r\n return $m->addDays($dias)->format(\"d-m-Y H:i:s\");\r\n}", "title": "" }, { "docid": "8ac93e68b50410d40bfd409fe9f5afa5", "score": "0.52709824", "text": "public function getDayDate($date)\n {\n $date = strtotime($date);\n $months = array('','.01','.02','.03','.04','.05','.06','.07','.08','.09','.10','.11','.12');\n $days = array('ВС', 'ПН', 'ВТ', 'СР', 'ЧТ', 'ПТ', 'СБ');\n return $days[date('w', $date)] .', ' . (int)date('d',$date) . $months[date('n', $date)];\n }", "title": "" }, { "docid": "ed48bbb37900468c790f6eef7736b81f", "score": "0.5262663", "text": "function date_dow($day, $month, $year) {\r\n // Gregorian correction from ADODB\r\n if ($year <= 1582) {\r\n if ($year < 1582 ||\r\n ($year == 1582 && ($month < 10 || ($month == 10 && $day < 15)))) $greg_correction = 3;\r\n else\r\n $greg_correction = 0;\r\n } else\r\n $greg_correction = 0;\r\n if($month > 2)\r\n $month -= 2;\r\n else {\r\n $month += 10;\r\n $year--;\r\n }\r\n $day = (floor((13 * $month - 1) / 5) +\r\n $day + ($year % 100) +\r\n floor(($year % 100) / 4) +\r\n floor(($year / 100) / 4) - 2 *\r\n floor($year / 100) + 77 + $greg_correction);\r\n $weekday_number = $day - 7 * floor($day / 7);\r\n return $weekday_number;\r\n}", "title": "" }, { "docid": "1c0120c673d7ab02bad9235ad1e054d7", "score": "0.52592516", "text": "public function floor_days() {\r\n\t\treturn floor ( floor ( $this->getNbSeconds () / 3600 ) / 24 );\r\n\t}", "title": "" }, { "docid": "826f87aa0168413c512d0a771687b182", "score": "0.52490604", "text": "function jours_feries($annee)\n{\n\t////\tLes fêtes mobiles (si la fonction de récup' de paques existe)\n\tif(function_exists(\"easter_date\"))\n\t{\n\t\t// Initialisation\n\t\t$jour_unix = 86400;\n\t\t$paques_unix = easter_date($annee);\n\t\t// Lundi de pâques\n\t\t$date = strftime(\"%Y-%m-%d\", $paques_unix+$jour_unix);\n\t\t$tab_jours_feries[$date] = \"Easter Monday\";\n\t}\n\n\t////\tLes fêtes fixes\n\t// Jour de l'an\n\t$tab_jours_feries[$annee.\"-01-01\"] = \"New Year's Day\";\n\t// Noël\n\t$tab_jours_feries[$annee.\"-12-25\"] = \"Christmas\";\n\n\t////\tRetourne le résultat\n\treturn $tab_jours_feries;\n}", "title": "" }, { "docid": "b4308e1bd488e64871cc092e84f1c580", "score": "0.52079105", "text": "public function toFormattedDayDateString()\n {\n return $this->format('l j F Y');\n }", "title": "" }, { "docid": "f43367fe52a44ce197297dbb43a9b0ce", "score": "0.5203999", "text": "function addDayswithdate($date, $days) {\n $date = strtotime(\"+\" . $days . \" days\", strtotime($date));\n return date(\"Y-m-d\", $date);\n }", "title": "" }, { "docid": "155e58ee56ae6c6fa642a5dbb4e5c9f2", "score": "0.51991844", "text": "function afficherDate($lang) {\n$jours[\"AR\"] = array(\"الأحد\",\"الإثنين\",\"الثلاثاء\",\"الأربعاء\",\"الخميس\",\"الجمعة\",\"السبت\");\n$jours[\"FR\"] = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n$jours[\"EN\"] = array(\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\");\n\n$months[\"AR\"]=[\"يناير \", \"فبراير\", \"مارس \", \"أبريل\", \"ماي \", \"يونيو\" , \"يوليوز\" , \"غشت \", \"شتنبر\" ,\"أكتوبر\" , \"نونبر\" , \"دجنبر\"];\n\n$months[\"EN\"]= [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"];\n\n$months[\"FR\"]= [\"Janvier\",\"Février\",\"Mars\", \"Avril\",\"Mai\",\"juin\",\"Juillet\",\"Aôut\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\"];\n\n$d = getdate();\n\n$wj = $d[\"wday\"];\n$mj = $d[\"mday\"];\n$m = $d[\"mon\"];\n$y = $d[\"year\"];\n\n$d= $jours[$lang][$wj]. \" \" . $mj . \" \" . $months[$lang][$m-1] . \" \" . $y;\nreturn $d;\n \n}", "title": "" }, { "docid": "13b4b4bde23d66205060143170853c5f", "score": "0.5198523", "text": "function nb_jour($date_debut,$date_fin)\n{\n $tab_date_debut = explode('-', $date_debut);\n $tab_date_fin = explode('-', $date_fin);\n $Mois1 = $tab_date_debut[1];\n $Jour1 = $tab_date_debut[2];\n $Annee1 = $tab_date_debut[0];\n $Mois2 = $tab_date_fin[1];\n $Jour2 = $tab_date_fin[2];\n $Annee2 = $tab_date_fin[0];\n $Date1 = mktime( 0, 0, 0, $Mois1, $Jour1, $Annee1 );\n $Date2 = mktime( 0, 0, 0, $Mois2, $Jour2, $Annee2 );\n $nbJour = ($Date2 - $Date1) / (60*60*24);\n return ($nbJour);\n}", "title": "" }, { "docid": "4847d497f564cfd6bde721dd6bcb6cde", "score": "0.51730597", "text": "public function getDate()\n\t{\n\t\treturn date('l jS \\of F Y');\n\t}", "title": "" }, { "docid": "4afb6c0bea97c41fdb0d2d20da88f7b3", "score": "0.51672596", "text": "function days_of_year($jmonth,$jday,$jyear)\n{\n $year=\"\";\n $month=\"\";\n $year=\"\";\n $result=\"\";\n if($jmonth==\"01\")\n return $jday;\n for ($i=1;$i<$jmonth || $i==12;$i++)\n {\n list( $year, $month, $day ) = jalali_to_gregorian($jyear, $i, \"1\");\n $result+=lastday($month,$day,$year);\n }\n return $result+$jday;\n}", "title": "" }, { "docid": "3fd2a4611614b80051838cfe4c3b7c08", "score": "0.5163421", "text": "function dtt($date){\n\t$dt = strtotime($date);\n\t$fm = date(\"F j, Y\", $dt); \n\techo $fm;\n}", "title": "" }, { "docid": "e3c4e3605473b8129a94915b9868a895", "score": "0.51287323", "text": "function days_of_year($jmonth, $jday, $jyear) {\n\t$year = \"\";\n\t$month = \"\";\n\t$year = \"\";\n\t$result = \"\";\n\tif ($jmonth == \"01\")\n\t\treturn $jday;\n\tfor($i = 1; $i < $jmonth || $i == 12; $i ++) {\n\t\tlist ( $year, $month, $day ) = jalali_to_gregorian ( $jyear, $i, \"1\" );\n\t\t$result += lastday ( $month, $day, $year );\n\t}\n\treturn $result + $jday;\n}", "title": "" }, { "docid": "6861f51b311b7bbafc14bafec3c7625a", "score": "0.51226443", "text": "function DiaHoje(){\n//dia atual\n$dia=date(\"l\");\nswitch($dia)\n{\ncase \"Monday\":\n$dia_port = \"segunda-feira\";\nbreak; \ncase \"Tuesday\":\n$dia_port = \"terça-feira\";\nbreak; \ncase \"Wednesday\":\n$dia_port = \"quarta-feira\";\nbreak; \ncase \"Thursday\":\n$dia_port = \"quinta-feira\";\nbreak; \ncase \"Friday\":\n$dia_port = \"sexta-feira\";\nbreak; \ncase \"Saturday\":\n$dia_port = \"sábado\";\nbreak; \ncase \"Sunday\":\n$dia_port = \"domingo\";\nbreak; \n}\n$mes = date(\"n\");\nswitch($mes) \n{\ncase \"1\":\n$mes_port = \"janeiro\";\nbreak; \ncase \"2\":\n$mes_port = \"fevereiro\";\nbreak; \ncase \"3\":\n$mes_port = \"março\";\nbreak; \ncase \"4\":\n$mes_port = \"abril\";\nbreak; \ncase \"5\":\n$mes_port = \"maio\";\nbreak; \ncase \"6\":\n$mes_port = \"junho\";\nbreak; \ncase \"7\":\n$mes_port = \"julho\";\nbreak; \ncase \"8\":\n$mes_port = \"agosto\";\nbreak; \ncase \"9\":\n$mes_port = \"setembro\";\nbreak; \ncase \"10\":\n$mes_port = \"outubro\";\nbreak; \ncase \"11\":\n$mes_port = \"novembro\";\nbreak; \ncase \"12\":\n$mes_port = \"dezembro\";\nbreak; \n}\necho ($dia_port); \necho (\", \");\necho (date(\"d\"));\necho (\" de \");\necho ($mes_port); \necho (\" de \");\necho (date(\"Y\"));\n}", "title": "" }, { "docid": "af2e5a8faab306d405736596f0f92f4d", "score": "0.51167655", "text": "function brigeFormatDayToDayHour($totalHours)\n{\n $hoursForDay = 24;\n $days = \"\" + ($totalHours/$hoursForDay);\n list($day,$decimalDay) = explode(\".\",$days);\n $decimalDay = ((float)(\".\".$decimalDay))*$hoursForDay;\n return \"$day d \".(int)$decimalDay.\" h\";\n}", "title": "" }, { "docid": "cd836bf17a361c7b1968a7454fb23ecf", "score": "0.51016533", "text": "function addDays($days){ $this->_Date = Dates::AddDays($this->getDate(),$days); }", "title": "" }, { "docid": "9858923abe08e1aad19af00aa46e6bcb", "score": "0.5099233", "text": "public function getDayFormat($day)\n {\n $date = new Datetime();\n $date->sub(new DateInterval('P'. (intval($day) + 1) .'D'));\n return $date->format('U');\n }", "title": "" }, { "docid": "bfd964bbdce1f4be5b94a086c83de711", "score": "0.5097555", "text": "function obtener_fecha(){\n date_default_timezone_set(\"America/Costa_Rica\"); \n $fecha = Date(\"d-m-Y\");\n $hora = Date(\" h:i a\");\n $fe = $fecha.$hora;\n return $fe;\n }", "title": "" }, { "docid": "bb5bdffff6a8060f6795b0c439169b2d", "score": "0.5096139", "text": "public static function dateEmPortugues($dateSql){\r\n $ano= substr($dateSql, 0,-6);\r\n $mes= substr($dateSql, 5,-3);\r\n $dia= substr($dateSql, 8);\r\n return $dia.\"/\".$mes.\"/\".$ano;\r\n }", "title": "" }, { "docid": "cb62ebd49618eb97e348c2c2e89e2b65", "score": "0.50934863", "text": "function dmyhi($dateYmdHis,$timezone=null){\n $jour=substr($dateYmdHis,0,19);\n try {\n $jour=date_create_from_format(\"Y-m-d H:i:s\",$jour);\n if (!is_null($timezone)) {\n date_timezone_set($jour, new DateTimeZone($timezone));\n }\n $date=date_format($jour,\"d/m/Y H:i\"); \n } catch (Exception $e) {\n $date=\"Inconnue\";\n }\n return $date; \n }", "title": "" }, { "docid": "4ea0fea300847bcbdf390b57c8fd12e8", "score": "0.5091264", "text": "function nameDay($fecha)\n{\n $fc1 = new Jenssegers\\Date\\Date($fecha);\n return config('auxiliares.diaSemana.' . $fc1->format('N'));\n}", "title": "" }, { "docid": "3cd29e4e7208bb3b17f9ea7d2a1c14ed", "score": "0.50778854", "text": "function cal_from_jd($jd, $calendar)\n{\n}", "title": "" }, { "docid": "e9c2116f0919655836705fa2a8839498", "score": "0.50697565", "text": "private function formatDate(int $day): int\n {\n return sprintf(\"%d%02d%02d\", $this->year, $this->month, $day);\n }", "title": "" }, { "docid": "489e49d82a7c85b5658af188596ccf58", "score": "0.5068069", "text": "function brigeFormatDayToDayHour($totalHours) {\n $hoursForDay = 24;\n $days = \"\" + ($totalHours / $hoursForDay);\n list($day, $decimalDay) = explode(\".\", $days);\n $decimalDay = ((float) (\".\" . $decimalDay)) * $hoursForDay;\n return \"$day d \" . (int) $decimalDay . \" h\";\n}", "title": "" }, { "docid": "2be1e96d500c5305c9fd364cdc1b8d23", "score": "0.5066973", "text": "function AddDays($date,$count)\n{\n return(date_create($date->format(\"n/j/Y\") . \" +$count days\"));\n}", "title": "" }, { "docid": "a18df59b905cda61ce3246a3e09ed146", "score": "0.5046205", "text": "public function frenchDate() {\n $dateArray = date_parse($this->date);\n \n return $dateArray['day'].'/'.$dateArray['month'].'/'.$dateArray['year'].' à '.$dateArray['hour'].':'.$dateArray['minute'];\n }", "title": "" }, { "docid": "01546cbe5d0bab2f3e9f202f21351490", "score": "0.5038201", "text": "public static function convertdate(){\n date_default_timezone_set('Asia/jakarta');\n $date = date('ddmmyy');\n return $date;\n }", "title": "" }, { "docid": "4782744febaa2fa547ad691c180405d4", "score": "0.5034435", "text": "function ante_date_jour($moins,$formater=false) {\r\n\tif($formater) {\r\n\t\t$ante = date('d/m', mktime(0, 0, 0, date(\"m\"), date(\"d\")-$moins, date(\"Y\")));\r\n\t}\r\n\telse {\r\n\t\t$ante = mktime(0, 0, 0, date(\"m\"), date(\"d\")-$moins, date(\"Y\"));\r\n\t}\r\n\treturn $ante;\r\n}", "title": "" }, { "docid": "f70fd49b4b19506df9ba2cfc6ad78caf", "score": "0.50325114", "text": "function dayStr($cycle,$saison,$jour)\n{\n global $MUNDIDAY;\n if ($jour==1) {\n $str=\"Mundiday du \";\n } else {\n $str=\"$jour\".\"e jour \";\n }\n if ($saison==0) {\n $str.=\"de la saison du Hum\";\n } else {\n $str.=\"du mois \".$MUNDIDAY[$saison-1];\n }\n $str.=\" du $cycle\".\"e cycle après Ragnarok\";\n return $str;\n}", "title": "" }, { "docid": "39688e429dabe3768b200db1ac584198", "score": "0.5032502", "text": "private function _formatDueIn($seconds)\n {\n $ret = \"\";\n if ($seconds > 86400) {\n $ret = round($seconds / 86400, 1) . __(' days', true);\n }\n elseif ($seconds < 3600) {\n $minutes = (int) ($seconds / 60);\n $seconds = $seconds % 60;\n $ret = $minutes . __(' minutes ', true) . $seconds\n . __(' seconds', true);\n }\n else {\n $hours = (int) ($seconds / 3600);\n $minutes = (int) ($seconds % 3600 / 60);\n $ret = $hours . __(' hours ', true) . $minutes .\n __(' minutes', true);\n }\n return $ret;\n }", "title": "" }, { "docid": "7ac08c2e4afec6bd8cd822b8a648e7f3", "score": "0.5031813", "text": "function getDate() {\n\n include(\"./settings/template.php\");\n\n $month_full = date(\"n\", $this->timestamp);\n\n $month_full = $getmonth[$month_full];\n\n $Fday = date(\"d.\",$this->timestamp);\n $Fyear = date(\"Y\",$this->timestamp);\n\n $date = $Fday.\" \".$month_full.\" \".$Fyear;\n\n // $date = date(\"d.m.Y, H:i\",$this->timestamp);\n\n return $date;\n\n }", "title": "" }, { "docid": "12af9f587fc7c8542d05bab10d5218e9", "score": "0.5030257", "text": "function nombreJoursEntreDeuxDates($strDate1, $strDate2){\n return (strtotime($strDate1) >= strtotime(\"14-12-1901\") && strtotime($strDate2) >= strtotime(\"14-12-1901\"))? \n abs((strtotime($strDate1) - strtotime($strDate2)) /(60*60*24)): \"Date invalide\";\n}", "title": "" }, { "docid": "ed64c94f23a198569f23c395619b22e7", "score": "0.50220376", "text": "function jdate($type, $maket = \"now\") {\n\t//$transnumber = 0;\n\t///chosse your timezone\n\t$TZhours = 3;\n\t$TZminute = 30;\n\t$need = \"\";\n\t$result1 = \"\";\n\t$result = \"\";\n\tif ($maket == \"now\") {\n\t\t$year = date ( \"Y\" );\n\t\t$month = date ( \"m\" );\n\t\t$day = date ( \"d\" );\n\t\tlist ( $jyear, $jmonth, $jday ) = gregorian_to_jalali ( $year, $month, $day );\n\t\t$maket = mktime ( date ( \"H\" ) + $TZhours, date ( \"i\" ) + $TZminute, date ( \"s\" ), date ( \"m\" ), date ( \"d\" ), date ( \"Y\" ) );\n\t} else {\n\t\t//$maket=0;\n\t\t$maket += $TZhours * 3600 + $TZminute * 60;\n\t\t$date = date ( \"Y-m-d\", $maket );\n\t\tlist ( $year, $month, $day ) = preg_split ( '/-/', $date );\n\n\t\tlist ( $jyear, $jmonth, $jday ) = gregorian_to_jalali ( $year, $month, $day );\n\t}\n\n\t$need = $maket;\n\t$year = date ( \"Y\", $need );\n\t$month = date ( \"m\", $need );\n\t$day = date ( \"d\", $need );\n\t$i = 0;\n\t$subtype = \"\";\n\t$subtypetemp = \"\";\n\tlist ( $jyear, $jmonth, $jday ) = gregorian_to_jalali ( $year, $month, $day );\n\twhile ( $i < strlen ( $type ) ) {\n\t\t$subtype = substr ( $type, $i, 1 );\n\t\tif ($subtypetemp == \"\\\\\") {\n\t\t\t$result .= $subtype;\n\t\t\t$i ++;\n\t\t\tcontinue;\n\t\t}\n\n\t\tswitch ($subtype) {\n\n\t\t\tcase \"A\" :\n\t\t\t\t$result1 = date ( \"a\", $need );\n\t\t\t\tif ($result1 == \"pm\")\n\t\t\t\t\t$result .= \"&#1576;&#1593;&#1583;&#1575;&#1586;&#1592;&#1607;&#1585;\";\n\t\t\t\telse\n\t\t\t\t\t$result .= \"&#1602;&#1576;&#1604;&#8207;&#1575;&#1586;&#1592;&#1607;&#1585;\";\n\t\t\t\tbreak;\n\n\t\t\tcase \"a\" :\n\t\t\t\t$result1 = date ( \"a\", $need );\n\t\t\t\tif ($result1 == \"pm\")\n\t\t\t\t\t$result .= \"&#1576;&#46;&#1592;\";\n\t\t\t\telse\n\t\t\t\t\t$result .= \"&#1602;&#46;&#1592;\";\n\t\t\t\tbreak;\n\t\t\tcase \"d\" :\n\t\t\t\tif ($jday < 10)\n\t\t\t\t\t$result1 = \"0\" . $jday;\n\t\t\t\telse\n\t\t\t\t\t$result1 = $jday;\n\t\t\t\tif ($transnumber == 1)\n\t\t\t\t\t$result .= Convertnumber2farsi ( $result1 );\n\t\t\t\telse\n\t\t\t\t\t$result .= $result1;\n\t\t\t\tbreak;\n\t\t\tcase \"D\" :\n\t\t\t\t$result1 = date ( \"D\", $need );\n\t\t\t\tif ($result1 == \"Thu\")\n\t\t\t\t\t$result1 = \"&#1662;\";\n\t\t\t\telse if ($result1 == \"Sat\")\n\t\t\t\t\t$result1 = \"&#1588;\";\n\t\t\t\telse if ($result1 == \"Sun\")\n\t\t\t\t\t$result1 = \"&#1609;\";\n\t\t\t\telse if ($result1 == \"Mon\")\n\t\t\t\t\t$result1 = \"&#1583;\";\n\t\t\t\telse if ($result1 == \"Tue\")\n\t\t\t\t\t$result1 = \"&#1587;\";\n\t\t\t\telse if ($result1 == \"Wed\")\n\t\t\t\t\t$result1 = \"&#1670;\";\n\t\t\t\telse if ($result1 == \"Thu\")\n\t\t\t\t\t$result1 = \"&#1662;\";\n\t\t\t\telse if ($result1 == \"Fri\")\n\t\t\t\t\t$result1 = \"&#1580;\";\n\t\t\t\t$result .= $result1;\n\t\t\t\tbreak;\n\t\t\tcase \"F\" :\n\t\t\t\t$result .= monthname ( $jmonth );\n\t\t\t\tbreak;\n\t\t\tcase \"g\" :\n\t\t\t\t$result1 = date ( \"g\", $need );\n\t\t\t\tif ($transnumber == 1)\n\t\t\t\t\t$result .= Convertnumber2farsi ( $result1 );\n\t\t\t\telse\n\t\t\t\t\t$result .= $result1;\n\t\t\t\tbreak;\n\t\t\tcase \"G\" :\n\t\t\t\t$result1 = date ( \"G\", $need );\n\t\t\t\tif ($transnumber == 1)\n\t\t\t\t\t$result .= Convertnumber2farsi ( $result1 );\n\t\t\t\telse\n\t\t\t\t\t$result .= $result1;\n\t\t\t\tbreak;\n\t\t\tcase \"h\" :\n\t\t\t\t$result1 = date ( \"h\", $need );\n\t\t\t\tif ($transnumber == 1)\n\t\t\t\t\t$result .= Convertnumber2farsi ( $result1 );\n\t\t\t\telse\n\t\t\t\t\t$result .= $result1;\n\t\t\t\tbreak;\n\t\t\tcase \"H\" :\n\t\t\t\t$result1 = date ( \"H\", $need );\n\t\t\t\tif ($transnumber == 1)\n\t\t\t\t\t$result .= Convertnumber2farsi ( $result1 );\n\t\t\t\telse\n\t\t\t\t\t$result .= $result1;\n\t\t\t\tbreak;\n\t\t\tcase \"i\" :\n\t\t\t\t$result1 = date ( \"i\", $need );\n\t\t\t\tif ($transnumber == 1)\n\t\t\t\t\t$result .= Convertnumber2farsi ( $result1 );\n\t\t\t\telse\n\t\t\t\t\t$result .= $result1;\n\t\t\t\tbreak;\n\t\t\tcase \"j\" :\n\t\t\t\t$result1 = $jday;\n\t\t\t\tif ($transnumber == 1)\n\t\t\t\t\t$result .= Convertnumber2farsi ( $result1 );\n\t\t\t\telse\n\t\t\t\t\t$result .= $result1;\n\t\t\t\tbreak;\n\t\t\tcase \"l\" :\n\t\t\t\t$result1 = date ( \"l\", $need );\n\t\t\t\tif ($result1 == \"Saturday\")\n\t\t\t\t\t$result1 = \"شنبه\";\n\t\t\t\telse if ($result1 == \"Sunday\")\n\t\t\t\t\t$result1 = \"یک‌شنبه\";\n\t\t\t\telse if ($result1 == \"Monday\")\n\t\t\t\t\t$result1 = \"دو‌شنبه\";\n\t\t\t\telse if ($result1 == \"Tuesday\")\n\t\t\t\t\t$result1 = \"سه‌شنبه\";\n\t\t\t\telse if ($result1 == \"Wednesday\")\n\t\t\t\t\t$result1 = \"جهار‌شنبه\";\n\t\t\t\telse if ($result1 == \"Thursday\")\n\t\t\t\t\t$result1 = \"پنج‌شنبه\";\n\t\t\t\telse if ($result1 == \"Friday\")\n\t\t\t\t\t$result1 = \"جمعه\";\n\t\t\t\t$result .= $result1;\n\t\t\t\tbreak;\n\t\t\tcase \"m\" :\n\t\t\t\tif ($jmonth < 10)\n\t\t\t\t\t$result1 = \"0\" . $jmonth;\n\t\t\t\telse\n\t\t\t\t\t$result1 = $jmonth;\n\t\t\t\tif ($transnumber == 1)\n\t\t\t\t\t$result .= Convertnumber2farsi ( $result1 );\n\t\t\t\telse\n\t\t\t\t\t$result .= $result1;\n\t\t\t\tbreak;\n\t\t\tcase \"M\" :\n\t\t\t\t$result .= short_monthname ( $jmonth );\n\t\t\t\tbreak;\n\t\t\tcase \"n\" :\n\t\t\t\t$result1 = $jmonth;\n\t\t\t\tif ($transnumber == 1)\n\t\t\t\t\t$result .= Convertnumber2farsi ( $result1 );\n\t\t\t\telse\n\t\t\t\t\t$result .= $result1;\n\t\t\t\tbreak;\n\t\t\tcase \"s\" :\n\t\t\t\t$result1 = date ( \"s\", $need );\n\t\t\t\tif ($transnumber == 1)\n\t\t\t\t\t$result .= Convertnumber2farsi ( $result1 );\n\t\t\t\telse\n\t\t\t\t\t$result .= $result1;\n\t\t\t\tbreak;\n\t\t\tcase \"S\" :\n\t\t\t\t$result .= \"\";\n\t\t\t\tbreak;\n\t\t\tcase \"t\" :\n\t\t\t\t$result .= lastday ( $month, $day, $year );\n\t\t\t\tbreak;\n\t\t\tcase \"w\" :\n\t\t\t\t$result1 = date ( \"w\", $need );\n\t\t\t\tif ($transnumber == 1)\n\t\t\t\t\t$result .= Convertnumber2farsi ( $result1 );\n\t\t\t\telse\n\t\t\t\t\t$result .= $result1;\n\t\t\t\tbreak;\n\t\t\tcase \"y\" :\n\t\t\t\t$result1 = substr ( $jyear, 2, 4 );\n\t\t\t\tif ($transnumber == 1)\n\t\t\t\t\t$result .= Convertnumber2farsi ( $result1 );\n\t\t\t\telse\n\t\t\t\t\t$result .= $result1;\n\t\t\t\tbreak;\n\t\t\tcase \"Y\" :\n\t\t\t\t$result1 = $jyear;\n\t\t\t\tif ($transnumber == 1)\n\t\t\t\t\t$result .= Convertnumber2farsi ( $result1 );\n\t\t\t\telse\n\t\t\t\t\t$result .= $result1;\n\t\t\t\tbreak;\n\t\t\tcase \"U\" :\n\t\t\t\t$result .= mktime ();\n\t\t\t\tbreak;\n\t\t\tcase \"Z\" :\n\t\t\t\t$result .= days_of_year ( $jmonth, $jday, $jyear );\n\t\t\t\tbreak;\n\t\t\tcase \"L\" :\n\t\t\t\tlist ( $tmp_year, $tmp_month, $tmp_day ) = jalali_to_gregorian ( 1384, 12, 1 );\n\t\t\t\techo $tmp_day;\n\t\t\t\t/*if(lastday($tmp_month,$tmp_day,$tmp_year)==\"31\")\n\t\t\t\t\t$result.=\"1\";\n\t\t\t\telse\n\t\t\t\t\t$result.=\"0\";\n\t\t\t\t\t*/\n\t\t\t\tbreak;\n\t\t\tdefault :\n\t\t\t\t$result .= $subtype;\n\t\t}\n\t\t$subtypetemp = substr ( $type, $i, 1 );\n\t\t$i ++;\n\t}\n\treturn $result;\n}", "title": "" }, { "docid": "800e654471c8d90055d088f83680d17d", "score": "0.5018701", "text": "static function jalali_to_gregorian($j_y, $j_m, $j_d) {\n $g_days_in_month = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);\n $j_days_in_month = array(31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29);\n\n $jy = $j_y - 979;\n $jm = $j_m - 1;\n $jd = $j_d - 1;\n\n $j_day_no = 365 * $jy + self::div($jy, 33) * 8 + self::div($jy % 33 + 3, 4);\n for ($i = 0; $i < $jm; ++$i)\n $j_day_no += $j_days_in_month[$i];\n\n $j_day_no += $jd;\n\n $g_day_no = $j_day_no + 79;\n\n $gy = 1600 + 400 * self::div($g_day_no, 146097); /* 146097 = 365*400 + 400/4 - 400/100 + 400/400 */\n $g_day_no = $g_day_no % 146097;\n\n $leap = true;\n if ($g_day_no >= 36525) /* 36525 = 365*100 + 100/4 */ {\n $g_day_no--;\n $gy += 100 * self::div($g_day_no, 36524); /* 36524 = 365*100 + 100/4 - 100/100 */\n $g_day_no = $g_day_no % 36524;\n\n if ($g_day_no >= 365)\n $g_day_no++;\n else\n $leap = false;\n }\n\n $gy += 4 * self::div($g_day_no, 1461); /* 1461 = 365*4 + 4/4 */\n $g_day_no %= 1461;\n\n if ($g_day_no >= 366) {\n $leap = false;\n\n $g_day_no--;\n $gy += self::div($g_day_no, 365);\n $g_day_no = $g_day_no % 365;\n }\n\n for ($i = 0; $g_day_no >= $g_days_in_month[$i] + ($i == 1 && $leap); $i++)\n $g_day_no -= $g_days_in_month[$i] + ($i == 1 && $leap);\n $gm = $i + 1;\n $gd = $g_day_no + 1;\n\n return array($gy, $gm, $gd);\n }", "title": "" }, { "docid": "835ca3c51e36a25a7bfbbdc60251f90a", "score": "0.50171953", "text": "function shortcode_day() {\n\treturn date_i18n(\"l\");\n}", "title": "" }, { "docid": "29e26090a640f4f4e49ce71bf4a03320", "score": "0.50148845", "text": "function obtenerFechaEnLetra($fecha){\n\n $dia= conocerDiaSemanaFecha($fecha);\n\n $num = date(\"j\", strtotime($fecha));\n\n $anno = date(\"Y\", strtotime($fecha));\n\n $mes = array('enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre');\n\n $mes = $mes[(date('m', strtotime($fecha))*1)-1];\n\n return $dia.', '.$num.' de '.$mes.' del '.$anno;\n\n}", "title": "" }, { "docid": "a2197da9ea40797b746b5af7c6a202d4", "score": "0.50137746", "text": "function niceday($dated) {\n\t$dated = str_replace(array(\" \",\":\"),\"-\",$dated);\n\tlist($year,$month,$day,$hour,$minute) = explode(\"-\",$dated);\n\t// you can edit this line to display date/time in your preferred notation\n\t$niceday = @date(\"g:ia \\o\\\\n\\ l, F jS, Y\",mktime($hour,$minute,0,$month,$day,$year));\n\techo $niceday;\n}", "title": "" }, { "docid": "232520b4aa3c7530b47043678c9aa7eb", "score": "0.5010346", "text": "public function toDayDateTimeString()\n {\n return $this->format('D, j F, Y g:i A');\n }", "title": "" }, { "docid": "bd102a1e0e259b94bfc0f6d1eca43ea9", "score": "0.5009003", "text": "function tanggalyt($date) {\n$date = substr($date,0,10);\n$date = explode('-',$date);\n$mn = date('F',mktime(0,0,0,$date[1]));\n$dates = ''.$date[2].' '.$mn.' '.$date[0].'';\nreturn $dates;\n}", "title": "" }, { "docid": "10ef5a2373eb7e9b14479e24946c49c3", "score": "0.5008789", "text": "function longdate()\n {\n $temp = date(\"l, jS-F-Y\");\n return \"$temp\";\n }", "title": "" }, { "docid": "39ee7bfeed6e775161fec0c87c94405e", "score": "0.5006495", "text": "function trollToZhom($cycle, $saison, $jour)\n{\n $ragnarok=mktime(0,0,0,8,26,2001);\n $days=($cycle-1)*378;\n $days+=$jour+$saison*28;\n if ($saison!=0) {\n $days+=14;\n }\n $days-=1;\n $timestamp=$ragnarok+$days*86400;\n return $timestamp;\n}", "title": "" }, { "docid": "4b107237bcb51bc6c15d294fe471e4ab", "score": "0.5004435", "text": "public function dateFr($ajout){\n date_default_timezone_set(\"Europe/Paris\");\n // //donne la date et l'heure d'enregistrement du fichier\n $ajout = date(\"d/m/Y à H:i:s\");\n var_dump($ajout);\n return $ajout;\n }", "title": "" }, { "docid": "7b7c840f566c4938bcbe84b3c3102feb", "score": "0.500158", "text": "public function toDayDateTimeString();", "title": "" }, { "docid": "c84f70827f1e59e8149047eaf8fa10d9", "score": "0.4994989", "text": "function aa_julian_date_to_julian_day($year, $month, $day)\n{\n if ($month <= 2) {\n $year--;\n $month += 12;\n }\n\n $julian_day = aa_int(365.25 * ($year + 4716)) + aa_int(30.6001 * ($month + 1)) + $day - 1524.5;\n\n if ($julian_day < 0) {\n aa_set_error('This algorithm is invalid for negative Julian days.');\n return false;\n }\n\n return $julian_day;\n}", "title": "" }, { "docid": "3af2fd77f6f134879ab0f5671e926f8c", "score": "0.49860105", "text": "function pluginregister_addDayToDate( $timeStamp, $totalDays=1 ){\r\n\t$thePHPDate = getdate( $timeStamp );\r\n\t$thePHPDate['mday'] = $thePHPDate['mday']+$totalDays;\r\n\t$timeStamp = mktime( $thePHPDate['hours'], $thePHPDate['minutes'], $thePHPDate['seconds'], $thePHPDate['mon'], $thePHPDate['mday'], $thePHPDate['year'] );\r\n\treturn $timeStamp;\r\n}", "title": "" }, { "docid": "7b66f20f51b1da38cc4ac0fbe1316414", "score": "0.4985497", "text": "function formatDate($date){\r\n\treturn date('F j, Y, g:i a', strtotime($date)- 5 * 3600);\r\n}", "title": "" }, { "docid": "8b8e1ebd580fc4281f67db5850e9abf6", "score": "0.49848184", "text": "function format_date_($unix_time)\n{\n $format = 'F j, Y @ g:i a';\n return date($format, $unix_time);\n}", "title": "" }, { "docid": "6795b19e53921275b68c76db39ed89df", "score": "0.4976564", "text": "function smarty_modifier_relative_date($timestamp, $days = false, $format = \"d/m/Y à H:i\") {\n if (!is_numeric($timestamp)) {\n // It's not a time stamp, so try to convert it...\n $timestamp = strtotime($timestamp);\n }\n \n if (!is_numeric($timestamp)) {\n // If its still not numeric, the format is not valid\n return false;\n }\n \n // Calculate the difference in seconds\n $difference = time() - $timestamp;\n // Check if we only want to calculate based on the day\n if ($days && $difference < (60*60*24)) { \n return \"<abbr title=\\\"\".date($format, $timestamp).\"\\\">Aujourd'hui</abbr>\"; \n }\n if ($difference < 3) { \n return \"<abbr title=\\\"\".date($format, $timestamp).\"\\\">A l'instant</abbr>\"; \n }\n if ($difference < 60) { \n return \"<abbr title=\\\"\".date($format, $timestamp).\"\\\">Il y a \".$difference . \" secondes</abbr>\"; \n }\n if ($difference < (60*2)) { \n return \"<abbr title=\\\"\".date($format, $timestamp).\"\\\">Il y a 1 minute</abbr>\"; \n }\n if ($difference < (60*60)) { \n return \"<abbr title=\\\"\".date($format, $timestamp).\"\\\">Il y a \".intval($difference / 60) . \" minutes</abbr>\"; \n }\n if ($difference < (60*60*2)) { \n return \"<abbr title=\\\"\".date($format, $timestamp).\"\\\">Il y a 1 heure</abbr>\"; \n }\n if ($difference < (60*60*24)) { \n return \"<abbr title=\\\"\".date($format, $timestamp).\"\\\">Il y a \".intval($difference / (60*60)) . \" heures</abbr>\"; \n }\n if ($difference < (60*60*24*2)) { \n return \"<abbr title=\\\"\".date($format, $timestamp).\"\\\">Il y 1 jour</abbr>\"; \n }\n if ($difference < (60*60*24*7)) { \n return \"<abbr title=\\\"\".date($format, $timestamp).\"\\\">Il y a \".intval($difference / (60*60*24)) . \" jours</abbr>\"; \n }\n \n // More than a year ago, just return the formatted date\n return @date($format, $timestamp);\n\n}", "title": "" }, { "docid": "48d013eaee2ccfab76e09d8d138da74a", "score": "0.49743575", "text": "public static function toDay(): string\n {\n $day = date(\"l\", self::$time);\n return $day;\n }", "title": "" }, { "docid": "c123a6bea50374517c4e40b4e3d6f1fb", "score": "0.49706894", "text": "function affDateTime() {\n $jour = date('d');\n $mois = date('m');\n $annee = date('Y');\n $heure = date('H');\n $minute = date('i');\n\n // Affichage date et heure\n echo '<p class=\"affDateTime\">Bonjour! Nous sommes le ' . $jour . '/' . $mois . '/' . $annee . ' et il est ' . $heure. ' h ' . $minute.'</p>';\n\n}", "title": "" }, { "docid": "550163f3d1cd41f6793ed8df413830dc", "score": "0.49671566", "text": "function datefr2en($mydate) {\r\n @list($jour, $mois, $annee) = explode('/', $mydate);\r\n return @date('Y-m-d', mktime(0, 0, 0, $mois, $jour, $annee));\r\n}", "title": "" }, { "docid": "47ee5f5ebc79c9e7ea40f121207ee1a1", "score": "0.49645194", "text": "public function nameActualDay() {\n\n\t\treturn date('D');\n\t}", "title": "" }, { "docid": "d4b3a0bf34b0732c9bb633b09ba5edfb", "score": "0.49616188", "text": "function getDatee($fecha, $avance, $tipo, $habil) {\n $contador = 0;\n if ( $avance < 0 )\n $signo = -1;\n else\n $signo = 1;\n $contador = 0;\n // echo 'ok';\n if ( $tipo == 'hour' ) {\n while ( (24 * $contador) < ($avance * $signo) ) {\n $fecha = date ( 'Y-m-j H:i:s' , strtotime ( (24 * $signo) . \" hours\" , strtotime ($fecha) ));\n if ( ($habil && esFechaHabil($fecha)) || !$habil )\n $contador ++;\n }\n } else if ($tipo == 'day' ) {\n while ( ( $contador ) < ( $avance * $signo ) ) {\n $fecha = date ( 'Y-m-j' , strtotime ( (1 * $signo) . \" day\" , strtotime ($fecha) )) . ' 23:59:59';\n if ( ($habil && esFechaHabil($fecha)) || !$habil )\n $contador ++;\n }\n }\n // echo $fecha . br(2);\n return $fecha;\n}", "title": "" }, { "docid": "229d0a35340dc36d5b8e05e0c190afbe", "score": "0.49596807", "text": "function convertLastVisitDate($date) {\n date_default_timezone_set('America/Lima');\n $today = time();\n $date = strtotime($date);\n $interval = floor(($today - $date) / 86400);\n if ($interval == 0) {\n if (date('d', $date) == date('d', $today)) $out = 'Hoy';\n else $out = 'Ayer';\n } elseif ($interval >= 1 && $interval < 7) {\n $str = '-' . $interval . 'days';\n $testTime = strtotime($str, $today);\n if (date('d', $date) == date('d', $testTime)) {\n if ($interval == 1) $out = 'Ayer';\n else $out = 'Hace ' . $interval . ' días';\n } else $out = 'Hace ' . ($interval+1) . ' días';\n } elseif ($interval >= 7 && $interval <= 14) {\n $var = ceil($interval / 7);\n $out = 'Hace ' . $var . ($var > 1 ? ' semanas' : ' semana');\n } else {\n $out = date('d-m-Y (h:i a)', $date);\n }\n return $out;\n}", "title": "" }, { "docid": "94f027e45c73f82ff3f755a4bc31ba04", "score": "0.49566445", "text": "public function get_day($journey_date){\n $date_parts = explode('/', $journey_date);\n return $day = date('l',mktime(0, 0, 0, $date_parts[1], $date_parts[0], $date_parts[2]));\n }", "title": "" }, { "docid": "08f5210f086db5241fb8ced4ef62c12f", "score": "0.49486", "text": "function SpanishDate($FechaStamp, $DayOfWeek=false)\n{\n $ano = date('Y',$FechaStamp);\n $mes = date('n',$FechaStamp);\n $dia = date('d',$FechaStamp);\n $diasemana = date('w',$FechaStamp);\n $meses=array(1=>\"Enero\",\"Febrero\",\"Marzo\",\"Abril\",\"Mayo\",\"Junio\",\"Julio\",\n \"Agosto\",\"Septiembre\",\"Octubre\",\"Noviembre\",\"Diciembre\");\n if($DayOfWeek)\n {\n // Long date with day of the week ... Lunes, Martes (Monday, Tuesday) ... etc.\n $diassemanaN= array(\"Domingo\",\"Lunes\",\"Martes\",\"Miércoles\",\"Jueves\",\"Viernes\",\"Sábado\");\n return $diassemanaN[$diasemana].\", $dia de \". $meses[$mes] .\" de $ano\";\n }\n else{\n return \"$dia de \". $meses[$mes] .\" de $ano\";\n }\n}", "title": "" }, { "docid": "436c7c7b0b0be1a8a7e2c32c9a60569d", "score": "0.49482822", "text": "static function gregorian_to_jalali($g_y, $g_m, $g_d) {\n $g_days_in_month = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);\n $j_days_in_month = array(31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29);\n\n $gy = $g_y - 1600;\n $gm = $g_m - 1;\n $gd = $g_d - 1;\n\n $g_day_no = 365 * $gy + self::div($gy + 3, 4) - self::div($gy + 99, 100) + self::div($gy + 399, 400);\n\n for ($i = 0; $i < $gm; ++$i)\n $g_day_no += $g_days_in_month[$i];\n if ($gm > 1 && (($gy % 4 == 0 && $gy % 100 != 0) || ($gy % 400 == 0)))\n /* leap and after Feb */\n $g_day_no++;\n $g_day_no += $gd;\n\n $j_day_no = $g_day_no - 79;\n\n $j_np = self::div($j_day_no, 12053); /* 12053 = 365*33 + 32/4 */\n $j_day_no = $j_day_no % 12053;\n\n $jy = 979 + 33 * $j_np + 4 * self::div($j_day_no, 1461); /* 1461 = 365*4 + 4/4 */\n\n $j_day_no %= 1461;\n\n if ($j_day_no >= 366) {\n $jy += self::div($j_day_no - 1, 365);\n $j_day_no = ($j_day_no - 1) % 365;\n }\n\n for ($i = 0; $i < 11 && $j_day_no >= $j_days_in_month[$i]; ++$i)\n $j_day_no -= $j_days_in_month[$i];\n $jm = $i + 1;\n $jd = $j_day_no + 1;\n\n return array($jy, $jm, $jd);\n }", "title": "" }, { "docid": "c79ce30350e961f71dcc80b549ffba42", "score": "0.49482378", "text": "function schaltjahrFeb($jahr){\n\tif(($jahr % 4 == 0 && $jahr % 100 != 0) || $jahr % 400 == 0){\n\t\t// Wenn Schaltjahr, dann Februar 29 Tage\n\t\treturn 29;\n\t}\n\telse{\n\t\t// Wenn kein Schaltjahr, dann Februar 28 Tage\n\t\treturn 28;\n\t}\n}", "title": "" }, { "docid": "bf8dfe621a1ccf7c0195c0c12ce94d1c", "score": "0.4944133", "text": "public function fPlanExpires($days){\n\t\tif ($days < 6 && $days > 1)\n\t\t\t$str = \"ir&aacute; expirar <strong>em \".$days.\" DIAS</strong>\";\n\t\telseif($days == 1)\n\t\t\t$str = \"ir&aacute; expirar <strong>AMANH&Atilde;</strong>\";\n\t\telseif($days == 0)\n\t\t\t$str = \"expira <strong>HOJE</strong>\";\n\t\telse \n\t\t\t$str = \"expirou\";\n\t\treturn $str;\n\t}", "title": "" }, { "docid": "5edceb32b23d4e55e8951e838e227962", "score": "0.49237317", "text": "public function toDayDateTimeString(): string\n {\n return $this->format('D, M j, Y g:i A');\n }", "title": "" }, { "docid": "e37b88f4fcc0246b38482740f9029cfe", "score": "0.49213728", "text": "function dmy($dateYmdHis, $timezone=null){\n $jour=substr($dateYmdHis,0,19);\n try {\n $jour=date_create_from_format(\"Y-m-d H:i:s\",$jour);\n if (!is_null($timezone)) {\n date_timezone_set($jour, new DateTimeZone($timezone));\n }\n $date=date_format($jour,\"d/m/Y\"); \n } catch (Exception $e) {\n $date=\"Inconnue\";\n }\n return $date; \n }", "title": "" }, { "docid": "e7c608dd9febdd838df2400f5c978e9e", "score": "0.49187428", "text": "function konversi5($in){\r\n $bulan=array(\r\n '','Januari','Februari','Maret','April','Mei','Juni','Juli','Agustus','September','Oktober','November','Desember'\r\n );\r\n $obj_date= date_create_from_format('Y-m-d', $in);\r\n return date_format($obj_date, 'j').' '.$bulan[date_format($obj_date, 'n')].' '.date_format($obj_date, 'Y');\r\n }", "title": "" }, { "docid": "22cd2a78326e89a4197b6ebe6b2e1e0d", "score": "0.49156845", "text": "function fecha_es()\r\n{\r\n \r\n $arrayMeses = array('Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio',\r\n 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre');\r\n \r\n $arrayDias = array( 'Domingo', 'Lunes', 'Martes',\r\n 'Miercoles', 'Jueves', 'Viernes', 'Sabado');\r\n \r\n $hora = date('H').':'.date('m').':'.date('s');\r\n return $arrayDias[date('w')].\", \".date('d').\" de \".$arrayMeses[date('m')-1].\" de \".date('Y').', a '.$hora;\r\n\r\n}", "title": "" }, { "docid": "eea59e93a2b27aabfee59fdce0d0b581", "score": "0.491202", "text": "public function day() {\r\n return $this->baseDT()->format('d');\r\n }", "title": "" }, { "docid": "e93ff962267798b6b067b7481255d6a3", "score": "0.49082085", "text": "function suma_minutos_a_fechas($fecha,$minutos)\r\n{\r\n\r\n\t$v_fechas=explode(\" \",$fecha);\r\n\tlist($anio,$mes,$dia)=explode(\"-\",$v_fechas[0]);\r\n\tlist($hora,$min,$seg)=explode(\":\",$v_fechas[1]);\r\n\t\r\n $nueva = mktime($hora,$min,$seg,$mes,$dia,$anio) + ($minutos * 60) ;\r\n $nuevafecha=date(\"Y-m-d H:i:s\",$nueva);\r\n\r\n\treturn ($nuevafecha); ; \r\n \r\n}", "title": "" }, { "docid": "e2a310839bf4557e9589957331dcba89", "score": "0.4907844", "text": "function indonesian_date($date) {\n\t$hari = array('Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis' , 'Jumat', 'Sabtu');\n\t$bulan = array(1=>'Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember');\n\t$waktu = getdate(strtotime($date));\n\t$thari = $hari[$waktu['wday']];\n\t$tbulan = $bulan[$waktu['mon']];\n\treturn $thari . ', ' . $waktu['mday'] . ' ' . $tbulan . ' ' . $waktu['year'] \n\t\t. ' | ' . $waktu['hours'] . ':' . $waktu['minutes'] . ' WIB';\n}", "title": "" }, { "docid": "2ae12551cdc881692068cf52c8a0a5f2", "score": "0.4907812", "text": "function dayName ($dia) {\n if ($dia == 1)\n {$Output = \"Mon\";} \n else if ($dia == 2) \n {$Output = \"Tue\";} \n else if ($dia == 3) \n {$Output = \"Wed\";} \n else if ($dia == 4) \n {$Output = \"Thu\";} \n else if ($dia == 5) \n {$Output = \"Fri\";} \n else if ($dia == 6) \n {$Output = \"Sat\";} \n else if ($dia == 7) \n {$Output = \"Sun\";}\n return $Output;\n }", "title": "" }, { "docid": "764c929727c861ddb62d7e2344cfefd1", "score": "0.4901345", "text": "public function getDayOfWeek()\n {\n // TODO make dayOfweek an attribute of the GameDate object in database.\n $dateTime = \\DateTime::createFromFormat('Y-m-d', $this->day);\n $year = $dateTime->format('Y');\n $month = $dateTime->format('m');\n $day = $dateTime->format('d');\n $gday = gregoriantojd($month, $day, $year);\n $jday = jddayofweek($gday);\n\n return $jday;\n }", "title": "" }, { "docid": "e0ba12ea605f93c2198bc6dddaacdc99", "score": "0.49013236", "text": "function date() {\n $date = date('Y-m-d H:i:s', strtotime(date('Y-m-d H:i:s') . ' - 8 days'));\n return $date;\n }", "title": "" }, { "docid": "d028e25df3524360ce4c03b51c3c3c25", "score": "0.48997277", "text": "function fecha_suma($fec,$anyos,$meses,$dias,$horas,$minutos,$segundos){\n\t$fecha = new DateTime($fec);\n\t$cambios = 'P';\n\tif($anyos != ''){\n\t\t$cambios .= $anyos.'Y';\n\t}\n\tif($meses != ''){\n\t\t$cambios .= $meses.'M';\n\t}\n\tif($dias != ''){\n\t\t$cambios .= $dias.'D';\n\t}\n\tif($horas != ''){\n\t\t$cambios .= $horas.'H';\n\t}\n\tif($minutos != ''){\n\t\t$cambios .= $minutos.'M';\n\t}\n\tif($segundos != ''){\n\t\t$cambios .= $segundos.'S';\n\t}\n\t$fecha->add(new DateInterval((string)$cambios));\n\treturn $fecha->format('Y-m-d H:i:s');\n}", "title": "" }, { "docid": "388c10b2c8c7f6c4a28fac475f1fe8df", "score": "0.48967165", "text": "function fnc_date_calc($this_date,$num_days){\r\n\t$my_time = strtotime ($this_date); //converts date string to UNIX timestamp\r\n\t$timestamp = $my_time + ($num_days * 86400); //calculates # of days passed ($num_days) * # seconds in a day (86400)\r\n\t$return_date = date(\"Y-m-d\",$timestamp); //puts the UNIX timestamp back into string format\r\n\r\n\treturn $return_date;\t//exit function and return string\r\n}", "title": "" }, { "docid": "17e460b69c9a175f5cffa4753f3e8b39", "score": "0.48924854", "text": "function format_date($date_in) {\n\t$num_days = floor((time()-$date_in)/(24*60*60));\n\t$oldLocale = setlocale(LC_TIME, elgg_echo('divelog:locale'));\n\t$date_long = strftime(elgg_echo('divelog:full:date_format'), $date_in);\n\t//if date more than 170 days, repeat date year in short form '14.\n\t$date_short = strftime(elgg_echo('divelog:short:date_format').(($num_days < 170) ? '' : \" '%g\"), $date_in);\n\t$date_time = strftime(elgg_echo('divelog:time_format'), $date_in);\n\tsetlocale(LC_TIME, $oldLocale); // useless?\n\tif(elgg_echo('divelog:date_lowercase') == 'yes') { // in French, dates are locawercase...\n\t\t$date_short = strtolower($date_short);\n\t\t$date_long = strtolower($date_long);\n\t}\n\treturn array($date_long, $date_short, $date_time);\n}", "title": "" }, { "docid": "da9fe7f9f03e54c99def25dd5983dd94", "score": "0.48903897", "text": "static function days ($date)\n {\n }", "title": "" }, { "docid": "55416adf13faceb5e2428d9a226ce96d", "score": "0.48866692", "text": "function convert_seconds($seconds)\n{\n $time = intval($seconds / 86400) .' jour(s), ';\n //On enlève l'équivalent du nombre de jours avec un modulo --> ce qui nous permet d'obtenir le nombre de secondes sans les jours. \n $seconds = $seconds % 86400;\n\n //Ce qui nous permet d'avoir le nombre d'heures\n $time = $time . intval($seconds / 3600) .' heure(s), ';\n $seconds = $seconds % 3600;\n\n //De même pour les minutes\n $time = $time . intval($seconds / 60) .' minute(s), ';\n $seconds = $seconds % 60;\n\n //Et enfin les secondes\n $time = $time . $seconds .' secondes.';\n\n //Et on retourne le tout\n return $time;\n}", "title": "" }, { "docid": "e9376c174ff689a73331d87bb577300d", "score": "0.48813355", "text": "function get_advent_sunday() {\n $dow = intval(gmstrftime(\"%w\", gmmktime(11,0,0,12,25,$this->year)));\n if ( $dow == 0 ) { $dow = 7; }\n $delta = -28 + ( 7 - $dow );\n return intval(gmmktime(11,0,0,12,25+$delta,$this->year));\n }", "title": "" }, { "docid": "5fa596ad67a1e23d92730beac72fd077", "score": "0.48768818", "text": "public static function toGregorian($j_y, $j_m, $j_d) {\n\n $g_days_in_month = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);\n $j_days_in_month = array(31, 31, 31, 31, 31, 31, 30, 30, 30, 30, 30, 29);\n\n $jy = $j_y - 979;\n $jm = $j_m - 1;\n $jd = $j_d - 1;\n\n $j_day_no = 365 * $jy + self::div($jy, 33) * 8 + self::div($jy % 33 + 3, 4);\n for ($i = 0; $i < $jm; ++$i)\n $j_day_no += $j_days_in_month[$i];\n\n $j_day_no += $jd;\n\n $g_day_no = $j_day_no + 79;\n\n $gy = 1600 + 400 * self::div($g_day_no, 146097);\n $g_day_no = $g_day_no % 146097;\n\n $leap = true;\n if ($g_day_no >= 36525) {\n $g_day_no--;\n $gy += 100 * self::div($g_day_no, 36524);\n $g_day_no = $g_day_no % 36524;\n\n if ($g_day_no >= 365)\n $g_day_no++;\n else\n $leap = false;\n }\n\n $gy += 4 * self::div($g_day_no, 1461);\n $g_day_no %= 1461;\n\n if ($g_day_no >= 366) {\n $leap = false;\n\n $g_day_no--;\n $gy += self::div($g_day_no, 365);\n $g_day_no = $g_day_no % 365;\n }\n\n for ($i = 0; $g_day_no >= $g_days_in_month[$i] + ($i == 1 && $leap); $i++)\n $g_day_no -= $g_days_in_month[$i] + ($i == 1 && $leap);\n $gm = $i + 1;\n $gd = $g_day_no + 1;\n\n return array($gy, $gm, $gd);\n }", "title": "" }, { "docid": "0357c51f7f10222f21a1294b34c896b4", "score": "0.48743245", "text": "function tharu_date_today()\n{\n $yy = date('Y');\n $mm = date('m');\n $dd = date('d');\n $tharu_date = get_tharu_date($yy, $mm, $dd);\n return $tharu_date['date'] . ' ' . $tharu_date['month_name'] . ' ' . $tharu_date['year'] . ', ' . $tharu_date['day'];\n}", "title": "" } ]
8e21c47442dfea42d932160ec679caab
Metodo para guardar un userLog
[ { "docid": "ebf67efef41cc2ac50467c02b572911c", "score": "0.62558573", "text": "public function save($userLog)\n {\n if(!($userLog instanceof UserLog))\n throw new UserLogException(\"passed parameter isn't a UserLog instance\");\n if(null != $userLog->getIdUserLog())\n $this->update($userLog);\n else\n $this->create($userLog);\n }", "title": "" } ]
[ { "docid": "13fa8e018e6cd1f80f87f512e278296c", "score": "0.69187087", "text": "function guardar()\n\t{\n\t\tif ($this->activo) {\n\t\t\t$this->guardar_en_archivo(\"sistema.log\");\n\t\t}\n\t}", "title": "" }, { "docid": "84325487827bd0be8e0d0301c151a94f", "score": "0.6877658", "text": "public function saveLog() {\n\t\tDB::table($this->table)->insert(array('target' => $this->target, 'project_id' => $this->project_id, 'type' => $this->type, 'user_id' => $this->user_id, 'created_at' => \\Carbon\\Carbon::now()));\n\t}", "title": "" }, { "docid": "3549dfda9069b8d28be41334111ff85a", "score": "0.65654564", "text": "function insertLogLogin(){\n\t\t\tmysql_query(\"insert into log_acessos (id_user, acao) VALUES (\" . $this->getid_user() . \",'MINHA CONTA: USUARIO \".$this->getstatus_login().\" LOGADO')\");\t\t\n\t\t}", "title": "" }, { "docid": "738f42072383d98a706beb014f4ad1ac", "score": "0.64848864", "text": "public function saveUserlog($data)\n {\n $ipaddress = $this->get_ip_address();\n $userrole = $this->session->userdata('role');\n $info = array(\n 'user_id' => $data['id'],\n 'username' => $data['username'],\n 'userrole' => $userrole,\n 'sid' => $data['my_session_id'],\n 'login_date' => date('Y-m-d'),\n 'time' => date('H:i:s'),\n 'ipaddress' => $ipaddress,\n 'action' => 'Logged In'\n );\n $this->db->insert('user_logtime', $info);\n }", "title": "" }, { "docid": "9a87f13e6d06c51e049339be141fcd77", "score": "0.63773686", "text": "private function logToDB()\n {\n RegistrationLogs::create([\n 'user_id' => $this->userID,\n 'registration_time' => $this->regTime,\n ]);\n }", "title": "" }, { "docid": "314bba67784ef8bbc83c5c542cfd7107", "score": "0.6364385", "text": "public function createLog(UserInterface $user, Logs $log): void;", "title": "" }, { "docid": "89d9fcdf8fdeee68477b64f2c5a2d24d", "score": "0.6323575", "text": "private function logLogout($user)\n {\n //Registra log\n $log = Log::make();\n $log->setTitle(\"Logout realizado\");\n $log->setDescription(\"O usuário #\" . $user->getID() . ' (' . $user->getLogin() . ') saiu do sistema');\n $log->setDatetime(date('Y-m-d H:i:s'));\n $log->setIdUser($user->getId());\n $log->save();\n }", "title": "" }, { "docid": "149c6b047b47f1e7a9c1d24491a9ff73", "score": "0.62561", "text": "function melodev_access_savelog($log) {\n $path = explode('/', $log->path);\n $wrote = false;\n // Fuck Access Denied's\n if($log->title == 'Access Denied') {\n $wrote = melodev_access_writelog($log->aid, null, $path[0]);\n }\n switch($path[0]) {\n \n // User view\n case 'user':\n if(is_numeric($path[1])) {\n $wrote = melodev_access_writelog($log->aid, $path[1], t('Visited your (public) folder.'));\n } else {\n switch($path[1]) {\n case 'me':\n case 'login':\n case 'register':\n case 'reset':\n case 'password':\n case null:\n $wrote = melodev_access_writelog($log->aid, 0, 'user');\n break;\n default:\n $wrote = melodev_access_writelog($log->aid, null, 'user');\n break;\n }\n }\n break;\n \n // Node view\n case 'node':\n if(is_numeric($path[1])) {\n switch($path[2]) {\n case 'edit':\n $wrote = melodev_access_writelog($log->aid, null, 'node edit'); \n break;\n case 'delete':\n $wrote = melodev_access_writelog($log->aid, null, 'node delete'); \n break;\n }\n if(!$wrote) {\n $obj = db_fetch_object(db_query('select uid, title, type from node where nid = %d', $path[1]));\n // Ignore some types\n switch($obj->type) {\n case 'tribune':\n $wrote = melodev_access_writelog($log->aid, 0, 'wall');\n break; \n case 'blog':\n $wrote = melodev_access_writelog($log->aid, $obj->uid, t('Visited your '.$obj->type.' (').l($obj->title, 'node/'.$path[1]).').');\n break;\n default:\n $wrote = melodev_access_writelog($log->aid, $obj->uid, t('Visited your '.$obj->type.' (').l($obj->title, 'node/'.$path[1]).').');\n break;\n }\n }\n } else {\n switch($path[1]) {\n case 'add':\n $wrote = melodev_access_writelog($log->aid, null, 'node add');\n break;\n case 'undefined':\n $wrote = melodev_access_writelog($log->aid, null, 'node undefined');\n break;\n default:\n $wrote = melodev_access_writelog($log->aid, null, 'node');\n break;\n }\n }\n break;\n \n // Touch\n case 'touch':\n if(is_numeric($path[1])) {\n $obj = db_fetch_object(db_query('select uid, title, type from node where nid = %d', $path[1]));\n $wrote = melodev_access_writelog($log->aid, $obj->uid, t('Touched your '.$obj->type.' (').l($obj->title, 'node/'.$path[1]).').');\n }\n break;\n \n // Bang\n case 'bang':\n if(is_numeric($path[1])) {\n $obj = db_fetch_object(db_query('select uid, title, type from node where nid = %d', $path[1]));\n $wrote = melodev_access_writelog($log->aid, $obj->uid, t('Banged your '.$obj->type.' (').l($obj->title, 'node/'.$path[1]).').');\n }\n break; \n \n // Groups\n case 'group':\n switch($path[1]) {\n case 'mytracker':\n case 'tracker':\n case null:\n $wrote = melodev_access_writelog($log->aid, 0, 'group-'.$path[0]);\n break;\n }\n break;\n \n // Enemies\n case 'enemy':\n if($account = user_load(array('name'=>$path[1]))) {\n $wrote = melodev_access_writelog($log->aid, $account->uid, t('Tried to visit your journal.'));\n } else {\n $wrote = melodev_access_writelog($log->aid, 0, $path[0]);\n }\n break;\n \n // Other Views\n case 'admin':\n case 'batch':\n case 'god':\n case 'home':\n case 'mymelo':\n case 'devel':\n case 'slot_machine':\n case 'vud':\n case 'userpoints':\n case 'blog':\n case 'myuserpoints':\n case 'users':\n case 'elite':\n case 'stats':\n case 'sites':\n case 'logout':\n case 'users.php':\n case 'post':\n case 'eliteness':\n case 'images':\n case 'userform':\n case 'userform.php':\n case 'og':\n case 'mycliques':\n case 'cliques':\n case 'images':\n case 'profile_pictures':\n case 'about':\n case 'store':\n case 'elite.php':\n case 'melodev':\n case 'api':\n case 'js':\n case 'favicon.gif':\n case 'webmail_plus':\n case 'comment': // Maybe we want comment, not sure yet\n case 'flag': // Maybe we want flag, not sure yet\n default:\n $wrote = melodev_access_writelog($log->aid, null, $path[0]);\n break; \n }\n // Check for titles we know\n if(!$wrote && isset($log->title)) {\n switch($log->title) {\n case 'Page not found':\n case 'User autocomplete':\n $wrote = melodev_access_writelog($log->aid, null, $log->title . ' ('.$log->path.')');\n break;\n }\n }\n return $wrote; \n}", "title": "" }, { "docid": "0c47c3f54a8599414090d8e0060683a5", "score": "0.6241622", "text": "static function add($log = null)\n {\n if ($log === null)\n {\n return false;\n }\n\n $sesion = \"NULL\";\n\n if (array_key_exists(\"sesion_usuarios_id\", $_SESSION))\n {\n $sesion = $_SESSION[\"sesion_usuarios_id\"];\n }\n \n $opciones = array(\n 'tsesiones_usuarios_id' => $sesion,\n 'tipo' => $log->getTipo(),\n 'consulta' => $log->getQuery(),\n 'activo' => 'S'\n );\n \n $singleLog = self::getSingle($opciones);\n \n if ($singleLog == null || $singleLog->disimilitud($log) == 1)\n {\n $uid = WatashiEncrypt::uniqueKey();\n $sesiones_usuarios_id = $sesion;\n $tipo = $log->getTipo();\n $query = $log->getQuery();\n \n $tableLog = DatabaseManager::getNameTable('TABLE_LOG');\n \n $query = \"INSERT INTO $tableLog \n (uid, tsesiones_usuarios_id, tipo, \n consulta)\n VALUES\n ('$uid', $sesiones_usuarios_id, '$tipo', \n '$query')\";\n \n if (DatabaseManager::singleAffectedRow($query) === true)\n {\n return $uid;\n }\n else\n {\n return false;\n }\n }\n else\n {\n return false;\n }\n }", "title": "" }, { "docid": "c100fe89e5a92af767b1704b2cef60c4", "score": "0.6179396", "text": "function insert_log()\r\n {\r\n $query = \"INSERT INTO tb_log (NM_USER) VALUES ('\".$this->author.\"')\";\r\n\t\tmysql_query($query, $this->con) or die(mysql_error());\r\n return false;\r\n }", "title": "" }, { "docid": "4343e082d8147f5e0b7800dc77234b80", "score": "0.6170406", "text": "function logUser($user) {\n\t\t$user->lastlogon = $user->get('loggedin');\n\t\t$user->set('loggedin',date('Y-m-d H:i:s'));\n\t\t$user->save();\n\t\tzp_setCookie(\"zenphoto_auth\", $user->getPass(), NULL, NULL, secureServer());\n\t}", "title": "" }, { "docid": "0add890f27a61a18f427f5822edb5245", "score": "0.61523384", "text": "public static function saveLog($log)\r\n \t{\r\n \t \t$filename = __FILE__;\r\n \t \t$time = time();\r\n \t \t$query = mysql_query(\"INSERT INTO `log`(`data`, `filename`, `time`) \r\n \t \tVALUES ('$log','$filename','$time')\");\r\n \t \tif(!$query)\r\n \t \t{\r\n \t \t\tthrow new dbError(mysql_error());\r\n \t \t\treturn false;\r\n \t \t}\r\n \t \treturn true;\r\n \t}", "title": "" }, { "docid": "7179a114bd4fd40ab1a958a50b6bd297", "score": "0.6145245", "text": "private function saveLogging()\n {\n $instance = $this->getLogInstance();\n $instance->property($this->property);\n $instance->primaryId($this->getKeyForSaveQuery());\n $instance->create();\n }", "title": "" }, { "docid": "262c19c1217d0b3d784a777441f83da6", "score": "0.6143164", "text": "public function saveLog(Log $l){\n try{\n \n //imposto il timezone\n date_default_timezone_set('Europe/Rome');\n $timestamp = date('Y-m-d H:i:s', strtotime(\"now\")); \n \n $this->wpdb->insert(\n $this->table,\n array(\n 'mittente' => $l->getMittente(),\n 'destinatario' => $l->getDestinatario(),\n 'tipo' => $l->getTipo(),\n 'data_log' => $timestamp\n ),\n array('%s', '%s', '%s', '%s') \n );\n return $this->wpdb->insert_id;\n } catch (Exception $ex) {\n _e($ex);\n return -1;\n }\n }", "title": "" }, { "docid": "c5b1b051569072fd6d31baa4c527ffd3", "score": "0.6070026", "text": "public function guardarAction(){\n\t\t$userModel = new UserModel();\n\t\t// 2. Definir un objeto a guardar\n\t\t$user = array(\n\t\t\t'username' => 'hugo', \n\t\t\t'password'=> MD5('123456'), \n\t\t\t'email' => 'hugo@gmail.com',\n\t\t);\n\t\t// 3. Guardar el registro\n\t\t$userModel->insert($user);\n\t\t// 4. Mostrar un mensaje\n\t\techo 'El usuario '.$user['username'].' fue adicionado exitosamente';\n\t}", "title": "" }, { "docid": "2c7aa506d97d66b74cce478e332a1de9", "score": "0.6043432", "text": "public function store($userId,$request){\n $data = new UserLog();\n $data->userId = $userId;\n $data->ip = $request->ip();\n $data->country = $this->getLocation($request->ip());\n $data->login = Carbon::now(); \n $data->save();\n }", "title": "" }, { "docid": "556a26a4796f27af4667be933762baa6", "score": "0.60165715", "text": "public static function saveAccess()\n {\n LogAcceso::newRecord([\n 'login' => SessionController::getLogin(),\n 'iplocal' => UtilitiesController::getRealIP(),\n 'ipremota' => UtilitiesController::remoteServer(),\n 'exito' => 1,\n 'fecha' => date('Y-m-d H:i:s'),\n 'funcionario_idfuncionario' => SessionController::getValue('idfuncionario'),\n 'idsesion_php' => SessionController::getId(),\n 'token' => SessionController::getValue('token')\n ]);\n }", "title": "" }, { "docid": "ffb2dee336b080e0d940337aa7718072", "score": "0.59972745", "text": "public static function saveLogout()\n {\n $LogAcceso = LogAcceso::findByAttributes([\n 'exito' => 1,\n 'login' => SessionController::getLogin(),\n 'iplocal' => UtilitiesController::getRealIP(),\n 'idsesion_php' => SessionController::getId(),\n 'funcionario_idfuncionario' => SessionController::getValue('idfuncionario')\n ]);\n\n if ($LogAcceso) {\n $LogAcceso->fecha_cierre = date('Y-m-d H:i:s');\n $LogAcceso->save();\n } else {\n throw new Exception(\"Invalid logout\", 1);\n }\n }", "title": "" }, { "docid": "cdd744daaaea38679dbda6615e34b9de", "score": "0.59673107", "text": "private static function storeLog($logItem)\n {\n $db = new Database();\n $insert_log_stmt = $db->prepare('INSERT INTO Logs (user_id, type, line, file, message) VALUES (?, ?, ?, ?, ?)');\n $user_id = (is_null(User::getLoggedUser())) ? 0 : User::getLoggedUser()->getId();\n $insert_log_stmt->bind_param('issss', $user_id, $logItem['type'], $logItem['line'], $logItem['file'], $logItem['message']);\n if ($insert_log_stmt->execute()) {\n return $db->insert_id;\n }\n return 0;\n }", "title": "" }, { "docid": "2f3c040b4c672a97c791e27a8a4498ac", "score": "0.5960161", "text": "public function onAuthLogout($user)\n {\n // record this action to our user logs\n $user->logs()->create(array(\n 'user_id' => $user->id,\n 'entry' => trans('honcho::auth.logout.event_entry'),\n 'modified_by' => $user->id\n ));\n }", "title": "" }, { "docid": "30ad783fd0bd970a3ea7f4d7c5cf6920", "score": "0.59428924", "text": "private function userLoginTrue(pEngine_Log_Log $obj)\n {\n //delete the entry in the obj\n $obj->delete();\n //write successful authorization\n $obj->setCode(2); //successful authorization code\n $obj->setUserId(Zend_Auth::getInstance()->getIdentity()->id);\n $obj->save();\n }", "title": "" }, { "docid": "968498d481901242762e9e277911125a", "score": "0.59391683", "text": "function log_user_deletion ($why)\n {\n write_log ($why);\n }", "title": "" }, { "docid": "8b4101794d46665dbd47c58586828a93", "score": "0.5909362", "text": "public function logLogin($user)\n\t\t{\n\t\t$user = $user->id_str;\n\t\t$date = date('Y-m-d H:i:s');\n $sql=\"INSERT INTO login(date, oauth_uid) VALUES ('$date',$user)\";\n\t Database::performQuery($sql);\n\t}", "title": "" }, { "docid": "1bef9403b534f809de3cb22ee415ee70", "score": "0.5901842", "text": "public function save() {\n\n $nombre = trim($_POST['nombre']) ?? false;\n $pass = trim($_POST['pass']) ?? false;\n $rol = trim($_POST['rol']) ?? false;\n\n if(!preg_match('/^\\w{6,24}$/', $nombre)) {\n\n $_SESSION['error-message'] = 'Solo letras, números y guiones bajos. De 6 a 24 caracteres';\n header('Location: '.BASE_URL.'register');\n exit;\n\n } elseif(!preg_match('/^[a-zA-Z0-9]{8,12}$/', $pass)) {\n\n $_SESSION['error-message'] = 'Solo letras y/o números. De 8 a 12 caracteres';\n header('Location: '.BASE_URL.'register');\n exit;\n\n } else {\n\n $user = new Usuario();\n\n $user -> setNombre($nombre);\n $user -> setPass($pass);\n $user -> setRole($rol);\n\n $result = $user -> flush();\n\n if(!$result) {\n\n $error = $user -> db -> error;\n\n $_SESSION['error-message'] = $error;\n header('Location: '.BASE_URL.'register');\n exit;\n\n } else {\n\n $current_user = $user -> getLast('usuarios');\n\n $_SESSION['user'] = $current_user;\n $_SESSION['message'] = 'Se ha guardado el usuario exitosamente';\n header('Location: '.BASE_URL);\n\n }\n\n }\n\n }", "title": "" }, { "docid": "98372ac2b8855ce29b4f605f6179cc0d", "score": "0.5892182", "text": "function add_user_log($user, $source = '') {\n global $wpdb;\n\n $lists = $this->get_lists_public();\n foreach ($lists as $list) {\n $field_name = 'list_' . $list->id;\n $data[$field_name] = $user->$field_name;\n }\n $data['status'] = $user->status;\n $ip = $this->get_remote_ip();\n $ip = $this->process_ip($ip);\n $this->store->save($wpdb->prefix . 'newsletter_user_logs', array('ip' => $ip, 'user_id' => $user->id, 'source' => $source, 'created' => time(), 'data' => json_encode($data)));\n }", "title": "" }, { "docid": "e836e8c2cda16df8743dda9b940d2347", "score": "0.587545", "text": "public function onAuthLogin($user)\n {\n // record this action to our user logs\n $user->logs()->create(array(\n 'user_id' => $user->id,\n 'entry' => trans('honcho::auth.login.event_entry'),\n 'modified_by' => $user->id\n ));\n\n $user->last_login = new DateTime;\n $user->save();\n }", "title": "" }, { "docid": "6a728a7ae03cc294c8e20cef463bd71f", "score": "0.58744586", "text": "function userlog2($userId, $savestr)\n{\n userlog(\"comlog\", \"$userId => \" . $savestr);\n userlog($userId, $savestr);\n}", "title": "" }, { "docid": "0f86a628b707bdd941c95594d8f1d662", "score": "0.5860746", "text": "function deal_log($log)\n {\n $this->db->insert('login',$log);\n $insert_id=$this->db->insert_id();\n return $insert_id;\n \n }", "title": "" }, { "docid": "a7f792461c029cc11f5c4872a5e577e7", "score": "0.58560693", "text": "function maintainUsersLogs()\n {\n $data['user_list']=$this->_user_list(); \n $data['userRecords'] = '';\n $this->global['pageTitle'] = 'DAS : User Login History'; \n $this->loadViews(\"admin/maintainUsersLogs\", $this->global, $data, NULL);\n }", "title": "" }, { "docid": "a5e23b0876e107e98c06583d852c9f4f", "score": "0.5810481", "text": "private function _create_access_log()\n\t{\n\t\t$user=$this->session->userdata('system.user');\n\t\t$this->User_access_log->add($user['id'],$this->input->ip_address(),$user['branch_id'],$this->get_current_date(),$this->uri->ruri_string(),!empty($_POST));\n\t}", "title": "" }, { "docid": "68dd2e35af645df778e8cea2cd1fadf6", "score": "0.57874185", "text": "public function save_session_log($session_log)\n\t{\n\t\t$arr_insert = array();\n\n $CI = &get_instance();\n\t\t$user_data = array(\n\t\t\t'session_id' => $session_log[\"session_id\"],\n\t\t\t'user_id' => isset($session_log[\"user_id\"]) ? $session_log[\"user_id\"] : '',\n\t\t\t'nickname' => isset($session_log[\"nickname\"]) ? $session_log[\"nickname\"] : '',\n\t\t\t'ip' => ip2long($CI->input->ip_address()),\n\t\t\t'generate_time' => time(),\n\t\t\t'expire_time' => time() + config_item('sess_expiration'),\n\t\t\t'user_type' => isset($session_log[\"user_type\"]) ? $session_log[\"user_type\"] : 0,\n\t\t\t'exit_time' => '',\n\t\t\t);\n\n /*echo '<pre>';\n print_r($user_data);\n echo '</pre>';*/\n //log_message('debug_nahao', 'model_session_log/user_data, '.print_r($user_data,1));\n\n\t\t$this->db->insert(TABLE_SESSION_LOG, $user_data);\n\n\t\t$bool_ret = false;\n\t\tif($this->db->affected_rows()) $bool_ret=true;\n\t\treturn $bool_ret;\n\t}", "title": "" }, { "docid": "abfd30527ef335686da9d8cbf8b35814", "score": "0.57817036", "text": "public function setLogusu($logusu)\n {\n $this->_logusu = $logusu;\n }", "title": "" }, { "docid": "56bc5971426322a9552f6952392b2efd", "score": "0.5779568", "text": "function insert_log($id_user){\n\n global $pdo;\n\n //Se inserta un 0 debido a que el id es autoincrementable y mysql lo editara antes de insertarlo en la tabla\n $sql = \"INSERT INTO user_log(id, date_logged_in, user_id) VALUES\n (0, CURDATE(), $id_user)\";\n\n $query = $pdo->prepare($sql);\n $query->execute();\n \n\n}", "title": "" }, { "docid": "2aad38294b757f23b829dd6352efb166", "score": "0.5777848", "text": "public function store(){\n $u = new Usuario(); // crear el nuevo usuario con datos POST\n $u->user = $_POST['user'];\n $u->password = md5($_POST['password']); // se encripta\n $u->nombre = $_POST['nombre'];\n $u->apellido1 = $_POST['apellido1'];\n $u->apellido2 = $_POST['apellido2'];\n $u->privilegio = intval($_POST['privilegio']);\n $u->admin = empty($_POST['admin'])? 0 : 1;\n $u->email = $_POST['email'];\n \n if(!$u->guardar()) // guardar en la BDD\n throw new Exception(\"No se pudo guardar $u->user\");\n \n $mensaje=\"Guardado del usuario $u->user correcto.\";\n \n // recupera el usuario para pasárselo a la vista\n $usuario=Login::getUsuario();\n \n include 'views/exito.php'; // mostrar éxito\n }", "title": "" }, { "docid": "49aba32ae80c000311673429b0468f70", "score": "0.5770778", "text": "public function saved(User $user)\n {\n \\Log::info('User saved: ' . $user);\n }", "title": "" }, { "docid": "4068a7f06e404d4adfb65a760d80ede0", "score": "0.5765506", "text": "function save()\n {\n /* Save data */ \n $this->handle = new ogw($this->serverCon['LOGIN'],$this->serverCon['PASSWORD'],$this->serverCon['SERVER'],$this->serverCon['DB']);\n $this->handle->SetInfos($this->info);\n $this->handle->checkInfos();\n if($this->initialy_was_account){\n $this->handle->Perform(\"EDIT\");\n new log(\"modify\",\"users/\".get_class($this),$this->dn);\n }else{\n $this->handle->Perform(\"ADD\");\n new log(\"create\",\"users/\".get_class($this),$this->dn);\n }\n }", "title": "" }, { "docid": "daf7f51451b2e56bddb23b45659c92dc", "score": "0.5759651", "text": "private function _saveLastVisit()\n {\n\t$user = User::model()->notsafe()->findByPk(Yii::app()->user->id);\n\t$user->lastvisit_at = time();\n\t$user->save();\n }", "title": "" }, { "docid": "beb7a30106f9d70117707b6933fcdc3e", "score": "0.57460886", "text": "public function toLogging($id_user = null, $nama_user = null, $role = null, $metode = null, $fitur = null, $keterangan = null, $no_cm = null, $KdRuangan = null)\n {\n // store log \n if ($id_user != null && $metode != null) {\n\n $log = new Logging();\n $log->collection = \"loggings_\" . date(\"Y-m-d\");\n $log->id_user = $id_user;\n $log->nama_user = $nama_user;\n $log->role = $role;\n $log->metode = $metode;\n $log->fitur = $fitur;\n $log->keterangan = $keterangan;\n $log->NoCM = $no_cm;\n $log->KdRuangan = $KdRuangan;\n $log->save();\n\n // $log = Logging::create([\n // 'id_user' => $id_user,\n // 'nama_user' => $nama_user,\n // 'role' => $role,\n // 'metode' => $metode,\n // 'fitur' => $fitur,\n // 'keterangan' => $keterangan,\n // 'NoCM' => $no_cm,\n // 'KdRuangan' => $KdRuangan,\n // ]);\n\n return $log;\n } else {\n return 'Gagal simpan log';\n }\n }", "title": "" }, { "docid": "678214049b62df9fa7da65543d0faf99", "score": "0.5744536", "text": "public function saveAttemptUser($data)\n {\n date_default_timezone_set('Asia/Dhaka');\n $ip = $_SERVER['REMOTE_ADDR'];\n $username = $this->helpObj->validAndEscape($data['username']);\n $password = $this->helpObj->validAndEscape($data['password']);\n $date = date('Y-m-d h:i:s');\n $query = \"insert into tbl_accesslog(ip,user,pass,date) values('$ip','$username','$password','$date')\";\n $status = $this->dbObj->link->query($query);\n $delq = \"DELETE FROM tbl_accesslog WHERE date < NOW() - INTERVAL 10 DAY\";\n $status = $this->dbObj->link->query($delq);\n if ($status) {\n return true;\n }\n }", "title": "" }, { "docid": "1459ca8a83a5d15e793f4ed337683285", "score": "0.574241", "text": "private function insert_report_log()\n\t{\n\t\t//http://www.hawkee.com/snippet/1358/\n\t\t$ip = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];\n\n\t\t$input = array(\n\t\t\t'table' =>\"login_report\",\n\t\t\t'data' => array(\n\t\t\t\t\t'user_id' => mysql_real_escape_string($_SESSION['id_user']),\n\t\t\t\t\t'time' => mysql_real_escape_string(time()),\n\t\t\t\t\t'ip' => mysql_real_escape_string($ip),\t\n\t\t\t),\n\t\t);\n\t\t$this->db->add_item($input);\n\t\t/*\n\t\t $query = sprintf(\"INSERT INTO login_report(user_id, time, ip) VALUES(%s, '%s', '%s')\",\n\t\t mysql_real_escape_string($_SESSION['id_user']),\n\t\t mysql_real_escape_string(time()),\n\t\t mysql_real_escape_string($ip)\n\t\t );\n\t\t $this->db->insert_item($query);*/\n\t}", "title": "" }, { "docid": "f91d0259968f023130aca6effd912a59", "score": "0.5727439", "text": "function hook_user_logout($account) {\n db_insert('logouts')\n ->fields(array(\n 'uid' => $account->uid,\n 'time' => time(),\n ))\n ->execute();\n}", "title": "" }, { "docid": "c4cd9cccc5bdfdfb3e4a6e656b59ceb4", "score": "0.57241666", "text": "private function userLog($username, $flag){\r\n $agent = $_SERVER ['HTTP_USER_AGENT'];\r\n $ip = $_SERVER ['REMOTE_ADDR'];\r\n if (getenv ( 'HTTP_X_FORWARDED_FOR' ))\r\n $ip2 = getenv ( 'HTTP_X_FORWARDED_FOR' );\r\n else\r\n $ip2 = getenv ( 'REMOTE_ADDR' );\r\n\r\n $query = \" INSERT INTO user_log (username, local_ip, global_ip, date, success, browser) values ( \\\"$username\\\" , \\\"$ip2\\\" ,\\\"$ip\\\", \\\"\".$this->todayDateTime().\"\\\" , \\\"$flag\\\", \\\"$agent\\\") \" ;\r\n $this->process_query($query);\r\n }", "title": "" }, { "docid": "3bade0861acf9e1fae188ddc1aa44b5e", "score": "0.571795", "text": "public function save()\n\t{\n\t\tif (array_key_exists('logins', $this->changed))\n\t\t\t$this->auth_key = self::generate_key($this->username, $this->logins, $this->name);\n\n\t\tif ( ! isset($this->date_created))\n\t\t\t$this->date_created = time();\n\n\t\treturn parent::save();\n\t}", "title": "" }, { "docid": "7cacc530314c2e9528e2e05c1f196e41", "score": "0.5713462", "text": "public function add($log){\n\t\t$this->db->insert('activity_log', $log); \n\t}", "title": "" }, { "docid": "bf837175b5c9263e8e028cf48af40692", "score": "0.5707432", "text": "public function salir() {\n if($this->Session->get('user_id')!='admin') {\n $this->Session->del('admin'.$this->Config->get('app'));\n $this->Session->del('user_id');\n $this->Session->del('nivel');\n $this->Session->del('superadmin');\n $this->Session->del('phpcaptcha_codigo');\n $this->Session->del('captcha');\n $this->Session->del('mensaje');\n $this->Session->del('tipo');\n }\n $this->Utilidades->redirect('index.php');\n }", "title": "" }, { "docid": "51adcd8e0721480e4d3c447cd4e6cee3", "score": "0.5705477", "text": "public function updateUserlog($data)\n {\n $ipaddress = $this->get_ip_address();\n $userrole = $this->session->userdata('role');\n $info = array(\n 'user_id' => $data['id'],\n 'username' => $data['username'],\n 'userrole' => $userrole,\n 'sid' => $data['my_session_id'],\n 'login_date' => date('Y-m-d'),\n 'time' => date('H:i:s'),\n 'ipaddress' => $ipaddress,\n 'action' => 'Logged Out'\n );\n $this->db->insert('user_logtime', $info);\n }", "title": "" }, { "docid": "b30c7b251194446e97ee291c2f107d2b", "score": "0.57036984", "text": "function recordLogon()\r\n\t{\r\n\t\tglobal $debug;\r\n\t\t$dbh = getOpenedConnection();\r\n\r\n\t\t// Delete current item\r\n\t\t$sql = \"\r\n\t\t\tinsert into tbl_Pistol_Logons (\r\n\t\t\t\tShotId\r\n\t\t\t)\r\n\t\t\tvalues (\r\n\t\t\t\t$this->id\r\n\t\t\t)\r\n\t\t\t\";\r\n\t\t\r\n\t\tif ($debug)\r\n\t\t\tprint_r(\"SQL: \" . $sql);\r\n\t\t\t\r\n\t\tmysqli_query($dbh,$sql);\r\n\t\tif (mysqli_errno($dbh)!=0) {\r\n\t\t\tprint_r(mysqli_error($dbh));\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1aab5f8bb6d91ca4389e08840f439265", "score": "0.56949735", "text": "static function update($log = null)\n {\n if ($log === null)\n {\n return false;\n }\n \n $opciones = array('id' => $log->getId());\n \n $singleLog = self::getSingle($opciones);\n \n if ($singleLog->disimilitud($log) > 0)\n {\n $id = $log->getId();\n $uid = $log->getUid();\n $sesiones_usuarios_id = $log->getSesionesUsuariosId();\n $tipo = $log->getTipo();\n $query = $log->getQuery();\n \n $tableLog = DatabaseManager::getNameTable('TABLE_LOG');\n \n $opciones = array(\n 'tsesiones_usuarios_id' => $log->getSesionesUsuariosId(),\n 'tipo' => $log->getTipo(),\n 'consulta' => $log->getQuery(),\n 'activo' => 'S'\n );\n \n $singleLog = self::getSingle($opciones);\n \n if ($singleLog == null || $singleLog->disimilitud($log) == 1)\n {\n $tableLog = DatabaseManager::getNameTable('TABLE_LOG');\n \n $query = \"UPDATE $tableLog\n SET uid = '$uid',\n tsesiones_usuarios_id = '$sesiones_usuarios_id',\n tipo = '$tipo',\n consulta = '$query',\n activo = 'S'\n WHERE $tableLog.id = '$id'\";\n \n if (DatabaseManager::singleAffectedRow($query) === true)\n {\n return true;\n }\n else\n {\n return false;\n }\n }\n else\n {\n return false;\n }\n }\n else\n {\n return false;\n }\n }", "title": "" }, { "docid": "93e41aeceda942f5ca3f485380996bb1", "score": "0.56910914", "text": "public function adminLog($uid,$logSms='')\n {\n $ipaddress = $_SERVER['REMOTE_ADDR'];\n if($ipaddress=='::1'){\n $ipadd = '127.0.0.1';\n } else {\n $ipadd = $ipaddress;\n }\n $ipaddress = $_SERVER['REMOTE_ADDR'];\n $date_today = date('Y-m-d H:i:s');\n $logtime = Time::createFromFormat('Y-m-d H:i:s', $date_today);\n $adminLogTable = TableRegistry::get('admin_logs');\n $adminLog = $adminLogTable->newEntity();\n $adminLog->uid = $uid;\n $adminLog->logsms = $logSms;\n $adminLog->logtime = $logtime;\n $adminLog->ipaddress = inet_pton($ipadd);//string inet_ntop ( string $in_addr )\n $adminLogTable->save($adminLog);\n /* admin log code ends */\n }", "title": "" }, { "docid": "16687f135ac592b7e776f0506295441f", "score": "0.568092", "text": "function guardarCuenca()\n\t{\n\t\t$this->objFunHidro=new FuncionesHidrologia();\t\n\t\tif($this->objParam->insertar('id_cuenca'))\n\t\t{\n\t\t\t$this->res=$this->objFunHidro->insertarCuenca($this->objParam);\t\t\t\n\t\t} \n\t\telse\n\t\t{\t\t\t\n\t\t\t$this->res=$this->objFunHidro->modificarCuenca($this->objParam);\n\t\t}\n\t\t$this->res->imprimirRespuesta($this->res->generarJson());\n\t}", "title": "" }, { "docid": "eb0bf2f29592fcca0bd97fa914438adc", "score": "0.56804955", "text": "function guardar_user($user){\n if(existe_user($user,false)==null){\n return insertar_user($user);\n }\n return false; \n }", "title": "" }, { "docid": "98b7fa279bea8c3631569c2d8d34e799", "score": "0.5674134", "text": "function addUserLog()\n {\n $data['users'] = $this->_user_list();\n if($this->input->post()){ \n $this->load->library('form_validation');\n $this->form_validation->set_rules('user_id', 'user name', 'required');\n $this->form_validation->set_rules('createdDtm', 'date is required', 'required'); \n \n if($this->form_validation->run() == FALSE)\n {\n redirect('addUserLog');\n }\n else\n {\n $user_id = $this->input->post('user_id');\n $createdDtm = $this->input->post('createdDtm');\n $process = $this->input->post('process'); \n $logInfo = array('userId'=>$user_id,'userName'=>$data['users'][$user_id],\n 'process'=>$process,'createdDtm'=>$createdDtm);\n \n $this->load->model('login_model');\n $result = $this->login_model->loginsert($logInfo);\n \n\n if($result > 0)\n { \n $this->session->set_flashdata('success', 'log successfully added');\n }\n else\n {\n $this->session->set_flashdata('error', 'log creation failed');\n }\n \n redirect('addUserLog');\n }\n }\n \n $this->global['pageTitle'] = 'DAS : Add User';\n $this->loadViews(\"admin/addUserLog\", $this->global, $data, NULL);\n }", "title": "" }, { "docid": "1c7ecff850d05ca41e3db15f471a07ce", "score": "0.5673553", "text": "public function AddUserLog($message) {\n // check if the user logged in to the system, log home page visit\n if ($this->session->has(\"userid\")) {\n BaseUserLog::byUserID($this->session->get(\"userid\"))->setAction($message)->create();\n }\n }", "title": "" }, { "docid": "ba51fc78a8b0e0e397891e72b8502ed9", "score": "0.56733364", "text": "public function save(DUser $user);", "title": "" }, { "docid": "98dddf9b98aa6abed554995986109e32", "score": "0.5658503", "text": "private function storeInLog(): void\n {\n $cleanStr = preg_replace('#\\\\x1b[[][^A-Za-z]*[A-Za-z]#', '', $this->output);\n $path = join(DIRECTORY_SEPARATOR, [__DIR__, \"..\", \"..\", \"..\", \"..\", \"logs\", getenv(\"LOG_FILE_PATH\")]);\n if (!is_file($path)) {\n fwrite($a = fopen($path, \"w+\"), \"\");\n fclose($a);\n }\n file_put_contents($path, $cleanStr, FILE_APPEND | LOCK_EX);\n return;\n }", "title": "" }, { "docid": "0fe5c7c8b3743b359a84d3080ef0ecab", "score": "0.5657714", "text": "public function saveAppLog($params);", "title": "" }, { "docid": "2ac8394431784677ce3546c16cc82e2a", "score": "0.5640743", "text": "public function Salir() {\n\t\tif ($this->session->userdata() && $this->session->userdata('logueado') == true) {\n\t\t\t$sesion = array('logueado' => false);\n\t\t\t$this->session->set_userdata($sesion);\n\t\t\tredirect(base_url());\n\t\t} else {\n\t\t\tredirect(base_url());\n\t\t}\n\t}", "title": "" }, { "docid": "873b90c9a69c3dd187d9be2e3d0509d6", "score": "0.5640519", "text": "public function save_log()\n {\n $path = P_PATH . 'logs/';\n\n $log_file = fopen( $path . 'tempo_' . $this->get_log_name() . '.log', 'a' );\n\n if( ! empty( $this->logging ) ){\n foreach ( $this->logging as $log ) {\n fwrite( $log_file, json_encode( $log ) . \"\\n\" );\n }\n }\n\n fclose( $log_file );\n\n $this->logging = [];\n\n }", "title": "" }, { "docid": "df41786dc5131f3b4751d85242487940", "score": "0.5626494", "text": "function write_log($event_type_id, $user_id = NULL, $task_id = NULL, $field = NULL, $new_value = NULL, $old_value = NULL)\n{\n\t$data['task_id'] = $task_id;\n\t$data['user_id'] = $user_id;\n\t$data['event_type_id'] = $event_type_id;\n\t$data['new_value'] = $new_value;\n\t$data['old_value'] = $old_value;\n\t$data['field'] = $field;\n\tinsert('log', $data);\n}", "title": "" }, { "docid": "3c02940855cbdfaf42524efe9318a599", "score": "0.56132895", "text": "public function save()\r\n {\r\n if($this->user_id < 1)\r\n {\r\n $this->insert();\r\n } else {\r\n $this->update();\r\n $this->save_extended();\r\n } \r\n }", "title": "" }, { "docid": "f764b0d939c737481b8e5cd836a53b5a", "score": "0.5607726", "text": "function log(){\n $email = filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL);\n $passwd = filter_input(INPUT_POST, 'passwd', FILTER_SANITIZE_STRING);\n \n $res = $this->model->login($email, $passwd); //Cridem al métode login del model per fer el login a la nostra pagina web.\n \n if($res!=-1){\n $this->ajax(array('msg'=>'Correcto'));\n \n session_start(); //Iniciem sessió\n Session::set('users', $res); //Gaurdem les dades de l'usuari per poder utilitzarla més tard\n \n \n if(Session::get('users')['roles']==1) //Si el rol de el usuario es de administrador accedemos a la dashboard, si no a la de usuario\n header('Location:../dashboard');\n else\n header('Location:../dashboarduser');\n }\n else{\n $this->ajax(array('msg'=>'NO es correcto'));\n header('Location:../login');\n }\n }", "title": "" }, { "docid": "c81a669521420210b2ee0cf2a7de30b3", "score": "0.55959356", "text": "public function store(Request $request)\n { \n try {\n $data = new User;\n $data->name = $request->name;\n $data->email = $request->email;\n $data->no_telepon = $request->no_telepon;\n $data->role = $request->role;\n $data->password = password_hash($request->password,PASSWORD_DEFAULT);\n $data->api_token = str_random(100);\n $data->save();\n $msg = 'Berhasil menambah data user '.$data->name;\n UserLog::create(['user_id'=>Auth::user()->id,'keterangan'=>$msg]);\n return redirect('user')->with('success_message', $msg);\n } catch (Exception $e) {\n return redirect('user')->with('error_message', 'Gagal Menghapus Data. <br> Error : '.$e->errorInfo[2]);\n }\n }", "title": "" }, { "docid": "b780d8513cfbbd1fe09e2fe690d793fe", "score": "0.55945885", "text": "public function logout ($address, $username) {\n $db = db_connect();\n $statement = $db->prepare(\"INSERT INTO logsActivity (username, is_login, address, success) VALUES (:username, false, :address, true);\");\n $statement->bindValue(':username', $username);\n $statement->bindValue(':address', $add);\n $statement->execute();\n }", "title": "" }, { "docid": "e7762068c20947af4f8416d1a8c1b060", "score": "0.5591451", "text": "public function store(Request $request)\n {\n $request->validate([\n 'id_usuario' => 'required',\n 'accion' => 'required',\n ],[\n 'id_usuario.required'=>'Es obligatorio el id usuario',\n 'accion.required'=>'Es obligatorio la accion'\n ]);\n\n try{\n $log = new Log();\n $log->id_usuario = $request->id_usuario;\n $log->accion = $request->accion;\n $log->fecha_creacion = now()->getTimestamp();\n $log->save();\n $this->Log(\"Ha creado el Log $request->accion\");\n return redirect()->route('logs.index')->with('mensaje', 'Log creado');\n }catch(\\Exception $ex){\n $this->Log(\"Error al crear Log $request->accion\");\n return back()->with('error', 'Error al crear el log');\n }\n }", "title": "" }, { "docid": "bf948fa33dbf0fc693da0fabcf232f29", "score": "0.5590402", "text": "function trackuser($user)\n{\n\t$query = \"INSERT INTO userlogtbl VALUES ('','$user',now())\";\n\tmysql_query($query);\n\t//echo \"New Record Added\";\n\tmysql_close();\n}", "title": "" }, { "docid": "c4a84d1202abaf15f3b08c4f282cace8", "score": "0.55902475", "text": "private function GuardarUsuario(){\n $listaUsuarios = self::CargarDesdeArchivo();\n $listaUsuarios[$this->nombre] = $this;\n file_put_contents(TXT_USUARIOS, json_encode($listaUsuarios));\n }", "title": "" }, { "docid": "4e9ecb31178101a53cf94569c5ac0984", "score": "0.55896854", "text": "function insert_log($uname){\n $myFile = fopen(\"Project_LOG.txt\",'a')\n or die (\"Unable to open LOG file\");\n fwrite($myFile,$uname);\n fwrite($myFile,date(\"Y-m-d\")); // date\n fwrite($myFile,date(\"h:i:sa\")); // time\n fwrite($myFile,\"\\r\\n\");\n fclose($myFile);\n}", "title": "" }, { "docid": "445bcc3c231f30ece7cdb0145d49edcd", "score": "0.5589569", "text": "public function guardar(){\n\t\t}", "title": "" }, { "docid": "05ee39213a9ac4be6d41b89e83b15b96", "score": "0.5586286", "text": "protected function store()\n {\n $name = $this->name;\n $slug = str_replace(' ', '_', strtolower($this->slug));\n $description = empty($this->description) ? null : $this->description;\n\n //Recupero al usuario que realiza el registro\n /** @var User */\n $user = User::find(session()->get('userId'));\n\n DB::beginTransaction();\n\n //Se registra el rol\n $role = Role::create([\n 'name' => $name,\n 'slug' => $slug,\n 'description' => $description,\n ]);\n\n //Se hace el resgistro de usuario\n $logAction = \"Registrar Rol\";\n $logDescription = \"Se registró el rol \\\"$name\\\" con ID:$role->id\";\n\n $user->registerLog($logAction, $logDescription);\n\n $this->alert('Rol Registrado', 'success');\n $this->resetFields();\n DB::commit();\n }", "title": "" }, { "docid": "f21ff99435a4be6ed977b71edbbc7c66", "score": "0.5577187", "text": "public function logUser($user)\n {\n if (empty($_SESSION)) {\n session_start();\n }\n\n $_SESSION['user'] = clone $user;\n }", "title": "" }, { "docid": "740e3c7ed0adff3b3b935975ea29030f", "score": "0.5568886", "text": "function guardar($usuario){\n //Se ejecuta la insercion con los datos que vienen desde un arreglo\n $guardar = $this->db_hatoapps->insert('usuarios', $usuario);\n \n //Si el registro es exitoso\n if($guardar){\n //Retorna verdadero\n return true;\n }else{\n //Retorna falso\n return false;\n }\n }", "title": "" }, { "docid": "614e60f304ea70db61127b06b7c4538e", "score": "0.5568399", "text": "private function validateLog()\n {\n if (isset($this->ignore_log)) {\n $this->ignore_logging = $this->ignore_log;\n }\n \n if (! in_array($this->mode, $this->ignore_logging)) {\n $this->saveLogging();\n }\n }", "title": "" }, { "docid": "a7db849926982503cf5ddd79733bc3ae", "score": "0.55681133", "text": "function log_escreve ($info)\n {\n //$info tem que trazer 5 variaveis dentro dela...\n $this->db->set('user', $info['user']);\n $mysqltime = date(\"Y-m-d H:i:s\");\n $this->db->set('gdh', $mysqltime);\n $this->db->set('ip_maquina', gethostbyaddr($_SERVER['REMOTE_ADDR']));\n $this->db->set('accao', $info['accao']);\n $this->db->set('ficheiro', $info['ficheiro']);\n $this->db->set('agendamento', $info['agendamento']);\n $this->db->set('feriado', $info['feriado']);\n $this->db->set('tipo', $info['tipo']);\n $this->db->insert('log');\n \n return true;\n }", "title": "" }, { "docid": "2381a39e7fb458c96b5f819fe50e9b0e", "score": "0.55575156", "text": "public function guardarusuario() {\n $ses = & $this->POROTO->Session;\n\n if (!$ses->tienePermiso('', 'Guardar usuario')) {\n $ses->setMessage(\"Acceso denegado. Contactese con el administrador.\", SessionMessageType::TransactionError);\n header(\"Location: /gestion-personas\", TRUE, 302);\n exit();\n }\n $idpersona= filter_input(INPUT_POST, 'idpersona');\n $edicion=$this->usuario->getUsuarioByIdPersona($idpersona);\n $usuario = $this->cargarDatosAltaUsuario($edicion);\n\n $params = array();\n $params['validationErrors'] = [];\n $params['usuario'] = $usuario;\n $params['validationErrors'] = $this->validacionDatosUsuario($usuario);\n\n if (count($params['validationErrors']) == 0) {\n // Alta nuevo usuario\n try {\n $this->app->beginTransaction('usuario/guardarusuario');\n // Agregar IF para saber si esta solo editando pass\n if ($edicion){\n //Solo se actualiza la pass\n $this->usuario->resetearPassUsuario($usuario['usuario'], md5($usuario['password']));\n $mensajeSatisfactorio=\"Se ha modificado la contraseña satisfactoriamente.\";\n } else {\n //Se inserta un nuevo usuario para la persona\n $idusuario = $this->usuario->persistirUsuario($usuario);\n $mensajeSatisfactorio=\"Se ha creado el usuario satisfactoriamente.\";\n }\n // ---\n $this->app->commitTransaction('usuario/guardarusuario');\n $bOk = array(\"ok\" => true, \"message\" => $mensajeSatisfactorio);\n } catch (PDOException $e) {\n $this->app->rollbackTransaction('usuario/guardarusuario');\n $bOk = array(\"ok\" => false, \"message\" => \"Se produjo un error al persistir.\");\n }\n\n \n if ($bOk[\"ok\"] === false) {\n $ses->setMessage(\"Se produjo un error al persistir.\" . $bOk[\"message\"], SessionMessageType::TransactionError);\n } else {\n $ses->setMessage($mensajeSatisfactorio, SessionMessageType::Success);\n }\n header(\"Location: /gestion-personas\", TRUE, 302);\n exit();\n } else {\n $_SESSION['persona_form_error'] = true;\n $_SESSION['persona_form_alerts'] = $params['validationErrors'];\n $_SESSION['usuario_con_error']=$usuario;\n $ses->setMessage(\"Complete todos los campos.\", SessionMessageType::TransactionError);\n \n header(\"Location: /crear-usuario/\" . $usuario['idpersona'], TRUE, 302);\n }\n\n }", "title": "" }, { "docid": "40d15712c701a8e2c26ab03153d697d0", "score": "0.5555789", "text": "public function store(OperadorFormRequest $request){\n\n $operador=new Operador;\n $operador->Nombre = $request->get('nombre');\n $operador->Apellido = $request->get('apellido');\n $operador->Telefono = $request->get('telefono');\n $operador->Gmail = $request->get('gmail');\n $operador->Estado = '1';\n $operador->save();\n\n $sql = \"SELECT max(id) as id\n FROM log_change;\";\n $consulta = DB::select($sql);\n\n $log = new Log_Change;\n $log->id = $consulta[0]->id + 1;\n $log->id_user = auth()->user()->id;\n $log->accion = 'Registro a un nuevo operador';\n\n $now = Carbon::now();\n $log->fechaAccion = $now->format('d/m/Y H:i:s');\n\n $log->save();\n\n\n return Redirect::to('/empleado/operador');\n }", "title": "" }, { "docid": "ad8e4e31324ec2637d9af0eafe37dc73", "score": "0.5549923", "text": "public function set_log_usuario($idUser, $nombreUser, $idNivel) {\n $values = array(\n 'idUsuarioLog' => $idUser,\n 'usuarioLog' => $nombreUser,\n 'idNivel' => $idNivel\n );\n $result = $this->db->insert('session_logs', $values);\n }", "title": "" }, { "docid": "b81c71d909d0a5dbf2f3b57d96e195dd", "score": "0.55470204", "text": "function guardarActividad($usuario, $mensaje) {\n\tinclude(\"../conexion.php\");\n\tdate_default_timezone_set('America/Argentina/Buenos_Aires');\n\tsetlocale(LC_TIME, 'spanish');\n\t$timeStamp = strftime(\"%Y-%m-%d %H:%M:%S\");\n\t$idUsuario = returnIdUsuario($usuario); \n\n\t$query = \"INSERT INTO actividades (idUsuario, descripcion,fecha) VALUES ($idUsuario, '$mensaje', '$timeStamp')\";\n\t$res = mysql_query($query, $conexion);\t//guardo el ultimo login del usuario\t\t\n}", "title": "" }, { "docid": "a6a931c0823161c95004fc4c5a7cfefc", "score": "0.5513986", "text": "function guardar()\n {\n }", "title": "" }, { "docid": "f54558056684712dafefcb571c86debd", "score": "0.55099076", "text": "public function store(Log $log, Request $request)\n {\n // $this->validate($request, [\n // 'name' => 'required',\n // 'email' => 'required',\n // ]);\n\n $category = new Category([\n 'name' => Input::get('name'),\n 'email' => Input::get('moderator'),\n 'dept_id' =>Input::get('deptModerator')\n ]);\n\n $action = \"Created New Category\";\n $description = \"Category \" . $category->name . \" has been Created\";\n $userId = Auth::user()->id;\n\n $category->save();\n\n $log->store($action, $description, $userId);\n\n $department = Department::find(Input::get('deptModerator'));\n\n return redirect()->back()->with(\"status\", \"$category->name Category has been created for $department->name department\");\n }", "title": "" }, { "docid": "0fabf169176f583edcb861edc56dcdaf", "score": "0.5509458", "text": "public function store(Request $request)\n {\n // $this->hasPermissionTo('USERS PASIEN_STORE');\n\n $this->validate($request, [\n 'username'=>'required|string|unique:users',\n 'password'=>'required', \n 'name'=>'required', \n 'tempat_lahir'=>'required', \n 'tanggal_lahir'=>'required', \n 'jk'=>'required', \n 'gol_darah'=>'required', \n 'nomor_hp'=>'required', \n 'alamat'=>'required', \n 'status_pasien'=>'required', \n 'PmKecamatanID'=>'required', \n 'Nm_Kecamatan'=>'required', \n 'PmDesaID'=>'required', \n 'Nm_Desa'=>'required', \n 'foto'=>'required', \n ]);\n \n $now = \\Carbon\\Carbon::now()->toDateTimeString(); \n $user=User::create([\n 'username'=> $request->input('username'),\n 'password'=>Hash::make($request->input('password')), \n 'name'=>$request->input('name'),\n 'tempat_lahir'=>$request->input('tempat_lahir'),\n 'tanggal_lahir'=>$request->input('tanggal_lahir'),\n 'jk'=>$request->input('jk'),\n 'gol_darah'=>$request->input('gol_darah'),\n 'nomor_hp'=>$request->input('nomor_hp'),\n 'alamat'=>$request->input('alamat'),\n 'PmKecamatanID'=>$request->input('PmKecamatanID'),\n 'Nm_Kecamatan'=>$request->input('Nm_Kecamatan'),\n 'PmDesaID'=>$request->input('PmDesaID'),\n 'Nm_Desa'=>$request->input('Nm_Desa'),\n 'status_pasien'=>$request->input('status_pasien'), \n 'foto'=>$request->input('foto'),\n 'payload'=>$request->input('payload'), \n 'created_at'=>$now, \n 'updated_at'=>$now\n ]); \n $role='pasien'; \n $user->assignRole($role); \n\n \\App\\Models\\Setting\\ActivityLog::log($request,[\n 'object' => $this->guard()->user(), \n 'user_id' => $this->guard()->user()->id, \n 'message' => 'Menambah user Pasien('.$user->username.') berhasil'\n ]);\n \n return Response()->json([\n 'status'=>1,\n 'pid'=>'store',\n 'user'=>$user, \n 'message'=>'Data user Pasien berhasil disimpan.'\n ],200); \n\n }", "title": "" }, { "docid": "431df5f61613884ee8b28b51950253ec", "score": "0.5484645", "text": "function write_file($log, $message, $user){\n\n if($user == \"\"){\n $user = \"Visitor\";\n }\n\n $now = virtual;\n $line = $now .\" / \". $user . \" / \". $message . \"\\n\";\n fputs($log, $line);\n}", "title": "" }, { "docid": "6dcfe16b5f7e194dff2256484575e2df", "score": "0.5477881", "text": "public function logoutUser()\n {\n self::eventFeedEnded();\n self::eventTransaksiExpired();\n /**\n * ######################################################\n */\n\n /**\n * Set Log Logout Pengguna\n */\n $LogModel = new LogModel();\n $log_data = [\n 'tipe_log' => 2,\n 'id_users' => Session::get('id_users')\n ];\n $LogModel->createData($log_data);\n\n Session::flush();\n return redirect()->route('index');\n }", "title": "" }, { "docid": "1ee2641232c35d3b489fbed216921f18", "score": "0.5475507", "text": "public function upsertLoginLogs($userid, $imei, $token)\n\t\t{\n\t\t\t$this->db->select('id');\n\t\t\t$this->db->from('usersloginlogs');\n\t\t\t$this->db->where('userid', $userid);\n\t\t\t$this->db->where('deviceimei',$imei);\n\t\t\t\n\t\t\tif($this->db->count_all_results() == 0)\n\t\t\t{\n\t\t\t\t\n\t\t\t\t$data = array(\n\t\t\t\t'userid' => $userid,\n\t\t\t\t'accesstoken' => $token,\n\t\t\t\t'lastlogin' => date('Y-m-d H:i:s'),\n\t\t\t\t'deviceimei' => $imei\n\t\t\t\t);\n\t\t\t\t$data1 = array(\n\t\t\t\t'userid' => $userid,\n\t\t\t\t'deviceimei' => $imei\n\t\t\t\t);\n\t\t\t\t//to avoid multiple insert issues\n\t\t\t\t$this->db->delete('usersloginlogs', $data1); \n\t\t\t\t$this->db->insert('usersloginlogs', $data); \n\t\t\t}\n\t\t\telse{\n\t\t\t\t$data = array(\n\t\t\t\t'accesstoken' => $token,\n\t\t\t\t'lastlogin' => date('Y-m-d H:i:s'),\n\t\t\t\t);\n\t\t\t\t$this->db->where('userid', $userid);\n\t\t\t\t$this->db->where('deviceimei', $imei);\n\t\t\t\t$this->db->update('usersloginlogs', $data); \n\t\t\t}\n\t\t}", "title": "" }, { "docid": "647a710d63654558f102f896c5ee584a", "score": "0.5473971", "text": "public function saved(User $user)\n {\n //\n }", "title": "" }, { "docid": "92d22983e416345954cff3239b7464ce", "score": "0.54694754", "text": "function create_log($activiy_log)\n\t{\n\t\t$this->db->insert('activitylog',$activiy_log);\n\t}", "title": "" }, { "docid": "b08c03aed473b826150571c0565b3335", "score": "0.546659", "text": "function accessLog ($statutNumber)\r\n\t\t{\r\n\t\t\t\t\t\t\t$ip = $_SERVER['REMOTE_ADDR'];\r\n\t\t\t\t\t\t\t$dateTime = date(\"d/m/Y H:i\");\r\n\t\t\t\t\t\t\t$dateTimeTS = date(\"Y-m-d H:i\");\r\n\t\t\t\t\t\t\tmysql_query(\"INSERT INTO accessLog (ip, dateTime, dateTimeTS, statut, userTried) VALUES (\\\"$ip\\\", \\\"$dateTime\\\", \\\"$dateTimeTS\\\", \\\"$statutNumber\\\", \\\"$_POST[username]\\\")\") or die (mysql_error());\r\n\t\t\t\t\t\t// access LOG\r\n\t\t\t\t\t\tif ($statutNumber != 0 ) {\r\n\t\t\t\t\t\t\techo \"<h4 class='text-danger'><img src='img/noOk.png' /> Login failed. Check your login/password</h4>\";\r\n\t\t\t\t\t\t\tinclude (\"loginForm.inc.php\"); \r\n\t\t\t\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "51ef04e28ae2deabf162deced7faf05e", "score": "0.5465554", "text": "function cust_log($log)\n {\n $this->db->insert('login',$log);\n $insert_id=$this->db->insert_id();\n return $insert_id;\n }", "title": "" }, { "docid": "043811cfdfa91f41d3f5d0b7794742bd", "score": "0.54557896", "text": "function melodev_access_writelog($aid, $uid, $msg=null) {\n return db_query('insert into {accesslog_owner} (aid, uid, message) values(%d, %d, \"%s\")', $aid, $uid, $msg);\n}", "title": "" }, { "docid": "4583be708bd82557e264941845c96da6", "score": "0.54458755", "text": "function log_user_if_new() {\n\t// Determine if user is in our new_users_log table\n\t$sql = \"SELECT uid FROM users WHERE uid = {$user}\";\n\t$rs = mysql_query($sql);\n\tif (mysql_num_rows($rs) == 0) {\n\t\t$sql = \"INSERT INTO users ( uid, date_posted ) VALUES( {$user}, now() )\";\n\t\tmysql_query($sql);\n\t}\n\t// Determine if user is in our users table\n\t$sql2 = \"SELECT uid FROM users WHERE uid = {$user}\";\n\t$rs2 = mysql_query($sql2);\n\tif (mysql_num_rows($rs2) == 0) {\n\t\t$sql3 = \"INSERT INTO users ( uid, date_posted ) VALUES( {$user}, now() )\";\n\t\tmysql_query($sql3);\n\t}\n}", "title": "" }, { "docid": "2255dec93cc4ad657ccae609e1bbd811", "score": "0.5444555", "text": "public function unlog() { unset($_SESSION['user']); header(\"Location: index.php\"); }", "title": "" }, { "docid": "56d76b96b2b4313bc3fbe39a14e21656", "score": "0.54422045", "text": "protected function __log ($description)\n {\n if ($this->table==NULL) return NULL;\n\n $id = $this->session->userdata('user_id');\n\n if (($id=='')||($id==null)) $id=0;\n\n $this->db->query (\"INSERT INTO log (user_id, date, description) VALUES ($id, NOW(), '$description')\");\n }", "title": "" }, { "docid": "27e57e3d9e1a2eb457dee492008dabf1", "score": "0.54418004", "text": "private function writeLog($uname, $action)\n {\n $action = $this->cleanString($action);\n $uname = $this->cleanString($uname);\n $query = $this->connection->prepare(\"INSERT INTO logs (username, action) VALUES (?,?)\");\n $query->bind_param('ss', $uname, $action);\n $this->executeQuery($query);\n }", "title": "" }, { "docid": "92fd5b203990a3c029f82604c889d727", "score": "0.5436209", "text": "public function store(Request $request)\n {\n\t\t\n\t\tfunction generaLogs($usuario,$accion,$origen){\n\t\t\t//Definimos la hora de la accion\n\t\t\t$hora=str_pad(date(\"Y-m-d H:i:s\"),10,\" \"); //hhmmss;\n\t\t\t//Definimos el contenido de cada registro de accion por usuario.\n\t\t\t$usuario=strtolower(str_pad($usuario,15,\" \"));\n\t\t\t$accion=strtolower(str_pad($accion,50,\" \"));\n\t\t\t$cadena=$hora.\" - \".$usuario.\" - \".$accion.\" - \".$origen;\n\t\t\t//Creamos dinamicamente el nombre del archivo por dia\n\t\t\t$pre=Input::get('cuentaid').\"_ordenesorigen_\";\n\t\t\t$date=date(\"YmdHis\"); //aammddhhmmss\n\t\t\t$fileName=$pre.$date;\n\t\t\t\n\t\t\tif(Storage::disk('local')->has(Input::get('cuentaid').'_ordenorigen.log')){\n\t\t\t\tif(Storage::size(Input::get('cuentaid').'_ordenorigen.log') < 5000000){\n\t\t\t\t\tStorage::append(Input::get('cuentaid').'_ordenorigen.log', $cadena);\n\t\t\t\t}else{\n\t\t\t\t\tStorage::move(Input::get('cuentaid').'_ordenorigen.log', $fileName.'.log');\n\t\t\t\t\t\n\t\t\t\t\tStorage::disk('local')->put(Input::get('cuentaid').'_ordenorigen.log', '//*Logs***********************************************************************');\n\t\t\t\t\tStorage::append(Input::get('cuentaid').'_ordenorigen.log', $cadena);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tStorage::disk('local')->put(Input::get('cuentaid').'_ordenorigen.log', '//*Logs***********************************************************************');\n\t\t\t\tStorage::append(Input::get('cuentaid').'_ordenorigen.log', $cadena);\n\t\t\t}\n\t\t}//end generaLogs function\n\t\t\n\t\t// validate the info, create rules for the inputs\n\t\t$rules = array(\n\t\t\t'cuentaid' => 'required',\n\t\t\t'user' \t=> 'required',\n\t\t\t'pass' \t\t=> 'required|alphaNum|min:6'\n\t\t);\n\n\t\t// run the validation rules on the inputs from the form\n\t\t$validator = Validator::make(Input::all(), $rules);\n\n\t\t// if the validator fails, redirect back to the form\n\t\tif ($validator->fails()) {\n\t\t\t\n\t\t\t$usuario = Input::get('user');\n\t\t\t$accion = \"No se han podido verificar los datos de la cuenta\";\n\t\t\t\n\t\t\t$accion .= \"\\n\t orden: \".Input::get('ordenid');\n\t\t\t$accion .= \"\\n \ttipo ident.: \".Input::get('tip_iden');\n\t\t\t$accion .= \"\\n \tidentificacion: \".Input::get('identificacion');\n\t\t\t$accion .= \"\\n \tcliente: \".Input::get('cliente');\n\t\t\t$accion .= \"\\n \ttelefono: \".Input::get('telefono');\n\t\t\t$accion .= \"\\n \tmail: \".Input::get('mail');\n\t\t\t$accion .= \"\\n \tsucursal: \".Input::get('sucursalid');\n\t\t\t$accion .= \"\\n \tsubtotal: \".Input::get('subtotal');\n\t\t\t$accion .= \"\\n \timpuesto: \".Input::get('impuesto');\n\t\t\t$accion .= \"\\n \ttotal: \".Input::get('total');\n\t\t\t$accion .= \"\\n \tciudad: \".Input::get('ciudad');\n\t\t\t$accion .= \"\\n \tpais: \".Input::get('pais');\n\t\t\t$accion .= \"\\n \tdireccion: \".Input::get('direccion');\n\t\t\t$accion .= \"\\n \testado: \".Input::get('estadopedido');\n\t\t\t$accion .= \"\\n \tcuenta: \".Input::get('cuentaid');\n\t\t\t$accion .= \"\\n \tusuario: \".Input::get('user');\n\t\t\t$accion .= \"\\n /*************************************************************************************************/\";\n\t\t\t\n\t\t\t$origen = Input::get('cuentaid');\n\t\t\tgeneraLogs($usuario,$accion,$origen);\n\t\t\treturn response()->json(['errors'=>array(['code'=>422,'message'=>'No se han podido verificar los datos de la cuenta.'])],422);\n\t\t\t//return false;\n\t\t} else {\n\n\t\t\t$cuenta = Cuenta::where('cuentaID','=',Input::get('cuentaid'))->firstOrFail();\n\t\t\n\t\t\t// create our user data for the authentication\n\t\t\t$userdata = array(\n\t\t\t\t'cuentaID'\t=> $cuenta->id,\n\t\t\t\t'userID' => Input::get('user'),\n\t\t\t\t'password' => Input::get('pass'),\n\t\t\t\t//'localidadID' => $cuenta->localidadID,\n\t\t\t);\n\n\t\t\t// attempt to do the login\n\t\t\tif (Auth::attempt($userdata)) {\n\n\t\t\t\t// validation successful!\n\t\t\t\t// redirect them to the secure section\n\t\t\t\t$user = Usuario::find(1);\n\t\t\t\t$usuario = Usuario::where('userID','=',Input::get('user'))->firstOrFail();\n\t\t\t\t$localidadID = $usuario->localidadID;\n\t\t\t\t$rolID = $usuario->rolID;\n\t\t\t\t// attempt to put localidadID into userdata authentication. It helps to filter information.\n\t\t\t\t$userdata2 = array(\n\t\t\t\t\t'localidadID' => $cuenta->localidadID,\n\t\t\t\t\t'id' => $user->id,\n\t\t\t\t);\n\t\t\t\tAuth::attempt($userdata2);\n\t\t\t\t\n\t\t\t\tif($localidadID == 0){\n\t\t\t\t\t\n\t\t\t\t\t$usuario = Input::get('user');\n\t\t\t\t\t$accion = \"Ha enviado datos mediante el usuario admin\";\n\t\t\t\t\t\n\t\t\t\t\t$accion .= \"\\n \torden: \".Input::get('ordenid');\n\t\t\t\t\t$accion .= \"\\n \ttipo ident.: \".Input::get('tip_iden');\n\t\t\t\t\t$accion .= \"\\n \tidentificacion: \".Input::get('identificacion');\n\t\t\t\t\t$accion .= \"\\n \tcliente: \".Input::get('cliente');\n\t\t\t\t\t$accion .= \"\\n \ttelefono: \".Input::get('telefono');\n\t\t\t\t\t$accion .= \"\\n \tmail: \".Input::get('mail');\n\t\t\t\t\t$accion .= \"\\n \tsucursal: \".Input::get('sucursalid');\n\t\t\t\t\t$accion .= \"\\n \tsubtotal: \".Input::get('subtotal');\n\t\t\t\t\t$accion .= \"\\n \timpuesto: \".Input::get('impuesto');\n\t\t\t\t\t$accion .= \"\\n \ttotal: \".Input::get('total');\n\t\t\t\t\t$accion .= \"\\n \tciudad: \".Input::get('ciudad');\n\t\t\t\t\t$accion .= \"\\n \tpais: \".Input::get('pais');\n\t\t\t\t\t$accion .= \"\\n \tdireccion: \".Input::get('direccion');\n\t\t\t\t\t$accion .= \"\\n \testado: \".Input::get('estadopedido');\n\t\t\t\t\t$accion .= \"\\n \tcuenta: \".Input::get('cuentaid');\n\t\t\t\t\t$accion .= \"\\n \tusuario: \".Input::get('user');\n\t\t\t\t\t$accion .= \"\\n /*************************************************************************************************/\";\n\t\t\t\t\t\n\t\t\t\t\t$origen = Input::get('cuentaid');\n\t\t\t\t\tgeneraLogs($usuario,$accion,$origen);\n\t\t\t\t\treturn response()->json(['errors'=>array(['code'=>422,'message'=>'Ha enviado datos mediante el usuario admin.'])],422);\n\t\t\t\t\t//return response()->json(['errors'=>array(['code'=>422,'message'=>'Faltan datos necesarios para el proceso de alta.'])],422);\n\t\t\t\t\t//return redirect()->action('Admin\\HomeController@showAdmin');\n\t\t\t\t\t//return view('admin.dashboard');\n\t\t\t\t}else{\n\t\t\t\t\tif($rolID == 4){\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Primero comprobaremos si estamos recibiendo todos los campos.\n\t\t\t\t\t\tif (!$request->input('ordenid') || !$request->input('tip_iden') || !$request->input('identificacion') || !$request->input('cliente') || !$request->input('telefono') || !$request->input('sucursalid') || !$request->input('subtotal') || !$request->input('impuesto') || !$request->input('total') || !$request->input('ciudad') || !$request->input('pais') || !$request->input('direccion'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//return response()->json(['errors'=>array(['code'=>422,'message'=>'Faltan datos necesarios para el proceso de alta.'])],422);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Condicion para el listado de cuentas\n\t\t\t\t\t\t$where_args0 = array(\n\t\t\t\t\t\t\t'cuentaid' => Input::get('cuentaid'),\n\t\t\t\t\t\t\t'sucursalid' => Input::get('sucursalid'),\n\t\t\t\t\t\t\t'ordenid' => Input::get('ordenid')\n\t\t\t\t\t\t);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Consulta los datos de una cuenta especifica\n\t\t\t\t\t\t$ordenesorigenfound = DB::table('orden_origen')\n\t\t\t\t\t\t\t\t\t->select('*')\n\t\t\t\t\t\t\t\t\t->where($where_args0)\n\t\t\t\t\t\t\t\t\t->get();\n\t\t\t\t\t\t//$ordenesorigenfound=OrdenOrigen::where('ordenid','=',Input::get('ordenid'))->get();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(!$ordenesorigenfound){\n\t\t\t\t\t\t\t// Insertamos una fila en Fabricante con create pasándole todos los datos recibidos.\n\t\t\t\t\t\t\t// En $request->all() tendremos todos los campos del formulario recibidos.\n\t\t\t\t\t\t\t$ordenesorigen=OrdenOrigen::create($request->all());\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Más información sobre respuestas en http://jsonapi.org/format/\n\t\t\t\t\t\t// Devolvemos el código HTTP 201 Created – [Creada] Respuesta a un POST que resulta en una creación. Debería ser combinado con un encabezado Location, apuntando a la ubicación del nuevo recurso.\n\t\t\t\t\t\t\t$response = Response::make(json_encode(['data'=>$ordenesorigen]), 201)->header('Location', 'http://www.octagonoerp.com/SmartDelivery/'.$ordenesorigen->id)->header('Content-Type', 'application/json');\n\t\t\t\t\t\t\treturn $response;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$usuario = Input::get('user');\n\t\t\t\t\t\t\t$accion = \"Ha enviado un numero de orden existente\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$accion .= \"\\n \torden: \".Input::get('ordenid');\n\t\t\t\t\t\t\t$accion .= \"\\n \ttipo ident.: \".Input::get('tip_iden');\n\t\t\t\t\t\t\t$accion .= \"\\n \tidentificacion: \".Input::get('identificacion');\n\t\t\t\t\t\t\t$accion .= \"\\n \tcliente: \".Input::get('cliente');\n\t\t\t\t\t\t\t$accion .= \"\\n \ttelefono: \".Input::get('telefono');\n\t\t\t\t\t\t\t$accion .= \"\\n \tmail: \".Input::get('mail');\n\t\t\t\t\t\t\t$accion .= \"\\n \tsucursal: \".Input::get('sucursalid');\n\t\t\t\t\t\t\t$accion .= \"\\n \tsubtotal: \".Input::get('subtotal');\n\t\t\t\t\t\t\t$accion .= \"\\n \timpuesto: \".Input::get('impuesto');\n\t\t\t\t\t\t\t$accion .= \"\\n \ttotal: \".Input::get('total');\n\t\t\t\t\t\t\t$accion .= \"\\n \tciudad: \".Input::get('ciudad');\n\t\t\t\t\t\t\t$accion .= \"\\n \tpais: \".Input::get('pais');\n\t\t\t\t\t\t\t$accion .= \"\\n \tdireccion: \".Input::get('direccion');\n\t\t\t\t\t\t\t$accion .= \"\\n \testado: \".Input::get('estadopedido');\n\t\t\t\t\t\t\t$accion .= \"\\n \tcuenta: \".Input::get('cuentaid');\n\t\t\t\t\t\t\t$accion .= \"\\n \tusuario: \".Input::get('user');\n\t\t\t\t\t\t\t$accion .= \"\\n /*************************************************************************************************/\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$origen = Input::get('cuentaid');\n\t\t\t\t\t\t\tgeneraLogs($usuario,$accion,$origen);\n\t\t\t\t\t\t\treturn response()->json(['errors'=>array(['code'=>422,'message'=>'Ha enviado un numero de orden existente.'])],422);\n\t\t\t\t\t\t}\n\t\t\t\t\t}elseif($rolID == 3){\n\t\t\t\t\t\t$usuario = Input::get('user');\n\t\t\t\t\t\t$accion = \"Ha enviado datos mediante el usuario operador\";\n\t\t\t\t\t\t\n\t\t\t\t\t\t$accion .= \"\\n \torden: \".Input::get('ordenid');\n\t\t\t\t\t\t$accion .= \"\\n \ttipo ident.: \".Input::get('tip_iden');\n\t\t\t\t\t\t$accion .= \"\\n \tidentificacion: \".Input::get('identificacion');\n\t\t\t\t\t\t$accion .= \"\\n \tcliente: \".Input::get('cliente');\n\t\t\t\t\t\t$accion .= \"\\n \ttelefono: \".Input::get('telefono');\n\t\t\t\t\t\t$accion .= \"\\n \tmail: \".Input::get('mail');\n\t\t\t\t\t\t$accion .= \"\\n \tsucursal: \".Input::get('sucursalid');\n\t\t\t\t\t\t$accion .= \"\\n \tsubtotal: \".Input::get('subtotal');\n\t\t\t\t\t\t$accion .= \"\\n \timpuesto: \".Input::get('impuesto');\n\t\t\t\t\t\t$accion .= \"\\n \ttotal: \".Input::get('total');\n\t\t\t\t\t\t$accion .= \"\\n \tciudad: \".Input::get('ciudad');\n\t\t\t\t\t\t$accion .= \"\\n \tpais: \".Input::get('pais');\n\t\t\t\t\t\t$accion .= \"\\n \tdireccion: \".Input::get('direccion');\n\t\t\t\t\t\t$accion .= \"\\n \testado: \".Input::get('estadopedido');\n\t\t\t\t\t\t$accion .= \"\\n \tcuenta: \".Input::get('cuentaid');\n\t\t\t\t\t\t$accion .= \"\\n \tusuario: \".Input::get('user');\n\t\t\t\t\t\t$accion .= \"\\n /*************************************************************************************************/\";\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t$origen = Input::get('cuentaid');\n\t\t\t\t\t\tgeneraLogs($usuario,$accion,$origen);\n\t\t\t\t\t\treturn response()->json(['errors'=>array(['code'=>422,'message'=>'Ha enviado datos mediante el usuario operador.'])],422);\n\t\t\t\t\t}elseif($rolID == 2){\n\t\t\t\t\t\t$usuario = Input::get('user');\n\t\t\t\t\t\t$accion = \"Ha enviado datos mediante el usuario mensajero\";\n\t\t\t\t\t\t\n\t\t\t\t\t\t$accion .= \"\\n \torden: \".Input::get('ordenid');\n\t\t\t\t\t\t$accion .= \"\\n \ttipo ident.: \".Input::get('tip_iden');\n\t\t\t\t\t\t$accion .= \"\\n \tidentificacion: \".Input::get('identificacion');\n\t\t\t\t\t\t$accion .= \"\\n \tcliente: \".Input::get('cliente');\n\t\t\t\t\t\t$accion .= \"\\n \ttelefono: \".Input::get('telefono');\n\t\t\t\t\t\t$accion .= \"\\n \tmail: \".Input::get('mail');\n\t\t\t\t\t\t$accion .= \"\\n \tsucursal: \".Input::get('sucursalid');\n\t\t\t\t\t\t$accion .= \"\\n \tsubtotal: \".Input::get('subtotal');\n\t\t\t\t\t\t$accion .= \"\\n \timpuesto: \".Input::get('impuesto');\n\t\t\t\t\t\t$accion .= \"\\n \ttotal: \".Input::get('total');\n\t\t\t\t\t\t$accion .= \"\\n \tciudad: \".Input::get('ciudad');\n\t\t\t\t\t\t$accion .= \"\\n \tpais: \".Input::get('pais');\n\t\t\t\t\t\t$accion .= \"\\n \tdireccion: \".Input::get('direccion');\n\t\t\t\t\t\t$accion .= \"\\n \testado: \".Input::get('estadopedido');\n\t\t\t\t\t\t$accion .= \"\\n \tcuenta: \".Input::get('cuentaid');\n\t\t\t\t\t\t$accion .= \"\\n \tusuario: \".Input::get('user');\n\t\t\t\t\t\t$accion .= \"\\n /*************************************************************************************************/\";\n\t\t\t\t\t\t\n\t\t\t\t\t\t$origen = Input::get('cuentaid');\n\t\t\t\t\t\tgeneraLogs($usuario,$accion,$origen);\n\t\t\t\t\t\treturn response()->json(['errors'=>array(['code'=>422,'message'=>'Ha enviado datos mediante el usuario mensajero.'])],422);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else { \n\t\t\t\t$usuario = Input::get('user');\n\t\t\t\t$accion = \"Error de verificacion. Usuario o clave erroneo\";\n\t\t\t\t$accion .= \"\\n \torden: \".Input::get('ordenid');\n\t\t\t\t$accion .= \"\\n \ttipo ident.: \".Input::get('tip_iden');\n\t\t\t\t$accion .= \"\\n \tidentificacion: \".Input::get('identificacion');\n\t\t\t\t$accion .= \"\\n \tcliente: \".Input::get('cliente');\n\t\t\t\t$accion .= \"\\n \ttelefono: \".Input::get('telefono');\n\t\t\t\t$accion .= \"\\n \tmail: \".Input::get('mail');\n\t\t\t\t$accion .= \"\\n \tsucursal: \".Input::get('sucursalid');\n\t\t\t\t$accion .= \"\\n \tsubtotal: \".Input::get('subtotal');\n\t\t\t\t$accion .= \"\\n \timpuesto: \".Input::get('impuesto');\n\t\t\t\t$accion .= \"\\n \ttotal: \".Input::get('total');\n\t\t\t\t$accion .= \"\\n \tciudad: \".Input::get('ciudad');\n\t\t\t\t$accion .= \"\\n \tpais: \".Input::get('pais');\n\t\t\t\t$accion .= \"\\n \tdireccion: \".Input::get('direccion');\n\t\t\t\t$accion .= \"\\n \testado: \".Input::get('estadopedido');\n\t\t\t\t$accion .= \"\\n \tcuenta: \".Input::get('cuentaid');\n\t\t\t\t$accion .= \"\\n \tusuario: \".Input::get('user');\n\t\t\t\t$accion .= \"\\n /*************************************************************************************************/\";\n\t\t\t\t\n\t\t\t\t$origen = Input::get('cuentaid');\n\t\t\t\tgeneraLogs($usuario,$accion,$origen);\n\t\t\t\treturn response()->json(['errors'=>array(['code'=>422,'message'=>'Error de verificacion. Usuario o clave erroneo.'])],422);\n\t\t\t\t//return false;\n\t\t\t}\n\t\t\t//return false;\n\t\t}\n\n\n\n \n\n }", "title": "" }, { "docid": "42928a766502413d387cc8f0efe0f1a2", "score": "0.5431136", "text": "function newUserlog($str)\n {\n $ipadd = 0;\n foreach (array('HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR') as $key) {\n if (array_key_exists($key, $_SERVER) === true) {\n foreach (explode(',', $_SERVER[$key]) as $ip) {\n if (filter_var($ip, FILTER_VALIDATE_IP) !== false) {\n $ipadd = $ip;\n }\n }\n }\n }\n $ci=& get_instance();\n $userifo = $ci->session->userdata('logged_in');\n $userrole = $ci->session->userdata('role');\n $data['user_id'] = $userifo['id'];\n $data['username'] = $userifo['username'];\n $data['userrole'] = $userrole;\n $data['sid'] = $userifo['my_session_id'];\n $data['login_date'] = date('Y-m-d'); \n $data['time'] = date('H:i:s');\n $data['ipaddress'] = $ipadd; \t\n $data['action'] = $str;\n $ci->load->database();\n $ci->db->insert('user_logtime', $data);\n }", "title": "" }, { "docid": "65cc1e94db5aa2873121bacca8bb2a6e", "score": "0.54241455", "text": "public function save(User $user);", "title": "" }, { "docid": "5120142dadfc2561076d68b1f6e7a8ce", "score": "0.5417769", "text": "function UserLog($value = null){\n\t\tif($value === null)\n\t\t\treturn $_SESSION['user'];\n\t\telse\n\t\t\t$_SESSION['user'] = $value;\n\n\t}", "title": "" }, { "docid": "5271a0298160c83b4bca90f85e9a5f8c", "score": "0.54171044", "text": "function save()\r\n {\r\n global $DB;\r\n global $_USER;\r\n \r\n if ($this->id == 0) {\r\n $sql = \"INSERT INTO tickets_logs\r\n (ticket, crtusr, date, entry)\r\n VALUES\r\n ( '{$this->ticket->getId()}', {$_USER->getId()}, {$this->date}, '{$this->entry}' )\";\r\n $res = $DB->no_result($sql);\r\n if ($res) {\r\n $sql = \"SELECT max(id) id FROM tickets_logs WHERE ticket = {$this->ticket->getId()} AND date = {$this->date}\";\r\n $thisid = $DB->select($sql);\r\n $this->id = $thisid[0][\"id\"];\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "2d42f6719e82958938e91b93cc725e38", "score": "0.54014254", "text": "function addUserChangeLogEntry($inputUser, $inputLog, $inputLogger, $inputconn) {\n\t\t$params = array($inputUser,$inputLog,$inputLogger);\t\n\t\t$query = \"INSERT INTO User_ChangeLog\n (UserID, LogComments, DateLogged, LoggedBy)\n\t\t\t\t\tVALUES (?,?,GetUTCDate(),?)\";\n\t\t//echo $query .'<br>';\t\t\t\t\t\t\t\n\t\t$result = sqlsrv_query($inputconn, $query, $params); \t\n\t\tif( $result === false ) {\n\t\t\t die( print_r( sqlsrv_errors(), true));\t\t\t\n\t\t}\n\t\tsqlsrv_free_stmt($result);\n\n\t}", "title": "" }, { "docid": "7e574432ccd7b90afa931e2012f9ead9", "score": "0.540083", "text": "function logar($login,$senha)// uuu essa função foi boaaaaaaaaaaaaaaaa\n\t{\n\t\t$querylogin = \"SELECT idLogin, loginLogin, nivelLogin FROM login \n\t\t\t\t\t WHERE loginLogin = '\".$login.\"' AND senhaLogin = '\".$senha.\"'\";\n\t\t$this->sql->consulta($querylogin);\n\t\t$okConsulta = $this->sql->registros();\n\t\t\n\t\t\n\t\tif($okConsulta == 1)//Ok existe Login\n\t\t{\t\n\t\t\t$registros = $this->sql->resultadoArray();\n\t\t\t\n\t\t\t$idLogin = $registros[\"idLogin\"];\n\t\t\t$loginLogin = $registros[\"loginLogin\"];\n\t\t\t$nivelLogin = $registros[\"nivelLogin\"];\t\t\n\t\t}\n\t\telse{//não existe login\t\n\t\t\treturn 2;\n\t\t\theader(\"Location: logar.php\");\n\t\t\texit; //e termina a historia finaliza a pagina atual\n\t\t}\n\t\t// 1 FIM\n\t\t\n\t\t// 2 INICIO - iniciar a sessão verificar se existe alguma já iniciada com o login de quem está tentando logar\n\t\tif(!isset($_SESSION))\n\t\t{\n\t\t\tsession_start();\n\t\t}\n\t\tif(isset($_SESSION) && isset($_SESSION[$loginLogin]) && ($_SESSION[$loginLogin] == $loginLogin))//existe sessão iniciada com o mesmo usuario que logou antes\n\t\t{\n\t\t\t\n\t\t\t$_SESSION[$loginLogin] = NULL;\n\t\t\t\n\t\t\t//vamo gravar a data de saida do login so para fechar o idAcessoLogin\n\t\t\t//precisamos saber se o ultimo login logado foi cadastrada a hora final dele\n\t\t\t\n\t\t\t//descobrindo o idLogin\n\t\t\t$queryEncontrarIdLogin = \"SELECT idLogin FROM login WHERE loginLogin = '\".$loginLogin.\"'\";\n\t\t\t$this->sql->consulta($queryEncontrarIdLogin);\n\t\t\t$okConsulta = $this->sql->registros();\n\t\t\t\n\t\t\tif($okConsulta == 1)\n\t\t\t\t{\t\n\t\t\t\t\t$registrosidLogin = $this->sql->resultadoArray();\n\t\t\t\t\t$idLogin = $registrosidLogin[\"idLogin\"];\n\t\t\t\n\t\t\t\t}\n\t\t\t//idLogin encontrado\n\t\t\t\n\t\t\t//Registrando a saida\n\t\t\t$dataHoraSaidaAcessoLogin = date(\"Y/m/d H:i\");\n\t\t\t$ipAcessoLoginSaida = $_SERVER['REMOTE_ADDR'];\n\t\t\t\n\t\t\t$queryAcessoLoginSaida = \"UPDATE `acessologin` SET \n\t\t\t\t\t\t\t\t\t dataHoraSaidaAcessoLogin = '\".$dataHoraSaidaAcessoLogin.\"', ipAcessoLoginSaida ='\".$ipAcessoLoginSaida.\"'\n\t\t\t WHERE idLogin='\".$idLogin.\"' and dataHoraSaidaAcessoLogin is NULL and ipAcessoLoginSaida is NULL\";\n\t\t\tif($this->sql->consulta($queryAcessoLoginSaida))\n\t\t\t{\n\t\t\t\t\treturn 1; //mensagem de saida registrada\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn $this->sql->consulta($queryAcessoLoginSaida);\n\t\t\t}\n\t\t\t// saida registrada\t\n\t\t}else{ \n\t\t\t\n\t\t\t$_SESSION[$loginLogin] = $loginLogin;\n\t\t\t\n\t\t\t// vamo gravar a data de entrada do login \n\t\t\t// serão gravados somente idLogin, dataHoraEntradaAcessoLogin, ipAcessoLoginEntrada\n\t\t\t$dataHoraEntradaAcessoLogin = date(\"Y/m/d H:i\");\n\t\t\t$ipAcessoLoginEntrada = $_SERVER['REMOTE_ADDR'];\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t$queryAcessoLoginEntrada = \"INSERT INTO `acessologin` (`idLogin`, `dataHoraEntradaAcessoLogin`, `ipAcessoLoginEntrada`) \n\t\t\t\t\t\t\t\t VALUES ('\".$idLogin.\"', '\".$dataHoraEntradaAcessoLogin.\"', '\".$ipAcessoLoginEntrada.\"')\";\n\t\t\t\n\t\t\tif ($this->sql->consulta($queryAcessoLoginEntrada))\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\theader(\"Location: principal.php?idLogin=\".$idLogin.\" \");\n\t\t\t\t\treturn 3;\n\t\t\t\t}\n\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn $this->sql->consulta($queryAcessoLoginEntrada);\n\t\t\t\t}\n\t\t\t//entrada registrada\t\t\n\t\t}\n\t\t// 2 FIM \n\t\t\n\t}", "title": "" }, { "docid": "4462cf7e8b0a23ec095a8ab930e2329a", "score": "0.53988725", "text": "public function save_log($data, $log_file){\n\t\t\tif (!file_exists($log_file)){\n\t\t\t\t$fh = fopen($log_file, 'w');\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$fh = fopen($log_file, 'a');\n\t\t\t}\n\n\t\t\tfwrite($fh, date('Y-m-d H:i:s') . \"\t\" . $data . \"\\r\\n\");\n\n\t\t\tfclose($fh);\n\n\t\t}", "title": "" } ]
7f26d3a8601419c875fa657f6bfb5ec6
...... Loads the sql data file
[ { "docid": "7a84083d86613be748075e412cfc8f2f", "score": "0.6479226", "text": "function loadSqlData($sqlFile)\n{\n if ($fd = fopen($sqlFile,\"r\"))\n {\n while($Q = fgets($fd,2048))\n {\n if (preg_match(\"/^--/\",trim($Q)))\n continue;\n else\n $qry[$x] .= $Q;\n if (preg_match(\"/;$/\",trim($Q))) $x++;\n\n }\n\n //..... Gets rid of empty query\n unset($qry[$x]);\n\n //..... Go through each query and send them to mysql\n foreach($qry as $Q)\n {\n $Q=trim($Q);\n if ($Q)\n {\n mysql_query($Q);\n }\n\n if (mysql_error())\n {\n return(-1);\n }\n }\n return (count($qry) > 0) ? 1 : 0;\n }\n else return(0);\n}", "title": "" } ]
[ { "docid": "31b9307298f1e63571da5c2a8b29285b", "score": "0.7325735", "text": "private function loadDataFromDb()\n {\n // take a look at /powerTrail/powerTrailBase\n }", "title": "" }, { "docid": "1b16c8b66d9511408b32d85fd6a144d7", "score": "0.69961536", "text": "public function loadData()\r\n\t{\r\n\t}", "title": "" }, { "docid": "c288f968e9e9b7903636f9fd2629c5bf", "score": "0.68366104", "text": "public function load()\n {\n // URLS\n $this->createTableURL();\n $this->loadUrls();\n }", "title": "" }, { "docid": "09c83dda4697e3e7b30afbc7981dd708", "score": "0.67825675", "text": "function Data () {\n require('db.data.php');\n }", "title": "" }, { "docid": "1288638b434bd7a9c7a054c8b8dbf8a2", "score": "0.67563564", "text": "function load_sql () {\n\t\tif (func_num_args()) {\n\t\t\t$this->arg_list = func_get_args();\n\t\t\t$sql = $this->arg_list[0];\n\t\t}\n\t\tif (file_exists(\"../sql/$sql\")) {\n\t\t\tif ($fp = fopen(\"../sql/$sql\", \"r\")) {\n\t\t\t\twhile (!feof ($fp)) {\n\t\t\t\t\t$sql_buffer = fgets($fp, 4096);\n\t\t\t\t\tif ($result = mysql_query($sql_buffer)) {\n\t\t\t\t\t\t$sql_status[] .= $sql_buffer.\" - SUCCESS\\n\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$sql_status[] .= $sql_buffer.\" - FAIL\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tforeach($sql_status as $key =>$value) {\n\t\t\t\t\tprint nl2br($value);\n\t\t\t\t}\n\t\t\t\tfclose ($fp);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a8add7f74e04a61a560fd2f889ec89ac", "score": "0.66827667", "text": "static private function load() {\n\t\t$json = file_get_contents(self::$db_filename);\n\t\treturn json_decode($json, true); \n\t}", "title": "" }, { "docid": "752bd18062b572b559c2c4a92015281d", "score": "0.6659359", "text": "protected function loadSqlTestDataFile($_sql_file)\n {\n $this->executeChangeScript($_sql_file);\n }", "title": "" }, { "docid": "89ae98cf4068ab0943b43de958dfb1a6", "score": "0.6602485", "text": "private function importData()\n {\n //tester si la table est vide\n $this->application->run(new StringInput('doctrine:database:import '.SiteConfig::SQLCOUNTRY.' --env='.$this->env));\n $this->application->run(new StringInput('doctrine:database:import '.SiteConfig::SQLSTOCK.' --env='.$this->env));\n $this->application->run(new StringInput('doctrine:database:import '.SiteConfig::SQLUSER.' --env='.$this->env));\n }", "title": "" }, { "docid": "53be55e81fe0760329608d7dad0251c7", "score": "0.65221", "text": "public abstract function loadData(): void;", "title": "" }, { "docid": "8acdcd96d5309531cf5d527d90a5e5ec", "score": "0.64316636", "text": "public function import($src_db);", "title": "" }, { "docid": "760c7b3154c507fc875af6fce7127c7c", "score": "0.6426367", "text": "public function importData() {\n set_time_limit(0);\n ini_set('display_errors', 1);\n\n $this->loadProductsDataIntoDatabase('all', TRUE, TRUE, FALSE);\n $this->loadProductsDataIntoDatabase('files', TRUE, TRUE, FALSE);\n }", "title": "" }, { "docid": "baa5a652354687fbc5f0a381d2c97a6c", "score": "0.64194494", "text": "public function Load ()\r\n\t\t{\r\n\t\t\t$sql = $this->query;\r\n\t\t\t$conn = parent::getConn();\r\n\t\t\t$param = $this->parameter;//parametros de la consulta a ejecutar\r\n\t\t\t$query = $conn->prepare ($sql);\r\n\t\t\t$query->execute (($this->parameter)?array_values($this->parameter):NULL);//le paso los parametros para cargarlos en las condiciones del sql formado\r\n\t\t\t$result = $query->fetchAll (PDO::FETCH_ASSOC);\r\n\t\t\t\r\n\t\t\t$this->data = $result;\t\t\r\n\t\t}", "title": "" }, { "docid": "92033634a53b82aa63bc055fc6a3389c", "score": "0.6406533", "text": "function import_sql_structure()\n{\n global $pdo;\n\n $sqlfile = 'elabftw.sql';\n\n // temporary variable, used to store current query\n $queryline = '';\n // read in entire file\n $lines = file($sqlfile);\n // loop through each line\n foreach ($lines as $line) {\n // Skip it if it's a comment\n if (substr($line, 0, 2) == '--' || $line == '') {\n continue;\n }\n\n // Add this line to the current segment\n $queryline .= $line;\n // If it has a semicolon at the end, it's the end of the query\n if (substr(trim($line), -1, 1) == ';') {\n // Perform the query\n $pdo->query($queryline);\n // Reset temp variable to empty\n $queryline = '';\n }\n }\n}", "title": "" }, { "docid": "637fe2f13be7afec2ff3213168347abc", "score": "0.6390275", "text": "private static function load_database()\n {\n \\TinyDb\\Db::set(\n self::generate_connection_string(static::$config->database->read),\n self::generate_connection_string(static::$config->database->write)\n );\n }", "title": "" }, { "docid": "fb8e5f07d70cd8babf06afb3681bea3b", "score": "0.637646", "text": "private function load_fileds()\n {\n $arTmp = [\n [\"db\"=>\"first_name\",\"ui\"=>\"firstname\"],\n [\"db\"=>\"last_name\",\"ui\"=>\"lastname\"],\n [\"db\"=>\"birth_name\",\"ui\"=>\"birthname\"],\n [\"db\"=>\"gender\",\"ui\"=>\"gender\"]\n ];\n $this->arFields = $arTmp;\n }", "title": "" }, { "docid": "72cef01eba75ac1542a312e56fb4c312", "score": "0.63408494", "text": "protected function loadData(){ \n }", "title": "" }, { "docid": "003e4257a3c6ec7049f6fce0c504d3d1", "score": "0.6277915", "text": "public function loaddata();", "title": "" }, { "docid": "9ed19605586ff0c4429a257ea92355e8", "score": "0.62718445", "text": "function load_in_data(){\n\t\tglobal $tp_query;\n\n\t\tinclude_once('tp-setup-data.php');\n\n\t\tforeach( $setup_data as $table ) {\n\t\t\tforeach( $table as $query ) {\n\t\t\t\t$tp_query->query($query);\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "b758fd32682d4bdc6d413e3f0068b7af", "score": "0.6248726", "text": "protected function loadData() {\n\t\t$d1 = $this->datasource->executeQuery(\"SELECT richiedente, operatore, data_ora, codice_pratica, COALESCE(stato, 0) AS stato, COALESCE(ufficio, 1) AS ufficio, intero1, DATE(data1) AS data1, TIME (data2) as enter_time, TIME (data3) as exit_time\n\t\t\t\t\t\t\t\t\t\t\t FROM rb_w_richieste, rb_w_dati_richiesta\n\t\t\t\t\t\t\t\t\t\t\t WHERE rb_w_dati_richiesta.id_richiesta = rb_w_richieste.id_richiesta \n\t\t\t\t\t\t\t\t\t\t\t AND rb_w_richieste.id_richiesta = {$this->requestID}\");\n\t\t$this->dateTime = $d1[0]['data_ora'];\n\t\t$this->day = $d1[0]['data1'];\n\t\t$this->enter = $d1[0]['enter_time'];\n\t\t$this->exit = $d1[0]['exit_time'];\n\t\t$this->numberOfHours = $d1[0]['intero1'];\n\t}", "title": "" }, { "docid": "9a29a1c32f18235597a0ccacfad810df", "score": "0.6244828", "text": "function load_data( IDataSource $ds )\n\t{\n\t\t$this->data = $ds->queryStatement(StmHelper::stmSelectByPrimaryKey(new Data(), $this->data_id ));\n\t}", "title": "" }, { "docid": "2021964de5046c56a4589d1720ba2f23", "score": "0.6225129", "text": "function _loadSchema() { \r\n \r\n if ( !$this->__fopen() ) return false; \r\n \r\n $this->_schema = array(); \r\n if ( is_null($this->schemaOnTop) ) $this->schemaOnTop = true; \r\n \r\n foreach ( $this->__fdata() as $col ) { \r\n \r\n $this->_schema[$col] = array( \r\n 'type' => 'mixed', \r\n 'show' => $col, \r\n ); \r\n \r\n } \r\n \r\n $this->__fclose(); \r\n \r\n }", "title": "" }, { "docid": "c786b72ba3e4a92510e6355ffda64830", "score": "0.6199657", "text": "private function getFromFile()\r\r\n\t{\r\r\n\t\t$return = array();\r\r\n\r\r\n\t\t// Get all SQL files\r\r\n\t\tforeach (scan(TL_ROOT . '/system/modules') as $strModule)\r\r\n\t\t{\r\r\n\t\t\tif (strncmp($strModule, '.', 1) === 0 || strncmp($strModule, '__', 2) === 0)\r\r\n\t\t\t{\r\r\n\t\t\t\tcontinue;\r\r\n\t\t\t}\r\r\n\r\r\n\t\t\t$strFile = sprintf('%s/system/modules/%s/config/database.sql', TL_ROOT, $strModule);\r\r\n\r\r\n\t\t\tif (!file_exists($strFile))\r\r\n\t\t\t{\r\r\n\t\t\t\tcontinue;\r\r\n\t\t\t}\r\r\n\r\r\n\t\t\t$data = file($strFile);\r\r\n\r\r\n\t\t\tforeach ($data as $k=>$v)\r\r\n\t\t\t{\r\r\n\t\t\t\t$key_name = array();\r\r\n\t\t\t\t$subpatterns = array();\r\r\n\r\r\n\t\t\t\t// Unset comments and empty lines\r\r\n\t\t\t\tif (preg_match('/^[#-]+/i', $v) || !strlen(trim($v)))\r\r\n\t\t\t\t{\r\r\n\t\t\t\t\tunset($data[$k]);\r\r\n\t\t\t\t\tcontinue;\r\r\n\t\t\t\t}\r\r\n\r\r\n\t\t\t\t// Store table names\r\r\n\t\t\t\tif (preg_match('/^CREATE TABLE `([^`]+)`/i', $v, $subpatterns))\r\r\n\t\t\t\t{\r\r\n\t\t\t\t\t$table = $subpatterns[1];\r\r\n\t\t\t\t}\r\r\n\r\r\n\t\t\t\t// Get table options\r\r\n\t\t\t\telseif (strlen($table) && preg_match('/^\\)([^;]+);/i', $v, $subpatterns))\r\r\n\t\t\t\t{\r\r\n\t\t\t\t\t$return[$table]['TABLE_OPTIONS'] = $subpatterns[1];\r\r\n\t\t\t\t\t$table = '';\r\r\n\t\t\t\t}\r\r\n\r\r\n\t\t\t\t// Add fields\r\r\n\t\t\t\telseif (strlen($table))\r\r\n\t\t\t\t{\r\r\n\t\t\t\t\tpreg_match('/^[^`]*`([^`]+)`/i', trim($v), $key_name);\r\r\n\r\r\n\t\t\t\t\t$first = preg_replace('/\\s[^\\n\\r]+/i', '', $key_name[0]);\r\r\n\t\t\t\t\t$key = $key_name[1];\r\r\n\r\r\n\t\t\t\t\t// Create definitions\r\r\n\t\t\t\t\tif (in_array($first, array('KEY', 'PRIMARY', 'PRIMARY KEY', 'FOREIGN', 'FOREIGN KEY', 'INDEX', 'UNIQUE', 'FULLTEXT', 'CHECK')))\r\r\n\t\t\t\t\t{\r\r\n\t\t\t\t\t\t$return[$table]['TABLE_CREATE_DEFINITIONS'][$key] = preg_replace('/,$/i', '', trim($v));\r\r\n\t\t\t\t\t}\r\r\n\r\r\n\t\t\t\t\telse\r\r\n\t\t\t\t\t{\r\r\n\t\t\t\t\t\t$return[$table]['TABLE_FIELDS'][$key] = preg_replace('/,$/i', '', trim($v));\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t}\r\r\n\t\t\t}\r\r\n\t\t}\r\r\n\r\r\n\t\treturn $return;\r\r\n\t}", "title": "" }, { "docid": "221079357d3259c151b50e5010a63479", "score": "0.61923456", "text": "abstract public function load();", "title": "" }, { "docid": "f7d1c5e36bf38a0f5b55592af67f341e", "score": "0.61798406", "text": "function loadSQL( string $dsn ) : array {\n\t\t$def\t= \n\t\t\\str_contains( $dsn, '/' ) ?\n\t\t\t\\end( \\explode( '/', $dsn ) ) : \n\t\t\t\\substr( $dsn, \\strlen( \\PUBCABIN_DATA ) - 1 );\n\t\t\n\t\tif ( false === $def ) {\n\t\t\treturn [];\n\t\t}\n\t\t\n\t\t$src\t= $this->sqlFile( $def );\n\t\tif ( empty( $src ) ) {\n\t\t\t\\messages( \n\t\t\t\t'error', \n\t\t\t\t'Loading SQL install file failed: ' . $dsn\n\t\t\t);\n\t\t\treturn [];\n\t\t}\n\t\t\n\t\t// SQL Lines from definition\n\t\treturn \\PubCabin\\FileUtil::lines( $src, -1, false );\n\t}", "title": "" }, { "docid": "fd2f858d711107ffd494f36f9a8d8948", "score": "0.6179381", "text": "public function readFromDatabase()\n {\n }", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.615366", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.615366", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.615366", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.615366", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.615366", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.615366", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.615366", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.615366", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.615366", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.615366", "text": "public function load();", "title": "" }, { "docid": "56b28ca7691aaeff919fb69bb78a6ae9", "score": "0.615366", "text": "public function load();", "title": "" }, { "docid": "d342d531795270aa74abdcdefeeb76b8", "score": "0.6150954", "text": "public function loadData()\r\n {\r\n $datos = $this->model->get();\r\n include_once 'api/' . $this->modelo . '.php';\r\n }", "title": "" }, { "docid": "6f31cfda26a86f403201c5a7abb03cfa", "score": "0.6139838", "text": "public abstract function load();", "title": "" }, { "docid": "6f31cfda26a86f403201c5a7abb03cfa", "score": "0.6139838", "text": "public abstract function load();", "title": "" }, { "docid": "a159a5737c2520a5c8de0ed15bc46813", "score": "0.6132275", "text": "private function load($className) {\n$repo = array ('/classes/','/model/','/controller/','/view/');\n$fileToLoad = null;\n$i =0;\ndo{\n $fileToLoad =__ROOT_DIR . $repo[$i] . ucfirst($className . '.class.php');\n $i++;\n}while(! is_readable($fileToLoad) && $i< count($repo));\nif(! is_readable($fileToLoad)){\n throw new Exception('Unknown Class '. $className);\n}\nrequire_once($fileToLoad);\nif (strlen(strstr($fileToLoad,'/model/'))>0){\n $sqlfileToLoad = __ROOT_DIR . '/sql/' . ucfirst($className) . 'sql.php';\n if(is_readable($sqlfileToLoad)){\n require_once($sqlfileToLoad);\n $this -> log(__CLASS__ . 'load: '. ucfirst($className) . 'sql.php');\n }\n}\n}", "title": "" }, { "docid": "7ed2bc5d1c054533d6523ddcc6f4a809", "score": "0.6127577", "text": "function load_data( IDataSource $ds )\n\t{\n\t\t$this->data = $ds->queryStatement(StmHelper::stmSelectByPrimaryKey(new Data(), $this->owner_id ));\n\t}", "title": "" }, { "docid": "7244bee6bba0e2c86201e22b62cd9bb1", "score": "0.6127278", "text": "protected static function database()\n {\n $db = Yii::$app->db;\n\n $filename = static::getDirname() . '/schema/' . $db->driverName . '.sql';\n $content = @file_get_contents($filename);\n if ($content === false) {\n return;\n }\n\n foreach (explode(';', $content) as $s) {\n if (trim($s) !== '') {\n $db->createCommand($s)->execute();\n }\n }\n }", "title": "" }, { "docid": "0bedd4a60e4a9056bec80ebcb77a5fee", "score": "0.6122379", "text": "public function load_table() {\n\n\t\t$schemaFileLocation = dirname(__FILE__) .'/setup/schema.'. $this->db->get_dbtype() .'.sql';\n\t\t$schema = file_get_contents($schemaFileLocation);\n\t\t$this->db->exec($schema);\n\t\t\n\t\t$loadTableResult = $this->db->errorMsg();\n\t\tif(!strlen($loadTableResult)) {\n\t\t\t$loadTableResult = true;\n\t\t\t$logRes = 'Successfully loaded';\n\t\t\t$logType = 'initialize';\n\t\t\t\n\t\t\t//now set the initial version information...\n\t\t\tif(strlen($this->projectName) && strlen($this->versionFileVersion)) {\n\t\t\t\t$this->load_initial_version();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new Exception(__METHOD__ .\": missing projectName (\". $this->projectName .\") \" .\n\t\t\t\t\t\t\"or versionFileVersion (\". $this->versionFileVersion .\"), cannot load data\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$logRes = 'Failed to load';\n\t\t\t$logType = 'error';\n\t\t}\n\t\t$this->do_log($logRes .' table ('. $this->dbTable .') into ' .\n\t\t\t\t'database::: '. $loadTableResult, $logType);\n\t\t\n\t\treturn($loadTableResult);\n\t}", "title": "" }, { "docid": "bb3b4b3765c7fceff20e6f299fe0ea1a", "score": "0.6120522", "text": "function Import($sqlFile)\n{\n\t$handle = fopen($sqlFile, \"r\");\n\t$data = fread($handle, filesize($sqlFile));\n\tfclose($handle);\n\n\t$sqlData = explode(\"\\n\", $data);\n\t//Filter out the comments and empty lines...\n\tforeach ($sqlData as $key => $sql)\n\t\tif (strstr($sql, \"--\") || strlen($sql) == 0)\n\t\t\tunset($sqlData[$key]);\n\t$data = implode(\"\",$sqlData);\n\t$sqlData = explode(\";\",$data);\n\tforeach($sqlData as $sql)\n\t{\n\t\tif(strlen(trim($sql)) === 0)\n\t\t\tcontinue;\n\t\tif(strstr($sql, \"CREATE TABLE `\"))\n\t\t{\n\t\t\t$pos1 = strpos($sql, '`');\n\t\t\t$pos2 = strpos($sql, '`', $pos1 + 1);\n\t\t\t$tableName = substr($sql, $pos1+1, ($pos2-$pos1)-1);\n\t\t\tprint \"<li>\".$tableName.\"</li>\";\n\t\t}\n\t\t$query = str_replace(\"SEMICOLON\", \";\", $sql);\n\t\tQuery($query);\n\t}\n}", "title": "" }, { "docid": "c1bcab4aa2e4427877a14cb32b4d0640", "score": "0.6118164", "text": "abstract protected function Load();", "title": "" }, { "docid": "0afe54520f6d71814572b6204e73c776", "score": "0.6117295", "text": "private function readDatabase()\n {\n if ($this->hashToTime) {\n return;\n }\n\n $content = file_get_contents($this->databaseFile);\n $regEx = '#;\\s*(?P<name>.+?)\\s*(?P<hash>[A-F0-9]+?)=(?P<times>.+?)\\s*$#msi';\n $result = [];\n preg_match_all($regEx, $content, $result);\n\n $result['times'] = array_map(function ($row) {\n return explode(' ', $row);\n }, $result['times']);\n\n $this->hashToTime = array_combine($result['hash'], $result['times']);\n $this->nameToTime = array_combine($result['name'], $result['times']);\n }", "title": "" }, { "docid": "df5fb4287af222a219cbbf145f0ca03c", "score": "0.61024624", "text": "protected function load_peristency_file() {\n \t$this->get_content_name();\n \t$this->content = file_get_contents( \"data/$this->file_name\");\n $this->content = json_decode($this->content);\n\n if ($this->content === null) {\n $this->content = array();\n }\n }", "title": "" }, { "docid": "b23d6196bc97f4c1b334aae14d54b03a", "score": "0.6101638", "text": "protected function loadFromDatabase()\n {\n $aConfigs = array();\n $oConfigCollection = new ConfigCollection();\n $oConfigCollection->loadByParameters(\n array(\n 'bundle' => $this->sBundleName\n )\n );\n if ($oConfigCollection->count() > 0) {\n foreach ($oConfigCollection as $oConfig) {\n $aConfigs[$oConfig->name] = $oConfig->value;\n }\n $this->setConfiguration($aConfigs);\n }\n }", "title": "" }, { "docid": "4c53e44e1437f11a8dcbe5ab6b79c318", "score": "0.6099052", "text": "abstract public function loadData($data);", "title": "" }, { "docid": "794453ce6f482b9f10113d61ab824638", "score": "0.60921353", "text": "abstract protected function load();", "title": "" }, { "docid": "4cd8dc20c05bf0cb037fb4b6022e15ca", "score": "0.6088594", "text": "public function load() {}", "title": "" }, { "docid": "41760ba73edcbcdfa6f605f880664e1e", "score": "0.6073508", "text": "function importSql($fichero, $modelo) {\n $consultas = file($fichero);\n foreach ($consultas as $key => $consulta) {\n if (substr($consulta, 0, 2) == \"--\") {\n unset($consultas[$key]);\n }\n }\n $consultas = array_values($consultas);\n\n $consultas = implode(\" \", $consultas);\n $consultas = explode(\";\", $consultas);\n array_pop($consultas);\n return $modelo->importarDb($consultas);\n\n}", "title": "" }, { "docid": "06a7924ce953a46fa5e339f2a9187922", "score": "0.60167444", "text": "public function __construct() { \n $this->db = new \\Core\\FileDB(DB_FILE);\n $this->db->load();\n $this->db->createTable($this->table_name);\n }", "title": "" }, { "docid": "50c140848a9d6b963320061a5d4a6a9b", "score": "0.6015537", "text": "function loaddata() { }", "title": "" }, { "docid": "43cadce011adc601aac38f6dd35d72ba", "score": "0.60147274", "text": "public function run()\n {\n\n \t $sql = file_get_contents(database_path() . '/seeds/WebsiteData.sql');\n\n DB::statement($sql);\n\n }", "title": "" }, { "docid": "42d5d6fcd351357a89a3f79417f58fb6", "score": "0.5999321", "text": "private function dbToFile( )\n {\n //\n }", "title": "" }, { "docid": "7dd58cc23a10d1c343d89acfeae00409", "score": "0.59991455", "text": "public function LoadRecords()\n \t{\n \t\t$this->SetCulture();\n \t\t$this->language_records = $this->GetLanguagesRecords();\n \t}", "title": "" }, { "docid": "5ffb0de76b71c1c6e3e1b5b4e320fdbd", "score": "0.5998372", "text": "public function load()\n\t{\n\t}", "title": "" }, { "docid": "a074d1153bc0e8cf9464bc34083c81ba", "score": "0.5980385", "text": "function restore_sql() {\r\n \r\n }", "title": "" }, { "docid": "49bf0d49cf2fc026db767125f2e417df", "score": "0.5972057", "text": "public function __load(){\n\t\t\t// nothing here for now\n\t\t}", "title": "" }, { "docid": "ae46c9c7f598ec3b1cbe879acc5fde5a", "score": "0.59668386", "text": "function pg_loimport($connection = null, $filename) {}", "title": "" }, { "docid": "00fb0b399c3441366c2810cd552d1316", "score": "0.59566534", "text": "function mysqlToSqliteFormat($file){\n\t\tset_time_limit(0);\n\t\t//verifier si le fichier chargé est bien un fichier sql\n\t\tif (file_exists($file) && preg_match(\"/\\.sql$/\",$file) ==true ){\n\t //lecture du fichier sql\n\t\t\t$readfile=file($file);\n\t\t\t$current=\"\";\n\t\t\tforeach ($readfile as $lineContent){\n\t\t //si les commentaires sont trouvés on les sautent\n\n\t\t\tif (findByRegex(\"/(^\\-\\-)|(^\\/\\*)/\",$lineContent)==true){\n\t\t\tcontinue;\n\t\t }\n\t //sinon debuter le formattage et l'ecriture dans le fichier source\n\t\t\t//\t}else{\n\t \t//split de : collate ,auto_increment , key sauf primary key , lock , unlock , unsigned , engine\n\t\t\t\t\t$first_replace=replaceByRegex(\"/(^LOCK.*)|(^UNLOCK.*)|(AUTO_INCREMENT|auto_increment)|(unsigned)|((COLLATE|collate)\\W\\w*+)\\)|(\\sKEY\\s\\`.*)/\",\"\",$lineContent);\n\t \t//remplacement des entiers bigint , tinyint par int\n\t\t\t\t\t$int_replace=replaceByRegex(\"/(\\sbigint\\W\\w.\\W\\s)|(\\sint\\W\\w.\\W\\s)|(\\smediumint\\W\\w.\\W\\s)|(\\ssmallint\\W\\w.\\W\\s)|(\\stinyint\\W\\w.\\W\\s)/\",\" INT \",$first_replace);\n\t \t//remplacement des chaines de caractères\n\t\t\t\t\t$string_replace=replaceByRegex(\"/(\\svarchar\\W....)|(\\slongtext\\s)|(\\stext\\s)|(\\schar\\W\\w.\\W\\s)|(\\smediumtext\\s)/\",\" TEXT \",$int_replace);\n\t \t//suppression des engines\n\t\t\t\t\t$engine_replace=replaceByRegex(\"/(\\sENGINE\\W*.*(?=\\;))/\",\"\",$string_replace);\n\t \t//remplacement de datetime par DATE\n\t\t\t\t\t$date_replace=replaceByRegex(\"/(\\sdatetime\\s)/\",\" DATE \",$string_replace);\n\t \t//suppression des espaces inutiles dans les requetes sql\n\t\t\t\t\t$space_delete=replaceByRegex(\"/\\n/\",\"\",$date_replace);\n\t //debut de l'ecriture du sql formatter dans le fichier source\n\t\t\t\t\t$current .= $space_delete;\n\t\t\t\t\tfile_put_contents($file, $current);\n\t\t\t\t\n\t\t\t}\n\t \t//sinon arreter l'opération\n\t\t}else{\n\t\t\t//exit();\n\t\t\techo \"pas trouver\";\n\t\t}\n\t}", "title": "" }, { "docid": "f0b368ba65628912507240add96a66bf", "score": "0.594686", "text": "function load() {\n if($this->prepareLoadQuery()) {\n $this->id = $this->conn->result[\"id\"];\n $this->name = $this->conn->result[\"name\"];\n $this->loctypeID = $this->conn->result[\"loc_type_id\"];\n $this->parentID = $this->conn->result[\"parent_id\"];\n }\n }", "title": "" }, { "docid": "a729d3914e1bc65854490e8947df2c1e", "score": "0.59388417", "text": "function importData() {\r\n try {\r\n $importDataInfo = array();\r\n $values = array();\r\n $skip = false;\r\n if (file_exists($this->file)) { \r\n \r\n /**\r\n * CONSULTAMOS LA TABLA Y LA BASE DE DATOS A IMPORTAR\r\n */\r\n $command = $this->db->createCommand(\"SELECT bd,tabla \"\r\n . \" FROM \".TABLE_PREFIX.\"import_data\"\r\n . \" WHERE alias = '\".$this->process.\"' LIMIT 1 ;\");\r\n $recordSet = $command->query(); \r\n $rowRecordset = $recordSet->read();\r\n \r\n $this->database = $rowRecordset['bd'];\r\n $this->table = $rowRecordset['tabla'];\r\n \r\n /**\r\n * CONSULTAMOS LOS CAMPOS DE LA TABLA\r\n */ \r\n $command = $this->db->createCommand(\"DESCRIBE \".$this->table.\" ;\");\r\n $recordSet = $command->query(); \r\n $rowCount = $recordSet->rowCount;\r\n \r\n while(($rowRecordset = $recordSet->read())!==false)\t\t\t\t\r\n {\r\n $importDataInfo['field'][] = $rowRecordset['Field'];\r\n }\r\n \r\n $importDataInfo['filezise'] = filesize($this->file) . ' bytes';\r\n $importDataInfo['numrows'] = count($this->preloadData);\r\n $importDataInfo['numcolumns'] = count($this->preloadData[0])-1; \r\n /**\r\n * Se compara si las columnas del archivo son iguales a las de la tabla a importar\r\n * El -1, es debido a que en la funcion ArrayLoadData(), \r\n * se agrega una ultima columna con la accion sobre el registro a importar\r\n */\r\n if($importDataInfo['numcolumns'] == $rowCount){\r\n \r\n if($importDataInfo['numrows']>$this->maxAllowedRows){\r\n $importDataInfo['type'] = 'error';\r\n $importDataInfo['message'] = 'El total de registros no puede ser mayor a ['.$this->maxAllowedRows.']'; \r\n }\r\n else{\r\n $startTime = date('s'); \r\n /**\r\n * La importacion se realizara al final del proceso, siempre y cuando todo este bien.\r\n * esto para evitar escribir errores en la tabla a importar\r\n */\r\n $command = $this->db->createCommand(\"SET AUTOCOMMIT=0\");\r\n $recordSet = $command->query();\r\n $command = $this->db->createCommand(\"BEGIN\");\r\n $recordSet = $command->query();\r\n\r\n $insert_query_prefix = \"INSERT INTO \".$this->table.\" \\nVALUES\";\r\n\r\n if($this->fileRead == true){\r\n $this->preloadData = self::ArrayLoadData();\r\n }\r\n\r\n if($this->delHeader == '1'){ $skip = true; $outPut='Si';}else{$outPut='No';}\r\n\r\n foreach($this->preloadData as $row =>$column){\r\n\r\n #FUNCIONES PARTICULARES \r\n if (function_exists($this->functionImport)) {\r\n $column = call_user_func($this->functionImport, $column);\r\n }\r\n\r\n if($skip) {\r\n /**\r\n * Salta la primera iteracion (eliminar la cabecera) y se setea como false\r\n * para las siguientes iteraciones\r\n */\r\n $skip = false;\r\n }\r\n else{\r\n unset($column['acciones']);\r\n $values[] = join(',',array_map('self::addQuots',$column)); \r\n } \r\n } \r\n $insert_query_prefix .= \"(\".join('),(',$values).\");\";\r\n\r\n $command = $this->db->createCommand($insert_query_prefix);\r\n $recordSet = $command->query();\r\n\r\n $command = $this->db->createCommand(\"COMMIT\");\r\n $recordSet = $command->query();\r\n $command = $this->db->createCommand(\"SET AUTOCOMMIT=1\");\r\n $recordSet = $command->query(); \r\n\r\n \r\n $endTime = date('s');\r\n $importDataInfo['processTime'] = $endTime - $startTime . ' Segundos';\r\n \r\n /**\r\n * Se registra el log de importacion\r\n */\r\n\r\n $content = \"Archivo: \".$this->oldfilename\r\n . \"\\nNumero de Columnas : \".$importDataInfo['numcolumns']\r\n . \"\\nNumero de Filas a insertar : \".$importDataInfo['numrows']\r\n . \"\\nNumero de Filas insertadas: \".count($values)\r\n . \"\\nEliminar Cabecera?: \".$outPut\r\n . \"\\nEstado de la carga: Exitosa\"\r\n . \"\\nFecha de carga: \".date('Y-m-d H:i:s')\r\n . \"\\nTiempo del Proceso: \".$importDataInfo['processTime'];\r\n \r\n Yii::app()->getModule('massdataupload')->components['massdataevents']->registerLog('0',$this->process,$content);\r\n $this->content = $content;\r\n $importDataInfo['type'] = 'success';\r\n $importDataInfo['message'] = 'Los datos fueron importados al sistema.';\r\n }\r\n }\r\n else{\r\n $importDataInfo['type'] = 'error';\r\n $importDataInfo['message'] = 'El total de columnas del archivo no es el mismo de la tabla a importar. Por favor, valide el archivo...'; \r\n }\r\n return $importDataInfo;\r\n } \r\n } catch (Exception $e) { \r\n \r\n $content = \"Codigo [\".$e->errorInfo['1'].\"]\\n\"\r\n . \"Proceso [\".$this->process.\"]\\n\"\r\n . \"Mensaje [\".$e->errorInfo['2'].\"]\\n\"\r\n . \"TraceString \\n\". $e->getTraceAsString();\r\n \r\n Yii::app()->getModule('massdataupload')->components['massdataevents']->registerLog('-1',$this->process,$content);\r\n \r\n $command = $this->db->createCommand(\"COMMIT\");\r\n $recordSet = $command->query();\r\n $command = $this->db->createCommand(\"SET AUTOCOMMIT=1\");\r\n $recordSet = $command->query(); \r\n $command = $this->db->createCommand(\"ROLLBACK\");\r\n $recordSet = $command->query(); \r\n \r\n $exception = array('type'=>'error',\r\n 'message'=>'Ha ocurrido un error durante el proceso de importación.'\r\n . '<br> Codigo BD ['.$e->errorInfo['1'].']. '\r\n . 'Se realiza ROLLBACK. '.CHtml::link('Ver mas info...','http://es.wikipedia.org/wiki/Rollback',array('target'=>'_blank'))); \r\n return $exception;\r\n }\r\n }", "title": "" }, { "docid": "83d7eddc563cc6dad4459ebf446ec28e", "score": "0.59257585", "text": "function loadFromDatabase($id)\n\t{\n\t\tglobal $sql;\n\t\t$row = $sql->QueryRow(\"SELECT * FROM $this->tablename WHERE id='$id'\");\n\t\t$this->loadFromRow($row);\n\t}", "title": "" }, { "docid": "cc6e54139fac8985e58fc033cfbb8a34", "score": "0.59166414", "text": "public function load() {\n\t\ttry {\n\t\t\t$resTable = $this->_connection->query('SHOW TABLE STATUS WHERE Name = \\'' . self::sanitize($this->_name) . '\\'');\n\t\t\t$resColumns = $this->_connection->query('SHOW FULL COLUMNS FROM ' . self::sanitize($this->_name));\n\t\t\t\n\t\t\t// Retrieve Table Info\n\t\t\t$this->_properties = array();\n\t\t\t$rowTable = $resTable->fetch(\\PDO::FETCH_ASSOC);\n\t\t\t\n\t\t\t$this->_properties['engine'] = $rowTable['Engine'];\n\t\t\t$this->_properties['length'] = $rowTable['Data_length'];\n\t\t\t$this->_properties['rows'] = $rowTable['Rows'];\n\t\t\t$this->_properties['auto_increment'] = $rowTable['Auto_increment'];\n\t\t\t$this->_properties['collation'] = $rowTable['Collation'];\n\t\t\t$this->_properties['created'] = $rowTable['Create_time'];\n\t\t\t$this->_properties['updated'] = $rowTable['Update_time'];\n\t\t\t$this->_properties['comment'] = $rowTable['Comment'];\n\t\t\t\n\t\t\tif($rowTable['Comment'] != '' && substr($rowTable['Comment'], 0, 3) == 'map') {\n\t\t\t\t$this->_type = self::TYPE_MAP;\n\t\t\t}\n\t\t\telseif($rowTable['Comment'] == 'VIEW') {\n\t\t\t\t$this->_type = self::TYPE_VIEW;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->_type = self::TYPE_TABLE;\n\t\t\t\t\n\t\t\t\t// Determine Mappings\n\t\t\t\tif(trim($rowTable['Comment'])) {\n\t\t\t\t\t$mappings = explode('|', $rowTable['Comment']);\n\t\t\t\t\t$mappings = explode(':', $mappings[1]);\n\t\t\t\t\t$mappings = explode(',', $mappings[1]);\n\n\t\t\t\t\tforeach($mappings as $mapping) {\n\t\t\t\t\t\t$table = substr($mapping, 0, strpos($mapping, '('));\n\t\t\t\t\t\t$matches = array();\n\t\t\t\t\t\tpreg_match('#\\((.*?)\\)#', $mapping, $matches);\n\n\t\t\t\t\t\t\\Bedrock\\Common\\Logger::info('Mapping with table \"' . $table . '\" found: ' . $matches[1]);\n\n\t\t\t\t\t\tswitch($matches[1]) {\n\t\t\t\t\t\t\tcase 'one_one':\n\t\t\t\t\t\t\t\t$type = self::MAP_TYPE_ONE_ONE;\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tcase 'one_many':\n\t\t\t\t\t\t\t\t$type = self::MAP_TYPE_ONE_MANY;\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase 'many_one':\n\t\t\t\t\t\t\t\t$type = self::MAP_TYPE_MANY_ONE;\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase 'many_many':\n\t\t\t\t\t\t\t\t$type = self::MAP_TYPE_MANY_MANY;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$this->_mappings[$table] = $type;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Retrieve Column Info\n\t\t\t$this->_columns = array();\n\t\t\t$rows = $resColumns->fetchAll(\\PDO::FETCH_ASSOC);\n\t\t\t\n\t\t\tforeach($rows as $row) {\n\t\t\t\t$columnData = array();\n\t\t\t\t$type = substr($row['Type'], 0, strpos($row['Type'], '('));\n\t\t\t\t\n\t\t\t\tif(!$type) {\n\t\t\t\t\t$type = $row['Type'];\n\t\t\t\t}\n\n\t\t\t\t$length = substr($row['Type'], strpos($row['Type'], '('));\n\t\t\t\t$length = substr($length, 1, strpos($length, ')') - 1);\n\t\t\t\t\n\t\t\t\t$columnData = array('name' => $row['Field'],\n\t\t\t\t\t\t\t\t'type' => $type,\n\t\t\t\t\t\t\t\t'length' => $length,\n\t\t\t\t\t\t\t\t'null' => ($row['Null'] != 'NO'),\n\t\t\t\t\t\t\t\t'default' => $row['Default'],\n\t\t\t\t\t\t\t\t'primary_key' => ($row['Key'] == 'PRI'));\n\t\t\t\t\n\t\t\t\t// Set Foreign Key Type (if any)\n\t\t\t\tif($row['Comment'] != '' && substr($row['Comment'], 0, 2) == 'fk') {\n\t\t\t\t\t$columnData['foreign_key'] = substr($row['Comment'], 3);\n\t\t\t\t\t\n\t\t\t\t\tswitch($this->_mappings[$columnData['foreign_key']]) {\n\t\t\t\t\t\tcase self::MAP_TYPE_ONE_ONE:\n\t\t\t\t\t\t\t$columnData['foreign_key_type'] = \\Bedrock\\Model\\Column::FK_TYPE_ONE_TO_ONE;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase self::MAP_TYPE_ONE_MANY:\n\t\t\t\t\t\t\t$columnData['foreign_key_type'] = \\Bedrock\\Model\\Column::FK_TYPE_ONE_TO_MANY;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase self::MAP_TYPE_MANY_ONE:\n\t\t\t\t\t\t\t$columnData['foreign_key_type'] = \\Bedrock\\Model\\Column::FK_TYPE_MANY_TO_ONE;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase self::MAP_TYPE_MANY_MANY:\n\t\t\t\t\t\t\t$columnData['foreign_key_type'] = \\Bedrock\\Model\\Column::FK_TYPE_MANY_TO_MANY;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t$columnData['foreign_key_type'] = \\Bedrock\\Model\\Column::FK_TYPE_NONE;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$columnData['foreign_key_type'] = \\Bedrock\\Model\\Column::FK_TYPE_NONE;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$columnObj = new \\Bedrock\\Model\\Column($columnData);\n\t\t\t\t\n\t\t\t\t$this->_columns[] = $columnObj;\n\t\t\t\t\n\t\t\t\tif($columnData['primary_key']) {\n\t\t\t\t\t$this->_key_primary = $columnObj;\n\t\t\t\t}\n\t\t\t\telseif($columnData['foreign_key']) {\n\t\t\t\t\t$this->_keys_foreign[$columnData['foreign_key']] = $columnObj;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$this->_state = self::STATE_UNCHANGED;\n\t\t}\n\t\tcatch(\\PDOException $ex) {\n\t\t\t\\Bedrock\\Common\\Logger::exception($ex);\n\t\t\tthrow new \\Bedrock\\Model\\Exception('There was a problem retrieving the table information.');\n\t\t}\n\t\tcatch(\\Exception $ex) {\n\t\t\t\\Bedrock\\Common\\Logger::exception($ex);\n\t\t\tthrow new \\Bedrock\\Model\\Exception('There was a problem retrieving the table information.');\n\t\t}\n\t}", "title": "" }, { "docid": "cba8a44d906333fe11f640ab5f4f1ed6", "score": "0.59083486", "text": "public function loadSql($file, $params = array())\n\t{\n\t\t$data = file_get_contents( dirname(__FILE__).\"/sql/$file\" );\n\n\t\tif (!$data)\n\t\t\tthrow new Exception( \"file $file not found\" );\n\n\t\tforeach ($params as $key => $value)\n\t\t\t$data = str_replace(\"{\".$key.\"}\", $value, $data);\n\n\t\treturn str_replace(array(\"\\n\", \"\\r\", \"\\t\"), \" \", $data);\n\t}", "title": "" }, { "docid": "2e5d0fed483117d306bdfb3e69a584c4", "score": "0.59054804", "text": "public function load()\n\t{\n\t\t$pk = static::pk();\n\t\t$pk_val = $this->_data[$pk];\n\t\t$stmnt = static::db()->query(\n\t\t\t\t\t\"SELECT *\n\t\t\t\t\t FROM \".static::$_table.\"\n\t\t\t\t\t WHERE {$pk} = '{$pk_val}'\"\n\t\t);\n\t\t$data = $stmnt->fetch(\\PDO::FETCH_ASSOC);\n\t\tforeach($data as $k => $v) {\n\t\t\t$this->_data[$k] = $v;\n\t\t}\n\t\t$stmnt->closeCursor();\n\t}", "title": "" }, { "docid": "afa64df0871c14ac5a88f7586d4f4029", "score": "0.58995575", "text": "public function loadExternalData(){\n throw new Exception(\"Implementation needed\");\n }", "title": "" }, { "docid": "724073f56e9886d9fe36ac6573cd45fc", "score": "0.58927196", "text": "function pg_lo_import($connection = null, $filename) {}", "title": "" }, { "docid": "92b2e6ecfd4364c7c1962619687fe5e4", "score": "0.587753", "text": "public function createDataDb($dataPath = 'data/data.db');", "title": "" }, { "docid": "c50b4e217add2431447d48f41dd61ad3", "score": "0.5859288", "text": "public function load() {\n\t}", "title": "" }, { "docid": "e140d0eba7796c591af6b879216a981a", "score": "0.58553654", "text": "private function loadSQL($filePath, gosDB_ConnParams $connParams)\n {\n $cmd = 'mysql -u ' . escapeshellarg($connParams->getUser()) .' -p'. escapeshellarg($connParams->getPassword()) .' -h '. escapeshellarg($connParams->getHost()) .' -P '. $connParams->getPort() .' ' . escapeshellarg($connParams->getDBName()) . ' < ' . escapeshellcmd($filePath);\n //echo \"executing $cmd\\n\";\n exec($cmd);\n }", "title": "" }, { "docid": "ff4c0e87e62065727333455d6fb003c4", "score": "0.58468956", "text": "public function load()\n {\n }", "title": "" }, { "docid": "ff4c0e87e62065727333455d6fb003c4", "score": "0.58468956", "text": "public function load()\n {\n }", "title": "" }, { "docid": "5e64a3b45222e9dc80fc0d10de2cb208", "score": "0.58368266", "text": "protected function importTestData()\n {\n // remove foreign keys\n $stm = $this->conn->prepare(\"SET FOREIGN_KEY_CHECKS = 0\");\n $stm->execute();\n $stm->closeCursor();\n\n // drop all tables\n $tables = $this->conn->prepare(\"SHOW TABLES\");\n $tables->execute();\n if ($result = $tables->fetchAll()) {\n foreach ($result as $row) {\n $stm = $this->conn->prepare('DROP TABLE IF EXISTS ' . $row[0]);\n $stm->execute();\n $stm->closeCursor();\n }\n }\n $tables->closeCursor();\n\n $files = array(MIGRATE_FOLDER . 'database.sql', MIGRATE_FOLDER . 'test-data.sql');\n\n foreach ($files as $filename) {\n\n $testSQL = file_get_contents($filename);\n\n $stm = $this->conn->prepare($testSQL);\n $stm->execute();\n $stm->closeCursor();\n }\n\n // set back foreign keys\n $stm = $this->conn->prepare(\"SET FOREIGN_KEY_CHECKS = 1\");\n $stm->execute();\n $stm->closeCursor();\n }", "title": "" }, { "docid": "f6f4bc5fd99255a978b9612f9e22bee2", "score": "0.58361506", "text": "protected function load()\n {\n }", "title": "" }, { "docid": "cc825dd1a5622eb0ac61f0e48148672b", "score": "0.58359253", "text": "function load_data()\n\t{\n\t\tlog_debug(\"journal_base\", \"Executing load_data_sql()\");\n\n\t\tif (!$this->sql_obj->execute())\n\t\t\treturn 0;\n\n\t\tif (!$this->sql_obj->num_rows())\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->sql_obj->fetch_array();\n\t\t\t\t\n\t\t\treturn $this->sql_obj->data_num_rows;\n\t\t}\n\t}", "title": "" }, { "docid": "994cde14a080ddd5d232eef747d4047d", "score": "0.58297914", "text": "function loadFromDatabaseByName($name)\n\t{\n\t\tglobal $sql;\n\t\t$name = sql::Escape($name);\n\t\t$row = $sql->QueryRow(\"SELECT * FROM $this->tablename WHERE name='$name'\");\n\t\t$this->loadFromRow($row);\n\t}", "title": "" }, { "docid": "621a2b86896993c130fbb52c204639ff", "score": "0.58232445", "text": "private function souborDoDb() {\n $databasehost = DB_HOST;\n $databasename = DB_NAME;\n $databasetable = \"sap\";\n $databaseusername = DB_USER;\n $databasepassword = DB_PASS;\n $fieldseparator = \";\";\n $lineseparator = \"\\n\";\n if (ENVIRONMENT == 'PROD') {\n $csvfile = \"up/sap.csv\";\n } else {\n $csvfile = $_SERVER['DOCUMENT_ROOT'] . ROOT_DIR . \"up/sap.csv\";\n }\n\n\n if (!file_exists($csvfile)) {\n die(\"File not found.\");\n }\n\n try {\n $pdo = new PDO(\"mysql:host=$databasehost;dbname=$databasename\", $databaseusername, $databasepassword, array(\n PDO::MYSQL_ATTR_LOCAL_INFILE => true,\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\n PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES cp1250\"\n )\n );\n } catch (PDOException $e) {\n die(\"database connection failed: \" . $e->getMessage());\n }\n\n// print_r($this->szaloh->zalohujTabulku('sap'));\n $pdo->exec('delete from sap');\n\n $file = fopen($csvfile, \"r\");\n $rows = 0;\n while (($getData = fgetcsv($file, 10000, \";\")) !== FALSE) {\n// var_dump($getData);\n $data1 = str_replace('\"', ' ', $getData[1]);\n $data3 = str_replace('\"', ' ', $getData[3]);\n\n// $pdo->exec(\"insert into sap (zbozi, model, ean, popis, kusy, kategorie) values (/'\" . $getData[0] . \"/',/'\" . $getData[1] . \"/',/'\" . $getData[2] . \"/',/'\" . $getData[3] . \"/',/'\" . $getData[4] . \"/',/'\" . $getData[5] .\"/')\");\n $pdo->exec(\"insert into sap (zbozi, model, ean, popis, kusy, kategorie) values (\\\"\" . $getData[0] . \"\\\",\\\"\" . $data1 . \"\\\",\\\"\" . $getData[2] . \"\\\",\\\"\" . $data3 . \"\\\",\\\"\" . $getData[4] . \"\\\",\\\"\" . $getData[5] . \"\\\")\");\n $rows++;\n }\n\n// $affectedRows = $pdo->exec(\"\n// LOAD DATA LOCAL INFILE \" . $pdo->quote($csvfile) . \" INTO TABLE `$databasetable`\n// FIELDS TERMINATED BY \" . $pdo->quote($fieldseparator) . \"\n// LINES TERMINATED BY \" . $pdo->quote($lineseparator));\n\n return $rows;\n }", "title": "" }, { "docid": "b4f25abe12ef1acaab482a0a4c179571", "score": "0.58171874", "text": "public function beforeInsert()\n {\n $this->loadFile();\n }", "title": "" }, { "docid": "74ddc9bf79d5f8026dd5f3f1cf7a9faf", "score": "0.58142346", "text": "function load_all_database_table() {\r\n echo '{\"total\": false, \"data\":'.json_encode($this->data_import_model->load_all_database_table()).'}';\r\n }", "title": "" }, { "docid": "a9f94ff579c10e7cf9071a1f21e120aa", "score": "0.5812992", "text": "private function load()\r\n {\r\n if ($row = MySQL::fetchRecord(MySQL::executeQuery('SELECT * FROM training_training WHERE training_id='.(int)$this->id),MySQL::fmAssoc)) $this->dbFields = $row;\r\n else throw new Exception(\"Entry not found!\");\r\n }", "title": "" }, { "docid": "39e3b14c39a79bbf0154404a4a98e971", "score": "0.5812633", "text": "public function loadTable(){\n\t\t$tName = array($this->maker->table);\n\t\tforeach ($this->maker->join as $key => $value) {\n\t\t\tarray_push($tName, $value->table);\n\t\t}\n\t\tforeach ($tName as $key => $value) {\n\t\t\t$this->saveTable($value);\n\t\t}\n\t}", "title": "" }, { "docid": "e57e8952321d8a9ea2ba0d76b76d72c4", "score": "0.5804049", "text": "public function load() {\n \n }", "title": "" }, { "docid": "027e90ac7ad6010c1a17e3f4bd409fe3", "score": "0.57973284", "text": "function dbSource($dbConfig) {\r\n\r\n\t\t$executeStaus = false;\r\n\t $fname = $dbConfig['filename'];\r\n\t \r\n //connect to the server\r\n $mysql = mysql_connect($dbConfig['host'], $dbConfig['login'], $dbConfig['password']);\r\n if(!$mysql) {\r\n die('Could not connect: ' . mysql_error());\r\n return($error);\r\n } \r\n else {\r\n //Open the database\r\n $mysqldb = mysql_select_db($dbConfig['database']);\r\n if (!$mysqldb) {\r\n //TODO create database\r\n //return($error);\r\n }\t \r\n \t\t\r\n \t\t$fp = fopen( $fname, \"r\" );\r\n \t\tif ( false === $fp ) {\r\n \t\t\t//print \"Could not open \\\"{$fname}\\\".\\n\";\r\n \t\t\treturn false;\r\n \t\t}\r\n \t\r\n mysql_query('BEGIN');\r\n\r\n \t\t$cmd = \"\";\r\n \t\t$done = false;\r\n \t\r\n \t\twhile ( ! feof( $fp ) ) {\r\n \t\t\t$line = trim( fgets( $fp, 1024 ) );\r\n \t\t\t$sl = strlen( $line ) - 1;\r\n \t\r\n \t\t\tif ( $sl < 0 ) { continue; }\r\n \t\t\tif ( \"-\" == $line{0} && \"-\" == $line{1} ) { continue; }\r\n \t\r\n \t\t\tif ( \";\" == $line{$sl} ) {\r\n \t\t\t\t$done = true;\r\n \t\t\t\t$line = substr( $line, 0, $sl );\r\n \t\t\t}\r\n \t\r\n \t\t\tif ( \"\" != $cmd ) { $cmd .= \" \"; }\r\n \t\t\t$cmd .= $line;\r\n \t\r\n \t\t\tif ( $done ) {\r\n \t\t\t\t//echo $cmd . \";<br /><br /><br />\";\r\n \t\t\t\t$result = mysql_query($cmd, $mysql);\r\n if (!$result)\r\n {\r\n $error = \"Cannot run query\";\r\n mysql_query('ROLLBACK');\r\n mysql_close($mysql);\r\n return $error;\r\n }\r\n \t\t\t\t//if ($this->execute($cmd)) {\r\n \t\t\t\t//\treturn false;\r\n \t\t\t\t//}\r\n \t\t\t\t$cmd = \"\";\r\n \t\t\t\t$done = false;\r\n \t\t\t}\r\n \t\t}\r\n \t\tfclose( $fp );\r\n \t\tmysql_query(\"COMMIT\");\r\n \t\tmysql_close($mysql);\r\n \t}\r\n\t\treturn true;\r\n\t\t\r\n\t} \t\r\n\t\r\n\tfunction updateSystemParameters($data) \r\n {\r\n \t$this->SysParameter = new SysParameter;\r\n \t$superAdmin = null;\r\n \t\r\n\t\tif (!empty($data)) {\r\n\t\t\tforeach($data['SysParameter'] as $key => $value){\r\n\t\t\t\t$tmpSysParam = $this->SysParameter->findParameter($key);\r\n\t\t\t\t$tmpSysParam['SysParameter']['parameter_value'] = $value;\r\n\t\t\t\t$this->SysParameter->save($tmpSysParam);\r\n\t\t\t\t\r\n\t\t\t\tif ($key == 'system.super_admin') {\r\n\t\t\t\t\t$superAdmin = $value;\r\n\t\t\t\t}\r\n\t\t\t}\r\n } \r\n \treturn $superAdmin;\r\n }\r\n \r\n function importData($xml_file, $to_import, $dbConfig)\r\n {\r\n \tif(phpversion() < 5) {\r\n \t\t$this->_importDataPhp4($xml_file, $to_import);\r\n \t}\r\n else {\r\n \t$this->_importDataPhp5($xml_file, $to_import);\r\n }\r\n }\r\n \r\n function _importDataPhp4($xml_file, $to_import)\r\n {\r\n \t$this->User = new User;\r\n $this->Course = new Course;\r\n $this->Rubric = new Rubric;\r\n $this->RubricsLom = new RubricsLom;\r\n $this->RubricsCriteria = new RubricsCriteria;\r\n $this->RubricsCriteriaComment = new RubricsCriteriaComment;\r\n $this->SimpleEvaluation = new SimpleEvaluation;\r\n $this->Event = new Event;\r\n $this->UserCourse = new UserCourse;\r\n $this->UserEnrol = new UserEnrol;\r\n $this->Survey = new Survey;\r\n $this->SurveyQuestion = new SurveyQuestion;\r\n $this->Question = new Question;\r\n\r\n // get the xml file\r\n\r\n $dom = domxml_open_file($xml_file);\r\n \r\n foreach($to_import as $import)\r\n {\r\n \tswitch($import)\r\n {\r\n \tcase \"administrators\":\r\n case \"students\":\r\n case \"instructors\":\r\n $users = $dom->get_elements_by_tagname(\"users\");\r\n foreach($users as $user)\r\n {\r\n if($user->has_child_nodes()) \r\n {\r\n \t// find fields\r\n $user_id = $this->_getValueByTagNamePhp4($user, \"user_id\");\r\n $username = $this->_getValueByTagNamePhp4($user, \"username\");\r\n $password = $this->_getValueByTagNamePhp4($user, \"password\");\r\n $first_name = $this->_getValueByTagNamePhp4($user, \"first_name\");\r\n $last_name = $this->_getValueByTagNamePhp4($user, \"last_name\");\r\n $student_number = $this->_getValueByTagNamePhp4($user, \"student_number\");\r\n $user_type = $this->_getValueByTagNamePhp4($user, \"user_type\");\r\n $last_login = $this->_getValueByTagNamePhp4($user, \"last_login\");\r\n $email = $this->_getValueByTagNamePhp4($user, \"email\");\r\n $title = $this->_getValueByTagNamePhp4($user, \"title\");\r\n \r\n switch($user_type)\r\n {\r\n case \"instructor\":\r\n $role = \"I\";\r\n break;\r\n case \"student\":\r\n $role = \"S\";\r\n break;\r\n case \"administrator\":\r\n $role = \"A\";\r\n break;\r\n }\r\n \r\n $to_save['User']['id'] = $user_id;\r\n $to_save['User']['username'] = $username;\r\n $to_save['User']['password'] = $password;\r\n $to_save['User']['first_name'] = $first_name;\r\n $to_save['User']['last_name'] = $last_name;\r\n $to_save['User']['student_no'] = $student_number; //student_number\r\n $to_save['User']['last_login'] = $last_login;\r\n $to_save['User']['email'] = $email;\r\n $to_save['User']['title'] = $title;\r\n $to_save['User']['role'] = $role; //user_type\r\n $to_save['User']['record_status'] = 'A';\r\n $to_save['User']['creator_id'] = 1;\r\n \r\n // save to database\r\n // special case for \"root\" user\r\n if($username == 'root') {\r\n \t$to_save['User']['id'] = 1;\r\n \t$this->User->save();\r\n }\r\n else {\r\n $this->User->directSave($to_save);\r\n }\r\n\r\n $this->User->id = null;\r\n $to_save = null;\r\n }\r\n }\r\n break;\r\n case \"courses\":\r\n $courses = $dom->get_elements_by_tagname(\"courses\");\r\n foreach($courses as $course)\r\n {\r\n \tif($course->has_child_nodes())\r\n {\r\n \t// find fields\r\n \r\n $course_id = $this->_getValueByTagNamePhp4($course, \"course_id\");\r\n $course_no = $this->_getValueByTagNamePhp4($course, \"course\");\r\n $title = $this->_getValueByTagNamePhp4($course, \"title\");\r\n $homepage = $this->_getValueByTagNamePhp4($course, \"homepage\");\r\n $status = $this->_getValueByTagNamePhp4($course, \"status\");\r\n $owner = $this->_getValueByTagNamePhp4($course, \"user_id\"); // UserCourses...\r\n \r\n $user_course['UserCourse']['user_id'] = $owner;\r\n $user_course['UserCourse']['course_id'] = $course_id;\r\n \r\n if($status == 'active')\r\n {\r\n $record_status = 'A';\r\n }\r\n else \r\n {\r\n $record_status = 'I';\r\n }\r\n \r\n $course_data['Course']['id'] = $course_id;\r\n $course_data['Course']['course'] = $course_no;\r\n $course_data['Course']['title'] = $title;\r\n $course_data['Course']['homepage'] = $homepage;\r\n $course_data['Course']['record_status'] = $record_status;\r\n $course_date['Course']['creator_id'] = $owner;\r\n \r\n $this->Course->directSave($course_data);\r\n $this->Course->id = null;\r\n $course_data = null;\r\n \r\n $this->UserCourse->save($user_course);\r\n $this->UserCourse->id = null;\r\n $user_course = null;\r\n \r\n }\r\n }\r\n $courses = null;\r\n break;\r\n case \"rubrics\":\r\n // get everything from the rubrics table\r\n // put all rows into the new rubrics table\r\n $rubrics = $dom->get_elements_by_tagname(\"rubrics\");\r\n foreach($rubrics as $rubric)\r\n {\r\n \tif($rubric->has_child_nodes())\r\n {\r\n \t// get fields associated with this table\r\n $rubric_id = $this->_getValueByTagNamePhp4($rubric, \"rubric_id\");\r\n $rubric_name = $this->_getValueByTagNamePhp4($rubric, \"name\");\r\n $rubric_creator = $this->_getValueByTagNamePhp4($rubric, \"user_id\");\r\n $rubric_total_mark = $this->_getValueByTagNamePhp4($rubric, \"total_mark\");\r\n $rubric_zero = $this->_getValueByTagNamePhp4($rubric, \"zero_mark\");\r\n $rubric_lom_max = $this->_getValueByTagNamePhp4($rubric, \"lom_max\");\r\n $rubric_criteria = $this->_getValueByTagNamePhp4($rubric, \"criteria\");\r\n $rubric_availability = $this->_getValueByTagNamePhp4($rubric, \"availability\");\r\n $rubric_template = $this->_getValueByTagNamePhp4($rubric, \"template\");\r\n \r\n \r\n // do some translation here...\r\n if($rubric_zero) {\r\n $rubric_zero_mark = 'ON';\r\n }\r\n else {\r\n $rubric_zero_mark = 'OFF';\r\n }\r\n \r\n // put data into the format that CakePHP likes...\r\n $rubric_data['Rubric']['id'] = $rubric_id;\r\n $rubric_data['Rubric']['name'] = $rubric_name;\r\n $rubric_data['Rubric']['total_marks'] = $rubric_total_mark;\r\n $rubric_data['Rubric']['zero_mark'] = $rubric_zero_mark;\r\n $rubric_data['Rubric']['lom_max'] = $rubric_lom_max;\r\n $rubric_data['Rubric']['criteria'] = $rubric_criteria;\r\n $rubric_data['Rubric']['availability'] = $rubric_availability;\r\n $rubric_data['Rubric']['template'] = $rubric_template;\r\n $rubric_data['Rubric']['creator_id'] = $rubric_creator;\r\n \r\n // save!\r\n $this->Rubric->directSave($rubric_data);\r\n $this->Rubric->id = null;\r\n $rubric_data = null;\r\n }\r\n }\r\n $rubrics = null;\r\n \r\n // get everything from the rubrics_lom table\r\n // put all the rows into the new rubrics_loms table\r\n $rubrics_lom = $dom->get_elements_by_tagname(\"rubrics_lom\");\r\n foreach($rubrics_lom as $lom)\r\n {\r\n \t// get fields associated with this table\r\n $lom_rubric_id = $this->_getValueByTagNamePhp4($lom, \"rubric_id\");\r\n $lom_number = $this->_getValueByTagNamePhp4($lom, \"lom_number\");\r\n $lom_comment = $this->_getValueByTagNamePhp4($lom, \"lom_comment\");\r\n \r\n // no translation needed here...\r\n \r\n // put data into the format that CakePHP likes...\r\n $rubrics_lom_data['RubricsLom']['rubric_id'] = $lom_rubric_id;\r\n $rubrics_lom_data['RubricsLom']['lom_num'] = $lom_number;\r\n $rubrics_lom_data['RubricsLom']['lom_comment'] = $lom_comment;\r\n \r\n // save!\r\n $this->RubricsLom->directSave($rubrics_lom_data);\r\n $this->RubricsLom->id = null;\r\n $rubrics_lom_data = null;\r\n }\r\n $rubrics_lom = null;\r\n \r\n // get everything from the rubrics_criteria_comments table\r\n // put all the rows into the new rubrics_criteria_comments table\r\n $rubrics_criteria_comments = $dom->get_elements_by_tagname(\"rubrics_criteria_comments\");\r\n foreach($rubrics_criteria_comments as $rcc)\r\n {\r\n // get fields associated with this table\r\n $rcc_rubric_id = $this->_getValueByTagNamePhp4($rcc, \"rubric_id\");\r\n $rcc_criteria_num = $this->_getValueByTagNamePhp4($rcc, \"criteria_number\");\r\n $rcc_lom_num = $this->_getValueByTagNamePhp4($rcc, \"lom_number\");\r\n $rcc_criteria_comment = $this->_getValueByTagNamePhp4($rcc, \"criteria_comment\");\r\n \r\n // no translation needed here...\r\n \r\n // put data into the format that CakePHP likes...\r\n $rcc_data['RubricsCriteriaComment']['rubric_id'] = $rcc_rubric_id;\r\n $rcc_data['RubricsCriteriaComment']['criteria_num'] = $rcc_criteria_num;\r\n $rcc_data['RubricsCriteriaComment']['lom_num'] = $rcc_lom_num;\r\n $rcc_data['RubricsCriteriaComment']['criteria_comment'] = $rcc_criteria_comment;\r\n \r\n // save!\r\n $this->RubricsCriteriaComment->directSave($rcc_data);\r\n $this->RubricsCriteriaComment->id = null;\r\n $rcc_data = null;\r\n }\r\n $rubrics_criteria_comments = null;\r\n \r\n // get everything from the rubrics_criteria table\r\n // put all the rows into the new rubrics_criterias table\r\n $rubrics_criteria = $dom->get_elements_by_tagname(\"rubrics_criteria\");\r\n foreach($rubrics_criteria as $criterium)\r\n {\r\n // get fields associated with this table\r\n $rc_rubric_id = $this->_getValueByTagNamePhp4($criterium, \"rubric_id\");\r\n $rc_criteria_number = $this->_getValueByTagNamePhp4($criterium, \"criteria_number\");\r\n $rc_criteria = $this->_getValueByTagNamePhp4($criterium, \"criteria\");\r\n $rc_multiplier = $this->_getValueByTagNamePhp4($criterium, \"multiplier\");\r\n \r\n // no translation needed here\r\n \r\n // put data into the format that CakePHP likes...\r\n $criteria_data['RubricsCriteria']['rubric_id'] = $rc_rubric_id;\r\n $criteria_data['RubricsCriteria']['criteria_num'] = $rc_criteria_number;\r\n $criteria_data['RubricsCriteria']['criteria'] = $rc_criteria;\r\n $criteria_data['RubricsCriteria']['multiplier'] = $rc_multiplier;\r\n\r\n // save\r\n $this->RubricsCriteria->directSave($criteria_data);\r\n $this->RubricsCriteria->id = null;\r\n $criteria_data = null;\r\n }\r\n $rubrics_criteria = null;\r\n break;\r\n case \"simple_evals\":\r\n // get everything form the simple_evaluations table...this really should be in a function call...\r\n $simple_evals = $dom->get_elements_by_tagname('simple_evaluations');\r\n foreach($simple_evals as $simple)\r\n {\r\n \t$se_id = $this->_getValueByTagNamePhp4($simple, 'se_id');\r\n $se_name = $this->_getValueByTagNamePhp4($simple, 'name');\r\n $se_description = $this->_getValueByTagNamePhp4($simple, 'description');\r\n $se_points_member = $this->_getValueByTagNamePhp4($simple, 'points_member');\r\n $se_user_id = $this->_getValueByTagNamePhp4($simple, 'user_id');\r\n \r\n $se_data['SimpleEvaluation']['id'] = $se_id;\r\n $se_data['SimpleEvaluation']['name'] = $se_name;\r\n $se_data['SimpleEvaluation']['description'] = $se_description;\r\n $se_data['SimpleEvaluation']['point_per_member'] = $se_points_member;\r\n $se_data['SimpleEvaluation']['creator_id'] = $se_user_id;\r\n \r\n $this->SimpleEvaluation->directSave($se_data);\r\n $this->SimpleEvaluation->id = null;\r\n $se_data = null;\r\n }\r\n $simple_evals = null;\r\n break;\r\n case \"assignments\":\r\n $assignments = $dom->get_elements_by_tagname('assignments');\r\n foreach($assignments as $assign)\r\n {\r\n \t$asn_id = $this->_getValueByTagNamePhp4($assign, 'asn_id');\r\n $asn_title = $this->_getValueByTagNamePhp4($assign, 'title');\r\n $asn_course_id = $this->_getValueByTagNamePhp4($assign, 'course_id');\r\n $asn_description = $this->_getValueByTagNamePhp4($assign, 'description');\r\n $asn_due = $this->_getValueByTagNamePhp4($assign, 'due_date');\r\n $asn_release_begin = $this->_getValueByTagNamePhp4($assign, 'release_date_begin');\r\n $asn_release_end = $this->_getValueByTagNamePhp4($assign, 'release_date_end');\r\n $asn_comment_req = $this->_getValueByTagNamePhp4($assign, 'com_req');\r\n $asn_selfeval_allowed = $this->_getValueByTagNamePhp4($assign, 'self_eval');\r\n $asn_eval_type = $this->_getValueByTagNamePhp4($assign, 'eval_type');\r\n \r\n if($asn_eval_type == 2) // simple evaluation\r\n {\r\n $event_template_type_id = 1;\r\n }\r\n else if($asn_eval_type == 1) // rubric evaluation\r\n {\r\n \t$event_template_type_id = 2;\r\n }\r\n \r\n $event_data['Event']['id'] = $asn_id;\r\n $event_data['Event']['course_id'] = $asn_course_id;\r\n $event_data['Event']['title'] = $asn_title;\r\n $event_data['Event']['description'] = $asn_description;\r\n $event_data['Event']['due_date'] = $asn_due;\r\n $event_data['Event']['release_date_begin'] = $asn_release_begin;\r\n $event_data['Event']['release_date_end'] = $asn_release_end;\r\n $event_data['Event']['creator_id'] = 1; // root user\r\n $event_data['Event']['com_req'] = $asn_comment_req;\r\n $event_data['Event']['self_eval'] = $asn_selfeval_allowed;\r\n $event_data['Event']['event_template_type_id'] = $event_template_type_id;\r\n \r\n $this->Event->directSave($event_data);\r\n $this->Event->id = null;\r\n }\r\n break;\r\n case \"enrols\":\r\n $enrols = $dom->get_elements_by_tagname('enrols');\r\n \r\n foreach($enrols as $enrol)\r\n {\r\n \t$user_id = $this->_getValueByTagNamePhp4($enrol, 'user_id');\r\n $course_id = $this->_getValueByTagNamePhp4($enrol, 'course_id');\r\n \r\n $enrol_data['UserEnrol']['user_id'] = $user_id;\r\n $enrol_data['UserEnrol']['course_id'] = $course_id;\r\n $enrol_data['UserEnrol']['creator_id'] = 1; // root\r\n \r\n $this->UserEnrol->save($enrol_data);\r\n $this->UserEnrol->id = null;\r\n }\r\n \r\n break;\r\n case \"surveys\":\r\n $surveys = $dom->get_elements_by_tagname('surveys');\r\n \r\n foreach($surveys as $survey)\r\n {\r\n $svy_id = $this->_getValueByTagNamePhp4($survey, 'survey_id');\r\n $svy_user_id = $this->_getValueByTagNamePhp4($survey, 'user_id');\r\n $svy_course_id = $this->_getValueByTagNamePhp4($survey, 'course_id');\r\n $svy_title = $this->_getValueByTagNamePhp4($survey, 'title');\r\n $svy_due_date = $this->_getValueByTagNamePhp4($survey, 'due_date');\r\n $svy_release_date_begin = $this->_getValueByTagNamePhp4($survey, 'release_date_begin');\r\n $svy_release_date_end = $this->_getValueByTagNamePhp4($survey, 'release_date_end');\r\n $svy_released = $this->_getValueByTagNamePhp4($survey, 'released'); \r\n \r\n $svy_data['Survey']['id'] = $svy_id;\r\n $svy_data['Survey']['user_id'] = $svy_user_id;\r\n $svy_data['Survey']['course_id'] = $svy_course_id;\r\n $svy_data['Survey']['name'] = $svy_title;\r\n $svy_data['Survey']['due_date'] = $svy_due_date;\r\n $svy_data['Survey']['release_date_begin'] = $svy_release_date_begin;\r\n $svy_data['Survey']['release_date_end'] = $svy_release_date_end;\r\n $svy_data['Survey']['released'] = $svy_released;\r\n $svy_data['Survey']['creator_id'] = $svy_user_id;\r\n \r\n $this->Survey->directSave($svy_data);\r\n $this->Survey->id = null;\r\n }\r\n \r\n $questions = $dom->get_elements_by_tagname('questions');\r\n foreach($questions as $question)\r\n {\r\n \r\n $question_m = $this->_getValueByTagNamePhp4($question, 'multiple_choice');\r\n $question_c = $this->_getValueByTagNamePhp4($question, 'choose_any_of');\r\n $question_s = $this->_getValueByTagNamePhp4($question, 'short_input');\r\n $question_l = $this->_getValueByTagNamePhp4($question, 'long_input');\r\n \r\n $question_data['Question']['id'] = $this->_getValueByTagNamePhp4($question, 'question_id');\r\n $question_data['Question']['prompt'] = $this->_getValueByTagNamePhp4($question, 'prompt');\r\n $question_data['Question']['master'] = 'yes';\r\n \r\n if($question_m) \r\n {\r\n $question_data['Question']['type'] = 'M'; \r\n }\r\n else if ($question_c)\r\n {\r\n $question_data['Question']['type'] = 'C';\r\n }\r\n else if ($question_s)\r\n {\r\n $question_data['Question']['type'] = 'S';\r\n }\r\n else if($question_l)\r\n {\r\n $question_data['Question']['type'] = 'L';\r\n }\r\n \r\n $this->Question->directSave($question_data);\r\n $this->Question->id = null;\r\n }\r\n \r\n $svy_questions = $dom->get_elements_by_tagname('survey_questions');\r\n foreach($svy_questions as $svy_q)\r\n {\r\n \r\n $svy_q_data['SurveyQuestion']['survey_id'] = $this->_getValueByTagNamePhp4($svy_q, 'survey_id');\r\n $svy_q_data['SurveyQuestion']['number'] = $this->_getValueByTagNamePhp4($svy_q, 'number');\r\n $svy_q_data['SurveyQuestion']['question_id'] = $this->_getValueByTagNamePhp4($svy_q, 'question_id');\r\n \r\n $this->SurveyQuestion->save($svy_q_data);\r\n $this->SurveyQuestion->id = null;\r\n }\r\n \r\n break;\r\n }\r\n }\r\n }\r\n \r\n function _importDataPhp5($xml_file, $to_import)\r\n {\r\n \t$this->User = new User;\r\n $this->Course = new Course;\r\n $this->Rubric = new Rubric;\r\n $this->RubricsLom = new RubricsLom;\r\n $this->RubricsCriteria = new RubricsCriteria;\r\n $this->RubricsCriteriaComment = new RubricsCriteriaComment;\r\n $this->SimpleEvaluation = new SimpleEvaluation;\r\n $this->Event = new Event;\r\n $this->UserCourse = new UserCourse;\r\n $this->UserEnrol = new UserEnrol;\r\n $this->Survey = new Survey;\r\n $this->SurveyQuestion = new SurveyQuestion;\r\n $this->Question = new Question;\r\n \r\n $dom = new DomDocument();\r\n $dom->load($xml_file);\r\n \r\n foreach($to_import as $import)\r\n {\r\n switch($import)\r\n {\r\n case \"administrators\":\r\n case \"students\":\r\n case \"instructors\":\r\n $users = $dom->getElementsByTagName(\"users\");\r\n foreach($users as $user)\r\n {\r\n if($user->hasChildNodes()) \r\n {\r\n // find fields\r\n $user_id = $this->_getValueByTagNamePhp5($user, \"user_id\");\r\n $username = $this->_getValueByTagNamePhp5($user, \"username\");\r\n $password = $this->_getValueByTagNamePhp5($user, \"password\");\r\n $first_name = $this->_getValueByTagNamePhp5($user, \"first_name\");\r\n $last_name = $this->_getValueByTagNamePhp5($user, \"last_name\");\r\n $student_number = $this->_getValueByTagNamePhp5($user, \"student_number\");\r\n $user_type = $this->_getValueByTagNamePhp5($user, \"user_type\");\r\n $last_login = $this->_getValueByTagNamePhp5($user, \"last_login\");\r\n $email = $this->_getValueByTagNamePhp5($user, \"email\");\r\n $title = $this->_getValueByTagNamePhp5($user, \"title\");\r\n \r\n switch($user_type)\r\n {\r\n case \"instructor\":\r\n $role = \"I\";\r\n break;\r\n case \"student\":\r\n $role = \"S\";\r\n break;\r\n case \"administrator\":\r\n $role = \"A\";\r\n break;\r\n }\r\n \r\n $to_save['User']['id'] = $user_id;\r\n $to_save['User']['username'] = $username;\r\n $to_save['User']['password'] = $password;\r\n $to_save['User']['first_name'] = $first_name;\r\n $to_save['User']['last_name'] = $last_name;\r\n $to_save['User']['student_no'] = $student_number; //student_number\r\n $to_save['User']['last_login'] = $last_login;\r\n $to_save['User']['email'] = $email;\r\n $to_save['User']['title'] = $title;\r\n $to_save['User']['role'] = $role; //user_type\r\n $to_save['User']['record_status'] = 'A';\r\n $to_save['User']['creator_id'] = 1;\r\n \r\n // save to database\r\n // special case for \"root\" user\r\n if($username == 'root') {\r\n $to_save['User']['id'] = 1;\r\n $this->User->save();\r\n }\r\n else {\r\n $this->User->directSave($to_save);\r\n }\r\n\r\n $this->User->id = null;\r\n $to_save = null;\r\n }\r\n }\r\n break;\r\n case \"courses\":\r\n $courses = $dom->getElementsByTagName(\"courses\");\r\n foreach($courses as $course)\r\n {\r\n if($course->hasChildNodes())\r\n {\r\n // find fields\r\n \r\n $course_id = $this->_getValueByTagNamePhp5($course, \"course_id\");\r\n $course_no = $this->_getValueByTagNamePhp5($course, \"course\");\r\n $title = $this->_getValueByTagNamePhp5($course, \"title\");\r\n $homepage = $this->_getValueByTagNamePhp5($course, \"homepage\");\r\n $status = $this->_getValueByTagNamePhp5($course, \"status\");\r\n $owner = $this->_getValueByTagNamePhp5($course, \"user_id\"); // UserCourses...\r\n \r\n $user_course['UserCourse']['user_id'] = $owner_id;\r\n $user_course['UserCourse']['course_id'] = $course_id;\r\n \r\n if($status == 'active')\r\n {\r\n $record_status = 'A';\r\n }\r\n else \r\n {\r\n $record_status = 'I';\r\n }\r\n \r\n $course_data['Course']['id'] = $course_id;\r\n $course_data['Course']['course'] = $course_no;\r\n $course_data['Course']['title'] = $title;\r\n $course_data['Course']['homepage'] = $homepage;\r\n $course_data['Course']['record_status'] = $record_status;\r\n $course_date['Course']['creator_id'] = $owner;\r\n \r\n $this->Course->directSave($course_data);\r\n $this->Course->id = null;\r\n $course_data = null;\r\n \r\n $this->UserCourse->save($user_course);\r\n $user_course = null;\r\n \r\n }\r\n }\r\n $courses = null;\r\n break;\r\n case \"rubrics\":\r\n // get everything from the rubrics table\r\n // put all rows into the new rubrics table\r\n $rubrics = $dom->getElementsByTagName(\"rubrics\");\r\n foreach($rubrics as $rubric)\r\n {\r\n if($rubric->hasChildNodes())\r\n {\r\n // get fields associated with this table\r\n $rubric_id = $this->_getValueByTagNamePhp5($rubric, \"rubric_id\");\r\n $rubric_name = $this->_getValueByTagNamePhp5($rubric, \"name\");\r\n $rubric_creator = $this->_getValueByTagNamePhp5($rubric, \"user_id\");\r\n $rubric_total_mark = $this->_getValueByTagNamePhp5($rubric, \"total_mark\");\r\n $rubric_zero = $this->_getValueByTagNamePhp5($rubric, \"zero_mark\");\r\n $rubric_lom_max = $this->_getValueByTagNamePhp5($rubric, \"lom_max\");\r\n $rubric_criteria = $this->_getValueByTagNamePhp5($rubric, \"criteria\");\r\n $rubric_availability = $this->_getValueByTagNamePhp5($rubric, \"availability\");\r\n $rubric_template = $this->_getValueByTagNamePhp5($rubric, \"template\");\r\n \r\n \r\n // do some translation here...\r\n if($rubric_zero) {\r\n $rubric_zero_mark = 'ON';\r\n }\r\n else {\r\n $rubric_zero_mark = 'OFF';\r\n }\r\n \r\n // put data into the format that CakePHP likes...\r\n $rubric_data['Rubric']['id'] = $rubric_id;\r\n $rubric_data['Rubric']['name'] = $rubric_name;\r\n $rubric_data['Rubric']['total_marks'] = $rubric_total_mark;\r\n $rubric_data['Rubric']['zero_mark'] = $rubric_zero_mark;\r\n $rubric_data['Rubric']['lom_max'] = $rubric_lom_max;\r\n $rubric_data['Rubric']['criteria'] = $rubric_criteria;\r\n $rubric_data['Rubric']['availability'] = $rubric_availability;\r\n $rubric_data['Rubric']['template'] = $rubric_template;\r\n $rubric_data['Rubric']['creator_id'] = $rubric_creator;\r\n \r\n // save!\r\n $this->Rubric->directSave($rubric_data);\r\n $this->Rubric->id = null;\r\n $rubric_data = null;\r\n }\r\n }\r\n $rubrics = null;\r\n \r\n // get everything from the rubrics_lom table\r\n // put all the rows into the new rubrics_loms table\r\n $rubrics_lom = $dom->getElementsByTagName(\"rubrics_lom\");\r\n foreach($rubrics_lom as $lom)\r\n {\r\n // get fields associated with this table\r\n $lom_rubric_id = $this->_getValueByTagNamePhp5($lom, \"rubric_id\");\r\n $lom_number = $this->_getValueByTagNamePhp5($lom, \"lom_number\");\r\n $lom_comment = $this->_getValueByTagNamePhp5($lom, \"lom_comment\");\r\n \r\n // no translation needed here...\r\n \r\n // put data into the format that CakePHP likes...\r\n $rubrics_lom_data['RubricsLom']['rubric_id'] = $lom_rubric_id;\r\n $rubrics_lom_data['RubricsLom']['lom_num'] = $lom_number;\r\n $rubrics_lom_data['RubricsLom']['lom_comment'] = $lom_comment;\r\n \r\n // save!\r\n $this->RubricsLom->directSave($rubrics_lom_data);\r\n $this->RubricsLom->id = null;\r\n $rubrics_lom_data = null;\r\n }\r\n $rubrics_lom = null;\r\n \r\n // get everything from the rubrics_criteria_comments table\r\n // put all the rows into the new rubrics_criteria_comments table\r\n $rubrics_criteria_comments = $dom->getElementsByTagName(\"rubrics_criteria_comments\");\r\n foreach($rubrics_criteria_comments as $rcc)\r\n {\r\n // get fields associated with this table\r\n $rcc_rubric_id = $this->_getValueByTagNamePhp5($rcc, \"rubric_id\");\r\n $rcc_criteria_num = $this->_getValueByTagNamePhp5($rcc, \"criteria_number\");\r\n $rcc_lom_num = $this->_getValueByTagNamePhp5($rcc, \"lom_number\");\r\n $rcc_criteria_comment = $this->_getValueByTagNamePhp5($rcc, \"criteria_comment\");\r\n \r\n // no translation needed here...\r\n \r\n // put data into the format that CakePHP likes...\r\n $rcc_data['RubricsCriteriaComment']['rubric_id'] = $rcc_rubric_id;\r\n $rcc_data['RubricsCriteriaComment']['criteria_num'] = $rcc_criteria_num;\r\n $rcc_data['RubricsCriteriaComment']['lom_num'] = $rcc_lom_num;\r\n $rcc_data['RubricsCriteriaComment']['criteria_comment'] = $rcc_criteria_comment;\r\n \r\n // save!\r\n $this->RubricsCriteriaComment->directSave($rcc_data);\r\n $this->RubricsCriteriaComment->id = null;\r\n $rcc_data = null;\r\n }\r\n $rubrics_criteria_comments = null;\r\n \r\n // get everything from the rubrics_criteria table\r\n // put all the rows into the new rubrics_criterias table\r\n $rubrics_criteria = $dom->getElementsByTagName(\"rubrics_criteria\");\r\n foreach($rubrics_criteria as $criterium)\r\n {\r\n // get fields associated with this table\r\n $rc_rubric_id = $this->_getValueByTagNamePhp5($criterium, \"rubric_id\");\r\n $rc_criteria_number = $this->_getValueByTagNamePhp5($criterium, \"criteria_number\");\r\n $rc_criteria = $this->_getValueByTagNamePhp5($criterium, \"criteria\");\r\n $rc_multiplier = $this->_getValueByTagNamePhp5($criterium, \"multiplier\");\r\n \r\n // no translation needed here\r\n \r\n // put data into the format that CakePHP likes...\r\n $criteria_data['RubricsCriteria']['rubric_id'] = $rc_rubric_id;\r\n $criteria_data['RubricsCriteria']['criteria_num'] = $rc_criteria_number;\r\n $criteria_data['RubricsCriteria']['criteria'] = $rc_criteria;\r\n $criteria_data['RubricsCriteria']['multiplier'] = $rc_multiplier;\r\n\r\n // save\r\n $this->RubricsCriteria->directSave($criteria_data);\r\n $this->RubricsCriteria->id = null;\r\n $criteria_data = null;\r\n }\r\n $rubrics_criteria = null;\r\n break;\r\n case \"simple_evals\":\r\n // get everything form the simple_evaluations table...this really should be in a function call...\r\n $simple_evals = $dom->getElementsByTagName('simple_evaluations');\r\n foreach($simple_evals as $simple)\r\n {\r\n $se_id = $this->_getValueByTagNamePhp5($simple, 'se_id');\r\n $se_name = $this->_getValueByTagNamePhp5($simple, 'name');\r\n $se_description = $this->_getValueByTagNamePhp5($simple, 'description');\r\n $se_points_member = $this->_getValueByTagNamePhp5($simple, 'points_member');\r\n $se_user_id = $this->_getValueByTagNamePhp5($simple, 'user_id');\r\n \r\n $se_data['SimpleEvaluation']['id'] = $se_id;\r\n $se_data['SimpleEvaluation']['name'] = $se_name;\r\n $se_data['SimpleEvaluation']['description'] = $se_description;\r\n $se_data['SimpleEvaluation']['point_per_member'] = $se_points_member;\r\n $se_data['SimpleEvaluation']['user_id'] = $se_user_id;\r\n \r\n $this->SimpleEvaluation->directSave($se_data);\r\n $this->SimpleEvaluation->id = null;\r\n $se_data = null;\r\n }\r\n $simple_evals = null;\r\n break;\r\n case \"assignments\":\r\n $assignments = $dom->getElementsByTagName('assignments');\r\n foreach($assignments as $assign)\r\n {\r\n $asn_id = $this->_getValueByTagNamePhp5($assign, 'asn_id');\r\n $asn_title = $this->_getValueByTagNamePhp5($assign, 'title');\r\n $asn_course_id = $this->_getValueByTagNamePhp5($assign, 'course_id');\r\n $asn_description = $this->_getValueByTagNamePhp5($assign, 'description');\r\n $asn_due = $this->_getValueByTagNamePhp5($assign, 'due_date');\r\n $asn_release_begin = $this->_getValueByTagNamePhp5($assign, 'release_date_begin');\r\n $asn_release_end = $this->_getValueByTagNamePhp5($assign, 'release_date_end');\r\n $asn_comment_req = $this->_getValueByTagNamePhp5($assign, 'com_req');\r\n $asn_selfeval_allowed = $this->_getValueByTagNamePhp5($assign, 'self_eval');\r\n $asn_eval_type = $this->_getValueByTagNamePhp5($assign, 'eval_type');\r\n \r\n if($asn_eval_type == 2) // simple evaluation\r\n {\r\n $event_template_type_id = 1;\r\n }\r\n else if($asn_eval_type == 1) // rubric evaluation\r\n {\r\n $event_template_type_id = 2;\r\n }\r\n \r\n $event_data['Event']['id'] = $asn_id;\r\n $event_data['Event']['course_id'] = $asn_course_id;\r\n $event_data['Event']['title'] = $asn_title;\r\n $event_data['Event']['description'] = $asn_description;\r\n $event_data['Event']['due_date'] = $asn_due;\r\n $event_data['Event']['release_date_begin'] = $asn_release_begin;\r\n $event_data['Event']['release_date_end'] = $asn_release_end;\r\n $event_data['Event']['creator_id'] = 1; // root user\r\n $event_data['Event']['com_req'] = $asn_comment_req;\r\n $event_data['Event']['self_eval'] = $asn_selfeval_allowed;\r\n $event_data['Event']['event_template_type_id'] = $event_template_type_id;\r\n \r\n $this->Event->directSave($event_data);\r\n $this->Event->id = null;\r\n }\r\n break;\r\n case \"enrols\":\r\n $enrols = $dom->getElementsByTagName('enrols');\r\n \r\n foreach($enrols as $enrol)\r\n {\r\n $user_id = $this->_getValueByTagNamePhp5($enrol, 'user_id');\r\n $course_id = $this->_getValueByTagNamePhp5($enrol, 'course_id');\r\n \r\n $enrol_data['UserEnrol']['user_id'] = $user_id;\r\n $enrol_data['UserEnrol']['course_id'] = $course_id;\r\n \r\n $this->UserEnrol->save($enrol_data);\r\n $this->UserEnrol->id = null;\r\n }\r\n \r\n break;\r\n case \"surveys\":\r\n $surveys = $dom->getElementsByTagName('surveys');\r\n \r\n foreach($surveys as $survey)\r\n {\r\n \t$svy_id = $this->_getValueByTagNamePhp5($survey, 'survey_id');\r\n $svy_user_id = $this->_getValueByTagNamePhp5($survey, 'user_id');\r\n $svy_course_id = $this->_getValueByTagNamePhp5($survey, 'course_id');\r\n $svy_title = $this->_getValueByTagNamePhp5($survey, 'title');\r\n $svy_due_date = $this->_getValueByTagNamePhp5($survey, 'due_date');\r\n $svy_release_date_begin = $this->_getValueByTagNamePhp5($survey, 'release_date_begin');\r\n $svy_release_date_end = $this->_getValueByTagNamePhp5($survey, 'release_date_end');\r\n $svy_released = $this->_getValueByTagNamePhp5($survey, 'released'); \r\n \r\n $svy_data['Survey']['id'] = $svy_id;\r\n $svy_data['Survey']['user_id'] = $svy_user_id;\r\n $svy_data['Survey']['course_id'] = $svy_course_id;\r\n $svy_data['Survey']['name'] = $svy_title;\r\n $svy_data['Survey']['due_date'] = $svy_due_date;\r\n $svy_data['Survey']['release_date_begin'] = $svy_release_date_begin;\r\n $svy_data['Survey']['release_date_end'] = $svy_release_date_end;\r\n $svy_data['Survey']['released'] = $svy_released;\r\n $svy_data['Survey']['creator_id'] - $svy_user_id;\r\n \r\n $this->Survey->directSave($svy_data);\r\n $this->Survey->id = null;\r\n }\r\n \r\n $questions = $dom->getElementsByTagName('questions');\r\n foreach($questions as $question)\r\n {\r\n \t\r\n $question_m = $this->_getValueByTagNamePhp5($question, 'multiple_choice');\r\n $question_c = $this->_getValueByTagNamePhp5($question, 'choose_any_of');\r\n $question_s = $this->_getValueByTagNamePhp5($question, 'short_input');\r\n $question_l = $this->_getValueByTagNamePhp5($question, 'long_input');\r\n \r\n $question_data['Question']['id'] = $this->_getValueByTagNamePhp5($question, 'question_id');\r\n $question_data['Question']['prompt'] = $this->_getValueByTagNamePhp5($question, 'prompt');\r\n $question_data['Question']['master'] = 'yes';\r\n \r\n if($question_m) \r\n {\r\n $question_data['Question']['type'] = 'M'; \r\n }\r\n else if ($question_c)\r\n {\r\n $question_data['Question']['type'] = 'C';\r\n }\r\n else if ($question_s)\r\n {\r\n $question_data['Question']['type'] = 'S';\r\n }\r\n else if($question_l)\r\n {\r\n $question_data['Question']['type'] = 'L';\r\n }\r\n \r\n $this->Question->directSave($question_data);\r\n $this->Question->id = null;\r\n }\r\n \r\n $svy_questions = $dom->getElementsByTagName('survey_questions');\r\n foreach($svy_questions as $svy_q)\r\n {\r\n \t\r\n $svy_q_data['SurveyQuestion']['survey_id'] = $this->_getValueByTagNamePhp5($svy_q, 'survey_id');\r\n $svy_q_data['SurveyQuestion']['number'] = $this->_getValueByTagNamePhp5($svy_q, 'number');\r\n $svy_q_data['SurveyQuestion']['question_id'] = $this->_getValueByTagNamePhp5($svy_q, 'question_id');\r\n \r\n $this->SurveyQuestion->save($svy_q_data);\r\n $this->SurveyQuestion->id = null;\r\n }\r\n \r\n break;\r\n }\r\n }\r\n \r\n }\r\n /**\r\n * _getValueByTagNamePhp5($root, $name)\r\n * retrieves a single node's value by tag name. If there are multiple elements with the associated tag name, then\r\n * only the first element's value is returned.\r\n */\r\n function _getValueByTagNamePhp5($root, $name)\r\n {\r\n \tif(phpversion() >= 5)\r\n {\r\n $elem = $root->getElementsByTagName($name);\r\n //pr($element);\r\n if(isset($elem) && !empty($elem))\r\n {\r\n \t$retval = $elem->item(0);\r\n if(is_object($retval))\r\n {\r\n return $retval->nodeValue;\r\n }\r\n }\r\n }\r\n }\r\n \r\n /**\r\n * _getValueByTagNamePhp4($root, $name)\r\n * retrieves a single node's value by tag name. If there are multiple elements with the associated tag name, then\r\n * only the first element's value is returned.\r\n */\r\n function _getValueByTagNamePhp4($root, $name)\r\n {\r\n \t$element = $root->get_elements_by_tagname($name);\r\n if($element)\r\n {\r\n $retval = $element[0]->get_content();\r\n return $retval;\r\n }\r\n }\r\n}", "title": "" }, { "docid": "3d5892f37c0ad925ea1d8c0788c9b575", "score": "0.5785842", "text": "protected function _load_language_data(){\n $this->_load();\n //die(print_r($this->_object));\n $this->_ld_orm=$this->_object;//$this->language_data->where(\"language_id\",\"=\",$this->selected_language_id)->find();\n\n foreach ($this->_language_columns as $col=>$value)\n {\n if(!isset($this->_language_column_changed[$col])) // pokud byl jiz atribut pred nactenim dat z modelu zmenen, uz ho neprenacitam\n {\n if(!empty($this->_ld_orm[$col]))\n {\n $this->$col=$this->_ld_orm[$col]; // pokud jsou data - vyplnim\n }\n else\n {\n $this->$col=\"\"; //pokud nejsou, provedu jeho inicializaci na prazdnou hodnotu\n }\n }\n }\n\n $this->_language_data_loaded=true;\n\n }", "title": "" }, { "docid": "a8a91502ced8064dfc866c00115f5cd5", "score": "0.57614696", "text": "protected function loadData()\n\t{\n\t\t// In real applications, data should come from database using an SQL SELECT statement.\n\t\t// In the following tabular data, field 'id' is the primary key.\n\t\t// All update and delete operations should come with an 'id' value in order to go through.\n\t\tif(($this->_data=$this->getViewState('Data',null))===null)\n\t\t{\n\t\t\t$this->_data=array(\n\t\t\t\tarray('id'=>'ITN001','name'=>'Motherboard','quantity'=>1,'price'=>100.00,'imported'=>true),\n\t\t\t\tarray('id'=>'ITN002','name'=>'CPU','quantity'=>1,'price'=>150.00,'imported'=>true),\n\t\t\t\tarray('id'=>'ITN003','name'=>'Harddrive','quantity'=>2,'price'=>80.00,'imported'=>false),\n\t\t\t\tarray('id'=>'ITN004','name'=>'Sound card','quantity'=>1,'price'=>40.00,'imported'=>false),\n\t\t\t\tarray('id'=>'ITN005','name'=>'Video card','quantity'=>1,'price'=>150.00,'imported'=>true),\n\t\t\t\tarray('id'=>'ITN006','name'=>'Keyboard','quantity'=>1,'price'=>20.00,'imported'=>true),\n\t\t\t\tarray('id'=>'ITN007','name'=>'Monitor','quantity'=>2,'price'=>300.00,'imported'=>false),\n\t\t\t);\n\t\t\t$this->saveData();\n\t\t}\n\t}", "title": "" }, { "docid": "a2a597cfce8879517685bc971c1c053f", "score": "0.5759051", "text": "function import($files)\n {\n if (file_exists($files)) {\n // Start import\n $sql = file_get_contents($files);\n $import = $this->db->exec($sql);\n\n if ($import !== FALSE) {\n echo \"Database import successful\";\n }else{\n echo \"Database import failed\";\n }\n }else{\n echo \"File not found\";\n }\n }", "title": "" }, { "docid": "8907294c82eb056c76b89abbf064e2cf", "score": "0.5736972", "text": "public function readDatas() {\n // copy the params\n/*\n $liveServerParams = $ini_array['liveserver'];\n $this->ini_array['upgradeserver'] = $ini_array['upgradeserver'];\n */\n // connect to the LiveServer\n $connectionLiveserver = $this->mysql->connect($this->ini_array['liveserver']);\n // normaly we have only one table \"tt_content\".\n foreach($this->ini_array['liveserver']['tables'] as $key => $value){\n if($value['table'] == \"tt_content\"){\n\t\t // get the Datas from the LiveServer\n $resultLiveServer = $this->mysql->select($connectionLiveserver,$value['select'],$value['table'], $value['where'].$value['additionalWhere']);\n // get the Configuration for sys_file\n foreach($this->ini_array['upgradeserver']['tables'] as $key1 => $value1){\n // connect to the upgradeserver\n $connectionUpgradeServer = $this->mysql->connect($this->ini_array['upgradeserver']);\n if($value1['table'] == \"sys_file\"){\n while ($row = $resultLiveServer->fetch_assoc()) {\n\n //check if $row['image'] holds more than one image\n if(strpos($row['image'],\",\")){\n\n // explode the images into an array\n $imageArray = explode(\",\",$row['image']);\n foreach($imageArray as $value2){\n $row['image'] = $value2;\n // get the imagename for the check\n //$value1['where'] = \"identifier = \" . \"'\" . $row['image'] . \"' uid_foreign = \" . $row['uid'] . \"'\";\n $value1['where'] = \"name = \" . \"'\" . $row['image'] . \"'\";\n // check if the image is in sys_file\n $resultSysFile = $this->mysql->select($connectionUpgradeServer,$value1['select'],$value1['table'],$value1['where']);\n $rowSysFile = $resultSysFile->fetch_assoc();\n if($resultSysFile->num_rows == 0){// no image in sys_file\n $arrayResult[] = $row;\n }else {// maybe there is an image in sys_file, but not in sys_file_reference\n $where = 'uid_local = ' . $rowSysFile['uid'];\n $table = 'sys_file_reference';\n $resultSysFileReference = $this->mysql->select($connectionUpgradeServer,$value1['select'],$table,$where);\n if($resultSysFileReference->num_rows == 0){// no image in sys_file\n $arrayResult[] = $row;\n }\n }\n }\n\n }else{\n // build the where clause\n\n $value1['where'] = \"name = \" . \"'\" . $row['image'] . \"'\";\n // check if the image is in sys_file\n $resultSysFile = $this->mysql->select($connectionUpgradeServer,$value1['select'],$value1['table'],$value1['where']);\n $rowSysFile = $resultSysFile->fetch_assoc();\n if($resultSysFile->num_rows == 0){// no image in sys_file\n $arrayResult[] = $row;\n }else {// maybe there is a image in sys_file, but not in sys_file_reference\n $where = 'uid_local = ' . $rowSysFile['uid'];\n $table = 'sys_file_reference';\n $resultSysFileReference = $this->mysql->select($connectionUpgradeServer,$value1['select'],$table,$where);\n if($resultSysFileReference->num_rows == 0){// no image in sys_file\n $arrayResult[] = $row;\n }\n }\n }\n }\n }else {// any other table than sys_file so break\n break;\n }\n }\n }else {// any other table than tt_content so break\n break;\n }\n }\n // create the json file\n $jsonResult = '';\n $jsonResult = json_encode($arrayResult, JSON_FORCE_OBJECT);\n $jsonHandle = fopen($this->pathToLogfile . $this->ini_array['filename'],'w') or die('unable to open file' . $this->ini_array['filename']);\n // write the json file\n fwrite($jsonHandle,$jsonResult);\n fclose($jsonHandle);\n echo 'Datei ' . $this->ini_array['filename'] . ' in ' . $this->pathToLogfile . ' geschrieben<br/>';\n echo 'Kopieren Sie das Verzeichnis nun in die T3 6.2 Installation';\n }", "title": "" }, { "docid": "933dda9c043e6da4440bfa9f7237d948", "score": "0.5719251", "text": "public static function load(){\n\t\t\n\t\t//loading vars from config file\n\t\tEDatabase::$db_name = EConfig::$data[\"database\"][\"name\"];\n\t\tEDatabase::$db_host = EConfig::$data[\"database\"][\"host\"];\n\t\tEDatabase::$db_user = EConfig::$data[\"database\"][\"user\"];\n\t\tEDatabase::$db_pass = EConfig::$data[\"database\"][\"password\"];\n\t\t\n\t\tEDatabase::open_session();\n\t}", "title": "" }, { "docid": "149a92a34d2bc8f2397738f751abdeb0", "score": "0.5713636", "text": "public function loadData()\n {\n $sql = $this->ChartSql;\n $cnn = Conn($this->Table->Dbid);\n $rows = $cnn->executeQuery($sql)->fetchAll(\\PDO::FETCH_NUM);\n foreach ($rows as $row) {\n $this->Data[] = $row;\n }\n }", "title": "" }, { "docid": "6e6cdad3116c87006a7c39a7323b2602", "score": "0.57122046", "text": "function createLanguage(){\n require('db.php');\n }", "title": "" }, { "docid": "86ea4c6f652cf5a654ed65497ba16681", "score": "0.5710179", "text": "function populateDb($application)\r\n{\r\n\t$bootstrap = $application->getBootstrap();\r\n\t$bootstrap->bootstrap('db');\r\n\t$dbAdapter = $bootstrap->getResource('db');\r\n\r\n\techo 'Writing sample data to CMS Database...<br/>';\r\n\r\n\ttry\r\n\t{\r\n $dataSql = file_get_contents( APPLICATION_PATH . '/../scripts/data.mysql.sql' );\r\n // use the connection directly to load sql in batches\r\n $dbAdapter->getConnection()->exec($dataSql);\r\n\t\techo 'Data Loaded<br/>';\r\n\t}\r\n catch (Exception $e)\r\n {\r\n\t echo 'AN ERROR HAS OCCURED:<br/>';\r\n \techo $e->getMessage() . '<br/>';\r\n \treturn false;\r\n\t}\r\n}", "title": "" }, { "docid": "8ad1580140ea80a4244aada4c0a74d1d", "score": "0.57052046", "text": "function mysql_import_file($filename)\n\t{\n\t\t$lines = file($filename);\n\t\t\n\t\tif(!$lines)\n\t\t{\n $this->session->set_flash('error_msg',\"cannot open file $filename\");\n return false;\n\t\t}\n\t\t\n\t\t$scriptfile = false;\n\t\n /* Get rid of the comments and form one jumbo line */\n\t\tforeach($lines as $line)\n\t\t{\n $line = trim($line);\n \n if(!preg_match('/(\\--)$/i', $line))\n $scriptfile.=\" \".$line;\n\t\t}\n\t\t\n\t\tif(!$scriptfile)\n\t\t{\n $this->session->set_flash('error_msg',\"no text found in $filename\");\n return false;\n\t\t}\n\t\t$prev = 0;\n\t\t$i=1;\n\t\twhile ($next = strpos($scriptfile,\";\",$prev+1))\n\t\t{\n $i++;\n $query = substr($scriptfile,$prev+1,$next-$prev);\n $this->db->query($query);\n $prev = $next;\n\t\t}\n\t}", "title": "" }, { "docid": "460033ac41388189b30d5c3acc4b704c", "score": "0.57041925", "text": "public function load($data);", "title": "" }, { "docid": "460033ac41388189b30d5c3acc4b704c", "score": "0.57041925", "text": "public function load($data);", "title": "" }, { "docid": "222f20c36e53f5f9d03f7179d66c3c7f", "score": "0.5697664", "text": "public static function execute_file($sql_file,$db) {\n $lines = file_get_contents($sql_file);\n if (empty($lines)) {\n return;\n }\n $sqls = explode(';',$lines);\n foreach ($sqls as $sql) {\n $sql = trim($sql);\n if (empty($sql) || substr($sql,0,2) == '--') {\n continue;\n }\n $db->execute($sql);\n }\n }", "title": "" }, { "docid": "0b091b51a63bbab4f19bedc97e3ea409", "score": "0.56943583", "text": "function load($lob) {}", "title": "" }, { "docid": "d8d391ad83e3f55c2c5d440f9fee83ab", "score": "0.56908447", "text": "static function load( $file, $schema ) {\n $file_bits = explode(\".\",$file);\n array_pop($file_bits);\n $sqlc_file = implode(\".\",$file_bits).\".sqlc\";\n\n $sqlc = @stat($sqlc_file);\n $sql = @stat($file);\n if ( ! $sql ) {\n throw new Modyllic_Loader_Exception(\"$file: File not found.\");\n }\n else if ( !$sqlc or $sqlc[7]==0 or ($sqlc[9] < $sql[9]) ) {\n if ( ($data = @file_get_contents($file)) === false ) {\n throw new Modyllic_Loader_Exception(\"Error opening $file\");\n }\n $parser = new Modyllic_Parser();\n $data = str_replace(\"\\xEF\\xBB\\xBF\",'', $data); // remove BOM\n $parser->partial($schema, $data, $file, \";\" );\n }\n else {\n if ( ($data = @file_get_contents($sqlc_file)) === false ) {\n throw new Modyllic_Loader_Exception(\"Error opening $sqlc_file\");\n }\n $subschema = unserialize($data);\n if ( $subschema === FALSE ) {\n throw new Modyllic_Loader_Exception(\"Error unserializing $sqlc_file\");\n }\n $schema->merge( $subschema );\n }\n }", "title": "" } ]
fc38a04c6ff2c1b8bbf8f3c5bc86487b
Get location groups html dropdown
[ { "docid": "5eccdf546983804e174932bcca1b9160", "score": "0.776141", "text": "public static function location_groups_html($options = array('name' => 'lg_by_key[]'))\r\n {\r\n $locationGroups = self::locationGroups();\r\n $locationGroups = self::prepare_select_data($locationGroups, 'key_system', 'value');\r\n return self::html_select($locationGroups, $options);\r\n }", "title": "" } ]
[ { "docid": "e247aa662cd91fef4ef62f570c8d9eeb", "score": "0.673249", "text": "function phrasegroup_pulldown()\r\n {\r\n global $ilance, $myapi;\r\n \r\n $sql = $ilance->db->query(\"\r\n SELECT groupname, description\r\n FROM \" . DB_PREFIX . \"language_phrasegroups\r\n \", 0, null, __FILE__, __LINE__);\r\n $html = '<select name=\"phrasegroup\" style=\"font-family: verdana\">';\r\n while ($res = $ilance->db->fetch_array($sql))\r\n {\r\n $html .= '<option value=\"' . $res['groupname'] . '\">' . stripslashes($res['description']) . '</option>';\r\n } \r\n $html .= '</select>';\r\n \r\n return $html;\r\n }", "title": "" }, { "docid": "04576c5a348bfcb907f7c8ec1a1195b7", "score": "0.6609509", "text": "public static function locations_html($selected_locationGroups, $options = array('name' => 'location[]'))\r\n {\r\n $locationGroups = self::locationGroups();\r\n $locations = [];\r\n $loc = [];\r\n\r\n foreach ($selected_locationGroups as $selected_locationGroup) {\r\n foreach ($locationGroups as $locationGroup) {\r\n if ($selected_locationGroup == $locationGroup['key_system']) {\r\n $lGroups[] = $locationGroup;\r\n if (isset($locationGroup['group_value'])) {\r\n $locations = self::prepare_select_data($locationGroup['group_value'], 'key', strtolower(Yii::$app->language) == 'es' ? 'es_AR' : strtolower(Yii::$app->language));\r\n }\r\n }\r\n }\r\n foreach ($locations as $value) {\r\n $loc[] = $value;\r\n }\r\n }\r\n $loc = array_unique($loc, SORT_REGULAR);\r\n usort($loc, \"self::sortedLocation\");\r\n return self::html_select($loc, $options);\r\n }", "title": "" }, { "docid": "fad158620bccdbda83890903df8fd0b6", "score": "0.64100933", "text": "public function getDropdownList()\n {\n $regions = $this->region->pluck('name','id')->toArray();\n $region = $this->region->latest()->first();\n\n return view('admin.regions._get-dropdown-list',compact('regions','region'));\n }", "title": "" }, { "docid": "4cf52218458b942524c4d4456e0608e6", "score": "0.63369715", "text": "function mapByMapToGroupHTML() {\n\t\t$tmp = getUserResources(array($this->maptype . \"Admin\"),\n\t\t array(\"manageMapping\"), 1);\n\t\t$mapgroups = $tmp[$this->maptype];\n\t\tuasort($mapgroups, \"sortKeepIndex\");\n\t\t$tmp = getUserResources(array($this->restype . \"Admin\"),\n\t\t array(\"manageMapping\"), 1);\n\t\t$groups = $tmp[$this->restype];\n\t\tuasort($groups, \"sortKeepIndex\");\n\t\t$h = '';\n\n\t\tif(! count($mapgroups) || ! count($groups)) {\n\t\t\t$h .= \"You don't have access to manage any mappings for this resource \";\n\t\t\t$h .= \"type.<br>\\n\";\n\t\t\treturn $h;\n\t\t}\n\n\t\t$h .= \"<div id=\\\"mapbymaptogroupdiv\\\" dojoType=\\\"dijit.layout.ContentPane\\\" \";\n\t\t$h .= \"title=\\\"\" . i(\"Map By {$this->maptypename} Group\") . \"\\\">\\n\";\n\t\t$h .= \"<div style=\\\"width: 410px;\\\">\\n\";\n\t\t$h .= i(\"Select an item from the drop-down box and click \\\"Get {$this->restypename} Groups\\\" to see all of the groups it maps to. Then, select a group it does not map to and click the Add button to map it to that group, or select a group it maps to and click the Remove button to unmap it from that group.\");\n\t\t$h .= \"</div><br>\\n\";\n\t\t$h .= i(\"{$this->maptypename} Group:\") . \"<select id=\\\"maptogroups\\\">\\n\";\n\t\tforeach($mapgroups as $id => $group)\n\t\t\t$h .= \"<option value=$id>$group</option>\\n\";\n\t\t$h .= \"</select>\\n\";\n\t\t$h .= dijitButton('', i(\"Get {$this->restypename} Groups\"),\n\t\t \"populateLists('maptogroups', 'inmaptogroups', 'inmaptogroupname', 'outmaptogroupname', 'mapbymaptogroupcont');\");\n\t\t$h .= \"<table><tbody><tr>\\n\";\n\t\t# select for groups mapped to\n\t\t$h .= \"<td valign=top>\\n\";\n\t\t$h .= sprintf(i(\"{$this->restypename} Groups %s maps to:\"), \"<span style=\\\"font-weight: bold;\\\" id=\\\"inmaptogroupname\\\"></span>\");\n\t\t$h .= \"<br>\\n\";\n\t\t$h .= \"<table dojoType=\\\"dojox.grid.DataGrid\\\" jsId=\\\"inmaptogroups\\\" \";\n\t\t$h .= \"store=\\\"mapbymaptogroupstore\\\" style=\\\"width: 240px; height: 250px;\\\" query=\\\"{inout: 1}\\\" \";\n\t\t$h .= \"selectionMode=\\\"extended\\\">\\n\";\n\t\t$h .= \"<thead>\\n\";\n\t\t$h .= \"<tr>\\n\";\n\t\t$h .= \"<th field=\\\"name\\\" width=\\\"160px\\\"></th>\\n\";\n\t\t$h .= \"</tr>\\n\";\n\t\t$h .= \"</thead>\\n\";\n\t\t$h .= \"</table>\\n\";\n\t\t$h .= \"</td>\\n\";\n\t\t# transfer buttons\n\t\t$h .= \"<td style=\\\"vertical-align: middle;\\\">\\n\";\n\t\t$h .= dijitButton('', \"<div style=\\\"width: 60px;\\\">&lt;-\" . i(\"Add\") . \"</div>\",\n\t\t \"resource.addRemItem('addmaptogrpcont', 'maptogroups', 'outmaptogroups');\");\n\t\t$cdata = $this->basecdata;\n\t\t$cdata['mode'] = 'add';\n\t\t$cont = addContinuationsEntry('AJaddRemGroupMapTo', $cdata);\n\t\t$h .= \"<input type=\\\"hidden\\\" id=\\\"addmaptogrpcont\\\" value=\\\"$cont\\\">\\n\";\n\t\t$h .= \"<br><br><br>\\n\";\n\t\t$h .= dijitButton('', \"<div style=\\\"width: 60px;\\\">\" . i(\"Remove\") . \"-&gt;</div>\",\n\t\t \"resource.addRemItem('remmaptogrpcont', 'maptogroups', 'inmaptogroups');\");\n\t\t$cdata['mode'] = 'remove';\n\t\t$cont = addContinuationsEntry('AJaddRemGroupMapTo', $cdata);\n\t\t$h .= \"<input type=\\\"hidden\\\" id=\\\"remmaptogrpcont\\\" value=\\\"$cont\\\">\\n\";\n\t\t$h .= \"</td>\\n\";\n\t\t# select for groups resource is not in\n\t\t$h .= \"<td valign=top>\\n\";\n\t\t$h .= sprintf(i(\"{$this->restypename} Groups %s does not map to:\"), \"<span style=\\\"font-weight: bold;\\\" id=\\\"outmaptogroupname\\\"></span>\");\n\t\t$h .= \"<br>\\n\";\n\t\t$h .= \"<table dojoType=\\\"dojox.grid.DataGrid\\\" jsId=\\\"outmaptogroups\\\" \";\n\t\t$h .= \"store=\\\"mapbymaptogroupstore\\\" style=\\\"width: 240px; height: 250px;\\\" query=\\\"{inout: 1}\\\" \";\n\t\t$h .= \"selectionMode=\\\"extended\\\">\\n\";\n\t\t$h .= \"<thead>\\n\";\n\t\t$h .= \"<tr>\\n\";\n\t\t$h .= \"<th field=\\\"name\\\" width=\\\"160px\\\"></th>\\n\";\n\t\t$h .= \"</tr>\\n\";\n\t\t$h .= \"</thead>\\n\";\n\t\t$h .= \"</table>\\n\";\n\t\t$h .= \"</td>\\n\";\n\t\t$h .= \"</tr></tbody></table>\\n\";\n\t\t$cdata = $this->basecdata;\n\t\t$cdata['store'] = 'mapbymaptogroupstore';\n\t\t$cdata['intitle'] = 'inmaptogroups';\n\t\t$cdata['outtitle'] = 'outmaptogroups';\n\t\t$cont = addContinuationsEntry('jsonResourceMappingGroups', $cdata);\n\t\t$h .= \"<input type=hidden id=\\\"mapbymaptogroupcont\\\" value=\\\"$cont\\\">\\n\";\n\t\t$h .= \"</div>\\n\";\n\t\treturn $h;\n\t}", "title": "" }, { "docid": "65b1f9c1d734bda97d9eec87ee70b438", "score": "0.62835723", "text": "function gt_form_sell_your_car_field_location($tabindex = NULL) {\n $submitted = (isset($_SESSION['gt_form']->data['state'])\n && !empty($_SESSION['gt_form']->data['state']))\n ? $_SESSION['gt_form']->data['state']\n : FALSE;\n\n if ($submitted !== FALSE) {\n $submitted = get_term_by('id', $submitted, 'location');\n }\n\n wp_dropdown_categories(array(\n 'show_count' => 0,\n 'selected' => is_object($submitted) ? $submitted->term_id : 0,\n 'hierarchical' => 1,\n 'depth' => 1,\n 'hide_empty' => 0,\n 'tab_index' => $tabindex,\n 'class' => 'gt-select',\n 'show_option_none' => __('Your State','language'),\n 'name' => 'state',\n 'id' => 'gt-state',\n 'taxonomy' => 'location',\n 'walker' => new Walker_CategoryDropdown_Custom(),\n ));\n}", "title": "" }, { "docid": "f003f902405ae373063b71b9375b742b", "score": "0.61410296", "text": "function outputSelectOptions (array $regArray, $selected = \"\") {\n\tforeach ($regArray as $country => $cinfo) {\n\t\t$ret .= \"<optgroup label=\\\"$country\\\">\";\n\t\tforeach ($cinfo[\"regions\"] as $state => $sinfo) {\n\t\t\t$ret .= \"<option value=\\\"$sinfo[abbrev]\\\"\";\n\t\t\tif (!empty($selected) && $selected == $sinfo['abbrev']) {$ret .= \" selected=\\\"selected\\\"\";}\n\t\t\t$ret.= \">$state</option>\";\n\t\t}\n\t\t$ret .= \"</optgroup>\";\n\t}\n\treturn $ret;\n}", "title": "" }, { "docid": "e95285d59aaefee603ec4e73df9afce0", "score": "0.61307544", "text": "function mapByResGroupHTML() {\n\t\t$tmp = getUserResources(array($this->restype . \"Admin\"),\n\t\t array(\"manageMapping\"), 1);\n\t\t$groups = $tmp[$this->restype];\n\t\tuasort($groups, \"sortKeepIndex\");\n\t\t$tmp = getUserResources(array($this->maptype . \"Admin\"),\n\t\t array(\"manageMapping\"), 1);\n\t\t$mapgroups = $tmp[$this->maptype];\n\t\tuasort($mapgroups, \"sortKeepIndex\");\n\t\t$h = '';\n\n\t\tif(! count($groups) || ! count($mapgroups)) {\n\t\t\t$h .= i(\"You don't have access to manage any mappings for this resource type.\");\n\t\t\treturn $h;\n\t\t}\n\n\t\t$h .= \"<div id=\\\"mapbyresgroupdiv\\\" dojoType=\\\"dijit.layout.ContentPane\\\" \";\n\t\t$h .= \"title=\\\"\" . i(\"Map By {$this->restypename} Group\") . \"\\\">\\n\";\n\t\t$h .= \"<div style=\\\"width: 390px;\\\">\\n\";\n\t\t$h .= i(\"Select an item from the drop-down box and click \\\"Get {$this->maptypename} Groups\\\" to see all of the groups it maps to. Then, select a group it does not map to and click the Add button to map it to that group, or select a group it maps to and click the Remove button to unmap it from that group.\");\n\t\t$h .= \"</div><br>\\n\";\n\t\t$h .= i(\"{$this->restypename} Group:\") . \"<select id=\\\"groups\\\">\\n\";\n\t\tforeach($groups as $id => $group)\n\t\t\t$h .= \"<option value=$id>$group</option>\\n\";\n\t\t$h .= \"</select>\\n\";\n\t\t$h .= dijitButton('', i(\"Get {$this->maptypename} Groups\"),\n\t\t \"populateLists('groups', 'inmapgroups', 'inmapgroupname', 'outmapgroupname', 'mapbyresgroupcont');\");\n\t\t$h .= \"<table><tbody><tr>\\n\";\n\t\t# select for groups mapped to\n\t\t$h .= \"<td valign=top>\\n\";\n\t\t$h .= sprintf(i(\"{$this->maptypename} Groups %s maps to:\"), \"<span style=\\\"font-weight: bold;\\\" id=\\\"inmapgroupname\\\"></span>\");\n\t\t$h .= \"<br>\\n\";\n\t\t$h .= \"<table dojoType=\\\"dojox.grid.DataGrid\\\" jsId=\\\"inmapgroups\\\" \";\n\t\t$h .= \"store=\\\"mapbyresgroupstore\\\" style=\\\"width: 240px; height: 250px;\\\" query=\\\"{inout: 1}\\\" \";\n\t\t$h .= \"selectionMode=\\\"extended\\\">\\n\";\n\t\t$h .= \"<thead>\\n\";\n\t\t$h .= \"<tr>\\n\";\n\t\t$h .= \"<th field=\\\"name\\\" width=\\\"160px\\\"></th>\\n\";\n\t\t$h .= \"</tr>\\n\";\n\t\t$h .= \"</thead>\\n\";\n\t\t$h .= \"</table>\\n\";\n\t\t$h .= \"</td>\\n\";\n\t\t# transfer buttons\n\t\t$h .= \"<td style=\\\"vertical-align: middle;\\\">\\n\";\n\t\t$h .= dijitButton('', \"<div style=\\\"width: 60px;\\\">&lt;-\" . i(\"Add\") . \"</div>\",\n\t\t \"resource.addRemItem('addmapgrpcont', 'groups', 'outmapgroups');\");\n\t\t$cdata = $this->basecdata;\n\t\t$cdata['mode'] = 'add';\n\t\t$cont = addContinuationsEntry('AJaddRemMapToGroup', $cdata);\n\t\t$h .= \"<input type=\\\"hidden\\\" id=\\\"addmapgrpcont\\\" value=\\\"$cont\\\">\\n\";\n\t\t$h .= \"<br>\\n\";\n\t\t$h .= \"<br>\\n\";\n\t\t$h .= \"<br>\\n\";\n\t\t$h .= dijitButton('', \"<div style=\\\"width: 60px;\\\">\" . i(\"Remove\") . \"-&gt;</div>\",\n\t\t \"resource.addRemItem('remmapgrpcont', 'groups', 'inmapgroups');\");\n\t\t$cdata['mode'] = 'remove';\n\t\t$cont = addContinuationsEntry('AJaddRemMapToGroup', $cdata);\n\t\t$h .= \"<input type=\\\"hidden\\\" id=\\\"remmapgrpcont\\\" value=\\\"$cont\\\">\\n\";\n\t\t$h .= \"</td>\\n\";\n\t\t# select for groups resource is not in\n\t\t$h .= \"<td valign=top>\\n\";\n\t\t$h .= sprintf(i(\"{$this->maptypename} Groups %s does not map to:\"), \"<span style=\\\"font-weight: bold;\\\" id=\\\"outmapgroupname\\\"></span>\");\n\t\t$h .= \"<br>\\n\";\n\t\t$h .= \"<table dojoType=\\\"dojox.grid.DataGrid\\\" jsId=\\\"outmapgroups\\\" \";\n\t\t$h .= \"store=\\\"mapbyresgroupstore\\\" style=\\\"width: 240px; height: 250px;\\\" query=\\\"{inout: 1}\\\" \";\n\t\t$h .= \"selectionMode=\\\"extended\\\">\\n\";\n\t\t$h .= \"<thead>\\n\";\n\t\t$h .= \"<tr>\\n\";\n\t\t$h .= \"<th field=\\\"name\\\" width=\\\"160px\\\"></th>\\n\";\n\t\t$h .= \"</tr>\\n\";\n\t\t$h .= \"</thead>\\n\";\n\t\t$h .= \"</table>\\n\";\n\t\t$h .= \"</td>\\n\";\n\t\t$h .= \"</tr></tbody></table>\\n\";\n\t\t$cdata = $this->basecdata;\n\t\t$cdata['store'] = 'mapbyresgroupstore';\n\t\t$cdata['intitle'] = 'inmapgroups';\n\t\t$cdata['outtitle'] = 'outmapgroups';\n\t\t$cont = addContinuationsEntry('jsonResourceMappingMapToGroups', $cdata);\n\t\t$h .= \"<input type=hidden id=\\\"mapbyresgroupcont\\\" value=\\\"$cont\\\">\\n\";\n\t\t$h .= \"</div>\\n\";\n\t\treturn $h;\n\t}", "title": "" }, { "docid": "5330db7ecd0b7ef37bd8cd737c68c5b2", "score": "0.6116838", "text": "function get_event_location_list()\r\n{\r\n\r\n\t$taxonomy = 'venue-location';\r\n\t$args = array(\r\n\t\t'taxonomy' => $taxonomy,\r\n\t\t'orderby' => 'ID',\r\n\t\t'hide_empty' => false,\r\n\t);\r\n\r\n\t?>\r\n\t<label class=\"select\" for=\"eventlocationfilter\"><i><?php the_field('locations_default_text', 'option'); ?></i>\r\n\t\t<select class=\"event-location-filter\" name=\"eventlocationfilter\">\r\n\t\t\t<option value=\"0\"><?php the_field('locations_default_text', 'option'); ?></option>\r\n\t\t\t<?php\r\n\t\t\t$custom_terms = get_terms($taxonomy, $args);\r\n\t\t\tforeach ($custom_terms\r\n\r\n\t\t\tas $term){\r\n\t\t\t?>\r\n\t\t\t<option value=\"<?php echo $term->slug; ?>\">\r\n\t\t\t\t<?php\r\n\t\t\t\techo $term->name;\r\n\t\t\t\techo '</option>';\r\n\t\t\t\t}\r\n\t\t\t\t?>\r\n\t\t</select>\r\n\t</label>\r\n\t<?php\r\n\r\n\r\n}", "title": "" }, { "docid": "d9083cba455d4e8abfb29527afa2ee88", "score": "0.6116253", "text": "function printLocationNames($locations, $selected) {\n echo \"<select name='location'>\";\n if (!isset($selected)) {\n echo \"<option selected value='---'>---</option>\";\n }\n else {\n echo \"<option value='---'>---</option>\";\n }\n while ($row = OCI_Fetch_Array($locations, OCI_BOTH)) {\n\n echo \"<option value='\" . $row['CITY'] . \"-\" . $row['PROVINCE'] . \"'>\" . $row['CITY'] . \" - \" . $row['PROVINCE'] . \"</option>\";\n }\n echo \"</select>\";\n}", "title": "" }, { "docid": "680d448b01810f26aeb414710771e332", "score": "0.60333407", "text": "function _get_robotics_dropdown()\n{\n $segments = \"legorobotics/legos/\";\n return $segments;\n}", "title": "" }, { "docid": "6a8c04de1bc00cd4fcff577889d35f5a", "score": "0.5998392", "text": "function get_servicegroup_list()\n{\n $res = exec_sql_query(DB_NAGIOSQL, \"SELECT `id`, `servicegroup_name`, `alias` FROM `tbl_servicegroup` ORDER BY `servicegroup_name` ASC\");\n\n $html = '';\n foreach ($res as $servicegroup) {\n $name = $servicegroup['servicegroup_name'];\n if (!empty($servicegroup['alias'])) {\n $name = $servicegroup['alias'] . \" (\" . $servicegroup['servicegroup_name'] . \")\";\n }\n $html .= '<option value=\"' . $servicegroup['id'] . '\">' . $name . '</option>';\n }\n\n return $html;\n}", "title": "" }, { "docid": "f4db6f4ef9e922469a834c3017c3d739", "score": "0.59807897", "text": "function getOptions($groupHC){\n $result=find_like(\"Product_options\", \"r_Product_option_group\", $groupHC);\n $result=table_to_array($result);\n $list=\"<select id='options' name='options' multiple>\";\n foreach ($result as $option){\n $list=$list.\"<option title='\".$option['description'].\"'value='\".$option['HC'].\"'>\".$option['name'].\"</option>\\n\";\n }\n $list=$list.\"</select>\";\n return $list;\n }", "title": "" }, { "docid": "5901b60d8a140312b00e3f10450b1328", "score": "0.59042245", "text": "function getGroups($ownerID){\n $result=find_like(\"Product_option_group\",\"r_Owner\",$ownerID);\n $result=table_to_array($result);\n $list=\"<select id='groups' name='groups'>\";\n foreach ($result as $group){\n $list=$list.\"<option value='\".$group['HC'].\"'>\".$group['name'].\"</option>\";\n }\n $list=$list.\"</select>\";\n return $list;\n }", "title": "" }, { "docid": "8dd457f5fdade540f8aaf9f62f255048", "score": "0.5892397", "text": "function MAPS_listOverlaysGroups ()\n{\n global $_CONF, $_TABLES, $_IMAGE_TYPE, $LANG_ADMIN, $LANG_MAPS_1;\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_MAPS_1['id'], 'field' => 'o_group_id', 'sort' => true),\n array('text' => $LANG_MAPS_1['name'], 'field' => 'o_group_name', 'sort' => true),\n array('text' => $LANG_ADMIN['edit'], 'field' => 'edit', 'sort' => false),\n );\n $defsort_arr = array('field' => 'o_group_name', 'direction' => 'asc');\n\n $text_arr = array(\n 'has_extras' => true,\n 'form_url' => $_CONF['site_admin_url'] . '/plugins/maps/overlays.php?mode=groups'\n );\n\t\n\t$sql = \"SELECT\n\t *\n FROM {$_TABLES['maps_overlays_groups']}\n\t\t\tWHERE 1=1\";\n\n $query_arr = array(\n 'sql' => $sql\n );\n\n $retval .= ADMIN_list('overlays', 'MAPS_getListField_overlaysGroups',\n $header_arr, $text_arr, $query_arr, $defsort_arr);\n\n return $retval;\n}", "title": "" }, { "docid": "3862d6260f2669d502e0d10f9cddef7f", "score": "0.5874295", "text": "function print_fv_group_pulldown($selected = '', $shownoneselected = '', $state = '')\r\n\t{\r\n\t\tglobal $ilance, $myapi, $phrase;\r\n \r\n\t\t$sqlroles = $ilance->db->query(\"\r\n SELECT *\r\n FROM \" . DB_PREFIX . \"finalvalue_groups \r\n\t\t\tWHERE state = '\" . $ilance->db->escape_string($state) . \"'\r\n \", 0, null, __FILE__, __LINE__);\r\n\t\tif ($ilance->db->num_rows($sqlroles) > 0)\r\n\t\t{\r\n\t\t\t$html = '<select name=\"groupid\" style=\"font-family: verdana\">';\r\n \r\n\t\t\tif (isset($shownoneselected) AND $shownoneselected)\r\n\t\t\t{\r\n\t\t\t\t$html .= '<option value=\"-1\">' . $phrase['_select'] . ' &darr;</option>';\r\n\t\t\t}\r\n\t\t\twhile ($roles = $ilance->db->fetch_array($sqlroles))\r\n\t\t\t{\r\n\t\t\t\tif (isset($selected) AND $selected == $roles['groupid'])\r\n\t\t\t\t{\r\n\t\t\t\t\t$html .= '<option value=\"' . $roles['groupid'] . '\" selected=\"selected\">' . stripslashes($roles['groupname']) . '</option>';\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t{\r\n\t\t\t\t\t$html .= '<option value=\"' . $roles['groupid'] . '\">' . stripslashes($roles['groupname']) . '</option>';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$html .= '</select>';\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t$html .= $phrase['_no_groups_to_select'];\r\n\t\t}\r\n \r\n\t\treturn $html;\r\n\t}", "title": "" }, { "docid": "27735c294164ccbbb648410b80e517c4", "score": "0.5867489", "text": "function get_hostgroup_list()\n{\n $res = exec_sql_query(DB_NAGIOSQL, \"SELECT `id`, `hostgroup_name`, `alias` FROM `tbl_hostgroup` ORDER BY `hostgroup_name` ASC\");\n\n $html = '';\n foreach ($res as $hostgroup) {\n $name = $hostgroup['hostgroup_name'];\n if (!empty($hostgroup['alias'])) {\n $name = $hostgroup['alias'] . \" (\" . $hostgroup['hostgroup_name'] . \")\";\n }\n $html .= '<option value=\"' . $hostgroup['id'] . '\">' . $name . '</option>';\n }\n\n return $html;\n}", "title": "" }, { "docid": "27735c294164ccbbb648410b80e517c4", "score": "0.5867489", "text": "function get_hostgroup_list()\n{\n $res = exec_sql_query(DB_NAGIOSQL, \"SELECT `id`, `hostgroup_name`, `alias` FROM `tbl_hostgroup` ORDER BY `hostgroup_name` ASC\");\n\n $html = '';\n foreach ($res as $hostgroup) {\n $name = $hostgroup['hostgroup_name'];\n if (!empty($hostgroup['alias'])) {\n $name = $hostgroup['alias'] . \" (\" . $hostgroup['hostgroup_name'] . \")\";\n }\n $html .= '<option value=\"' . $hostgroup['id'] . '\">' . $name . '</option>';\n }\n\n return $html;\n}", "title": "" }, { "docid": "caafac1fac7e7270b319f0a46ed00c2f", "score": "0.5861956", "text": "function my_calendar_locations_list( $show = 'list', $datatype = 'name', $group = 'single', $target_url = '' ) {\n\t$output = '';\n\t$locations = mc_get_list_locations( $datatype, $datatype, ARRAY_A );\n\t$current_url = mc_get_uri();\n\t$current_url = ( '' !== $target_url && _mc_is_url( $target_url ) ) ? $target_url : $current_url;\n\n\tif ( count( $locations ) > 1 ) {\n\t\tif ( 'list' === $show ) {\n\t\t\t$url = mc_build_url(\n\t\t\t\tarray(\n\t\t\t\t\t'loc' => 'all',\n\t\t\t\t\t'ltype' => 'all',\n\t\t\t\t),\n\t\t\t\tarray()\n\t\t\t);\n\t\t\t$output .= '<ul id=\"mc-locations-list\">\n\t\t\t<li class=\"mc-show-all\"><a href=\"' . $url . '\">' . __( 'Show all', 'my-calendar' ) . '</a></li>';\n\t\t} else {\n\t\t\t$ltype = ( ! isset( $_GET['ltype'] ) ) ? $datatype : $_GET['ltype'];\n\t\t\t$output .= '<div id=\"mc_locations\">';\n\t\t\t$output .= ( 'single' === $group ) ? \"<form action='\" . $current_url . \"' method='get'><div>\" : '';\n\t\t\t$output .= \"<input type='hidden' name='ltype' value='\" . esc_attr( $ltype ) . \"' />\";\n\t\t\tif ( 'single' === $group ) {\n\t\t\t\t$qsa = array();\n\t\t\t\tif ( isset( $_SERVER['QUERY_STRING'] ) ) {\n\t\t\t\t\tparse_str( $_SERVER['QUERY_STRING'], $qsa );\n\t\t\t\t}\n\t\t\t\tif ( ! isset( $_GET['cid'] ) ) {\n\t\t\t\t\t$output .= '<input type=\"hidden\" name=\"cid\" value=\"all\" />';\n\t\t\t\t}\n\t\t\t\tforeach ( $qsa as $name => $argument ) {\n\t\t\t\t\t$name = esc_attr( strip_tags( $name ) );\n\t\t\t\t\t$argument = esc_attr( strip_tags( $argument ) );\n\t\t\t\t\tif ( 'loc' !== $name && 'ltype' !== $name ) {\n\t\t\t\t\t\t$output .= \"\\n\" . '<input type=\"hidden\" name=\"' . $name . '\" value=\"' . $argument . '\" />';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$output .= \"\n\t\t\t<label for='mc-locations-list'>\" . __( 'Location', 'my-calendar' ) . \"</label>\n\t\t\t<select name='loc' id='mc-locations-list'>\n\t\t\t<option value='all'>\" . __( 'Show all', 'my-calendar' ) . \"</option>\\n\";\n\t\t}\n\t\tforeach ( $locations as $key => $location ) {\n\t\t\tforeach ( $location as $k => $value ) {\n\t\t\t\t$vt = urlencode( trim( $value ) );\n\t\t\t\t$value = strip_tags( stripcslashes( $value ), mc_strip_tags() );\n\t\t\t\tif ( '' === trim( $value ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$loc = ( empty( $_GET['loc'] ) ) ? '' : $_GET['loc'];\n\t\t\t\tif ( 'list' === $show ) {\n\t\t\t\t\t$selected = ( $vt === $loc ) ? ' class=\"selected\"' : '';\n\t\t\t\t\t$this_url = esc_url(\n\t\t\t\t\t\tmc_build_url(\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'loc' => $vt,\n\t\t\t\t\t\t\t\t'ltype' => $datatype,\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray()\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\t$output .= \" <li$selected><a rel='nofollow' href='$this_url'>$value</a></li>\\n\";\n\t\t\t\t} else {\n\t\t\t\t\t$selected = ( $vt === $loc ) ? ' class=\"selected\"' : '';\n\t\t\t\t\t$output .= \" <option value='\" . esc_attr( $vt ) . \"'$selected>$value</option>\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif ( 'list' === $show ) {\n\t\t\t$output .= '</ul>';\n\t\t} else {\n\t\t\t$output .= '</select>';\n\t\t\t$output .= ( 'single' === $group ) ? '<input type=\"submit\" value=\"' . __( 'Submit', 'my-calendar' ) . '\" />\n\t\t\t\t\t</div>\n\t\t\t\t</form>' : '';\n\t\t\t$output .= '</div>';\n\t\t}\n\t\t$output = apply_filters( 'mc_location_selector', $output, $locations );\n\n\t\treturn $output;\n\t} else {\n\t\treturn '';\n\t}\n}", "title": "" }, { "docid": "12910af21c66f8069925cbc15b14d941", "score": "0.58432114", "text": "function select_tag_group($selected=0) {\n global $language;\n $tag_group_name = 'tag_group_name_' . $language;\n echo \"<tr><td>Type: </td><td>\\n<select name = \\\"tag_group\\\">\\n\";\n $handle = pg_query(\"SELECT tag_group_id, $tag_group_name\n FROM tag_groups ORDER BY tag_group_id\");\n while ($rec = pg_fetch_assoc($handle)) {\n $option = \"<option \";\n if ($rec['tag_group_id'] == $selected)\n $option .= \"selected=\\\"selected\\\" \";\n $option .= \"value=\\\"\" . $rec['tag_group_id'] . \"\\\">\";\n $option .= $rec[$tag_group_name] . \"</option>\\n\";\n echo $option;\n }\n echo \"</select></td></tr>\\n\";\n}", "title": "" }, { "docid": "856aafdd028c99f654926cad3406436e", "score": "0.5826977", "text": "function template_groups()\r\n {\r\n global $ilance, $myapi, $phrase, $ilpage;\r\n \r\n require_once(DIR_API . 'class.template_files.inc.php');\r\n $start = new template_files($ilance);\r\n \r\n $base = array(DIR_TEMPLATES);\r\n $start->loop($base);\r\n \r\n $html = '<select name=\"templates\" id=\"templatelist\" style=\"font-family: verdana; width: 730px; background-color: #ffffff;\" size=\"15\" ondblclick=\"window.location.href=\\''.$ilpage['language'].'?cmd=templates&subcmd=edit&id=\\' + escape(document.tplform.templates.value) + \\'\\';\" onchange=\"\r\n <!--\r\n if (this.options[this.selectedIndex].value != \\'\\')\r\n {\r\n this.form.varname.value = \\'{\\' + this.options[this.selectedIndex].text + \\'}\\';\r\n this.form.textbox.value = this.options[this.selectedIndex].value;\r\n }\r\n //-->\r\n \">';\r\n \r\n $html .= '<optgroup label=\"'.$phrase['_dynamic_templates'].'\">';\r\n foreach ($start->newarr as $value)\r\n {\r\n if ($value != DIR_TEMPLATES AND $value != '.svn' AND $value != 'text-base' AND $value != 'tmp' AND $value != 'props' AND $value != 'prop-base')\r\n {\r\n $html .= '<option value=\"'.$value.'\">'.$value.'</option>';\r\n }\r\n }\r\n $html .= '</optgroup>';\r\n $html .= '</select>';\r\n return $html;\r\n }", "title": "" }, { "docid": "be4dd2957c98bcd5bc1d375ba65213a7", "score": "0.58258873", "text": "function print_insertion_group_pulldown($selected = '', $shownoneselected = 0, $state = '', $fieldname = 'groupid')\r\n\t{\r\n global $ilance, $myapi, $phrase;\r\n \r\n\t\t$sqlroles = $ilance->db->query(\"\r\n SELECT *\r\n FROM \" . DB_PREFIX . \"insertion_groups \r\n WHERE state = '\" . $ilance->db->escape_string($state) . \"'\r\n \", 0, null, __FILE__, __LINE__);\r\n\t\tif ($ilance->db->num_rows($sqlroles) > 0)\r\n\t\t{\r\n $html = '<select name=\"' . $fieldname . '\" style=\"font-family: verdana\">';\r\n \r\n\t\t\tif ($shownoneselected)\r\n\t\t\t{\r\n $html .= '<option value=\"-1\">' . $phrase['_select'] . ' &darr;</option>';\r\n\t\t\t}\r\n\t\t\twhile ($roles = $ilance->db->fetch_array($sqlroles))\r\n\t\t\t{\r\n if (isset($selected) AND $selected == $roles['groupid'])\r\n\t\t\t\t{\r\n\t\t\t\t\t$html .= '<option value=\"' . $roles['groupid'] . '\" selected=\"selected\">' . stripslashes($roles['groupname']) . '</option>';\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t{\r\n\t\t\t\t\t$html .= '<option value=\"' . $roles['groupid'] . '\">' . stripslashes($roles['groupname']) . '</option>';\r\n\t\t\t\t}\r\n\t\t\t}\r\n \r\n\t\t\t$html .= '</select>';\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t$html .= $phrase['_no_groups_to_select'];\t\r\n\t\t}\r\n \r\n\t\treturn $html;\r\n\t}", "title": "" }, { "docid": "65457254ec7d35cccb5a85e515de89df", "score": "0.5822103", "text": "function print_pick_options()\n{\n return '<select name=\"platform\" id=\"platform\" class=\"formelement\"\n required<?php if (isset($_GET[\"error\"])) echo $highlight[10]; ?>>\n <option value=\"\" disabled selected>Select..</option>\n <optgroup label=\"Sony\">\n <option value=\"ps4\">PlayStation 4</option>\n <option value=\"ps3\">PlayStation 3</option>\n <option value=\"psv\">PlayStation Vita</option>\n </optgroup>\n <optgroup label=\"Microsoft\">\n <option value=\"pc\">Windows</option>\n <option value=\"xbox1\">Xbox One</option>\n <option value=\"xbox360\">Xbox 360</option>\n </optgroup>\n <optgroup label=\"Nintendo\">\n <option value=\"switch\">Switch</option>\n <option value=\"wiiu\">WiiU</option>\n <option value=\"3ds\">3DS</option>\n </optgroup>\n </select>';\n}", "title": "" }, { "docid": "ca625c74d0a32fd78a912ba1981192bd", "score": "0.5814873", "text": "public function getOptionsGroups();", "title": "" }, { "docid": "eee085efaa429a4b73c43f21dd1bb71a", "score": "0.58120006", "text": "public function tplGetGroupDropdown($id){\r\n\t\t\t$dropdown = $this->sp->ref('UIWidgets')->getWidget('Select');\r\n\r\n \t$dropdown->setName('eu_group');\r\n \t$dropdown->setId('eu_group');\r\n \t\r\n \t$groups = $this->dataHelper->getGroups();\r\n\r\n \tforeach($groups as $group){\r\n \t\tif($this->checkRight('administer_group', $group->getId()) || $sel==$group->getId()) $dropdown->addOption($group->getName(), $group->getId(), $id==$group->getId());\r\n \t}\r\n \t\r\n \treturn $dropdown->render();\r\n\t\t}", "title": "" }, { "docid": "6f1289ef86dd0390acaebb830e364abc", "score": "0.5792781", "text": "public function getGroupOptions();", "title": "" }, { "docid": "8fd7d0ee0b5516be82855d43c1aed572", "score": "0.5791953", "text": "function tep_get_country_list($name, $selected = '', $parameters = '') {\n $countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));\n $countries = tep_get_countries('',true);\n\n for ($i=0, $n=sizeof($countries); $i<$n; $i++) {\n $countries_array[] = array('id' => $countries[$i]['countries_id'], \n\t \t\t\t\t\t\t\t 'text' => $countries[$i]['countries_name'],\n\t\t\t\t\t\t\t\t 'extra' => \"rel-isocode='\".$countries[$i]['countries_iso_code_2'].\"'\"\n\t\t\t\t\t\t\t\t );\n }\n\t\n return tep_draw_pull_down_menu($name, $countries_array, $selected, $parameters);\n }", "title": "" }, { "docid": "596b7a680e622f0922767efe129da132", "score": "0.5778801", "text": "function _select_upload_locations($current_option)\n\t{\n\t\tglobal $DB, $PREFS;\n\t\t\n\t\t// Add custom drop down for file location\n\t\t$block = \"<div class='itemWrapper'><select name=\\\"options\\\"><option value=\\\"\\\"></option>\";\n\t\t\n\t\t$dls = $DB->query(\"SELECT id, name FROM \" . $this->db_prefix . \"_upload_prefs WHERE site_id = \" . $PREFS->ini('site_id') . \" ORDER BY name ASC\");\n\t\tforeach($dls->result as $dl)\n\t\t{\n\t\t\t$selected = ($dl['id'] == $current_option) ? \" selected=\\\"true\\\"\" : \"\";\n\t\t\t$block .= \"<option value=\\\"{$dl['id']}\\\"$selected>{$dl['name']}</option>\";\n\t\t}\n\t\t\n\t\t$block .= \"</select></div></div>\";\n\t\t\n\t\treturn $block;\n\t}", "title": "" }, { "docid": "280318e22e91127dd88656c4ab61645d", "score": "0.5772037", "text": "public function getLocationsForSelect()\n {\n return $this->model->select('location')->distinct()->get()->lists('location', 'location')->all();\n }", "title": "" }, { "docid": "407123d63726148c445a3fac759d187a", "score": "0.5770911", "text": "public function generateOptions() {\n $locations = \\Drupal::entityTypeManager()->getStorage('commerce_stock_location')->loadMultiple();\n\n $options = [];\n foreach ($locations as $lid => $location) {\n $options[$lid] = $location->get('name')->value;\n }\n\n return $options;\n }", "title": "" }, { "docid": "061ee0e3699e78e361f4c5f5e862ad9c", "score": "0.57686436", "text": "function print_budget_group_pulldown($selected = '', $shownoneselected = '')\r\n\t{\r\n\t\tglobal $ilance, $myapi, $phrase;\r\n \r\n\t\t$sqlroles = $ilance->db->query(\"\r\n SELECT *\r\n FROM \" . DB_PREFIX . \"budget_groups\r\n \", 0, null, __FILE__, __LINE__);\r\n\t\tif ($ilance->db->num_rows($sqlroles) > 0)\r\n\t\t{\r\n\t\t\t$html = '<select name=\"groupid\" style=\"font-family: verdana\">';\r\n \r\n\t\t\tif (isset($shownoneselected) AND $shownoneselected)\r\n\t\t\t{\r\n\t\t\t\t$html .= '<option value=\"-1\">' . $phrase['_select'] . ' &darr;</option>';\r\n\t\t\t}\r\n\t\t\twhile ($roles = $ilance->db->fetch_array($sqlroles))\r\n\t\t\t{\r\n\t\t\t\tif (isset($selected) AND $selected == $roles['groupid'])\r\n\t\t\t\t{\r\n\t\t\t\t\t$html .= '<option value=\"' . $roles['groupid'] . '\" selected=\"selected\">' . stripslashes($roles['groupname']) . '</option>';\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t{\r\n\t\t\t\t\t$html .= '<option value=\"' . $roles['groupid'] . '\">' . stripslashes($roles['groupname']) . '</option>';\r\n\t\t\t\t}\r\n\t\t\t}\r\n \r\n\t\t\t$html .= '</select>';\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t$html .= $phrase['_no_groups_to_select'];\t\r\n\t\t}\r\n \r\n\t\treturn $html;\r\n\t}", "title": "" }, { "docid": "c6b5ade4ed27f8c31181b98dba2827c5", "score": "0.57662624", "text": "public function fetch_group_locations(){\n\t\tApp::import('Model', 'Group');\n\t\t$this->Group = new Group();\n\n\t\t$ret = '';\n\n\t\t$this->Group->unbindModel(array('hasMany'=>array('GroupGallery', 'GroupBanner')));\n\t\t$grpArr = $this->Group->find('all', array('fields'=>array('Group.id', 'Group.title', 'Group.alias_name', 'User.city', 'User.state', \n\t\t'User.country'), 'conditions'=>array('Group.status'=>'1')));\n\t\tif(!empty($grpArr)){\n\t\t\t$count = 0;\n\t\t\tforeach($grpArr as $grp){ //pr($grp);die;\n\t\t\t\t$ret[$count]['id'] = $grp['Group']['id'];\n\t\t\t\t$ret[$count]['title'] = $grp['Group']['title'];\n\t\t\t\t$ret[$count]['alias_name'] = $grp['Group']['alias_name'];\n\t\t\t\t$ret[$count]['city'] = $grp['User']['city'];\n\t\t\t\t$ret[$count]['state'] = $grp['User']['state'];\n\t\t\t\t$ret[$count]['country'] = $grp['User']['country'];\n\t\t\t\t$count++;\n\t\t\t}\n\t\t} //pr($ret);die;\n\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "c9faf85f6fc42d2b33a5570b6256524f", "score": "0.5757796", "text": "function getGroupsList($selectedValue=0)\r\n\t{\t\t\r\n\t\t$sql = \"SELECT * FROM activitygroups\";\r\n\t\t$GroupListresult=executeQuary($sql);\r\n\t\t?>\r\n\t\t<option value=\"0\"> </option>\r\n\t\t<?php\r\n\t\twhile ($myRecord = mysql_fetch_array($GroupListresult))\r\n\t\t\t{\t\r\n\t\t\t\tif ($myRecord[0]<4) continue; //skip groups instructors and administrators\r\n\t\t\t\tif ($selectedValue == $myRecord[0]) // compare group number\r\n\t\t\t\t\t$selectedString = \"selected=\\\"yes\\\"\"; \r\n\t\t\t\telse\r\n\t\t\t\t\t$selectedString=\"\";\r\n\t\t\t\t?>\r\n\t\t\t\t<option value=\"<?php echo $myRecord[0]?>\" <?php echo $selectedString?>><?php echo $myRecord[City]. \" - \".$myRecord[aGroupName];?></option>\r\n\t\t\t\t<?php\r\n\t\t\t}\r\n\t}", "title": "" }, { "docid": "50d96d93721cfd3ffb25e637beff11e0", "score": "0.5752205", "text": "public static function stores_locations_choices()\n {\n //get_address_list_for_cms_chocies\n global $json_api;\n $result = VendorRequest::get_address_list_for_cms_chocies($json_api->query->id);\n api_handler::outSuccessData($result);\n }", "title": "" }, { "docid": "b47dcac6d411d2e58e2c7664fa3f7a2f", "score": "0.57467973", "text": "function selectDirRegion($crit = \"\"){\r\n\t\t$result=$this->dbQuery(\"SELECT `ac_country` FROM `casft_reg_directory` GROUP BY `ac_country`\");\r\n\t\t\t\r\n\t\techo \"<option value=''>- Country -</option>\";\r\n\t\t\twhile($qry_data = $this->fetchRow($result))\r\n\t\t\t{\r\n\t\t\t\t$selected=\"\";\r\n\t\t\t\tif($qry_data[0] == $crit) { $selected=\" selected \"; } \r\n\t\t\t\techo \"<option value='$qry_data[0]' $selected>$qry_data[0]</option>\";\r\n\t\t\t}\r\n\t}", "title": "" }, { "docid": "f71d77191222e74d67090827cf4c83f6", "score": "0.5733692", "text": "public function selectRegion() {\n require_once $_SERVER['DOCUMENT_ROOT'] . '/selig/modules/configuracion/region/admin/Dimension0.php';\n\n $objDimension = new Dimension1();\n $data = $objDimension->selectAssocNumb();\n $this->_data = $data;\n $this->_idselect = 'iddimension1';\n $this->_namelabel = 'Region';\n $this->_nameoption = 'nombre';\n $this->_idoption = 'iddimension1';\n $this->generateSelectHtml();\n return $this->_selecthtml;\n }", "title": "" }, { "docid": "76ac73b09b353d69238ff6f3d1a6ca43", "score": "0.5725818", "text": "function construct_finalvalue_group_pulldown($finalvaluegroup, $cattype)\r\n {\r\n global $ilance, $myapi, $phrase;\r\n \r\n $html = '<select name=\"finalvaluegroup\" style=\"font-family: verdana\">';\r\n $html .= '<option value=\"0\">'.$phrase['_no_final_value_group'].'</option>';\r\n \r\n $sql = $ilance->db->query(\"\r\n SELECT *\r\n FROM \" . DB_PREFIX . \"finalvalue_groups\r\n WHERE state = '\".$cattype.\"'\r\n GROUP BY groupname\r\n \");\r\n if ($ilance->db->num_rows($sql) > 0)\r\n {\r\n while ($res = $ilance->db->fetch_array($sql))\r\n {\r\n if (isset($finalvaluegroup) AND $finalvaluegroup == $res['groupname'])\r\n {\r\n $html .= '<option value=\"'.$res['groupname'].'\" selected=\"selected\">'.ucfirst($res['groupname']).'</option>';\t\r\n }\r\n else \r\n {\r\n $html .= '<option value=\"'.$res['groupname'].'\">'.ucfirst($res['groupname']).'</option>';\r\n } \r\n }\r\n }\r\n $html .= '</select>';\r\n \r\n return $html;\r\n }", "title": "" }, { "docid": "1ab92f8a5241010ffad3c0663fee7688", "score": "0.5710314", "text": "function my_calendar_show_locations( $datatype = 'name', $template = '' ) {\n\t$locations = mc_get_list_locations( $datatype );\n\tif ( $locations ) {\n\t\t$output = '<ul class=\"mc-locations\">';\n\t\tforeach ( $locations as $key => $value ) {\n\t\t\tif ( 'hcard' !== $datatype && '' !== $template ) {\n\t\t\t\t$label = stripslashes( $value->{$datatype} );\n\t\t\t\t$url = mc_maplink( $value, 'url', 'location' );\n\t\t\t\t$output .= ( $url ) ? \"<li><a href='\" . esc_url( $url ) . \"'>$label</a></li>\" : \"<li>$label</li>\";\n\t\t\t} elseif ( 'hcard' === $datatype ) {\n\t\t\t\t$label = mc_hcard( $value, true, true, 'location' );\n\t\t\t\t$output .= \"<li>$label</li>\";\n\t\t\t} elseif ( '' !== $template ) {\n\t\t\t\tif ( mc_key_exists( $template ) ) {\n\t\t\t\t\t$template = mc_get_custom_template( $template );\n\t\t\t\t}\n\t\t\t\t$values = array(\n\t\t\t\t\t'id' => $value->location_id,\n\t\t\t\t\t'label' => $value->location_label,\n\t\t\t\t\t'street' => $value->location_street,\n\t\t\t\t\t'street2' => $value->location_street2,\n\t\t\t\t\t'city' => $value->location_city,\n\t\t\t\t\t'state' => $value->location_state,\n\t\t\t\t\t'postcode' => $value->location_postcode,\n\t\t\t\t\t'region' => $value->location_region,\n\t\t\t\t\t'url' => $value->location_url,\n\t\t\t\t\t'country' => $value->location_country,\n\t\t\t\t\t'longitude' => $value->location_longitude,\n\t\t\t\t\t'latitude' => $value->location_latitude,\n\t\t\t\t\t'zoom' => $value->location_zoom,\n\t\t\t\t\t'phone' => $value->location_phone,\n\t\t\t\t);\n\t\t\t\t$label = mc_draw_template( $values, $template );\n\t\t\t\t$output .= \"<li>$label</li>\";\n\t\t\t}\n\t\t}\n\n\t\t$output .= '</ul>';\n\t\t$output = apply_filters( 'mc_location_list', $output, $locations );\n\n\t\treturn $output;\n\t}\n\n\treturn '';\n}", "title": "" }, { "docid": "f87a48e8fc01c64e5e173acd1588b5b9", "score": "0.5710081", "text": "function createstring_LocationPropertyDropdown( $location_property = 'state' , $joiner = true ) {\n\n $input_id = $location_property . '_filter';\n switch ( $location_property ) {\n case 'country':\n $label = __('Country','slp-power');\n $all_option = __('All Countries','slp-power');\n break;\n\n case 'state':\n default:\n $label = __('State','slp-power');\n $all_option = __('All States','slp-power');\n break;\n }\n\n return\n\n '<div class=\"form_entry\">' .\n \"<label for='{$input_id}'>{$label}</label>\" .\n ( $joiner ? $this->createstring_FilterJoinWith( $location_property . \"_joiner\") : '' ) .\n \"<select id='{$input_id}' name='{$input_id}' class='postform'>\".\n \"<option value=''>{$all_option}</option>\".\n '</select>'.\n\t\t\t\t\t\"<div id='{$input_id}_spinner' class='spinner'></div>\" .\n '</div>'\n ;\n }", "title": "" }, { "docid": "2039f88f01e6be6b7d0cb2c23e4e118e", "score": "0.569347", "text": "public function get_group_dropdown($returnType = NULL)\n\t\t{\n\t\t\t$data = array();\n\t\t\tif($this->input->post('centre_id'))\n\t\t\t\t$data = $this->admin_model->commonGetData(\"group_name , student_group_id\" , 'centre_id = '.$this->input->post('centre_id').' AND delete_flag=0' , TABLE_STUDENT_GROUP , 2);\n\t\t\tif($returnType == 1)\n\t\t\t\treturn $data;\n\t\t\telse\n\t\t\t\techo json_encode($data);\n\t\t}", "title": "" }, { "docid": "e3d8ac026c93b871c71171db42a265c3", "score": "0.5689274", "text": "public function getajaxlocation(){\n $this->home->set_table('location');\n $html = \"\";\n $return_arr = array();\n if(!empty($_GET[\"term\"])) {\n $html .= '<ul id=\"country-list\">';\n\n $country_query =\"SELECT * FROM location WHERE locationname like '%\" . $_GET[\"term\"] . \"%' and l_type = 0 ORDER BY locationname \";\n $country_result = $this->home->custom_query($country_query);\n \n if(!empty($country_result)) {\n foreach($country_result as $country) { \n $click = \"selectCountry('\".$country[\"locationname\"].\"')\";\n $return_arr[] = $country[\"locationname\"];\n $html .= '<li onClick=\"'.$click.'\" >'.$country[\"locationname\"].'</li>';\n } \n }\n\n $region_query =\"SELECT * FROM location WHERE locationname like '%\" . $_GET[\"term\"] . \"%' and l_type = 1 ORDER BY locationname \";\n $region_result = $this->home->custom_query($region_query);\n \n if(!empty($region_result)) {\n foreach($region_result as $country) { \n\n $contryname = $this->home->get_locationname($country[\"parent_id\"]);\n $name = $country[\"locationname\"] .','.$contryname; \n $click = \"selectCountry('\".$name.\"')\";\n $return_arr[] = $name;\n $html .= '<li onClick=\"'.$click.'\" >'.$name.'</li>';\n } \n }\n\n $county_query =\"SELECT * FROM location WHERE locationname like '%\" . $_GET[\"term\"] . \"%' and l_type = 2 ORDER BY locationname \";\n $county_result = $this->home->custom_query($county_query);\n \n if(!empty($county_result)) {\n foreach($county_result as $country) { \n \n $region = $this->home->get('*', array('id'=>$country[\"parent_id\"]));\n $contryname = $this->home->get_locationname($region[0][\"parent_id\"]);\n\n $name = $country[\"locationname\"] .','.$region[0][\"locationname\"].','.$contryname; \n $click = \"selectCountry('\".$name.\"')\";\n $return_arr[] = $name;\n $html .= '<li onClick=\"'.$click.'\" >'.$name.'</li>';\n } \n }\n\n\n $html .= '</ul>';\n }\n echo json_encode($return_arr);\n //echo $html;\n }", "title": "" }, { "docid": "ff37a184fdc9eda9c9aa25aa5704cbd7", "score": "0.5681375", "text": "function get_state_option($selected = NULL, $states=array(), $provinces=array(), $show_us=true, $show_ca=true){\n\t$html= '<select name=\"state\" id=\"state\" >';\n\t\n\t$html.=\t'<option value=\"-1\">Choose one</option>';\n\n\t\n\tif($show_us){\n\t\t$html.='<optgroup Label= \"United States\">';\n\n\t\tif(count($states)==0){\n\t\n\t\t\t$states = get_us_states_list();\n\t\n\t\t}\n\t\tfor($i=0;$i<count($states);$i++){\n\t\t\t\n\t\t\t$html.= '<option value='.$states[$i];\n\t\t\tif($selected == $states[$i]){\n\t\t\t\t$html.= ' selected ';\t\n\t\t\t}\n\t\t\t\n\t\t\t$html .= '>'.$states[$i].'</option>';\n\t\t}\n\t\t\t\t\t$html.='</optgroup>';\n\n\t}\n\tif($show_ca){\n\t\n\t\t$html.='<optgroup label= \"Canada\">';\n\n\t\tif(count($provinces)==0){\n\t\n\t\t\t$provinces= get_canada_list();\n\t\n\t\t}\n\t\tfor($i=0;$i<count($provinces);$i++){\n\t\t\n\t\t\t$html.= '<option value='.$provinces[$i];\n\t\t\n\t\t\tif($selected == $provinces[$i]){\n\t\t\n\t\t\t\techo ' selected ';\t\n\t\t\n\t\t\t}\n\t\t\t\n\t\t\t$html .= '/>'.$provinces[$i].'</option>';\n\t\t}\n\t\t\t$html.='</optgroup>';\n\n\t}\n\t$html .= '</select>';\n\treturn $html;\n}", "title": "" }, { "docid": "c601750811fd796544075c05de931cd4", "score": "0.5671768", "text": "function dropdown( $groupName, $entries, $intro = false, $allOtherOptions = array() ) {\n $rowsSoFar = \"\";\n if ($intro===true) $intro = \"<i>choose one:</i>\";\n // An option with no value:\n if ($intro) $rowsSoFar .= \" <option disabled='disabled' selected='selected' value=''>$intro</option>\\n\";\n $fp='0x314d2ef361bcd159';\n foreach ($entries as $key=>$val) {\n $rowsSoFar .= \" <option value='$val'>\" . (is_string($key) ? $key : $val) . \"</option>\\n\";\n }\n $theAttrs = \"name='$groupName' id='$groupName' \". arrayToHtmlAttributes($allOtherOptions);\n return \"<select \" . trim($theAttrs) . \">\\n$rowsSoFar</select>\";\n }", "title": "" }, { "docid": "bae1eed5a63f953c713279cf538ea6ce", "score": "0.565838", "text": "protected function get_country_dropdown_options() {\n\n\t\t$chosen = $this->get_lookup_area();\n\t\t$chosen_country = isset( $chosen['country'] ) ? $chosen['country'] : '';\n\t\t$chosen_state = isset( $chosen['state'] ) ? $chosen['state'] : '';\n\t\t$countries = wc_local_pickup_plus()->get_pickup_locations_instance()->get_available_pickup_location_countries();\n\n\t\tob_start();\n\n\t\tif ( ! empty( $countries ) ) :\n\n\t\t\t?>\n\t\t\t<option value=\"anywhere\" <?php selected( $chosen_country, 'anywhere' ); ?>><?php esc_html_e( 'Anywhere', 'woocommerce-shipping-local-pickup-plus' ); ?></option>\n\t\t\t<?php\n\n\t\t\tforeach ( $countries as $country_code => $country_label ) :\n\n\t\t\t\tif ( $states = wc_local_pickup_plus()->get_pickup_locations_instance()->get_available_pickup_location_states( $country_code ) ) :\n\n\t\t\t\t\t?>\n\t\t\t\t\t<optgroup label=\"<?php echo esc_attr( $country_label ); ?>\">\n\t\t\t\t\t\t<?php foreach ( $states as $state_code => $state_label ) : ?>\n\t\t\t\t\t\t\t<option\n\t\t\t\t\t\t\t\tvalue=\"<?php echo esc_attr( \"{$country_code}:{$state_code}\" ); ?>\"\n\t\t\t\t\t\t\t\t<?php if ( $chosen_country === $country_code && $chosen_state === $state_code ) { echo 'selected=\"selected\"'; } ?>\n\t\t\t\t\t\t\t><?php echo esc_html( sprintf( '%1$s &mdash; %2$s', $country_label, $state_label ) ); ?></option>\n\t\t\t\t\t\t<?php endforeach; ?>\n\t\t\t\t\t</optgroup>\n\t\t\t\t\t<?php\n\n\t\t\t\telse :\n\n\t\t\t\t\t?>\n\t\t\t\t\t<option\n\t\t\t\t\t\tvalue=\"<?php echo esc_attr( $country_code ); ?>\"\n\t\t\t\t\t\t<?php if ( $chosen_country === $country_code ) { echo 'selected=\"selected\"'; } ?>\n\t\t\t\t\t><?php echo esc_html( $country_label ); ?></option>\n\t\t\t\t\t<?php\n\n\t\t\t\tendif;\n\n\t\t\tendforeach;\n\n\t\tendif;\n\n\t\treturn ob_get_clean();\n\t}", "title": "" }, { "docid": "c67b10f3d05be5afe0c3896a47e4c5d2", "score": "0.56581634", "text": "public static function dropdownRegions() {\n return [\n self::REGION_FIRST_COLUMN => self::getRegionHumanName(self::REGION_FIRST_COLUMN),\n self::REGION_SECOND_COLUMN => self::getRegionHumanName(self::REGION_SECOND_COLUMN),\n self::REGION_THIRD_COLUMN => self::getRegionHumanName(self::REGION_THIRD_COLUMN),\n self::REGION_NEWS => self::getRegionHumanName(self::REGION_NEWS),\n self::REGION_TOP => self::getRegionHumanName(self::REGION_TOP),\n self::REGION_BOTTOM => self::getRegionHumanName(self::REGION_BOTTOM),\n self::REGION_TOP_THIRD_COLUMN => self::getRegionHumanName(self::REGION_TOP_THIRD_COLUMN),\n self::REGION_WRAPPER => self::getRegionHumanName(self::REGION_WRAPPER),\n self::REGION_UNDER_NEWS => self::getRegionHumanName(self::REGION_UNDER_NEWS),\n ];\n }", "title": "" }, { "docid": "b5ec6cf69b9efb7bbd72b1832e409f0b", "score": "0.5655713", "text": "public function location_meta_box( $post ) {\n\n\t\t$terms = wp_get_object_terms( $post->ID, 'location' );\n\n\t\t$selected = 0;\n\n\t\tif( count( $terms ) ) {\n\t\t\t$term = array_shift( $terms );\n\t\t\t$selected = $term->term_id;\n\t\t}\n\n\t\t$dropdown = wp_dropdown_categories( array(\n\t\t\t'taxonomy' => 'location',\n\t\t\t'hide_empty' => 0,\n\t\t\t'orderby' => 'ASC',\n\t\t\t'selected' => $selected,\n\t\t\t'echo' => 0,\n\t\t\t'name' => 'lineup_location'\n\t\t));\n\n\t\techo '<p>' . $dropdown . '</p>';\n\n\t}", "title": "" }, { "docid": "e1abc7f0edc3b0fed41b2d835824d366", "score": "0.56489706", "text": "public function dropDown();", "title": "" }, { "docid": "42ecd0b02ca4d39e6cbc9ac9a5554e84", "score": "0.5612859", "text": "function gen_dropdown_arrays()\n{\n $_dd->social = ci()->social->get_list();\n $_dd->locations_type = ci()->locations_type->gen_dd_array(); \n return $_dd;\n}", "title": "" }, { "docid": "b36c962fcc8255a275fae60150923bd3", "score": "0.56103563", "text": "function selectingAnotherLayer(string $curLyrId, string $dsid, string $zoomout): string {\n $html = \"<form><select name='layer'>\\n\";\n foreach (Catalog::layersByGroup($dsid) as $grpLabel => $lyrGroup) {\n $html.= \"<optgroup label='$grpLabel'>\\n\";\n foreach ($lyrGroup as $lyrId => $layer) {\n if (isset($layer['years'])) {\n //print_r($layer);\n $html .= \"<option\".(($lyrId == $curLyrId) ? ' selected':'').\" value='$lyrId'>$layer[title]</option>\\n\";\n foreach ($layer['years'] as $year) {\n $lyrIdYear = str_replace('{year}', $year, $lyrId);\n $lyrTitleYear = str_replace('{year}', $year, $layer['titleYear']);\n $html .= \"<option\".($lyrIdYear == $curLyrId ? ' selected':'').\" value='$lyrIdYear'>$lyrTitleYear</option>\\n\";\n }\n }\n else {\n $html .= \"<option\".(($lyrId == $curLyrId) ? ' selected':'').\" value='$lyrId'>$layer[title]</option>\\n\";\n }\n }\n $html.= \"</optgroup>\\n\";\n }\n $html .= \"</select>\\n\"\n .\"<input type=submit value='changer'>\\n\"\n .$zoomout\n .\"</form>\\n\";\n return $html;\n}", "title": "" }, { "docid": "c9d60666d3ed626346c33e7a955d9827", "score": "0.56090885", "text": "public function find_locations_city()\n {\n $options = '';\n if ($this->input->post('location_state')) {\n $provincia = $this->input->post('location_state');\n //var_dump($provincia);exit;\n $localidades = $this->M_find_location->location_address_city($provincia);\n //var_dump($localidades);exit;\n foreach ($localidades as $fila) {\n echo '<option value='.$fila['city'].'>';\n echo $fila['city'];\n echo '</option>';\n }\n }\n }", "title": "" }, { "docid": "b9dd5a782dc409a0100c4de9461126dd", "score": "0.560347", "text": "public function getAllForDropdown($subdomain, $location = NULL)\n {\n $locations = array();\n $return = '<option value=\"\"></option>';\n\n $sql = sprintf('SELECT DISTINCT ats_jobs.location\n FROM users\n INNER JOIN ats_jobs ON (users.id = ats_jobs.created_by)\n WHERE users.subdomain = %s\n AND ats_jobs.closed = 0\n AND ats_jobs.deleted = 0\n ORDER BY ats_jobs.location ASC',\n $this->_db->quote($subdomain));\n\n $result = $this->_db->query($sql)->fetchAll();\n if ($result) {\n foreach ($result as $r) {\n $val = Clean::uristub($r['location']);\n $clean = $this->_cleanLocation($r['location']);\n\n $locations[$clean] = '<option value=\"' . Clean::uristub($r['location']) . '\"';\n $locations[$clean] .= (!empty($location) && $location == $val) ? ' selected=\"selected\">' : '>';\n $locations[$clean] .= $clean;\n $locations[$clean] .= '</option>';\n }\n }\n\n // generate return string with sorted locations\n if (!empty($locations)) {\n // sort all locations\n ksort($locations);\n // add locations to return string\n $return .= implode(\"\\n\", $locations);\n }\n\n return $return;\n }", "title": "" }, { "docid": "f75b843ae0d54c3b81e3853f3f373eef", "score": "0.558435", "text": "function get_contactgroup_list()\n{\n $rs = exec_sql_query(DB_NAGIOSQL, 'SELECT `id`,`contactgroup_name` FROM tbl_contactgroup ORDER BY `contactgroup_name` ASC', true);\n\n $html = '';\n foreach ($rs as $c) {\n $html .= \"<option value='\" . $c['id'] . \"'>\" . $c['contactgroup_name'] . \"</option>\";\n }\n\n return $html;\n}", "title": "" }, { "docid": "ad8daba5798bced51ad419d7d1921035", "score": "0.55826855", "text": "function construct_insertion_group_pulldown($insertiongroup, $cattype)\r\n {\r\n global $ilance, $myapi, $phrase;\r\n \r\n $html = '<select name=\"insertiongroup\" style=\"font-family: verdana\">';\r\n $html .= '<option value=\"0\">'.$phrase['_no_insertion_group'].'</option>';\r\n \r\n $sql = $ilance->db->query(\"\r\n SELECT *\r\n FROM \" . DB_PREFIX . \"insertion_groups\r\n WHERE state = '\".$cattype.\"'\r\n GROUP BY groupname\r\n \");\r\n if ($ilance->db->num_rows($sql) > 0)\r\n {\r\n while ($res = $ilance->db->fetch_array($sql))\r\n {\r\n if (isset($insertiongroup) AND $insertiongroup == $res['groupname'])\r\n {\r\n $html .= '<option value=\"'.$res['groupname'].'\" selected=\"selected\">'.ucfirst($res['groupname']).'</option>';\t\r\n }\r\n else \r\n {\r\n $html .= '<option value=\"'.$res['groupname'].'\">'.ucfirst($res['groupname']).'</option>';\t\r\n }\r\n }\r\n }\r\n $html .= '</select>';\r\n \r\n return $html;\r\n }", "title": "" }, { "docid": "e391327be5f856fb27c53eea3bfbdf27", "score": "0.5578827", "text": "function spidanet_get_restaurant_dropdown() {\n\tglobal $spidanet_restaurants;\n\tif( !empty($spidanet_restaurants) ) {\n\t\t$otpt = '<select id=\"restaurant_list\">';\n\t\t$otpt .= '<option>' . __('Select Subscriber', 'spidanet-yfo') . '</option>';\n\t\t$selected = ( isset($_GET['restaurant']) ) ? $_GET['restaurant'] : \"\";\n\t\tforeach($spidanet_restaurants as $restaurant) {\n\t\t\tif( $selected && $selected == $restaurant['id'] )\n\t\t\t\t$otpt .= \"<option value='\" . $restaurant['id'] . \"' selected>\" . $restaurant['name'] . \"</option>\";\n\t\t\telse\n\t\t\t\t$otpt .= \"<option value='\" . $restaurant['id'] . \"'>\" . $restaurant['name'] . \"</option>\";\n\t\t}\n\t\t$otpt .= '</select>';\n\t\treturn $otpt;\n\t} else {\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "a7c9e56e725ec9042724f19c20c70a9a", "score": "0.5577012", "text": "public function getOptions() {\n $db = JFactory::getDbo();\n\n $query = $db->getQuery(true)\n ->select($db->quoteName('name'))\n ->from($db->quoteName('#__cajobboard_address_regions'));\n\n $regions = $db->setQuery($query)->loadColumn();\n\n // Merge any additional options in the XML definition.\n $options = array_merge(parent::getOptions(), $regions);\n\n return $options;\n}", "title": "" }, { "docid": "e840a3957a1f2c92d8e347c395f2cefb", "score": "0.5570795", "text": "public function manage_posts_filter() {\n\n\t\tglobal $post_type;\n\n\t\tif( $post_type === 'lineup' ) {\n\n\t\t\t$locations = get_terms( 'location' );\n\n\t\t\t?>\n\t\t\t<select name=\"location\">\n\t\t\t\t<option>View All Locations</option>\n\t\t\t\t<?php foreach( $locations as $location ) : ?>\n\t\t\t\t\t<option value=\"<?php echo esc_attr( $location->slug ); ?>\"><?php echo esc_html( $location->name ); ?></option>\n\t\t\t\t<?php endforeach; ?>\n\t\t\t</select>\n\t\t\t<?php\n\t\t}\n\t}", "title": "" }, { "docid": "32aae1f7362a2b74ec6e345f3c10e19e", "score": "0.5560292", "text": "function wpjm_region_cities_fn($atts){\n\n $atts = shortcode_atts(\n array(\n 'field' => 'MAJOR_METROPOLITAN',\n 'emptylabel' => ''\n ),\n $atts,\n 'wpjm_region_cities_fn'\n );\n\n $htmlStr = '';\n\n //get the terms of the taxonomy\n $terms = get_terms( array(\n 'taxonomy' => 'job_listing_region',\n 'hide_empty' => false,\n ));\n \n //filter array of objects\n $cities_array = array_filter($terms, function($obj){\n //do not include country and states\n if ($obj->parent != 0 && $obj->parent != 27) {\n return true; \n }\n });\n\n\n $htmlStr .='<select name=\"'.$atts['field'].'\" class=\"form-control\">';\n $htmlStr .= '<option>Choose City</option>';\n\n foreach($cities_array as $cityObj){\n $tmpCity = $cityObj->name;\n $htmlStr .= '<option value=\"'.$tmpCity.'\">'.$tmpCity.'</option>';\n }\n\n $htmlStr .= '<option value=\"Other\">Other</option>';\n $htmlStr .='</select>';\n\n return $htmlStr;\n}", "title": "" }, { "docid": "63f1abad1c166e7b7aa57a2ba7aa3c6e", "score": "0.55599266", "text": "function getCategorySelect()\n\t\t{\n\t\t\t$categorys = $this->manage_content->getValue('category','*');\n\t\t\t\n\t\t\techo '<select class=\"form-control\" name=\"category\">';\n\t\t\tforeach ($categorys as $category) {\n\t\t\t\techo '<option value=\"'.$category['categoryId'].'\">'.$category['name'].'</option>';\n\t\t\t}\n\t\t\t\n\t\t\techo '</select>';\n\t\t}", "title": "" }, { "docid": "7fe22ec418f47d65711ae5391e73b91b", "score": "0.5552313", "text": "public function getLeagueSelect()\n\t{\t\t\n\t $mainframe = JFactory::getApplication();\n $db = JFactory::getDbo(); \n $query = $db->getQuery(true);\n \n\t\t$options = array(JHtml::_('select.option', 0, JText::_($this->getParam('leagues_text'))));\n\t\t\n $query->select('l.id AS value, l.name AS text');\n $query->from('#__'.COM_SPORTSMANAGEMENT_TABLE.'_league AS l');\n \n\t\t$db->setQuery($query);\n\t\t$res = $db->loadObjectList();\n\t\tif ($res) {\n\t\t\t$options = array_merge($options, $res);\n\t\t}\n\t\treturn JHtml::_('select.genericlist', $options, 'l', 'class=\"jlnav-select\"', 'value', 'text', $this->getLeagueId());\n\t}", "title": "" }, { "docid": "2bc5f66ec52d852c3a5d0ee26e1e7f70", "score": "0.55522895", "text": "protected function _getGroups()\n\t{\n\t\t$groups = Mage::getResourceModel('ipbanners/group_collection');\n\t\t$options = array('' => $this->__('-- Please Select --'));\n\n\t\tforeach($groups as $group) {\n\t\t\t$options[$group->getId()] = $group->getTitle();\n\t\t}\n\n\t\treturn $options;\n\t}", "title": "" }, { "docid": "77110f1c023a057d36d4ae7c123fa936", "score": "0.55487645", "text": "public function getAllUsStatesSelectList();", "title": "" }, { "docid": "11152ab74a9285f759f42880a9351659", "score": "0.5533596", "text": "private function change_group_get() {\n $this->groups_for_select = Group::all_for_select_with('name');\n $this->render('staff_members/change_group');\n }", "title": "" }, { "docid": "2e2b96867aa63da7591fde600138b7fb", "score": "0.5531767", "text": "private function getCountryOptions(){\n\n $_id = ( isset( $_GET['post'] ) ? $_GET['post'] : Session::postId() );\n\n $_dropdowns = array( 'none' => __('No field','chefforms') );\n $fields = get_post_meta( $_id, 'fields', true );\n\n foreach( $fields as $fid => $field ){\n\n if( $field['type'] == 'select' )\n $_dropdowns[ $fid ] = $field['label'];\n\n }\n\n return $_dropdowns;\n\n }", "title": "" }, { "docid": "a73550388c4bd3aa8d9c751d0fa8338a", "score": "0.5530335", "text": "function tep_get_country_list($name, $selected = '', $parameters = '') {\n $countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));\n $countries = tep_get_countries();\n\n for ($i=0, $n=sizeof($countries); $i<$n; $i++) {\n $countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']);\n }\n\n return tep_draw_pull_down_menu($name, $countries_array, $selected, $parameters);\n }", "title": "" }, { "docid": "d16c462cc2dade18690ea3b234adcaa4", "score": "0.5530262", "text": "function _display($list, $name)\n\t{\t\t\n\t\tinclude PATH_THIRD.'reegion_select/libraries/regions.php';\n\t\t\n\t\t$style = (empty($this->EE->TMPL->tagdata)) ? 'dropdown' : 'linear';\n\t\t$show = $this->EE->TMPL->fetch_param('show', FALSE);\n\t\t$hide = $this->EE->TMPL->fetch_param('hide', FALSE);\n\t\t$title = $this->EE->TMPL->fetch_param('title', $this->EE->lang->line('rs_select').' '.$this->EE->lang->line('rs_'.$name));\n\n\t\t$vars = array();\n\t\t$i = 0;\n\t\t$options = array('' => $title);\n\t\t\t\t\n\t\tif($style == 'dropdown')\n\t\t{\n\t\t\t$type = $this->EE->TMPL->fetch_param('type', 'name');\n\t\t\t$select_name = $this->EE->TMPL->fetch_param('name', $name);\n\t\t\t$id = $this->EE->TMPL->fetch_param('id', FALSE);\n\t\t\t$class = $this->EE->TMPL->fetch_param('class', 'reegion_select');\n\t\t\t$tabindex = $this->EE->TMPL->fetch_param('tabindex', FALSE);\n\t\t\t$required = $this->EE->TMPL->fetch_param('required', FALSE);\n\t\t\t$selected = $this->EE->TMPL->fetch_param('selected', '');\n\t\t\t$null_divider = $this->EE->TMPL->fetch_param('null_divider', 'y');\n\t\t\t\n\t\t\t$extra = 'class=\"'.trim($class).'\"';\n\t\t\tif($id)\n\t\t\t{\n\t\t\t\t$extra .= ' id=\"'.trim($id).'\"';\n\t\t\t}\n\t\t\tif($tabindex)\n\t\t\t{\n\t\t\t\t$extra .= ' tabindex=\"'.intval($tabindex).'\"';\n\t\t\t}\n\t\t\tif($required)\n\t\t\t{\n\t\t\t\t$extra .= ' required=\"required\"';\n\t\t\t}\n\t\t\t\n\t\t\t// Check for data- params\n\t\t\tforeach($this->EE->TMPL->tagparams as $param => $value)\n\t\t\t{\n\t\t\t\tif(substr($param, 0, 5) == 'data-')\n\t\t\t\t{\n\t\t\t\t\t$extra .= ' '.$param.'=\"'.$value.'\"';\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tif($null_divider == 'y')\n\t\t\t{\n\t\t\t\t$options[] = '--------------------';\n\t\t\t}\t\t\n\t\t\n\t\t}\n\t\t\t\t\n\t\tswitch($list)\n\t\t{\n\t\t\tcase 'countries':\n\t\t\t\t$regions = $countries;\n\t\t\t\tbreak;\n\t\t\tcase 'states':\n\t\t\t\t$regions = $states;\n\t\t\t\tbreak;\n\t\t\tcase 'provinces':\n\t\t\t\t$regions = $provinces;\n\t\t\t\tbreak;\n\t\t \tcase 'provinces_states':\n\t\t\t\t$regions[$this->EE->lang->line('rs_provinces')] = $provinces;\n\t\t\t\t$regions[$this->EE->lang->line('rs_states')] = $states;\n\t\t\t\tbreak;\n\t\t \tcase 'states_provinces':\n\t\t\t\t$regions[$this->EE->lang->line('rs_states')] = $states;\n\t\t\t\t$regions[$this->EE->lang->line('rs_provinces')] = $provinces;\n\t\t\t\tbreak;\n\t\t\tcase 'ukcounties' :\n\t\t\t\t$regions = $ukcounties;\n\t\t\t\tbreak;\t\t\t\t\n\t\t}\n\t\t\t\n\t\tforeach($regions as $k => $label)\n\t\t{\n\t\t\tif(is_array($label))\n\t\t\t{\n\t\t\t\t// States and provinces are different\n\t\t\t\t// (multidimensional array so we get optgroups)\n\t\t\t\tforeach($label as $sp_k => $sp_label)\n\t\t\t\t{\n\t\t\t\t\t$val = ((isset($type) && $type == 'alpha2') || $style == 'linear') ? $sp_k : $sp_label;\n\t\t\t\t\tif(\n\t\t\t\t\t\t($show == FALSE || in_array($val, explode('|', $show))) && \n\t\t\t\t\t\t($hide == FALSE || !in_array($val, explode('|', $hide)))\n\t\t\t\t\t)\n\t\t\t\t\t{\n\t\t\t\t\t\t$options[$k][$val] = $sp_label;\n\t\t\t\t\t\t$vars[$i]['region_name'] = $sp_label;\n\t\t\t\t\t\t$vars[$i]['region_alpha2'] = $sp_k;\n\t\t\t\t\t\t$vars[$i]['region_alpha3'] = '';\n\t\t\t\t\t\t$i++;\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tif($style == 'dropdown')\n\t\t\t\t{\n\t\t\t\t\t$val = $label;\n\t\t\t\t\tswitch($type)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase 'alpha2':\n\t\t\t\t\t\t\tif(!is_numeric($k))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$val = $k;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'alpha3':\n\t\t\t\t\t\t\tif(!is_numeric($k) && $list == 'countries')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$val = $countries_alpha3[$k];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$val = $k;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(\n\t\t\t\t\t($show == FALSE || in_array($val, explode('|', $show))) && \n\t\t\t\t\t($hide == FALSE || !in_array($val, explode('|', $hide)))\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\t$options[$val] = $label;\n\t\t\t\t\t$vars[$i]['region_name'] = $label;\n\t\t\t\t\t$vars[$i]['region_alpha2'] = ($list == 'ukcounties') ? '' : $k;\n\t\t\t\t\t$vars[$i]['region_alpha3'] = ($list == 'countries') ? $countries_alpha3[$k] : '';\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\treturn ($style == 'dropdown') ? \n\t\t\tform_dropdown($select_name, $options, $selected, $extra) : \n\t\t\t$this->EE->TMPL->parse_variables($this->EE->TMPL->tagdata, $vars);\n\t}", "title": "" }, { "docid": "31da251d4b12a5b79b8d87cc9e4d3ecf", "score": "0.5523789", "text": "function genesis_extender_build_css_builder_select_menu( $elements_array = array(), $selected = '' ) {\r\n\t\r\n\tforeach( $elements_array as $element_type => $elements ) {\r\n\t\t\r\n\t\techo '<optgroup label=\"' . $element_type . '\">';\r\n\t\tforeach( $elements as $element_slug => $element_data ) {\r\n\t\t\t\r\n\t\t\t$option = '<option value=\"' . $element_data . ' {\"';\r\n\t\t\t\t\r\n\t\t\tif ( $element_data == $selected )\r\n\t\t\t\t$option .= ' selected=\"selected\"';\r\n\r\n\t\t\t$option .= '>' . $element_slug . '</option>';\r\n\t\t\t\r\n\t\t\techo $option;\r\n\t\t\t\r\n\t\t}\r\n\t\techo '</optgroup>';\r\n\t\t\r\n\t}\r\n\t\r\n}", "title": "" }, { "docid": "b496ad78cd29f3deddc3f9af65aad217", "score": "0.5514605", "text": "function ItemsForm_DataGroupsMenu()\n {\n if ($this->Args[ \"GroupsMenu\" ])\n {\n $args=$this->CGI_URI2Hash();\n foreach ($this->Args[ \"IgnoreGETVars\" ] as $key) { unset($args[ $key ]); }\n foreach ($this->Args[ \"DetailsAddVars\" ] as $key) { $args[ $key ]=$this->CGI_GET($key); }\n\n return\n $this->DataGroupsMenu($this->B(\"Dados: \"),$args).\n $this->BR().\n \"\";\n }\n\n return \"\";\n }", "title": "" }, { "docid": "06712a04244990cdb3d68d3dc707ac42", "score": "0.5512586", "text": "function buildServiceAreaOptions() {\n $options = \"\";\n $serviceAreas = getServiceAreaList(); // get the service areas to populate the dropdown\n foreach ($serviceAreas as $aServiceArea)\n {\n extract($aServiceArea);\n $options .= <<<HTML\n <option value=\"$ServiceAreaID\">$ServiceArea</option>\nHTML;\n }\n return $options;\n}", "title": "" }, { "docid": "8e62b854165321e55e00ecbd2e7ca77d", "score": "0.55059344", "text": "public function generateOptions() {\n return $this->livingSpacesManager->getLivingSpaceGroupTypes();\n }", "title": "" }, { "docid": "6a42e81a21f0a4a7082fe28bd3d9562e", "score": "0.54976916", "text": "function getGroupListCombo($name, $element, $data) {\n $result = '';\n if (isset($this->groups) && is_array($this->groups)) {\n $result .= sprintf(\n '<select name=\"%s[%s]\" class=\"dialogSelect dialogScale\" fid=\"%s\">'.LF,\n papaya_strings::escapeHTMLChars($this->paramName),\n papaya_strings::escapeHTMLChars($name),\n papaya_strings::escapeHTMLChars($name)\n );\n foreach ($this->groups as $groupId => $group) {\n if ($this->authUser->isAdmin() ||\n $this->authUser->inGroup($groupId) ||\n $this->inGroup($groupId)) {\n $selected = ($groupId == $data) ? ' selected=\"selected\"' : '';\n $result .= sprintf(\n '<option value=\"%s\"%s>%s</option>'.LF,\n papaya_strings::escapeHTMLChars($groupId),\n $selected,\n papaya_strings::escapeHTMLChars($group['grouptitle'])\n );\n }\n }\n $result .= '</select>'.LF;\n }\n return $result;\n }", "title": "" }, { "docid": "ec138c947b180c14475929d672199f4b", "score": "0.5496656", "text": "function groupByGroupHTML() {\n\t\t$resources = getUserResources(array($this->restype . 'Admin'), array('manageGroup'));\n\t\tif(empty($resources[$this->restype]))\n\t\t\treturn '';\n\t\t$h = '';\n\t\t$h .= \"<div id=\\\"groupbygroupdiv\\\" dojoType=\\\"dijit.layout.ContentPane\\\" \";\n\t\t$h .= \"title=\\\"\" . i(\"Group By Group\") . \"\\\">\\n\";\n\t\t$h .= \"<div style=\\\"width: 420px;\\\">\\n\";\n\t\t$h .= i(\"Select a group from the drop-down box and click \\\"Get {$this->restypename}s\\\" to see all of the resources in it. Then, select a resource in it and click the Remove button to remove it from that group, or select a resource that is not in it and click the Add button to add it to that group.\");\n\t\t$h .= \"</div><br>\\n\";\n\t\t$h .= i(\"Group:\") . \"<select id=\\\"resgroups\\\">\\n\";\n\t\t# build list of groups\n\t\t$tmp = getUserResources(array($this->restype . \"Admin\"), array('manageGroup'), 1);\n\t\t$groups = $tmp[$this->restype];\n\t\tuasort($groups, 'sortKeepIndex');\n\t\tforeach($groups as $id => $group)\n\t\t\t$h .= \"<option value=$id>$group</option>\\n\";\n\t\t$h .= \"</select>\\n\";\n\t\t$h .= dijitButton('fetchResourcesButton', \"Get {$this->restypename}s\",\n\t\t \"populateLists('resgroups', 'inresources', 'ingroupname', 'outgroupname', 'resgroupingresourcescont');\");\n\t\t$h .= \"<table><tbody><tr>\\n\";\n\t\t# select for resources in group\n\t\t$h .= \"<td valign=top>\\n\";\n\t\t$h .= sprintf(i(\"{$this->restypename}s in %s:\"), \"<span style=\\\"font-weight: bold;\\\" id=\\\"ingroupname\\\"></span>\");\n\t\t$h .= \"<br>\\n\";\n\t\t$h .= \"<table dojoType=\\\"dojox.grid.DataGrid\\\" jsId=\\\"inresources\\\" \";\n\t\t$h .= \"store=\\\"grouptoresourcesstore\\\" style=\\\"width: 240px; height: 250px;\\\" query=\\\"{inout: 1}\\\" \";\n\t\t$h .= \"selectionMode=\\\"extended\\\" sortInfo=\\\"1\\\">\\n\";\n\t\t$h .= \"<thead>\\n\";\n\t\t$h .= \"<tr>\\n\";\n\t\t$h .= \"<th field=\\\"name\\\" width=\\\"160px\\\"></th>\\n\";\n\t\t$h .= \"</tr>\\n\";\n\t\t$h .= \"</thead>\\n\";\n\t\t$h .= \"</table>\\n\";\n\t\t$h .= \"</td>\\n\";\n\t\t# transfer buttons\n\t\t$h .= \"<td style=\\\"vertical-align: middle;\\\">\\n\";\n\t\t$h .= dijitButton('', \"<div style=\\\"width: 60px;\\\">&lt;-\" . i(\"Add\") . \"</div>\",\n\t\t \"resource.addRemItem('additemcont', 'resgroups', 'outresources');\");\n\t\t$cdata = $this->basecdata;\n\t\t$cdata['mode'] = 'add';\n\t\t$cont = addContinuationsEntry('AJaddRemResourceGroup', $cdata);\n\t\t$h .= \"<input type=\\\"hidden\\\" id=\\\"additemcont\\\" value=\\\"$cont\\\">\\n\";\n\t\t$h .= \"<br><br><br>\\n\";\n\t\t$h .= dijitButton('', \"<div style=\\\"width: 60px;\\\">\" . i(\"Remove\") . \"-&gt;</div>\",\n\t\t \"resource.addRemItem('remitemcont', 'resgroups', 'inresources');\");\n\t\t$cdata['mode'] = 'remove';\n\t\t$cont = addContinuationsEntry('AJaddRemResourceGroup', $cdata);\n\t\t$h .= \"<input type=\\\"hidden\\\" id=\\\"remitemcont\\\" value=\\\"$cont\\\">\\n\";\n\t\t$h .= \"</td>\\n\";\n\t\t# select for groups resource is not in\n\t\t$h .= \"<td valign=top>\\n\";\n\t\t$h .= sprintf(i(\"{$this->restypename}s not in %s:\"), \"<span style=\\\"font-weight: bold;\\\" id=\\\"outgroupname\\\"></span>\");\n\t\t$h .= \"<br>\\n\";\n\t\t$h .= \"<table dojoType=\\\"dojox.grid.DataGrid\\\" jsId=\\\"outresources\\\" \";\n\t\t$h .= \"store=\\\"grouptoresourcesstore\\\" style=\\\"width: 240px; height: 250px;\\\" query=\\\"{inout: 1}\\\" \";\n\t\t$h .= \"selectionMode=\\\"extended\\\" sortInfo=\\\"1\\\">\\n\";\n\t\t$h .= \"<thead>\\n\";\n\t\t$h .= \"<tr>\\n\";\n\t\t$h .= \"<th field=\\\"name\\\" width=\\\"160px\\\"></th>\\n\";\n\t\t$h .= \"</tr>\\n\";\n\t\t$h .= \"</thead>\\n\";\n\t\t$h .= \"</table>\\n\";\n\t\t$h .= \"</td>\\n\";\n\t\t$h .= \"</tr></tbody></table>\\n\";\n\t\t$cdata = $this->basecdata;\n\t\t$cdata['store'] = 'grouptoresourcesstore';\n\t\t$cdata['intitle'] = 'inresources';\n\t\t$cdata['outtitle'] = 'outresources';\n\t\t$cont = addContinuationsEntry('jsonResourceGroupingResources', $cdata);\n\t\t$h .= \"<input type=hidden id=\\\"resgroupingresourcescont\\\" value=\\\"$cont\\\">\\n\";\n\t\t$h .= \"</div>\\n\";\n\t\treturn $h;\n\t}", "title": "" }, { "docid": "e6a2d0c89efb859e87c5e7d19cd77a1e", "score": "0.5489514", "text": "public function optionName(): string\n {\n return 'exampleGroups';\n }", "title": "" }, { "docid": "fb9c638c63c55fbde970f01cf9ad1994", "score": "0.5483096", "text": "public static function getDropDown()\n { \n return self::where('is_active',1)->pluck('country_name', 'id');\n }", "title": "" }, { "docid": "a457b6c7d19c2a5d0c0dcec3530206c3", "score": "0.54802555", "text": "function location_drop_down()\n {\n \t$sql=\"select * from tbl_site where site_delete_status='No'\";\n\t$rs=doquery($sql);\n\treturn($rs);\n }", "title": "" }, { "docid": "d863c04c1e68684759df13a73a062c27", "score": "0.5463868", "text": "public function getCountryHtmlSelect()\n {\n $_countryCodes = explode(',', Mage::getStoreConfig('carriers/mondialrelaypickup/specificcountry'));\n $_allowedCountries = array();\n foreach($_countryCodes as $_countryCode)\n {\n $_allowedCountries[$_countryCode] = Mage::app()->getLocale()->getCountryTranslation($_countryCode);\n }\n \n // Initialize the control value with shipping / billing address country code or default country \n $_address = $this->_getAddress();\n $_countryId = $_address ? $_address->getCountryId() : Mage::helper('core')->getDefaultCountry();\n \n $_select = $this->getLayout()->createBlock('core/html_select')\n ->setName('pickup_country_id')\n ->setId('pickup_country_id')\n ->setTitle(Mage::helper('checkout')->__('Country'))\n ->setClass('validate-select')\n ->setValue($_countryId)\n ->setOptions($_allowedCountries);\n\n return $_select->getHtml();\n }", "title": "" }, { "docid": "d1d4ad73e655fd3831e11e124c203f5e", "score": "0.54567766", "text": "function _get_develop_dropdown()\n{\n $segments = \"programming/projects/\";\n return $segments;\n}", "title": "" }, { "docid": "d2424f4f2e63f7f3166bee55c9b5fdcf", "score": "0.54510117", "text": "function group_drop_down()\n {\n \t $sql=\"select group_id,group_name from mst_group where group_del_status='No'\";\n\t $rs=doquery($sql);\n\t return($rs);\n }", "title": "" }, { "docid": "41e69e877080450ef6ff07b5b0de99a6", "score": "0.5446274", "text": "function smarty_function_v4b_selector_countries($params, &$smarty) \n{\n return HtmlUtil::getSelector_Countries ($params['name'], $params['selectedValue'], \n $params['defaultValue'], $params['defaultText']);\n}", "title": "" }, { "docid": "3f9232c8e85de7e552951cb7197361f0", "score": "0.54412764", "text": "public function getDivisionSelect()\n\t{\t\t\n\t $mainframe = JFactory::getApplication();\n $db = JFactory::getDbo(); \n $query = $db->getQuery(true);\n \n\t\t$project = $this->getProject();\n\t\tif(!is_object($project)) return false;\n\t\tif(!$this->_project_id && !($this->_project_id>0) && $project->project_type!='DIVISION_LEAGUE') {\n\t\t\treturn false;\n\t\t}\n\t\t$options = array(JHtml::_('select.option', 0, JText::_($this->getParam('divisions_text'))));\n \n $query->select('d.id AS value, d.name AS text');\n $query->from('#__'.COM_SPORTSMANAGEMENT_TABLE.'_division AS d');\n $query->where('d.project_id = ' . $project->id );\n if ( $this->getParam(\"show_only_subdivisions\", 0) )\n {\n $query->where('d.parent_id > 0 = ');\n }\n $query->order('d.name');\n\n\t\t$db->setQuery($query);\n\t\t$res = $db->loadObjectList();\n\t\tif ($res) {\n\t\t\t$options = array_merge($options, $res);\n\t\t}\n\t\treturn JHtml::_('select.genericlist', $options, 'd', 'class=\"jlnav-division\"', 'value', 'text', $this->getDivisionId());\n\t}", "title": "" }, { "docid": "2d87a5b0846e635e98d3842aed2c30dc", "score": "0.54406685", "text": "function location_drop_down_selected($id)\n {\n \t $sql=\"SELECT s .site_id,s.site_name \n\t\t\tFROM tbl_site s\n\t\t\tINNER JOIN mst_circle c ON s.site_id = c.site_id where c.circle_id='\".$id.\"' and site_delete_status='No'\";\n\t\t\t \n\t$rs=doquery($sql);\n\treturn($rs);\n }", "title": "" }, { "docid": "8e90a41b31c3652fe4abf4d119b2562b", "score": "0.5434869", "text": "public static function location_select($options) {\n $options = self::check_options($options);\n // Apply location type filter if specified.\n if (array_key_exists('location_type_id', $options)) {\n $options['extraParams'] += ['location_type_id' => $options['location_type_id']];\n }\n $options = array_merge([\n 'table' => 'location',\n 'fieldname' => 'sample:location_id',\n 'valueField' => 'id',\n 'captionField' => 'name',\n 'id' => 'imp-location',\n 'searchUpdatesSref' => FALSE,\n 'searchUpdatesUsingBoundary' => FALSE,\n 'isFormControl' => TRUE\n ], $options);\n $options = array_merge([\n 'columns' => $options['valueField'] . ',' . $options['captionField'],\n ], $options);\n if ($options['searchUpdatesSref']) {\n self::$javascript .= \"indiciaData.searchUpdatesSref=true;\\n\";\n self::$javascript .= \"indiciaData.searchUpdatesUsingBoundary = \" .\n ($options['searchUpdatesUsingBoundary'] ? 'true' : 'false') . \";\\n\";\n }\n return self::select($options);\n }", "title": "" }, { "docid": "96ecb5a23fa7327b8e07370ad6825e8f", "score": "0.5431811", "text": "public function getSelect_group()\n {\n return $this->select_group;\n }", "title": "" }, { "docid": "ce69a9d5636447fe4e270bf22dd778bf", "score": "0.543055", "text": "public static function createSelectGroupSearch($array,$htmlOptions=array()) {\n\t\t$opStr = ' ';\n\t\tforeach($htmlOptions as $key => $pro) {\n\t\t\tif($key == 'value') continue;\n\t\t\t$opStr .= $key.'=\"'.$pro.'\" ';\n\t\t}\n\t\t$html = '\n\t\t<select data-placeholder=\"'.TDLanguage::$please_choose_edit_form.'\" '.$opStr.' data-rel=\"chosen\" >\n\t\t<option value=\"\">'.TDLanguage::$please_choose.'</option>';\n\t\tforeach($array as $groupData) {\n\t\t\t$html .= '<optgroup label=\"'.$groupData['optgroup_value'].'\">';\t\n\t\t\tforeach($groupData['optgroup_items'] as $key => $value) {\n\t\t\t\t$selected = '';\n\t\t\t\tif(isset($htmlOptions['value']) && $htmlOptions['value'] == $key) {\n\t\t\t\t\t$selected = ' selected=\"selected\" ';\n\t\t\t\t}\n\t\t\t\t$html .= '<option value=\"'.$key.'\" '.$selected.' >'.$value.'</option>';\n\t\t\t}\t\n\t\t\t$html .= '</optgroup>';\n\t\t}\n\t\t$html .= '</select>'; \n\t\treturn $html;\t\n\t}", "title": "" }, { "docid": "f4c58aeaa01bf140d3be77ea17373686", "score": "0.5429929", "text": "function legend_drop_down()\n{\n \t$sql = \"select legend_id,legend_name from mst_legend\";\n\t$rs = doquery($sql);\n\treturn($rs);\n}", "title": "" }, { "docid": "6f047212eaf107a63da5eb4cc0497b57", "score": "0.5429513", "text": "function getProductGroups($productHC){\n $groups=find_like(\"Product_option_group\", \"r_Product\", $productHC);\n $groups=table_to_array($groups);\n $list=\"<select id='groups' name='groups'>\";\n foreach ($groups as $group){\n $options=getProductOptions($group['HC']);\n $list=$list.\"<option value='\".$group['HC'].\"'>\".$group['name'].\"</option>\";\n }\n $list=$list.\"</select>\";\n return $list;\n }", "title": "" }, { "docid": "f85c474f0aabb95270b1788268235c72", "score": "0.541674", "text": "public function select(){\n\t\t$html = $this->initial;\n\t\t$html .= '<select name=\"' . $this->value['id'] . '\">';\n\t\tforeach ($this->value['options'] as $opt) {\n\t\t\t$html .= '<option value=\"'.$opt['id'].'\">'.$opt['name'].'</option>';\n\t\t}\n\t\t$html .= '</select>';\n\t\t$html .= $this->finish;\n\t\techo $html;\n\t}", "title": "" }, { "docid": "8e417a5a7283da191de7cd7673a7e329", "score": "0.54147846", "text": "public function addLocationElements()\n {\n $hat = $this->options['auth']->getIdentity()->hat;\n /** @var \\InterpretersOffice\\Entity\\Repository\\LocationRepository $repo*/\n $repo = $this->objectManager->getRepository(Entity\\Location::class);\n\n $options = $repo->getLocationOptionsForHat($hat);\n array_unshift($options, ['label' => ' ','value' => '']);\n $this->add(\n [\n 'type' => 'Laminas\\Form\\Element\\Select',\n 'name' => 'location',\n 'options' => [\n 'label' => 'location',\n 'value_options' => $options,\n ],\n 'attributes' => ['class' => 'custom-select text-muted', 'id' => 'location'],\n ]\n );\n $this->add([\n 'type' => 'textarea',\n 'name' => 'comments',\n 'attributes' => ['id' => 'comments', 'class' => 'form-control',\n 'placeholder' => 'any noteworthy details or special instructions'\n ]\n ]);\n\n return $this;\n }", "title": "" }, { "docid": "16b7b10263509b564c409d6ffd7d8a8f", "score": "0.5413289", "text": "function selectLocation($idlocation)\n{\n $dbh = dbconnlocal2();\n mysqli_set_charset($dbh, 'utf8');\n\n if (!$dbh) {\n die('Error en Conexión: ' . mysqli_error($dbh));\n exit;\n }\n\n $sql = \"SELECT * FROM ubicacion\";\n\n $select = \"\";\n $resultado = \"\";\n $search = mysqli_query($dbh, $sql) or die(mysqli_error($dbh));\n $match = mysqli_num_rows($search);\n if ($match > 0) {\n while ($rw = mysqli_fetch_array($search)) {\n $sede = $rw['nombre'];\n $idubicacion = $rw['id'];\n if ($idlocation == $idubicacion) {\n $selected = 'selected';\n } else {\n $selected = '';\n }\n $resultado .= '<option value=\"' . $idubicacion . '\" ' . $selected . '>' . $sede . '</option>';\n }\n $select = \"<select class='form-control' name='ubicacion' required='' ><option value=''>- Seleccione la ubicación -</option>\" . $resultado . \"</select>\";\n } else {\n $select = \"<select class='form-control' name='ubicacion' required='' ><option value=''>- Seleccione la ubicación -</option></select>\";\n }\n return $select;\n}", "title": "" }, { "docid": "7dbc0ef12c43084f2d15cbe78cd24003", "score": "0.5409428", "text": "public function generateDeviceOptionsDropDownContent() \n {\n $deviceOptionsService = new DeviceOptionsViewService($this->view);\n return $deviceOptionsService->generateDeviceOptionsSelectContent();\n }", "title": "" }, { "docid": "ed7299a7c0e0f01679a7e25692009aea", "score": "0.54086554", "text": "function print_roletype_pulldown($selected = '')\r\n {\r\n $roletypes = array('service','product','both');\r\n $html = '<select name=\"roletype\" style=\"font-family: verdana\">';\r\n foreach ($roletypes as $key)\r\n {\r\n if ($key == $selected)\r\n {\r\n $html .= '<option value=\"'.$key.'\" selected=\"selected\">'.$key.'</option>';\r\n }\r\n else\r\n {\r\n $html .= '<option value=\"'.$key.'\">'.$key.'</option>';\r\n } \r\n }\r\n $html .= '</select>';\r\n \r\n return $html;\r\n }", "title": "" }, { "docid": "a30a9f7f197f56e510e7899b9739d4b6", "score": "0.5396851", "text": "public function categories(){\n\t\t$html = $this->initial;\n\t\t$query = array('hide_empty' => 0, 'echo' => 0, 'name' => $this->value['id'], 'selected' => $this->meta, 'hierarchical' => true, 'show_option_none' => __('Select One', 'trwp'));\n\t\tif(isset($this->value['taxonomy']))\n\t\t\t$query['taxonomy'] = $this->value['taxonomy'];\n\t\tif(isset($this->value['tax']))\n\t\t\t$query['taxonomy'] = $this->value['tax'];\n\t\t$html .= wp_dropdown_categories($query);\n\t\t$html .= $this->finish;\n\t\techo $html;\n\t}", "title": "" }, { "docid": "29500c540763111e5065c949b01f6f54", "score": "0.5390138", "text": "public function getForSelect()\n {\n return ['0' => 'No Group'] + $this->all()->lists('name', 'id')->all();\n }", "title": "" }, { "docid": "4a7b0a12b0a8fcfcf1240ad402ad1fda", "score": "0.53894377", "text": "public function users(){\n\t\t$html = $this->initial;\n\t\t$html .= wp_dropdown_users(array('echo' => 0, 'name' => $this->value['id'], 'selected' => $this->meta, 'hierarchical' => true, 'show_option_none' => __('Select One', 'trwp')));\n\t\t$html .= $this->finish;\n\t\techo $html;\n\t}", "title": "" }, { "docid": "24cddb1c9b04a2974d5d656e7e41bf79", "score": "0.5388939", "text": "function gt_ajax_location() {\n session_start();\n\n if (isset($_POST['cat']) && isset($_POST['nonce'])) {\n // Don't need to sanitize this one.\n if (!wp_verify_nonce($_POST['nonce'], 'gt-sell-your-car-ajax')) {\n wp_send_json_error();\n }\n\n // Always sanitize vars before using.\n/*\n$term_id = get_term_by( 'name', 'makemodel', 'taxonomy') ; \n \n$taxonomy_name = 'makemodel';\n\n$categories = get_term_children( $term_id, $taxonomy_name );\n*/\n\n \n // Build args to retrieve categories and do it.\n $cat_name = sanitize_text_field( $_POST['cat'] );\n$cat = get_term_by( 'name', $cat_name, 'location' );\n$cat_id = $cat->term_id;\n\n$cat_query = \"child_of={$cat_id}&hide_empty=0&taxonomy=location\";\n $categories = get_categories($cat_query);\n\n\n // Prepare return value.\n $options = '<option value=\"-1\">Select your City</option>';\n\n // Build options as a string. This isn't the most elegant thing here but the\n // alternative is to return the categories as JSON-encoded array and then\n // build the options dynamically via js and we don't really wanna do that\n // in order to keep the js as lightweight as possible.\n \n \n foreach ($categories as $cat) {\n $name = $cat->name;\n $value = $cat->term_id;\n $label = \"{$cat->cat_name}\";\n $options .= \"<option value=\\\"{$name}\\\" data-value=\\\"{$value}\\\">{$label}</option>\";\n }\n\n\n \n/*\n\nforeach ( $categories as $cat ) {\n $valito= get_term_by( 'id', $cat, $taxonomy_name );\n $options .= \"<option value=\".$valito->name.\" data-value=\".$valito->term_id.\">\".$valito->name.\"</option>\";\n\n}\n*/\n\n\n $return = array(\n 'options' => $options,\n );\n\n wp_send_json_success($return);\n }\n\n wp_send_json_error();\n}", "title": "" }, { "docid": "be0534402cc24c4753aa474f8dcf7dc8", "score": "0.5385909", "text": "function generateDropdown() {\n $options = \"\";\n $stocks = $this->StockHistory->getStocks();\n foreach ($stocks as $row) {\n $options .= \"<option value=\" . $row['code'] . \">\" . $row['name'] .\n \"</option>\";\n }\n return $options;\n }", "title": "" }, { "docid": "74bd9d162b53a3a25062ae73b1665d79", "score": "0.538137", "text": "function country_dropdown ( $name=\"country\", $top_countries=array(), $selection=NULL, $show_all=TRUE ) {\n $countries = config_item('country_list');\n\n $html = \"<select name='{$name}'>\";\n $selected = NULL;\n if(in_array($selection,$top_countries)) {\n $top_selection = $selection;\n $all_selection = NULL;\n }\n else {\n $top_selection = NULL;\n $all_selection = $selection;\n }\n\n if(!empty($top_countries)) {\n foreach($top_countries as $value) {\n if(array_key_exists($value, $countries)) {\n if($value === $top_selection) {\n $selected = \"SELECTED\";\n }\n $html .= \"<option value='{$value}' {$selected}>{$countries[$value]}</option>\";\n $selected = NULL;\n }\n }\n $html .= \"<option>----------</option>\";\n }\n\n if($show_all) {\n foreach($countries as $key => $country) {\n if($key === $all_selection) {\n $selected = \"SELECTED\";\n }\n $html .= \"<option value='{$key}' {$selected}>{$country}</option>\";\n $selected = NULL;\n }\n }\n\n $html .= \"</select>\";\n return $html;\n }", "title": "" }, { "docid": "8b0ed079ca3207c9ba06bc043660aae0", "score": "0.536965", "text": "function groupSelectDropDown($name, $groupid = \"\") {\r\n\t\t$cache = array();\r\n\r\n\t\tif(is_array($this->groupdropdowncache)) {\r\n\t\t\t$cache = $this->groupdropdowncache;\r\n\t\t} else {\r\n\t\t\t$res = $this->CLASS['db']->query(\"SELECT id,name FROM groups WHERE deleted=0 ORDER BY name ASC\");\r\n\t\t\twhile($row = $this->CLASS['db']->fetch_assoc($res)) {\r\n\t\t\t\t$cache[$row['id']] = $row['name'];\r\n\t\t\t}\r\n\r\n\t\t\t$this->groupdropdowncache = $cache;\r\n\t\t}\r\n\r\n\t\t$groups = \"\\n<select name=\\\"\".$name.\"\\\" class=\\\"form-control form-control-sm\\\">\\n\";\r\n\t\tforeach($cache as $key => $value) {\r\n\t\t\tif($groupid != \"\" && $key == $groupid) {\r\n\t\t\t\t$groups .= \"\\t<option value=\\\"\".$key.\"\\\" selected=\\\"selected\\\">\".$value.\"</option>\\n\";\r\n\t\t\t} else {\r\n\t\t\t\t$groups .= \"\\t<option value=\\\"\".$key.\"\\\">\".$value.\"</option>\\n\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t$groups .= \"</select>\\n\";\r\n\r\n\t\treturn $groups;\r\n\t}", "title": "" }, { "docid": "0cd8d3d4855c58b1aac7333ac91c2e77", "score": "0.5368568", "text": "function selectCountry($selectedcountry = null) {\n $output = \"\\n<select name=\\\"country\\\" class=\\\"form-control\\\" id=\\\"country\\\">\";\n foreach (getAllCountry() as $value) {\n\n if ($selectedcountry == $value['name']) {\n $selected = \"selected\";\n } else {\n $selected = \"\";\n }\n\n\n\n $output .=\"\\n<option value=\\\"\" . $value['iso'] . \"\\\"\" . $selected . \">\" . $value['name'] . \"</option>\";\n }\n\n $output .= \"\\n</select>\";\n\n return $output;\n}", "title": "" }, { "docid": "a462c82b8610d8e22a92b905038da9f6", "score": "0.5367352", "text": "function combo_supplygroup( $code='', $command='' )\r\n {\r\n global $connect;\r\n\r\n $query = \"select * from supply_group order by name\";\r\n $result = mysql_query ( $query, $connect ) or die( mysql_error() );\r\n echo \"<select name='s_group_id' id='s_group_id' $command><option value=''\";\r\n if ( !isset($code) ) \r\n {\r\n // 2014-09-11 장경희. \r\n if( _DOMAIN_ == 'maru' )\r\n $code = 17;\r\n else\r\n echo \" selected \";\r\n }\r\n echo \">전체그룹</option>\";\r\n \r\n while ( $data = mysql_fetch_array ( $result ) )\r\n {\r\n echo \"<option value='$data[group_id]'\";\r\n if ( $code == $data[group_id] ) echo \" selected\";\r\n echo \">$data[name]\";\r\n echo \"</option>\"; \r\n } \r\n echo \"</select>\";\r\n }", "title": "" }, { "docid": "dfbd3f235a2692169b1962e85731009e", "score": "0.5359017", "text": "public static function GetCountriesDropdown( )\n\t{\n\t\t//Initialise\n\t\t$dropdown = \"\";\n\t\t\n\t\t//Get countries from Server collection\n\t\t$countriesArrayTemp = ServiceUtils::GetAllCountries( );\n\t\t\n\t\tif( count($countriesArrayTemp)>0 )\n\t\t{\n\t\t\tforeach( $countriesArrayTemp as $value )\n\t\t\t{\n\t\t\t\t$countriesArray[] = array(\n\t\t\t\t\t\t\t\t\t\t \"id\"=>$value[\"id\"]['$id'],\n\t\t\t\t\t\t\t\t\t\t \"name\"=>$value[\"name\"],\n\t\t\t\t\t\t\t\t\t\t \"code\"=>$value[\"code\"],\n\t\t\t\t\t\t\t\t\t\t \"alias\"=>$value[\"alias\"]\n\t\t\t\t\t\t\t\t\t\t );\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $countriesArray;\n\t}", "title": "" }, { "docid": "eaffcd3ec578e2cf223daf94b39e2464", "score": "0.5356218", "text": "function populateLocation()\n{\n $result = getLocationList();\n while($row = mysqli_fetch_assoc($result))\n {\n $locID = $row['LocID'];\n $locName = $row['Location'];\n echo\"<option value='$locID'>$locName</option>\";\n };\n}", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "1e62cce8311265718697b1123e8df853", "score": "0.0", "text": "public function store(Request $request)\n {\n $input_all = $request->all();\n $validator = Validator::make($request->all(), [\n 'driver_id' => 'required',\n 'type_doc_driver_id' => 'required',\n ]);\n if (!$validator->fails()) {\n \\DB::beginTransaction();\n try {\n $DriverFile = new DriverFile;\n foreach ($input_all as $key => $val) {\n $DriverFile->{$key} = $val;\n }\n if (!isset($input_all['driver_file_status'])) {\n $DriverFile->driver_file_status = 0;\n }\n if (isset($DriverFile->driver_file_name) && $DriverFile->driver_file_name) {\n $DriverFile->driver_file_part = 'uploads/' . $DriverFile->driver_file_name;\n $DriverFile->driver_file_name = str_replace(\"DriverFile/\", \"\", $DriverFile->driver_file_name);\n }\n $DriverFile->save();\n \\DB::commit();\n $return['status'] = 1;\n $return['content'] = 'Success';\n } catch (Exception $e) {\n \\DB::rollBack();\n $return['status'] = 0;\n $return['content'] = 'Unsuccess';\n }\n } else {\n $failedRules = $validator->failed();\n $return['content'] = 'Unsuccess';\n }\n $return['title'] = 'Insert';\n return $return;\n }", "title": "" } ]
[ { "docid": "3ca36acd1130c145fec3824dfbb00135", "score": "0.6494459", "text": "public function store(Request $request, $resource)\n {\n $command = $this->translator->getCommandFromResource($resource, 'store');\n\n $this->runBeforeCommands($command);\n\n $data = $this->dispatchFrom($command, $request);\n\n $this->fireEventForResource($resource, 'store', $data);\n\n return $this->success($data, 201);\n }", "title": "" }, { "docid": "00155c41d87c9c0387e4babe3e9a9ae9", "score": "0.6454226", "text": "public function save()\n {\n $this->storage->write($this);\n }", "title": "" }, { "docid": "7356d03f49eac7d05de240c473d2bfe9", "score": "0.6448581", "text": "public function save()\n {\n $this->handler->write($this->getId(), $this->prepareForStorage(\n serialize($this->attributes)\n ));\n\n $this->started = false;\n }", "title": "" }, { "docid": "8ee7e267114dc7aff05b19f9ebc39079", "score": "0.6424367", "text": "public function create($resource);", "title": "" }, { "docid": "5903d0dda7e3d80629ad4f3dc0709b1e", "score": "0.63630116", "text": "public function store()\n {\n $request = app($this->store_request);\n $this->service->create($request->all());\n\n return back()->with('success', 'Record Created Successfully');\n }", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
9acf3842cfde97ff5124f83fa45a80d7
Partial Helper Function Renders a partial from path $path into the current view To inherit an existing view use this method: eg..... Alternate syntax allows standalone execution that runs the partialname() method
[ { "docid": "2bd2fa406e31e0e6868fa11c43570681", "score": "0.74075425", "text": "public function partial($path, $extra_vals=array(), $format=\"html\") {\n\t\t$controller = WaxUrl::route_controller($path);\n\t\t$cache = new WaxCache($_SERVER['HTTP_HOST'].md5($path.$_SERVER['REQUEST_URI'].serialize($_GET)).'.partial');\n\t\tif(count($_POST)) $cache->expire();\n\t\tif(Config::get('partial_cache') && !substr_count($path, \"admin\") && !substr_count(strtolower($controller), \"admin\") && $cache->valid()){\t\t\t\n\t\t\t$partial= $cache->get();\n\t\t}else if($extra_vals instanceof WaxTemplate) {\n\t\t $old_template_paths = $extra_vals->template_paths;\n\t\t foreach($extra_vals as $var=>$val) $this->{$var}=$val;\n\t\t $view= new WXTemplate();\n\t\t if(count($extra_vals->plugins)>0) {\n\t\t foreach($old_template_paths as $template) $view->add_path(str_replace($extra_vals->use_view, $path, $template));\n \t\t}\n \t\t$view->add_path(VIEW_DIR.$path);\n foreach($this as $var=>$val) {\n if(!$view->{$var}) $view->{$var}=$val;\n }\n \t\t$view->add_path(VIEW_DIR.$view->controller.\"/\".$path);\n \t\t$partial = $view->parse($format, \"partial\");\n\t } else {\n if(!$controller) $controller = WaxUrl::$default_controller;\n $delegate = Inflections::slashcamelize($controller, true);\n $delegate .=\"Controller\";\n $delegate_controller = new $delegate;\n $delegate_controller->controller = $controller;\n \t\t$partial = $delegate_controller->execute_partial($path, $format);\n \t}\n\t\tif(Config::get('partial_cache') && !substr_count($controller, \"admin\") ) $cache->set($partial);\n return $partial;\n }", "title": "" } ]
[ { "docid": "eca866bc45e2d9ac980a24130a7a3a84", "score": "0.80979234", "text": "function partial() {\r\n\t\tglobal $dorm;\r\n\r\n\t\t//TODO: better way to get partial lastname\r\n\t \t$view = $dorm->router->uri_segments[1];\r\n\t\t\r\n\t\t$dorm->response->responsive_view('partials/'. $view);\r\n\t}", "title": "" }, { "docid": "a025b6edd3b1854b240f3d432ad62b6d", "score": "0.73286414", "text": "function file_partial($file = '', $ext = 'php', $view_data=array())\n\t{\n\t\t$CI =& get_instance();\n\t\t$data =& $CI->load->_ci_cached_vars;\n\t\t\n\t\t$path = $data['template_views'].'partials/'.$file;\n\t\n\t\techo $CI->load->_ci_load(array(\n\t\t\t'_ci_path' => $data['template_views'].'partials/'.$file.'.'.$ext,\n\t\t\t'_ci_vars' => $view_data,\t\t\t\n\t\t\t'_ci_return' => TRUE\n\t\t));\n\t}", "title": "" }, { "docid": "a837528870014cb78d375bdb3bb78391", "score": "0.7111539", "text": "function render_partial($render_partial){\n\t\textract($this->variables);\n\t\t$path=ROOT . DS .'application' . DS . 'views' . DS . $render_partial . '.php';\n\t\tif( file_exists($path) ) {\n\t\t\tinclude ($path);\n\t\t} else {\t\t\t\n \t\t$trace = debug_backtrace();\n\t\t\ttrigger_error('no existe contenido parcial '.$path.' '.$trace[0]['file'].' en la linea '.$trace[0]['line'],E_USER_ERROR);\n\t\t}\n\t}", "title": "" }, { "docid": "6aa44bb2aa3594d6a8f6bb81ea5e5c6f", "score": "0.7039739", "text": "public function partial($name)\n {\n return $this->render('_' . $name);\n }", "title": "" }, { "docid": "f4779216392d590f1418c790f469f902", "score": "0.7035193", "text": "function template_partial($name = '')\n\t{\n\t\t$CI =& get_instance();\n\t\t$data =& $CI->load->_ci_cached_vars;\n\n\t\techo isset($data['template']['partials'][$name]) ? $data['template']['partials'][$name] : '';\n\t}", "title": "" }, { "docid": "7ed8a4424a823d4692bdfcc9612a8456", "score": "0.6978994", "text": "function render_partial($partial_name) {\n\t\t$layout = $this->layout;\n\t\t$this->layout = '';\n\t\t\n\t\t$result = $this->render($this->get_template_name($partial_name));\n\t\t\n\t\t$this->layout = $layout;\n\t\t\n\t\treturn $result;\n\t\t\t\n\t}", "title": "" }, { "docid": "29a542a9a4a334ca6f1747b800c9dc1b", "score": "0.6834574", "text": "function include_partial($templateName, $vars = array())\n{\n echo get_partial($templateName, $vars);\n}", "title": "" }, { "docid": "e2578fd07f473a6da72d334ca8f74e03", "score": "0.6719818", "text": "public function getPartial($path, $params = array())\n {\n ob_start();\n $this->partial($path, $params);\n return ob_get_clean();\n }", "title": "" }, { "docid": "779e616b5fcb61eb41a68cbfb789815f", "score": "0.6672217", "text": "public function partial($view, $locals = null) {\n $path = basename($view);\n $view = preg_replace('/'.$path.'$/', \"_{$path}\", $view);\n return $this->template($view, $locals);\n }", "title": "" }, { "docid": "c5745236cd8ce9f955c70dc0d822c93d", "score": "0.66099817", "text": "public function partial($path, $vars = [], $return = false)\n {\n $content = $this->_render($this->view($path), $vars);\n if ($content && $this->checkCalls()) {\n if ($return) {\n return $content;\n }\n return $this->channelingRender($content, 'html');\n }\n return false;\n }", "title": "" }, { "docid": "c5745236cd8ce9f955c70dc0d822c93d", "score": "0.66099817", "text": "public function partial($path, $vars = [], $return = false)\n {\n $content = $this->_render($this->view($path), $vars);\n if ($content && $this->checkCalls()) {\n if ($return) {\n return $content;\n }\n return $this->channelingRender($content, 'html');\n }\n return false;\n }", "title": "" }, { "docid": "3348540d85139061f94ce564df4fa122", "score": "0.66048735", "text": "public static function renderPartial($_partialView, $_partialValue=''){\n\t\t\n $numberArguments = func_num_args();\n\t\t$params = Utils::getParams(func_get_args(), $numberArguments);\n\t\tif(!isset($params['controller'])){\n\t\t\t$controllerName = Router::getController();\n\t\t} else {\n\t\t\t$controllerName = $params['controller'];\n\t\t}\n\t\t$_viewsDir = Core::getActiveViewsDir();\n\t\t$partialPath = $_viewsDir.'/'.$controllerName.'/_'.$_partialView.'.phtml';\n\t\tif(Core::fileExists($partialPath)==false){\n\t\t\t$partialPath = $_viewsDir.'/partials/_'.$_partialView.'.phtml';\n\t\t\tif(Core::fileExists($partialPath)==false){\n\t\t\t\tthrow new ViewException('No se puede encontrar la vista parcial: \"'.$_partialView.'\"', 0);\n\t\t\t}\n\t\t}\n\t\tforeach(EntityManager::getEntities() as $_entityName => $_entity){\n\t\t\t$$_entityName = $_entity;\n\t\t}\n\t\tforeach(self::$_data as $_key => $_value){\n\t\t\t$$_key = $_value;\n\t\t}\n\t\t$controller = Dispatcher::getController();\n\t\tif($controller->isExportable()==true){\n\t\t\tforeach($controller as $_var => $_value) {\n\t\t\t\t$$_var = $_value;\n\t\t\t}\n\t\t\t$id = $controller->getId();\n\t\t}\n\t\t$$_partialView = $_partialValue;\n\t\tinclude $partialPath;\n\t}", "title": "" }, { "docid": "835b1edff09a40f8c4a43af39f257744", "score": "0.6594808", "text": "function partial ($filename = \"\", $variables = array()) {\n $filename = preg_replace(\"/^\\/+|\\/+$/\", \"\", $filename);\n if (!preg_match(\"/\\.php$/\", $filename)) {\n $filename .= \".php\";\n }\n \n $filepath = __DIR__ . \"/_partials/$filename\";\n\n if (file_exists($filepath)) {\n ob_start();\n foreach ($variables as $key => $value) {\n $$key = $value;\n }\n include $filepath;\n echo ob_get_clean();\n }\n}", "title": "" }, { "docid": "ea95255086fdd05c1f59f9411ec865be", "score": "0.657528", "text": "function get_partial($templateName, $vars = array())\n{\n $context = sfContext::getInstance();\n\n // partial is in another module?\n if (false !== $sep = strpos($templateName, '/'))\n {\n $moduleName = substr($templateName, 0, $sep);\n $templateName = substr($templateName, $sep + 1);\n }\n else\n {\n $moduleName = $context->getActionStack()->getLastEntry()->getModuleName();\n }\n $actionName = '_'.$templateName;\n\n $class = sfConfig::get('mod_'.strtolower($moduleName).'_partial_view_class', 'sf').'PartialView';\n $view = new $class($context, $moduleName, $actionName, '');\n $view->setPartialVars($vars);\n\n return $view->render();\n}", "title": "" }, { "docid": "5f7dc8c8bee9826c453f357c96054f17", "score": "0.6545703", "text": "function partial($templateFileName, $variables = [])\r\n {\r\n }", "title": "" }, { "docid": "938c37d51fb6c95f63560ea3af8ae9b1", "score": "0.65271544", "text": "public function partial($viewFile, $data = array(), $options = array()){\n\t\tlist($plugin, $viewFile) = pluginSplit($viewFile);\n\t\tif(!$plugin && $this->plugin){\n\t\t\t$plugin = $this->plugin;\n\t\t}\n\t\t$paths = array(\n\t\t\t'../../../plugins/'.$plugin.'/View/',\n\t\t\t'../../Plugin/'.$plugin.'/View/',\n\t\t\t'../'\n\t\t);\n\t\tforeach($paths as $path){\n\t\t\t$el = $this->viewPath.'/_'.$viewFile;\n\t\t\tif(file_exists(realpath(APP.'View'.DS.'Elements'.DS.$path.$el.'.ctp'))){\n\t\t\t\treturn $this->element($path.$el, $data, $options);\n\t\t\t}\n\t\t}\t\n\t}", "title": "" }, { "docid": "694d1331bde9ca24f8ee116eb902533c", "score": "0.6478528", "text": "private function get_partial_path($name) {\n $path = explode('/', $name);\n $file_name = array_pop($path);\n $views_path = $this->get_setting('views_path');\n $partials_path = $this->get_setting('partials_path');\n\n if (!empty($path)) {\n $partials_path = implode('/', array($partials_path, implode('/', $path)));\n }\n\n $partial_path = implode('/', array($views_path, $partials_path, \"_{$file_name}.php\"));\n\n if (!file_exists($partial_path)) {\n $this->throw_error(\"The specified partial could not be found: <em>$partial_path</em>\");\n }\n\n return $partial_path;\n }", "title": "" }, { "docid": "c2c3be63c303e99af0876ee8f5400ba1", "score": "0.64651394", "text": "public function renderPartial($view, $dataArray = false){\n $views = explode(\"/\", $view);\n $folder = array_shift($views);\n $viewFile = array_shift($views).\".php\";\n \n $routeView = VIEWSPATH.$folder.DS.$viewFile;\n if(is_readable($routeView)){\n if($dataArray){\n echo $this->includeContents($routeView, $dataArray);\n } else {\n include_once $routeView;\n }\n } else {\n throw new Exception(\"> No existe vista en RENDER PARTIAL {$routeView}\"); \n }\n }", "title": "" }, { "docid": "00a0a512e29c0d830662baeb5de8be18", "score": "0.64622486", "text": "public function partial() {\r\n $args = func_get_args();\r\n return call_user_func_array(array($this, 'load'), $args);\r\n }", "title": "" }, { "docid": "e9a7cb566a7d4347f38532a5e4c3d35e", "score": "0.645554", "text": "public function partial($partialName, array $options = [])\n {\n if (isset($options['collection'])) {\n $collection = $options['collection'];\n unset($options['collection']);\n return $this->partialCollection($collection, $partialName, $options);\n }\n \n $this->normalizePartialOptions($options);\n $this->definePartialObject($partialName, $options);\n \n if (strpos($partialName, '.') === 0) {\n # It is assumed the dot is followed by a slash.\n list($name, $prefixes) = $this->separatePrefixFromName(substr($partialName, 2));\n } elseif (is_int(strpos($partialName, '/'))) {\n $name = $partialName;\n $prefixes = [];\n } else {\n $prefixes = $this->actionView->lookupContext()->prefixes;\n $name = $partialName;\n }\n \n list($locales, $handlers, $formats) = $this->normalizeRenderOptions($options);\n \n return $this->actionView->renderPartial(\n $name,\n $options,\n $prefixes,\n $locales,\n $formats,\n $handlers\n );\n }", "title": "" }, { "docid": "2d758ddac9020310da5a1119669d6d5b", "score": "0.6448974", "text": "public function partial($template) {\n\t\techo $this->render($template);\n\t}", "title": "" }, { "docid": "341fabdded573c3ecbe0abfcc60844ae", "score": "0.6436679", "text": "function TalloyHojas () {\n $this->view->partial(\"talloyhojas.php\");\n }", "title": "" }, { "docid": "8ca376b4953426a6b2f47c4dca3b4118", "score": "0.6399226", "text": "public static function renderPartial($_partialView, $_partialValue=''){\n\t\t$numberArguments = func_num_args();\n\t\t$params = Utils::getParams(func_get_args(), $numberArguments);\n\t\tif(!isset($params['controller'])){\n\t\t\t$_controllerName = Router::getController();\n\t\t} else {\n\t\t\t$_controllerName = $params['controller'];\n\t\t}\n\t\t$_viewsDir = Core::getActiveViewsDir();\n\t\t$partialPath = $_viewsDir.'/'.$_controllerName.'/_'.$_partialView.'.phtml';\n\t\tif(Core::fileExists($partialPath)==false){\n\t\t\t$partialPath = $_viewsDir.'/partials/_'.$_partialView.'.phtml';\n\t\t\tif(Core::fileExists($partialPath)==false){\n\t\t\t\tthrow new ViewException('No se puede encontrar la vista parcial: \"'.$_partialView.'\"', 0);\n\t\t\t}\n\t\t}\n\t\tforeach(EntityManager::getEntities() as $_entityName => $_entity){\n\t\t\t$$_entityName = $_entity;\n\t\t}\n\t\tforeach(self::$_data as $_key => $_value){\n\t\t\t$$_key = $_value;\n\t\t}\n\t\t$_controller = Dispatcher::getController();\n\t\tif($_controller->isExportable()==true){\n\t\t\tforeach($_controller as $_var => $_value) {\n\t\t\t\t$$_var = $_value;\n\t\t\t}\n\t\t\t${'id'} = $_controller->getId();\n\t\t}\n\t\t$$_partialView = $_partialValue;\n\t\tinclude $partialPath;\n\t}", "title": "" }, { "docid": "3b2d9501509615680aa4cccf3b4ff5ba", "score": "0.6330174", "text": "function CajayBigotes () {\n $this->view->partial(\"cajaybigotes.php\");\n }", "title": "" }, { "docid": "15e3ad6237e491d15670be68f0f9d8fa", "score": "0.6317344", "text": "function insert($partial) {\r\n\t\t$layouts = scandir('app/views/layouts');\r\n\r\n\t\tif (in_array('_' . $partial . '.php', $layouts))\r\n\t\t{\r\n\t\t\tinclude('app/views/layouts/_' . $partial . '.php');\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif (ENVIRONMENT == 'development')\r\n\t\t\t{\r\n\t\t\t\techo \"<div class=\\\"Serene_Error\\\">Serene Error (Stay Calm!): partial [_\". $partial . \".php] not found.</div>\";\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "63492e0761c1947a4493a4382cf7a626", "score": "0.62909967", "text": "public function _partial($view, array $data = null) {\n if(is_array($data))\n extract($data, EXTR_SKIP);\n \n require PROJECT_ROOT . '/templates/' . $view;\n \n if (false !== $this->response->chunked) {\n $this->response->chunk();\n }\n }", "title": "" }, { "docid": "cdb4a9a232eb7ae94acbf7de3083405b", "score": "0.625644", "text": "function booty_partial( $slug, $name = \"\", $vars = NULL ) {\n\t// if any vars are passed, give them to the partial.\n\t// The partial is required, so it doesn't have access to any variables unless global is used or the set_query_var fuction.\n\tif ( isset( $vars ) ) {\n\t\tset_query_var( 'query_vars', $vars );\n\t}\n\tget_template_part( \"partials/$slug\", $name );\n}", "title": "" }, { "docid": "2f79ef3b153b2c3732f7e978efcb4762", "score": "0.6252958", "text": "public function partials(){\n\t\t$recursivePartials = func_get_args();\n\t\tif($recursivePartials==null && $this->__partialsRemain)\n\t\t\t$recursivePartials = $this->__partialsRemain;\n\t\t\n\t\tif(is_array($recursivePartials)){\n\t\t\t$currentPartial = array_shift($recursivePartials);\n\t\t\t$this->__partialsRemain = $recursivePartials;\n\t\t}\n\t\tif($currentPartial)\n\t\t\t$this->partial($currentPartial);\n\t}", "title": "" }, { "docid": "760e661e20d5294f25bdc0c6145e8cda", "score": "0.6126526", "text": "private function compilePartial($partial) {\n\t\t$partialContent = $this->loadPartial($partial);\n\t\t$compiledPartial = $this->cacheDirectory.md5_file($partial).'.php';\n\t\tif (!file_exists($compiledPartial)) {\n\t\t\t$php = LightnCandy::compilePartial($partialContent);\n\t\t\tfile_put_contents($compiledPartial, '<?php ' . $php . '?>');\n\t\t}\n\t\treturn $compiledPartial;\n\t}", "title": "" }, { "docid": "f1ac5009684cf57b6f3f6a1b2159d674", "score": "0.6110678", "text": "protected function configureViewPartialPaths() {\n\t\t// set partial path\n\t\t$partialRootPathConfig = $this->configuration['partialRootPaths.'];\n\t\tif($partialRootPathConfig) {\n\t\t\t$this->view->setPartialRootPaths($partialRootPathConfig);\n\t\t}\n\t}", "title": "" }, { "docid": "dd7258a70e5d0de5d11e3af510d8c537", "score": "0.6051552", "text": "function include_theme_partial($templateName, $vars = array())\n{\n echo get_theme_partial($templateName, $vars);\n}", "title": "" }, { "docid": "85c42bd89f7478b4fa0aa9c765dc49b2", "score": "0.6029612", "text": "function CreateRecipe()\n {\n include_once(\"Views/PartialCreateRecipe.php\");\n }", "title": "" }, { "docid": "3d896d2fd7bb02363ab38a513821ff1f", "score": "0.6021235", "text": "public function partial(): self;", "title": "" }, { "docid": "3bf550d40e5c1c403f0b78b0c5768ea8", "score": "0.5979742", "text": "function Frecuencia () {\n $this->view->partial(\"frecuencia.php\");\n }", "title": "" }, { "docid": "fbdc54c60e0c686872d2c5e597add625", "score": "0.59778476", "text": "public function partial($name, $params = array())\n\t{\n\t\tif (null !== $partial = $this->_partialFactory->get($name, $this)) {\n\t\t\techo $partial->fetch($params);\n\t\t\treturn;\n\t\t}\n\n\t\tif (file_exists($this->_templateDir.'/Partial/'.ucfirst($name).'.php')) {\n\t\t\textract($params);\n\t\t\tinclude $this->_templateDir.'/Partial/'.ucfirst($name).'.php';\n\t\t\treturn;\n\t\t}\n\n\t\tthrow new \\Exception('Unable to find partial \"'.$name.'\"');\n\t}", "title": "" }, { "docid": "cbe4a7b21958a36851a3aecfb0f902e6", "score": "0.5962274", "text": "function buddyexpressdesk_view($path = '', $params = array()){\nif(isset($path) && !empty($path)){\n return buddyexpressdesk_include($path.'.php', $params);\n }\n}", "title": "" }, { "docid": "b98b883710a70c725e0dc380086779e5", "score": "0.59618634", "text": "function get_theme_partial($templateName, $vars = array())\n{\n $context = sfContext::getInstance();\n\n $actionName = '_'.$templateName;\n\n $class = 'sfThemePartialView';\n $current_theme = $context->getConfiguration()\n ->getPluginConfiguration('sfThemePlugin')\n ->getThemeManager()\n ->getCurrentTheme();\n $view = new $class($context, $current_theme, $actionName, '');\n $view->setPartialVars(true === sfConfig::get('sf_escaping_strategy') ? sfOutputEscaper::unescape($vars) : $vars);\n\n return $view->render();\n}", "title": "" }, { "docid": "e74e68b9b706d354a1fd4eab49894a6a", "score": "0.5916224", "text": "public function getPartial()\n {\n return $this->partial;\n }", "title": "" }, { "docid": "b40d6042fc645b12745fae5fec6427f3", "score": "0.5854095", "text": "public function renderPartial($view, $data = array())\n {\n $renderer = Service::get('renderer');\n $view = $renderer->getViewPath($view, get_called_class());\n\n return $renderer->render($view, $data, false);\n }", "title": "" }, { "docid": "2fb63b52a47d43989aa815ce6fe2a270", "score": "0.58466834", "text": "public function getPartial()\n {\n return $this->_partial;\n }", "title": "" }, { "docid": "6e93025c9cfc668cec941d4f6a18bd1f", "score": "0.58383626", "text": "function Barra () {\n $this->view->partial(\"barra.php\");\n }", "title": "" }, { "docid": "02fc010efc41b53fe7513fc284bfa4fa", "score": "0.5834603", "text": "function Puntos() {\n $this->view->partial(\"puntos.php\");\n }", "title": "" }, { "docid": "00f9fd215e1847f410ff898c46d959a5", "score": "0.5829286", "text": "public function getPartialName()\n {\n return $this->partialName;\n }", "title": "" }, { "docid": "27a68c3c259bd244fd7472998696a727", "score": "0.5826446", "text": "public function render_partial($name, $vars = array(), $echo = true) {\n\n $partial_path = $this->get_partial_path($name);\n $output = $this->capture_eval(file_get_contents($partial_path), $vars);\n\n if ($echo === false) return $output;\n echo $output;\n }", "title": "" }, { "docid": "874d912f1fafe2ec8511c08205b16781", "score": "0.5825605", "text": "public function partial($template)\n {\n if (empty($template)) {\n return '';\n }\n if (!file_exists(DIR_TMPL . \"/$template.phtml\")) {\n return \"<!-- Partial: couldn't find $template partial -->\";\n }\n // @GK: switch to include / php parse\n ob_start();\n include(DIR_TMPL . \"/$template.phtml\");\n $content = ob_get_contents();\n ob_end_clean();\n return trim($content);\n }", "title": "" }, { "docid": "e0b59fbfb67fff70a97fce2a9122b84f", "score": "0.5821513", "text": "public function renderPartial(string $contentView, array $params = array())\n {\n $content = $this->prepareContent($contentView, $params);\n echo $content;\n }", "title": "" }, { "docid": "3f63a9005bd8ee6e81100ca70bb824d2", "score": "0.5815829", "text": "public function module_inner_content( $path, $data = array() )\n {\n echo View::make( $path )\n ->with( 'Objects', $data['Objects'] );\n }", "title": "" }, { "docid": "524fbaa7f6f8e49da1e75bece19a553a", "score": "0.5814814", "text": "function Torta () {\n $this->view->partial(\"torta.php\");\n }", "title": "" }, { "docid": "eea9d3a2d09d1ef367ef2ebb6ddf3ad7", "score": "0.5811189", "text": "function render_view($name, $model = ''){\r\n if(isset($name)){\r\n ob_start();\r\n include(F_VIEW.$name);\r\n $out1 = ob_get_contents();\r\n ob_end_clean();\r\n return $out1;\r\n }\r\n return '';\r\n}", "title": "" }, { "docid": "25f4f9b5bd4f428310781f55a6095585", "score": "0.57958674", "text": "public function load($name) {\r //we check whether it's a layout or page , and depending on $this->page_name OR $this->layout_name we find the appropriate partial file\r\r $parts = explode('.', $name, 2);\r\r $type = $parts[0];\r\r if ($type != 'page' AND $type != 'layout')\r return '';\r\r\r\r $file = str_replace('.', '/', $parts[1]);\r\r if ($type == 'page' AND $file == 'content')\r return parent::load(\"/{$type}s/{$this->page_name}.mustache\");\r\r\r\r $item_name = $type . '_name';\r\r $item_name = $this->$item_name; //page_name OR layout_name , value of current page or layout e.g. default, login | index, widgets, etc ...\r //look in the partials for this page or layout\r\r $path = \"/{$type}s/partials/{$item_name}/{$file}.mustache\";\r\r if (!is_file($this->baseDir . $path)) {\r\r //look in the upper folder, which contains partials for all pages or layouts\r\r $path = \"/{$type}s/partials/_shared/{$file}.mustache\";\r\r if (!is_file($this->baseDir . $path))\r return '';\r }\r\r\r\r return parent::load($path); //we don't use $this->baseDir.$path , because baseDir has already been passed onto parent(Mustache_Loader_FilesystemLoader)\r }", "title": "" }, { "docid": "eb315ab02829b844dc9ed88463bb25ca", "score": "0.5788768", "text": "private function renderPartial(string $template, string $name, array $context = []): string\n {\n return $this->twig->load($template)->renderBlock($name, $context);\n }", "title": "" }, { "docid": "b270198aca1f7f76dcf4deb7501bac48", "score": "0.57866144", "text": "public function dashboard_render($fileName, $fileDir = DashboardFileDirEnum::ROOT, $isPartialView = false)\n {\n //check that only admin can render dashboard.\n if(Session::get('loggedIn') != true || Session::get('role') != RoleEnum::Admin)\n {\n //if this is not browser full view request\n if($isPartialView == false)\n {\n header('Location: login');\n exit;\n }\n else // else, if this is partialview content request\n {\n echo 'Your session has timed out or you have no access right for this request, please login';\n exit;\n }\n }\n\n if($isPartialView)\n {\n require $fileDir . $fileName . '.php';\n }\n else\n {\n echo '<!DOCTYPE html><html><head>';\n //generate configured value to use in js file\n echo '<script>';\n echo 'var Define_URL = ' . '\"' . URL . '\";';\n echo 'var Define_Dashboard_ROOT = ' . '\"' . DashboardFileDirEnum::ROOT . '\";';\n echo '</script>';\n\n require DashboardFileDirEnum::ROOT . 'head.php';\n echo '</head><body id=\"d-db-body\">';\n require DashboardFileDirEnum::ROOT . 'top-menu.php';\n require DashboardFileDirEnum::ROOT . 'main-menu.php';\n echo '<div class=\"mainContenter\">';\n echo '<div id=\"mainContent\">';\n require $fileDir . $fileName . '.php';\n echo '</div>';\n echo '</div>';\n\n require DashboardFileDirEnum::ROOT . 'modal-view.php';\n\n //require 'views/dashboard/popup.php';\n echo '</body></html>';\n }\n }", "title": "" }, { "docid": "58d3e5cb155ab35ef1a460421f68c8c2", "score": "0.5736029", "text": "protected function partialFile($file)\n {\n // Trim the space\n $file = trim($file, ' ');\n\n return $this->template->partialRender($file);\n }", "title": "" }, { "docid": "419263c00b92946f68ca0cd8f9cfb703", "score": "0.5727449", "text": "function PoligonoFrecuencia () {\n $this->view->partial(\"poligonoFrecuencia.php\");\n }", "title": "" }, { "docid": "1131efd80a5833ed1fd4ba6cbfa25d69", "score": "0.5720547", "text": "public function partialBlock($name, $params = null)\n {\n if ($params === null) {\n $param = $this->param;\n } else {\n $param = $params;\n }\n $path = $this->fullPath($name);\n include($path);\n }", "title": "" }, { "docid": "f327873c036db7c52ac2fefaa3198b51", "score": "0.57115686", "text": "function Pareto () {\n $this->view->partial(\"pareto.php\");\n }", "title": "" }, { "docid": "e1be1399c82d87ac6b084e0199fbcf5a", "score": "0.57114166", "text": "private function render_view($path)\n\t{\n\t\t$this->data['left_sidebar'] = $this->parser->parse('test/includes/left_sidebar_view', $this->left_sidebar_data, TRUE);\n\t\t$this->data['breadcrumb_list'] = $this->parser->parse('test/includes/breadcrumb_view', $this->breadcrumb_data, TRUE);\n\t\t$this->data['page_content'] = $this->parser->parse($path, $this->data, TRUE);\n\t\t$this->data['another_css'] = $this->another_css;\n\t\t$this->data['another_js'] = $this->another_js;\n\t\t$this->parser->parse('test/includes/homepage_view', $this->data);\n\t}", "title": "" }, { "docid": "175b0b56d0243b32004af690b6f1a9c6", "score": "0.5633846", "text": "public function get_view($path_to_view= \"\", $data = \"\"){\n\t\t\tinclude $path_to_view;\n\t\t}", "title": "" }, { "docid": "58169d9a4aab8a46537eab000db7eea4", "score": "0.5631499", "text": "public static function render_partial( $object ){\n\t\t\techo esc_html( self::get( $object->id ) );\n\t\t}", "title": "" }, { "docid": "0a5ac45bdd9d040a9900f9aab4b40b38", "score": "0.5598287", "text": "private function view($path)\n {\n $path .= '.php';\n return self::$VIEWS_PATH . $path;\n }", "title": "" }, { "docid": "0a5ac45bdd9d040a9900f9aab4b40b38", "score": "0.5598287", "text": "private function view($path)\n {\n $path .= '.php';\n return self::$VIEWS_PATH . $path;\n }", "title": "" }, { "docid": "ecad361a4ca0ace38db699f359f83280", "score": "0.5584523", "text": "private function getPartials()\n {\n return [\n 'partial1' => 'partials.set_event',\n 'partial3' => 'partials.manage_notification',\n 'partial4' => 'partials.view_calendar',\n 'partial2' => 'partials.generate_attendance'\n ];\n }", "title": "" }, { "docid": "e7be1f1ea61b3c24d64decf457e2df0b", "score": "0.55793566", "text": "function render_each($partial, array $data, $iterator, $empty = 'raw|')\n{\n\treturn View::render_each($partial, $data, $iterator, $empty);\n}", "title": "" }, { "docid": "c9768b8543306d5d4a67a752e3088112", "score": "0.5573584", "text": "public function setPartialRootPath($path)\n {\n $this->partialRootPath = $path;\n }", "title": "" }, { "docid": "9b3b5a31494e049a81764f1285e086e7", "score": "0.557272", "text": "public function render($path,$vars = '') {\n ob_start();\n include($path);\n return ob_get_clean();\n }", "title": "" }, { "docid": "8f843fb4afe1b82c85895a0fb7039c3f", "score": "0.5552116", "text": "function render($path, $envelope = \"%s\", array $vars = array())\n {\n $out = \"\";\n foreach ($this->getContainer()->get($path) as $block)\n {\n $view = new Am_View;\n if ($vars) $view->assign($vars);\n $view->blocks()->setContainer($this->getContainer());\n $out .= $block->render($view, $envelope);\n }\n return $out;\n }", "title": "" }, { "docid": "a17b18fa56e0c2a4f992dc89c2df8505", "score": "0.5539759", "text": "public function isPartial()\n {\n return $this->_partial;\n }", "title": "" }, { "docid": "7bd41196865c0993865c5fc1066b9d95", "score": "0.55360377", "text": "function FrecuenciaAcumulada () {\n $this->view->partial(\"frecuenciaAcumulada.php\");\n }", "title": "" }, { "docid": "d90f7daadb1631736a124deb7c6d6c1d", "score": "0.55280316", "text": "protected function evaluatePath($__path, $__data)\n {\n ob_start();\n extract($__data);\n // We'll evaluate the contents of the view inside a try/catch block so we can\n // flush out any stray output that might get out before an error occurs or\n // an exception is thrown. This prevents any partial views from leaking.\n try {\n include $__path;\n } catch (\\Exception $e) {\n $this->handleViewException($e);\n }\n return ob_get_clean();\n }", "title": "" }, { "docid": "045d5106b44e3a1a5773577f6421e636", "score": "0.5503531", "text": "function views($path,$data = []){\n extract($data);\n require \"App/views/{$path}.view.php\" ;\n}", "title": "" }, { "docid": "e6934e412498f923c9ce069ad1847d0a", "score": "0.5493182", "text": "private static function get_partial_arg( $partial ){\n\t\t\t$args = array();\n\n\t\t\tif( isset( $partial[ 'type' ] ) && !empty( $partial[ 'type' ] ) ){\n\t\t\t\t$args[ 'type' ] = $partial[ 'type' ];\n\t\t\t}\n\n\t\t\tif( isset( $partial[ 'selector' ] ) && !empty( $partial[ 'selector' ] ) ){\n\t\t\t\t$args[ 'selector' ] = $partial[ 'selector' ];\n\t\t\t}\n\n\t\t\tif( isset( $partial[ 'settings' ] ) && !empty( $partial[ 'settings' ] ) ){\n\t\t\t\t$args[ 'settings' ] = $partial[ 'settings' ];\n\t\t\t}\n\n\t\t\tif( isset( $partial[ 'primary_setting' ] ) && !empty( $partial[ 'primary_setting' ] ) ){\n\t\t\t\t$args[ 'primary_setting' ] = $partial[ 'primary_setting' ];\n\t\t\t}\n\n\t\t\tif( isset( $partial[ 'capability' ] ) && !empty( $partial[ 'capability' ] ) ){\n\t\t\t\t$args[ 'capability' ] = $partial[ 'capability' ];\n\t\t\t}\n\n\t\t\tif( isset( $partial[ 'render_callback' ] ) && !empty( $partial[ 'render_callback' ] ) ){\n\t\t\t\t$args[ 'render_callback' ] = $partial[ 'render_callback' ];\n\t\t\t}else{\n\t\t\t\t$args[ 'render_callback' ] = array( self::$instance, 'render_partial' );\n\t\t\t}\n\n\t\t\tif( isset( $partial[ 'container_inclusive' ] ) && !empty( $partial[ 'container_inclusive' ] ) ){\n\t\t\t\t$args[ 'container_inclusive' ] = $partial[ 'container_inclusive' ];\n\t\t\t}\n\n\t\t\tif( isset( $partial[ 'fallback_refresh' ] ) && !empty( $partial[ 'fallback_refresh' ] ) ){\n\t\t\t\t$args[ 'fallback_refresh' ] = $partial[ 'fallback_refresh' ];\n\t\t\t}\n\n\t\t\treturn apply_filters( self::with_prefix( 'customizer_get_partial_arg', '_' ), $args, $partial );\n\t\t}", "title": "" }, { "docid": "01d7d7d4f3705843757ee72624b625ac", "score": "0.5491709", "text": "public function isPartial()\n\t{\n\t\treturn $this->_partial;\n\t}", "title": "" }, { "docid": "24bbccca4660d4772ec813e8249f7b39", "score": "0.5483883", "text": "public function index(){\n\n $this->load->view(\"partials/header\");\n \n }", "title": "" }, { "docid": "fdb2a9b43b2f0dd956627ab37f230c48", "score": "0.5432867", "text": "public function renderPartial($viewfile, $data, $return = false, $processOutput = false)\n {\n $alias = 'plugin_views_folder' . $this->id;\n \\Yii::setPathOfAlias($alias, $this->getDir());\n return \\Yii::app()->controller->renderPartial($alias .'.views.' . $viewfile, $data, $return, $processOutput);\n }", "title": "" }, { "docid": "964a16ca8604498f92df6abdc196e2dd", "score": "0.54323155", "text": "public function render(){\n include $this->templateName(); \n }", "title": "" }, { "docid": "3bcf75b5a7e342400d3bcec25bd8f159", "score": "0.5432069", "text": "private function composeEmailTemplatePartialForm()\n {\n View::composer(\n\n 'admin.partials._email_template_id_field',\n\n function($view)\n {\n $view->with('email_templates', ListHelper::email_templates());\n });\n }", "title": "" }, { "docid": "bcd64eb14f2464494b03e076eb447de8", "score": "0.54246205", "text": "function getPartial($str);", "title": "" }, { "docid": "0b10e92976fd692748ae8aedead832bd", "score": "0.5415525", "text": "public function isPartial(): bool\n {\n return false;\n }", "title": "" }, { "docid": "998bac9e9def924752bb32ee83cd181f", "score": "0.53673434", "text": "public function setPartial($partial)\n {\n $this->partial = (string) $partial;\n return $this;\n }", "title": "" }, { "docid": "f116d77046f462d6c4d8f7a808928167", "score": "0.53574795", "text": "function include_theme_partial($filename, array $data = [], bool $return = false)\n{\n $template = get_theme_partial($filename, $data);\n\n if ($template) {\n\n if ($return) {\n return $template;\n }\n\n echo $template;\n }\n}", "title": "" }, { "docid": "abdef4177531f0d12b90dbc94da1d3c0", "score": "0.53552586", "text": "public function cpartial($view, array $data = array(), $extract = false) {\n if(isset($this->output_cache[$view])) {\n echo $this->output_cache[$view];\n } else {\n ob_start();\n \n if ($extract)\n $this->_partial($view, $data);\n else\n $this->partial($view, $data);\n \n $this->output_cache[$view] = ob_get_contents();\n ob_end_clean();\n echo $this->output_cache[$view];\n }\n }", "title": "" }, { "docid": "e655587c3e2a64f91d522b627aa0591b", "score": "0.53543437", "text": "function view_path($path = null)\n{/*{{{*/\n static $container = '';\n\n if (!empty($path)) {\n return $container = $path;\n }\n\n return $container;\n}", "title": "" }, { "docid": "5720a22f97974c5c0cfe7794ac4556ad", "score": "0.5353081", "text": "public function renderPartial($partial, $model = [], $module = null)\n {\n $partialHelper = $this->getServiceLocator()->get('ViewHelperManager')\n ->get('partial');\n\n return $module\n ? $partialHelper($partial, $module, $model)\n : $partialHelper($partial, $model);\n }", "title": "" }, { "docid": "305f28541d1960a729304d3e95d83a6d", "score": "0.53360957", "text": "private function pageCorrespondsToPartialView(string $page) : bool\n {\n $parts = explode('/', $page);\n\n $view = $parts[count($parts) - 1];\n return strlen($view) > 0 && $view[0] === '_';\n }", "title": "" }, { "docid": "7b6fc2edcadeee08d6150ae8fd90f811", "score": "0.53055716", "text": "protected function _renderPartial($tag_name, $leading, $trailing, $filename = null) {\n\t\t$partial = $this->_getPartial($tag_name, $filename);\n\t\tif (is_array($partial)) {\n\t\t\t$filename = $partial['filename'];\n\t\t\t$partial = $partial['content'];\n\t\t}\n\t\tif ($leading !== null && $trailing !== null) {\n\t\t\t$whitespace = trim($leading, \"\\r\\n\");\n\t\t\t$partial = preg_replace('/(\\\\r?\\\\n)(?!$)/s', \"\\\\1\" . $whitespace, $partial);\n\t\t}\n\n\t\t$view = clone($this);\n\n\t\tif ($leading !== null && $trailing !== null) {\n\t\t\treturn $leading . $view->render($partial, null, null, $filename);\n\t\t} else {\n\t\t\treturn $leading . $view->render($partial, null, null, $filename) . $trailing;\n\t\t}\n\t}", "title": "" }, { "docid": "5e60374a673bb436a4eb13c6f5682c35", "score": "0.53011745", "text": "final public function template($path) {\n\t\treturn '';\n\t}", "title": "" }, { "docid": "b36f27fabb99378fd7ad55b54e847a2f", "score": "0.5297433", "text": "function load_view_2020($path) {\n\trequire_once ADD_PROJECTS_PLUGIN_PATH . \"views/{$path}.php\";\n}", "title": "" }, { "docid": "297d048848ccab87329284c1b8d8c7b3", "score": "0.52747446", "text": "function origin_view($path, array $data = [])\n {\n $__template_path = locate_template(\"views/{$path}.php\");\n\n if (is_array($data) && count($data) > 0) {\n extract($data);\n }\n\n if ($__template_path) {\n include ($__template_path);\n }\n }", "title": "" }, { "docid": "84095416a6077df6d5990e0de6c070ef", "score": "0.5270768", "text": "public function compose($input = false, $partial = false)\n {\n $path = $this->theme();\n\n if(!$input && !$partial) {\n $path .= '.'.$this->componentPath;\n }\n\n If($input) {\n $path .= '.'.$this->inputPath;\n }\n\n If($partial) {\n $path .= '.'.$this->partialsPath;\n }\n\n return $path.'.';\n }", "title": "" }, { "docid": "93f203bfa7e59f4558a55d96ad4c9ff7", "score": "0.52614635", "text": "function display($path)\n{\n //todo find a way to add variables here lol\n $view = file_get_contents($path);\n ob_start();\n eval('?>' . $view);\n return ob_get_clean();\n}", "title": "" }, { "docid": "11acb9db9d7ccbc2980c3359c2235ea0", "score": "0.52465475", "text": "public function setPartial($partial)\n {\n $this->_partial = $partial;\n\n return $this;\n }", "title": "" }, { "docid": "08ca8191d12e223bd10243c3c4d1edec", "score": "0.5227142", "text": "function path_view ($path=''):string { return path_app('views'.DIRECTORY_SEPARATOR.$path); }", "title": "" }, { "docid": "6fd5b1c002172c7c872904d06a803cb0", "score": "0.52233255", "text": "public function render($name){\r\n require 'view/header.php';\r\n require 'view/'.$name.'.php';\r\n require 'view/footer.php';\r\n }", "title": "" }, { "docid": "0f875ee25d4ed78f2358c745c24b04cb", "score": "0.5214805", "text": "function render_template($path, array $args) {\n\tglobal $htmlroot;\n\textract($args);\n\tob_start();\n\trequire $path;\n\t$html = ob_get_clean();\n\treturn $html;\n\t}", "title": "" }, { "docid": "fae454b7d347f94590fe83af34509509", "score": "0.52079856", "text": "private function getPartialView($template, $data = [])\r\n {\r\n $viewModel = new ViewModel($data);\r\n $viewModel->setTemplate($template);\r\n $renderer = $this->getServiceLocator()->get('ViewManager')->getRenderer();\r\n $html = $renderer->render($viewModel);\r\n\r\n return $html;\r\n }", "title": "" }, { "docid": "07b7b6b95dbcc31342cade9b1a02a200", "score": "0.5201765", "text": "public function render($path, $data = [])\n {\n require_once $this->app->makePath('vendor/autoload.php');\n\n $viewPath = $this->getViewPath($path);\n\n extract($data);\n\n require_once $viewPath;\n }", "title": "" }, { "docid": "742c4d23d0ba4b7a7f1e78b13ad61d83", "score": "0.5191202", "text": "public function test_view()\n\t{\n\t\t$this->load->library('Akper/template',[\n\t\t\t'base_view' \t=> 'testview/template',\n\t\t\t'partial_view' \t=> [\n\t\t\t\t'header' => 'testview/header'\n\t\t\t]\n\t\t]);\n\t\t$this->template->render(['content' => 'testview/content'],[\n\t\t\t'asas' => 'Hello'\n\t\t]);\n\t}", "title": "" }, { "docid": "42c12d348da5952f5bfe5e5a3762855a", "score": "0.517927", "text": "function view( $path = '', $data = [] )\r\n{\r\n\t$views = __DIR__ . '/../../resources/views' ;\r\n\r\n\t$cache = __DIR__ . '/../../bootstrap/cache' ;\r\n\r\n\t$blade = new Blade($views, $cache);\r\n\r\n\techo $blade->view()->make($path, $data)->render();\r\n}", "title": "" }, { "docid": "3ddd7367b46079a930b6b68e1aab3f8c", "score": "0.51760894", "text": "public function render($path) {\n $this->response()->header('Content-Type', 'text/html; charset=utf-8', true);\n\n $bufferEnabled = $this->response()->useOutputBuffer();\n $bufferOptions = $this->response()->outputBufferOptions();\n\n if ( $bufferEnabled ) {\n ob_start(null, (int) @$bufferOptions['size']);\n }\n\n // isolate scope\n call_user_func(function() {\n include_once(func_get_arg(0));\n }, $path);\n\n if ( $bufferEnabled ) {\n $output = trim(ob_get_clean());\n if ( $output ) {\n $this->response()->send($output);\n }\n }\n\n return $this;\n }", "title": "" }, { "docid": "b58dd218619ac4d47d80933992a57a5e", "score": "0.5146969", "text": "function view($name, $vars = []) {\n\t\t$_dirs\t\t\t= explode('/', $name);\n\t\t$_filename\t\t= array_pop($_dirs);\n\t\t$_resolve_path\t= ltrim(implode('/', $_dirs).'/'.$_filename.'.php', '/');\n\n\t\textract($vars);\n\n\t\trequire_once VIEW_DIR.'/'.$_resolve_path;\n\t}", "title": "" } ]
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "d581dd2bb0dd1941a6c5cf329d55084f", "score": "0.0", "text": "public function run()\n {\n for ($i=0; $i < 100; $i++) {\n DB::table('likes')->insert([[\n 'traveler' => rand(1, Traveler::count()),\n 'likes_journey' => rand(1, Journey::count()),\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 }", "title": "" } ]
[ { "docid": "0bfde9ef2f3ebe06cba65de4fe4e0c07", "score": "0.8007822", "text": "public function run()\n {\n factory('App\\User')->create([\n 'name' => 'admin',\n 'email' => 'admin@admin.com',\n 'password' => Hash::make('admin123')\n ]);\n \n // $this->call(UsersTableSeeder::class);\n factory('App\\User', 10)->create();\n factory('App\\Post', 50)->create();\n factory('App\\Tag', 10)->create();\n\n $posts = Post::all()->pluck('id');\n $tags = Tag::all()->pluck('id');\n\n foreach(range(1, 50) as $index){\n DB::table('taggables')->insert([\n 'tag_id' => $tags[rand(0,9)],\n 'taggable_id' => $posts[rand(0,49)],\n 'taggable_type' => 'App\\Post'\n ]);\n }\n\n factory('App\\Department', 20)->create();\n }", "title": "" }, { "docid": "be70abafa425894fc1f5fffa84ad1c58", "score": "0.799776", "text": "public function run()\n {\n\n Eloquent::unguard();\n //disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n $faker = Faker::create();\n\n App\\ProductDetail::truncate();\n App\\Product::truncate();\n\n for ($i = 0; $i < 100; $i++) {\n $products = DB::table('products')->insert([\n 'product_name' => $faker->sentence($nbWords = 6, $variableNbWords = true),\n ]);\n }\n\n $productList = App\\Product::pluck('id')->toArray();\n\n for ($i = 0; $i < 100; $i++) {\n $productDetails = DB::table('product_details')->insert([\n 'product_id' => $faker->randomElement($productList),\n 'selling_price' => $faker->randomFloat($nbMaxDecimals = 2, $min = 0, $max = 23),\n 'product_cost' => $faker->randomFloat($nbMaxDecimals = 2, $min = 0, $max = 23),\n 'weight' => $faker->randomDigit,\n 'weight_unit' => 'kg',\n 'SKU' => $faker->ean13,\n 'active' => true,\n 'descriptions' => $faker->paragraphs($nb = 3, $asText = true),\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "cbc18118ffdf77b61b5599ddb34c1812", "score": "0.79821414", "text": "public function run()\n {\n\n //Seed Users table with 50 entries \n factory(User::class, 10)->create();\n\n //Seed Articles table with 50 entries \n factory(Article::class, 10)->create();\n\n //Seed Tags table with 15 entries \n factory(Tag::class, 10)->create();\n\n //Seed Images table with 50 entries \n factory(Thumbnail::class, 10)->create();\n\n //Get array of ids of Users and Tags\n $articleIds = DB::table('articles')->pluck('id')->all();\n $tagsIds = DB::table('tags')->pluck('id')->all();\n\n\n //Seed article_tag table with 50 entries\n foreach ((range(1, 10)) as $index) {\n DB::table('article_tag')->insert(\n [\n 'article_id' => $articleIds[array_rand($articleIds)],\n 'tag_id' => $tagsIds[array_rand($tagsIds)]\n ]\n );\n } \n\n }", "title": "" }, { "docid": "e997c5cb5c91efaf84cdc8c54ff75337", "score": "0.7977852", "text": "public function run()\n {\n //Seed some random titles like Doctor, Chef, Technician, System Analyst\n DB::table('titles')->insert([\n 'name' => 'Human Resources Manager',\n 'salary' => '600000',\n 'department_id' => 1,\n 'user_id' => 1,\n 'created_at' => date(\"Y-m-d H:i:s\"),\n ]);\n DB::table('titles')->insert([\n 'name' => 'Senior Accountant',\n 'salary' => '750000',\n 'department_id' => 1,\n 'user_id' => 1,\n 'created_at' => date(\"Y-m-d H:i:s\"),\n ]);\n DB::table('titles')->insert([\n 'name' => 'Field Officer',\n 'salary' => '400000',\n 'department_id' => 2,\n 'user_id' => 2,\n 'created_at' => date(\"Y-m-d H:i:s\"),\n ]);\n }", "title": "" }, { "docid": "b0d690b7877e9052a404018f9bbcb857", "score": "0.7964612", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('pages')->delete();\n\n $page = array(\n array(\n 'content'=>'Lorem ipsum dolor sit amet, consectetur adipisicing elit. A aperiam autem dolor facilis magni nemo placeat? Ad, aliquam cum deserunt excepturi fugit inventore ipsa odio possimus quaerat tempora voluptates voluptatum?',\n 'custom_fields'=>'',\n 'description'=>'Lorem ipsum dolor sit amet.',\n 'parent'=>0,\n 'thumbnail'=>'',\n )\n );\n\n DB::table('pages')->insert($page);\n\n DB::table('posts')->delete();\n\n $post = array(\n array(\n 'content'=>'Lorem ipsum dolor sit amet, consectetur adipisicing elit. A aperiam autem dolor facilis magni nemo placeat? Ad, aliquam cum deserunt excepturi fugit inventore ipsa odio possimus quaerat tempora voluptates voluptatum?',\n 'custom_fields'=>'',\n 'description'=>'Lorem ipsum dolor sit amet.',\n 'parent'=>0,\n 'thumbnail'=>'',\n )\n );\n\n DB::table('posts')->insert($post);\n\n DB::table('categories')->delete();\n\n $post = array(\n array(\n 'name'=>'Simple',\n 'description'=>'Lorem ipsum dolor sit amet.',\n 'parent'=>0,\n 'thumbnail'=>'',\n )\n );\n\n DB::table('categories')->insert($post);\n }", "title": "" }, { "docid": "b8d732d24d0cafa0a09ae0fae273abc1", "score": "0.79600173", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('books')->insert([\n [\n 'title'=>'Name of the wind',\n 'description'=>'good book',\n ],\n [\n 'title'=>'Les rois mages',\n 'description'=>'Livre 1',\n ],\n [\n 'title'=>'Les mésirables',\n 'description'=>'faire machine avant',\n ],\n [\n 'title'=>'Name the goods',\n 'description'=>'good book two',\n ],\n [\n 'title'=>'Name of the world',\n 'description'=>'book type',\n ]\n ]);\n\n $this->call(AuthorTableSeeder::class);\n \n $this->call(BookTableSeeder::class);\n\n }", "title": "" }, { "docid": "28c90ca039b31e0b4ea668fe4b7200a1", "score": "0.79537797", "text": "public function run()\n {\n // $this->call(RolesTableSeeder::class);\n DB::table('roles')->insert([\n ['name' => 'Super Admin'],\n ['name' => 'Admin'],\n ['name' => 'Super Manager'],\n ['name' => 'Manager'],\n ['name' => 'User']\n ]);\n\n DB::table('departaments')->insert([\n ['name' => 'Developers'],\n ['name' => 'Managers'],\n ['name' => 'Mobiles'],\n ['name' => 'SEO']\n ]);\n\n DB::table('offices')->insert([\n ['name' => 'Trainee'],\n ['name' => 'Junior'],\n ['name' => 'Middle'],\n ['name' => 'Senjor']\n ]);\n }", "title": "" }, { "docid": "414c56fa7478f0f26f90e25015547739", "score": "0.7938816", "text": "public function run()\n {\n Model::unguard();\n\n // $this->call('UserTableSeeder');\n User::truncate();\n App\\Models\\Article::truncate();\n // App\\Models\\Category::truncate();\n // factory(User::class, 47)->create()->each(function($u) {\n // $n = rand(1,30);\n // // dd($u);\n // $u->articles()->save(factory(App\\Models\\Article::class, $n)->make());\n // });\n $users = factory(App\\Models\\User::class, 13)\n ->create()\n ->each(function($u) {\n $n = rand(1,30);\n for ($i=1; $i < $n; $i ++) {\n $u->articles()->save(factory(App\\Models\\Article::class)->make());\n }\n });\n // factory(App\\Models\\Article::class, 54)->create();\n factory(App\\Models\\Category::class, 20)->create();\n // factory(App\\Mo/usdels\\Comment::class, 98)->create();\n // factory(App\\Models\\Notification::class, 12)->create();\n Model::reguard();\n }", "title": "" }, { "docid": "e5a10ab44791834389d06f68b18e61a0", "score": "0.79154366", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory('App\\Actor', 10)->create();\n factory('App\\Genre', 5)->create();\n factory('App\\Director', 3)->create();\n factory('App\\Movie', 20)->create();\n //factory('App\\MovieActor', 10)->create();\n factory('App\\MovieGenre', 10)->create();\n }", "title": "" }, { "docid": "78877988f9d7b9a209f3d7e3b76783c1", "score": "0.79043496", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(NewsTableSeeder::class);\n $this->call(AuthorsTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(TagsTableSeeder::class);\n\n foreach (array_fill(0,49, 1) as $value) {\n DB::table('categories_news')->insert([\n 'categories_id' => rand(1, 10),\n 'news_id' => rand(1, 50)\n ]);\n DB::table('news_tags')->insert([\n 'news_id' => rand(1, 50),\n 'tags_id' => rand(1, 50)\n ]);\n }\n }", "title": "" }, { "docid": "519140d4569147b92caec85e96a7d54d", "score": "0.7861984", "text": "public function run()\n {\n DB::table('main')->insert(['name' => 'title', 'value' => 'All About Aqua']);\n DB::table('main')->insert(['name' => 'short-title', 'value' => 'A3']);\n DB::table('main')->insert(['name' => 'admin', 'value' => 'bRexx']);\n\n DB::table('categories')->insert(['name' => 'Fish']);\n DB::table('categories')->insert(['name' => 'Aquarium']);\n DB::table('categories')->insert(['name' => 'Food']);\n DB::table('categories')->insert(['name' => 'Decoration']);\n DB::table('categories')->insert(['name' => 'Medicine']);\n DB::table('categories')->insert(['name' => 'Others']);\n\n //admin seed\n DB::table('users')->insert(['name'=>'admin','email'=>'admin@admin.com','password'=>bcrypt('admin'),'address'=>'test,testing,tested','phone'=>987654321,'bio'=>'Quibusdam sed consequatur nisi ipsam doloribus quasi exercitationem ducimus dolore']);\n DB::table('shops')->insert(['name'=>'admin','email'=>'admin@admin.com','password'=>bcrypt('admin'),'address'=>'test,testing,tested','phone'=>987654321,'bio'=>'Quibusdam sed consequatur nisi ipsam doloribus quasi exercitationem ducimus dolore']);\n\n }", "title": "" }, { "docid": "cbe94f71f3320e562446a3857980162d", "score": "0.78545153", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // $table->increments('id');\n // $table->string('image');\n // $table->text('huni_too');\n // $table->text('usni_heregle');\n // $table->text('hereglesen_od');\n // $table->text('number');\n // $table->string('link');\n // $table->rememberToken();\n // $table->timestamps();\n\n\n DB::table('comus')->insert([\n 'image' => str_random(''),\n 'huni_too' => str_random('1'),\n 'usni_heregle' => str_random('2'),\n 'hereglesen_od' => str_random('5'),\n 'number' => str_random('666'),\n 'link' => str_random('gogo.mn'),\n ]);\n }", "title": "" }, { "docid": "32a1a19094e28fbcdf4c0f9a799b242e", "score": "0.78494513", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Element::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few elements in our database:\n for ($i = 0; $i < 50; $i++) {\n Element::create([\n 'title' => $faker->sentence,\n 'description' => $faker->paragraph,\n ]);\n }\n }", "title": "" }, { "docid": "3aba22301887990477ce9cba4fcd6d61", "score": "0.78490025", "text": "public function run()\n {\n //seed for user account\n \\Illuminate\\Support\\Facades\\DB::table('users')->insert([\n [\n \"name\" => \"User\",\n \"email\" => \"user@store.in\",\n \"password\" => \\Illuminate\\Support\\Facades\\Hash::make('user12345'),\n \"phone_number\" => \"+62811111111\",\n \"full_address\" => \"Jalan Mendut Gg.XV No.18\",\n \"city\" => \"Jember\",\n \"province\" => \"Jawa timur\",\n \"postal_code\" => \"68416\"\n ],\n [\n \"name\" => \"Admin\",\n \"email\" => \"admin@store.in\",\n \"password\" => \\Illuminate\\Support\\Facades\\Hash::make('admin123'),\n \"phone_number\" => \"+62811111111\",\n \"full_address\" => \"Jalan Mendut Gg.XV No.18\",\n \"city\" => \"Jember\",\n \"province\" => \"Jawa timur\",\n \"postal_code\" => \"68416\"\n ]\n ]);\n\n //seed for role each account\n DB::table('user_role')->insert([\n [\n 'user_id' => 1,\n 'role_id' => 1\n ],\n [\n 'user_id' => 2,\n 'role_id' => 2\n ]\n ]);\n }", "title": "" }, { "docid": "4a808c704f3d0986a8185bbaa1f0bda0", "score": "0.78462607", "text": "public function run()\n {\n\n // $this->call(UserSeeder::class);\n\n //DB::statement('SET FOREIGN_KEY_CHECKS = 0'); //disable forign key checks temporaliry fr truncateing the tables\n\n //first truncate all the tables before seedingthe data in db\n User::truncate();\n Category::truncate();\n Course::truncate();\n Topic::truncate();\n Enrollment::truncate();\n\n //use the db facade to truncate the pivot tables since they dont have models\n DB::table('category_course')->truncate();\n DB::table('course_topic')->truncate();\n\n ///prevent listening to events when running our db seed command\n User::flushEventListeners();\n Category::flushEventListeners();\n Course::flushEventListeners();\n Topic::flushEventListeners();\n Enrollment::flushEventListeners();\n\n\n //setting quntity for the entities to put in database\n $usersQuantity = 1000;\n $categoriesQuantity = 30;\n $topicsQuantity = 100;\n $coursesQuantity = 100;\n $enrollmentsQuantity = 200;\n\n factory(User::class, $usersQuantity)->create();\n\n factory(Category::class, $categoriesQuantity)->create();\n\n factory(Topic::class, $topicsQuantity)->create();\n\n //create courses and attach relationships to each of them\n factory(Course::class, $coursesQuantity)->create()->each(\n function ($course) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $topics = Topic::all()->random(mt_rand(1, 5))->pluck('id');\n\n $course->categories()->attach($categories); //attching categories\n $course->topics()->attach($topics); //attaching topics\n }\n );\n\n factory(Enrollment::class, $enrollmentsQuantity)->create();\n }", "title": "" }, { "docid": "de244443af2a696896399e699e059f2a", "score": "0.78436476", "text": "public function run()\n {\n \t$faker = Faker::create();\n \tfor ($i=0; $i < 20; $i++) { \n \t\t$post = new App\\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 $post->user_id = rand(1,2);\n \t\t$post->save();\n \t}\n\n $categories = ['General','Technology','Computer','Internet','Moblie'];\n foreach ($categories as $name) {\n $category= new App\\Category;\n $category ->name =$name;\n $category->save();\n }\n\n for ($i=0; $i <20 ; $i++) { \n $comment=new App\\Comment;\n $comment->comment=$faker->paragraph;\n $comment->post_id = rand(10, 20);\n $comment->save();\n }\n\n $bob = new App\\User;\n $bob->name='Bob';\n $bob->email='bob@gmail.com';\n $bob->password=bcrypt('123456');\n $bob->save();\n\n $alice = new App\\User;\n $alice->name='Alice';\n $alice->email='alice@gmail.com';\n $alice->password=bcrypt('12345678');\n $alice->save();\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "07bb157e7f1f9063025b8db84ac92a02", "score": "0.78420794", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 20)->create();\n\n Topic::create(['name' => 'Featured Sites', 'slug' => 'featured']);\n Topic::create(['name' => 'Useful Links', 'slug' => 'links']);\n Topic::create(['name' => 'Guides & Tutorials', 'slug' => 'tutorials']);\n\n\n factory(Post::class, 20)->create();\n\n }", "title": "" }, { "docid": "8cbf125f1cbe9a706631b0b6739a5347", "score": "0.7840275", "text": "public function run()\n {\n factory(App\\Models\\User::class, 50)->create();\n// factory(App\\Models\\Category::class, 6)->create();\n $this->call(CategoriesTableSeeder::class);\n factory(App\\Models\\Post::class, 400)->create();\n factory(App\\Models\\Comment::class, 700)->create();\n factory(App\\Models\\Tag::class, 20)->create();\n $this->call(PostTagTableSeeder::class);\n $this->call(LikesTableSeeder::class);\n $this->call(BannersTableSeeder::class);\n }", "title": "" }, { "docid": "65770945a3971c8728c1a323d1cfe087", "score": "0.7829855", "text": "public function run()\n {\n // Truncate Employee table truncate before seeding\n Company::truncate();\n \n $faker = Factory::create();\n \n foreach (range(1,10) as $index) {\n Company::create([\n 'name' => $faker->catchPhrase,\n 'email' => $faker->unique()->companyEmail,\n 'website' => $faker->unique()->domainName,\n 'created_at' => $faker->dateTime($max = 'now', $timezone = null),\n 'updated_at' => $faker->dateTime($max = 'now', $timezone = null)\n ]);\n }\n }", "title": "" }, { "docid": "f34bd24daeef3025bf64273a62304b04", "score": "0.7821777", "text": "public function run()\n {\n\n // \\App\\Models\\User::factory(10)->create();\n // Model::unguard();\n\n // $faker = Faker::create();\n\n // foreach(range(1, 30) as $index) {\n // Article::create([\n // 'title' => $faker->sentence(5),\n // 'content' => $faker->paragraph(6)\n // ]);\n // }\n\n\n // Model::reguard();\n }", "title": "" }, { "docid": "ed892f45b12929faabc610f2b0985f93", "score": "0.7821691", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('objects')->insert([\n 'name' => 'name1',\n 'description' => 'description1',\n 'type' => 'type1',\n ]);\n DB::table('objects')->insert([\n 'name' => 'name2',\n 'description' => 'description2',\n 'type' => 'type2',\n ]);\n DB::table('objects')->insert([\n 'name' => 'name3',\n 'description' => 'description3',\n 'type' => 'type3',\n ]);\n\n DB::table('relations')->insert([\n 'from' => 1,\n 'to' => 2,\n ]);\n DB::table('relations')->insert([\n 'from' => 1,\n 'to' => 3,\n ]);\n DB::table('relations')->insert([\n 'from' => 2,\n 'to' => 3,\n ]);\n\n }", "title": "" }, { "docid": "f7ba48b900e751e70594de5e33421d60", "score": "0.7802776", "text": "public function run()\n {\n // Seeding 1st user with 2 project\n User::factory(1)\n ->hasProjects(2)\n ->create();\n\n // Seed issue statuses\n DB::table('issue_statuses')->insert([\n 'name' => 'Backlog'\n ]);\n DB::table('issue_statuses')->insert([\n 'name' => 'To Do'\n ]);\n DB::table('issue_statuses')->insert([\n 'name' => 'In Progress'\n ]);\n DB::table('issue_statuses')->insert([\n 'name' => 'Testing'\n ]);\n DB::table('issue_statuses')->insert([\n 'name' => 'Completed'\n ]);\n\n // Seeding 8 issues, project_id will be random\n Issue::factory(8)\n ->create();\n }", "title": "" }, { "docid": "29cb5cb84c4bffd9e2b2c12fec684fa6", "score": "0.780078", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Address::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 < 4; $i++) {\n \n $main = $i == 0 ? 1 : 0;\n Address::create([\n 'user_id' => 1,\n 'address' => $faker->address,\n 'code' => $faker->postcode,\n 'city' => $faker->city,\n 'phone' => $faker->phoneNumber,\n 'main' => $main\n ]);\n }\n }", "title": "" }, { "docid": "f50f6d54fb799adc3b1bdb3b79c484d3", "score": "0.78002775", "text": "public function run()\n {\n $faker = Faker::create();\n \tforeach (range(1,50) as $index) {\n\n \t\t$title=$faker->sentence(3);\n\n\t DB::table('articles')->insert([\n\t 'title' =>$title,\n\t 'content' => $faker->paragraph(5),\n\t 'slug'=> Str::slug($title),\n\t 'user_id'=>1,\n\t 'created_at' => new DateTime, \n\t 'updated_at' => new DateTime\n\t ]);\n }\n }", "title": "" }, { "docid": "5f769899c919388eb4ce556b4a40b76f", "score": "0.7799289", "text": "public function run()\n {\n \\DB::table('users')->insert(\n [\n 'name' => 'sid',\n 'email' => 'forge405@gmail.com',\n 'role' => 'admin',\n 'password' => bcrypt(env('INIT_PASSWD')),\n ]\n );\n\n //Creare 10 categorie\n $categories = factory(Category::class, 10)->create();\n //Creare 10 utenti\n $users = factory(User::class, 10)->create();\n //Creare 30 tags\n $tags = factory(Tag::class, 30)->create();\n\n //per ciascun utente creare 15 post\n foreach ($users as $user) {\n //assegnare una categoria random\n $category = $categories->random();\n $posts = factory(Post::class, 15)->create(\n [\n 'category_id' => $category->id,\n 'user_id' => $user->id,\n ]\n );\n //assegnare 3 tags random\n foreach ($posts as $post) {\n $post->tags()->sync($tags->random(3)->pluck('id')->toArray());\n }\n }\n }", "title": "" }, { "docid": "b7cfff08e0d76911d75a02d312a85fed", "score": "0.77978605", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $users = collect();\n $users->push([\"username\" => \"Alessandro\", \"email\" => \"ale98.martinoli@gmail.com\", \"password\" => md5(\"eldrazi\")]);\n $users->push([\"username\" => \"Giorgetto\", \"email\" => \"ale98@gmail.com\", \"password\" => md5(\"eldrazi\")]);\n $users->push([\"username\" => \"Marco\", \"email\" => \"ale@gmail.com\", \"password\" => md5(\"eldrazi\")]);\n\n foreach($users as $user) {\n User::create([\n \"username\" => $user[\"username\"],\n \"email\" => $user[\"email\"],\n \"password\" => $user[\"password\"]\n ]);\n }\n\n $articles = collect();\n $articles->push([\"title\" => \"Titolo 1\", \"content\" => \"Articolo bellissimo 1\", \"user_id\" => 1]);\n $articles->push([\"title\" => \"Titolo 2\", \"content\" => \"Articolo bellissimo 2\", \"user_id\" => 2]);\n $articles->push([\"title\" => \"Titolo 3\", \"content\" => \"Articolo bellissimo 3\", \"user_id\" => 2]);\n $articles->push([\"title\" => \"Titolo 4\", \"content\" => \"Articolo bellissimo 4\", \"user_id\" => 3]);\n\n foreach($articles as $article) {\n Article::create([\n \"title\" => $article[\"title\"],\n \"content\" => $article[\"content\"],\n \"user_id\" => $article[\"user_id\"]\n ]);\n }\n }", "title": "" }, { "docid": "30fe5a8e5f9a52e2ff54231982691f0f", "score": "0.7795682", "text": "public function run()\n {\n $this->call(AdminSeeder::class);\n factory(App\\Models\\User::class, 50)->create();\n factory(App\\Models\\Category::class, 5)->create();\n factory(App\\Models\\Category::class, 5)->create();\n factory(App\\Models\\Book::class, 50)->create();\n factory(App\\Models\\Review::class, 100)->create();\n factory(App\\Models\\Comment::class, 200)->create();\n }", "title": "" }, { "docid": "78df9713302ed4286177ce6880823388", "score": "0.77945477", "text": "public function run()\n {\n /**\n * IMPORTANT!\n * The database seed is written to handle the task centralized\n * It should use:\n * php artisan db:seed\n * -> You can not run the seeds separately, it could cause errors!\n */\n\n // Truncate all tables, except migrations\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n $tables = DB::select('SHOW TABLES');\n foreach ($tables as $table) {\n if ($table->{'Tables_in_' . env('DB_DATABASE')} !=='migrations')\n DB::table($table->{'Tables_in_' . env('DB_DATABASE')})->truncate();\n }\n\n User::factory()->count(5)->create();\n $this->call(RolesTableSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n\n $this->call(CategoriesTableSeeder::class);\n Category::factory()->count(10)->create();\n\n Post::factory()->count(100)->create();\n\n Tag::factory()->count(20)->create();\n $this->call(PostTagTableSeeder::class);\n\n Comment::factory()->count(250)->create();\n }", "title": "" }, { "docid": "aff5888ce4fe9dc9547987a84da0f5b3", "score": "0.77938676", "text": "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n\n factory(\\App\\User::class)->create(['email' => 'vittorio@cierra.de']);\n\n $series_collection = factory(\\App\\Series::class, 4)->create();\n foreach ($series_collection as $series) {\n factory(\\App\\Lesson::class, 8)->create(['series_id' => $series->id]);\n }\n }", "title": "" }, { "docid": "7a9160c6e6922f81836e612d863e24eb", "score": "0.77872473", "text": "public function run()\n {\n //\n // Let's truncate our existing records to start from scratch.\n Program::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few Programs in our database:\n for ($i = 0; $i < 50; $i++) {\n Program::create([\n 'name' => $faker->sentence,\n 'type' => $faker->word,\n 'gif' => $faker->word,\n ]);\n }\n }", "title": "" }, { "docid": "f95dae06b42b3874fd917fdaad0f1532", "score": "0.7784616", "text": "public function run()\n {\n\n // DB::table('users')->insert([\n // 'name' => 'Demo',\n // 'email' => 'demo@gmail.com',\n // 'password' => Hash::make('demo'),\n // ]);\n\n // DB::table('roles')->insert([\n // 'name' => 'admin',\n // 'slug' => 'admin', \n // ]);\n\n // DB::table('users_roles')->insert([\n // 'user_id' => '1',\n // 'role_id' => '1', \n // ]);\n DB::table('statuses')->insert([\n ['name' => 'В обработке'],\n ['name' => 'Ожидает оплату'],\n ['name' => 'Оплачен'],\n ['name' => 'Завершен'],\n ]);\n\n // \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(10)->create();\n // \\App\\Models\\Product::factory(2)->create();\n // \\App\\Models\\Review::factory(5)->create();\n // \\App\\Models\\News::factory(22)->create();\n\n }", "title": "" }, { "docid": "9bd3519b5c055646fdf21e6b831e35f3", "score": "0.77809006", "text": "public function run()\n {\n \t// DB::table('testings')->delete();\n\n $testings = array(\n\n );\n\n // Uncomment the below to run the seeder\n // DB::table('testings')->insert($testings);\n }", "title": "" }, { "docid": "70a0a4edc2e80e4fcf2d6a5dfa07fb36", "score": "0.7778213", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $authors = factory(App\\Author::class, 1000)->create();\n // $this->call(BooksTableSeeder::class);\n // $this->call(CategoriesTableSeeder::class);\n $this->call(BookCategoryTableSeeder::class);\n }", "title": "" }, { "docid": "4a914f5bd3889c772b35d5a600367ac9", "score": "0.7775184", "text": "public function run()\n {\n //User::factory(1)->create();\n //Category::factory(5)->create();\n\n //Tag::factory(10)->create();\n\n $this->call([\n //PostsTableSeeder::class,\n AbilitiesTableSeeder::class,\n ]);\n }", "title": "" }, { "docid": "2904723cb5eb301c095322aa920e8d1d", "score": "0.7774837", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $authorTableSeeder = new AuthorTableSeeder();\n $authorTableSeeder->run();\n\n $categoryTableSeeder = new CategoryTableSeeder();\n $categoryTableSeeder->run();\n\n $languageTableSeeder = new LanguageTableSeeder();\n $languageTableSeeder->run();\n\n $publisherTableSeeder = new PublisherTableSeeder();\n $publisherTableSeeder->run();\n\n $bookTableSeeder = new BookTableSeeder();\n $bookTableSeeder->run();\n\n $booksCategoriesTableSeeder = new BooksCategoriesTableSeeder();\n $booksCategoriesTableSeeder->run();\n\n $booksLanguagesTableSeeder = new BooksLanguagesTableSeeder();\n $booksLanguagesTableSeeder->run();\n\n }", "title": "" }, { "docid": "8d6193c666b8022d4bb4d5d90e85f9c8", "score": "0.77674073", "text": "public function run()\n {\n //\n DB::table('authors')->delete();\n $faker = Faker::create();\n foreach (range(1, 10) as $index ) {\n DB::table('authors')->insert([\n 'first_name' => $faker->firstName,\n 'last_name' => $faker->lastName\n ]);\n }\n }", "title": "" }, { "docid": "d11b12ac185f2cce6ea50e0c94537c98", "score": "0.77665746", "text": "public function run()\n {\n Eloquent::unguard();\n\n //disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n Role::truncate();\n $roleNames = [\n ['name'=>'Superadmin'],\n ['name'=>'Admin'],\n ['name'=>'Inventory Manager'],\n ['name'=>'Order Manager'],\n ['name'=>'Customer']\n ];\n\n DB::table(\"roles\")->insert($roleNames);\n }", "title": "" }, { "docid": "0ed44f3c88a0bd394dbf05e0a1eaf0e6", "score": "0.7765398", "text": "public function run()\n {\n $this->seed(CategoriesTableSeeder::class);\n $this->seed(UsersTableSeeder::class);\n $this->seed(PostsTableSeeder::class);\n $this->seed(PagesTableSeeder::class);\n $this->seed(TranslationsTableSeeder::class);\n }", "title": "" }, { "docid": "749e5d54beba75329a6df6b91aaf15df", "score": "0.7764386", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n // DB::table('users')->create([\n // 'name' => 'Admin',\n // 'email' => 'notify2email@gmail.com',\n // 'password' => Hash::make('Admin'),\n // ]);\n User::create([\n 'name' => 'Admin',\n 'email' => 'admin@email2line.com',\n 'password' => Hash::make('Admin'),\n ]);\n\n // factory(App\\Group::class, 10)->create()->each(function($group) {\n // $group->mappings()->saveMany(\n // factory(App\\Mapping::class, rand(1,8))->make()\n // )->each(function($mapping) {\n // $mapping->logs()->saveMany(\n // factory(App\\Log::class, rand(1,30))->make()\n // );\n // });\n // });\n }", "title": "" }, { "docid": "88449646c44f6fc44e59d75c49da4932", "score": "0.7762312", "text": "public function run()\n {\n $categories = factory(App\\Category::class, 10)->create();\n $tags = factory(App\\Tag::class, 30)->create();\n\n App\\User::create([\n 'name' => 'Sidrit',\n 'email' => 'forge405@gmail.com',\n 'password' => bcrypt('secret'),\n 'role' => 'admin'\n ]);\n\n factory(App\\User::class, 9)->create();\n\n $users = App\\User::all();\n\n foreach ($users as $user) {\n $posts = factory(App\\Post::class, 15)->create([\n 'user_id' => $user->id,\n 'category_id' => $categories->random()\n ]);\n\n foreach ($posts as $post) {\n $randomTags = $tags->random(3);\n\n $post->tags()->sync($randomTags->pluck('id'));\n }\n }\n }", "title": "" }, { "docid": "0b01af06c23cadcbf5be6127abe3744b", "score": "0.7760595", "text": "public function run()\n {\n $faker = Faker::create();\n foreach(range(1,10) as $index)\n {\n DB::table('expense_details')->insert([\n 'expense_details' => $faker->name,\n 'quantity' => $faker->numberBetween(5,20),\n 'cost_per_quantity' => $faker->numberBetween(100,200),\n 'created_at' => $faker->dateTimeBetween('-6 months','+1 month')\n ]);\n }\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(ConsigneeSeeder::class);\n $this->call(BrightSeeder::class);\n $this->call(roleManagement::class);\n $this->call(CategorySeeder::class);\n $this->call(ProductSeeder::class);\n $this->call(ChallanSeeder::class);\n $this->call(OrderSeeder::class);\n $this->call(MapOrderChallanSeeder::class);\n $this->call(DesignationSeeder::class);\n $this->call(EmployeeSeeder::class);\n }", "title": "" }, { "docid": "9da011cdf6feb2eb2419c695706d6152", "score": "0.7759525", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n $journals = factory('App\\Journal', 50)->create();\n $journals->each(function ($journal) {\n factory('App\\Entry', 10)->create(['journal_id' => $journal->id]);\n });\n }", "title": "" }, { "docid": "095d09077e72b251380fae2155ece479", "score": "0.7758182", "text": "public function run()\n {\n DB::table('posts')->delete();\n $faker = Faker::create();\n\n User::all()->each(function ($user) use ($faker) {\n Post::create([\n 'title' => $faker->word,\n 'body' => $faker->paragraph(),\n 'user_id' => $user->id\n ]);\n });\n }", "title": "" }, { "docid": "ac0c0ae6e47a2c4aa1523579e917e923", "score": "0.77538705", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // Create just one user\n DB::table('users')->insert([\n 'email' => 'pierre-yves@zenaton.com',\n 'name' => 'Pierre-Yves',\n 'password' => Hash::make('secret'),\n 'created_at' => DB::raw('CURRENT_TIMESTAMP'),\n 'updated_at' => DB::raw('CURRENT_TIMESTAMP'),\n ]);\n\n // Create just one product\n DB::table('products')->insert([\n 'name' => 'Beer x24',\n 'price' => 1999,\n 'currency' => 'EUR',\n 'created_at' => DB::raw('CURRENT_TIMESTAMP'),\n 'updated_at' => DB::raw('CURRENT_TIMESTAMP'),\n ]);\n }", "title": "" }, { "docid": "1a661e3c68b00aab559fe0792729bdfa", "score": "0.7750661", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(App\\indicadores::class, 50)->create()->each(function ($indicadores) {\n $indicadores->tipo_id()->save(factory(App\\tipo::class)->make());\n });\n }", "title": "" }, { "docid": "cb13c73a32f5f81d9840ca37255dfe68", "score": "0.774903", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //create default user\n \tDB::table('users')->insert([\n \t\t'name' => 'Christian Rosandhy',\n \t\t'email' => 'tianrosandhy@gmail.com',\n \t\t'password' => bcrypt('123456'), //Hash default laravel\n \t\t'created_at' => date('Y-m-d H:i:s'),\n \t\t'updated_at' => date('Y-m-d H:i:s'),\n \t]);\n\n \t//create example dummy post\n \tDB::table('post')->insert([\n \t\t'title' => 'Post Example Title',\n \t\t'content' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ut, dignissimos magnam eum voluptate saepe quis iste. Dolor aliquid, et beatae.',\n \t\t'created_at' => date('Y-m-d H:i:s'),\n \t\t'updated_at' => date('Y-m-d H:i:s'),\n \t]);\n \tDB::table('post')->insert([\n \t\t'title' => 'Another Title',\n \t\t'content' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nihil, odit ab ea labore distinctio aut quam commodi deserunt expedita repudiandae nostrum. Illo aliquid, nemo quos maiores eos nostrum accusamus odit.',\n \t\t'created_at' => date('Y-m-d H:i:s'),\n \t\t'updated_at' => date('Y-m-d H:i:s'),\n \t]);\n }", "title": "" }, { "docid": "4947b62035e447361c6545d854cf992b", "score": "0.7748853", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => \"Luiz Otávio Rodrigues\",\n 'email' => 'luiz.otavior18@gmail.com',\n 'admin' => 1,\n 'password' => bcrypt('senha123'),\n ]);\n DB::table('users')->insert([\n 'name' => \"Geisibel Ramos\",\n 'email' => 'geisibel.03@gmail.com',\n 'admin' => 1,\n 'password' => bcrypt('senha123'),\n ]);\n DB::table('users')->insert([\n 'name' => \"André Vitebo\",\n 'email' => 'vitebo@hotmail.com',\n 'admin' => 1,\n 'password' => bcrypt('senha123'),\n ]);\n DB::table('types')->insert([\n 'name' => \"Escolha Unica\",\n ]);\n DB::table('types')->insert([\n 'name' => \"Escolha Multipla\",\n ]);\n }", "title": "" }, { "docid": "5a9fc5195b15679581362e881c52240f", "score": "0.7747358", "text": "public function run()\n {\n // Uncomment the below to wipe the table clean before populating\n DB::table('users')->delete();\n\n $users = array(\n \t['uname' => 'BluePrint', 'email' => 'martinbjorling@gmail.com', 'password' => 'temp'],\n \t['uname' => 'Howken', 'email' => 'nekwoh@gmail.com', 'password' => 'temp']\n );\n\n // Uncomment the below to run the seeder\n DB::table('users')->insert($users);\n }", "title": "" }, { "docid": "390d111bc1635559242d183c3bf5278f", "score": "0.77467203", "text": "public function run()\n {\n // Seed the 2 user roles into the database.\n DB::table('user_role')->insert([\n 'name' => 'gebruiker'\n ]);\n DB::table('user_role')->insert([\n 'name' => 'administrator'\n ]);\n\n // Create an admin account\n DB::table('users')->insert([\n 'userRole' => '2',\n 'firstName' => 'admin',\n 'lastName' => 'admin',\n 'studentNumber' => '12345678',\n 'email' => '12345678@mydavinci.nl',\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password\n ]);\n\n // Fill the database with random users.\n factory(App\\User::class, 50)->create()->each(function ($user) {});\n }", "title": "" }, { "docid": "a147f8a51837f71221c23210594445e5", "score": "0.7745889", "text": "public function run()\n {\n //没有弄数据工厂 直接使用是不行的\n //factory(\\App\\Article::class,5)->create();\n //https://github.com/fzaninotto/Faker\n $faker = Faker\\Factory::create(); //生成一个实例\n DB::table('articles')->insert([\n 'title' => $faker->title, //这个title是指标签 并不是指标题\n 'intro' => $faker->word,\n 'content' => $faker->paragraph,\n 'published_at' => \\Carbon\\Carbon::now()\n ]);\n }", "title": "" }, { "docid": "6b85b8debf03b969ec9a47557892cc2f", "score": "0.7741882", "text": "public function run()\n {\n //delete all data.\n //DB::statement('SET CONSTRAINTS ALL DEFERRED;');\n// Answer::truncate();\n //DB::statement('SET CONSTRAINTS ALL IMMEDIATE;');\n\n $faker = Faker\\Factory::create(\"ja_JP\");\n\n $questions = \\App\\Question::all();\n\n foreach ($questions as $q) {\n $answer = Answer::create([\n \"question_id\" => $q->id,\n \"text\" => $faker->text($maxNbChars = 20),\n ]);\n $answer->save();\n }\n }", "title": "" }, { "docid": "14f4502d7510513e57b886a9741f6f9a", "score": "0.77397126", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n User::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 User::create([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'password' => 'password',\n 'urlImage' => $faker->imageUrl($width = 300, $height = 300)\n ]);\n }\n }", "title": "" }, { "docid": "78c25d822f8fcd9980407ceac5f94ac6", "score": "0.7737599", "text": "public function run()\n {\n \\App\\Models\\User::factory(100)->create();\n \\App\\Models\\NewsCategory::factory(5)->create();\n \\App\\Models\\KindOfNews::factory(5)->create();\n\n $this->call([\n\t BrandsTableSeeder::class,\n UsersTableSeeder::class,\n\t CategoriesTableSeeder::class,\n\t ProductsTableSeeder::class,\n\t ImageTableSeeder::class,\n NewsTableSeeder::class,\n StatusTableSeeder::class,\n ProvincesTableSeeder::class,\n DistrictsTableSeeder::class,\n WardsTableSeeder::class,\n RevenueTableSeeder::class,\n ]);\n \\App\\Models\\Comment::factory(600)->create();\n \\App\\Models\\Slide::factory(2)->create();\n }", "title": "" }, { "docid": "759c59838d104fbdc111725a197a71f5", "score": "0.77345306", "text": "public function run()\n {\n $blogFaker = Faker::create();\n $min_user_id = DB::table('users')->min('id');\n $max_user_id = DB::table('users')->max('id');\n $user_id = rand($min_user_id,$max_user_id); // generating a random user id to be use on Faker\n //seeding blog_models Table\n foreach (range(1,30) as $index) {\n DB::table('blog_models')->insert([\n 'title' => $blogFaker->title,\n 'blog_description' => 'Blog description',\n 'user_id' => $user_id\n ]);\n }\n\n\n //seeding users Table\n DB::table('users')->insert([\n 'name'=>Str::random(10),\n 'email'=>Str::random(10).'@gmail.com',\n 'password'=>Str::random(10)\n ]);\n\n }", "title": "" }, { "docid": "5ddebd551a1747c3f86d747756748099", "score": "0.77317834", "text": "public function run()\n {\n //$this->call(UserSeeder::class);\n $this->call(RoleSeeder::class);\n $this->call(DisctrictSeeder::class);\n $this->call(ClientSeeder::class);\n $this->call(ProvinciaSeeder::class);\n $this->call(TipoPagoSeeder::class);\n\n \\App\\Models\\Product::factory(50)->create();\n Motorizado::factory(10)->create();\n Pedido::factory(400)->create();\n $this->call(PedidoSeeder::class);\n $this->call(ImageSeeder::class);\n }", "title": "" }, { "docid": "30e1f0977628b8f69a6f41ca53787d31", "score": "0.77316725", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n \n // Create 5 records\n for ($i = 0; $i < 5; $i++) {\n Item::create([\n 'name' => $faker->firstName,\n 'color' => $faker->rgbCssColor,\n 'ShippingCost' => $faker->randomNumber(2),\n 'weight' => $faker->randomNumber(2)\n ]);\n }\n }", "title": "" }, { "docid": "c5dd116e4598e2886f4b456ab6a3745d", "score": "0.7731391", "text": "public function run()\n {\n $this->call(ItemSeeder::class);\n\n DB::table('users')->truncate();\n\n $user = User::create([\n 'name' => 'Admin',\n 'email' => 'admin@szerveroldali.hu',\n 'password' => Hash::make('password'),\n 'is_admin' => True,\n ]);\n\n $user = User::create([\n 'name' => 'user1',\n 'email' => 'user1@szerveroldali.hu',\n 'password' => Hash::make('password'),\n 'is_admin' => False,\n ]);\n\n $this->call(OrderSeeder::class);\n $this->call(OrderedItemSeeder::class); \n $this->call(CategorySeeder::class); \n\n Item::all()->each(function ($item) {\n $ids = Category::all()->random(rand(1,Category::count()))->pluck\n ('id')->toArray();\n $item->categories()->attach($ids);\n\n });\n\n \n\n }", "title": "" }, { "docid": "08eaf2e19291f76c747104be264bb86e", "score": "0.7730943", "text": "public function run()\n {\n $this->seedCategories();\n $this->seedMovies();\n $this->seedActors();\n }", "title": "" }, { "docid": "ac98c07de7f448c43d8cd04f5b7cf375", "score": "0.7728929", "text": "public function run()\n {\n \n ///Eloquent::unguard();\n //$this->call('UsersTableSeeder'::Class);\n\n //user table seed\n DB::table('users')->delete();\n $users = array(\n array(\n\n 'name'=>'Admin User',\n 'password'=> Hash::make('admin1'),\n 'email'=>'test@mail.com',\n )\n );\n\n DB::table('users')->insert($users);\n\n //vehicle table seed\n DB::table('vehicle')->delete();\n $vehicle = array(\n array(\n\n 'name'=>'Admin User',\n 'contactnumber'=> 719977232,\n 'email'=>'test@mail.com',\n 'manufacture'=>'Volkswagon',\n 'type'=>'Polo',\n 'year'=>2010,\n 'colour'=>'White',\n 'mileage'=> 12000,\n 'created_at'=>date('Y-M-D h:m:s'),\n )\n );\n\n DB::table('vehicle')->insert($vehicle);\n }", "title": "" }, { "docid": "c1498193b69425fc2ad9300a42572dd3", "score": "0.7728553", "text": "public function run()\n {\n // removes previously created data\n \\App\\User::truncate();\n \\App\\Todo::truncate();\n\n // seeds the database\n factory(\\App\\User::class, 20)->create();\n factory(\\App\\Todo::class, 60)->create();\n }", "title": "" }, { "docid": "1db1d3897b4fa92b0187c48f545a59a1", "score": "0.77277166", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n $this->call(UsersSeeder::class);\n $this->call(CategoriasSeeder::class);\n $this->call(ArticulosSeeder::class);\n $this->call(ArticuloCategoriaSeeder::class);\n\n Articulo::factory()->count(55)->create();\n\n\n\n }", "title": "" }, { "docid": "857343b3f1f9be61d656bcb899727c9d", "score": "0.7726611", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory('App\\Blog',100)->create();\n factory('App\\client',50)->create();\n factory('App\\App_Services',10)->create();\n factory('App\\Msg',30)->create();\n }", "title": "" }, { "docid": "b13076b4062ba89b35a625f899bbb96f", "score": "0.772651", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n\n DB::table('products')->insert([\n 'name' => 'Iphone 8',\n 'price' => '22000',\n ]);\n\n DB::table('products')->insert([\n 'name' => 'Iphone 11',\n 'price' => '31000',\n ]);\n\n DB::table('products')->insert([\n 'name' => 'Iphone 11 pro',\n 'price' => '39000',\n ]);\n }", "title": "" }, { "docid": "51e41d2883ea3afa0a3f136436d8b297", "score": "0.7726129", "text": "public function run()\n {\n $user_ids = ['1'];\n $faker = app(Faker\\Generator::class);\n\n $articles = factory(Article::class)->times(50)->make()->each(function ($articles) use ($faker, $user_ids) {\n $articles->user_id = $faker->randomElement($user_ids);\n });\n Article::insert($articles->toArray());\n }", "title": "" }, { "docid": "33a330b6e5aa3b365ffb9df8e8361a48", "score": "0.7725176", "text": "public function run()\n {\n // \\App\\Models\\User::factory()->create();\n \\App\\Models\\Role::factory()->create();\n // \\App\\Models\\Profile::factory()->create();\n // \\App\\Models\\ContentSection::factory(3)->create();\n // \\App\\Models\\Language::factory(1)->create();\n\n $this->call([\n ContentSectionSeeder::class,\n ]);\n\n $this->call([\n LanguageSeeder::class,\n ]);\n }", "title": "" }, { "docid": "342d48d9c10a6f82d2ab72419a6764dd", "score": "0.77239937", "text": "public function run()\n {\n //\n //disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Role::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n Role::create([\n 'role_name' => 'admin',\n ]);\n Role::create([\n 'role_name' => 'etudiant',\n ]);\n Role::create([\n 'role_name' => 'enseignant',\n ]);\n }", "title": "" }, { "docid": "5089a000911f524c7758cc800589f1a0", "score": "0.77177197", "text": "public function run()\n {\n\n $this->call(LanguageSeeder::class);\n\n\n\n factory(App\\User::class)->create([\n 'name' => 'Eslam Fakhry',\n 'email' => 'esl@m.com',\n 'bio' => 'Full-stack web developer',\n ]);\n factory(App\\User::class, 20)->create();\n\n\n $this->call(BookSeeder::class);\n\n\n factory(App\\Review::class, 100)->create([\n 'reviewer_id' => function () {\n return \\App\\User::inRandomOrder()->first()->id;\n },\n 'book_id' => function () {\n return \\App\\Book::inRandomOrder()->first()->id;\n },\n 'language_id' => function () {\n return \\App\\Language::inRandomOrder()->first()->id;\n },\n ]);\n\n \\App\\User::find(1)->followings()->sync([2, 3, 4, 8, 10, 20, 8]);\n\n }", "title": "" }, { "docid": "6e1a2b00c8e9ea2d0430a94dd2dc07a6", "score": "0.77159035", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Deputy_Director::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker=Faker::create();\n $fakerS=Faker::create('es_ES');\n\n\n $genders = Gender::all()->pluck('id')->toArray();\n $document_types = Document_Type::all()->pluck('id')->toArray();\n\n\n for($i=0;$i<=19;$i++){\n\n $name= $faker->firstName.\" \".$faker->firstName;\n $lname= $faker->lastName;\n $var = explode(\" \", $name);\n $email= strtolower($var[0][0].$var[1][0].$lname).$faker->numberBetween($min=1,$max=20).\"@misena.edu.co\";\n\n Deputy_Director::create([\n 'document_type_id'=>$faker->randomElement($document_types),\n 'gender_id'=>$faker->randomElement($genders),\n 'deputy_director_names'=>$name,\n 'deputy_director_lastnames'=> $lname,\n 'document_number'=>$fakerS->unique()->dni,\n 'phone_number'=>$fakerS->mobileNumber,\n 'email'=>$email,\n 'digital_firm'=>'tmp/firms/'.bcrypt($faker->word).'.jpg',\n 'created_at'=>Carbon::now(),\n 'updated_at'=>Carbon::now()\n ]);\n }\n }", "title": "" }, { "docid": "86140c23beade708078da92aa5df55e1", "score": "0.7714966", "text": "public function run()\n {\n \\App\\Models\\User::create([\n 'name' => 'Admin',\n 'username' => 'admin',\n 'email' => 'admin@test.com',\n 'password' => bcrypt('12345678'),\n 'is_admin' => true\n ]);\n \n $user = \\App\\Models\\User::factory(10)->create();\n\n \\App\\Models\\Category::create([\n 'name' => 'Lifestyle',\n 'slug' => 'lifestyle'\n ]);\n\n \\App\\Models\\Category::create([\n 'name' => 'Home',\n 'slug' => 'home'\n ]);\n\n \\App\\Models\\Category::create([\n 'name' => 'World',\n 'slug' => 'world'\n ]);\n\n \\App\\Models\\Category::create([\n 'name' => 'Sports',\n 'slug' => 'sports'\n ]);\n\n Category::all()->each(function($category) use ($user){\n return \\App\\Models\\Post::factory(5)->create([\n 'user_id' => rand(1,9),\n 'category_id' => $category->id\n ])->each(fn($post) => \\App\\Models\\Comment::factory(3)->create(['post_id' => $post->id]));\n });\n\n \\App\\Models\\Category::factory(30)->create();\n }", "title": "" }, { "docid": "59f955bedb8a711f268867709f8dea81", "score": "0.7714579", "text": "public function run()\n {\n DB::table('users')->insert([\n 'email' => 'admin@company.com',\n 'name' => 'admin',\n 'email_verified_at' => '2020-1-1 23:59:59',\n 'password' => Hash::make('12345678'),\n 'role' => '2',\n 'phone'=> '0123456789',\n 'address' => \"Ha Noi\"\n ]);\n\n $this->call(CategorySeeder::class);\n $this->call(UserSeeder::class);\n $this->call(PostSeeder::class);\n $this->call(CommentSeeder::class);\n\n\n }", "title": "" }, { "docid": "c821d4627c62beb0b71b0abb66435065", "score": "0.77121747", "text": "public function run()\n {\n \t$this->seedPresencesTable();\n \t#$this->seedFamillesTable();\n \t#$this->seedReponsesTable();\n }", "title": "" }, { "docid": "7efff028f8bcd73672942f6e64f55cb8", "score": "0.7711514", "text": "public function run()\n {\n // Truncate existing records to start from scratch.\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Hotel::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $faker = \\Faker\\Factory::create();\n\n // Create Hotels in our database:\n for ($i = 0; $i < 3; $i++) {\n Hotel::create([\n 'name' => $faker->name,\n 'address' => $faker->text,\n 'city' => $faker->city,\n 'state' => $faker->state,\n 'country' => $faker->country,\n 'zipcode' => $faker->text,\n 'phonenumber' => $faker->PhoneNumber,\n 'email' => $faker->email,\n 'image' => $faker->Image,\n ]);\n }\n }", "title": "" }, { "docid": "153c1f8bdfd59fce12788f6d5d7d6c36", "score": "0.77101886", "text": "public function run()\n {\n $this->call([\n CategorySeeder::class,\n UserTableSeeder::class\n ]);\n PostFactory::factoryForModel(Post::class)->count(12)->create();\n ProjectFactory::factoryForModel(Project::class)->count(12)->create();\n // \\App\\Models\\User::factory(10)->create();\n }", "title": "" }, { "docid": "c3a88275c1c72240c6d83f192871cfe3", "score": "0.7710164", "text": "public function run()\n {\n //\n $faker = Faker\\Factory::create();\n\n //\n foreach (range(1,20) as $index) {\n DB::table('el_news')->insert([\n 'title' => $faker->sentence(),\n 'content' => $faker->paragraph(50),\n 'description' => $faker->paragraph(50),\n 'type' => 1,\n 'image' => '',\n 'views' => 1,\n 'status' => 1,\n 'category_id' => $faker->randomElement(\\Modules\\News\\Entities\\NewsCategory::pluck('id')->toArray()),\n 'created_by' => 2,\n 'updated_by' => 2,\n 'created_at' => date('Y-m-d H:I:s'),\n 'updated_at' => date('Y-m-d H:I:s'),\n ]);\n }\n }", "title": "" }, { "docid": "5281e1bc8fae384813e91026d075e658", "score": "0.77091146", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // for disable foreign key for some time\n\n User::truncate();\n Post::truncate();\n Comment::truncate();\n\n User::flushEventListeners();\n Post::flushEventListeners();\n Comment::flushEventListeners();\n\n factory(User::class,1000)->create();\n factory(Post::class,3000)->create();\n factory(Comment::class,5000)->create();\n }", "title": "" }, { "docid": "f8b16a91635feff9b0eed8613162a30c", "score": "0.77088976", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory('App\\Doctor')->create(['nip' => 'doc', 'password' => bcrypt('123456')]);\n factory('App\\Patient')->create(['nip' => 'pat', 'password' => bcrypt('123456')]);\n factory('App\\Staff')->create(['nip' => 'stf', 'password' => bcrypt('123456')]);\n }", "title": "" }, { "docid": "bb1ac66935520f1e65bc2c3e57ceeb96", "score": "0.77083236", "text": "public function run()\n {\n // Truncate tables\n Schema::disableForeignKeyConstraints();\n DB::table(\"categories\")->truncate();\n DB::table(\"comments\")->truncate();\n DB::table(\"images\")->truncate();\n DB::table(\"password_resets\")->truncate();\n DB::table(\"posts\")->truncate();\n DB::table(\"tags\")->truncate();\n DB::table(\"users\")->truncate();\n DB::table(\"videos\")->truncate();\n Schema::enableForeignKeyConstraints();\n\n // User with same address\n App\\User::factory()->create([\n 'email' => \"user@example.com\"\n ]);\n // Create random data\n App\\User::factory()->count(20)->create();\n App\\Modele\\Category::factory()->count(10)->create();\n App\\Modele\\Post::factory()->count(250)->create();\n App\\Modele\\Tag::factory()->count(50)->create();\n App\\Modele\\Image::factory()->count(200)->create();\n App\\Modele\\Video::factory()->count(50)->create();\n App\\Modele\\Comment::factory()->count(1500)->create();\n }", "title": "" }, { "docid": "317c20db1e0b5a1227665f31230ccfc2", "score": "0.770664", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Department::truncate();\n \n $faker = \\Faker\\Factory::create();\n $departments = [\n 'Sales',\n 'Customer care',\n 'ping pong training',\n 'management',\n 'package repair'\n ];\n\n for ($I1 = 0; $I1 < 100; $I1++){\n Department::create([\n 'name' => $departments[$I1 % 5],\n 'head' => $faker->name,\n 'location' => $fake->city\n ]);\n }\n\n \n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "53a3c8a23a49f26ca26290c5746850bc", "score": "0.7704476", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n //delete all data on each table on any call\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n DB::table('category_product')->truncate();\n\n //The quantities of factories to create\n $userQuantity = 200;\n $categoryQuantity = 30;\n $productQuantity = 1000;\n $transactionQuantity = 1000;\n\n //Use factory helper to create the data\n factory(User::class, $userQuantity)->create();\n factory(Category::class, $categoryQuantity)->create();\n factory(Product::class, $productQuantity)->create()->each(function($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n factory(Transaction::class, $transactionQuantity)->create();\n }", "title": "" }, { "docid": "f6f8b18092f343eec722788678235929", "score": "0.77022856", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n\n $this->call(UserSeeder::class);\n\n //Liga::factory()->has(Equipo::factory()->count(8))->create();\n\n Liga::factory()->has(Equipo::factory()->has(Jugador::factory()->count(12))->count(8))->create();\n Liga::factory()->has(Equipo::factory()->has(Jugador::factory()->count(12))->count(8))->create();\n\n }", "title": "" }, { "docid": "a922d59f300416d258d2970e78be71ed", "score": "0.77017814", "text": "public function run() {\n\t\t//Model::unguard();\n\n\t\t// $this->call('UserTableSeeder');\n DB::table('articles')->delete();\n \n $articles = array(\n ['titulo' => 'Project 1', 'conteudo' => 'project-1', 'autor' => 'Leonardo', 'created_at' => new DateTime, 'updated_at' => new DateTime],\n ['titulo' => 'Project 2', 'conteudo' => 'project-2', 'autor' => 'Fernanda', 'created_at' => new DateTime, 'updated_at' => new DateTime],\n ['titulo' => 'Project 3', 'conteudo' => 'project-3', 'autor' => 'Leonardo', 'created_at' => new DateTime, 'updated_at' => new DateTime],\n );\n\n // Uncomment the below to run the seeder\n DB::table('articles')->insert($articles);\n\t}", "title": "" }, { "docid": "c4ea649d992a2f46320661ff70d8946c", "score": "0.77015346", "text": "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(SpecialsTableSeeder::class);\n //MedicalCard::factory(10)->create();\n $user = User::factory(1)->create()->each(function ($user){\n Member::factory()->create([\n 'user_id'=>$user->id,\n 'id_card'=>null,\n 'id_spec'=>null,\n ]);\n });\n foreach ($user as $userWithoutRole){\n $userWithoutRole->assignRole('admin');\n }\n //Member::factory(10)->create();\n //Meet::factory(10)->create();\n //Recipe::factory(10)->create();\n //Appointment::factory(10)->create();\n //Time::factory(10)->create();\n }", "title": "" }, { "docid": "a32483a969494071a38b045c323d0f50", "score": "0.77011496", "text": "public function run()\n {\n\n\t\tif(env('DB_DRIVER')=='mysql')\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');\t\n\n\t\t\tDB::table('questions')->truncate();\n\n $faker = Faker::create();\n \t$cours = Db::table('cours')->lists('id') ;\n\n \tforeach (range(1,100) as $key => $value ) {\n \t\tQuestion::create([\n \t\t'title'=>$faker->sentence(3),\n \t\t'body'=>$faker->paragraph(1),\n \t\t'cour_id'=>$faker->randomElement($cours) ,\n \t\t//'type'=>$faker->randomElement(['one'=>'one' , 'multiple'=>'multiple']) ,\n 'type'=>$faker->randomElement(['multiple'=>'multiple']) ,\n \t\t'score'=>$faker->numberBetween( 0, 100) ,\n 'pass'=>$faker->paragraph(1),\n 'fail'=>$faker->paragraph(1),\n 'partial'=>$faker->paragraph(1),\n\t ]);\n \t}\n\n \tif(env('DB_DRIVER')=='mysql')\n\t\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=1;') ;\n }", "title": "" }, { "docid": "1931281363962728676ce211cdbc898c", "score": "0.77004915", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(20)->create();\n // \\App\\Models\\Product::factory(100)->create();\n \\App\\Models\\Slider::factory(30)->create();\n // $this->call(ProductCategorySeeder::class);\n // $this->call(SizeSeeder::class);\n // $this->call(ProductSizeSeeder::class);\n // $this->call(ShippingMethodSeeder::class);\n // $this->call(RegionSeeder::class);\n\n }", "title": "" }, { "docid": "869b86c9673e17509719354cadb4e6ee", "score": "0.76994365", "text": "public function run()\n {\n factory(User::class, 10)->create()->each(function($user) {\n $user->articles()->saveMany(factory(Article::class, rand(1,6))->make());\n });\n factory(Category::class, 5)->create();\n\n// $this->call(UsersTableSeeder::class);\n// $this->call([\n// UserTableSeeder::class,\n// ArticlesTableSeeder::class,\n// ]);\n }", "title": "" }, { "docid": "ac903ce5d99a599c602b0990b0103290", "score": "0.7698475", "text": "public function run()\n {\n // Uncomment the below to wipe the table clean before populating\n DB::table('groups')->delete();\n\n $projects = array(\n ['id'=> 1, 'name' => \"txtcmdr\"],\n ['id'=> 2, 'name' => \"duterte\"],\n ['id'=> 3, 'name' => \"baligod\"],\n ['id'=> 4, 'name' => \"marcos\"]\n );\n\n // Uncomment the below to run the seeder\n DB::table('projects')->insert($projects);\n }", "title": "" }, { "docid": "b9a88949d87e4830da37107328024747", "score": "0.76979405", "text": "public function run()\n {\n $this->seedSettings();\n $this->seedUsers();\n }", "title": "" }, { "docid": "87a0832df706dd20db820b1e2fab0c9c", "score": "0.7697926", "text": "public function run()\n {\n DB::table('users')->insert([\n \t'id' => '1',\n 'name' => 'Super Admin',\n 'email' => 'super_admin@example.com',\n 'role' => '1',\n 'password' => bcrypt('superadmin')\n ]);\n\n DB::table('users')->insert([\n \t'id' => '2',\n 'name' => 'Admin',\n 'email' => 'admin@example.com',\n 'role' => '2',\n 'password' => bcrypt('admin123')\n ]);\n\n DB::table('users')->insert([\n \t'id' => '3',\n 'name' => 'Teacher',\n 'email' => 'teacher@example.com',\n 'role' => '3',\n 'password' => bcrypt('teacher123')\n ]);\n\n DB::table('users')->insert([\n \t'id' => '4',\n 'name' => 'Student',\n 'email' => 'student@example.com',\n 'role' => '4',\n 'password' => bcrypt('student123')\n ]);\n\n $faker = Faker::create();\n \n \tforeach(range(5,20) as $i){\n \n \t DB::table('users')->insert([\n 'id' => $i,\n \t\t\t'name' => $faker->name,\n \t\t\t'email' => $faker->email,\n \t\t\t'role' => $faker->numberBetween(1,4),\n 'password' => bcrypt('password'),\n \t\t]);\n \n \t}\n }", "title": "" }, { "docid": "aa53f1c5fb430766e7a98e469ae64e55", "score": "0.769578", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n /*DB::table('ambitos')->insert([\n 'name' => Str::random(10),\n 'email' => Str::random(10).'@gmail.com',\n 'password' => bcrypt('secret'),\n ]);*/\n\n DB::table('ambitos')->insert(\n [\n 'nombreAmbito' => 'Laboratorios',\n ]\n );\n DB::table('ambitos')->insert(\n [\n 'nombreAmbito' => 'Inspección',\n ]\n );\n DB::table('ambitos')->insert(\n [\n 'nombreAmbito' => 'Certificación',\n ]\n );\n }", "title": "" }, { "docid": "dfd6d8c639638a96be0cadeef15562d9", "score": "0.76953965", "text": "public function run()\n {\n\n // factory(App\\User::class, 3)->create()->each(function($u) {\n // $u->questions()\n // ->saveMany(\n // factory(App\\Models\\Question::class, rand(1, 5))->make()\n // )->each(function ($q){\n // $q->answers()->saveMany(\n // factory(App\\Models\\Answer::class,rand(1,5))->make()\n // );\n // });\n // });\n // $this->call(UsersTableSeeder::class);\n //factory(App\\User::class,5)->create();\n //factory(Question::class,30)->create();\n // factory(App\\User::class,3)->create()->each(function($user){\n // $user->questions()\n // ->saveMany(\n // factory(Question::class)->make()\n // );\n // });\n // factory(App\\Models\\Question::class,20)->create();\n // $this->call([\n // UsersQuestionsAnswersTableSeeder::class,\n // FavoritesTableSeeder::class,\n // VotablesTableSeeder::class\n // ]);\n }", "title": "" }, { "docid": "27c99873266cde824f7337394289d5ba", "score": "0.7694441", "text": "public function run()\n {\n factory(Users::class, 1)->create(['name' => 'Maria', 'email' => 'maria@gmail.com']);\n\n factory(Users::class, 6)->create();\n\n //Fazendo seeds ao modo antigo\n /*$dados = [\n [\n 'id' => '1', \n 'name' => 'Maria',\n 'email' => 'maria@gmail.com',\n 'password' => bcrypt('123456789'),\n 'user_name' => 'Mariajog',\n 'language_id' => '1',\n 'user_type' => 'internal',\n 'entity_id' => NULL\n ],\n [\n 'id' => '2', \n 'name' => 'Jose',\n 'email' => 'jose@gmail.com',\n 'password' => bcrypt('123456789'),\n 'user_name' => 'Jose',\n 'language_id' => '1',\n 'user_type' => 'internal',\n 'entity_id' => NULL\n ]\n ];\n\n foreach ($dados as $value) {\n Users::create($value);\n }*/\n }", "title": "" }, { "docid": "50bfbb81e7f0b2cada39621bf4b75676", "score": "0.7692319", "text": "public function run()\n {\n // faker基本使用\n /*$faker = Faker\\Factory::create();\n $data = [];\n for ($i=1;$i<10;$i++) {\n $data[] = [\n 'title'=>$faker->name,\n 'desc'=>$faker->sentence\n ];\n }\n DB::table('articles')->insert($data);*/\n\n //使用faker数据工厂模拟数据\n factory(\\App\\Models\\ArticleModel::class, 20)->create();\n }", "title": "" }, { "docid": "44a48d15b3281fa6fbc422f22f3822ad", "score": "0.7691214", "text": "public function run()\n {\n $this->call([\n UsersTableSeeder::class,\n Users_ProfileTableSeeder::class,\n BlogSeeder::class,\n BookStoreSeeder::class,\n CategoryTableSeeder::class,\n AdvertisementSeeder::class,\n InterestTableSeeder::class,\n RelationshipTableSeeder::class,\n SkillTableSeeder::class,\n SubjectTableSeeder::class,\n UserMediaSeeder::class,\n\n\n\n ]);\n\n // User::factory(50)->create();\n // Advertisement::factory(100)->create();\n // UserMedia::factory(100)->create();\n // Book_Store::factory(100)->create();\n // Blog::factory(100)->create();\n\n\n }", "title": "" }, { "docid": "e4eee217bbf7d32481fc105c3b5751a3", "score": "0.76893795", "text": "public function run()\n {\n Eloquent::unguard();\n\n $faker = Faker\\Factory::create();\n\n foreach (range(1,10) as $key => $index) {\n PostCategory::create([\n 'category_id' => $faker->numberBetween($min = 1, $max = 5),\n 'post_id' => $faker->numberBetween($min = 1, $max = 5),\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(), \n ]);\n }\n }", "title": "" }, { "docid": "fcb394d31b8bc02eaf3d748869eb0952", "score": "0.7688843", "text": "public function run()\n {\n\n $this->call([\n PermissionSeeder::class,\n RatingSeeder::class\n ]);\n Post::query()->delete();\n User::query()->delete();\n User::factory(1)\n ->create()\n ->each(function ($user) {\n $user->assignRole('admin');\n });\n User::factory(1)\n ->create()\n ->each(function ($user) {\n $user->assignRole('moderator');\n });\n User::factory(3)\n ->create()\n ->each(function ($user) {\n $user->assignRole('author');\n });\n User::factory(10)\n ->create()\n ->each(function ($user) {\n $user->assignRole('reader');\n });\n Post::factory(30)->create();\n }", "title": "" }, { "docid": "c1cba4ba964267e60436752e1daf7256", "score": "0.7688797", "text": "public function run(): void\n {\n factory(App\\Models\\Book::class, 5)->create([\n 'country_code' => 'DE',\n 'language_code' => 'de',\n 'author_id' => random_int(1, 5),\n ]);\n factory(App\\Models\\Book::class, 5)->create([\n 'country_code' => 'US',\n 'language_code' => 'en',\n 'author_id' => random_int(6, 10),\n ]);\n factory(App\\Models\\Book::class, 5)->create([\n 'country_code' => 'FR',\n 'language_code' => 'fr',\n 'author_id' => random_int(11, 15),\n ]);\n factory(App\\Models\\Book::class, 5)->create([\n 'country_code' => 'CH',\n 'language_code' => 'de',\n 'author_id' => random_int(16, 20),\n ]);\n factory(App\\Models\\Book::class, 5)->create([\n 'country_code' => 'CH',\n 'language_code' => 'fr',\n 'author_id' => random_int(11, 20),\n ]);\n }", "title": "" }, { "docid": "4a0c4ba7e38375d8b1a0bdcf318313bd", "score": "0.76850325", "text": "public function run()\n {\n $faker = Faker\\Factory::create('ja_JP');\n DB::table('review')->truncate();\n\n $data = [];\n\n foreach (range(1,10) as $value){\n $data[] = [\n 'id'=>$value,\n \"code_id\"=>$value,\n \"user_id\"=>1,\n \"company_id\"=>1\n ];\n\n }\n\n DB::table('review')->insert($data);\n }", "title": "" }, { "docid": "7d0e99ebf59b9e7e65637b3d9c38bddb", "score": "0.76849854", "text": "public function run()\n {\n User::create([\n 'name' => 'Admin',\n 'email' => 'admin@admin.com',\n 'password' => Hash::make('password'),\n ]);\n\n factory(MenuGroup::class, 5)->create()->each(function ($group) {\n $group->items()->createMany(factory(MenuItem::class, 2)->make()->toArray());\n });\n\n factory(MenuItem::class, 5)->create();\n\n $this->call(PostsTableSeeder::class);\n }", "title": "" }, { "docid": "de8bed7f0641273ac93ceebe6aee2ba9", "score": "0.7684196", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\t\tDB::table('users')->delete();\n\n\t\t$faker = \\Faker\\Factory::create('es_AR');\n\n\t\tforeach(range(0, 10) as $index)\n\t\t{\n\t\t\tUser::create([\n\t\t\t\t'nombres' => $faker->firstName,\n\t\t\t\t'apellidos' => $faker->lastName,\n\t\t\t\t'direccion' => $faker->address,\n\t\t\t\t'telefono' => $faker->phoneNumber,\n\t\t\t\t'celular' => $faker->phoneNumber,\n\t\t\t\t'email' => $faker->email,\n\t\t\t\t'password' => 12345,\n\t\t\t]);\n\n\t\t\tProduct::create([\n\t\t\t\t'codigo' => $faker->uuid,\n\t\t\t\t'marca' => $faker->company,\n\t\t\t\t'modelo' => $faker->md5,\n\t\t\t\t'cantidad' => $faker->numberBetween(1, 100),\n\t\t\t]);\n\t\t}\n\n\t\tRole::create([\n\t\t\t'name' => 'Administrator',\n\t\t\t'detail' => 'Administrador de la tienda'\n\t\t]);\n\t\tRole::create([\n\t\t\t'name' => 'Seller',\n\t\t\t'detail' => 'Vendedor de la tienda'\n\t\t]);\n\t\tRole::create([\n\t\t\t'name' => 'Client',\n\t\t\t'detail' => 'Cliente de la tienda'\n\t\t]);\n\t}", "title": "" }, { "docid": "6cefa488bb7f414dd43c39041af00a3b", "score": "0.76809907", "text": "public function run()\n {\n //How to create multiple data for a table\n // $this->call(UsersTableSeeder::class);\n // DB::table('names')->insert(\n // [\n // 'name'=>str_random(10),\n // 'email'=>str_random(10).'@gmail.com',\n // 'password'=>bcrypt('secret'),\n // ]\n // );\n\n factory(App\\User::class,50)->create();\n $this->call(TestSeeder::class);\n\n //we can call multiple seeders here\n\n //to seed only a single seeder use\n //php artisan db:seed --class=TestSeeder\n }", "title": "" }, { "docid": "44ec12a31cf67e6e0e55dc0fd46fa7fd", "score": "0.76787496", "text": "public function run()\n\t{\n\t\t$faker = $this->getFaker();\n\t\t$users = NULL;\n\n\n\t\t// Uncomment the below to wipe the table clean before populating\n\t\tDB::table('users')->truncate();\n\n\n\t\t// Default user\n\t\t$users[] = array('username' => 'admin', 'email' => 'admin@example.com', 'password' => Hash::make('1234'), 'status' => 'Active');\n\n\t\t// Random users\n\t\tfor($i=0; $i<5; $i++)\n\t\t{\n\t\t\t$users[] = array('username' => strtolower($faker->firstname) ,\n\t\t\t\t 'email' => $faker->email,\n\t\t\t\t 'password' => Hash::make('1234'),\n\t\t\t\t 'status' => 'Active');\n\t\t}\n\n\t\t// Uncomment the below to run the seeder\n\t\tDB::table('users')->insert($users);\n\t}", "title": "" } ]
1046c6c1785dfd228fc685ba248c2f10
Update an existing push notification subscription with the supplied id. The configured URL has to support https scheme.
[ { "docid": "d6794c4135cfd3e9ef03858fe976bc4d", "score": "0.0", "text": "public function putPushNotificationSubscription(string $subscriptionId, Model\\UpdateSubscriptionRequest $updateSubscriptionRequest): Model\\ProcessStatus\n {\n $url = \"retailer/subscriptions/${subscriptionId}\";\n $options = [\n 'body' => $updateSubscriptionRequest,\n 'produces' => 'application/vnd.retailer.v9+json',\n 'consumes' => 'application/vnd.retailer.v9+json',\n ];\n $responseTypes = [\n '202' => Model\\ProcessStatus::class,\n ];\n\n return $this->request('PUT', $url, $options, $responseTypes);\n }", "title": "" } ]
[ { "docid": "a4683e5fc4b32784fda9f85e81c1253f", "score": "0.6745208", "text": "public function update_subscription( $subscription_id ){\r\n\t\t$subscription_id = intval( $subscription_id );\r\n\t\t\r\n\t}", "title": "" }, { "docid": "08be6c612ad2a5b653c95ed7789fcd02", "score": "0.6387183", "text": "public function update($id, UpdateSubscriptionRequest $request)\n {\n $subscription = $this->subscriptionRepository->findWithoutFail($id);\n\n if (empty($subscription)) {\n Flash::error('Subscription not found');\n\n return redirect(route('subscriptions.index'));\n }\n\n $subscription = $this->subscriptionRepository->update($request->all(), $id);\n\n if ($request->get('subscribable_type') === SubscriptionLevel::class) {\n $role = SubscriptionLevel::findOrFail($request->get('subscribable_id'));\n $subscription->assignRole($role);\n }\n\n Flash::success('Subscription updated successfully.');\n\n return redirect(route('subscriptions.index', ['team_id' => $subscription->team_id]));\n }", "title": "" }, { "docid": "01b158a5125de91c7bf8bf02214bd576", "score": "0.6248153", "text": "public function update(SubscriptionPackageUpdateRequest $request, $id)\n {\n $requestData = $request->all();\n try{\n\n $subscription_package = SubscriptionPackage::findOrFail($id);\n\n $subscription_package->update($requestData);\n\n }\n catch(\\Exception $e){\n Log::error($e->getMessage());abort(500,$e->getMessage());\n }\n\n return back()->with('flash_message', 'SubscriptionPackage updated!');\n }", "title": "" }, { "docid": "9543c806289a0ee94426ddf3c5fdcda7", "score": "0.62413234", "text": "public function update(Request $request, $id)\n {\n \n\t\t\t$subscribe = Subscribe::find($id);\n $subscribe->title = $request->input('title');\n\t\t\t$subscribe->description = $request->input('description');\n\t\t\t$subscribe->subscribe_type = $request->input('subscribe_type');\n\t\t\t$subscribe->subscribe_price = $request->input('subscribe_price');\n\t\t\t$subscribe->status = '1'; \n $subscribe->user_created = $request->input('user_created');\n $subscribe->user_updated = $request->input('user_updated');\t\n $subscribe->save();\n\t\t\t$request->session()->flash('alert-success', 'Subscribe was successfully Updated!');\n\t\t\treturn redirect('subscribes');\n \n }", "title": "" }, { "docid": "993653914ce0029d0f4e214bd5996b72", "score": "0.6233726", "text": "public function update($id, UpdateSubsEmailRequest $request)\n {\n $subsEmail = $this->subsEmailRepository->find($id);\n\n if (empty($subsEmail)) {\n Flash::error('Subs Email not found');\n\n return redirect(route('subsEmails.index'));\n }\n\n $input = $request->all();\n if ($request->hasFile('image')) {\n $path = $request->file('image')->store('public/subs_emails');\n $publicPath = \\Storage::url( $path );\n $input['image'] = $publicPath;\n }\n\n $subsEmail = $this->subsEmailRepository->update($input, $id);\n\n Flash::success('Subs Email updated successfully.');\n\n return redirect(route('subsEmails.index'));\n }", "title": "" }, { "docid": "5ae3c096d865f53f2c3c4f9297fa9f41", "score": "0.62027043", "text": "public function setSubscriptionId(string $id): self\n {\n return $this->setData('subscription_id', $id);\n }", "title": "" }, { "docid": "eaa114a9cf98d0d27d52eeb004149825", "score": "0.6082504", "text": "public function updateSubscription($subscriptionId) {\n\n if(!$subscriptionId)\n trigger_error('Parameter is required', E_ERROR);\n\n $this->subscriptionId = $subscriptionId;\n $this->buildRequest('Update');\n }", "title": "" }, { "docid": "d7f09155f60f3fbeeda3822127ec71e1", "score": "0.60475636", "text": "public function update(Request $request, $id)\n {\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, config(\"app.asaas_url\").\"subscriptions/$id\");\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($ch, CURLOPT_HEADER, FALSE);\n curl_setopt($ch, CURLOPT_POST, TRUE);\n curl_setopt($ch, CURLOPT_POSTFIELDS, '{\n \"billingType\": \"'.$request->billingType.'\",\n \"nextDueDate\": \"'.$request->nextDueDate.'\",\n \"value\": '.$request->value.',\n \"cycle\": \"'.$request->cycle.'\",\n \"description\": \"'.$request->description.'\",\n \"updatePendingPayments\": '.$request->updatePendingPayments.',\n \"discount\": {\n \"value\": '.$request->discount->value.',\n \"dueDateLimitDays\": '.$request->discount->dueDateLimitDays.'\n },\n \"fine\": {\n \"value\": '.$request->fine->value.'\n },\n \"interest\": {\n \"value\": '.$request->interest->value.'\n }\n }');\n curl_setopt($ch, CURLOPT_HTTPHEADER, array(\n \"Content-Type: application/json\",\n \"access_token: \".config(\"app.asaas_key\")\n ));\n $response = curl_exec($ch);\n curl_close($ch);\n return response()->json($response);\n }", "title": "" }, { "docid": "23ffb3453d03115d77b24d3a0bacab02", "score": "0.6014172", "text": "public function update(Request $request, $id)\r\n {\r\n if (!auth()->user()->can('superadmin')) {\r\n abort(403, 'Unauthorized action.');\r\n }\r\n\r\n if (request()->ajax()) {\r\n try {\r\n $subscriptions = Subscription::findOrFail($id);\r\n $business_id = $subscriptions->business_id;\r\n $input = $request->only(['status', 'payment_transaction_id']);\r\n\r\n\r\n if ($subscriptions->status == 'waiting' && $subscriptions->paid_via == 'offline' && empty($subscriptions->start_date && $input['status'] == 'approved')) {\r\n $dates = $this->_get_package_dates($business_id, $subscriptions->package);\r\n $subscriptions->start_date = $dates['start'];\r\n $subscriptions->end_date = $dates['end'];\r\n $subscriptions->trial_end_date = $dates['trial'];\r\n }\r\n\r\n $subscriptions->status = $input['status'];\r\n $subscriptions->payment_transaction_id = $input['payment_transaction_id'];\r\n $subscriptions->save();\r\n\r\n $output = array(\r\n 'success' => true,\r\n 'msg' => __(\"superadmin::lang.subcription_updated_success\")\r\n );\r\n } catch (\\Exception $e) {\r\n \\Log::emergency(\"File:\" . $e->getFile() . \"Line:\" . $e->getLine() . \"Message:\" . $e->getMessage());\r\n\r\n $output = array(\r\n 'success' => false,\r\n 'msg' => __(\"messages.something_went_wrong\")\r\n );\r\n }\r\n return $output;\r\n }\r\n }", "title": "" }, { "docid": "24ba67263b7ad4306ec407dd6a9f0255", "score": "0.59700006", "text": "public function update($id)\n {\n $input = (array)json_decode(file_get_contents('php://input'), true);\n $input = $this->secureJson($input);\n\n $validateCreateSubscriber = $this->validateJsonInput($input, $this->updateRequiredFields);\n\n if ($validateCreateSubscriber['success']) {\n $input['changed_date'] = date('Y-m-d H:i:s');\n $created = $this->subscribers->update($input, $id);\n\n if ($created) {\n $response['status_code_header'] = http_response_code(202);\n $response['body'] = json_encode($this->response($created, \"successfully updated\", 204));\n } else {\n $response['status_code_header'] = http_response_code(400);\n $response['body'] = json_encode($this->response(false, \"incorrect field name\", 400));\n }\n } else {\n $response['status_code_header'] = http_response_code(400);\n $response['body'] = json_encode(\n $this->response($validateCreateSubscriber['success'], $validateCreateSubscriber['message'], 400)\n );\n }\n\n return $response;\n }", "title": "" }, { "docid": "e48a558833e164efd51222942d05631b", "score": "0.58995026", "text": "public function updateSubscription(){\n\t\t$subscriptionsArray = array(\n\t\t\t\t\t'post_type' => 'auth-subscriptions',\n\t\t\t\t\t'author' => $this->x_cust_id,\n\t\t\t\t\t'meta_query' => array(\n\t\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t\t'key' => 'subscriptionID',\n\t\t\t\t\t\t\t\t\t\t\t'value' => $this->x_subscription_id,\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);\n\t\t\t\t\t\t\n\t\t$subscription = get_posts($subscriptionsArray);\n\t\tif (!empty($subscription)){\t\n\t\t\t$this->subscriptionPostID = $subscription[0]->ID;\t\t\n\t\t\tif ($this->subscriptionPostID != ''){\n\t\t\t\t//update subscription post meta to match new data\n\t\t\t\t$this->updateSubscriptionMeta();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "945ffc24cc472a824214d7300d5ca804", "score": "0.5893165", "text": "public function update(Request $request, $id)\n\t{\n\n\t\t\t// dd($request->all());\n\t\t\t$input = $request->all();\n\t\t\t$rules = [\n\t\t\t\t// 'name' => 'unique:subcategories|required|max:255',\n\t\t\t\t// 'display_name' => 'max:255',\n\t\t\t\t'image_path' => 'max:800'\n\t\t\t];\n\t\t\t$validator = Validator::make($input, $rules);\n\t\t\tif ($validator->fails()) {\n\t\t\t\treturn redirect()->back()\n\t\t\t\t->withErrors($validator)\n\t\t\t\t->withInput();\n\t\t\t} else {\n\t\t\t\t$b = SubscriptionType::find($id);\n\t\t\t\t$b->update($request->all());\n\t\t\t\t$b->save();\n\t\t\t\treturn redirect()->route('subscription_types.index');\n\t\t\t}\n\t}", "title": "" }, { "docid": "b01a3497f86caa58ecf472655794d1dc", "score": "0.58612055", "text": "public function update(NotificationUpdateRequest $request, $id)\n {\n\n }", "title": "" }, { "docid": "a7e466d54e53bfecbc8138e8de869a61", "score": "0.58584833", "text": "function subscribeById ( $id )\n {\n try\n {\n $result = $this->apiCall('post',\"{$this->api['cms_manager_url']}/resources/subscriptions/{$id}\",array(),'json');\n return $this->createResponse($result,'Subscribe','Id');\n } catch ( Exception $e ) {\n return $this->createResponse($e,'API Call');\n }\n }", "title": "" }, { "docid": "ced73981225bac9df12286e47b1b82ec", "score": "0.58369315", "text": "public function updateSubscription($user_id, $data) {\n if ($data['subscribe'] != '')\n $data['subscribe'] = 1;\n\n if ($data['html'] != '')\n $data['html'] = 1;\n\n if ($data['css'] != '')\n $data['css'] = 1;\n\n if ($data['wordpress'] != '')\n $data['wordpress'] = 1;\n\n try {\n $n = $this->db->update(TBL_USER, $data, \"user_id = $user_id\");\n return true;\n } catch (Exception $e) {\n $dbLoggerObj = new DbLogger($e);\n $this->logger->log($dbLoggerObj->message, Zend_Log::ERR);\n\n return false;\n }\n }", "title": "" }, { "docid": "7dbf8226cdd4eca63407bb9a5a69c444", "score": "0.581281", "text": "public function updateSubscription($data){\n\t\ttry {\n\t\t\t$subscriptionId = $data['subscriptionId'];\n\t\t\t$newPlanData \t= explode(':', $data['plan']);//[0=>PlanID, 1=>PlanPrice]\t\t\n\t\t\t$newPlanId\t\t= $newPlanData[0];\n\t\t\t$newPlanPrice\t= $newPlanData[1];\n\n\t\t\t//Prepare data to update subscription\n\t\t\t$subscription \t= $this->prepareDataToSubscription($subscriptionId, $newPlanPrice);\n\t \t\n\t \t\t$result = $this->gateway->subscription()->update($subscriptionId, $this->createAddOnOrDiscount($subscription, $newPlanId));\n\t \t\tif($result->success){\n\t \t\t\treturn $result;\n\t \t\t}\n\t \t\treturn $result->message;\n \t\t} catch (\\Exception $ex) { \n\t return $ex->getMessage();\n\t }\n\t}", "title": "" }, { "docid": "e91cd43e784d58748f868e8570ae6c8b", "score": "0.57878", "text": "public function update($subscription){\n if(!isset($this->_id) || null == $this->_id){\n throw new \\Exception(\"You must especify an Id to perform subscription updates\");\n }\n if($subscription instanceof SubscriptionFactory){\n $context = new ContextFactory((array) $subscription->get());\n }elseif(is_array($subscription) || is_object($subscription)){\n $context = new ContextFactory((array)$subscription);\n }\n return $this->_orion->patch($this->getBaseURI(), $context);\n }", "title": "" }, { "docid": "8b85aafab05f4194f251e3aa6e4b3375", "score": "0.5748535", "text": "public function update($id)\n {\n $this->validate(request(), [\n 'code' => [\n 'required',\n 'unique:saas_subscription_plans,code,' . $id,\n new \\Webkul\\Core\\Contracts\\Validations\\Code,\n ],\n 'name' => 'required',\n 'monthly_amount' => 'required|numeric|min:0',\n 'yearly_amount' => 'required|numeric|min:0',\n 'allowed_products' => 'required|integer|min:0',\n 'allowed_categories' => 'required|integer|min:0',\n 'allowed_attributes' => 'required|integer|min:0',\n 'allowed_attribute_families' => 'required|integer|min:0',\n 'allowed_channels' => 'required|integer|min:0',\n 'allowed_orders' => 'required|integer|min:0',\n ]);\n\n Event::dispatch('super.subscription.plan.update.before', $id);\n\n $plan = $this->planRepository->update(request()->all(), $id);\n\n Event::dispatch('super.subscription.plan.update.after', $plan);\n\n session()->flash('success', trans('saassubscription::app.super-user.plans.update-success'));\n\n return redirect()->route($this->_config['redirect']);\n }", "title": "" }, { "docid": "cd1974a062ff2deb9f0beb00a4e2087e", "score": "0.5715044", "text": "public function update($id)\n\t{\n\t\t// not supported\n\t}", "title": "" }, { "docid": "9f6680042606b4eadecf9418d90b913c", "score": "0.5693784", "text": "public function update($id)\n {\n $locale = core()->getRequestedLocaleCode();\n\n $data = $this->validate(request(), [\n /* general */\n 'code' => ['required', 'unique:channels,code,' . $id, new \\Webkul\\Core\\Contracts\\Validations\\Code],\n $locale . '.name' => 'required',\n $locale . '.description' => 'nullable',\n 'inventory_sources' => 'required|array|min:1',\n 'root_category_id' => 'required',\n 'hostname' => 'unique:channels,hostname,' . $id,\n\n /* currencies and locales */\n 'locales' => 'required|array|min:1',\n 'default_locale_id' => 'required|in_array:locales.*',\n 'currencies' => 'required|array|min:1',\n 'base_currency_id' => 'required|in_array:currencies.*',\n\n /* design */\n 'theme' => 'nullable',\n $locale . '.home_page_content' => 'nullable',\n $locale . '.footer_content' => 'nullable',\n 'logo.*' => 'nullable|mimes:bmp,jpeg,jpg,png,webp',\n 'favicon.*' => 'nullable|mimes:bmp,jpeg,jpg,png,webp',\n\n /* seo */\n $locale . '.seo_title' => 'nullable',\n $locale . '.seo_description' => 'nullable',\n $locale . '.seo_keywords' => 'nullable',\n\n /* maintenance mode */\n 'is_maintenance_on' => 'boolean',\n $locale . '.maintenance_mode_text' => 'nullable',\n 'allowed_ips' => 'nullable',\n ]);\n\n $data = $this->setSEOContent($data, $locale);\n\n Event::dispatch('core.channel.update.before', $id);\n\n $channel = $this->channelRepository->update($data, $id);\n\n Event::dispatch('core.channel.update.after', $channel);\n\n if ($channel->base_currency->code !== session()->get('currency')) {\n session()->put('currency', $channel->base_currency->code);\n }\n\n session()->flash('success', trans('admin::app.settings.channels.update-success'));\n\n return redirect()->route($this->_config['redirect']);\n }", "title": "" }, { "docid": "ed4622ce8533fff5262d936f47982c12", "score": "0.5686227", "text": "public function update(Request $request, $id)\n {\n\n\n $this->validate($request, [\n 'email' => 'required',\n ]);\n\n $newsletter = Newsletter::find($id);\n $newsletter->email = $request->email;\n\n $newsletter->save();\n $request->session()->flash('alert-success', __('admin.alerts_success_editing'));\n return back();\n }", "title": "" }, { "docid": "065df7830e5e5fd862ff9bcced8a4215", "score": "0.5680563", "text": "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'description' => 'required|string|max:200',\n 'path' => 'required',\n 'date' => 'required',\n ]);\n\n if ($request->wantsJson() && !$validator->fails()) {\n\n $newsletter = Newsletter::findOrFail($id);\n\n $newsletter->description = $request->get('description');\n $newsletter->path = $request->get('path');\n $newsletter->date = $request->get('date');\n $newsletter->update();\n\n return response()->json(['msg' => 'Newsletter editada com sucesso.']);\n } else {\n return response()->json(['errorCode' => -1, 'msg' => $validator->errors()], 400);\n }\n }", "title": "" }, { "docid": "ab10cc5e2aec494b6d7dfe50a6bb0276", "score": "0.56493986", "text": "public function update($id)\n {\n //\n return Response::json(array(\n 'error' => true,\n 'message' => 'service not available'\n ),\n 404\n );\n }", "title": "" }, { "docid": "769382d8a68e10b4aa7aeecdff8911e4", "score": "0.56226605", "text": "public static function updateSubscriptionPeriod($id, $data)\n {\n $dom = new DomDocument();\n\n $subscriptionPeriod = $dom->createElementNS('http://schema.yudu.com', \"subscriptionPeriod\");\n\n $subscriptionPeriod->setAttribute(\"id\", $id);\n\n $dom->appendChild($subscriptionPeriod);\n\n foreach($data as $key => $value)\n {\n $element = $dom->createElement($key);\n $element->appendChild($dom->createTextNode($value));\n $subscriptionPeriod->appendChild($element);\n }\n\n return $dom->saveXML();\n }", "title": "" }, { "docid": "f040e4b22ad092b4a65d497b2743dfdb", "score": "0.56211376", "text": "public function update($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "f040e4b22ad092b4a65d497b2743dfdb", "score": "0.56211376", "text": "public function update($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "f040e4b22ad092b4a65d497b2743dfdb", "score": "0.56211376", "text": "public function update($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "4bb8a88fa0a7bdab0ab4a2df941c4b4a", "score": "0.56209874", "text": "public function update($id) {\n try {\n $this->emailTemplate->update($id, Input::all());\n Notification::success( trans('app.data_updated') );\n return langRedirectRoute('admin.settings.email-template.index');\n } catch (ValidationException $e) {\n return langRedirectRoute('admin.settings.email-template.edit', [ 'id' => $id ] )->withInput()->withErrors($e->getErrors());\n }\n }", "title": "" }, { "docid": "ccef50dfda2ba18722184506169aa750", "score": "0.55948395", "text": "public function update(Request $request, $id)\n {\n $request->validate([\n 'url' => 'required',\n 'client_key' => 'required',\n 'client_secret' => 'required'\n ]);\n\n $cw = ConfigWoocommerce::findorfail($id);\n $cw->url = $request->input('url');\n $cw->client_key = $request->input('client_key');\n $cw->client_secret = $request->input('client_secret');\n $cw->version = $request->input('version');\n $cw->update();\n\n flash('Registro Actualizado con Exito!!')->success();\n\n return redirect()->route('config_woocommerces.index');\n }", "title": "" }, { "docid": "0638ca138421bfcebf2c484c385a5d63", "score": "0.5592301", "text": "public function updateSubscription($userId)\n\t{\n\t\t$this->load->model('user_model');\n\t\t$this->user_model->updateSubscription($userId);\n\t\tredirect('admin/getUsers');\n\t}", "title": "" }, { "docid": "c0d19e9296cba2928468daa826c3e439", "score": "0.55908304", "text": "public function update( $id ) {\n //\n }", "title": "" }, { "docid": "c0d19e9296cba2928468daa826c3e439", "score": "0.55908304", "text": "public function update( $id ) {\n //\n }", "title": "" }, { "docid": "a80a6b05f3d90b31c3729cf0a7e7b62d", "score": "0.5581575", "text": "public function update( $sub_id , $sub )\r\n\t {\r\n\t\t\r\n\t\tunset( $shop['shop_id'] );\r\n\t\tunset( $shop['sub_id'] );\r\n\t\t\r\n\t\t$this->db->where ('sub_id' , $sub_id )\r\n\t\t\t\t ->update( 'shop_account_subscription' , $sub );\r\n\t\t\r\n\t\treturn True;\r\n\t }", "title": "" }, { "docid": "b92e5e23eae92ccee6d5203587db759a", "score": "0.5577278", "text": "public function update(Request $request, Subscription $subscription)\n {\n //\n }", "title": "" }, { "docid": "b92e5e23eae92ccee6d5203587db759a", "score": "0.5577278", "text": "public function update(Request $request, Subscription $subscription)\n {\n //\n }", "title": "" }, { "docid": "3175a179f352afed69c857b4fa511f41", "score": "0.5576929", "text": "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['SubscriptionMaster']))\n\t\t{\n\t\t\t$model->attributes=$_POST['SubscriptionMaster'];\n $model->UPDATED_USER= Yii::app()->user->name;\n $model->UPDATED_DATE=new CDbExpression('NOW()');\n $model->SUBSCRS_VIDEO_Y_N=$_POST['SubscriptionMaster']['SUBSCRS_VIDEO_Y_N'];\n \n if($model->save())\n\t\t\t\t$this->redirect(array('admin','id'=>$model->SUBSCRS_ID));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "00f6304f332e0feefc8f9695d7d58ef9", "score": "0.55741143", "text": "public function remove_subscription($id)\n {\n return $this->model\n ->where('id', $id)\n ->update(array('status' => 2));\n\n }", "title": "" }, { "docid": "a5a06b5e465ca6db4ab9624f2085eea9", "score": "0.5574073", "text": "public function update($id)\n {\n // TODO: Implement update() method.\n }", "title": "" }, { "docid": "a5a06b5e465ca6db4ab9624f2085eea9", "score": "0.5574073", "text": "public function update($id)\n {\n // TODO: Implement update() method.\n }", "title": "" }, { "docid": "05f9afdaebcab0aa719d5e488f14eac4", "score": "0.556993", "text": "public function update(UpdateNotificationRequest $request, $id)\n {\n $UpdReq = $request->handle();\n return redirect()->route('admin.notification.index')->with('success', \\Lang::get('notification.update'));\n\n\n }", "title": "" }, { "docid": "d925ad6d3fff5498fce912ad5a746844", "score": "0.55594736", "text": "public function update($id)\n {\n \n }", "title": "" }, { "docid": "d4d8a336992cbbf8d79a93a976cf8daf", "score": "0.5543378", "text": "public function update(NewsletterRequest $request, $id)\n {\n $newsletter = Newsletter::find($id);\n $newsletter->newsletter = $request->newsletter;\n $newsletter->status = $request->status;\n $newsletter->user_id = $request->author;\n if ($request->hasFile('image')) {\n $filename = time().\".\".$request->file('image')->getClientOriginalExtension();\n if ($newsletter->image != 'newsletter.jpg') {\n Storage::disk('newsletter')->delete($newsletter->image);\n Storage::disk('thumbnail')->delete($newsletter->image);\n }\n Image::make($request->file('image'))->save(public_path('images/newsletters/' . $filename));\n Image::make($request->file('image'))->resize(350, 495.8)->save(public_path('images/thumbnails/' . $filename));\n $newsletter->image = $filename;\n } else {\n $newsletter->image = $newsletter->image;\n }\n $newsletter->slug = slug_th($request->newsletter);\n $newsletter->save();\n return back()->with([\n 'alert' => 'alert-success',\n 'message' => 'บันทึกข้อมูลเรียบร้อย!',\n ]);\n }", "title": "" }, { "docid": "f6c70bf38b491fcb7b13fcaab54d279d", "score": "0.5543098", "text": "public function update($id)\n\t{\n\t\t$cs = CurrSubj::find(Input::get('curriculum_subject_id'));\n\t\t$data = Input::all();\n\t\t$data['subject_id'] = $cs->subject_id;\n\n\t\tEnrollment::find($id)->update($data);\n\t\treturn Redirect::back()->with('suc', '<b>Subject has been Updated!</b>');\n\t}", "title": "" }, { "docid": "36785e7bb9fa76b2b6ea4a44dd10995c", "score": "0.55398595", "text": "public function update($streamId, $id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "0a3a794553625a28b13542d63a8bcdd7", "score": "0.55379844", "text": "public function update($id)\n\t\t{\n\t\t\t//\n\t\t}", "title": "" }, { "docid": "3b22a6a384bfe5b837b05f958cae76cd", "score": "0.5537026", "text": "public function updated(Subscription $subscription)\n {\n //\n }", "title": "" }, { "docid": "77ac1a09e59cc8c302efc0f116133f40", "score": "0.5532527", "text": "public function update($id)\n\t\t\t\t{\n\t\t\t\t\t//\n\t\t\t\t}", "title": "" }, { "docid": "52d468e83803a2508b601b9fc63373e6", "score": "0.55277705", "text": "public function update($id)\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "52d468e83803a2508b601b9fc63373e6", "score": "0.55277705", "text": "public function update($id)\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "52d468e83803a2508b601b9fc63373e6", "score": "0.55277705", "text": "public function update($id)\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "52d468e83803a2508b601b9fc63373e6", "score": "0.55277705", "text": "public function update($id)\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "52d468e83803a2508b601b9fc63373e6", "score": "0.55277705", "text": "public function update($id)\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "8fe0ef60d2bc98ef0b32324323c4a45a", "score": "0.5524889", "text": "public function update($id)\n {\n }", "title": "" }, { "docid": "bf92cc3fa78a1386b546680eba8c6bb4", "score": "0.55206203", "text": "public function update(AdminNewsletterCampaignsRequest $request, $id)\n {\n if (!auth()->user()->can('admin-newsletter-campaigns-update')) {\n app()->abort(403);\n }\n\n $campaign = NewsletterCampaign::find($id);\n if (empty($campaign)) {\n app()->abort(404);\n }\n\n $this->saveNewsletterCampaign($request, $campaign);\n\n return redirect()->to('admin/newsletter-campaigns/' . $campaign->id . \"/edit\")\n ->with('success', trans('Newsletter::admin_lang_campaigns.save_ok'));\n }", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "eb86a38fadb8db375b86710686e5f33f", "score": "0.5515608", "text": "public function update($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
14fa249dc48a990869d312c87032805f
/Extra(not related this project) shudent data show by date wise php file name test.php db table test
[ { "docid": "ae61f99373fb307e1344ae458ccec5e0", "score": "0.6494168", "text": "public function test(){\n\n \t\t\t\t$query = \"SELECT DISTINCT month FROM test ORDER BY id ASC \";\n\t\t \t\t$getdata = $this->db->select($query);\n\t\t \t\treturn $getdata;\n \t\t\t}", "title": "" } ]
[ { "docid": "a2b8b22a7c9a5036e955b8065ec95bab", "score": "0.6848414", "text": "public function detailtest(){\n\t\t$col=['tcreated','tlupdate','tname','tduration','tktrgn','a.uname as creator','b.uname as editor'];\n\t\t$id = $this->input->get('id');\n\t\t$dbres = $this->Mtest->detailtest($col,$id);\n\t\t\n\t\t//set row title\n\t\t$row = $this->returncolomn($col);\n\t\t$col[5]='creator';\n\t\t$col[6]='editor';\n\t\t//set table template\n\t\t$tmpl = array ( 'table_open' => '<table class=\"table table-striped\">',\n\t\t\t\t\t'heading_row_start' => '<tr>',\n 'heading_row_end' => '</tr>',\n 'heading_cell_start' => '<td>',\n 'heading_cell_end' => '</td>',\n\n 'row_start' => '<tr>',\n 'row_end' => '</tr>',\n 'cell_start' => '<td>',\n 'cell_end' => '</td>'\n\n\t\t\t\t\t);\n\t\t$this->table->set_template($tmpl);\n\t\t//set table data\n\t\t$a = 0;\n\t\tforeach($row as $key)\n\t\t{\n\t\t\t$dtable[$a] = array(\n\t\t\t\t\"dtcol\"=>'<b>'.$key.'</b>',\n\t\t\t\t\"dtval\"=>' : '.$dbres[0][$col[$a]]\n\t\t\t\t);\n\t\t\tif (($key=='Test Duration')){\n\t\t\t\t\t$dtable[$a] = array(\n\t\t\t\t\t\t\"dtcol\"=>'<b>'.$key.'</b>',\n\t\t\t\t\t\t\"dtval\"=>' : '.$dbres[0][$col[$a]].'minute(s)'\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t$a++;\n\t\t}\n\t\t$data['rdata']=$this->table->generate($dtable);\n\t\t\n\t\t// =============== view handler ============\n\t\t$this->load->view('dashboard/org/test/detailtest', $data);\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "7c84a12ebf0dfbc51d303d1c2a1feeaf", "score": "0.655017", "text": "function getAllByDate()\n {\n $this->db->order_by('datum', 'desc');\n $query = $this->db->get('webinhoud');\n return $query->result();\n }", "title": "" }, { "docid": "5274066b59352ce177476f7bac4cba68", "score": "0.6435219", "text": "function GetCustomerByDateData($date) {\n $data = $this->db\n ->select('first_name,email,no_phone,no_hp,kode_pemasangan,created_date,payment_date,step,payment_method,memberships.name as package_name')\n ->join('memberships','memberships.id=customer_web.package_id','left')\n ->where(\"created_date between '{$date} 00:00:00' and '{$date} 23:59:57'\")\n ->order_by('created_date','desc')\n ->get('customer_web')\n ->result_array();\n return $data;\n }", "title": "" }, { "docid": "fd8cab4e5a36042fe7a43efdc6ec0b76", "score": "0.6365581", "text": "function GetCustomerNIAGAByDateData($date) {\n $data = $this->db\n ->select('transid,refno,amount,status,errdesc,transdate,kode_pemesanan')\n ->where(\"transdate between '{$date} 00:00:00' and '{$date} 23:59:57'\")\n ->order_by('id','desc')\n ->get('niaga')\n ->result_array();\n return $data;\n }", "title": "" }, { "docid": "4740b922a0d30972fe4c13414490a836", "score": "0.63362366", "text": "public function by_date(){\n\t\t$data['jaldis'] = '';\n\t\tif(($this->input->post('start_date') AND $this->input->post('end_date'))==NULL){\n\t\t\t$q = \"SELECT a.*,(SELECT COUNT(b.id) FROM detail_jaldis b WHERE b.kode_jaldis=a.kode_jaldis) AS jumlah_rombongan FROM jaldis a WHERE a.deleted='0' ORDER BY `a`.`start_date` DESC\";\n\t $data['jaldis'] = $this->User_model->manualQuery($q)->result();\n\t\t}else{\n\t\t\t$start_date = $this->input->post('start_date');\n\t\t\t$end_date = $this->input->post('end_date');\n\t\t\t$q = \"SELECT a.*,(SELECT COUNT(b.id) FROM detail_jaldis b WHERE b.kode_jaldis=a.kode_jaldis) AS jumlah_rombongan FROM jaldis a WHERE (a.start_date BETWEEN '\".$start_date.\"' AND '\".$end_date.\"') AND a.deleted='0' ORDER BY `a`.`start_date` DESC\";\n\t\t\t$data['jaldis'] = $this->User_model->manualQuery($q)->result();\n\t\t}\n\t\t$data['active'] = 'laporan';\n\t\t$data['sub'] = 'rekap';\n\t\t$data['sub2'] = 'by_date';\n\t\t$this->load->view('template/header',$data);\n\t\t$this->load->view('laporan/by_date',$data);\n\t\t$this->load->view('template/footer');\n\t}", "title": "" }, { "docid": "5c9acee825858a4c6db8e0e77d73d1d7", "score": "0.6318861", "text": "public function getData_by($date){\n $this->db->where('Date', $date);\n return $this->db->get('bodyrecord')->row();\n }", "title": "" }, { "docid": "d471ed4a631a9afb223b8c1d65e8f5eb", "score": "0.62786466", "text": "public function show_record_by_date($value)\n {\n // FROM member JOIN record ON member.id_member = record.id_member\n // WHERE tgl_keluar = $value\";\n $query = \"SELECT member.id_member, member.nama_member, record.id, record.nama_keperluan, record.catatan, record.waktu_masuk, record.waktu_keluar \n FROM member JOIN record ON member.id_member = record.id_member WHERE DATE(`waktu_masuk`) = '$value'\";\n return $this->db->query($query)->result_array();\n // return $this->db->get('record')->result_array();\n }", "title": "" }, { "docid": "9d7227af8e1f158bdf3542cedf42a216", "score": "0.626706", "text": "public function date($date)\n {\n $result = $this->db->query('SELECT si.id,si.reference_no,si.date, s.name,(si.total_amount)AS total, si.date\n FROM purchase AS si\n INNER JOIN supplier s ON si.supplier_id = s.id\n INNER JOIN purchase_item i ON i.purchase_id = si.id\n WHERE si.date=\"'.$date.'\" AND si.delete_status=\"0\"\n group by i.purchase_id\n ');\n return $result->result(); \n }", "title": "" }, { "docid": "e8f3206d37859e23edf2701d5854e254", "score": "0.61436754", "text": "public function testSelect() {\n\n $query = <<<SQL\nSELECT\n raspsdID, cusID, raspsID, cusEmail, crpDescription, raspsDescription, raspsdValue, raspsdDateAdded\nFROM\n\tCustomer\n\tNATURAL JOIN CustomerRasPi\n\tNATURAL JOIN RasPiSensor\n\tNATURAL JOIN SensorType\n\tNATURAL JOIN RasPiSensorData\nWHERE\n\tcusEmail = 'indera@gmail.com'\n\tAND crpDescription = 'My first RasPi device'\n\tAND raspsDescription = 'TempSens1'\n AND raspsdDateAdded LIKE ?\nSQL;\n\n // echo \"\\n<!-- <pre> query: $query</pre> -->\";\n echo \"<pre> query: $query</pre>\";\n $this->con->useDB('abovotec_home');\n $ps = $this->con->prepare($query);\n\n $date = isset($_GET['date']) ? $_GET['date'] : '2014-01-29';\necho $date;\n\n $result = $ps->execute(\"$date%\");\n\n if (! $result) {\n echo \"<br /> Query failed: $query\";\n return;\n }\n\n $html = <<<HTML\n<table border=\"1\">\n<caption> Sample data retrieved from the database </caption>\n<thead>\n<tr>\n <th> RasPi </th>\n <th> Sensor </th>\n <th> Data reacorded </th>\n</tr>\n</thead>\nHTML;\n\n\n $list = array();\n while ($row = $result->fetch()) {\n $id = $row['raspsdID'];\n $list[$id] = $row;\n\n $html .= <<<HTML\n<tr>\n<td> {$row['crpDescription']} \n<td> {$row['raspsDescription']}\n<td> {$row['raspsdValue']}\n</tr>\nHTML;\n }\n $html .=<<<HTML\n</table>\nHTML;\n\n echo $html;\n echo \"<hr /> JSON encoded data <br />\";\n echo json_encode($list);\n }", "title": "" }, { "docid": "39f672d60f3c853b7e3f0eb08b77d228", "score": "0.6135853", "text": "public function index(){\n\t\t$data['thisperiod']=$this->Msetting->getset('period');\n\t\t$column=['idtest','tcreated','tname','tduration','tktrgn','a.uname as creator','b.uname as editor'];\n\t\t$header = $this->returncolomn($column);\n\t\tunset($header[0]);\n\t\t// checkbox checkalldata\n\t\t\t\t$checkall = form_checkbox(array(\n\t\t\t\t\t\t\t'name'=>'checkall',\n\t\t\t\t\t\t\t'class'=>'form-class',\n\t\t\t\t\t\t\t'value'=>'all',\n\t\t\t\t\t\t\t'id'=>'c_all'\n\t\t\t\t\t\t\t));\t\n\t\t\t\tarray_unshift($header,$checkall);\n\t\t$header[]='Menu';\n\t\t$tmpl = array ( 'table_open' => '<table class=\"table table-hover\">' );\n\t\t$this->table->set_template($tmpl);\n\t\t$this->table->set_heading($header);\n\t\t\n\t\t//================== catch all value ================\n\t\t$durl= $_SERVER['QUERY_STRING'];\n\t\tparse_str($durl, $filter);\n\t\t$tempfilter=$filter;\n\t\t$addrpage = '';\n\t\t$offset= isset($tempfilter['view']) ? $tempfilter['view'] : 10;\n\t\t$perpage= isset($tempfilter['page']) ? $tempfilter['page'] : 1;\n\t\t\n\t\tif ($durl!=null){\n\t\t\tunset($filter['view']);\n\t\t\tunset($filter['page']);\n\t\t\t$filter= array_filter($filter, function($filter) \n\t\t\t\t\t\t\t\t\t\t{return ($filter !== null && $filter !== false && $filter !== '');\n\t\t\t\t\t\t\t});\n\t\t\t//implode query address\n\t\t\t$addrpage= http_build_query($filter);\n\t\t\t$addrpage = empty($addrpage)? null:$addrpage.'&';\n\t\t\tif ((array_key_exists('column',$filter)) and (array_key_exists('search',$filter))){\n\t\t\t\t$vc = $filter['column'];\n\t\t\t\t$vq = $filter['search'];\n\t\t\t\tunset($filter['column']);\n\t\t\t\tunset($filter['search']);\n\t\t\t\t$filter[$vc]=$vq;\n\t\t\t\t$data['d']='';\n\t\t\t\t}\n\t\t\telse if ((empty($filter['view'])) and (!empty($filter))){\n\t\t\t$data['d']='d';\n\t\t\t}\n\t\t\t//count rows of data (with filter/search)\n\t\t\t$rows = $this->Mtest->counttest($filter);\n\t\t\t\n\t\t} else {\n\t\t\t//count rows of data (no filter/search)\n\t\t\t$rows = $this->Mtest->counttest();\t\n\t\t}\n\t\t//================ filter handler ================\n\t\t$fq = array('name'=>'search',\n\t\t\t\t\t\t'id'=>'search',\n\t\t\t\t\t\t'required'=>'required',\n\t\t\t\t\t\t'placeholder'=>'Search Here',\n\t\t\t\t\t\t'value'=> isset($tempfilter['search']) ? $tempfilter['search'] : null ,\n\t\t\t\t\t\t'class'=>'form-control');\n\t\t$data['inq'] = form_input($fq);\n\t\t\t$optf = array(\n\t\t\t\t\t\t'tcreated' => 'Test Created',\n\t\t\t\t\t\t'tname' => 'Test Name',\n\t\t\t\t\t\t'tduration' => 'Test Duration',\n\t\t\t\t\t\t'tktrgn' => 'Test Notes'\n\t\t\t\t\t\t);\n\t\t$fc = array('name'=>'column',\n\t\t\t\t\t\t'id'=>'col',\n\t\t\t\t\t\t'class'=>'form-control'\n\t\t\t\t\t);\n\t\t$data['inc'] = form_dropdown($fc,$optf,isset($tempfilter['column']) ? $tempfilter['column'] : null);\n\t\t$data['inv'] = form_hidden('view',isset($tempfilter['view']) ? $tempfilter['view'] : 10);\n\t\t\n\t\t$fbq = array(\t'id'=>'bsearch',\n\t\t\t\t\t\t'value'=>'search',\n\t\t\t\t\t\t'class'=>'btn btn-primary',\n\t\t\t\t\t\t'type'=>'submit');\n\t\t$data['bq'] = form_submit($fbq);\n\t\t\n\t\t// ============= advanced filter ===============\n\t\t$adv['Period'] = form_input(\n\t\t\t\t\t\tarray('name'=>'period',\n\t\t\t\t\t\t'id'=>'period',\n\t\t\t\t\t\t'placeholder'=>'Period',\n\t\t\t\t\t\t'value'=>isset($tempfilter['period']) ? $tempfilter['period'] : null,\n\t\t\t\t\t\t'class'=>'form-control'));\n\t\t$adv['Test Created'] = form_input(\n\t\t\t\t\t\tarray('name'=>'tcreated',\n\t\t\t\t\t\t'id'=>'createdon',\n\t\t\t\t\t\t'placeholder'=>'Date Created',\n\t\t\t\t\t\t'value'=>isset($tempfilter['tcreated']) ? $tempfilter['tcreated'] : null,\n\t\t\t\t\t\t'class'=>'form-control'));\n\t\t\n\t\t$adv['Test Name'] = form_input(\n\t\t\t\t\t\tarray('name'=>'tname',\n\t\t\t\t\t\t'id'=>'testname',\n\t\t\t\t\t\t'placeholder'=>'Test Name',\n\t\t\t\t\t\t'value'=>isset($tempfilter['tname']) ? $tempfilter['tname'] : null,\n\t\t\t\t\t\t'class'=>'form-control'));\n\t\t\n\t\t$adv['Test Duration'] = form_input(\n\t\t\t\t\t\tarray('name'=>'tduration',\n\t\t\t\t\t\t'placeholder'=>'Test Duration (in min)',\n\t\t\t\t\t\t'value'=>isset($tempfilter['tduration']) ? $tempfilter['tduration'] : null,\n\t\t\t\t\t\t'class'=>'form-control'));\n\t\t\t\t\t\t\n\t\t$adv['Test Notes'] = form_input(\n\t\t\t\t\t\tarray('name'=>'tktrgn',\n\t\t\t\t\t\t'id'=>'testnotes',\n\t\t\t\t\t\t'placeholder'=>'Test Notes',\n\t\t\t\t\t\t'class'=>'form-control',\n\t\t\t\t\t\t'value'=>isset($tempfilter['tktrgn']) ? $tempfilter['tktrgn'] : null\n\t\t\t\t\t\t));\n\t\t\n\t\t$dtfilter = '';\n\t\tforeach($adv as $a=>$v){\n\t\t\t$dtfilter = $dtfilter.'<div class=\"input-group\"><label>'.$a.': </label>'.$v.'</div> ';\n\t\t}\n\t\t$data['advance'] = $dtfilter;\n\t\t\n\t\t\n\t\t//=============== paging handler ==========\n\t\t$config = array(\n\t\t\t\t'base_url' => base_url().'/Organizer/PDS?'.$addrpage.'view='.$offset,\n\t\t\t\t'total_rows' => $rows,\n\t\t\t\t'per_page' => $offset,\n\t\t\t\t'use_page_numbers' => true,\n\t\t\t\t'page_query_string' =>true,\n\t\t\t\t'query_string_segment' =>'page',\n\t\t\t\t'num_links' => 3,\n\t\t\t\t'cur_tag_open' => '<span class=\"disabled\"><a href=\"#\">',\n\t\t\t\t'cur_tag_close' => '<span class=\"sr-only\"></span></a></span>',\n\t\t\t\t'next_link' => 'Next',\n\t\t\t\t'prev_link' => 'Prev'\n\t\t\t\t);\n\t\t$data[\"urlperpage\"] = base_url().'Organizer/PDS?'.$addrpage.'view=';\n\t\t$data[\"perpage\"] = ['10','25','50','100','all'];\n\t\t$this->pagination->initialize($config);\n\t\t$str_links = $this->pagination->create_links();\n\t\t$data[\"links\"] = explode('&nbsp;',$str_links );\n\n\t\t//========== data manipulation =========\n\t\n\t\t$temp = $this->Mtest->datatest($column,$config['per_page'],$perpage,$filter);\t\n\t\t\t\tforeach($temp as $key=>$value){\n\t\t\t\t//manipulation allow data\n\t\t\t\t\n\t\t\t\t\t$temp[$key]['tduration']=$temp[$key]['tduration'].' minute(s)';\n\t\t\t\t//manipulation checkbox\n\t\t\t\t$ctable = form_checkbox(array(\n\t\t\t\t\t\t\t'name'=>'check[]',\n\t\t\t\t\t\t\t'class'=>'ciduser',\n\t\t\t\t\t\t\t'value'=>$temp[$key]['idtest']\n\t\t\t\t\t\t\t));\n\t\t\t\tarray_unshift($temp[$key],$ctable);\n\t\t\t\t$temp[$key]['tname']='<span class=\"idname\">'.$temp[$key]['tname'].'</span>';\n\t\t\t\t$temp[$key]['tcreated']=date('d-M-Y', strtotime($value['tcreated'])).'<br/>'.date('H:i:s', strtotime($value['tcreated']));\n\t\t\t\t//manipulation menu\n\t\t\t\t$enc = $value['idtest'];\n\t\t\t\tunset($temp[$key]['idtest']);\n\t\t\t\t$temp[$key]['menu']='<div class=\"btn-group\"><a href=\"'.base_url('Organizer/Test/detailtest?id=').$enc.'\" data-target=\"#DetailModal\" data-toggle=\"modal\" role=\"button\" alt=\"Full Data\" class=\"btn btn-primary btn-sm\" title=\"Details\"><i class=\"fa fa-list-alt\"></i></a>'.\n\t\t\t\t'<a href=\"'.base_url('Organizer/Test/edittest?id=').$enc.'\" data-target=\"#DetailModal\" data-toggle=\"modal\" role=\"button\" alt=\"Edit Data\" class=\"btn btn-info btn-sm\" title=\"Edit\"><i class=\"fa fa-edit\"></i></a>'.\n\t\t\t\t'<a href=\"#\" data-href=\"'.base_url('Organizer/Test/deletetest?id=').$enc.'\" alt=\"Delete Data\" class=\"btn btn-danger btn-sm\" data-toggle=\"modal\" data-target=\"#confirm-delete\" title=\"Delete\"><i class=\"fa fa-trash\"></i></a></div>';\n\t\t\t\t}\n\t\t$data['listlogin'] = $this->table->generate($temp);\n\t\t\n\t\t// ======== activate/deactivate account ==============\n\t\t\t$data['idac']= form_input(\n\t\t\t\t\t\t\t\tarray('type'=>'hidden',\n\t\t\t\t\t\t\t\t'id'=>'selectedid',\n\t\t\t\t\t\t\t\t'name'=>'fusers'\n\t\t\t\t\t\t\t\t));\n\t\t\t$data['idtype']= form_input(\n\t\t\t\t\t\t\t\tarray('type'=>'hidden',\n\t\t\t\t\t\t\t\t'id'=>'selectedtype',\n\t\t\t\t\t\t\t\t'name'=>'ftype'\n\t\t\t\t\t\t\t\t));\n\t\t\t$data['factselected'] = site_url('Organizer/Test/updateselected');\n\t\t\t\n\t\t\n\t\t//=============== Template ============\n\t\t$data['jsFiles'] = array(\n\t\t\t\t\t\t\t'selectpicker/select.min','moment/moment.min','daterange/daterangepicker','numeric/numeric.min');\n\t\t$data['cssFiles'] = array(\n\t\t\t\t\t\t\t'selectpicker/select.min','daterange/daterangepicker'); \n\t\t// =============== view handler ============\n\t\t$data['title']=\"Registration Data\";\n\t\t$data['topbar'] = $this->load->view('dashboard/topbar', NULL, TRUE);\n\t\t$data['sidebar'] = $this->load->view('dashboard/org/sidebar', NULL, TRUE);\n\t\t$data['content'] = $this->load->view('dashboard/org/test/testlist', $data, TRUE);\n\t\t$this->load->view ('template/main', $data);\n\t}", "title": "" }, { "docid": "9a4c791b3357d216294b11f25162e589", "score": "0.6129825", "text": "public function getAllByDateAsc();", "title": "" }, { "docid": "b10f5ba9a1f4866e9184e1442ca9d72d", "score": "0.611941", "text": "public function run()\n {\n $today = new DateTime();\n $list=[\n [\n 'ddh_id' => '1',\n 'ddh_ngaylap' => '2019-01-09 09:00:00', \n 'ddh_diachigiaohang' => 'KTXB, đường 3/2', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '1', \n 'htvc_id' => '1', \n 'httt_id' => '1', \n 'px_id' => '10', \n ],\n [\n 'ddh_id' => '2',\n 'ddh_ngaylap' => '2019-02-07 10:00:00', \n 'ddh_diachigiaohang' => 'Hẻm 51, đường 3/2', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '3', \n 'htvc_id' => '3', \n 'httt_id' => '1', \n 'px_id' => '10', \n ],\n [\n 'ddh_id' => '3',\n 'ddh_ngaylap' => '2019-03-07 10:00:00', \n 'ddh_diachigiaohang' => 'Hẻm 51, đường 3/2', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '2', \n 'htvc_id' => '3', \n 'httt_id' => '1', \n 'px_id' => '10', \n ],\n [\n 'ddh_id' => '4',\n 'ddh_ngaylap' => '2019-05-09 10:00:00', \n 'ddh_diachigiaohang' => 'Số 22, Cách mạng tháng 8', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '1', \n 'htvc_id' => '4', \n 'httt_id' => '1', \n 'px_id' => '312', \n ],\n [\n 'ddh_id' => '5',\n 'ddh_ngaylap' => '2019-07-27 10:00:00', \n 'ddh_diachigiaohang' => 'Số 23A, đường Hòa Bình', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '2', \n 'htvc_id' => '4', \n 'httt_id' => '1', \n 'px_id' => '160', \n ],\n [\n 'ddh_id' => '6',\n 'ddh_ngaylap' => '2019-09-27 10:00:00', \n 'ddh_diachigiaohang' => 'Số 27B, đường Lê Lợi', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '2', \n 'htvc_id' => '4', \n 'httt_id' => '1', \n 'px_id' => '84', \n ],\n [\n 'ddh_id' => '7',\n 'ddh_ngaylap' => '2019-12-27 10:00:00', \n 'ddh_diachigiaohang' => 'Số 27B, đường Lê Lợi', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '2', \n 'htvc_id' => '4', \n 'httt_id' => '1', \n 'px_id' => '84', \n ],\n [\n 'ddh_id' => '8',\n 'ddh_ngaylap' => '2020-01-27 14:00:00', \n 'ddh_diachigiaohang' => 'Số 27B, đường Lê Lợi', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '2', \n 'htvc_id' => '4', \n 'httt_id' => '1', \n 'px_id' => '84', \n ],\n [\n 'ddh_id' => '9',\n 'ddh_ngaylap' => '2020-02-27 14:00:00', \n 'ddh_diachigiaohang' => 'Hẻm 51, đường 3/2', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '3', \n 'htvc_id' => '1', \n 'httt_id' => '1', \n 'px_id' => '10', \n ],\n [\n 'ddh_id' => '10',\n 'ddh_ngaylap' => '2020-03-17 12:00:00', \n 'ddh_diachigiaohang' => 'Hẻm 216, đường 3/2', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '3', \n 'htvc_id' => '3', \n 'httt_id' => '1', \n 'px_id' => '10', \n ],\n [\n 'ddh_id' => '11',\n 'ddh_ngaylap' => '2020-04-17 11:00:00', \n 'ddh_diachigiaohang' => 'Hẻm 216, đường 3/2', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '3', \n 'htvc_id' => '3', \n 'httt_id' => '1', \n 'px_id' => '10', \n ],\n [\n 'ddh_id' => '12',\n 'ddh_ngaylap' => '2020-05-10 15:00:00', \n 'ddh_diachigiaohang' => 'Số 27B, đường Lê Lợi', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '2', \n 'htvc_id' => '2', \n 'httt_id' => '1', \n 'px_id' => '84', \n ],\n [\n 'ddh_id' => '13',\n 'ddh_ngaylap' => '2020-06-21 9:00:00', \n 'ddh_diachigiaohang' => 'KTXB, đường 3/2', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '1', \n 'htvc_id' => '3', \n 'httt_id' => '1', \n 'px_id' => '10', \n ],\n [\n 'ddh_id' => '14',\n 'ddh_ngaylap' => '2020-07-20 9:30:00', \n 'ddh_diachigiaohang' => 'KTXB, đường 3/2', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '1', \n 'htvc_id' => '3', \n 'httt_id' => '1', \n 'px_id' => '10', \n ],\n [\n 'ddh_id' => '15',\n 'ddh_ngaylap' => '2020-09-14 9:25:00', \n 'ddh_diachigiaohang' => 'KTXB, đường 3/2', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '1', \n 'htvc_id' => '3', \n 'httt_id' => '1', \n 'px_id' => '10', \n ],\n [\n 'ddh_id' => '16',\n 'ddh_ngaylap' => '2020-10-14 9:25:00', \n 'ddh_diachigiaohang' => 'KTXB, đường 3/2', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '1', \n 'htvc_id' => '3', \n 'httt_id' => '1', \n 'px_id' => '10', \n ],\n [\n 'ddh_id' => '17',\n 'ddh_ngaylap' => '2020-11-14 9:25:00', \n 'ddh_diachigiaohang' => 'KTXB, đường 3/2', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '1', \n 'htvc_id' => '3', \n 'httt_id' => '1', \n 'px_id' => '10', \n ],\n [\n 'ddh_id' => '18',\n 'ddh_ngaylap' => '2020-12-14 9:25:00', \n 'ddh_diachigiaohang' => 'KTXB, đường 3/2', \n 'ddh_trangthai' => '1', \n 'id' => '3', \n 'kh_id' => '1', \n 'htvc_id' => '3', \n 'httt_id' => '1', \n 'px_id' => '10', \n ],\n ];\n DB::table('dondathang')->insert($list);\n }", "title": "" }, { "docid": "9b7f704690cd4131f773575452ca16be", "score": "0.61148554", "text": "function trierEvenement(){\n\t\t$sql=\"SElECT * From evenementn ORDER BY DATE\";\n\t\t$db = config::getConnexion();\n\t\ttry{\n\t\t$liste=$db->query($sql);\n\t\treturn $liste;\n\t\t}\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\t\n\t}", "title": "" }, { "docid": "ac71714ff2e240ba6c95f0798f79abdb", "score": "0.6072852", "text": "public function select_data() \n {\n\n return $this->db->query(\"select hdistribusi.*, cb1.namacabang as namacabangasal, cb1.kota as kotaasal, cb2.namacabang as namacabangtujuan, cb2.kota as kotatujuan from hdistribusi, cabang cb1, cabang cb2 where hdistribusi.kodecabangasal = cb1.kodecabang and hdistribusi.kodecabangtujuan = cb2.kodecabang and hdistribusi.status = 'AKTIF' order by date(tanggal)\");\n }", "title": "" }, { "docid": "0acffa5b52f261c9362dabc9610421f9", "score": "0.60652137", "text": "function GetCustomerDOKUByDateData($date) {\n $data = $this->db\n ->select('transidmerchant,totalamount,trxstatus,payment_date_time,kode_pemesanan')\n ->where(\"payment_date_time between '{$date} 00:00:00' and '{$date} 23:59:57'\")\n ->get('doku')\n ->result_array();\n return $data;\n }", "title": "" }, { "docid": "a9c34d7efc4dfd11f598bc61ca9a0e6a", "score": "0.6063649", "text": "public function datamiseAction() {\n $auth = Zend_Auth::getInstance()->setStorage(new Zend_Auth_Storage_Session('admin'));\n $user = $auth->getIdentity();\n $group_create = $user->code_groupe_create;\n\t \n\t $code_acteur = $user->code_acteur; \n\t $tabela = new Application_Model_DbTable_EuActeur();\n $select = $tabela->select(Zend_Db_Table::SELECT_WITH_FROM_PART);\n $select->setIntegrityCheck(false)\n\t\t ->join('eu_membre_morale','eu_membre_morale.code_membre_morale = eu_acteur.code_membre')\n\t\t\t ->where('eu_acteur.code_acteur like ?',$code_acteur);\t \n\t $alloc = $tabela->fetchAll($select);\n\t $row = $alloc->current();\n\t \n $this->_helper->layout->disableLayout();\n $page = $this->_request->getParam(\"page\", 1);\n $limit = $this->_request->getParam(\"rows\", 10);\n $sidx = $this->_request->getParam(\"sidx\", 'code_membre_morale');\n $sord = $this->_request->getParam(\"sord\", 'asc');\n \n $code_agence = $this->_request->getParam(\"agence\");\n $date = $this->_request->getParam(\"date\");\n $tabela = new Application_Model_DbTable_EuMembreMorale();\n \n\t \n\t if($group_create == 'surveillance') {\n\t \n if($date != '' && $code_agence != '') {\n $select = $tabela->select(); \n $date1 = explode(\"/\", $date);\n $dated = $date1[2] . '-' . $date1[1] . '-' . $date1[0];\n $select->where('eu_membre_morale.code_agence like ?',$code_agence)\n ->where('eu_membre_morale.date_identification like ?',$dated)\n\t\t\t ->order('eu_membre_morale.code_membre_morale');\n }\n elseif ($code_agence != '') {\n $select = $tabela->select(); \n $select->where('eu_membre_morale.code_agence like ?',$code_agence)\n\t ->order('eu_membre_morale.code_membre_morale');\n }\n elseif($date != '') {\n $select = $tabela->select();\n $date1 = explode(\"/\", $date);\n $dated = $date1[2] . '-' . $date1[1] . '-' . $date1[0];\n $select->where('eu_membre_morale.date_identification like ?',$dated)\n\t ->order('eu_membre_morale.code_membre_morale');\n }\n else {\n $select = $tabela->select(); \n }\n\t\n\t} else {\n\t \n\t if($date != '' && $code_agence != '') {\n $select = $tabela->select(); \n $date1 = explode(\"/\", $date);\n $dated = $date1[2] . '-' . $date1[1] . '-' . $date1[0];\n $select->where('eu_membre_morale.code_agence like ?',$code_agence)\n ->where('eu_membre_morale.date_identification like ?',$dated)\n\t\t\t ->order('eu_membre_morale.code_membre_morale');\n }\n elseif ($code_agence != '') {\n $select = $tabela->select(); \n $select->where('eu_membre_morale.code_agence like ?',$code_agence)\n\t ->order('eu_membre_morale.code_membre_morale');\n }\n elseif($date != '') {\n $select = $tabela->select();\n $date1 = explode(\"/\", $date);\n $dated = $date1[2] . '-' . $date1[1] . '-' . $date1[0];\n $select->where('eu_membre_morale.date_identification like ?',$dated)\n\t ->order('eu_membre_morale.code_membre_morale')\n\t\t\t\t\t->where('eu_membre_morale.code_agence like ?',$row->code_agence);\n }\n else {\n $select = $tabela->select();\n\t\t\t $select->where('eu_membre_morale.code_agence like ?',$row->code_agence); \n }\n\t\n\t }\n \n $membres = $tabela->fetchAll($select);\n $count = count($membres);\n if ($count > 0) {\n $total_pages = ceil($count / $limit);\n } else {\n $total_pages = 0;\n }\n if ($page > $total_pages)\n $page = $total_pages;\n\n $membres = $tabela->fetchAll($select, \"$sidx $sord\", $limit, ($page * $limit - $limit));\n\n $responce['page'] = $page;\n $responce['total'] = $total_pages;\n $responce['records'] = $count;\n $i = 0;\n\n foreach ($membres as $row) {\n $responce['rows'][$i]['id'] = $row->code_membre_morale;\n $responce['rows'][$i]['cell'] = array( \n $row->code_agence,\n //$row->libelle_agence, \n $row->code_membre_morale,\n $row->raison_sociale,\n //$row->profession_membre,\n $row->date_identification \n );\n $i++;\n }\n $this->view->data = $responce;\n \n }", "title": "" }, { "docid": "abb23348869d29aacdc939795abf10c5", "score": "0.6062014", "text": "public function getAllByDateDesc();", "title": "" }, { "docid": "192a0a0f9223b1b661de52763a74c1ce", "score": "0.6015431", "text": "function tampildata(){\n\t\t\t$query=$this->db->query(\"SELECT * from view_orderpart\");\n\t\t\treturn $query;\n\t\t}", "title": "" }, { "docid": "b8a99a136b5374d0c4d62116a3ea2646", "score": "0.6011519", "text": "function lamaranMasuk2()\n\t{\n\t\t$this->db->select('a.noDaftar,a.posisi, b.nama, b.email, b.hp, c.pathIjazah, d.pathNilai, e.pathSurat, f.pathKtp, g.pathNPWP, h.pathKK, i.pathCV, j.pathFoto, DATE_FORMAT(a.tglLamar, \"%d-%m-%Y\") day',false);//select your colum as new column name wich is converted as str ot date\n\t\t//yo can do select more.\n\t\t//$this->db->from('data_lamaran a'); \n\t\t$this->db->join('data_diri b', 'b.noDaftar=a.noDaftar', 'left');\t\t\n\t\t$this->db->join('dokumen_ijazah c', 'c.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_nilai d', 'd.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_surat e', 'e.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_ktp f', 'f.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_npwp g', 'g.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_kk h', 'h.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_cv i', 'i.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_foto j', 'j.noDaftar=j.noDaftar', 'left');\n\t\t$this->db->where('statusLamaran',0);\n\t\t$this->db->order_by('tglLamar','DESC');\n\t\t\n\t\t$query = $this->db->get('data_lamaran a'); \n if($query->num_rows() != 0)\n {\n return $query->result();\n }\n else\n {\n return false;\n }\n\t}", "title": "" }, { "docid": "1938ff7173fc1b0b8c012db5d51fada8", "score": "0.5998362", "text": "function getTache(){\n//$query = \"select createur,Date_debut,Date_fin,nom,Duree from taches where taches.projetID = projet.projetID\";\n$query = $this -> db -> get(\"taches\");\n\n//$query = \"select * from taches where projet.projetID=projetID\";\nreturn $query->result();\n//$resultat=mysql_query($query);\n }", "title": "" }, { "docid": "c965a93cb059fc16467e30d15edc1ea9", "score": "0.59748274", "text": "public function dataenroAction() {\n \n $this->_helper->layout->disableLayout();\n $page = $this->_request->getParam(\"page\", 1);\n $limit = $this->_request->getParam(\"rows\", 10);\n $sidx = $this->_request->getParam(\"sidx\", 'code_membre');\n $sord = $this->_request->getParam(\"sord\", 'asc');\n \n $code_agence = $this->_request->getParam(\"agence\");\n $date = $this->_request->getParam(\"date\");\n $tabela = new Application_Model_DbTable_EuMembre();\n \n if($date != '' && $code_agence != '') {\n $select = $tabela->select(); \n $date1 = explode(\"/\", $date);\n $dated = $date1[2] . '-' . $date1[1] . '-' . $date1[0];\n $select->where('eu_membre.code_agence like ?',$code_agence)\n ->where('eu_membre.date_identification like ?',$dated)\n\t\t\t ->order('eu_membre.code_membre');\n }\n elseif ($code_agence != '') {\n $select = $tabela->select(); \n $select->where('eu_membre.code_agence like ?',$code_agence)\n\t ->order('eu_membre.code_membre');\n }\n elseif($date != '') {\n $select = $tabela->select();\n $date1 = explode(\"/\", $date);\n $dated = $date1[2] . '-' . $date1[1] . '-' . $date1[0];\n $select->where('eu_membre.date_identification like ?',$dated)\n\t ->order('eu_membre.code_membre');\n }\n else {\n $select = $tabela->select(); \n }\n \n $membres = $tabela->fetchAll($select);\n $count = count($membres);\n if ($count > 0) {\n $total_pages = ceil($count / $limit);\n } else {\n $total_pages = 0;\n }\n if ($page > $total_pages)\n $page = $total_pages;\n\n $membres = $tabela->fetchAll($select, \"$sidx $sord\", $limit, ($page * $limit - $limit));\n\n $responce['page'] = $page;\n $responce['total'] = $total_pages;\n $responce['records'] = $count;\n $i = 0;\n\n foreach ($membres as $row) {\n $responce['rows'][$i]['id'] = $row->code_membre;\n $responce['rows'][$i]['cell'] = array( \n $row->code_agence,\n //$row->libelle_agence, \n $row->code_membre,\n //$row->raison_sociale,\n $row->nom_membre,\n $row->prenom_membre,\n //$row->profession_membre,\n $row->date_identification \n );\n $i++;\n }\n $this->view->data = $responce;\n \n }", "title": "" }, { "docid": "666449c7a07664bf1860073a27303bc9", "score": "0.59531033", "text": "public function getDataJadwal($data){\n\t\t$queryall = $this->db->get('detailkursus');\n\t\t$sql = \"SELECT dk.idUnix, dk.kodeKursus,\n\t\t(SELECT app_kursus.idSiswa from app_kursus where app_kursus.idapp_kursus= dk.kodeKursus ) AS idSiswa,/* IDSISWA */\n\t\t(SELECT tb_pengguna.namaDepan from tb_pengguna where idSiswa= tb_pengguna.penggunaId ) AS Siswa, /* NAMA SISWA */\n\t\t(SELECT tb_pengguna.umur from tb_pengguna where idSiswa= tb_pengguna.penggunaId ) AS UsiaSiswa, /* USIA SISWA */\n\t\t(SELECT tb_pengguna.pendidikanSekarang from tb_pengguna where idSiswa= tb_pengguna.penggunaId ) AS PendidikanSiswa, /* PENDIDIKAN SISWA */\n\t\t(SELECT tb_pengguna.alamat from tb_pengguna where idSiswa= tb_pengguna.penggunaId ) AS AlamatSiswa, /* ALAMAT SISWA */\t\n\t\tdk.idTentor,\n\t\t(SELECT tb_pengguna.namaDepan from tb_pengguna where dk.idTentor= tb_pengguna.penggunaId ) AS Tentor, /* TENTOR */\n\t\tdk.idBidangStudi, \n\t\t(SELECT tb_bidangstudi.namaBidangStudi from tb_bidangstudi where dk.idBidangStudi= tb_bidangstudi.id_bidangStudi ) AS bidangStudi, /* BIDANG STUDI */\n\t\t(SELECT tb_bidangstudi.kategoriStudi from tb_bidangstudi where dk.idBidangStudi= tb_bidangstudi.id_bidangStudi ) AS kategoriBidangStudi, /* KATEGORI BIDANG STUDI */\n\t\tdk.statusKursus\n\t\tfrom detailkursus as dk\n-- \t\twhere dk.idTentor='001' and dk.statusKursus='aktif'\n\n\t\twhere statusKursus != 'tuntas' LIMIT \" .$data[\"start\"].\",\".$data['length'];\n\n\t\t$query = $this->db->query($sql);\n\t\t$data = $query->result();\n\t\t$total = $queryall->num_rows();\n\t\t$dataRecord = array(\n\t\t\t\"RecordsTotal\" => $total,\n\t\t\t\"RecordsFiltered\" => $total,\n\t\t\t\"Data\" => $data,\n\t\t); return $dataRecord;\n\t}", "title": "" }, { "docid": "1a3578c89fe038a3b25c298289653a07", "score": "0.5948365", "text": "public function getdatamaster(){\n\t\t//only ajax is allowed\n\t\tif(!$this->input->is_ajax_request()) show_404();\n\n\t\t//$this->auth->set_access('view');\n\t\t//$this->auth->validate();\n\t\t$this->load->model('m_data_issn');\n\t\t// $filter_cols = array('ang_pegawai' => $this->input->post('ang_pegawai'),\n\t\t// \t\t\t'peg_fakultas' => $this->input->post('peg_fakultas'),\n\t\t// \t\t\t'peg_jurusan' => $this->input->post('peg_jurusan'),\n\t\t// \t\t\t'pub_detilkodepub' => $this->input->post('pub_detilkodepub'));\n\n\t\t// $add_where = 'pub_judul LIKE \\'%' . $this->input->post('pub_judul') . '%\\'';\n\t\t\n\t\t// if ($this->input->post('pub_startyear') != \"\")\n\t\t// \t$add_where .= ' AND pub_tahun >= ' . $this->input->post('pub_startyear');\n\t\t// if ($this->input->post('pub_endyear') != \"\")\n\t\t// \t$add_where .= ' AND pub_tahun <= ' . $this->input->post('pub_endyear');\n\n\n\t\t//set default where query\n\t\t// $where = build_masterpage_filter($filter_cols, $add_where);\n\n\t\t//get data\n\t\t$this->m_data_issn->get_datatable('');\n\t}", "title": "" }, { "docid": "f8e47d3339c22c0732c12a0545f63fac", "score": "0.59440887", "text": "public function mm_get_all(){\n\t\t$start_of_date \t= $this->input->post('start_of_date',true);\n\t\t$end_of_date \t= $this->input->post('end_of_date',true);\n\t\t\n\t\treturn $this->db->query(\"select * from survey_client where (DATE(created_at) between '$start_of_date' and '$end_of_date')\")->result();\n\t\t// return $this->db->where('created_at',$start_of_date)->where('created_at',$end_of_date)->get('survey_client')->result();\n\t\t// return $this->db->get('survey_client')->result();\n\t}", "title": "" }, { "docid": "4138173604916e2f5cf9d5b7ed7227d8", "score": "0.5941279", "text": "function selectAll($sale_code,$start_date,$end_date)\n{\n\tglobal $thead, $connect, $tableD;\n\t$selSql1=\"select `reg_date` from toto_pay where `sale_code` = '\".$sale_code.\"' and `reg_date` between '\".$start_date.\"' and '\".$end_date.\"' order by reg_date asc\";\n\t$result = mysql_query($selSql1, $connect); \n\t$total1 = mysql_num_rows($result); // 총 레코드 수\n\t$num=$total1;\n\n\t// 병원이름 출력 2011-03-31\n\t$docSql=\"select * from toto_doctor order by `no` asc\";\n\t$docRes = mysql_query($docSql, $connect); \n\t$docTot = mysql_num_rows($docRes); // 총 레코드 수\n\t$docNum=$docTot;\n\t$docRow = mysql_fetch_row($docRes);\n\t$hosp_name = $docRow[3];\n\n\tif($total1){\n\t\twhile($total1--){\n\t\t\t$row = mysql_fetch_row($result);\n\t\t\tif($row[0]==$cur_date){\n\t\t\t}else{\n\t\t\t\t$reg_date=substr($row[14],0,4);\n\t\t\t\t$reg_date=$reg_date.\"-\".substr($row[14],4,2);\n\t\t\t\t$reg_date=$reg_date.\"-\".substr($row[14],6,2);\n\t\t\t\t$reged_date=$reged_date.\"|\".$row[0];//입력된 reg_date 구하기\n\t\t\t}\n\t\t\t\t$cur_date=$row[0];\n\t\t\t}\n\t\t\t$reg_arr=explode(\"|\",$reged_date);\n\t\t\t$arr_size=count($reg_arr);\n\t\t\t$num=0;\n\t\t\tfor($ac=$start_date;$ac<=$end_date;$ac++){//피부과 자료 정리\n\t\t\t\t$numOfList++;\n\t\t\t\t$selSql=\"select sum(cash_mony+cscd_mony+card_mony+yet__mony), sum(card_mony), sum(cash_mony+cscd_mony) from toto_pay where `sale_code` = '\".$sale_code.\"' and rmdy_doct = '\".$docRow[1].\"' and `reg_date` = '\".$ac.\"' order by reg_date asc\";\n\t\t\t\t$result = mysql_query($selSql, $connect); \n\t\t\t\t$total = mysql_num_rows($result); // 총 레코드 수\n\t\t\t\t$num=$total;\n\n\t\t\t\twhile($total--){\n\t\t\t\t\t$row = mysql_fetch_row($result);\n\t\t\t\t\t$income=$row[0];\n\t\t\t\t\t$card_in=$row[1];//카드 총합\n\t\t\t\t\t$income_sum=$income_sum+$row[0];//총합\n\t\t\t\t\t$card_income=$card_income+$row[1];//카드 총합\n\t\t\t\t\t$cash_income=$cash_income+$row[2];//현금 총합\n\t\t\t\t}\n\n\t\t\t\tif($sale_code==1001){//병원 합계 일 때 만 지출 계산\n\t\t\t\t\t$selSql2=\"select `cash_mony` from toto_exp where `exps_code` = '4000' and `reg_date` = '\".$ac.\"' order by reg_date asc\";\n\t\t\t\t\t$result2 = mysql_query($selSql2, $connect); \n\t\t\t\t\t$total2 = mysql_num_rows($result2); // 총 레코드 수\n\t\t\t\t\t\t$outcome_today=0;\n\t\t\t\t\twhile($total2--){\n\t\t\t\t\t\t$row2 = mysql_fetch_row($result2);\n\t\t\t\t\t\t$outcome_today=$outcome_today+$row2[0];\n\t\t\t\t\t\t$outcome=$outcome+$row2[0];\n\t\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\t$updated=$updated.'<tr>\n\t\t\t\t<td class=\"tdStyle\">'.$hosp_name.'</td>';\n\t\t\t\t$updated=$updated.'<td class=\"tdStyle\">'.comma($income).'</td>';\n\t\t\tif($sale_code==1001)//병원 합계 일 때 만 지출 계산\n\t\t\t\t$updated=$updated.'<td class=\"tdStyle\">'.comma($outcome_today).'</td>';\n\t\t\t\t$updated=$updated.'<td class=\"tdStyle\">'.comma($income_sum).'</td>';\n\t\t\tif($sale_code==1001)//병원 합계 일 때 만 지출 계산\n\t\t\t\t$updated=$updated.'<td class=\"tdStyle\">'.comma($outcome).'</td>';\n\t\t\t\t$updated=$updated.'<td class=\"tdStyle\">'.comma($cash_income).'</td>';\n\t\t\t\tif($income==0){//당일 매출이 없을 경우 2011-08-30\n\t\t\t\t\t$ccrate=\"-\";\n\t\t\t\t}else{\n\t\t\t\t\t$ccrate=round_up(($card_income/$income),3);\n\t\t\t\t}\n\t\t\t\t$updated=$updated.'<td class=\"tdStyle\">'.$ccrate.'</td></tr>';\n\t\t\t\t$updated=$updated.'<tr>\n\t\t\t\t<td class=\"tdStyle\">합계</td>';\n\t\t\t\t$updated=$updated.'<td class=\"tdStyle\">'.comma($income).'</td>';\n\t\t\tif($sale_code==1001)//병원 합계 일 때 만 지출 계산\n\t\t\t\t$updated=$updated.'<td class=\"tdStyle\">'.comma($outcome_today).'</td>';\n\t\t\t\t$updated=$updated.'<td class=\"tdStyle\">'.comma($income_sum).'</td>';\n\t\t\tif($sale_code==1001)//병원 합계 일 때 만 지출 계산\n\t\t\t\t$updated=$updated.'<td class=\"tdStyle\">'.comma($outcome).'</td>';\n\t\t\t\t$updated=$updated.'<td class=\"tdStyle\">'.comma($cash_income).'</td>';\n\t\t\t\t$updated=$updated.'<td class=\"tdStyle\">'.$ccrate.'</td></tr>';\n\t\t\t$updated=$updated;\n\n\t}else{\n\t\t$updated='자료가 없습니다';\n\t}\n\treturn $updated;\n}", "title": "" }, { "docid": "7d7913634e0c1c7474435930f5b774c6", "score": "0.5936421", "text": "function tampilData()\n {\n // $this->db->order_by($this->primary, 'asc');\n // else\n // $this->db->order_by();\n // return $this->db->get($this->table);\n \n return $this->db->get($this->table);\n\n }", "title": "" }, { "docid": "87c46e2e845d8478b9ea3e20f723aff1", "score": "0.5934611", "text": "public function dataTable (){\n $from1 = $this->uri->segment(3);\n $to1 = $this->uri->segment(4); \n $status = $this->uri->segment(5); \n\n is_login();\n\t $table = 'inquiry';\n \t$primaryKey = 'inquiry_id';\n \t$columns = array(\n // array( 'sdb' => 'inquiry_id', 'dt' => 0 ),\n array( 'db' => 'inqrefno', 'dt' => 0),\n array( 'db' => 'marco_inqrefno', 'dt' => 1),\n array( 'db' => 'inq_coname', 'dt' => 2),\n array( 'db' => 'inq_coemail', 'dt' => 3),\n array( 'db' => 'inq_coperson', 'dt' => 4),\n array( 'db' => 'inq_address', 'dt' => 5),\n array( 'db' => 'DATE_FORMAT(inq_date_created, \"%d/%m/%Y\")', 'dt' => 6),\n array( 'db' => 'inquiry_id', 'dt' => 7) \n\t\t \n\t\t);\n\n $sql_details = array(\n\t\t\t'user' => $this->db->username,\n\t\t\t'pass' => $this->db->password,\n\t\t\t'db' => $this->db->database,\n\t\t\t'host' => $this->db->hostname\n\t\t);\n\t\t$from='inquiry';\n $where = 'where inquiry_id != \"\" ';\n // $tables[0]['name']='product';\n // $tables[0]['col1']='inquiry.product_id';\n // $tables[0]['col2']='product.product_id';\n\n // $tables[0]['name']='leads';\n // $tables[0]['col1']='inquiry.exist_lead';\n // $tables[0]['col2']='leads.inquiry_id';\n $tables[0]['name']='customers';\n $tables[0]['col1']='inquiry.exist_cust';\n $tables[0]['col2']='customers.customer_id';\n \n if($from1 != '' )\n {\n $where .=\" and inquiry.inq_date_created >= '\".$from1.\"' \";\n }\n if( $to1 != '')\n {\n $where .=\" and inquiry.inq_date_created <= '\".$to1.\"'\";\n }\n if( $status != '')\n {\n $where .=\" and inquiry.inqstatus ='\".$status.\"'\";\n }\n $where .=' group by inquiry_id';\n\n $output_arr = SSP::innerJoin( $_GET, $sql_details, $from,$tables, $primaryKey, $columns, $where, $col_name,$order,$order_type);\n\t\tforeach ($output_arr['data'] as $key => $value) {\n\t\t\t$id = $output_arr['data'][$key][count($output_arr['data'][$key]) - 1];\n\t\t\t$output_arr['data'][$key][count($output_arr['data'][$key]) - 1] = '';\n\t\t\t\n\t\t\t$usertype =$this->session->get_userdata()['user_details'][0]->user_type; \n // if($usertype=='admin' || $usertype=='Manager'){\n\t\t\t$output_arr['data'][$key][count($output_arr['data'][$key]) - 1] .= '<a id=\"btnEditRow\" class=\"inquiryModalButton mClass\" href=\"javascript:;\" type=\"button\" data-src=\"'.$id.'\" title=\"Edit\"><i class=\"fa fa-pencil\" data-id=\"\"></i></a>';\n\t\t\t // }\n\t\t\t$output_arr['data'][$key][count($output_arr['data'][$key]) - 1] .= '<a id=\"btnViewRow\" class=\"inquiryModalButtonView mClass\" href=\"javascript:;\" type=\"button\" data-src=\"'.$id.'\" title=\"View\"><i class=\"fa fa-eye\" data-id=\"\"></i></a>';\n\t\t\t\n\t\t\t$usertype =$this->session->get_userdata()['user_details'][0]->user_type; \n // if($usertype=='admin' || $usertype=='Manager'){\n // $output_arr['data'][$key][count($output_arr['data'][$key]) - 1] .= '<a id=\"btnViewRow\" class=\"inquiryModalButtonConfirm mClass\" href=\"javascript:;\" type=\"button\" data-src=\"'.$id.'\" title=\"Confirm Order\"><i class=\"fa fa-check-circle-o\" data-id=\"\"></i></a>';\n // }\n\n // $output_arr['data'][$key][count($output_arr['data'][$key]) - 1] .= '<a id=\"\" class=\" mClass\" href=\"'.base_url().'inquiry/Confirm/'.$id.'\" type=\"button\" data-src=\"'.$id.'\" title=\"Confirm\"><i class=\"fa fa-check-circle-o \" data-id=\"\"></i></a>';\n\n\t\t\t\n\t\t\t $output_arr['data'][$key][count($output_arr['data'][$key]) - 1] .= '<a style=\"cursor:pointer;\" data-toggle=\"modal\" class=\"mClass\" onclick=\"setId('.$id.', \\'inquiry\\')\" data-target=\"#cnfrm_delete\" title=\"delete\"><i class=\"fa fa-trash-o\" ></i></a>';\n\t\t\t\n // $output_arr['data'][$key][0] = '<input type=\"checkbox\" name=\"selData\" value=\"'.$output_arr['data'][$key][0].'\">';\n\t\t}\n\t\t\n\t\techo json_encode($output_arr);\n }", "title": "" }, { "docid": "849eebbbc57cef0ce2b02114907f1e96", "score": "0.5929657", "text": "public function getListeHistoriquesConsultations(){\n\t\n\t $db = $this->tableGateway->getAdapter();\n\t $date = (new \\DateTime())->format('Y-m-d');\n\t\n\t $aColumns = array('numero_dossier', 'Nom','Prenom','Datenaissance','Sexe', 'Adresse', 'id', 'id2');\n\t\n\t //Liste des pateints admis aujourdhui et déjà consultés\n\t $sql2 = new Sql ($db );\n\t $subselect2 = $sql2->select()->from(array('cons'=>'consultation'))->columns(array('idpatient'))->where(array('date' => $date));\n\t\n\t //Liste des pateints admis aujourdhui et déjà suivi\n\t $sql3 = new Sql ($db );\n\t $subselect3 = $sql3->select()->from(array('supa'=>'suivi_patient'))->columns(array('idpatient'))->where(array('date' => $date));\n\t\n\t //Liste des patients admis aujourdhui et non encore consultés\n\t $sql = new Sql($db);\n\t $sQuery = $sql->select()\n\t ->from(array('pat' => 'patient'))->columns(array('*'))\n\t ->join(array('pers' => 'personne'), 'pat.idpersonne = pers.ID_PERSONNE' , array('Nom'=>'NOM','Prenom'=>'PRENOM','Datenaissance'=>'DATE_NAISSANCE','Sexe'=>'SEXE','Adresse'=>'ADRESSE','Nationalite'=>'NATIONALITE_ACTUELLE','id'=>'ID_PERSONNE', 'id2'=>'ID_PERSONNE'))\n\t ->join(array('admis' => 'admission'), 'admis.idpatient = pers.ID_PERSONNE' , array('dateadmission','idadmission'))\n\t ->join(array('cons' => 'consultation'), 'cons.idadmission = admis.idadmission', array('Idcons' => 'idcons', 'Date' => 'date') )\n\t ->where(array('dateadmission < ?' => $date, new NotIn ( 'pat.idpersonne', $subselect2 ), new NotIn ( 'pat.idpersonne', $subselect3 )))\n\t ->order('admis.idadmission ASC')\n\t ->group('pat.idpersonne');\n\t\n\t /* Data set length after filtering */\n\t $stat = $sql->prepareStatementForSqlObject($sQuery);\n\t $rResultFt = $stat->execute();\n\t $iFilteredTotal = count($rResultFt);\n\t\n\t $rResult = $rResultFt;\n\t\n\t $output = array(\n\t \"iTotalDisplayRecords\" => $iFilteredTotal,\n\t \"aaData\" => array()\n\t );\n\t\n\t /*\n\t * $Control pour convertir la date en fran�ais\n\t */\n\t $Control = new DateHelper();\n\t \t\n\t /*\n\t * ADRESSE URL RELATIF\n\t */\n\t $baseUrl = $_SERVER['REQUEST_URI'];\n\t $tabURI = explode('public', $baseUrl);\n\t \t\n\t /*\n\t * Pr�parer la liste\n\t */\n\t foreach ( $rResult as $aRow )\n\t {\n\t $row = array();\n\t for ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t {\n\t if ( $aColumns[$i] != ' ' )\n\t {\n\t /* General output */\n\t if ($aColumns[$i] == 'Nom'){\n\t $row[] = \"<div>\".$aRow[ $aColumns[$i]].\"</div>\";\n\t }\n\t\n\t else if ($aColumns[$i] == 'Prenom'){\n\t $row[] = \"<div>\".$aRow[ $aColumns[$i]].\"</div>\";\n\t }\n\t\n\t else if ($aColumns[$i] == 'Datenaissance') {\n\t \t\n\t $date_naissance = $aRow[ $aColumns[$i] ];\n\t if($date_naissance){ $row[] = $Control->convertDate($aRow[ $aColumns[$i] ]); }else{ $row[] = null;}\n\t\n\t }\n\t\n\t else if ($aColumns[$i] == 'Adresse') {\n\t $row[] = \"<div>\".$aRow[ $aColumns[$i] ].\"</div>\";\n\t }\n\t\n\t else if ($aColumns[$i] == 'id') {\n\t $html =\"<infoBulleVue> <a href='\".$tabURI[0].\"public/consultation/visualiser-historique-consultations?idcons=\".$aRow[ 'Idcons' ].\"&idpatient=\".$aRow[ 'id' ].\"'>\";\n\t $html .=\"<img style='display: inline; margin-right: 17%;' src='\".$tabURI[0].\"public/images_icons/voir2.png' title='Visualiser'></a></infoBulleVue>\";\n\t \t\n\t $row[] = $html;\n\t }\n\t\n\t else {\n\t $row[] = $aRow[ $aColumns[$i] ];\n\t }\n\t\n\t }\n\t }\n\t $output['aaData'][] = $row;\n\t }\n\t\n\t return $output;\n\t}", "title": "" }, { "docid": "848c08eaf1c78b3c43d55c1d5a54e97e", "score": "0.5926382", "text": "private function statistic(){\n $date = date(\"Y-m-d\");\n $sql = \"SELECT `stt_id`,`view` FROM `statistic` WHERE `article_id` = '\".$this->id.\"' AND `created_at` = '$date' LIMIT 1\";\n $row = db_get_row($sql);\n if($row){ // neu ton tai\n $sql2 = \"UPDATE `statistic` SET `view` = `view` + '1' WHERE `stt_id` = '\".$row['stt_id'].\"' LIMIT 1\";\n db_execute($sql2);\n }\n else{ // neu khong\n $table = 'statistic';\n $data = array(\n 'stt_id' => null,\n 'article_id' => $this->id,\n 'view' => 1,\n 'created_at' => $date\n );\n db_insert($table,$data);\n }\n }", "title": "" }, { "docid": "297558ae1e01ff63d3fee7688ab10605", "score": "0.59221464", "text": "public function get_datamaster(){\r\n\t\t//only ajax is allowed\r\n\t\tif(!$this->input->is_ajax_request()) show_404();\r\n\r\n\t\t//$this->auth->set_access('view');\r\n\t\t//$this->auth->validate();\r\n\r\n\t\t$filter_cols = array('jur_fakultas' => /*uintval(*/$this->input->post('jur_fakultas')/*, TRUE)*/);\r\n\t\t//$add_where = '';\r\n\t\t//set default where query\r\n\t\t$where = build_masterpage_filter($filter_cols /*, $add_where */);\r\n\r\n\t\t//get data\r\n\t\t$this->m_jurusan->get_datatable($where);\r\n\t}", "title": "" }, { "docid": "5a4f3d4e66aafe56c0fe55cc2c6b484b", "score": "0.5919065", "text": "public function run()\n {\n $datum = [\n ['date' => '2019-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2019-01-14 00:00:00', 'name' => '成人の日'],\n ['date' => '2019-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2019-03-21 00:00:00', 'name' => '春分の日'],\n ['date' => '2019-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2019-04-30 00:00:00', 'name' => '国民の休日'],\n ['date' => '2019-05-01 00:00:00', 'name' => '天皇の即位の日'],\n ['date' => '2019-05-02 00:00:00', 'name' => '国民の休日'],\n ['date' => '2019-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2019-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2019-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2019-05-06 00:00:00', 'name' => '振替休日'],\n ['date' => '2019-07-15 00:00:00', 'name' => '海の日'],\n ['date' => '2019-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2019-08-12 00:00:00', 'name' => '振替休日'],\n ['date' => '2019-09-16 00:00:00', 'name' => '敬老の日'],\n ['date' => '2019-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2019-10-14 00:00:00', 'name' => '体育の日'],\n ['date' => '2019-10-22 00:00:00', 'name' => '即位礼正殿の儀'],\n ['date' => '2019-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2019-11-04 00:00:00', 'name' => '振替休日'],\n ['date' => '2019-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2020-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2020-01-13 00:00:00', 'name' => '成人の日'],\n ['date' => '2020-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2020-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2020-02-24 00:00:00', 'name' => '振替休日'],\n ['date' => '2020-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2020-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2020-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2020-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2020-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2020-05-06 00:00:00', 'name' => '振替休日'],\n ['date' => '2020-07-23 00:00:00', 'name' => '海の日'],\n ['date' => '2020-07-24 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2020-08-10 00:00:00', 'name' => '山の日'],\n ['date' => '2020-09-21 00:00:00', 'name' => '敬老の日'],\n ['date' => '2020-09-22 00:00:00', 'name' => '秋分の日'],\n ['date' => '2020-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2020-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2021-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2021-01-11 00:00:00', 'name' => '成人の日'],\n ['date' => '2021-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2021-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2021-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2021-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2021-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2021-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2021-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2021-07-19 00:00:00', 'name' => '海の日'],\n ['date' => '2021-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2021-09-20 00:00:00', 'name' => '敬老の日'],\n ['date' => '2021-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2021-10-11 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2021-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2021-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2022-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2022-01-10 00:00:00', 'name' => '成人の日'],\n ['date' => '2022-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2022-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2022-03-21 00:00:00', 'name' => '春分の日'],\n ['date' => '2022-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2022-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2022-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2022-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2022-07-18 00:00:00', 'name' => '海の日'],\n ['date' => '2022-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2022-09-19 00:00:00', 'name' => '敬老の日'],\n ['date' => '2022-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2022-10-10 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2022-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2022-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2023-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2023-01-02 00:00:00', 'name' => '振替休日'],\n ['date' => '2023-01-09 00:00:00', 'name' => '成人の日'],\n ['date' => '2023-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2023-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2023-03-21 00:00:00', 'name' => '春分の日'],\n ['date' => '2023-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2023-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2023-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2023-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2023-07-17 00:00:00', 'name' => '海の日'],\n ['date' => '2023-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2023-09-18 00:00:00', 'name' => '敬老の日'],\n ['date' => '2023-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2023-10-09 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2023-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2023-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2024-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2024-01-08 00:00:00', 'name' => '成人の日'],\n ['date' => '2024-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2024-02-12 00:00:00', 'name' => '振替休日'],\n ['date' => '2024-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2024-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2024-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2024-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2024-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2024-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2024-05-06 00:00:00', 'name' => '振替休日'],\n ['date' => '2024-07-15 00:00:00', 'name' => '海の日'],\n ['date' => '2024-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2024-08-12 00:00:00', 'name' => '振替休日'],\n ['date' => '2024-09-16 00:00:00', 'name' => '敬老の日'],\n ['date' => '2024-09-22 00:00:00', 'name' => '秋分の日'],\n ['date' => '2024-09-23 00:00:00', 'name' => '振替休日'],\n ['date' => '2024-10-14 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2024-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2024-11-04 00:00:00', 'name' => '振替休日'],\n ['date' => '2024-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2025-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2025-01-13 00:00:00', 'name' => '成人の日'],\n ['date' => '2025-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2025-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2025-02-24 00:00:00', 'name' => '振替休日'],\n ['date' => '2025-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2025-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2025-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2025-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2025-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2025-05-06 00:00:00', 'name' => '振替休日'],\n ['date' => '2025-07-21 00:00:00', 'name' => '海の日'],\n ['date' => '2025-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2025-09-15 00:00:00', 'name' => '敬老の日'],\n ['date' => '2025-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2025-10-13 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2025-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2025-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2025-11-24 00:00:00', 'name' => '振替休日'],\n ['date' => '2026-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2026-01-12 00:00:00', 'name' => '成人の日'],\n ['date' => '2026-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2026-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2026-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2026-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2026-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2026-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2026-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2026-05-06 00:00:00', 'name' => '振替休日'],\n ['date' => '2026-07-20 00:00:00', 'name' => '海の日'],\n ['date' => '2026-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2026-09-21 00:00:00', 'name' => '敬老の日'],\n ['date' => '2026-09-22 00:00:00', 'name' => '国民の休日'],\n ['date' => '2026-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2026-10-12 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2026-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2026-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2027-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2027-01-11 00:00:00', 'name' => '成人の日'],\n ['date' => '2027-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2027-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2027-03-21 00:00:00', 'name' => '春分の日'],\n ['date' => '2027-03-22 00:00:00', 'name' => '振替休日'],\n ['date' => '2027-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2027-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2027-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2027-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2027-07-19 00:00:00', 'name' => '海の日'],\n ['date' => '2027-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2027-09-20 00:00:00', 'name' => '敬老の日'],\n ['date' => '2027-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2027-10-11 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2027-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2027-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2028-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2028-01-10 00:00:00', 'name' => '成人の日'],\n ['date' => '2028-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2028-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2028-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2028-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2028-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2028-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2028-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2028-07-17 00:00:00', 'name' => '海の日'],\n ['date' => '2028-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2028-09-18 00:00:00', 'name' => '敬老の日'],\n ['date' => '2028-09-22 00:00:00', 'name' => '秋分の日'],\n ['date' => '2028-10-09 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2028-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2028-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2029-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2029-01-08 00:00:00', 'name' => '成人の日'],\n ['date' => '2029-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2029-02-12 00:00:00', 'name' => '振替休日'],\n ['date' => '2029-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2029-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2029-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2029-04-30 00:00:00', 'name' => '振替休日'],\n ['date' => '2029-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2029-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2029-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2029-07-16 00:00:00', 'name' => '海の日'],\n ['date' => '2029-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2029-09-17 00:00:00', 'name' => '敬老の日'],\n ['date' => '2029-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2029-09-24 00:00:00', 'name' => '振替休日'],\n ['date' => '2029-10-08 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2029-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2029-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2030-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2030-01-14 00:00:00', 'name' => '成人の日'],\n ['date' => '2030-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2030-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2030-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2030-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2030-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2030-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2030-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2030-05-06 00:00:00', 'name' => '振替休日'],\n ['date' => '2030-07-15 00:00:00', 'name' => '海の日'],\n ['date' => '2030-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2030-08-12 00:00:00', 'name' => '振替休日'],\n ['date' => '2030-09-16 00:00:00', 'name' => '敬老の日'],\n ['date' => '2030-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2030-10-14 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2030-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2030-11-04 00:00:00', 'name' => '振替休日'],\n ['date' => '2030-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2031-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2031-01-13 00:00:00', 'name' => '成人の日'],\n ['date' => '2031-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2031-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2031-02-24 00:00:00', 'name' => '振替休日'],\n ['date' => '2031-03-21 00:00:00', 'name' => '春分の日'],\n ['date' => '2031-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2031-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2031-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2031-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2031-05-06 00:00:00', 'name' => '振替休日'],\n ['date' => '2031-07-21 00:00:00', 'name' => '海の日'],\n ['date' => '2031-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2031-09-15 00:00:00', 'name' => '敬老の日'],\n ['date' => '2031-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2031-10-13 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2031-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2031-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2031-11-24 00:00:00', 'name' => '振替休日'],\n ['date' => '2032-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2032-01-12 00:00:00', 'name' => '成人の日'],\n ['date' => '2032-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2032-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2032-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2032-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2032-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2032-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2032-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2032-07-19 00:00:00', 'name' => '海の日'],\n ['date' => '2032-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2032-09-20 00:00:00', 'name' => '敬老の日'],\n ['date' => '2032-09-21 00:00:00', 'name' => '国民の休日'],\n ['date' => '2032-09-22 00:00:00', 'name' => '秋分の日'],\n ['date' => '2032-10-11 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2032-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2032-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2033-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2033-01-10 00:00:00', 'name' => '成人の日'],\n ['date' => '2033-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2033-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2033-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2033-03-21 00:00:00', 'name' => '振替休日'],\n ['date' => '2033-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2033-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2033-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2033-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2033-07-18 00:00:00', 'name' => '海の日'],\n ['date' => '2033-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2033-09-19 00:00:00', 'name' => '敬老の日'],\n ['date' => '2033-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2033-10-10 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2033-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2033-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2034-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2034-01-02 00:00:00', 'name' => '振替休日'],\n ['date' => '2034-01-09 00:00:00', 'name' => '成人の日'],\n ['date' => '2034-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2034-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2034-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2034-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2034-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2034-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2034-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2034-07-17 00:00:00', 'name' => '海の日'],\n ['date' => '2034-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2034-09-18 00:00:00', 'name' => '敬老の日'],\n ['date' => '2034-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2034-10-09 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2034-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2034-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2035-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2035-01-08 00:00:00', 'name' => '成人の日'],\n ['date' => '2035-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2035-02-12 00:00:00', 'name' => '振替休日'],\n ['date' => '2035-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2035-03-21 00:00:00', 'name' => '春分の日'],\n ['date' => '2035-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2035-04-30 00:00:00', 'name' => '振替休日'],\n ['date' => '2035-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2035-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2035-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2035-07-16 00:00:00', 'name' => '海の日'],\n ['date' => '2035-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2035-09-17 00:00:00', 'name' => '敬老の日'],\n ['date' => '2035-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2035-09-24 00:00:00', 'name' => '振替休日'],\n ['date' => '2035-10-08 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2035-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2035-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2036-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2036-01-14 00:00:00', 'name' => '成人の日'],\n ['date' => '2036-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2036-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2036-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2036-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2036-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2036-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2036-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2036-05-06 00:00:00', 'name' => '振替休日'],\n ['date' => '2036-07-21 00:00:00', 'name' => '海の日'],\n ['date' => '2036-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2036-09-15 00:00:00', 'name' => '敬老の日'],\n ['date' => '2036-09-22 00:00:00', 'name' => '秋分の日'],\n ['date' => '2036-10-13 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2036-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2036-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2036-11-24 00:00:00', 'name' => '振替休日'],\n ['date' => '2037-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2037-01-12 00:00:00', 'name' => '成人の日'],\n ['date' => '2037-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2037-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2037-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2037-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2037-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2037-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2037-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2037-05-06 00:00:00', 'name' => '振替休日'],\n ['date' => '2037-07-20 00:00:00', 'name' => '海の日'],\n ['date' => '2037-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2037-09-21 00:00:00', 'name' => '敬老の日'],\n ['date' => '2037-09-22 00:00:00', 'name' => '国民の休日'],\n ['date' => '2037-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2037-10-12 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2037-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2037-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2038-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2038-01-11 00:00:00', 'name' => '成人の日'],\n ['date' => '2038-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2038-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2038-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2038-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2038-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2038-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2038-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2038-07-19 00:00:00', 'name' => '海の日'],\n ['date' => '2038-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2038-09-20 00:00:00', 'name' => '敬老の日'],\n ['date' => '2038-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2038-10-11 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2038-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2038-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2039-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2039-01-10 00:00:00', 'name' => '成人の日'],\n ['date' => '2039-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2039-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2039-03-21 00:00:00', 'name' => '春分の日'],\n ['date' => '2039-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2039-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2039-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2039-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2039-07-18 00:00:00', 'name' => '海の日'],\n ['date' => '2039-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2039-09-19 00:00:00', 'name' => '敬老の日'],\n ['date' => '2039-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2039-10-10 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2039-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2039-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2040-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2040-01-02 00:00:00', 'name' => '振替休日'],\n ['date' => '2040-01-09 00:00:00', 'name' => '成人の日'],\n ['date' => '2040-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2040-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2040-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2040-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2040-04-30 00:00:00', 'name' => '振替休日'],\n ['date' => '2040-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2040-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2040-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2040-07-16 00:00:00', 'name' => '海の日'],\n ['date' => '2040-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2040-09-17 00:00:00', 'name' => '敬老の日'],\n ['date' => '2040-09-22 00:00:00', 'name' => '秋分の日'],\n ['date' => '2040-10-08 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2040-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2040-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2041-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2041-01-14 00:00:00', 'name' => '成人の日'],\n ['date' => '2041-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2041-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2041-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2041-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2041-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2041-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2041-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2041-05-06 00:00:00', 'name' => '振替休日'],\n ['date' => '2041-07-15 00:00:00', 'name' => '海の日'],\n ['date' => '2041-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2041-08-12 00:00:00', 'name' => '振替休日'],\n ['date' => '2041-09-16 00:00:00', 'name' => '敬老の日'],\n ['date' => '2041-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2041-10-14 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2041-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2041-11-04 00:00:00', 'name' => '振替休日'],\n ['date' => '2041-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2042-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2042-01-13 00:00:00', 'name' => '成人の日'],\n ['date' => '2042-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2042-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2042-02-24 00:00:00', 'name' => '振替休日'],\n ['date' => '2042-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2042-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2042-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2042-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2042-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2042-05-06 00:00:00', 'name' => '振替休日'],\n ['date' => '2042-07-21 00:00:00', 'name' => '海の日'],\n ['date' => '2042-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2042-09-15 00:00:00', 'name' => '敬老の日'],\n ['date' => '2042-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2042-10-13 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2042-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2042-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2042-11-24 00:00:00', 'name' => '振替休日'],\n ['date' => '2043-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2043-01-12 00:00:00', 'name' => '成人の日'],\n ['date' => '2043-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2043-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2043-03-21 00:00:00', 'name' => '春分の日'],\n ['date' => '2043-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2043-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2043-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2043-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2043-05-06 00:00:00', 'name' => '振替休日'],\n ['date' => '2043-07-20 00:00:00', 'name' => '海の日'],\n ['date' => '2043-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2043-09-21 00:00:00', 'name' => '敬老の日'],\n ['date' => '2043-09-22 00:00:00', 'name' => '国民の休日'],\n ['date' => '2043-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2043-10-12 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2043-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2043-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2044-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2044-01-11 00:00:00', 'name' => '成人の日'],\n ['date' => '2044-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2044-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2044-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2044-03-21 00:00:00', 'name' => '振替休日'],\n ['date' => '2044-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2044-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2044-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2044-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2044-07-18 00:00:00', 'name' => '海の日'],\n ['date' => '2044-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2044-09-19 00:00:00', 'name' => '敬老の日'],\n ['date' => '2044-09-22 00:00:00', 'name' => '秋分の日'],\n ['date' => '2044-10-10 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2044-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2044-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2045-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2045-01-02 00:00:00', 'name' => '振替休日'],\n ['date' => '2045-01-09 00:00:00', 'name' => '成人の日'],\n ['date' => '2045-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2045-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2045-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2045-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2045-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2045-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2045-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2045-07-17 00:00:00', 'name' => '海の日'],\n ['date' => '2045-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2045-09-18 00:00:00', 'name' => '敬老の日'],\n ['date' => '2045-09-22 00:00:00', 'name' => '秋分の日'],\n ['date' => '2045-10-09 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2045-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2045-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2046-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2046-01-08 00:00:00', 'name' => '成人の日'],\n ['date' => '2046-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2046-02-12 00:00:00', 'name' => '振替休日'],\n ['date' => '2046-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2046-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2046-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2046-04-30 00:00:00', 'name' => '振替休日'],\n ['date' => '2046-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2046-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2046-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2046-07-16 00:00:00', 'name' => '海の日'],\n ['date' => '2046-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2046-09-17 00:00:00', 'name' => '敬老の日'],\n ['date' => '2046-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2046-09-24 00:00:00', 'name' => '振替休日'],\n ['date' => '2046-10-08 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2046-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2046-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2047-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2047-01-14 00:00:00', 'name' => '成人の日'],\n ['date' => '2047-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2047-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2047-03-21 00:00:00', 'name' => '春分の日'],\n ['date' => '2047-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2047-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2047-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2047-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2047-05-06 00:00:00', 'name' => '振替休日'],\n ['date' => '2047-07-15 00:00:00', 'name' => '海の日'],\n ['date' => '2047-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2047-08-12 00:00:00', 'name' => '振替休日'],\n ['date' => '2047-09-16 00:00:00', 'name' => '敬老の日'],\n ['date' => '2047-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2047-10-14 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2047-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2047-11-04 00:00:00', 'name' => '振替休日'],\n ['date' => '2047-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2048-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2048-01-13 00:00:00', 'name' => '成人の日'],\n ['date' => '2048-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2048-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2048-02-24 00:00:00', 'name' => '振替休日'],\n ['date' => '2048-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2048-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2048-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2048-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2048-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2048-05-06 00:00:00', 'name' => '振替休日'],\n ['date' => '2048-07-20 00:00:00', 'name' => '海の日'],\n ['date' => '2048-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2048-09-21 00:00:00', 'name' => '敬老の日'],\n ['date' => '2048-09-22 00:00:00', 'name' => '秋分の日'],\n ['date' => '2048-10-12 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2048-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2048-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2049-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2049-01-11 00:00:00', 'name' => '成人の日'],\n ['date' => '2049-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2049-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2049-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2049-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2049-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2049-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2049-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2049-07-19 00:00:00', 'name' => '海の日'],\n ['date' => '2049-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2049-09-20 00:00:00', 'name' => '敬老の日'],\n ['date' => '2049-09-21 00:00:00', 'name' => '国民の休日'],\n ['date' => '2049-09-22 00:00:00', 'name' => '秋分の日'],\n ['date' => '2049-10-11 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2049-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2049-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ['date' => '2050-01-01 00:00:00', 'name' => '元日'],\n ['date' => '2050-01-10 00:00:00', 'name' => '成人の日'],\n ['date' => '2050-02-11 00:00:00', 'name' => '建国記念の日'],\n ['date' => '2050-02-23 00:00:00', 'name' => '天皇誕生日'],\n ['date' => '2050-03-20 00:00:00', 'name' => '春分の日'],\n ['date' => '2050-03-21 00:00:00', 'name' => '振替休日'],\n ['date' => '2050-04-29 00:00:00', 'name' => '昭和の日'],\n ['date' => '2050-05-03 00:00:00', 'name' => '憲法記念日'],\n ['date' => '2050-05-04 00:00:00', 'name' => 'みどりの日'],\n ['date' => '2050-05-05 00:00:00', 'name' => 'こどもの日'],\n ['date' => '2050-07-18 00:00:00', 'name' => '海の日'],\n ['date' => '2050-08-11 00:00:00', 'name' => '山の日'],\n ['date' => '2050-09-19 00:00:00', 'name' => '敬老の日'],\n ['date' => '2050-09-23 00:00:00', 'name' => '秋分の日'],\n ['date' => '2050-10-10 00:00:00', 'name' => 'スポーツの日'],\n ['date' => '2050-11-03 00:00:00', 'name' => '文化の日'],\n ['date' => '2050-11-23 00:00:00', 'name' => '勤労感謝の日'],\n ];\n DB::table('holidays')->insert($datum);\n }", "title": "" }, { "docid": "ff5fe1017fdd736daab39bc4242babaa", "score": "0.5917996", "text": "function get_dumpData($fromdate,$todate,$tb_name)\n{\n $t_unique_id = substr($tb_name,8);\n // echo \"<pre>\";\n $meta_data = $this->common->getDistinctWhereSelect('form_matadata','label_name,field_name'); // for mata data\n $res_attrubutes = $this->common->getDistinctWhereSelect('template','t_att_name,t_att_id',['t_unique_id'=>$t_unique_id]); /// for attributes\n // print_r($res_attrubutes);die;\n $res_category = $this->common->getDistinctWhereSelect('template','t_cat_name,t_cat_id',['t_unique_id'=>$t_unique_id,'t_cat_id!='=>'cat1','t_cat_name!='=>'blank_sec']); /// for cat\n $meta_data_fields = '';\n foreach($meta_data as $value){\n $meta_data_fields.=$value['field_name'].\" as '\".$value['label_name'].\"',\";\n }\n foreach($res_attrubutes as $value){\n $meta_data_fields.=$value['t_att_id'].\" as '\".str_replace(\"'\",'`',$value['t_att_name']).\"',\";\n }\n foreach($res_category as $value){\n $meta_data_fields.=$value['t_cat_id'].\" as '\".str_replace(\"'\",'`',$value['t_cat_name']).\"',\";\n }\n \n //$table = strtolower($form_name);\n $this->db->select($meta_data_fields);\n $this->db->from($tb_name);\n $this->db->where(\"date(submit_time) >=\", date('Y-m-d', strtotime($fromdate)));\n $this->db->where(\"date(submit_time) <=\", date('Y-m-d', strtotime($todate)));\n return $query = $this->db->get(); \n}", "title": "" }, { "docid": "6239e570311da509554bd35d91828cd5", "score": "0.5907345", "text": "public function getToPrintGroupByDate()\n {\n $kezdoOraszam = $this->kezdo_oraszam;\n\n//SELECT timetable.ttdate AS datum, timetable.position AS idopont, timetable.lesson_id AS lesson_id, subjects.name AS tantargy, schoolclasses.name AS osztaly, teachers.name AS tanar FROM timetable LEFT JOIN lessons ON timetable.lesson_id = lessons.id LEFT JOIN teachers ON lessons.teacher_id = teachers.id LEFT JOIN subjects ON lessons.subject_id = subjects.id LEFT JOIN schoolclasses ON lessons.class_id = schoolclasses.id WHERE DATE(datum) >= \"2018-09-03\" AND DATE(datum) <= \"2018-09-04\";\n \n $stmt = $this->db->prepare(\n 'SELECT tt_timetable.ttdate AS datum, tt_timetable.position AS idopont, tt_timetable.lesson_id AS lesson_id, ' .\n 'tt_subjects.id AS tantargyid, tt_subjects.short_name AS tantargy, tt_subjects.name AS tantargy_teljes, ' .\n 'tt_schoolclasses.id AS osztalyid, tt_schoolclasses.short_name AS osztaly, ' . \n 'tt_teachers.name AS tanar, tt_teachers.short_name AS tanar_rovid ' .\n 'FROM tt_timetable ' .\n 'LEFT JOIN tt_lessons ON tt_timetable.lesson_id = tt_lessons.id ' .\n 'LEFT JOIN tt_teachers ON tt_lessons.teacher_id = tt_teachers.id ' .\n 'LEFT JOIN tt_subjects ON tt_lessons.subject_id = tt_subjects.id ' .\n 'LEFT JOIN tt_schoolclasses ON tt_lessons.class_id = tt_schoolclasses.id ' .\n 'WHERE tt_timetable.season_id = ' . $this->season_id . ';');\n $stmt->execute();\n $temp = $stmt->fetchAll(\\PDO::FETCH_ASSOC);\n \n // seged felepitese: [datum][osztaly][ora] = array('tanar' => '', 'tantargy' => '', 'lessonid' => '')\n $seged = array();\n foreach($temp as $v) {\n $d = new \\DateTime($v['datum']);\n \n $dateid = $d->format('Y.m.d');\n $ora = $kezdoOraszam + $v['idopont'];\n \n if ( !isset($seged[$dateid])) $seged[$dateid] = array();\n if ( !isset($seged[$dateid][$v['osztalyid']])) $seged[$dateid][$v['osztalyid']] = array();\n\n if ( !isset($seged[$dateid][$v['osztalyid']][$ora])) $seged[$dateid][$v['osztalyid']][$ora] = array();\n $seged[$dateid][$v['osztalyid']][$ora]['osztaly'] = $v['osztaly']; \n $seged[$dateid][$v['osztalyid']][$ora]['lessonid'] = $v['lesson_id']; \n $seged[$dateid][$v['osztalyid']][$ora]['tanar'] = $v['tanar']; \n $seged[$dateid][$v['osztalyid']][$ora]['tanar_rovid'] = $v['tanar_rovid']; \n $seged[$dateid][$v['osztalyid']][$ora]['tantargyid'] = $v['tantargyid']; \n $seged[$dateid][$v['osztalyid']][$ora]['tantargy'] = $v['tantargy']; \n $seged[$dateid][$v['osztalyid']][$ora]['tantargy_teljes'] = $v['tantargy_teljes']; \n }\n \n $result = array();\n foreach($seged as $dateid => $datumResz)\n {\n if ( !isset($result[$dateid])) $result[$dateid] = array();\n \n foreach($datumResz as $osztalyid => $osztalyResz)\n {\n if ( !isset($result[$dateid][$osztalyid])) $result[$dateid][$osztalyid] = array();\n \n $prevLessonid = -1;\n $prevLessontime = -1;\n $current = null;\n \n foreach($osztalyResz as $ora => $adatok)\n {\n if ($prevLessonid == -1) {\n // uj \n $prevLessonid = $adatok['lessonid'];\n $current = array(\n 'osztaly' => $adatok['osztaly'],\n 'kezdes' => $ora,\n 'vege' => (int)$ora,\n 'tanar' => $adatok['tanar'],\n 'tanar_rovid' => $adatok['tanar_rovid'],\n 'tantargyid' => $adatok['tantargyid'],\n 'tantargy' => $adatok['tantargy'],\n 'tantargy_teljes' => $adatok['tantargy_teljes']\n );\n }\n else {\n if ($prevLessonid == $adatok['lessonid'] && $prevLessontime + 1 == $ora) {\n $current['vege'] += 1;\n }\n else {\n // elozo mentese\n $result[$dateid][$osztalyid][] = $current;\n // uj\n $prevLessonid = $adatok['lessonid'];\n $current = array(\n 'osztaly' => $adatok['osztaly'],\n 'kezdes' => $ora,\n 'vege' => (int)$ora,\n 'tanar' => $adatok['tanar'],\n 'tanar_rovid' => $adatok['tanar_rovid'],\n 'tantargyid' => $adatok['tantargyid'],\n 'tantargy' => $adatok['tantargy'],\n 'tantargy_teljes' => $adatok['tantargy_teljes']\n );\n }\n }\n \n $prevLessontime = (int)$ora;\n }\n \n if ($current != NULL) {\n $result[$dateid][$osztalyid][] = $current;\n }\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "5406d557bfe77b14d3d4ad7687fbb114", "score": "0.5905993", "text": "function getData($params = null)\r\n {\r\n $str = \"\";\r\n $cat_str = \"\";\r\n\r\n if ($params) {\r\n $date = date(\"y-m-d\");\r\n if ($params != 'all') {\r\n $cat_str = \"id_pelanggan = AND \";\r\n }\r\n // $str = \"WHERE $cat_str tgl_barang BETWEEN '$from' AND '$to'\";\r\n }\r\n\r\n $query = \"SELECT * FROM \".$this->table.\" $str\";\r\n\r\n $result = $this->getRecordset($query);\r\n return $result;\r\n }", "title": "" }, { "docid": "3d42eb6359416a260ae1f8a28ea3907a", "score": "0.5903428", "text": "public function index()\n\t{\n\t\t$result=$this->Simplitri_Model->select_all_contenant();\n\t\tforeach ($result->result() as $row)\n\t\t{\n\t\t\t/*$data_table['table_data_build'][]=(array(\n\t\t\t\t'num_contenant'=>'aaa',\n\t\t\t\t'num_fa'=>'bbb',\n\t\t\t\t'date_reception'=>'05/06/2017',\n\t\t \t'date_cloture'=>'15/06/2017',\n\t\t \t'presence_cel'=>'OUI',\n\t\t \t'nb_tn'=>'1',\n\t\t \t'nb_tne'=>'2',\n\t\t \t'nb_t1'=>'3',\n\t\t \t'nb_t2'=>'4',\n\t\t \t'nb_t3'=>'5',\n\t\t \t'nb_celn'=>'6',\n\t\t \t'nb_celne'=>'7',\n\t\t \t'nb_cel1'=>'8',\n\t\t \t'nb_cel2'=>'9',\n\t\t \t'nb_cel3'=>'10',\n\t\t\t));*/\n\t\t\t$data_table['table_data_build'][]=(array(\n\t\t\t\t'num_contenant'=>$row->contenant_num,\n\t\t\t\t'num_fa'=>$row->fa_num,\n\t\t\t\t'date_reception'=>$row->contenant_create_date,\n\t\t \t'date_cloture'=>$row->contenant_close_date,\n\t\t \t'presence_cel'=>$row->contenant_cel_bool,\n\t\t \t'nb_tn'=>$row->contenant_laser_n,\n\t\t \t'nb_tne'=>$row->contenant_laser_ne,\n\t\t \t'nb_t1'=>$row->contenant_laser_1,\n\t\t \t'nb_t2'=>$row->contenant_laser_2,\n\t\t \t'nb_t3'=>$row->contenant_laser_3,\n\t\t \t'nb_celn'=>$row->contenant_cel_n,\n\t\t \t'nb_celne'=>$row->contenant_cel_ne,\n\t\t \t'nb_cel1'=>$row->contenant_cel_1,\n\t\t \t'nb_cel2'=>$row->contenant_cel_2,\n\t\t \t'nb_cel3'=>$row->contenant_cel_3,\n\t\t\t));\n\t\t}\n\t\t$this->data['table_data'] = $this->parser->parse('suivi_fa/table', $data_table, true);\n\n $this->data['title'] = '';\n\t\t$this->data['pagetitle'] = 'Simplitri';\n $this->data['welcome_message'] = 'Bienvenue sur Simplitri';\n $this->data['pagebody'] = 'suivi_fa/suivi';\n $this->data['maintitle'] = 'Suivi';\n\n\t\t//$this->data['bdd_data'] = $this->Simplitri_Model->select_num_ecobox('ADB 17/S18/10');\n\n\n\t\t$this->render();\n\t}", "title": "" }, { "docid": "cc1c5e4e9f9c5e886d56763953c47255", "score": "0.5902432", "text": "public function fetch_recent_daily_data($filter_data = array()) {\n if (isset($filter_data['work_date']) && $filter_data['work_date'] != '') {\n $this->db->where(\"DATE(tstc.work_datetime) = '{$filter_data['work_date']}'\", NULL, FALSE);\n }\n\n if (isset($filter_data['str_date_time']) && isset($filter_data['end_date_time'])) {\n $this->db->where(\"(DATE(tstc.work_datetime) >= '\" . date(DB_DF, strtotime($filter_data['str_date_time'])) . \"' and DATE(tstc.work_datetime) <= '\" . date(DB_DF, strtotime($filter_data['end_date_time'])) . \"')\", NULL, FALSE);\n }\n\n if (isset($filter_data['Add_User']) && $filter_data['Add_User'] != '0') {\n $this->db->where(array(\"tstc.Add_User\" => $filter_data['Add_User']));\n }\n if (isset($filter_data['approved'])) {\n $this->db->where(array(\"tstc.approved\" => $filter_data['approved']));\n }\n\n if (isset($filter_data['sub_task_id']) && $filter_data['sub_task_id'] != \"0\") {\n $this->db->where(\"tstc.tstm_id\", $filter_data['sub_task_id']);\n }\n $this->db->select(\"tst.tstm_id,tst.tstm_name,tm.tm_name, tm.end_date, e.Emp_Name as entryBy,client.Emp_Name as client_name, ta.attach_original_name, tstc.comment_id,tstc.efforts,tstc.approved,tstc.completed,DATE_FORMAT(tstc.work_datetime, '%d-%m-%Y') as work_date,tstc.comment,DATE_FORMAT(tstc.Add_DateTime, '%d-%m-%Y @ %h:%i %p') as EntryTime\", FALSE)->from(DB_PREFIX . \"task_sub_task_comments as tstc\");\n $this->db->join(DB_PREFIX . \"task_sub_task as tst\", \"tstc.tstm_id=tst.tstm_id\", 'left');\n $this->db->join(DB_PREFIX . \"task_mst as tm\", \"tst.tm_id=tm.tm_id\", 'left');\n $this->db->join(DB_PREFIX . \"employee client\", \"client.Emp_ID = tm.client_id\", \"left\");\n $this->db->join(DB_PREFIX . \"employee e\", \"tstc.Add_User = e.Emp_ID\", \"left\");\n $this->db->join(DB_PREFIX . \"task_attachments ta\", \"tstc.comment_id = ta.table_id\", \"left\");\n\n $this->db->order_by(\"tstc.Mode_DateTime\", \"DESC\");\n if (isset($filter_data['limit']))\n $this->db->limit($filter_data['limit'], $filter_data['page']);\n $result = $this->db->get()->result_array();\n //echo $this->db->last_query();\n return $result;\n }", "title": "" }, { "docid": "233d5a071b934864aa4d4b57b9ce6167", "score": "0.5900352", "text": "public function getFromTable()\n {\n $sql = 'SELECT * FROM test_cafedra';\n $stmt = $this->pdo->prepare($sql);\n $stmt->execute();\n while ($row = $stmt->fetch()) {\n echo $row['name_cafedra'] . ' ' . $row['groups_cafedra'] . '<br>';\n }\n }", "title": "" }, { "docid": "9ef444f9479969b2ec6cdcf11f18b5ee", "score": "0.58966726", "text": "public static function action_index()\n\t{\n\t\t$param['kieu_xe']='';\n\t\t$param['so_km']='';\t\t\n\t\t$param['taixe_annghi']='';\n\t\t\t\n\t\t$param['ngay_di'] = $param['ngay_ve']= date('d/m/Y');\n\t\t$param['gio_di'] = $param['gio_ve'] = date('g');\n\t\t$param['phut_di'] = $param['phut_ve'] = date('i');\n\t\t$param['ampm_di'] = $param['ampm_ve'] = date('A');\n\t\t$param['step'] = 1;\n\t\t//$model = new Datxe_model();\n\t\t//$rows = $model->get_news_all();\t\t\n\t\treturn ACWView::template('datxe.html',$param );\n\t}", "title": "" }, { "docid": "4e4a0b54a9ef17248a20448eac0ab726", "score": "0.58963066", "text": "function infoPelamar($num,$offset)\n\t{\n\t$this->db->select('a.noDaftar,a.posisi, a.statusUndangan, b.nama, b.email, b.hp, c.pathIjazah, d.pathNilai, e.pathSurat, f.pathKtp, g.pathNPWP, h.pathKK, i.pathCV, DATE_FORMAT(a.tglLamar, \"%d-%m-%Y\") day',false);//select your colum as new column name wich is converted as str ot date\n\t\t//yo can do select more.\n\t\t$this->db->from('data_lamaran a'); \n\t\t$this->db->join('data_diri b', 'b.noDaftar=a.noDaftar', 'left');\t\t\n\t\t$this->db->join('dokumen_ijazah c', 'c.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_nilai d', 'd.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_surat e', 'e.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_ktp f', 'f.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_npwp g', 'g.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_kk h', 'h.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_cv i', 'i.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->where('statusLamaran',1);\n\t\t$this->db->order_by('day','DESC');\n\t\t$query = $this->db->get(); \n if($query->num_rows() != 0)\n {\n return $query->result();\n }\n else\n {\n return false;\n }\n\t}", "title": "" }, { "docid": "851792b5b0fd3d978f4bab662a94b1a1", "score": "0.58786887", "text": "public function gettemporal(){\n $starsoft=$this->load->database('starsoft',TRUE);\n $starsoft->DISTINCT();\n $starsoft->select(\"CODIGO DECODIGO,SERIE DESERIE,CANTIDAD DECANTID,MAQUINA,DOC_REF,idsolicitante,area\");\n $starsoft->from('004BDAPLICACION..CARGA_EXCEL2');\n $starsoft->where('IDUSUARIO',$this->session->userdata('user_id'));\n $starsoft->where('CODIGO is not null');\n $query=$starsoft->get();\n\n return $query->result();\n }", "title": "" }, { "docid": "66f146202069c463547f03f72655da1e", "score": "0.587793", "text": "public function list() \n {\n$data =DB::table('test_info_tab')\n->select('test_info_tab.test_name as title','test_info_tab.test_info_id as infoID','test_info_tab.pic','test_info_tab.enroll_stud_count as count',\n'test_info_tab.test_price as price','test_info_tab.marks_on_correct','test_info_tab.marks_on_incorrect','package_tab.subcat_name as package',\n'test_info_tab.status','test_info_tab.expDate')\n->join('package_tab','package_tab.package_id','=','test_info_tab.package_id')\n->get();\nreturn $data;\n }", "title": "" }, { "docid": "b252dce2e8cbec8849b0ac9ad8c8955c", "score": "0.5853634", "text": "function selectSale($exps_code,$start_date,$end_date)\n{\n\tglobal $thead, $connect;\n\t$selSql=\"select * from toto_exp where `exps_code` = '\".$exps_code.\"' and `reg_date` between '\".$start_date.\"' and '\".$end_date.\"' order by reg_date asc\";\n\t$result = mysql_query($selSql, $connect); \n\t$total = mysql_num_rows($result); // 총 레코드 수\n\t$num=$total;\n\t$updated=$thead[$exps_code].'<tbody>';\nwhile($total--){\n\t$row = mysql_fetch_row($result);\n\t\n\t$selSql2=\"select `exps_sort`, `exps_name` from toto_expc where `exps_cate` = '\".$row[3].\"'\";\n\t$result2 = mysql_query($selSql2, $connect); \n\t$row2 = mysql_fetch_row($result2);\n\t\n\t$reg_date=substr($row[7],2,2);\n\t$reg_date=$reg_date.\"-\".substr($row[7],4,2);\n\t$reg_date=$reg_date.\"-\".substr($row[7],6,2);\n\n\n//// 소계 출력 2011-04-16\n\tif($reg_date==$pre_date || $pre_date==\"\"){\n\t\t$sum_date=$sum_date+$row[6];\n\t}else{\n\t\tif($sum_date==0)\n\t\t\t$sum_date=$pre_val;\n\t\t$updated=$updated.'<tr>';\n\t\t$updated=$updated.'<td class=\"summ\">'.$pre_date.'</td>';\n\t\t$updated=$updated.'<td class=\"summ\">소계</td>';\n\t\t$updated=$updated.'<td class=\"summ\" colspan=\"4\">'.comma($sum_date).'</td>\n\t\t</tr>';\n\t\t$sum=$sum+$sum_date;\n\t\t$sum_date=$row[6];\n\t}\n\n\n\tif(($num-$total)%5){\n\t\t$ts=\"tdStyle\";\n\t}else{\n\t\t$ts=\"tdStyle\";\n\t}\n\t$updated=$updated.'<tr>\n\t<td class=\"'.$ts.'\">'.$reg_date.'</td>';\n\t$updated=$updated.'<td class=\"'.$ts.'\">'.$row2[0].'</td>';\n\t$updated=$updated.'<td class=\"'.$ts.'\">'.$row2[1].'</td>';\n\t$updated=$updated.'<td class=\"'.$ts.'\">'.$row[4].'</td>';\n\t$updated=$updated.'<td class=\"'.$ts.'\">'.$row[5].'</td>';\n\t$updated=$updated.'<td class=\"'.$ts.'\">'.comma($row[6]).'</td>\n\t</tr>';\n// 오류 수정 2011-08-02\n\t\tif($total==0){\n\t\t\tif($reg_date==$pre_date){\n\t\t\t\t$sum_date=$sum_date+$row[6];\n\t\t\t}\n\t\t\t$last=$last.'<tr>';\n\t\t\t$last=$last.'<td class=\"summ\">'.$pre_date.'</td>';\n\t\t\t$last=$last.'<td class=\"summ\">소계</td>';\n\t\t\t$last=$last.'<td class=\"summ\" colspan=\"4\">'.comma($sum_date).'</td>\n\t\t\t</tr>';\n\t\t\t$sum=$sum+$sum_date;\n\t\t\t$last=$last.'<tr>';\n\t\t\t$last=$last.'<td class=\"summ\">지출</td>';\n\t\t\t$last=$last.'<td class=\"summ\">합계</td>';\n\t\t\t$last=$last.'<td class=\"summ\" colspan=\"4\">'.comma($sum).'</td>\n\t\t\t</tr>';\n\t\t}\n\n\t$pre_date=$reg_date;\n\t$pre_val=$row[6];\n\n\t}\n\tif($num==0){\n\t\t$updated=$updated.'<tr><td colspan=\"6\">자료가 없습니다</td></tr>';\n\t}\n\t$updated=$updated.$last.\"</table>\";\n\treturn $updated;\n}", "title": "" }, { "docid": "3df2a2d7d8b15bbcea7ee4289d2fecf5", "score": "0.58497375", "text": "public function run() {\n $today = new DateTime('2010-01-01 08:00:00');\n $list = [\n [\n 'xx_ma' => 1,\n 'xx_ten' => \"Nhập khẩu Mỹ\",\n 'xx_taoMoi' => $today->format('Y-m-d H:i:s'),\n 'xx_capNhat' => $today->format('Y-m-d H:i:s')\n ],\n [\n 'xx_ma' => 2,\n 'xx_ten' => \"Lắp ráp trong nước\",\n 'xx_taoMoi' => $today->format('Y-m-d H:i:s'),\n 'xx_capNhat' => $today->format('Y-m-d H:i:s')\n ],\n [\n 'xx_ma' => 3,\n 'xx_ten' => \"Nhập khẩu Trung Quốc\",\n 'xx_taoMoi' => $today->format('Y-m-d H:i:s'),\n 'xx_capNhat' => $today->format('Y-m-d H:i:s')\n ],\n [\n 'xx_ma' => 4,\n 'xx_ten' => \"Nhập khẩu Đài loan\",\n 'xx_taoMoi' => $today->format('Y-m-d H:i:s'),\n 'xx_capNhat' => $today->format('Y-m-d H:i:s')\n ],\n [\n 'xx_ma' => 5,\n 'xx_ten' => \"Nhập khẩu Hàn Quốc\",\n 'xx_taoMoi' => $today->format('Y-m-d H:i:s'),\n 'xx_capNhat' => $today->format('Y-m-d H:i:s')\n ],\n [\n 'xx_ma' => 6,\n 'xx_ten' => \"Nhập khẩu Nhật Bản\",\n 'xx_taoMoi' => $today->format('Y-m-d H:i:s'),\n 'xx_capNhat' => $today->format('Y-m-d H:i:s')\n ],\n [\n 'xx_ma' => 7,\n 'xx_ten' => \"Sản xuât trong nước\",\n 'xx_taoMoi' => $today->format('Y-m-d H:i:s'),\n 'xx_capNhat' => $today->format('Y-m-d H:i:s')\n ]\n ];\n DB::table('cusc_xuatxu')->insert($list);\n }", "title": "" }, { "docid": "f2e0d74f64321b2f3bceaf1acc7ca4a4", "score": "0.5849417", "text": "public function get_all_mcu(){\n \n\t$query = $this->db->query(\"select *,case when gender = '1' then 'Pria' else 'Wanita' end as genderstatus,date_format(start_date,'%d %M %Y') as tanggalmasuknya from human_pa_md_emp_personal order by personnel_id asc\");\n\n \treturn $query;\n\t}", "title": "" }, { "docid": "abd825f67ea5ef0a3487716554696a4a", "score": "0.58482724", "text": "public function vDataTable(){\n \n /*Sebagai token yang yang dikrimkan oleh client, dan nantinya akan\n server kirimkan balik. Gunanya untuk memastikan bahwa user mengklik paging\n sesuai dengan urutan yang sebenarnya */\n @$draw=$_REQUEST['draw'];\n \n /*Jumlah baris yang akan ditampilkan pada setiap page*/\n @$length=$_REQUEST['length'];\n \n /*Offset yang akan digunakan untuk memberitahu database\n dari baris mana data yang harus ditampilkan untuk masing masing page\n */\n @$start=$_REQUEST['start'];\n \n /*Keyword yang diketikan oleh user pada field pencarian*/\n @$search=$_REQUEST['search'][\"value\"];\n \n /*Menghitung total desa didalam database*/\n $total=$this->db->where(\"publish\",\"0\")->or_where(\"publish\",\"2\")->from($this->tbl_)->count_all_results();\n \n /*Mempersiapkan array tempat kita akan menampung semua data\n yang nantinya akan server kirimkan ke client*/\n $output=array();\n \n /*Token yang dikrimkan client, akan dikirim balik ke client*/\n $output['draw']=$draw;\n /*\n $output['recordsTotal'] adalah total data sebelum difilter\n $output['recordsFiltered'] adalah total data ketika difilter\n Biasanya kedua duanya bernilai sama, maka kita assignment\n keduaduanya dengan nilai dari $total\n */\n $output['recordsTotal']=$output['recordsFiltered']=$total;\n \n /*disini nantinya akan memuat data yang akan kita tampilkan\n pada table client*/\n $output['data']=array();\n \n /*Jika $search mengandung nilai, berarti user sedang telah\n memasukan keyword didalam filed pencarian*/\n if($search!=\"\"){\n $this->db->like(\"hewanNama\",$search)->or_like(\"hewanKeterangan\",$search);\n }\n\n /*Lanjutkan pencarian ke database*/ \n\n $this->db->join('tb_member','tb_member.memberID=tb_hewan.memberID',\"left\");\n $this->db->join('tb_spesies','tb_spesies.spesiesID=tb_hewan.spesiesID',\"left\");\n $this->db->where(\"publish\",\"0\")->or_where(\"publish\",\"2\");\n $this->db->limit($length,$start);\n /*Urutkan dari alphabet paling terkahir*/\n $this->db->order_by(\"{$this->tbl_}.hewanID\",'DESC');\n $query=$this->db->get($this->tbl_);\n \n /*Ketika dalam mode pencarian, berarti kita harus mengatur kembali nilai\n dari 'recordsTotal' dan 'recordsFiltered' sesuai dengan jumlah baris\n yang mengandung keyword tertentu\n */\n if($search!=\"\"){\n $this->db->like(\"hewanNama\",$search)->or_like(\"hewanKeterangan\",$search);\n $jum=$this->db->get($this->tbl_);\n $output['recordsTotal']=$output['recordsFiltered']=$jum->num_rows();\n }\n \n $nomor_urut=$start+1;\n foreach ($query->result_array() as $data) {\n\n if ($data['publish'] == 1){\n $print = '<span class=\"text-success\"><strong>Data Valid</strong></span>';\n } \n else if($data['publish'] == 0){\n $print = '<span class=\"text-info\">Menunggu Validasi oleh Admin</span>';\n }\n else if($data['publish'] == 2){\n $print = '<span class=\"text-danger\"><strike>Data tidak Valid</strike></span>';\n }\n\n $output['data'][]=array(\n $nomor_urut,\n $data['hewanNama'],\n ($data['spesiesID'] =='' ? '<span class=\"text-info\">Unk</span>':$data['spesiesNama']),\n ($data['memberID'] =='' ? '<span class=\"text-info\">Tanpa Pemilik</span>':$data['memberNamaLengkap']),\n $print,\n \"<a href='\".site_url('verifikasi/preview/hewan/').\"{$data['hewanID']}' class='edit btn btn-sm btn-info waves-effect waves-light'> Preview</a>\n <button class='hapus btn btn-danger btn-sm waves-effect waves-light' gambar-nama='{$data['hewanGambar']}' data-id='{$data['hewanID']}'> Hapus</button>\"\n );\n $nomor_urut++;\n }\n echo json_encode($output);\n }", "title": "" }, { "docid": "103ba28d2d003571faaa082277fa5961", "score": "0.58441657", "text": "function get_dt_kib_d()\n {\n // return $this->db->query(\n // \"SELECT \n // kd_brg, nm_brg, no_reg, luas, thn_pengadaan,\n // st_hak, st_stfkt_tgl, st_stfkt_no, perolehan, harga \n // FROM tbl_pengadaan_aset \n // WHERE jns_brg = '4' \"\n // )->result_array();\n }", "title": "" }, { "docid": "0fc857d14814ceb342b23a1f194e8747", "score": "0.5837651", "text": "function lowonganuser()\n\t{\n\t $this->db->select('posisi,kualifikasi,id_lowongan,str_to_date(tgl_posting, \"%d-%m-%Y\") day',false);\n\t\t$this->db->order_by(\"day\",\"desc\"); \n\t\t$this->db->where('status','1');\n\t\treturn $this->db->get('lowongan')->result();\n\t}", "title": "" }, { "docid": "dd3639ddc7be32249ffaabdb265120e2", "score": "0.5837636", "text": "function get_all() {\n // $result = $this->db2->query(\"SELECT *, DATEDIFF(aplikasi_enddate,CURDATE()) as tempo FROM aplikasi\");\n $this->db2->where(\"hapus\", 0);\n $result = $this->db2->get($this->table);\n return $result->result();\n }", "title": "" }, { "docid": "b3abe36ac190ac877f47ce624097ad87", "score": "0.5831633", "text": "function get_data(){\n $this->db->select('date,head,weight,height');\n $result = $this->db->get_where('updates', array('id' => '985120927'));\n return $result;\n }", "title": "" }, { "docid": "647fe4d8f69a995db892d039fa7222cf", "score": "0.5827785", "text": "function table_list(){\r\n $ut = getUserType();\r\n $rLanguage = CheckLanguageChange();\r\n echo '\r\n <table class=\"rakugo schedule-list\" style=\"float: left; margin-left: 0px; position: relative; top: -20px; border: 0.2em solid #000;\" width = 790>\r\n <thead>\r\n <tr>\r\n <th width=130>' . $rLanguage->text(\"date\") . '</th>\r\n <th width=100>' . $rLanguage->text(\"time\") . '</th>\r\n <th width=250>' . $rLanguage->text(\"title\") . '</th>\r\n <th width=140>' . $rLanguage->text(\"performer\") . '</th>\r\n <th width=0 style=\"position: absolute; left: -9999px;\"></th>\r\n <th width=140>' . $rLanguage->text(\"meeting place\") . '</th>';\r\n if($ut == ADMINISTRATOR) echo '<th width=100>' . $rLanguage->text(\"edit, delete\") . '</th>';\r\n else echo '<th width=100>Nearest</th>'; \r\n echo '\r\n <th width=0 style = \"position: absolute; left: -9999px;\">post</th>\r\n <th width=0 style = \"position: absolute; left: -9999px;\">open</th>\r\n </tr>\r\n </thead>\r\n\r\n <tbody>\r\n ';\r\n $list_event = getResultSet(\"SELECT event_id, event_title, event_post, event_open, event_curtain FROM tbl_event WHERE event_status = 1\");\r\n while($event = mysql_fetch_array($list_event)){\r\n $event = new schedule($event[0]);\r\n $event->search_row($ut);\r\n }\r\n echo '\r\n </tbody>\r\n </table>\r\n ';\r\n }", "title": "" }, { "docid": "c946437ac726e0dfd259ddfe332d45fc", "score": "0.5825514", "text": "function detail_deduction($empcode)\n {\n $CI = get_instance();\n\n //if model has been loaded by controller, you have no to call model anymore\n //$CI->load->model('emp_model');\n\n //call a fucntion of the model\n // mengacu kepada model yang di load saat controller di akses\n $a = $CI->rpt_slip_lembur->detail_lembur($empcode);\n echo \"<table border='1'>\n <tr>\n <th >NIK</th>\n <th >Nama</th>\n <th >Tanggal</th>\n <th width='100' >Kehadiran</th>\n <th width='100' >Overtime</th>\n </tr>\n \";\n foreach ($a as $key) {\n echo \"<tr>\";\n echo \"<td>\".$key['empcode'].\"</td>\";\n echo \"<td>\".$key['empname'].\"</td>\";\n echo \"<td>\".$key['attd_date'].\"</td>\";\n echo \"<td>\".$key['attd_code'].\"</td>\";\n echo \"<td>\".$key['total'].\"</td>\";\n echo \"</tr>\";\n\n }\n echo \"</table>\";\n }", "title": "" }, { "docid": "f67a48b9b425422ecb1f1f2d24fefbcf", "score": "0.58251876", "text": "public function findDateRow()\n {\n }", "title": "" }, { "docid": "df2111adc434a41093484e64c15eba11", "score": "0.5823854", "text": "function getTableData($table,$row,$id,$and='') {\n global $database;\n if ($table=='recipes') {\n $query = mysql_query(\"SELECT *,DATE_FORMAT(addDate,'\".MYSQL_DATE_FORMAT.\"') AS adate FROM \".$database['prefix'].$table.\"\n WHERE $row = '$id'\n $and\n LIMIT 1\n \") or die(mysql_error());\n } else {\n $query = mysql_query(\"SELECT * FROM \".$database['prefix'].$table.\"\n WHERE $row = '$id'\n $and\n LIMIT 1\n \") or die(mysql_error());\n }\n return mysql_fetch_object($query);\n}", "title": "" }, { "docid": "d908bd55b453096ce4d6786b2ab443cd", "score": "0.58213806", "text": "public function index() {\n $data=$this->liturgical->get_all();\n $eve=$this->events->get_all();\n $numero = cal_days_in_month(CAL_GREGORIAN,2 , 2016);\n $fecha_actual =date(\"d\");\n $fecha_num=(int)$fecha_actual;\n $ObtencionPrueba=3;\n $lectures_date=$this->lectures->get_all();\n \"<script>console.log(\".'Coño'.\");<script>\";\n $resultado = array('reader'=>$data\n ,'even'=>$eve\n ,'numero_dias'=>$numero\n ,'fecha_actual'=>$fecha_num\n ,'Prueba'=>$ObtencionPrueba\n ,'leidita'=>$lectures_date);\n $this->load->view('LandingPage/home',$resultado);\n \n\n }", "title": "" }, { "docid": "b1a00d562cee67db071b6c4796e34a7b", "score": "0.58199394", "text": "public function datatable()\n {\n \n $this->datatables->select('id_dominio,descripcion_dominio,sistema_origen,')\n //->unset_column('id_dominio')\n ->add_column('Acciones', get_buttons_4('$1','dominios_transformaciones'),'id_dominio')\n ->from('tb_dominios')\n ->where(array('status_dominio'=>'1'));\n \n echo $this->datatables->generate();\n \n }", "title": "" }, { "docid": "34b0327b749a05f5dfcb55286dd4d11e", "score": "0.5811186", "text": "public function getData(){\n $this->db->order_by('Date', 'desc');\n return $this->db->get('bodyrecord');\n }", "title": "" }, { "docid": "209cae91a546b6507bb067a73eaedd3b", "score": "0.5805771", "text": "function lamaranMasuk()\n\t{\n\t\t$this->db->select('a.noDaftar,a.posisi, b.nama, b.email, b.hp, c.pathIjazah, d.pathNilai, e.pathSurat, f.pathKtp, g.pathNPWP, h.pathKK, i.pathCV, DATE_FORMAT(a.tglLamar, \"%d-%m-%Y\") day',false);//select your colum as new column name wich is converted as str ot date\n\t\t//yo can do select more.\n\t\t//$this->db->from('data_lamaran a'); \n\t\t$this->db->join('data_diri b', 'b.noDaftar=a.noDaftar', 'left');\t\t\n\t\t$this->db->join('dokumen_ijazah c', 'c.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_nilai d', 'd.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_surat e', 'e.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_ktp f', 'f.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_npwp g', 'g.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_kk h', 'h.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_cv i', 'i.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->where('statusLamaran',0);\n\t\t$this->db->order_by('tglLamar','DESC');\n\t\t\n\t\t$query = $this->db->get('data_lamaran a'); \n if($query->num_rows() != 0)\n {\n return $query->result();\n }\n else\n {\n return false;\n }\n\t}", "title": "" }, { "docid": "c02c8537f27b019f8b9158fddc2cdf5c", "score": "0.58017904", "text": "function request_datatable(){\n\t\t/*Offset yang akan digunakan untuk memberitahu database\n\t\t dari baris mana data yang harus ditampilkan untuk masing masing page\n\t\t */\n\t\t$start = $_REQUEST['start'];\t\n\t\t/*Keyword yang diketikan oleh user pada field pencarian*/\n\t\t$keyword = $_REQUEST['search'][\"value\"];\n\t\t/*Sebagai token yang yang dikrimkan oleh client, dan nantinya akan\n\t\t server kirimkan balik. Gunanya untuk memastikan bahwa user mengklik paging\n\t\t sesuai dengan urutan yang sebenarnya */\n\t\t$draw = $_REQUEST['draw'];\t\n\t\t/*asc/desc yg direquest dari client*/\n\t\t$sorting = $_REQUEST['order'][0]['dir'];\t\n\t\t/*index column yg direquest dari client*/\n\t\t$column = $_REQUEST['order'][0]['column'];\t\n\t\t/*Jumlah baris yang akan ditampilkan pada setiap page*/\n\t\t$length = $_REQUEST['length'];\n\t\t\n\t\t//tanggal from index 0 get by id\n\t\t$date_from = $_REQUEST['columns'][0]['search']['value'];\n\t\t//tanggal to index 1 get by id\n\t\t$date_to = $_REQUEST['columns'][1]['search']['value'];\n\t\t$output = array('start'=>$start,'keyword'=>$keyword,\n\t\t\t\t\t 'draw'=>$draw,'sorting'=>$sorting,\n\t\t\t\t\t 'column'=>$column,'length'=>$length,\n\t\t\t\t\t 'date_from'=>$date_from,'date_to'=>$date_to\n\t\t\t\t\n\t\t);\n\t\treturn $output;\n\t}", "title": "" }, { "docid": "6ebcfa6f34a86e6585863fb992a76e17", "score": "0.5791127", "text": "function read()\n {\n $this->db->select('tb.*');\n $this->db->from('t_bintalwaka tb');\n return $this->db->order_by('tahun','ASC')->get();\n }", "title": "" }, { "docid": "c76d945c820b394b8f70ce6c61cef5c1", "score": "0.5789272", "text": "function detail_overtime($empcode, $month, $year)\n {\n $CI = get_instance();\n\n //if model has been loaded by controller, you have no to call model anymore\n //$CI->load->model('emp_model');\n\n //call a fucntion of the model\n // mengacu kepada model yang di load saat controller di akses\n $a = $CI->rpt_slip_lembur->rpt_detail_lembur($empcode, $month, $year);\n echo \"<table border='1' class='slip_kehadiran'>\n <tr>\n <th >No</th>\n <th >NIK</th>\n <th width='200' >Nama</th>\n <th width='60' >Tanggal</th>\n <th >Kehadiran</th>\n <th >Overtime</th>\n <th width='100' >Upah</th>\n </tr>\n \";\n $no = 1;\n foreach ($a as $key) {\n echo \"<tr>\";\n echo \"<td>\".$no.\"</td>\";\n echo \"<td>\".$key['empcode'].\"</td>\";\n echo \"<td>\".$key['empname'].\"</td>\";\n echo \"<td>\".$key['attd_date'].\"</td>\";\n echo \"<td>\".$key['attd_code'].\"</td>\";\n echo \"<td>\".$key['overtime'].\"</td>\";\n echo \"<td>\".$key['total'].\"</td>\";\n echo \"</tr>\";\n $no++;\n }\n echo \"</table>\";\n }", "title": "" }, { "docid": "1251d97af6ecd1eed95d371dc64f963f", "score": "0.5788927", "text": "function test() {\n $this->load->dbutil();\n /* 8**************************8 */\n $prefs = array(\n 'tables' => array('person', 'events'),\n 'ignore' => array(),\n 'format' => 'txt',\n 'filename' => 'mybackup.csv',\n 'add_drop' => TRUE,\n 'add_insert' => TRUE,\n 'newline' => \"\\n\"\n );\n\n $backup = $this->dbutil->backup($prefs);\n /* 8**************************8 */\n\n // Backup your entire database and assign it to a variable\n //$backup = & $this->dbutil->backup();\n // Load the file helper and write the file to your server\n // $this->load->helper('file');\n // write_file('mybackup.sql', $backup);\n // Load the download helper and send the file to your desktop\n $this->load->helper('download');\n force_download('mybackup.csv', $backup);\n\n\n /*\n $result = $this->db->query('SELECT * FROM `person`');\n $fp = fopen('php://output', 'w');\n if ($fp && $result) {\n header('Content-Type: text/csv');\n header('Content-Disposition: attachment; filename=\"export.csv\"');\n while ($row = $result->fetch_array(MYSQLI_NUM)) {\n fputcsv($fp, array_values($row));\n }\n die;\n }\n */\n }", "title": "" }, { "docid": "19d6666a450159e16483f48a69f6656a", "score": "0.5788764", "text": "function get_records(){\n\t\t$output=array();\n\t\t/*data request dari client*/\n\t\t$request = $this->m_master->request_datatable();\n\t\n\t\t/*Token yang dikrimkan client, akan dikirim balik ke client*/\n\t\t$output['draw'] = $request['draw'];\n\t\n\t\t/*\n\t\t $output['recordsTotal'] adalah total data sebelum difilter\n\t\t$output['recordsFiltered'] adalah total data ketika difilter\n\t\tBiasanya kedua duanya bernilai sama pada saat load default(Tanpa filter), maka kita assignment\n\t\tkeduaduanya dengan nilai dari $total\n\t\t*/\n\t\t/*Menghitung total desa didalam database*/\n\t\t$total = count($this->m_master->get_stock_bahan_jadi());\n\t\t$output['recordsTotal']= $output['recordsFiltered'] = $total;\n\t\n\t\t/*disini nantinya akan memuat data yang akan kita tampilkan\n\t\t pada table client*/\n\t\t$output['data'] = array();\n\t\n\t\n\t\t/*\n\t\t * jika keyword tidak kosong, maka menjalankan fungsi search\n\t\t* untuk ditampilkan di datable\n\t\t* */\n\t\tif($request['keyword'] !=\"\"){\n\t\t\t/*menjalankan fungsi filter or_like*/\n\t\t\t$this->m_master->search_like($request['keyword'],$this->column());\n\t\t}\n\t\t/*Pencarian ke database*/\n\t\t$query = $this->m_master->get_stock_bahan_jadi('',$this->column()[$request['column']],$request['sorting'],$request['length'],$request['start']);\n\t\n\t\n\t\t/*Ketika dalam mode pencarian, berarti kita harus\n\t\t 'recordsTotal' dan 'recordsFiltered' sesuai dengan jumlah baris\n\t\tyang mengandung keyword tertentu\n\t\t*/\n\t\tif($request['keyword'] !=\"\"){\n\t\t\t$this->m_master->search_like($request['keyword'],$this->column());\n\t\t\t$total = count($this->m_master->get_stock_bahan_jadi());\n\t\t\t/*total record yg difilter*/\n\t\t\t$output['recordsFiltered'] = $total;\n\t\t}\n\t\t$nomor_urut=$request['start']+1;\n\t\tforeach ($query as $row) {\n\t\t\t//jis barang adalah hardware maka tidak menampilkan lebar dan tinggi bahan jadi\n\t\t\t$lebar = ($row->id_form_order != 'HDW' ) ? $row->lebar_bj : 'N/A';\n\t\t\t$tinggi = ($row->id_form_order != 'HDW' ) ? $row->tinggi_bj : 'N/A';\n\t\t\t$qty_tersedia = ($row->qty_pcs_tersedia > 0) ? '<span class=\"badge badge-success\">'.qty_format($row->qty_pcs_tersedia).'</span>' : '<span class=\"badge badge-important\">'.qty_format($row->qty_pcs_tersedia).'</span>';\n\t\t\t$output['data'][]=array($nomor_urut,\n\t\t\t\t\t$row->label_code_bj,\n\t\t\t\t\t$row->nama_kategori,\n\t\t\t\t\t$row->nama_form,\n\t\t\t\t\t$lebar,\n\t\t\t\t\t$tinggi,\n\t\t\t\t\tqty_format($row->qty_pcs_awal),\n\t\t\t\t\tqty_format($row->qty_pcs_terpakai),\n\t\t\t\t\t$qty_tersedia,\n\t\t\t\t\t$row->nama_warehouse,\n\t\t\t\t\t'<a href=\"'.base_url('bo/'.$this->class.'/form/'.$row->id_stock_bj).'\" title=\"'.$this->config->config['edit'].'\" class=\"btn btn-info btn-circle\"><i class=\"icon-edit\"></i></a>\n\t\t\t\t\t <button title=\"'.$this->config->config['delete'].'\" type=\"button\" id=\"delete\" class=\"btn btn-danger btn-circle\" onclick=\"ajaxDelete(\\''.base_url('bo/'.$this->class.'/delete').'\\',\\''.$row->label_code_bj.'\\',\\'tes\\')\"><i class=\"icon-trash\"></i></button>\n\t\t\t\t\t <button onclick=\"openWin(\\''.$row->label_code_bj.'\\',\\'bj\\')\" title=\"Cetak Barcode\" class=\"btn btn-success btn-circle\"><i class=\"icon-qrcode\"></i></button>'\n\t\t\t);\n\t\t\t$nomor_urut++;\n\t\t}\n\t\techo json_encode($output);\n\t\n\t}", "title": "" }, { "docid": "5b77bf712e9a49eae70bf0a5cdf79012", "score": "0.5784636", "text": "public function index()\n {\n date_default_timezone_set(\"America/Mexico_City\");\n $hoy = date(\"Y-m-j\");\n #$nuevafecha = strtotime ( '-6 hour' , strtotime ( $hoy ) ) ;\n $hoy = date ( 'Y-m-j');\n\n\n $fecha = $hoy;\n $asistencias = DB::table('grupo as g')\n ->select('tc.descripcion','fc.fecha','h.Hora','m.nombre','c.id')\n ->join('fecha_clase as fc','fc.id','=','g.idfecha')\n ->join('clase as c','c.id','=','fc.idclase')\n ->join('tipo_clase as tc','tc.id','=','c.idtipo_clase')\n ->join('maestros as m','m.id','=','c.idmaestro')\n ->join('horarios as h','h.id','=','c.idhorario')\n ->distinct()\n ->where('fc.fecha','=',$fecha)\n ->get();\n\n return Datatables::of(collect($asistencias))->make(true);\n }", "title": "" }, { "docid": "e3b1545319c399e62a7e1a3bf60e7fd4", "score": "0.5782981", "text": "public function getDataDayu(){\r\n \r\n \r\n //$startTime,$endTime,$trendID,$queryPoint,$unitIdPointId\r\n $trendID= request('paramTrendID');\r\n $startTime= request('paramFromDate');\r\n $endTime= request('paramToDate');\r\n $queryPoint= request('queryPoint');\r\n $unitIdPointId= request('unitIdPointId');\r\n \r\n \r\n $sess_emp_id= Auth::user()->id;\r\n $user_mmplant= Session::get('user_mmplant');\r\n \r\n \r\n Log::info(\"Into getDataDayu\");\r\n /*\r\n $query=\"select EvTime, $point from datadayu$unit\r\n WHERE EvTime BETWEEN '$startTime' AND '$endTime'\";\r\n */\r\n $query=\"\r\n select EvTime2 as EvTime,$unitIdPointId from(\r\n SELECT datadayu04.EvTime AS EvTime2\r\n $queryPoint\r\n FROM datadayu04\r\n WHERE datadayu04.EvTime BETWEEN '\".$startTime.\"' and '\".$endTime.\"'\r\n ORDER BY EvTime2\r\n )queryA\r\n \";\r\n \r\n \r\n \r\n $reslutQuery = DB::connection(DBUtils::getDBName())->select($query);\r\n \r\n /*write flie here start.*/\r\n $strFileName = \"webservice/fileTrend/trendJsonDayu-$trendID-$sess_emp_id-$user_mmplant.txt\";\r\n $objCreate = fopen($strFileName, 'w');\r\n if($objCreate){\r\n \r\n $strFileName = \"webservice/fileTrend/trendJsonDayu-$trendID-$sess_emp_id-$user_mmplant.txt\";\r\n $objFopen = fopen($strFileName, 'w');\r\n $strText1 = json_encode($reslutQuery);\r\n fwrite($objFopen, $strText1);\r\n if($objFopen){\r\n echo '[\"createJsonSuccess\"]';\r\n }\r\n else\r\n {\r\n echo '[\"error\"]';\r\n }\r\n \r\n }else{\r\n echo \"File Not Create.\";\r\n } \r\n fclose($objFopen);\r\n /*write flie here end.*/\r\n \r\n \r\n //Example http://localhost:9998/ais/serviceTrend/getDataDayu/D1,D2,D3/04/2014-05-01%2000:00:00/2014-05-05%2005:00:00\r\n }", "title": "" }, { "docid": "cf184bfda3bc9c487f0c521a4255e31b", "score": "0.57795507", "text": "function getdtr($id){\n \t$datenow = date(\"Y-m-d\");\n \t$query = $this->db->query(\"SELECT * FROM attendance WHERE users = '$id' AND date = '$datenow'\");\n \treturn $query->result();\n }", "title": "" }, { "docid": "b43d2badc681f901c5de5167ff43b191", "score": "0.57695323", "text": "function data_table(){\n $aColumns = array( 'guid','code','code','c_name','s_name','date','total_items','total_amt','active_status','quotation_status' );\t\n\t$start = \"\";\n\t\t\t$end=\"\";\n\t\t\n\t\tif ( $this->input->get_post('iDisplayLength') != '-1' )\t{\n\t\t\t$start = $this->input->get_post('iDisplayStart');\n\t\t\t$end=\t $this->input->get_post('iDisplayLength'); \n\t\t}\t\n\t\t$order=\"\";\n\t\tif ( isset( $_GET['iSortCol_0'] ) )\n\t\t{\t\n\t\t\tfor ( $i=0 ; $i<intval($this->input->get_post('iSortingCols') ) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $_GET[ 'bSortable_'.intval($this->input->get_post('iSortCol_'.$i)) ] == \"true\" )\n\t\t\t\t{\n\t\t\t\t\t$order.= $aColumns[ intval( $this->input->get_post('iSortCol_'.$i) ) ].\" \".$this->input->get_post('sSortDir_'.$i ) .\",\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\t\t$order = substr_replace( $order, \"\", -1 );\n\t\t\t\t\t\n\t\t}\n\t\t\n\t\t$like = array();\n\t\t\n\t\t\tif ( $_GET['sSearch'] != \"\" )\n\t\t{\n\t\t$like =array(\n 'po_no'=> $this->input->get_post('sSearch'),\n );\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\t \n\t\t\t$this->load->model('sales')\t ;\n \n\t\t\t $rResult1 = $this->sales->get($end,$start,$like,$this->session->userdata['branch_id']);\n\t\t \n\t\t$iFilteredTotal =$this->sales->count($this->session->userdata['branch_id']);\n\t\t\n\t\t$iTotal =$iFilteredTotal;\n\t\t\n\t\t$output1 = array(\n\t\t\t\"sEcho\" => intval($_GET['sEcho']),\n\t\t\t\"iTotalRecords\" => $iTotal,\n\t\t\t\"iTotalDisplayRecords\" => $iFilteredTotal,\n\t\t\t\"aaData\" => array()\n\t\t);\n\t\tforeach ($rResult1 as $aRow )\n\t\t{\n\t\t\t$row = array();\n\t\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $aColumns[$i] == \"id\" )\n\t\t\t\t{\n\t\t\t\t\t$row[] = ($aRow[ $aColumns[$i] ]==\"0\") ? '-' : $aRow[ $aColumns[$i] ];\n\t\t\t\t}\n\t\t\t\telse if ( $aColumns[$i]== 'date' )\n\t\t\t\t{\n\t\t\t\t\t/* General output */\n\t\t\t\t\t$row[] = date('d-m-Y',$aRow[$aColumns[$i]]);\n\t\t\t\t}\n\t\t\t\telse if ( $aColumns[$i] != ' ' )\n\t\t\t\t{\n\t\t\t\t\t/* General output */\n\t\t\t\t\t$row[] = $aRow[$aColumns[$i]];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\n\t\t$output1['aaData'][] = $row;\n\t\t}\n \n\t\t\n\t\t echo json_encode($output1);\n }", "title": "" }, { "docid": "38a32adf56cd4716342eb66da1707e8b", "score": "0.57695186", "text": "public function get_news()\r\n {\r\n //table.nom_column\r\n $this->db->select ( 'artisan.id as id_artisan_alias,artisan.nombre, artisan.artisan_adress_id,artisan.type_artisan_id,artisan.denomination,artisan.nom_gerant,artisan.prenom_gerant\r\n\t\t\t\t\t,artisan.statut,artisan.siren,artisan.code_activite,artisan.libelle_activite,\r\n\t\t\t\t\tartisan.forme_juridique,artisan.date_immatriculation,artisan.date_derniere_rcs,\r\n\t\t\t\t\tartisan.categorie,artisan.montant_actif_passif,artisan.chiffres_affaires,artisan.tranche_effectif,\r\n\t\t\t\t\tartisan.pres_attestation_immat,artisan.pres_kbis,artisan.pres_services_fiscaux,artisan.pers_attestation_clandestin,\r\n\t\t\t\t\tartisan.pres_attestation_decl_social,artisan.pres_attestation_assurance,artisan.pres_rib\r\n\t\t\t\t\t,adress.id as id_adress_alias,adress.adress1,adress.adress2,adress.lieu_dit,adress.cp,adress.ville,adress.pays,\r\n\t\t\t\t\tadress.phone,adress.cellphone1,adress.cellphone2,adress.fax,adress.mail,adress.mail,adress.site_web\r\n\t\t\t\t\t,type_artisan.id,type_artisan.namee'\r\n\r\n );\r\n\r\n $this->db->join ( 'adress', 'artisan.artisan_adress_id = adress.id' );\r\n $this->db->join ( 'type_artisan', 'artisan.type_artisan_id =type_artisan.id' );\r\n $query = $this->db->get('artisan');\r\n return $query->result();\r\n /*$query = $this->db->get(\"artisan\");\r\n return $query->result();*/\r\n }", "title": "" }, { "docid": "42cf4ca08b31333340f6a5269d8e3e66", "score": "0.5768536", "text": "function pelamarsesuaiposisi($num,$offset,$posisi)\n\t{\n\t\t$this->db->select('a.noDaftar,a.posisi, a.statusUndangan, b.nama, b.email, b.hp, c.pathIjazah, d.pathNilai, e.pathSurat, f.pathKtp, g.pathNPWP, h.pathKK, i.pathCV, DATE_FORMAT(a.tglLamar, \"%d-%m-%Y\") day',false);//select your colum as new column name wich is converted as str ot date\n\t\t//yo can do select more.\n\t\t$this->db->from('data_lamaran a'); \n\t\t$this->db->join('data_diri b', 'b.noDaftar=a.noDaftar', 'left');\t\t\n\t\t$this->db->join('dokumen_ijazah c', 'c.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_nilai d', 'd.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_surat e', 'e.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_ktp f', 'f.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_npwp g', 'g.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_kk h', 'h.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->join('dokumen_cv i', 'i.noDaftar=a.noDaftar', 'left');\n\t\t$this->db->where('statusLamaran',1);\n\t\t$this->db->where('posisi',$posisi);\n\t\t$this->db->order_by('day','DESC');\n\t\t$query = $this->db->get(); \n if($query->num_rows() != 0)\n {\n return $query->result();\n }\n else\n {\n return false;\n }\n\t}", "title": "" }, { "docid": "96da4f6a7cdbe8c60c9858681ae0c7c4", "score": "0.57677144", "text": "function tampil_data(){\n\t\treturn $this->db->query('select * from biodata_pegawai');\n\t}", "title": "" }, { "docid": "2dca94ee4f755a01e93a6e5e2bcd171e", "score": "0.5765429", "text": "function print_news()\n{\n global $CFG, $ME;\n $qid=db_query(\"SELECT\nnews_id as id, title, content, author, email, DATE_FORMAT(date, '%d/%m/%y') AS date,\n TIME_FORMAT(time, '%k:%i:%S %p') AS time\nFROM news ORDER BY news_id DESC\");\n\n include(\"templates/news.php\");\n\n}", "title": "" }, { "docid": "7ebd211c5939b63b7f0809d743744ce0", "score": "0.57653046", "text": "function paiemenentListing()\n {\n $this->db->select('BaseTbl.paiementId , BaseTbl.createdDate , BaseTbl.valeur , BaseTbl.recepteurId , BaseTbl.libele , BaseTbl.reservationId , Recepteur.name recuPar , Reservation.dateFin dateRes , Salles.nom espace , Recepteur.avatar , Client.name clientName ');\n $this->db->from('tbl_paiement as BaseTbl');\n $this->db->join('tbl_reservation as Reservation', 'BaseTbl.reservationId = Reservation.reservationId','left');\n $this->db->join('tbl_users Recepteur', 'BaseTbl.recepteurId = Recepteur.userId','left');\n $this->db->join('tbl_users Client', 'Reservation.clientId = Client.userId','left');\n $this->db->join('tbl_salle as Salles', 'Salles.salleID = Reservation.salleId','left');\n\n \n $this->db->order_by(\"BaseTbl.createdDate DESC\") ; \n\n\n $query = $this->db->get();\n \n $result = $query->result(); \n return $result;\n }", "title": "" }, { "docid": "5b04f8412ce15a54a824cf3f5582e050", "score": "0.5759409", "text": "public function index()\n\t{\n\t\t$id_monhoc=$this->input->get('id_monhoc');\n\t\t$id_nganh=$this->input->get('id_nganh');\n\t\tif ($id_monhoc!=NULL&&$id_nganh!=NULL) {\n\t\t\t$data=$this->Highdecuong_model->get_all('','id,type,link,date_created',['id_monhoc'=>$id_monhoc,'id_nganh'=>$id_nganh]);\n\t\t\tforeach ($data as $key => $value) {\n\t\t\t\t$data[$key]->type2=$data[$key]->type;\n\t\t\t\t$data[$key]->date_created=date(\"d/m/Y H:i\",strtotime($value->date_created));\n\t\t\t\t$data[$key]->type=$data[$key]->type==1?\"Đường dẫn\":\"Tệp đính kèm\";\n\t\t\t}\n\t\t\techo json_encode($data);\t\n\t\t}\n\t}", "title": "" }, { "docid": "6838adc50b7d92250e377df97ff18923", "score": "0.57575125", "text": "public function actionExcel()\n {\n // // $searchModel->id_sekolah = 1; \n // // $idku = Yii::$app->user->identity->id$date ;\n\n // var_dump($tamatsdl);die();\n \n\n\n// $query = \\backend\\models\\Admins::find()\n// ->select('pendidikan.*,keterangan.*') // make sure same column name not there in both table\n// ->leftJoin('pendidikan', 'pendidikan.id_daftar = keterangan.id_daftar')\n// ->where(['keterangan.id_daftar' => 33])\n// ->with('pendidikan')\n// ->asArray()\n// ->all();\n \n\n $pendidikan = Pendidikan::findOne(['id_sekolah'=>1000]);\n $date = $pendidikan->pendidikan_date;\n $tahun = Yii::$app->formatter->asDate($date , 'yyyy');\n $bulan = Yii::$app->formatter->asDate($date , 'MM');\n $hari = Yii::$app->formatter->asDate($date , 'dd');\n $today = date('Y-m-d');\n $todayTgl = date('d');\n $todayMonth = date('Y-m');\n $todayMonthh =date('m');\n // $bulankemarin = date('m'(\"-1 month\", strtotime(date($todayMonthh))));\n $sekarang = Yii::$app->formatter->asDate('now', 'php:Y-m-d');\n $bulanlalu = date('m', strtotime('-1 month', strtotime($sekarang)));\n $blnsekarang = Yii::$app->formatter->asDate('now', 'php:m');\n\n $tidaktamatsdl = Pendidikan::find()\n // ->where(['id_sekolah' => 1000,'id_jurusan'=>1101, 'MONTH(pendidikan_date)' => $bulanlalu])\n ->where(['id_sekolah' => 1000,\n 'id_jurusan'=>1100])\n // 'MONTH(pendidikan_date) >= :userid', [':userid' => $blnsekarang]])\n ->all();\n\n // var_dump($tidaktamatsdl);die;\n \n\n $caripendidikanbulan = (new \\yii\\db\\Query())\n ->select('id_sekolah, pendidikan_date')\n ->from('pendidikan')\n ->where(['id_sekolah' => 1000, 'MONTH(pendidikan_date)' => $bulanlalu])\n ->all();\n\n // -----------------------Tidak tamat SD-------------------------\n $tidaktamatsdl = Pendidikan::find()\n ->where(['id_sekolah' => 1000,'id_jurusan'=>1101, 'MONTH(pendidikan_date)' => $bulanlalu])\n ->count();\n\n $tidaktamatsdp = Pendidikan::find()\n ->where(['id_sekolah' => 1000,'id_jurusan'=>1101, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])\n ->count();\n\n\n\n\n\n\n // \n\n $tamatsdl = Pendidikan::find()->where(['id_sekolah' => 1000,'id_jurusan'=>1102, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])->count();\n $tamatsdp = Pendidikan::find()->where(['id_sekolah' => 1000,'id_jurusan'=>1102, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])->count();\n\n $setingkatsdl = Pendidikan::find()->where(['id_sekolah' => 1000,'id_jurusan'=>1103, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])\n ->count();\n $setingkatsdp = Pendidikan::find()->where(['id_sekolah' => 1000,'id_jurusan'=>1103, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])\n ->count();\n\n \n $smpl = Pendidikan::find()->where(['id_sekolah' => 2000,'id_jurusan'=>2101, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])\n ->count(); \n $smpp = Pendidikan::find()->where(['id_sekolah' => 2000,'id_jurusan'=>2101, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])\n ->count();\n\n $mdsl = Pendidikan::find()->where(['id_sekolah' => 2000,'id_jurusan'=>2102, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])\n ->count(); \n $mdsp = Pendidikan::find()->where(['id_sekolah' => 2000,'id_jurusan'=>2102, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])\n ->count();\n\n\n $sltpkejuruanl = Pendidikan::find()->where(['id_sekolah' => 2000,'id_jurusan'=>2104, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])\n ->count(); \n $sltpkejuruanp = Pendidikan::find()->where(['id_sekolah' => 2000,'id_jurusan'=>2104, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])\n ->count();\n\n\n $sltplainnyal = Pendidikan::find()->where(['id_sekolah' => 2000,'id_jurusan'=>2103, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])->count();\n $sltplainnyap = Pendidikan::find()->where(['id_sekolah' => 2000,'id_jurusan'=>2103, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])->count();\n $sltptakterdefenisil = Pendidikan::find()->where(['id_sekolah' => 2000,'id_jurusan'=>2199, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])->count();\n $sltptakterdefenisip = Pendidikan::find()->where(['id_sekolah' => 2000,'id_jurusan'=>2199, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])->count();\n// ------------------------batas sltp-----------------------------------\n\n $smul = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3801, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])->count();\n $smup = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3801, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])->count();\n$mdal = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3802, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])->count();\n $mdap = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3802, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])->count();\n\n//-------------batas SMU---------------------------------------------------\n\n\n $tbangunanl = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3101, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])->count();\n $tbangunanp = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3101, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])->count();\n $tplumbingl = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3102, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])->count();\n $tplumbingp = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3102, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])->count();\n $tsurveil = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3103, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])->count();\n $tsurveip = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3103, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])->count();\n $tketenagal = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3104, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])->count();\n\n $tketenagap = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3104, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])->count();\n $tpendinginl = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3105, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])->count();\n $tpendinginp = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3105, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])->count();\n $tmesinl = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3106, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])->count();\n $tmesinp = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3106, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])->count();\n $totomotifl = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3107, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])->count();\n $totomotifp = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3107, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])->count();\n $tpesawatl = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3108, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])->count();\n $tpesawatp = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3108, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])->count();\n $tkapall = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3109, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>1])->count();\n $tkapalp = Pendidikan::find()->where(['id_sekolah' => 3000,'id_jurusan'=>3109, 'MONTH(pendidikan_date)' => $bulanlalu,'pendidikan_jkl'=>2])->count();\n // ----------------------------------------------------------\n \n \n return $this->renderAjax('excel', [\n // 'searchModel' => $searchModel,\n // // 'dataProvider' => $dataProvider,\n 'tidaktamatsdl' => $tidaktamatsdl,\n 'tidaktamatsdp' => $tidaktamatsdp,\n 'tamatsdl' => $tamatsdl,\n 'tamatsdp' => $tamatsdp,\n 'setingkatsdl' => $setingkatsdl,\n 'setingkatsdp' => $setingkatsdp,\n\n 'smpl' => $smpl,\n 'smpp' => $smpp,\n 'mdsl' => $mdsl,\n 'mdsp' => $mdsp,\n 'sltpkejuruanl' => $sltpkejuruanl,\n 'sltpkejuruanp' => $sltpkejuruanp,\n 'sltplainnyal' => $sltplainnyal,\n 'sltplainnyap' => $sltplainnyap,\n 'sltptakterdefenisil' => $sltptakterdefenisil,\n 'sltptakterdefenisip' => $sltptakterdefenisip,\n// ---------------sltp-----------------batas-----------\n\n 'smul' => $smul,\n 'smup' => $smup,\n 'mdal' => $mdal,\n 'mdap' => $mdap,\n// ----------------------smu----mda---------------------\n\n 'tbangunanl' => $tbangunanl,\n 'tbangunanp' => $tbangunanp,\n 'tplumbingl' => $tplumbingl,\n 'tplumbingp' => $tplumbingp,\n 'tsurveil' => $tsurveil,\n 'tsurveip' => $tsurveip,\n 'tketenagal' => $tketenagal,\n 'tketenagap' => $tketenagap,\n 'tpendinginl' => $tpendinginl,\n 'tpendinginp' => $tpendinginp,\n 'tmesinl' => $tmesinl,\n 'tmesinp' => $tmesinp,\n 'totomotifl' => $totomotifl,\n 'totomotifp' => $totomotifp,\n 'tpesawatl' => $tpesawatl,\n 'tpesawatp' => $tpesawatp,\n 'tkapall' => $tkapall,\n 'tkapalp' => $tkapalp,\n\n ]);\n }", "title": "" }, { "docid": "37b5712785b2551e25ef053403041cd4", "score": "0.57557607", "text": "function fetch_single_details_listePaiement($jour1,$jour2)\n {\n\n $data = $this->db->query(\"SELECT * FROM profile_paiement WHERE date_paie BETWEEN '\".$jour1.\"' AND '\".$jour2.\"' AND etat_paiement=1\");\n\n $montantT = $this->fetch_sum_data_paiement_date($jour1, $jour2);\n \n\n $nom_site = '';\n $icone = '';\n $email = '';\n $retour = \"javascript:history.go(-1);\";\n\n $info = $this->db->get('tbl_info')->result_array();\n foreach ($info as $key) {\n $nom_site = $key['nom_site'];\n $icone = $key['icone'];\n $email = $key['email'];\n \n }\n\n $output = '';\n $nomf;\n $created_at;\n $nom;\n $icone;\n\n \n\n $message = \"REPUBLIQUE DEMOCRATIQUE DU CONGO <br/>\n <h3>\n LISTE DE PAIEMENT DU \".nl2br(substr(date(DATE_RFC822, strtotime($jour1)), 0, 23)).\" AU \n \".nl2br(substr(date(DATE_RFC822, strtotime($jour2)), 0, 23)).\" AU SYSTEME \".$nom_site.\"\n <h3>\n \";\n\n\n\n $output = '<div align=\"right\">';\n $output .= '<link href=\"' . base_url() . 'js/css/style.css\" rel=\"stylesheet\">';\n $output .= '<table width=\"100%\" cellspacing=\"5\" cellpadding=\"5\" id=\"user_data\" >';\n $output .= '\n <tr>\n <td width=\"25%\"><img src=\"'.base_url().'upload/tbl_info/'.$icone.'\" width=\"150\" height=\"100\"/></td>\n <td width=\"50%\" align=\"center\">\n <p><b>'.$message.' </b></p>\n <p><b>Mise à jour : </b>'.date('d/m/Y').'</p>\n\n <hr>\n \n </td>\n\n <td width=\"25%\">\n <img src=\"'.base_url().'upload/tbl_info/'.$icone.'\" width=\"150\" height=\"100\" />\n </td>\n\n\n </tr>\n ';\n \n $output .= '</table>';\n\n $output .= '</div>';\n\n $output .= '\n <div class=\"table-responsive\">\n \n <br />\n <table class=\"table table-hover table-striped table-bordered panier_table\" border=\"1\">\n <tr>\n <th width=\"5%\">Avatar</th>\n <th width=\"30%\">Nom complet</th>\n <th width=\"5%\">téléphone</th>\n\n <th width=\"15%\">Montant</th>\n <th width=\"25%\">motif</th>\n\n <th width=\"20%\">Date</th>\n \n </tr>\n\n ';\n\n foreach($data->result_array() as $items)\n {\n\n $idpersonne = $items[\"idpersonne\"];\n $montantT;\n $montantRestant;\n\n $montant_a_payer = 30;\n\n\n $nom_complet = $items[\"first_name\"].' '.$items[\"last_name\"];\n $output .= '\n <tr>\n <td width=\"20%\" align=\"center\">\n \n <img src=\"'.base_url().'upload/photo/'.$items[\"image\"].'\" style=\"height: 40px; width: 50px; border-radius: 50%;\"/>\n </td> \n <td align=\"center\">\n '.$nom_complet.'\n \n </td>\n <td>'.$items[\"telephone\"].'</td>\n <td>'.$items[\"montant\"].'$</td>\n <td>'.$items[\"motif\"].'</td>\n\n <td width=\"15%\">'.nl2br(substr(date(DATE_RFC822, strtotime($items[\"created_at\"])), 0, 23)).'</td>\n\n\n </tr>\n ';\n\n }\n\n $output .= '\n <tr>\n <td colspan=\"5\">\n <div align=\"right\">Total montant payé</div>\n </td> \n <td >'.$montantT.'$</td>\n \n </tr>\n ';\n\n $output .= '\n \n </table>\n\n </div>\n\n <hr>\n \n <div align=\"right\" style=\"margin-botton:20px;\">\n\n <a href=\"'.$retour.'\" style=\"text-decoration: none; color: black;\">signature:</a>\n \n </div>\n <div align=\"center\" style=\"\n\n background-image: url('.base_url().'upload/tbl_info/'.$icone.'); background-repeat: no-repeat; background-size: 40%; background-position: center; height:100px;\">\n </div>\n \n ';\n\n return $output;\n }", "title": "" }, { "docid": "c83d35810fdb12ab155e24210ab6e821", "score": "0.5754545", "text": "private function Data(){\n\t\t$lastDay = Carbon::today()->startOfMonth()->addDays(-1);\n\t\t$firstDay = Carbon::today()->startOfMonth()->\n\t\t\t\t\taddDays(-1)->startOfMonth();\n\t\t\t\t\t\n\t\t//$lastDay = Carbon::today()->endOfMonth();\n\t\t//$firstDay = Carbon::today()->startOfMonth();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t$start=$firstDay->format('Y-m-d H:s:i');\n\t\t$end =$lastDay->format('Y-m-d H:s:i');\t \n\t\t$Records = DB::table('deductions')\n\t\t ->select(DB::raw('deductions.user_id, SUM(deductions.amount ) as amount, COUNT(deductions.user_id) as frequency , users.email, users.name'))\n\t\t //->where('deductions.created_at', 'BETWEEN', $start,$end)\n\t\t ->whereBetween('deductions.created_at', [ $start,$end])\n\t\t ->groupBy('deductions.user_id')\n\t\t ->join('users', 'users.id', '=', 'deductions.user_id')\n\t\t // ->orderBy('deductions.amount', 'DESC')\n\t\t ->get();\t \n\t\treturn $Records;\n\t}", "title": "" }, { "docid": "b7f82bc0793fdab699beb07532af0410", "score": "0.57465065", "text": "public function getAdminstaticsOrderByMonthly(){\n \n try {\n $select = $this->select()\n ->from($this)\n ->where('year(insert_date)=?',date('Y'));\n $result = $this->getAdapter()->fetchAll($select);\n if ($result){\n return $result;\n }\n } catch (Exception $exc) {\n echo $exc->getTraceAsString();\n }\n }", "title": "" }, { "docid": "9a7e21c8041016050112acc374e4efa0", "score": "0.5742266", "text": "function data_table(){\n $aColumns = array( 'guid','code','code','c_name','s_name','date','total_items','total_amt','active_status','order_status' );\t\n\t$start = \"\";\n\t\t\t$end=\"\";\n\t\t\n\t\tif ( $this->input->get_post('iDisplayLength') != '-1' )\t{\n\t\t\t$start = $this->input->get_post('iDisplayStart');\n\t\t\t$end=\t $this->input->get_post('iDisplayLength'); \n\t\t}\t\n\t\t$order=\"\";\n\t\tif ( isset( $_GET['iSortCol_0'] ) )\n\t\t{\t\n\t\t\tfor ( $i=0 ; $i<intval($this->input->get_post('iSortingCols') ) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $_GET[ 'bSortable_'.intval($this->input->get_post('iSortCol_'.$i)) ] == \"true\" )\n\t\t\t\t{\n\t\t\t\t\t$order.= $aColumns[ intval( $this->input->get_post('iSortCol_'.$i) ) ].\" \".$this->input->get_post('sSortDir_'.$i ) .\",\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\t\t$order = substr_replace( $order, \"\", -1 );\n\t\t\t\t\t\n\t\t}\n\t\t\n\t\t$like = array();\n\t\t\n\t\t\tif ( $_GET['sSearch'] != \"\" )\n\t\t{\n\t\t$like =array(\n 'po_no'=> $this->input->get_post('sSearch'),\n );\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\t \n\t\t\t$this->load->model('sales')\t ;\n \n\t\t\t $rResult1 = $this->sales->get($end,$start,$like,$this->session->userdata['branch_id']);\n\t\t \n\t\t$iFilteredTotal =$this->sales->count($this->session->userdata['branch_id']);\n\t\t\n\t\t$iTotal =$iFilteredTotal;\n\t\t\n\t\t$output1 = array(\n\t\t\t\"sEcho\" => intval($_GET['sEcho']),\n\t\t\t\"iTotalRecords\" => $iTotal,\n\t\t\t\"iTotalDisplayRecords\" => $iFilteredTotal,\n\t\t\t\"aaData\" => array()\n\t\t);\n\t\tforeach ($rResult1 as $aRow )\n\t\t{\n\t\t\t$row = array();\n\t\t\tfor ( $i=0 ; $i<count($aColumns) ; $i++ )\n\t\t\t{\n\t\t\t\tif ( $aColumns[$i] == \"id\" )\n\t\t\t\t{\n\t\t\t\t\t$row[] = ($aRow[ $aColumns[$i] ]==\"0\") ? '-' : $aRow[ $aColumns[$i] ];\n\t\t\t\t}\n\t\t\t\telse if ( $aColumns[$i]== 'date' )\n\t\t\t\t{\n\t\t\t\t\t/* General output */\n\t\t\t\t\t$row[] = date('d-m-Y',$aRow[$aColumns[$i]]);\n\t\t\t\t}\n\t\t\t\telse if ( $aColumns[$i] != ' ' )\n\t\t\t\t{\n\t\t\t\t\t/* General output */\n\t\t\t\t\t$row[] = $aRow[$aColumns[$i]];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\n\t\t$output1['aaData'][] = $row;\n\t\t}\n \n\t\t\n\t\t echo json_encode($output1);\n }", "title": "" }, { "docid": "e29eccd5907c9e8926c71b47f0347353", "score": "0.57400936", "text": "function detail($empcode)\n {\n $CI = get_instance();\n\n //if model has been loaded by controller, you have no to call model anymore\n //$CI->load->model('emp_model');\n\n //call a fucntion of the model\n // mengacu kepada model yang di load saat controller di akses\n $a = $CI->rpt_slip_lembur->detail_lembur($empcode);\n echo \"<table border='1'>\n <tr>\n <th >NIK</th>\n <th >Nama</th>\n <th >Tanggal</th>\n <th width='100' >Kehadiran</th>\n <th width='100' >Overtime</th>\n </tr>\";\n foreach ($a as $key) {\n echo \"<tr>\";\n echo \"<td>\".$key['empcode'].\"</td>\";\n echo \"<td>\".$key['empname'].\"</td>\";\n echo \"<td>\".$key['attd_date'].\"</td>\";\n echo \"<td>\".$key['attd_code'].\"</td>\";\n echo \"<td>\".$key['total'].\"</td>\";\n echo \"</tr>\";\n\n }\n echo \"</table>\";\n }", "title": "" }, { "docid": "1937fdef9cd4362a2b9fbb64f138b86d", "score": "0.5735725", "text": "public function get_dates(){\n\n $this->db->select('date');\n $this->db->distinct();\n $this->db->from('deployment_plan');\n //$this->db->from('deployment_calculations');\n $this->db->order_by('date', 'DESC');\n //$this->db->limit('30');\n $query = $this->db->get();\n\n $result = $query->result_array();\n \n return $result;\n\t}", "title": "" }, { "docid": "ac84c1c0aa3be39d012cc18463caf9e3", "score": "0.5732926", "text": "function get_data_filter_date(Request $request)\n {\n //get start and end date\n $start = $request->data1;\n $end = $request->data2;\n\n //get all master and relationship values\n $master = PurchaseModel::orderBy('id','DESC')\n ->leftJoin('supplier', 'purchase.supplier_id', '=', 'supplier.id')\n ->select('purchase.*','supplier.name as sup_name')\n ->whereBetween( DB::raw('date(purchase.created_at)'), [$start, $end] )\n ->get();\n\n return DataTables:: of($master)\n ->editColumn('purchase_status', function ($master){\n if (!empty($master->purchase_status)){\n return ucfirst(trans($master->purchase_status));\n }\n return '';\n })\n ->editColumn('date', function($master) {\n return Carbon:: parse($master->created_at)->format('d M, Y');\n })\n ->editColumn('ref_no', function ($master){\n return str_pad($master->ref_no, 6, '0', STR_PAD_LEFT);\n })\n ->editColumn('payment_status', function ($master){\n if (!empty($master->payment_status)){\n return ucfirst(trans($master->payment_status));\n }\n return '';\n })\n ->editColumn('total_amount', function ($master){\n //check if has total amount or not\n if (!empty($master->total_amount)){\n return '$'.number_format($master->total_amount, 2);\n }else{\n return '$0.00';\n }\n })\n ->addColumn('payment_due', function ($master){\n if (!empty($master->total_amount) && !empty($master->total_paid)){\n return $master->total_amount-$master->total_paid;\n }\n return '';\n })\n ->make(true);\n }", "title": "" }, { "docid": "005e00e5f57411a24276412ef7059f2e", "score": "0.5727546", "text": "public function get_date_only($results,$text,$name) {\n // echo $name;exit();\n // $results = ImportPart::where('status', 1)\n // ->get();\n date_default_timezone_set(\"Asia/Bangkok\");\n $year=date(\"Y\", strtotime($results['0'][$name]));\n // echo $year;exit();\n $month=date(\"m\", strtotime($results['0'][$name]));\n if($month=='01'){\n $month=\"มกราคม\";\n }\n if($month=='02'){\n $month=\"กุมภาพันธ์\";\n }\n if($month=='03'){\n $month=\"มีนาคม\";\n }\n if($month=='04'){\n $month=\"เมษายน\";\n }\n if($month=='05'){\n $month=\"พฤษภาคม\";\n }\n if($month=='06'){\n $month=\"มิถุนายน\";\n }\n if($month=='07'){\n $month=\"กรกฏาคม\";\n }\n if($month=='08'){\n $month=\"สิงหาคม\";\n }\n if($month=='09'){\n $month=\"กันยายน\";\n }\n if($month=='10'){\n $month=\"ตุลาคม\";\n }\n if($month=='11'){\n $month=\"พฤศจิกายน\";\n }\n if($month=='12'){\n $month=\"ธันวาคม\";\n }\n\n $day=date(\"d\", strtotime($results['0'][$name]));\n $results[$text]=$day.\" \".$month.\" \".($year+543);\n // echo $results['0']['date'];\n // exit();\n return $results;\n }", "title": "" }, { "docid": "70c4ff315c2675985bf069afc661a76e", "score": "0.57265824", "text": "public function datatable()\n {\n $this->datatables ->select('c.country_name,s.name, s.status, s.state_id')\n ->from('states as s')\n ->join('countries as c', 's.country_id = c.country_id AND c.status = 1'); \n $this->datatables->edit_column('s.state_id', '$1', 'get_angular_button(s.state_id, \"master/state/\")');\n $this->datatables->edit_column('s.status', '$1', 'getStatus(s.status)');\n echo $this->datatables->generate();\n }", "title": "" }, { "docid": "03c8e978aa55ae1a583f5f93ac4da493", "score": "0.5726312", "text": "function list_absen($peg_id,$detil=false,$sdate,$edate,$tglDurasi=false) {\n\t//semua absen interval list_absen(0,false,'tanggal',0,false) << beberapa tanggal\n\t$db_absen = new db();\n\t$conn_absen = $db_absen -> connect();\n\tif ($detil==true) { //select 1 pegawai untuk detil banget\n\t\tif ($tglDurasi==true) {\n\t\t\t$sql_absen= $conn_absen->query();\n\t\t}\n\t\telse {\n\n\t\t}\n\t}\n\telse { //semua pegawai dari absen paling pagi ke paling telat \n\t\tif ($tglDurasi==true) {\n\n\t\t}\n\t\telse {\n\t\t\t//list absen 1 titik tanggal untuk semua record\n\t\t\t$sql_absen= $conn_absen->query(\"select peg_absen.*, m_pegawai.* from peg_absen left join m_pegawai on peg_absen.absen_peg_id=m_pegawai.peg_id where peg_absen.absen_tgl='2018-01-26' and hour(peg_absen.absen_jam) between 5 and 11 group by peg_absen.absen_peg_id order by absen_jam asc\");\n\t\t}\t\n\t}\n\t$cek_absen = $sql_absen->num_rows;\n\t$absen_list=array(\"error\"=>false);\n\tif ($cek_absen>0) {\n\t\t$absen_list[\"error\"]=false;\n\t\t$absen_list[\"absen_total\"]=$cek_absen;\n\t\t$i=1;\n\t\twhile ($r=$sql_absen->fetch_object()) {\n\t\t\t$absen_list[\"item\"][$i]=array(\n\t\t\t\t\"absen_id\"=>$r->absen_id,\n\t\t\t\t\"absen_peg_id\"=>$r->absen_peg_id,\n\t\t\t\t\"absen_peg_nama\"=>$r->absen_peg_nama,\n\t\t\t\t\"absen_tgl\"=>$r->absen_tgl,\n\t\t\t\t\"absen_jam\"=>$r->absen_jam,\n\t\t\t\t\"absen_kode\"=>$r->absen_kode,\n\t\t\t\t\"absen_sync_tgl\"=>$r->absen_sync_tgl,\n\t\t\t\t\"absen_rekap\"=>$r->absen_rekap,\n\t\t\t\t\"absen_flag\"=>$r->absen_flag,\n\t\t\t\t\"absen_ket\"=>$r->absen_ket,\n\t\t\t\t\"peg_dibuat_waktu\"=>$r->peg_dibuat_waktu,\n\t\t\t\t\"peg_dibuat_oleh\"=>$r->peg_dibuat_oleh,\n\t\t\t\t\"peg_diupdate_waktu\"=>$r->peg_diupdate_waktu,\n\t\t\t\t\"peg_diupdate_oleh\"=>$r->peg_diupdate_oleh\n\t\t\t);\n\t\t\t$i++;\n\t\t}\n\t}\n\telse {\n\t\t$absen_list[\"error\"]=true;\n\t\t$absen_list[\"pesan_error\"]=\"data kosong\";\n\t}\n\treturn $absen_list;\n\t$conn_absen->close();\n}", "title": "" }, { "docid": "c5fc2ba63bf5e3ab8c3da4aaf875bcfd", "score": "0.572009", "text": "function actionSel(){\n $db=\\Yii::$app->db;\n $data=$db->createCommand('select i.*,d.name as dname from stu_info as i LEFT JOIN stu_depart as d on i.depart=d.id')->queryAll();\n //dd($data);\n return $this->renderPartial('index.php',['data'=>$data]);\n }", "title": "" }, { "docid": "8bac198ea7b92026b61fc3d1aaa460f8", "score": "0.57109284", "text": "public function index($date)\n {\n //\n }", "title": "" }, { "docid": "2f896e86e28506a727257be31adcca18", "score": "0.5704841", "text": "public function getRows($postData,$manage){\ndate_default_timezone_set(\"Asia/Bangkok\");\n $this->_get_datatables_query($postData);\n if($postData['length'] != -1){\n $this->db->limit($postData['length'], $postData['start']);\nif($manage=='today'){\n\t\t//$date=date('Y-m-d');\n\t\t//$this->db->where('date_deposit',$date);\n // $this->db->like('CompletedDate', date('Y-m'));\n\t $this->db->where('MONTH(PayoutTime)', date('m'));\n\t $this->db->where('YEAR(PayoutTime)', date('Y'));\n\t\t//$this->db->or_where('Result','0');\n\t\t}\n }\n $query = $this->db->get();\n return $query->result();\n }", "title": "" }, { "docid": "0e457bf585f851970ff31715d3278b83", "score": "0.5696658", "text": "public function test(){\n\n \t/*$data = M('intro')->select();\n \tdump($data);\n \t$name = 'cheng';\n \t$this->assign('name',$name);\n \t$this->assign('data',$data);*/\n\n \t// $data = [];\n \t// for ($i=0; $i <4; $i++) { \n \t// \t$data[] = [\n \t// \t\t'cid' => 3,\n \t// \t\t'title' => \"酒店案例{$i}\",\n \t// \t\t'image' => '__ROOT__/Public/Index/images/10.png',\n \t// \t\t'desc' => \"这里是酒店案例{$i}的简介\"\n \t// \t];\n \t// }\n \t// dump($data);\n \t// $res = M('cases')->addAll($data);\n \t// dump($res);\n \n // $data =[\n // 'username' => 'twilighter',\n // 'password' => md5('twilighter'), \n // 'email' => '1529726299@qq.com', \n // 'img' => '__ROOT__/public/Admin/img/user.png', \n // 'loginip' => get_ip(), \n // 'logintime' => time(),\n // ];\n // $res = M('admin') -> add($data);\n // dump($data);\n // dump($res);\n\n \t$this->display();\n }", "title": "" }, { "docid": "c0d495c40eba9f6795b9faaa36b218b9", "score": "0.5691843", "text": "public function agenda()\n {\n //judul pada halaman \n $data['judul'] = \"Agenda\";\n\n //query data agenda\n $data['agenda'] = $this->db->get('agenda')->result_array();\n\n\n //menampilkan view input data agenda\n $this->tampilan('agenda', $data);\n }", "title": "" }, { "docid": "1d26f0e6cf39db55a2d371bece19aa4d", "score": "0.56899613", "text": "function data_teknisi(){\n\t\t$query1 = $this->db->query(\"\n select a.id, a.nama, a.email\n from tbl_user as a \n where a.departemen = '97816189442457875' order by a.nama;\n \"); \n return $query1; \n }", "title": "" }, { "docid": "edb1fcbe5be7c6628531f46941bbd8df", "score": "0.56893134", "text": "public function select_data($table)\n {\n \n }", "title": "" }, { "docid": "984456c84d2485533ad69f17bd7062cc", "score": "0.56882817", "text": "public function dataTrending()\n {\n return Datatables::of(Trending::select('id', 'judul','created_at','status'))\n ->addColumn('content_count', function ($trending)\n { //change over here \n return $trending->contents->count();\n })\n ->editColumn('created_at', function ($trending) \n { //change over here \n return date('d M Y', strtotime($trending->created_at) );\n })->make(true);\n }", "title": "" }, { "docid": "05f8fadaa4125d565e014c5ded3a314c", "score": "0.56874466", "text": "public function datatables()\n\t{\n\t\t//menunda loading (bisa dihapus, hanya untuk menampilkan pesan processing)\n\t\t// sleep(2);\n\n\t\t//memanggil fungsi model datatables\n\t\t$list = $this->m_category->get_datatables();\n\t\t$data = array();\n\t\t$no = $this->input->post('start');\n\n\t\t//mencetak data json\n\t\tforeach ($list as $field) {\n\t\t\t$no++;\n\t\t\t$row = array();\n\t\t\t$row[] = $no;\n\t\t\t$row[] = $field['category'];\n\t\t\t$row[] = '\n\t\t\t\t<div class=\"btn-group\" role=\"group\" aria-label=\"Basic outlined example\">\n\t\t\t\t\t<a href=\"'.site_url('admin/category/update/'.$field['id']). '\" class=\"btn btn-warning btn-sm \" title=\"Edit\">\n\t\t\t\t\t\t<i class=\"fas fa-edit\"></i> \n\t\t\t\t\t</a>\n\t\t\t\t\t<a href=\"'.site_url('admin/category/delete/'.$field['id']).'\" class=\"btn btn-danger btn-sm btnHapus\" title=\"Hapus\" data = \"'.$field['id'].'\">\n\t\t\t\t\t\t<i class=\"fas fa-trash-alt\"></i> \n\t\t\t\t\t</a>\n\t\t\t\t</div>';\n\n\t\t\t$data[] = $row;\n\t\t}\n\n\t\t//mengirim data json\n\t\t$output = array(\n\t\t\t\"draw\" => $this->input->post('draw'),\n\t\t\t\"recordsTotal\" => $this->m_category->count_all(),\n\t\t\t\"recordsFiltered\" => $this->m_category->count_filtered(),\n\t\t\t\"data\" => $data,\n\t\t);\n\n\t\t//output dalam format JSON\n\t\techo json_encode($output);\n\t}", "title": "" }, { "docid": "1a0e342d469824e5c3a3b428551c34cf", "score": "0.5685702", "text": "public function calssfactionReport($date, $flag)\n {\n\n $dataOfRoprt = array();\n\n $table = ' ';\n\n $tableBody = ' ';\n\n $tableHead = '\n <div class=\"card-body p-0\" dir=\"rtl\">\n \n <table class=\"table table-striped\">\n <td class=\"regular text\">رقم الصنف</th>\n\n\n <td class=\"regular text\">أسم الصنف</th>\n \n <th class=\"regular text\">تاريخ الاضافة</th>\n ';\n\n $tableFooter = '</tbody></table></div>';\n\n\n switch ($flag) {\n case 1:\n if (!isset($date)) {\n\n\n $result = Company::whereDate('created_at', Carbon::today())->get();\n\n\n foreach ($result as $value) {\n\n\n $dataOfRoprt['calssfcation_type'] = $value->calssfcation_type;\n\n $dataOfRoprt['created_at'] = $value->created_at;\n\n\n $tableBody .= '<tr>\n\n <td class=\"regular text\"> ' . $dataOfRoprt['calssfcation_type'] . '</td>\n \n <td class=\"text regular\"> ' . $dataOfRoprt['created_at'] . '</td>\n \n \n \n ';\n }\n\n return $tableHead . $tableBody . $tableFooter;;\n\n } elseif (isset($date)) {\n\n $result = Productclassification::where('created_at', $date)->get();\n foreach ($result as $value) {\n\n\n $dataOfRoprt['calssfcation_type'] = $value->calssfcation_type;\n\n $dataOfRoprt['created_at'] = $value->created_at;\n\n\n $tableBody .= '<tr>\n\n <td class=\"regular text\"> ' . $dataOfRoprt['calssfcation_type'] . '</td>\n \n <td class=\"text regular\"> ' . $dataOfRoprt['created_at'] . '</td>\n \n \n \n ';\n }\n\n return $tableHead . $tableBody . $tableFooter;\n }\n break;\n\n case 2:\n\n\n $result = Productclassification::whereBetween('created_at', [Carbon::now()->subWeek()->format('yy-mm-dd'), Carbon::now()])->get();\n\n\n foreach ($result as $value) {\n\n $dataOfRoprt['calssfcation_type'] = $value->calssfcation_type;\n\n $dataOfRoprt['created_at'] = $value->created_at;\n\n\n //$dataOfRoprt['company_name']=$value->companies->company_name;\n\n $tableBody .= '<tr>\n\n <td class=\"regular text\"> ' . $dataOfRoprt['calssfcation_type'] . '</td>\n \n <td class=\"text regular\"> ' . $dataOfRoprt['created_at'] . '</td>\n \n \n \n ';\n }\n\n return $tableHead . $tableBody . $tableFooter;\n\n break;\n\n case 3:\n\n $result = Productclassification::whereMonth('created_at', date('m'))->get();\n\n\n foreach ($result as $value) {\n\n $dataOfRoprt['calssfcation_type'] = $value->calssfcation_type;\n\n $dataOfRoprt['created_at'] = $value->created_at;\n\n\n //$dataOfRoprt['company_name']=$value->companies->company_name;\n\n $tableBody .= '<tr>\n\n <td class=\"text regular\"> ' . $dataOfRoprt['name'] . '</td> \n\n <td class=\"regular text\"> ' . $dataOfRoprt['calssfcation_type'] . '</td>\n \n <td class=\"text regular\"> ' . $dataOfRoprt['created_at'] . '</td>\n \n \n \n ';\n }\n\n return $tableHead . $tableBody . $tableFooter;\n # ...\n break;\n\n case 4:\n\n $result = Productclassification::whereYear('created_at', date('Y'))->get();\n $counter = 1;\n\n foreach ($result as $value) {\n\n $dataOfRoprt['calssfcation_type'] = $value->calssfcation_type;\n\n $dataOfRoprt['created_at'] = $value->created_at;\n\n\n //$dataOfRoprt['company_name']=$value->companies->company_name;\n\n $tableBody .= '<tr>\n <td class=\"text regular\">' . $counter++ . '</td>\n\n\n <td class=\"regular text\"> ' . $dataOfRoprt['calssfcation_type'] . '</td>\n \n <td class=\"text regular\"> ' . $dataOfRoprt['created_at'] . '</td>\n \n ';\n }\n\n return $tableHead . $tableBody . $tableFooter;\n break;\n }\n\n\n }", "title": "" }, { "docid": "e4eb2464670c9653fcb91ad1b149c267", "score": "0.56843054", "text": "public function date_wise_list()\n {\n\n\t\t$data['title'] = $this->Xin_model->site_title();\n\t\t$session = $this->session->userdata('username');\n\t\t$user_info = $this->Xin_model->read_user_info($session['user_id']);\n\t\tif(!empty($session)){ \n\t\t\t$this->load->view(\"admin/timesheet/date_wise\", $data);\n\t\t} else {\n\t\t\tredirect('admin/');\n\t\t}\n\t\t// Datatables Variables\n\t\t$draw = intval($this->input->get(\"draw\"));\n\t\t$start = intval($this->input->get(\"start\"));\n\t\t$length = intval($this->input->get(\"length\"));\n\t\t\n\t\t$employee_id = $this->input->get(\"user_id\");\n\t\t$employee = $this->Xin_model->read_user_info($employee_id);\n\t\t\n\t\t$start_date = new DateTime( $this->input->get(\"start_date\"));\n\t\t$end_date = new DateTime( $this->input->get(\"end_date\") );\n\t\t$end_date = $end_date->modify( '+1 day' ); \n\t\t\n\t\t$interval_re = new DateInterval('P1D');\n\t\t$date_range = new DatePeriod($start_date, $interval_re ,$end_date);\n\t\t$attendance_arr = array();\n\t\t\n\t\t$data = array();\n\t\tforeach($date_range as $date) {\n\t\t$attendance_date = $date->format(\"Y-m-d\");\n // foreach($employee->result() as $r) {\n\t\t\t \t\t\t \t\t\n\t\t// user full name\n\t//\t$full_name = $r->first_name.' '.$r->last_name;\t\n\t\t// get office shift for employee\n\t\t$get_day = strtotime($attendance_date);\n\t\t$day = date('l', $get_day);\n\t\t\n\t\t// office shift\n\t\t$office_shift = $this->Timesheet_model->read_office_shift_information($employee[0]->office_shift_id);\n\t\t\n\t\t// get clock in/clock out of each employee\n\t\tif($day == 'Monday') {\n\t\t\tif($office_shift[0]->monday_in_time==''){\n\t\t\t\t$in_time = '00:00:00';\n\t\t\t\t$out_time = '00:00:00';\n\t\t\t} else {\n\t\t\t\t$in_time = $office_shift[0]->monday_in_time;\n\t\t\t\t$out_time = $office_shift[0]->monday_out_time;\n\t\t\t}\n\t\t} else if($day == 'Tuesday') {\n\t\t\tif($office_shift[0]->tuesday_in_time==''){\n\t\t\t\t$in_time = '00:00:00';\n\t\t\t\t$out_time = '00:00:00';\n\t\t\t} else {\n\t\t\t\t$in_time = $office_shift[0]->tuesday_in_time;\n\t\t\t\t$out_time = $office_shift[0]->tuesday_out_time;\n\t\t\t}\n\t\t} else if($day == 'Wednesday') {\n\t\t\tif($office_shift[0]->wednesday_in_time==''){\n\t\t\t\t$in_time = '00:00:00';\n\t\t\t\t$out_time = '00:00:00';\n\t\t\t} else {\n\t\t\t\t$in_time = $office_shift[0]->wednesday_in_time;\n\t\t\t\t$out_time = $office_shift[0]->wednesday_out_time;\n\t\t\t}\n\t\t} else if($day == 'Thursday') {\n\t\t\tif($office_shift[0]->thursday_in_time==''){\n\t\t\t\t$in_time = '00:00:00';\n\t\t\t\t$out_time = '00:00:00';\n\t\t\t} else {\n\t\t\t\t$in_time = $office_shift[0]->thursday_in_time;\n\t\t\t\t$out_time = $office_shift[0]->thursday_out_time;\n\t\t\t}\n\t\t} else if($day == 'Friday') {\n\t\t\tif($office_shift[0]->friday_in_time==''){\n\t\t\t\t$in_time = '00:00:00';\n\t\t\t\t$out_time = '00:00:00';\n\t\t\t} else {\n\t\t\t\t$in_time = $office_shift[0]->friday_in_time;\n\t\t\t\t$out_time = $office_shift[0]->friday_out_time;\n\t\t\t}\n\t\t} else if($day == 'Saturday') {\n\t\t\tif($office_shift[0]->saturday_in_time==''){\n\t\t\t\t$in_time = '00:00:00';\n\t\t\t\t$out_time = '00:00:00';\n\t\t\t} else {\n\t\t\t\t$in_time = $office_shift[0]->saturday_in_time;\n\t\t\t\t$out_time = $office_shift[0]->saturday_out_time;\n\t\t\t}\n\t\t} else if($day == 'Sunday') {\n\t\t\tif($office_shift[0]->sunday_in_time==''){\n\t\t\t\t$in_time = '00:00:00';\n\t\t\t\t$out_time = '00:00:00';\n\t\t\t} else {\n\t\t\t\t$in_time = $office_shift[0]->sunday_in_time;\n\t\t\t\t$out_time = $office_shift[0]->sunday_out_time;\n\t\t\t}\n\t\t}\n\t\t// check if clock-in for date\n\t\t$attendance_status = '';\n\t\t$check = $this->Timesheet_model->attendance_first_in_check($employee[0]->user_id,$attendance_date);\t\t\n\t\tif($check->num_rows() > 0){\n\t\t\t// check clock in time\n\t\t\t$attendance = $this->Timesheet_model->attendance_first_in($employee[0]->user_id,$attendance_date);\n\t\t\t// clock in\n\t\t\t$clock_in = new DateTime($attendance[0]->clock_in);\n\t\t\t$clock_in2 = $clock_in->format('h:i a');\n\t\t\t$clkInIp = $clock_in2.'<br><button type=\"button\" class=\"btn btn-secondary btn-sm m-b-0-0 waves-effect waves-light\" data-toggle=\"modal\" data-target=\".view-modal-data\" data-ipaddress=\"'.$attendance[0]->clock_in_ip_address.'\"><i class=\"ft-map-pin\"></i> '.$this->lang->line('xin_attend_clkin_ip').'</button>';\n\t\t\t\n\t\t\t$office_time = new DateTime($in_time.' '.$attendance_date);\n\t\t\t//time diff > total time late\n\t\t\t$office_time_new = strtotime($in_time.' '.$attendance_date);\n\t\t\t$clock_in_time_new = strtotime($attendance[0]->clock_in);\n\t\t\tif($clock_in_time_new <= $office_time_new) {\n\t\t\t\t$total_time_l = '00:00';\n\t\t\t} else {\n\t\t\t\t$interval_late = $clock_in->diff($office_time);\n\t\t\t\t$hours_l = $interval_late->format('%h');\n\t\t\t\t$minutes_l = $interval_late->format('%i');\t\t\t\n\t\t\t\t$total_time_l = $hours_l .\"h \".$minutes_l.\"m\";\n\t\t\t}\n\t\t\t\n\t\t\t// total hours work/ed\n\t\t\t$total_hrs = $this->Timesheet_model->total_hours_worked_attendance($employee[0]->user_id,$attendance_date);\n\t\t\t$hrs_old_int1 = 0;\n\t\t\t$Total = '';\n\t\t\t$Trest = '';\n\t\t\t$hrs_old_seconds = 0;\n\t\t\t$hrs_old_seconds_rs = 0;\n\t\t\t$total_time_rs = '';\n\t\t\t$hrs_old_int_res1 = 0;\n\t\t\tforeach ($total_hrs->result() as $hour_work){\t\t\n\t\t\t\t// total work\t\t\t\n\t\t\t\t$timee = $hour_work->total_work.':00';\n\t\t\t\t$str_time =$timee;\n\t\n\t\t\t\t$str_time = preg_replace(\"/^([\\d]{1,2})\\:([\\d]{2})$/\", \"00:$1:$2\", $str_time);\n\t\t\t\t\n\t\t\t\tsscanf($str_time, \"%d:%d:%d\", $hours, $minutes, $seconds);\n\t\t\t\t\n\t\t\t\t$hrs_old_seconds = $hours * 3600 + $minutes * 60 + $seconds;\n\t\t\t\t\n\t\t\t\t$hrs_old_int1 += $hrs_old_seconds;\n\t\t\t\t\n\t\t\t\t$Total = gmdate(\"H:i\", $hrs_old_int1);\t\n\t\t\t}\n\t\t\tif($Total=='') {\n\t\t\t\t$total_work = '00:00';\n\t\t\t} else {\n\t\t\t\t$total_work = $Total;\n\t\t\t}\n\t\t\t\n\t\t\t// total rest > \n\t\t\t$total_rest = $this->Timesheet_model->total_rest_attendance($employee[0]->user_id,$attendance_date);\n\t\t\tforeach ($total_rest->result() as $rest){\t\t\t\n\t\t\t\t// total rest\n\t\t\t\t$str_time_rs = $rest->total_rest.':00';\n\t\t\t\t//$str_time_rs =$timee_rs;\n\t\n\t\t\t\t$str_time_rs = preg_replace(\"/^([\\d]{1,2})\\:([\\d]{2})$/\", \"00:$1:$2\", $str_time_rs);\n\t\t\t\t\n\t\t\t\tsscanf($str_time_rs, \"%d:%d:%d\", $hours_rs, $minutes_rs, $seconds_rs);\n\t\t\t\t\n\t\t\t\t$hrs_old_seconds_rs = $hours_rs * 3600 + $minutes_rs * 60 + $seconds_rs;\n\t\t\t\t\n\t\t\t\t$hrs_old_int_res1 += $hrs_old_seconds_rs;\n\t\t\t\t\n\t\t\t\t$total_time_rs = gmdate(\"H:i\", $hrs_old_int_res1);\n\t\t\t}\n\t\t\t\n\t\t\t// check attendance status\n\t\t\t$status = $attendance[0]->attendance_status;\n\t\t\tif($total_time_rs=='') {\n\t\t\t\t$Trest = '00:00';\n\t\t\t} else {\n\t\t\t\t$Trest = $total_time_rs;\n\t\t\t}\n\t\t\n\t\t} else {\n\t\t\t$clock_in2 = '-';\n\t\t\t$total_time_l = '00:00';\n\t\t\t$total_work = '00:00';\n\t\t\t$Trest = '00:00';\n\t\t\t$clkInIp = $clock_in2;\n\t\t\t// get holiday/leave or absent\n\t\t\t/* attendance status */\n\t\t\t// get holiday\n\t\t\t$h_date_chck = $this->Timesheet_model->holiday_date_check($attendance_date);\n\t\t\t$holiday_arr = array();\n\t\t\tif($h_date_chck->num_rows() == 1){\n\t\t\t\t$h_date = $this->Timesheet_model->holiday_date($attendance_date);\n\t\t\t\t$begin = new DateTime( $h_date[0]->start_date );\n\t\t\t\t$end = new DateTime( $h_date[0]->end_date);\n\t\t\t\t$end = $end->modify( '+1 day' ); \n\t\t\t\t\n\t\t\t\t$interval = new DateInterval('P1D');\n\t\t\t\t$daterange = new DatePeriod($begin, $interval ,$end);\n\t\t\t\t\n\t\t\t\tforeach($daterange as $date){\n\t\t\t\t\t$holiday_arr[] = $date->format(\"Y-m-d\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$holiday_arr[] = '99-99-99';\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// get leave/employee\n\t\t\t$leave_date_chck = $this->Timesheet_model->leave_date_check($employee[0]->user_id,$attendance_date);\n\t\t\t$leave_arr = array();\n\t\t\tif($leave_date_chck->num_rows() == 1){\n\t\t\t\t$leave_date = $this->Timesheet_model->leave_date($employee[0]->user_id,$attendance_date);\n\t\t\t\t$begin1 = new DateTime( $leave_date[0]->from_date );\n\t\t\t\t$end1 = new DateTime( $leave_date[0]->to_date);\n\t\t\t\t$end1 = $end1->modify( '+1 day' ); \n\t\t\t\t\n\t\t\t\t$interval1 = new DateInterval('P1D');\n\t\t\t\t$daterange1 = new DatePeriod($begin1, $interval1 ,$end1);\n\t\t\t\t\n\t\t\t\tforeach($daterange1 as $date1){\n\t\t\t\t\t$leave_arr[] = $date1->format(\"Y-m-d\");\n\t\t\t\t}\t\n\t\t\t} else {\n\t\t\t\t$leave_arr[] = '99-99-99';\n\t\t\t}\n\t\t\t\t\n\t\t\tif($office_shift[0]->monday_in_time == '' && $day == 'Monday') {\n\t\t\t\t$status = $this->lang->line('xin_holiday');\t\n\t\t\t} else if($office_shift[0]->tuesday_in_time == '' && $day == 'Tuesday') {\n\t\t\t\t$status = $this->lang->line('xin_holiday');\t\n\t\t\t} else if($office_shift[0]->wednesday_in_time == '' && $day == 'Wednesday') {\n\t\t\t\t$status = $this->lang->line('xin_holiday');\t\n\t\t\t} else if($office_shift[0]->thursday_in_time == '' && $day == 'Thursday') {\n\t\t\t\t$status = $this->lang->line('xin_holiday');\t\n\t\t\t} else if($office_shift[0]->friday_in_time == '' && $day == 'Friday') {\n\t\t\t\t$status = $this->lang->line('xin_holiday');\t\n\t\t\t} else if($office_shift[0]->saturday_in_time == '' && $day == 'Saturday') {\n\t\t\t\t$status = $this->lang->line('xin_holiday');\t\n\t\t\t} else if($office_shift[0]->sunday_in_time == '' && $day == 'Sunday') {\n\t\t\t\t$status = $this->lang->line('xin_holiday');\t\n\t\t\t} else if(in_array($attendance_date,$holiday_arr)) { // holiday\n\t\t\t\t$status = $this->lang->line('xin_holiday');\n\t\t\t} else if(in_array($attendance_date,$leave_arr)) { // on leave\n\t\t\t\t$status = $this->lang->line('xin_on_leave');\n\t\t\t} \n\t\t\telse {\n\t\t\t\t$status = $this->lang->line('xin_absent');\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t// check if clock-out for date\n\t\t$check_out = $this->Timesheet_model->attendance_first_out_check($employee[0]->user_id,$attendance_date);\t\t\n\t\tif($check_out->num_rows() == 1){\n\t\t\t/* early time */\n\t\t\t$early_time = new DateTime($out_time.' '.$attendance_date);\n\t\t\t// check clock in time\n\t\t\t$first_out = $this->Timesheet_model->attendance_first_out($employee[0]->user_id,$attendance_date);\n\t\t\t// clock out\n\t\t\t$clock_out = new DateTime($first_out[0]->clock_out);\n\t\t\t\n\t\t\tif ($first_out[0]->clock_out!='') {\n\t\t\t\t$clock_out2 = $clock_out->format('h:i a');\n\t\t\t\t$clkOutIp = $clock_out2.'<br><button type=\"button\" class=\"btn btn-secondary btn-sm m-b-0-0 waves-effect waves-light\" data-toggle=\"modal\" data-target=\".view-modal-data\" data-ipaddress=\"'.$attendance[0]->clock_out_ip_address.'\"><i class=\"ft-map-pin\"></i> '.$this->lang->line('xin_attend_clkout_ip').'</button>';\n\t\t\t\t// early leaving\n\t\t\t\t$early_new_time = strtotime($out_time.' '.$attendance_date);\n\t\t\t\t$clock_out_time_new = strtotime($first_out[0]->clock_out);\n\t\t\t\n\t\t\t\tif($early_new_time <= $clock_out_time_new) {\n\t\t\t\t\t$total_time_e = '00:00';\n\t\t\t\t} else {\t\t\t\n\t\t\t\t\t$interval_lateo = $clock_out->diff($early_time);\n\t\t\t\t\t$hours_e = $interval_lateo->format('%h');\n\t\t\t\t\t$minutes_e = $interval_lateo->format('%i');\t\t\t\n\t\t\t\t\t$total_time_e = $hours_e .\"h \".$minutes_e.\"m\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* over time */\n\t\t\t\t$over_time = new DateTime($out_time.' '.$attendance_date);\n\t\t\t\t$overtime2 = $over_time->format('h:i a');\n\t\t\t\t// over time\n\t\t\t\t$over_time_new = strtotime($out_time.' '.$attendance_date);\n\t\t\t\t$clock_out_time_new1 = strtotime($first_out[0]->clock_out);\n\t\t\t\t\n\t\t\t\tif($clock_out_time_new1 <= $over_time_new) {\n\t\t\t\t\t$overtime2 = '00:00';\n\t\t\t\t} else {\t\t\t\n\t\t\t\t\t$interval_lateov = $clock_out->diff($over_time);\n\t\t\t\t\t$hours_ov = $interval_lateov->format('%h');\n\t\t\t\t\t$minutes_ov = $interval_lateov->format('%i');\t\t\t\n\t\t\t\t\t$overtime2 = $hours_ov .\"h \".$minutes_ov.\"m\";\n\t\t\t\t}\t\t\t\t\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t$clock_out2 = '-';\n\t\t\t\t$total_time_e = '00:00';\n\t\t\t\t$overtime2 = '00:00';\n\t\t\t\t$clkOutIp = $clock_out2;\n\t\t\t}\n\t\t\t\t\t\n\t\t} else {\n\t\t\t$clock_out2 = '-';\n\t\t\t$total_time_e = '00:00';\n\t\t\t$overtime2 = '00:00';\n\t\t\t$clkOutIp = $clock_out2;\n\t\t}\t\t\n\t\t// user full name\n\t\t\t$full_name = $employee[0]->first_name.' '.$employee[0]->last_name;\n\t\t\t// get company\n\t\t\t$company = $this->Xin_model->read_company_info($employee[0]->company_id);\n\t\t\tif(!is_null($company)){\n\t\t\t\t$comp_name = $company[0]->name;\n\t\t\t} else {\n\t\t\t\t$comp_name = '--';\t\n\t\t\t}\t\n\t\t\t// attendance date\n\t\t\t$tdate = $this->Xin_model->set_date_format($attendance_date);\n\t\t\t/*if($user_info[0]->user_role_id==1){\n\t\t\t\t$fclckIn = $clkInIp;\n\t\t\t\t$fclckOut = $clkOutIp;\n\t\t\t} else {\n\t\t\t\t$fclckIn = $clock_in2;\n\t\t\t\t$fclckOut = $clock_out2;\n\t\t\t}*/\n\t\t\t$data[] = array(\n\t\t\t\t$full_name,\n\t\t\t\t$comp_name,\n\t\t\t\t$status,\n\t\t\t\t$tdate,\n\t\t\t\t$clkInIp,\n\t\t\t\t$clkOutIp,\n\t\t\t\t$total_time_l,\n\t\t\t\t$total_time_e,\n\t\t\t\t$overtime2,\n\t\t\t\t$total_work,\n\t\t\t\t$Trest\n\t\t\t);\n\t\t\n\t\t/*$data[] = array(\n\t\t\t$status,\n\t\t\t$tdate,\n\t\t\t$clock_in2,\n\t\t\t$clock_out2,\n\t\t\t$total_time_l,\n\t\t\t$total_time_e,\n\t\t\t$overtime2,\n\t\t\t$total_work,\n\t\t\t$Trest\n\t\t);*/\n }\n\n\t $output = array(\n\t\t \"draw\" => $draw,\n\t\t\t \"recordsTotal\" => count($date_range),\n\t\t\t \"recordsFiltered\" => count($date_range),\n\t\t\t \"data\" => $data\n\t\t);\n\t echo json_encode($output);\n\t exit();\n }", "title": "" }, { "docid": "b995011a0ce619f9eba03714b7ef32cd", "score": "0.5683918", "text": "function get_pickup_datatables()\n {\n $offset = ($_REQUEST['datatable']['pagination']['page'] - 1)*$_REQUEST['datatable']['pagination']['perpage'];\n $this->_get_pickup_datatables_query();\n if($_REQUEST['datatable']['pagination']['perpage'] != -1)\n $this->company_db->limit($_REQUEST['datatable']['pagination']['perpage'], $offset);\n $query = $this->company_db->get();\n /* echo $this->company_db->last_query();die;*/\n if($query->num_rows() > 0)\n {\n foreach ($query->result() as $row)\n {\n $row->pickup_date = date(\"m/d/Y\", strtotime($row->pickup_date));\n }\n return $query->result();\n }\n else\n {\n return false;\n }\n }", "title": "" }, { "docid": "b4b281d2062172ee8fd9d98f2adcf399", "score": "0.56777847", "text": "function index(){\n\t\t$table = 'tbl_transaksi';\n\t\t\t\t\t\n\t\t$data['dt_booking'] = $this->db->query(\"select * from tbl_transaksi \n\t\twhere id_status_v = 2\n\t\torder by tgl_cekin, tgl_transaksi DESC\");\n\t\t\n\t\t$data['data_chekin'] = $this->db->query(\"select * from tbl_transaksi \n\t\twhere id_status_v = 3\n\t\t\");\n\t\t\n\t\t$data['data_chekout'] = $this->db->query(\"select * from tbl_transaksi \n\t\twhere id_status_v = 4\n\t\tORDER BY tgl_transaksi DESC \");\n\t\t\n\t\t//QUERY DETAIL\n\t\t$data['detail_transaksi'] = $this->app_model->manualQuery\n\t\t\t(\"SELECT\n\t\t\t\ttr.*, tm.*, vl.*, byr.*\n\t\t\tFROM\n\t\t\t\ttbl_transaksi tr\n\t\t\tleft JOIN \n\t\t\t\ttbl_tamu tm\n\t\t\t\tON tr.id_tamu = tm.id_tamu\n\t\t\tleft JOIN \n\t\t\t\ttbl_villa vl\n\t\t\t\tON tr.kode_villa = vl.kode_villa\n\t\t\tleft JOIN \n\t\t\t\ttbl_pembayaran byr\n\t\t\t\tON tr.no_transaksi = byr.no_transaksi\t\t\t\n\t\t\t\");\t\n\t\t\n\t\t$data['interface'] = array('data_transaksi');\t\t\n\t\t$data['template'] = 'satucolumn';\n\t\t$data['komponen_top'] = array('navbar','forcelogin');\n\t\t//cari tahu nama2 kolom di table tsb.\n\t\t$data['list_field'] = $this->db->list_fields($table);\n\t\t$this->load->view('index',$data);\n\t}", "title": "" }, { "docid": "3f39c7156bc4321b8eff47be8ce1b7fd", "score": "0.56764776", "text": "function selectSale($sale_code,$start_date,$end_date)\n{\n\tglobal $thead, $connect;\n\t$selSql=\"select `reg_date` from toto_pay where `sale_code` = '\".$sale_code.\"' and `reg_date` between '\".$start_date.\"' and '\".$end_date.\"' order by reg_date asc\";\n\t$result = mysql_query($selSql, $connect); \n\t$total = mysql_num_rows($result); // 총 레코드 수\n\t$num=$total;\n\nwhile($total--){\n\t$row = mysql_fetch_row($result);\n\tif($row[0]==$cur_date){\n\t}else{\n\t\t$reg_date=substr($row[14],0,4);\n\t\t$reg_date=$reg_date.\"-\".substr($row[14],4,2);\n\t\t$reg_date=$reg_date.\"-\".substr($row[14],6,2);\n\t\t$reged_date=$reged_date.\"|\".$row[0];//입력된 reg_date 구하기\n\t}\n\t\t$cur_date=$row[0];\n\t}\n\t$reg_arr=explode(\"|\",$reged_date);\n\t$arr_size=count($reg_arr);\n\t$num=0;\n\tfor($ac=$start_date;$ac<=$end_date;$ac++){\n\t\t$numOfList++;\n\t\t$selSql=\"select * from toto_pay where `sale_code` = '\".$sale_code.\"' and `reg_date` = '\".$ac.\"' order by reg_date asc\";\n\t\t$result = mysql_query($selSql, $connect); \n\t\t$total = mysql_num_rows($result); // 총 레코드 수\n\t\t$num=$total;\n\n\t\twhile($total--){\n\t\t\t$row = mysql_fetch_row($result);\n\t\t\t$income=$income+$row[8]+$row[9]+$row[10]+$row[11];\n\t\t\t$cash_income=$cash_income+$row[8];\n\t\t\t$cscd_income=$cscd_income+$row[9];\n\t\t\t$card_income=$card_income+$row[10];\n\t\t\t$yet_income=$yet_income+$row[11];\n\t\t\t$t_income=$t_income+$row[8]+$row[9]+$row[10]+$row[11];//총합\n\t\t\t$t_cash_income=$t_cash_income+$row[8];\n\t\t\t$t_cscd_income=$t_cscd_income+$row[9];\n\t\t\t$t_card_income=$t_card_income+$row[10];\n\t\t\t$t_yet_income=$t_yet_income+$row[11];\n\t\t\t}\n\t\t$exps_code=$sale_code+2999;\n\t\t$selSql2=\"select `cash_mony` from toto_exp where `exps_code` = '\".$exps_code.\"' and `reg_date` = '\".$ac.\"' and exps_gubn='0'\";\n\t\t$result2 = mysql_query($selSql2, $connect); \n\t\t$total2 = mysql_num_rows($result2); // 총 레코드 수\n\n\t\twhile($total2--){\n\t\t\t$row2 = mysql_fetch_row($result2);\n\t\t\t$cash_outcome=$cash_outcome+$row2[0];\n\t\t\t$t_cash_outcome=$t_cash_outcome+$row2[0];\n\t\t\t}\n\t\t$selSql2=\"select `cash_mony` from toto_exp where `exps_code` = '\".$exps_code.\"' and `reg_date` = '\".$ac.\"' and exps_gubn='1'\";\n\t\t$result2 = mysql_query($selSql2, $connect); \n\t\t$total2 = mysql_num_rows($result2); // 총 레코드 수\n\n\t\twhile($total2--){\n\t\t\t$row2 = mysql_fetch_row($result2);\n\t\t\t$cscd_outcome=$cscd_outcome+$row2[0];\n\t\t\t$t_cscd_outcome=$t_cscd_outcome+$row2[0];\n\t\t\t}\n\t\t$selSql2=\"select `cash_mony` from toto_exp where `exps_code` = '\".$exps_code.\"' and `reg_date` = '\".$ac.\"' and exps_gubn='2'\";\n\t\t$result2 = mysql_query($selSql2, $connect); \n\t\t$total2 = mysql_num_rows($result2); // 총 레코드 수\n\n\t\twhile($total2--){\n\t\t\t$row2 = mysql_fetch_row($result2);\n\t\t\t$card_legal=$card_legal+$row2[0];\n\t\t\t$t_card_legal=$t_card_legal+$row2[0];\n\t\t\t}\n\t\t$selSql2=\"select `cash_mony` from toto_exp where `exps_code` = '\".$exps_code.\"' and `reg_date` = '\".$ac.\"' and exps_gubn='3'\";\n\t\t$result2 = mysql_query($selSql2, $connect); \n\t\t$total2 = mysql_num_rows($result2); // 총 레코드 수\n\n\t\twhile($total2--){\n\t\t\t$row2 = mysql_fetch_row($result2);\n\t\t\t$card_indiv=$card_indiv+$row2[0];\n\t\t\t$t_card_indiv=$t_card_indiv+$row2[0];\n\t\t\t}\n\t\t$outcome=$cash_outcome+$cscd_outcome+$card_legal+$card_indiv;\n\t\t$t_outcome=$t_cash_outcome+$t_cscd_outcome+$t_card_legal+$t_card_indiv;\n\t\t$reg_date=substr($ac,0,4);\n\t\t$reg_date=$reg_date.\"-\".substr($ac,4,2);\n\t\t$reg_date=$reg_date.\"-\".substr($ac,6,2);\n\t\t$reged_date=$reged_date.\"|\".$row[0];//입력된 reg_date 구하기\n\t\tif($numOfList%5){\n\t\t\t$ts=\"tdStyle\";\n\t\t}else{\n\t\t\t$ts=\"fifthStyle\";\n\t\t}\n\t\t$updated=$updated.'<tr>\n\t\t<td class=\"'.$ts.'\">'.$reg_date.'</td>';\n\t\t$updated=$updated.'<td class=\"'.$ts.'\">'.comma($income).'</td>';\n\t\t$updated=$updated.'<td class=\"'.$ts.'\">'.comma($income-$outcome).'</td>';\n\t\t$updated=$updated.'<td class=\"'.$ts.'\">'.comma($cash_income).'</td>';\n\t\t$updated=$updated.'<td class=\"'.$ts.'\">'.comma($cscd_income).'</td>';\n\t\t$updated=$updated.'<td class=\"'.$ts.'\">'.comma($card_income).'</td>';\n\t\t$updated=$updated.'<td class=\"'.$ts.'\">'.comma($yet_income).'</td>';\n\t\tif($sale_code==\"1001\"){\n\t\t\t$updated=$updated.'<td class=\"'.$ts.'\">0</td>';\n\t\t\t$updated=$updated.'<td class=\"'.$ts.'\">'.comma($cash_outcome).'</td>';\n\t\t\t$updated=$updated.'<td class=\"'.$ts.'\">'.comma($cscd_outcome).'</td>';\n\t\t\t$updated=$updated.'<td class=\"'.$ts.'\">'.comma($card_legal).'</td>';\n\t\t\t$updated=$updated.'<td class=\"'.$ts.'\">'.comma($card_indiv).'</td>';\n\t\t}\n\t\t\t$updated=$updated.'<td class=\"'.$ts.'\">'.comma($cash_income+$cscd_income-$cash_outcome).'</td>\n\t\t</tr>';\n\t\t$income=0;\n\t\t$cash_income=0;\n\t\t$cscd_income=0;\n\t\t$card_income=0;\n\t\t$yet_income=0;\n\t\t$cash_outcome=0;\n\t\t$cscd_outcome=0;\n\t\t$card_legal=0;\n\t\t$card_indiv=0;\n\t\t$outcome=0;\n\t}\n\n\t\t$summation=$summation.'<tr><td class=\"summ\">합계</td>';\n\t\t$summation=$summation.'<td class=\"summ\">'.comma($t_income).'</td>';\n\t\t$summation=$summation.'<td class=\"summ\">'.comma($t_income-$t_outcome).'</td>';\n\t\t$summation=$summation.'<td class=\"summ\">'.comma($t_cash_income).'</td>';\n\t\t$summation=$summation.'<td class=\"summ\">'.comma($t_cscd_income).'</td>';\n\t\t$summation=$summation.'<td class=\"summ\">'.comma($t_card_income).'</td>';\n\t\t$summation=$summation.'<td class=\"summ\">'.comma($t_yet_income).'</td>';\n\t\tif($sale_code==\"1001\"){\n\t\t\t$summation=$summation.'<td class=\"summ\">0</td>';\n\t\t\t$summation=$summation.'<td class=\"summ\">'.comma($t_cash_outcome).'</td>';\n\t\t\t$summation=$summation.'<td class=\"summ\">'.comma($t_cscd_outcome).'</td>';\n\t\t\t$summation=$summation.'<td class=\"summ\">'.comma($t_card_legal).'</td>';\n\t\t\t$summation=$summation.'<td class=\"summ\">'.comma($t_card_indiv).'</td>';\n\t\t}\n\t\t$summation=$summation.'<td class=\"summ\">'.comma($t_cash_income+$t_cscd_income).'</td></tr>';\n\n\t\t$summation=$summation.'<tr><td class=\"summ\">평균</td>';\n\t\t$summation=$summation.'<td class=\"summ\">'.comma(ceil($t_income/$arr_size)).'</td>';\n\t\t$summation=$summation.'<td class=\"summ\">'.comma(ceil(($t_income-$t_outcome)/$arr_size)).'</td>';\n\t\t$summation=$summation.'<td class=\"summ\">'.comma(ceil($t_cash_income/$arr_size)).'</td>';\n\t\t$summation=$summation.'<td class=\"summ\">'.comma(ceil($t_cscd_income/$arr_size)).'</td>';\n\t\t$summation=$summation.'<td class=\"summ\">'.comma(ceil($t_card_income/$arr_size)).'</td>';\n\t\t$summation=$summation.'<td class=\"summ\">'.comma(ceil($t_yet_income/$arr_size)).'</td>';\n\t\tif($sale_code==\"1001\"){\n\t\t\t$summation=$summation.'<td class=\"summ\">0</td>';\n\t\t\t$summation=$summation.'<td class=\"summ\">'.comma(ceil($t_cash_outcome/$arr_size)).'</td>';\n\t\t\t$summation=$summation.'<td class=\"summ\">'.comma(ceil($t_cscd_outcome/$arr_size)).'</td>';\n\t\t\t$summation=$summation.'<td class=\"summ\">'.comma(ceil($t_card_legal/$arr_size)).'</td>';\n\t\t\t$summation=$summation.'<td class=\"summ\">'.comma(ceil($t_card_indiv/$arr_size)).'</td>';\n\t\t}\n\t\t$summation=$summation.'<td class=\"summ\">'.comma(ceil(($t_cash_income+$t_cscd_income)/$arr_size)).'</td></tr>';\n\n\t$updated=$thead[$sale_code].'<tbody>'.$summation.$updated.$summation.'</tbody></table>';\n\n\treturn $updated;\n}", "title": "" }, { "docid": "9266cc1781afbc27bed04cd120b6b677", "score": "0.5675897", "text": "public static function lister(){\n\tglobal $cnx;\n\t$sql=\"SELECT * FROM voiture ORDER BY date DESC\";\n\t$res=$cnx->query($sql);\n\t return($res->fetchAll(PDO::FETCH_NUM));\n\n}", "title": "" }, { "docid": "5acc15e812ccd7c2c87b6315382a366b", "score": "0.5672128", "text": "function sales_by_date($cate){\n $sql_sel=\"SELECT * FROM (producto NATURAL JOIN ofertas) WHERE (fec_inicio <= NOW() AND fec_fin >= NOW()) AND producto.categoria LIKE '%$cate%' ;\";\n $result=$GLOBALS['conne']->query($sql_sel);\n if($result->num_rows>0){\n return $result;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "c85f39bec4f47877bcaaa64c51681fbe", "score": "0.56716555", "text": "function getAll() {\n global $MAIN_TABLE, $DAY_TABLE, $db;\n $sql = \"SELECT name FROM $MAIN_TABLE ORDER BY time DESC;\";\n $result = $db->query($sql);\n \n $data = array();\n while($row = $result->fetch_array()) {\n $data[] = $row;\n }\n $result->free();\n \n echo json_encode($data);\n }", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "bf04fc80ae65c5e1cca2bb4aa6b9db4b", "score": "0.0", "text": "public function index()\n {\n // Check authorisation and throw 404 if not\n if (!Auth::user()->hasAnyPermissionType('site.maintenance'))\n return view('errors/404');\n\n $requests = Auth::user()->maintenanceRequests(2);\n $request_ids = ($requests) ? $requests->pluck('id')->toArray() : [];\n\n $under_review = DB::table('site_maintenance AS m')\n ->select(['m.id', 'm.site_id', 'm.code', 'm.supervisor', 'm.completed', 'm.reported', 'm.warranty', 'm.goodwill', 'm.category_id', 'm.status', 'm.updated_at', 'm.created_at',\n DB::raw('DATE_FORMAT(m.created_at, \"%d/%m/%y\") AS created_date'),\n DB::raw('DATE_FORMAT(m.completed, \"%d/%m/%y\") AS completed_date'),\n DB::raw('DATE_FORMAT(m.updated_at, \"%d/%m/%y\") AS updated_date'),\n 's.code as sitecode', 's.name as sitename'])\n ->join('sites AS s', 'm.site_id', '=', 's.id')\n ->whereIn('m.id', $request_ids)\n ->where('m.status', 2)->get();\n\n return view('site/maintenance/list', compact('under_review'));\n }", "title": "" } ]
[ { "docid": "d4a0ecd8566af1bfd9231147ca1e458f", "score": "0.7474345", "text": "public function list()\n {\n try {\n $result = $this->get_all();\n $this->response($result);\n } catch (Exception $e) {\n $this->response(array(\n \"message\" => $e->getMessage()\n ), ERROR_CODE);\n }\n }", "title": "" }, { "docid": "6126929dc3b0a4f22ee22cc3ad8d6a7b", "score": "0.742424", "text": "public function index() \n\t{ \n\t\t$this->listing();\t\n\t}", "title": "" }, { "docid": "4c31098007bd884125e38a924a90b409", "score": "0.7370675", "text": "public function index()\n {\n $resources = Resource::paginate(10);\n return view('admin.resource.index', [\n 'resources' => $resources\n ]);\n }", "title": "" }, { "docid": "8fa6c385e83466b77bd15a6b86ea32e2", "score": "0.7304379", "text": "public function index()\n {\n $this->_create_list();\n $this->_display();\n\n }", "title": "" }, { "docid": "dd0281461ff38e01dc7daaf263a98684", "score": "0.72688746", "text": "function index() {\n $this->getList();\n }", "title": "" }, { "docid": "0e6388aacce7838ee1c78178d8108829", "score": "0.7267135", "text": "public function index(){\n\t\t\t$this->list();\n\t\t}", "title": "" }, { "docid": "223999e9a02d01dc0cad36705dec31b1", "score": "0.72478926", "text": "public function actionList() {\n $this->_getList();\n }", "title": "" }, { "docid": "9af36ef65a801a9d1ba3b391202f1180", "score": "0.7119231", "text": "public function index()\n {\n $resources = Resource::orderBy('id', 'desc')->paginate(20);\n return view('resource.index')->withResources($resources);\n }", "title": "" }, { "docid": "43a0ac0c5c36c0a0b193022ebde4ce89", "score": "0.7083264", "text": "public function index()\n {\n $config['tableName'] = trans('app.Resources list');\n $config['ignore'] = ['id', 'count', 'created_at', 'updated_at', 'deleted_at'];\n $config['list'] = MBResources::get()->toArray();\n $config['delete'] = 'app.resources.destroy';\n return view('admin.adminList',$config);\n }", "title": "" }, { "docid": "1855faa3b08cf438cac0964b9903bf8a", "score": "0.7014775", "text": "public function index()\n {\n $this->getListingService()\n ->setOrder($this->getOrder())\n ->setPagination($this->getPagination())\n ->getFilters()->add($this->getSearchFilter());\n $this->set(\n [\n $this->getEntityNamePlural() => $this->getListingService()\n ->getList(),\n 'pagination' => $this->getListingService()->getPagination()\n ]\n );\n }", "title": "" }, { "docid": "2e0ed72eb13150f2559131309e8f93b1", "score": "0.7001344", "text": "public function listing ()\n {\n // Fetch all questions\n $cacheID = 'listing';\n if (!$this->data['questions'] = $this->zf_cache->load($cacheID)) {\n $this->data['questions'] = $this->question_model->get_with_users();\n $this->zf_cache->save($this->data['questions'], $cacheID, array('all_questions'));\n }\n \n // Load view\n $this->load_view('questions/listing');\n }", "title": "" }, { "docid": "5412f0b9b053fcd0929c40d71994403a", "score": "0.69773793", "text": "public function index()\n {\n try {\n $resources = Resource::all();\n return $this->showAll($resources);\n } catch (Exception $ex) {\n return $this->errorResponse(\"Danh sách trống!\", Response::HTTP_INTERNAL_SERVER_ERROR);\n }\n }", "title": "" }, { "docid": "e31e9a0c7b3d2a9b4bc1a2880b844a81", "score": "0.6921471", "text": "public function indexAction()\n {\n $resource = $this->repo->all();\n if (!$resource) {\n return $this->errorNotFound('Resource not found');\n }\n return $this->apiOk($resource);\n }", "title": "" }, { "docid": "cbc2f6f0039706d1ede6b809aad8c23e", "score": "0.6894162", "text": "public function index()\n\t{\n\t\t//\n\t\t$this->getlist();\n\t\n\t}", "title": "" }, { "docid": "eed18db8f9e2d6b6fa328a727bce13ea", "score": "0.6884484", "text": "public function listingAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('SettingContentBundle:Page')->findBy(array(),array('name' => 'asc'));\n\n return $this->render('SettingContentBundle:Page:index.html.twig', array(\n 'pagination' => $entities,\n ));\n }", "title": "" }, { "docid": "a753301d8fa92e6902db5a211f69a62a", "score": "0.6880599", "text": "public function indexAction()\n {\n if($categoryId = $this->request->getQuery('categoryId')){\n $resource = $this->repo->all($categoryId);\n }else {\n $resource = $this->repo->all();\n }\n if (!$resource) {\n return $this->errorNotFound('Resource not found');\n }\n return $this->apiOk($resource);\n }", "title": "" }, { "docid": "060b373609f7e0db718e407076c66e1d", "score": "0.68629915", "text": "public function indexAction()\n {\n $this->tag->setTitle(__('Firewalls'));\n // Available sort to choose\n $this->filter->add('in_array', function($value) {\n return in_array($value, ['name', 'name DESC', 'status', 'status DESC']) ? $value : null;\n });\n\n // Get networks and prepare pagination\n $paginator = new Paginator([\n \"data\" => Firewalls::find(['order' => $this->request->getQuery('order', 'in_array', 'id', true)]),\n \"limit\" => $this->request->getQuery('limit', 'int', 20, true),\n \"page\" => $this->request->getQuery('page', 'int', 1, true)\n ]);\n\n $this->view->setVars([\n 'pagination' => $paginator->getPaginate(),\n ]);\n }", "title": "" }, { "docid": "0473d264241dfecb205046df754f7ad1", "score": "0.6856284", "text": "public function index() {\n $resources = static::$resource::orderBy(static::$orderBy)->paginate(static::$pageSize);\n return view($this->getView('index'), [static::$varName[1] ?? $this->getResourcePluralName() => $resources]);\n }", "title": "" }, { "docid": "efde97fbf9254ea0e2b2b7023e05101a", "score": "0.68546814", "text": "public function indexAction()\n {\n\t\tif(!Engine_Api::_()->core()->hasSubject('list_listing')) {\n\t\t\treturn $this->setNoRender();\n\t\t}\n\n\t\t//GET LISTING SUBJECT\n\t\t$subject = Engine_Api::_()->core()->getSubject();\n\n\t\t//GET VARIOUS WIDGET SETTINGS\n\t\t$this->view->statisticsRating = (int) Engine_Api::_()->getApi('settings', 'core')->getSetting('list.rating', 1);\n\t\t$this->view->truncation = $this->_getParam('truncation', 23);\n\t\t$related = $this->_getParam('related', 'categories');\n\n\t\t$params = array();\n\n\t\tIf($related == 'tags') {\n\n\t\t\t//GET TAGS\n\t\t\t$listingTags = $subject->tags()->getTagMaps();\n\n\t\t\t$params['tags'] = array();\n\t\t\tforeach ($listingTags as $tag) {\n\t\t\t\t$params['tags'][] = $tag->getTag()->tag_id;\n\t\t\t}\n\n\t\t\tif(empty($params['tags'])) {\n\t\t\t\treturn $this->setNoRender();\n\t\t\t}\n\n\t\t}\n\t\telseif($related == 'categories') {\n\t\t\t$params['category_id'] = $subject->category_id;\n\t\t}\n\t\telse {\n\t\t\treturn $this->setNoRender();\n\t\t}\n\n //FETCH LISTINGS\n\t\t$params['listing_id'] = $subject->listing_id;\n $params['orderby'] ='RAND()';\n $params['limit'] = $this->_getParam('itemCount', 3);\n $this->view->paginator = Engine_Api::_()->getDbtable('listings', 'list')->widgetListingsData($params);\n\n if (Count($this->view->paginator) <= 0) {\n return $this->setNoRender();\n }\n }", "title": "" }, { "docid": "248744b37e08a9b9e31438a427fee7ee", "score": "0.68331116", "text": "public function index()\n {\n $module = Module::get('Resources');\n \n if(Module::hasAccess($module->id)) {\n return View('la.resources.index', [\n 'show_actions' => $this->show_action,\n 'listing_cols' => Module::getListingColumns('Resources'),\n 'module' => $module\n ]);\n } else {\n return redirect(config('laraadmin.adminRoute') . \"/\");\n }\n }", "title": "" }, { "docid": "954a21a94c60b4569f28c882641e7298", "score": "0.68295634", "text": "public function index()\n {\n return view('admin.resources.index', [\n 'resources' => Resource::published()->get()\n ]);\n }", "title": "" }, { "docid": "ac3d7b3949ed4508eaeabfca96b1ae5e", "score": "0.6819477", "text": "protected function listAction()\n {\n $this->dispatch(EasyAdminEvents::PRE_LIST);\n\n $extFilters = $this->request->query->get('ext_filters');\n if(isset($extFilters['entity.gallery'])) {\n $dql = 'entity.gallery = ' . $extFilters['entity.gallery'];\n $this->entity['list']['dql_filter'] = $dql;\n }\n \n $fields = $this->entity['list']['fields'];\n $paginator = $this->findAll($this->entity['class'], $this->request->query->get('page', 1), $this->entity['list']['max_results'], $this->request->query->get('sortField'), $this->request->query->get('sortDirection'), $this->entity['list']['dql_filter']);\n\n $this->dispatch(EasyAdminEvents::POST_LIST, ['paginator' => $paginator]);\n\n $parameters = [\n 'paginator' => $paginator,\n 'fields' => $fields,\n 'batch_form' => $this->createBatchForm($this->entity['name'])->createView(),\n 'delete_form_template' => $this->createDeleteForm($this->entity['name'], '__id__')->createView(),\n ];\n\n return $this->executeDynamicMethod('render<EntityName>Template', ['list', $this->entity['templates']['list'], $parameters]);\n }", "title": "" }, { "docid": "e4a0d12ede1642140b2b2864bea7bde8", "score": "0.6817071", "text": "public function show_list();", "title": "" }, { "docid": "a63fe3d362e9ed8bdeb8c498c0f70dc8", "score": "0.68072224", "text": "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n //dump($todos);\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "title": "" }, { "docid": "b27b06ba87e23efaf02018ba6a48d4b4", "score": "0.68071634", "text": "public function index()\n {\n /// Get cars\n $cars = Car::paginate();\n\n // Return collection of articles as a resource\n return CarResource::collection($cars);\n }", "title": "" }, { "docid": "8e473fb8d57781fcbb301d794e4638b7", "score": "0.68054026", "text": "public function listResources();", "title": "" }, { "docid": "ae6ac1129584c76c474a8718bca91c33", "score": "0.6780087", "text": "public function ListView() {\n $this->Render();\n }", "title": "" }, { "docid": "ecd287988f4b7da6fd1ee3a4ce0dbbb4", "score": "0.6772568", "text": "public function index()\n {\n $tickets = TicketsModel::paginate(10);\n\n //passing data to resource\n return TicketsResource::collection($tickets);\n }", "title": "" }, { "docid": "e33620f9e0602f70ef6cab4f1bdb2610", "score": "0.67710763", "text": "public function index()\n\t{\n\t\t$this->listar();\n\t}", "title": "" }, { "docid": "1791d7d351176ff2ce62051654642a7d", "score": "0.6743463", "text": "public function indexAction()\n {\n $this->render('lists/index', array(\n 'title' => 'Todo Lists',\n 'lists' => TodoList::all()\n ));\n }", "title": "" }, { "docid": "a62c8fb3c6a39b17143e4f99a44215eb", "score": "0.674278", "text": "public function index()\n {\n // Get Products\n $products = Product::paginate(15);\n\n // Return collection of products as a resource\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "3cb20d494ffa4e3923d82dc428173efe", "score": "0.67425853", "text": "public function listAction()\n {\n $date = array();\n $date['year'] = $this->_getParam('year', null);\n $date['month'] = $this->_getParam('month', null);\n $date['day'] = $this->_getParam('day', null);\n\n $model = $this->_getPhotoModel();\n\n $by = $this->_getParam('by', null);\n if ($by == 'taken_at') {\n $entries = $model->fetchEntriesByTakenAt($date, $this->_getParam('page', 1));\n } else {\n $entries = $model->fetchEntriesByCreated($date, $this->_getParam('page', 1));\n }\n $this->view->paginator = $entries;\n }", "title": "" }, { "docid": "04105211a75ba7457c72346a442bef90", "score": "0.6742193", "text": "function Index()\n\t\t{\n\t\t\t$this->DefaultParameters();\n\t\t\t\r\n\t\t\t$parameters = array('num_rows');\r\n\t\t\t$this->data[$this->name] = $this->controller_model->ListItemsPaged($this->request->get, '', $parameters);\r\n\t\t\t$this->data['num_rows'] = $parameters['num_rows'];\n\t\t}", "title": "" }, { "docid": "f1af362b177db60f1aa234951fb3dd26", "score": "0.67406327", "text": "public function listAction()\r\n {\r\n\r\n return array(\r\n 'items' => $this->getMapper()->findAll()\r\n );\r\n }", "title": "" }, { "docid": "1ad218b37000705f13503d05f42e31f8", "score": "0.6729927", "text": "public function listing(){\n //appelle constructeur produit\n }", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.67255723", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.67255723", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "8bc383be0c0551987008cc1e903dfb3e", "score": "0.6717295", "text": "function listing(){ \n $data['title'] = 'Senarai Selenggaraan';\n $this->_render_page($data);\n }", "title": "" }, { "docid": "465ee43697fce30b312a8f52108bb059", "score": "0.6708992", "text": "public function listAction ( )\n {\n $model = $this->getModel('Scale');\n $request = $this->getRequest();\n\n $this->view->items = $model->paginate($request->getParams());\n\n }", "title": "" }, { "docid": "5370c2b221a0c31116fb4369ab9f4812", "score": "0.66993403", "text": "public function actionIndex()\n {\n // init Active Record\n $query = new ProfileRecords();\n\n // set current page and offset\n $page = (int)$this->request->query->get('page');\n $offset = $page * self::ITEM_PER_PAGE;\n\n // build pagination\n $pagination = new SimplePagination([\n 'url' => ['profile/index'],\n 'page' => $page,\n 'step' => self::ITEM_PER_PAGE,\n 'total' => $query->count()\n ]);\n\n // build listing objects\n $records = $query->orderBy('id', 'desc')->skip($offset)->take(self::ITEM_PER_PAGE)->get();\n\n // display viewer\n return $this->view->render('index', [\n 'records' => $records,\n 'pagination' => $pagination\n ]);\n }", "title": "" }, { "docid": "ec97d24c4e19a5128b0e53c5846b9bf5", "score": "0.669244", "text": "public function index()\n {\n return $this->getList();\n\n }", "title": "" }, { "docid": "ff020d8354464758e72e91a912f20d8e", "score": "0.66923076", "text": "public function actionList()\n {\n $list = $this->viewList('car');\n $imgs = ImageModel::load('img/car/logo/');\n return $this->render('list',compact('list','imgs'));\n }", "title": "" }, { "docid": "cd9c5c4bfebd4034e9aab606b543d95a", "score": "0.66892284", "text": "public function index()\n {\n $todos = Todo::paginate(50);\n return TodosResource::collection($todos);\n }", "title": "" }, { "docid": "5509d28122c561e86197cbcc735e8008", "score": "0.6688171", "text": "public function index()\n {\n $products = Product::filter()->paginate();\n\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "712af5c8b3ebcbb93ccacf71c37b0d64", "score": "0.66876715", "text": "public function index()\n {\n return ResourceResource::collection(auth()->user()->resources);\n }", "title": "" }, { "docid": "7ee6025c5609ac52b9b1dbb4db5ac2f3", "score": "0.6686426", "text": "public function index()\n\t{\n\t\tlist_details();\n\t}", "title": "" }, { "docid": "ffb17c08a85c1385b784beb46e5b3ade", "score": "0.66860104", "text": "public function index()\n {\n $artists = Artist::orderBy('sort', 'asc')->get();\n\n return ArtistResource::collection($artists);\n }", "title": "" }, { "docid": "10a81357fb2912f13e91cd4d9b24c4d0", "score": "0.66837037", "text": "public function listAction()\n {\n $contentObject = $this->configurationManager->getContentObject();\n $header = $contentObject->data['header'];\n\n $this->view->assign('header', $header);\n $this->view->assign('plays', $this->playRepository->findAll());\n }", "title": "" }, { "docid": "4749d27d60b7528b95f66725757fb6f5", "score": "0.66763073", "text": "public function listAction()\n {\n $tags = $this->getTags();\n $this->view->assign('tags', $tags);\n }", "title": "" }, { "docid": "148383f68d3328f7ff820d3aa26f22ff", "score": "0.6669373", "text": "public function indexAction()\n\t{\n\t\t$this->_view->_title \t\t\t\t= ucfirst($this->_arrParam['controller']) . \" Controller :: List\";\n\n\t\t//Total Items\n\t\t$this->_view->itemsStatusCount \t\t= $this->_model->countItems($this->_arrParam, ['task' => 'count-items-status']);\n\t\t$itemCount \t\t\t\t\t\t\t= $this->_model->countItems($this->_arrParam, ['task' => 'count-items-status']);\n\t\t$configPagination \t\t\t\t\t= ['totalItemsPerPage' => 5, 'pageRange' => 3];\n\t\t$this->setPagination($configPagination);\n\t\t$status \t\t\t\t\t\t\t= $this->_arrParam['status'] ?? 'all';\n\t\t$this->_view->pagination \t\t\t= new Pagination($itemCount[$status], $this->_pagination);\n\n\t\t//List Items\n\t\t$this->_view->items \t\t\t\t= $this->_model->listItems($this->_arrParam);\n\t\t$this->_view->slbCategory \t\t\t\t= [0 => ' - Select Category - '] + $this->_model->itemInSelectbox($this->_arrParam, null);\n\t\t$this->_view->render($this->_arrParam['controller'] . '/index');\n\t}", "title": "" }, { "docid": "b4ab065b5e289a80de47b28c29b12ba7", "score": "0.6668575", "text": "public function index()\n {\n /* authorization */\n $this->authorize('viewAny', Family::class);\n\n $families = Family::all();\n /* return resource collection */\n return FamilyResource::collection($families);\n }", "title": "" }, { "docid": "91774d2a4f88a022706d4cc72b2fb4b9", "score": "0.66636354", "text": "public function _index() {\n\t\t$datas = DAO::getAll ( $this->model );\n\t\techo $this->_getResponseFormatter ()->get ( $datas );\n\t}", "title": "" }, { "docid": "473597c1b0826e1810587ecd7042a12d", "score": "0.6660131", "text": "public function actionIndex()\n {\n $searchModel = new ResourcemanagementSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "68a18d7d7744ddf6d10c85166d9a9672", "score": "0.6658018", "text": "public function listing($arguments);", "title": "" }, { "docid": "0e3a54a39646333a6d375a7c945db124", "score": "0.6655571", "text": "public function listAction()\n {\n $user = $this->getUser();\n $em = $this->getDoctrine()->getManager();\n $films = $em->getRepository(Film::class)\n ->findAll();\n return $this->render('admin/listFilm.html.twig', [\n 'films' => $films,\n 'user' => $user\n ]);\n }", "title": "" }, { "docid": "f186543d4e229fe60c320d197652a0ac", "score": "0.6648046", "text": "public function index()\n {\n return BookResource::collection(Book::paginate());\n }", "title": "" }, { "docid": "6e0e97799dea5e1f1424a0ed54835cae", "score": "0.6646619", "text": "public function index()\n {\n $products = Product::paginate();\n\t\treturn new ListCollection($products);\n }", "title": "" }, { "docid": "12d65a6c55f0fff8b933565f6365be6c", "score": "0.6637915", "text": "public function index() {\n return $this->showAll();\n }", "title": "" }, { "docid": "862f0847ab763608409837b536150716", "score": "0.66368043", "text": "public function indexAction()\r\n\t{\r\n\t\t$this->view->mainTitle = \"Listado de Plantillas\";\r\n\t\t$this->view->errors = $this->_helper->flashMessenger->getMessages();\r\n\t\t\r\n\t\t$nombre = $this->getParam(\"nombre\");\r\n\t\t$plantillas = $this->getRepository()->find($nombre);\r\n\t\t\r\n\t\t$this->view->plantillas = $plantillas;\r\n\t}", "title": "" }, { "docid": "39fb2eb38215d01e980796dd191b4bc2", "score": "0.6624286", "text": "public function index()\n {\n // needs to return multiple articles\n // so we use the collection method\n return ArticleListResource::collection(Article::all());\n }", "title": "" }, { "docid": "77b2fcb12774bae3c68bc3f546be203d", "score": "0.6624218", "text": "public function list ()\n {\n $products = Product::all();\n\n View::load('home', [\n 'products' => $products\n ]);\n\n }", "title": "" }, { "docid": "2564823d78cf46605ebc641dd521408d", "score": "0.6619503", "text": "public function listAction() {\n $this->_datatable();\n return $this->render('BackendBundle:FeastStage:list.html.twig');\n }", "title": "" }, { "docid": "7eb3e9d73404c31d887de34e0e543165", "score": "0.66194737", "text": "public function index()\n {\n $streams = Streams::paginate(15);\n\n return StreamsResource::collection($streams);\n }", "title": "" }, { "docid": "c5562ea22267c67b7e362d148ab229b0", "score": "0.6613858", "text": "public function index ()\n {\n $data = Category::paginate(15);\n\n return $this->display( [ 'data' => $data ] );\n }", "title": "" }, { "docid": "a10012db405ad2f58017047d7c5955a3", "score": "0.66135347", "text": "public function index()\n {\n // get articles\n $articles = Article::paginate(15);\n\n // return collection of articles as a ressource\n return ArticleResource::collection($articles);\n }", "title": "" }, { "docid": "4e546e7736c944aa032aaf9b866565c0", "score": "0.66128606", "text": "public function indexAction() {\n\t\t$this->view->assign('staticLists', $this->staticListService->listAll());\n\t}", "title": "" }, { "docid": "2d2195ebc523704e7f178bd9b4556f73", "score": "0.66104424", "text": "public function index()\n\t{\n\t\t//\n\t\t$resources = \\App\\Resource::with('category')->get();\n\t\treturn view('viewResource',['resources' => $resources ]);\n\t}", "title": "" }, { "docid": "8654188b350eeb0d720961a0f868517e", "score": "0.6602947", "text": "public function indexAction() {\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n\n\t\t//GET SUBJECT AND OTHER SETTINGS\n $this->view->list = Engine_Api::_()->core()->getSubject('list_listing');\n\t\t$settings_api = Engine_Api::_()->getApi('settings', 'core');\n\t\t$this->view->show_featured = $settings_api->getSetting('list.feature.image', 1);\n\t\t$this->view->featured_color = $settings_api->getSetting('list.featured.color', '#0cf523');\n\t\t$this->view->show_sponsered = $settings_api->getSetting('list.sponsored.image', 1);\n\t\t$this->view->sponsored_color = $settings_api->getSetting('list.sponsored.color', '#fc0505');\n\t\t\n //GET VIEWER AND CHECK VIEWER CAN EDIT PHOTO OR NOT\n $viewer = Engine_Api::_()->user()->getViewer();\n\t\t$this->view->can_edit = $this->view->list->authorization()->isAllowed($viewer, \"edit\");\n }", "title": "" }, { "docid": "c6630fa3ab4d194924045c2530a6eaf3", "score": "0.6595211", "text": "public function listAction()\n {\n $model = $this->_owApp->selectedModel;\n $translate = $this->_owApp->translate;\n $store = $this->_erfurt->getStore();\n $resource = $this->_owApp->selectedResource;\n $ac = $this->_erfurt->getAc();\n $params = $this->_request->getParams();\n $limit = 20;\n\n $rUriEncoded = urlencode((string)$resource);\n $mUriEncoded = urlencode((string)$model);\n $feedUrl = $this->_config->urlBase . \"history/feed?r=$rUriEncoded&mUriEncoded\";\n\n $this->view->headLink()->setAlternate($feedUrl, 'application/atom+xml', 'History Feed');\n\n // redirecting to home if no model/resource is selected\n if (\n empty($model) ||\n (\n empty($this->_owApp->selectedResource) &&\n empty($params['r']) &&\n $this->_owApp->lastRoute !== 'instances'\n )\n ) {\n $this->_abort('No model/resource selected.', OntoWiki_Message::ERROR);\n }\n\n // getting page (from and for paging)\n if (!empty($params['page']) && (int) $params['page'] > 0) {\n $page = (int) $params['page'];\n } else {\n $page = 1;\n }\n\n // enabling versioning\n $versioning = $this->_erfurt->getVersioning();\n $versioning->setLimit($limit);\n\n if (!$versioning->isVersioningEnabled()) {\n $this->_abort('Versioning/History is currently disabled', null, false);\n }\n\n $singleResource = true;\n // setting if class or instances\n if ($this->_owApp->lastRoute === 'instances') {\n // setting default title\n $title = $resource->getTitle() ?\n $resource->getTitle() :\n OntoWiki_Utils::contractNamespace($resource->getIri());\n $windowTitle = $translate->_('Versions for elements of the list');\n\n $listHelper = Zend_Controller_Action_HelperBroker::getStaticHelper('List');\n $listName = \"instances\";\n if ($listHelper->listExists($listName)) {\n $list = $listHelper->getList($listName);\n $list->setStore($store);\n } else {\n $this->_owApp->appendMessage(\n new OntoWiki_Message('something went wrong with the list of instances', OntoWiki_Message::ERROR)\n );\n }\n\n $query = clone $list->getResourceQuery();\n $query->setLimit(0);\n $query->setOffset(0);\n //echo htmlentities($query);\n\n $results = $model->sparqlQuery($query);\n $resourceVar = $list->getResourceVar()->getName();\n\n $resources = array();\n foreach ($results as $result) {\n $resources[] = $result[$resourceVar];\n }\n //var_dump($resources);\n\n $historyArray = $versioning->getHistoryForResourceList(\n $resources,\n (string) $this->_owApp->selectedModel,\n $page\n );\n //var_dump($historyArray);\n\n $singleResource = false;\n } else {\n // setting default title\n $title = $resource->getTitle() ?\n $resource->getTitle() :\n OntoWiki_Utils::contractNamespace($resource->getIri());\n $windowTitle = sprintf($translate->_('Versions for %1$s'), $title);\n\n $historyArray = $versioning->getHistoryForResource(\n (string)$resource,\n (string)$this->_owApp->selectedModel,\n $page\n );\n }\n\n if (sizeof($historyArray) == ( $limit + 1 )) {\n $count = $page * $limit + 1;\n unset($historyArray[$limit]);\n } else {\n $count = ($page - 1) * $limit + sizeof($historyArray);\n }\n\n $idArray = array();\n $userArray = $this->_erfurt->getUsers();\n $titleHelper = new OntoWiki_Model_TitleHelper();\n // Load IDs for rollback and Username Labels for view\n foreach ($historyArray as $key => $entry) {\n $idArray[] = (int) $entry['id'];\n if (!$singleResource) {\n $historyArray[$key]['url'] = $this->_config->urlBase . \"view?r=\" . urlencode($entry['resource']);\n $titleHelper->addResource($entry['resource']);\n }\n\n if ($entry['useruri'] == $this->_erfurt->getConfig()->ac->user->anonymousUser) {\n $userArray[$entry['useruri']] = 'Anonymous';\n } else if ($entry['useruri'] == $this->_erfurt->getConfig()->ac->user->superAdmin) {\n $userArray[$entry['useruri']] = 'SuperAdmin';\n } else if (is_array($userArray[$entry['useruri']])) {\n if (isset($userArray[$entry['useruri']]['userName'])) {\n $userArray[$entry['useruri']] = $userArray[$entry['useruri']]['userName'];\n } else {\n $titleHelper->addResource($entry['useruri']);\n $userArray[$entry['useruri']] = $titleHelper->getTitle($entry['useruri']);\n }\n }\n }\n $this->view->userArray = $userArray;\n $this->view->idArray = $idArray;\n $this->view->historyArray = $historyArray;\n $this->view->singleResource = $singleResource;\n $this->view->titleHelper = $titleHelper;\n\n if (empty($historyArray)) {\n $this->_owApp->appendMessage(\n new OntoWiki_Message(\n 'No history for the selected resource(s).',\n OntoWiki_Message::INFO\n )\n );\n }\n\n if ($this->_erfurt->getAc()->isActionAllowed('Rollback')) {\n $this->view->rollbackAllowed = true;\n // adding submit button for rollback-action\n $toolbar = $this->_owApp->toolbar;\n $toolbar->appendButton(\n OntoWiki_Toolbar::SUBMIT,\n array('name' => $translate->_('Rollback changes'), 'id' => 'history-rollback')\n );\n $this->view->placeholder('main.window.toolbar')->set($toolbar);\n } else {\n $this->view->rollbackAllowed = false;\n }\n\n // paging\n $statusBar = $this->view->placeholder('main.window.statusbar');\n // the normal page_param p collides with the generic-list param p\n OntoWiki_Pager::setOptions(array('page_param'=>'page'));\n $statusBar->append(OntoWiki_Pager::get($count, $limit));\n\n // setting view variables\n $url = new OntoWiki_Url(array('controller' => 'history', 'action' => 'rollback'));\n\n $this->view->placeholder('main.window.title')->set($windowTitle);\n\n $this->view->formActionUrl = (string) $url;\n $this->view->formMethod = 'post';\n // $this->view->formName = 'instancelist';\n $this->view->formName = 'history-rollback';\n $this->view->formEncoding = 'multipart/form-data';\n }", "title": "" }, { "docid": "ffa4ab9d8165639a117e4bc3980fc30d", "score": "0.6590207", "text": "public function index()\n {\n //\n // $authors= Author::all();\n $authors = QueryBuilder::for(Author::class)->allowedSorts([\n 'name',\n 'created_at'\n ])->jsonPaginate();\n return AuthorsResource::collection($authors);\n }", "title": "" }, { "docid": "e16b7bcfc7e0c35a6d0ecf74b30d6a20", "score": "0.6588596", "text": "public function index()\n {\n $title = $this->title($this->modelName);\n $modelName = $this->modelName;\n $model = $this->model;\n $listStatus = $this->listStatus;\n $models = Bank::paginate(10);\n return view('bank.lists.index', compact('title', 'models', 'modelName', 'model', 'listStatus'));\n }", "title": "" }, { "docid": "74d4617df84723cff26f33e255390482", "score": "0.65881836", "text": "public function actionIndex()\n {\n $items = ModelGeneral::showItems();\n\n $this->view->render('index', [\n 'items' => $items\n ]);\n }", "title": "" }, { "docid": "0221833762d40c420a048045edcecf8f", "score": "0.6586874", "text": "public function actionList()\n {\n $searchModel = new RecipeRepository();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render([\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "fb55b34f40f8931a10a91283716c2912", "score": "0.6586714", "text": "public function index()\n {\n return ListItem::all();\n }", "title": "" }, { "docid": "d387ade88ed7ada9aa0979d5a0c09bee", "score": "0.6585575", "text": "public function index()\n {\n return ProductResource::collection(Product::paginate());\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.65643096", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "b9b300aec37bbe88214d2c466b083d07", "score": "0.6560596", "text": "public function index()\n {\n // Obtengo los resultados\n $results = Result::all();\n\n // Lo devuelvo como un recurso\n return ResultResource::collection($results);\n }", "title": "" }, { "docid": "e840f12f97ea99ca01a90a9ec9cad7ca", "score": "0.65599096", "text": "public function index()\n {\n return BookResource::collection(Book::with('authors')->paginate(25));\n }", "title": "" }, { "docid": "7056dcfc0479ee6a004c692cbdce673b", "score": "0.65567315", "text": "public function index()\n {\n $operations = $this->Operations->getAllOperations();\n $this->set(compact('operations'));\n }", "title": "" }, { "docid": "19e51010afc5a8251ed229fa24e89b84", "score": "0.6555101", "text": "public function index()\n {\n $items = Item::search()->paginate(10);\n return view('item.list', compact('items'));\n }", "title": "" }, { "docid": "451b54ad54f4267a96a3c9a18faae916", "score": "0.6552225", "text": "function index()\n {\n $this->listArticles();\n }", "title": "" }, { "docid": "8ffe23111661c679bede8757d6ebad59", "score": "0.65496445", "text": "public function index()\n\t{\n\t\t$data['lists'] = $this->role_model->get_all();\n\t\t$this->template->set('title', 'Role List');\n\t\t$this->template->admin('template', 'list', $data);\n\t}", "title": "" }, { "docid": "ea133c7a5d450c0580ac1c613df4b59d", "score": "0.65474623", "text": "public function index()\n {\n //Get Movies\n $movies = Movie::paginate(15);\n\n //return collection of movies as a resource\n return MovieResource::collection($movies);\n }", "title": "" }, { "docid": "46a4b83443e6a7cb9ed2604a7ba376d3", "score": "0.6541433", "text": "public function viewList(): void\n {\n $model = self::fetchModel($this->request->get(self::PARAM_MODEL_NAME));\n $this->response->set(Mvc::TEMPLATE, 'manager');\n $this->response->set(Mvc::CONTEXT, $this->request->get(Mvc::CONTEXT));\n $this->response->set(Mvc::VIEW, $this->request->get(Mvc::VIEW));\n $this->response->set('config', $this->getCrudConfig($model));\n $content = FrontendHelper::parseFile('/var/www/_dev/vendor/noxkiwi/crud/frontend/view/crudfrontend/list.php');\n $this->response->set('content', $content);\n $this->response->set(self::PARAM_MODEL_NAME, $this->modelName);\n }", "title": "" }, { "docid": "f0e979747234803271be38ea6cd3396e", "score": "0.65383667", "text": "public function index()\n\t{\n\t\t$categories = Category::paginate(5);\n\t\treturn CategoryResource::collection($categories);\n\t}", "title": "" }, { "docid": "e08fd6cadf8c20cad7196e73194fba35", "score": "0.65371203", "text": "public function index()\n {\n return $this->service->showAll();\n }", "title": "" }, { "docid": "f852b02ada9624be17ccc6c0b233bca4", "score": "0.65288365", "text": "public function list()\n {\n }", "title": "" }, { "docid": "de74480294a1123dacaf091a018a43f7", "score": "0.6526695", "text": "public function _index(){\n\t $this->_list();\n\t}", "title": "" }, { "docid": "3a2bf5049606c1975209783c9d992936", "score": "0.652094", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n $recipes = $em->getRepository('AppBundle:Recipe')->findAll();\n\n return $this->render('@frontend/recipe/list.html.twig', array(\n 'recipes' => $recipes\n ));\n }", "title": "" }, { "docid": "976cbb5be4594e239e987a2fbcbe8b3a", "score": "0.6513086", "text": "public function index()\n {\n return FieldResource::collection(Field::paginate());\n }", "title": "" }, { "docid": "901678e4ca1d10119628a2768429725f", "score": "0.65128183", "text": "public function index()\n {\n return AlbumResource::collection(\\App\\Album::orderBy('created_at', 'desc')->get());\n }", "title": "" }, { "docid": "f2cedab0962de588e01c1716c1790aad", "score": "0.65068287", "text": "public function index()\n {\n // return Response::json(request()->route(), 200);\n $action = \"SHOW \" . $this->page;\n try {\n $search = request()->get(\"search\");\n $isPaging = request()->exists(\"page\");\n\n $model = $this->model::query();\n\n // If admin searches for any name\n if (!empty($search)) {\n $model = $model->whereName($search);\n }\n\n if (isset($this->loadParam['read'])) {\n if(isset($this->loadParam['read']['with'])) {\n $withs = explode(',', $this->loadParam['read']['with']);\n foreach ($withs as $with) {\n $model = $model->with($with);\n }\n }\n }\n\n // Provide based on paging or not\n if ($isPaging) {\n $model = $model\n ->orderBy('id', 'desc')->paginate();\n } else {\n $model = $model\n ->orderBy('id', 'desc')->get();\n }\n\n // If permission has data\n if ($model) {\n $this->lg($this->page . ' list shown', 'info', $action, 200);\n return response()->json($model);\n } else {\n $this->lg($this->page . ' list not found', 'warning', $action, 404);\n return response()->json(\"Not found\", 404);\n }\n } catch (\\Exception $e) {\n $this->lg($e, 'error', $action, 500);\n return response()->json($this->experDifficulties, 500);\n }\n }", "title": "" }, { "docid": "ef707fce78cb544fb65c0a4e38796dff", "score": "0.65030056", "text": "private function showList(): void\n {\n $msg = \"Welcome customer, to view the product list type: list\\n\";\n echo $msg;\n while ($command = $this->getInput() !== 'list') {\n echo $msg;\n };\n $products = Route::goTo('list');\n $this->products = $products;\n foreach ($this->products as $product) {\n echo $product->toString() . \"\\n\";\n }\n }", "title": "" }, { "docid": "a281ecc70e3d52bd2ee1e4bfba8e1724", "score": "0.6497771", "text": "public function index()\n {\n return SongResource::collection(Song::all()->sortByDesc('created_at'));\n }", "title": "" }, { "docid": "7f844292b4038bfed459f1130c7632dd", "score": "0.64967513", "text": "public function listAction()\n {\n $this->view->assign('articles', $this->repository->findForListPlugin($this->settings, $this->getData()));\n }", "title": "" }, { "docid": "ff30a4ae8d49f1706d1dbd328394a294", "score": "0.6493153", "text": "public function index()\n {\n $brands = Brand::query()->paginate();\n return BrandResource::collection($brands);\n }", "title": "" }, { "docid": "629569270186c168f2f698db8154b51a", "score": "0.6487244", "text": "public function index()\n {\n $articles = Article::query()->latest()->paginate(10);\n\n return ArticleResource::collection($articles);\n }", "title": "" }, { "docid": "228d685d5f1d86518c57ce853ccd52ef", "score": "0.64868814", "text": "public function listAction() {\n\t\t$literatures = $this->literatureRepository->findAll();\n\t\t$this->view->assign('literatures', $literatures);\n\t}", "title": "" }, { "docid": "25aaedcb3f8fbe36cdc02986a86cf453", "score": "0.64846873", "text": "public function index()\n {\n // Get Specifications\n $specifications = Specification::orderBy('created_at', 'desc')->paginate(100);\n\n // Return collection of Specifications as a resource\n return SpecificationResource::collection($specifications);\n }", "title": "" }, { "docid": "e4ed0c12368721c8003fa5e2056a624b", "score": "0.6479523", "text": "public function indexAction()\n {\n $user = $this->get('security.context')->getToken()->getUser();\n \n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('BricksSiteBundle:ExternalResource')->findBy(\n array(),\n array('title' => 'ASC')\n );\n\n return array(\n 'entities' => $entities,\n );\n }", "title": "" }, { "docid": "d4e011bbb309b20dccd6a637cae8b802", "score": "0.64744496", "text": "public function index()\n {\n return response(TodoResource::collection(Todo::all()), 200);\n }", "title": "" } ]
afa4c4f722a94a29ef243589653be82e
The end of admin_options_page
[ { "docid": "06dc4d00813b0eda1325de116616e2b9", "score": "0.0", "text": "public function show_rasolo_logo(){\r\n\t\t?><h3 class=\"rs_right\">&copy; &laquo;Ra-Solo&raquo;</h3>\r\n\t\t<?php\r\n\t}", "title": "" } ]
[ { "docid": "b026245232252ef48351198235ec2af0", "score": "0.8247898", "text": "protected function optionsPage()\n\t\t{\n\t\t}", "title": "" }, { "docid": "fe912523a0e002a9e6adfa25c4cadaae", "score": "0.7940493", "text": "public function admin_options() {\n\t\t\t?>\n\t\t\t\t<h3><?php echo $this->method_title; ?></h3>\n\t\t\t\t<p><?php _e('Opção para pagamento através do Moip Checkout Transparente', 'woothemes'); ?></p>\n\t\t\t\t<table class=\"form-table\">\n\t\t\t\t\t<?php\n\t\t\t\t\t\t// Generate the HTML For the settings form.\n\t\t\t\t\t\t$this->generate_settings_html();\n\t\t\t\t\t?>\n\t\t\t\t</table><!--/.form-table-->\n\t\t\t<?php\n\t\t}", "title": "" }, { "docid": "f8eac0fa66ca14bac24c6ef2a5028672", "score": "0.7713061", "text": "public function ssw_options_page() {\n\t\t\tinclude(SSW_PLUGIN_DIR.'admin/ssw_options_page.php');\n\t\t}", "title": "" }, { "docid": "8063874b5d0587acd44eb4c9e009098a", "score": "0.7702555", "text": "public function render_admin_options_page() {\n\t\tif ( $this->red_a($_POST, $this->prefix.'settings',false) ) { // will be true if set :)\n\t\t\tupdate_option($this->prefix.'settings', $_POST[$this->prefix.'settings'] );\n\t\t\t$this->settings = $_POST[ $this->prefix.'settings' ];\n\t\t}\n\t\tif ( $this->red_a($_REQUEST,'show_help',false) ) {\n\t\t\techo $this->red_render_template(\"admin/admin_help_page.php\", array());\n\t\t} else {\n\t\t\techo $this->red_render_template(\"admin/admin_settings_page.php\", array());\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "8754750845689a0575934fcd59e55d24", "score": "0.7687586", "text": "function acf_options_page() { }", "title": "" }, { "docid": "e0010924cfa94f5a40d832d1c7b1fded", "score": "0.76210135", "text": "public function admin_options() {\n wp_redirect(wc_onpay_query_helper::generate_url(['page' => 'wc-settings','tab' => WC_OnPay::WC_ONPAY_ID, 'section' => 'methods']));\n exit;\n }", "title": "" }, { "docid": "36633aeef53e05999f325be6caedc5b3", "score": "0.75756985", "text": "public function admin_options(){\n echo '<h3>'.__('Velocity', 'nab').'</h3>';\n echo '<p>'.__('Redefining Payments, Simplifying Lives! Empowering any business to collect money online within minutes').'</p>';\n echo '<table class=\"form-table\">';\n // Generate the HTML For the settings form.\n $this->generate_settings_html();\n echo '</table>';\n }", "title": "" }, { "docid": "3bf2a50d9b76315ed4cf0cd16b1ed821", "score": "0.7527802", "text": "public function admin_options() {\n ?>\n <h3><?php _e('Fashionpay', 'FirstTeam'); ?></h3>\n <p><?php _e('Fashionpay is one of the most widely used payment method in China, customer can pay with or without an Fashionpay account', 'FirstTeam'); ?></p>\n <table class=\"form-table\">\n <?php\n // Generate the HTML For the settings form.\n $this->generate_settings_html();\n ?>\n </table><!--/.form-table-->\n <?php\n }", "title": "" }, { "docid": "17c28914418fc168cb75b6d2940e25d8", "score": "0.7479684", "text": "function csds_userRegAide_optionsPage(){\r\n\t\tglobal $ura_settings_0;\r\n\t\t$admin_settings = new INPUT_NEW_FIELDS_CONTROLLER();\r\n\t\tif( function_exists( 'add_menu_page' ) ){\r\n\t\t\t//if(!is_multisite()){\r\n\t\t\t$ura_settings_0 = add_menu_page( __( 'User Registration Aide', 'user-registration-aide' ), __( 'User Registration Aide', 'user-registration-aide' ), 'manage_options', 'user-registration-aide', array( &$admin_settings, 'initiate_new_fields_input_page' ), 'dashicons-admin-users', 71 ) ; // line 71 &$admin_settings\r\n\t\t}\r\n\t\t$uras = new URA_STYLES();\r\n\t\t$dm = new URA_DASH_MSGS();\r\n\t\tadd_action( 'admin_print_styles-'.$ura_settings_0, array( &$uras, 'csds_userRegAide_enqueueMyStyles' ) );\r\n\t\tadd_action( 'load-'.$ura_settings_0, array( &$dm, 'my_help_setup' ) );\r\n\t\tunset( $uras, $dm );\r\n\t}", "title": "" }, { "docid": "8f6ec7181899a86bed5a3a47c17b7cc4", "score": "0.7385085", "text": "public function option_page_html()\n {\n ?>\n <?php do_action($_GET['page'] . '-before-page'); ?>\n <div class=\"wrap oxygenna-options-page\">\n <div class=\"icon32\">\n <img src=\"<?php echo OXY_TF_URI . 'assets/images/oxygenna.png' ?>\" alt=\"Oxygenna logo\">\n </div>\n <h2><?php echo get_admin_page_title(); ?></h2>\n <?php settings_errors(); ?>\n <div id=\"ajax-errors-here\"></div>\n <form method=\"post\" action=\"options.php\">\n <?php settings_fields($this->option_group); ?>\n <?php do_settings_sections($_GET['page']); ?>\n <div class=\"submit-footer\">\n <?php submit_button(__('Save Changes', 'omega-admin-td'), 'primary', 'save_changes'); ?>\n <?php submit_button(__('Restore Defaults', 'omega-admin-td'), 'secondary', 'reset_options'); ?>\n </div>\n </form>\n </div>\n <?php do_action($_GET['page'] . '-after-page'); ?>\n <?php\n }", "title": "" }, { "docid": "c71922048ee603b17eb053ab8266f381", "score": "0.737668", "text": "public function admin_options() {\n\t\tif ( $this->is_valid_for_use() ) {\n\t\t\tparent::admin_options();\n\t\t} else {\n\t\t\t?>\n\t\t\t<div class=\"inline error\">\n\t\t\t\t<p>\n <strong>\n <?php \n esc_html_e( 'Passerelle désactivé', 'wc-jetchoko-gateway' ); \n ?>\n </strong>: \n <?php \n esc_html_e( 'JeTchoko Payment GateWay ne supporte pas la monnaie de votre boutique!', 'wc-jetchoko-gateway' ); \n ?>\n\t\t\t\t</p>\n <?php deactivate_plugins( WC_GATEWAY_BASENAME ); ?>\n\t\t\t</div>\n\t\t\t<?php\n \n\t\t}\n\t}", "title": "" }, { "docid": "ea267d4a17773c1b461fc51a436a74f1", "score": "0.7367507", "text": "function rosewellness_admin_options() {\n global $pagenow;\n $tabs = array();\n\n /* Separate the options page into two tabs - General , Post & Comments */\n foreach( $this->theme_pages as $key=>$theme_page ) {\n if ( is_array( $theme_page ) )\n $tabs[$theme_page['menu_slug']] = $theme_page['menu_title'];\n }\n $links = array();\n\n // Check to see which tab we are on\n $current = isset( $_GET['page'] ) ? $_GET['page'] : \"rosewellness_general\";\n foreach ( $tabs as $tab => $name ) {\n if ( $tab == $current ) {\n $links[] = \"<a class='nav-tab nav-tab-active' href='?page=$tab'>$name</a>\";\n } else {\n $links[] = \"<a class='nav-tab' href='?page=$tab'>$name</a>\";\n }\n } ?>\n\n <div class=\"wrap rosewellness-admin\">\n <?php screen_icon( 'rosewellness' ); ?>\n <h2 class=\"rosewellness-tab-wrapper\"><?php foreach ( $links as $link ) echo $link; ?></h2><?php\n if ( $pagenow == 'themes.php' ) {\n foreach( $this->theme_pages as $key=>$theme_page ) {\n if ( is_array( $theme_page ) ) {\n switch ( $current ) {\n case $theme_page['menu_slug'] :\n if ( function_exists( $theme_page['menu_slug'].'_options_page' ) )\n call_user_func( $theme_page['menu_slug'].'_options_page', 'appearance_page_' . $current );\n break;\n }\n }\n }\n } ?>\n </div><!-- .wrap --><?php\n }", "title": "" }, { "docid": "311a4392d21e6580c2efff886f70d84b", "score": "0.7357503", "text": "public function adminPage()\n {\n add_menu_page( 'LRW Settings', 'LRW Settings', 'manage_options', $this->hookAdminPage, array(&$this,'adminPageRender'), '', 97 ); \n }", "title": "" }, { "docid": "db11c24babf621f3bc0d086155a83f32", "score": "0.73440933", "text": "public static function registerOptionsPage() {\n self::processAdminAjax();\n add_options_page('Multi MailChimp', 'Multi MailChimp', 'manage_options', 'multi-mailchimp', array(get_class(), 'adminMenu'));\n }", "title": "" }, { "docid": "7820d1ffeccc1ca1e1ae52c508f9891e", "score": "0.7343107", "text": "function ity_adminpage() {\n if (function_exists('add_options_page')) add_options_page('Intypo - International Typography', 'Intypo', 'manage_options', __FILE__, 'ity_qmarkoptions');\n}", "title": "" }, { "docid": "260020450af1298920f46298308f3c9c", "score": "0.73348874", "text": "function admin_menu() {\n\n\t\tadd_options_page(\n\t\t\t'Road Block Pop Up',\n\t\t\t'Road Block Pop Up',\n\t\t\t'manage_options',\n\t\t\t'rbpu',\n\t\t\tarray( $this, 'admin_page' )\n\t\t);\n\t}", "title": "" }, { "docid": "2d47c147be041a1e5f6cc8936f4abff3", "score": "0.73254824", "text": "function rad_options_admin_page(){\n\tadd_options_page( 'Company Information Settings', 'Company Info', 'manage_options', \n\t\t'company-info', 'rad_options_form' );\n}", "title": "" }, { "docid": "4f87b084c6c109478fe97e3170261469", "score": "0.73244095", "text": "public function admin_options()\n {\n\n ?>\n <h3><?php _e('Paymentwall Gateway', 'woocommerce'); ?></h3>\n <p><?php _e('Enables the Paymentwall Payment Solution. The easiest way to monetize your game or web service globally.', 'woocommerce'); ?></p>\n <table class=\"form-table\">\n <?php $this->generate_settings_html(); ?>\n </table>\n <?php\n }", "title": "" }, { "docid": "b68d8080c03748e1c60f1d06d1804d0e", "score": "0.72738755", "text": "function output_options_page()\n\t{\n\t\t?>\n\t\t<div class=\"wrap\">\n\t\t<h2><?php echo $this->plugin_name; ?> Settings</h2>\n\t\t\n\t\t<form method=\"post\" action=\"options.php\">\n\t\t\n\t\t\t<?php\n\t\t\t\n\t\t\tforeach ( $this->settings as $s_section_name => $a_settings_section )\n\t\t\t\tsettings_fields( $this->plugin_namespace . 'settings' );\n\t\t\t\n\t\t\tdo_settings_sections( $this->plugin_slug ); \n\t\t\tsubmit_button(); \n\t\t\t\n\t\t\t?>\n\t\t\n\t\t</form>\n\t\t</div>\n\t\t<?php\n\t}", "title": "" }, { "docid": "e5befa03954ed0b2eddb6e34865392ea", "score": "0.72723985", "text": "function optionsAddPage() {\r\n\t\tadd_options_page( $this->plugin_name . ' ' . __( 'Settings', $this->plugin_textdomain ), __( 'Ahalogy', $this->plugin_textdomain ), 'manage_options', $this->options_page, array( &$this, 'optionsDrawPage' ) );\r\n\t}", "title": "" }, { "docid": "1fe41cfcad442a3800d18bffe5dbbb31", "score": "0.72713494", "text": "function add_options_page() {\n\t\t\tif ( function_exists('add_options_page') ) {\n\t\t\t\t$page = add_options_page(__('Simple LDAP Authentication', $this->ldap_auth_domain), __('Simple LDAP Authentication', $this->ldap_auth_domain), 9, $this->ldap_auth_domain, array(&$this, '_display_options_page'));\n\t\t\t\tadd_action(\"admin_print_styles-$page\", array(&$this, 'add_admin_custom_css'));\n\t\t\t\tadd_action(\"admin_print_scripts-$page\", array(&$this, 'add_admin_script'));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "48c3368f75971987162acb088c78def7", "score": "0.72705376", "text": "function codefund_add_options_page() {\n\tadd_options_page('CodeFund', 'CodeFund', 'administrator', __FILE__, 'codefund_options_form');\n}", "title": "" }, { "docid": "3f1d293a06d44a844a8bd855957aeb47", "score": "0.72299045", "text": "public function add_options_page() { \n add_submenu_page( 'listeo-fields-and-form', 'Add Listing Form', 'Add Listing Form', 'manage_options', 'listeo-submit-builder', array( $this, 'output' )); \n }", "title": "" }, { "docid": "ce0e1ef5fac96aed494581ca8a3c37d6", "score": "0.72211874", "text": "function iris_cpdemo_display_options() {\n include \"admin-option-view.php\";\n }", "title": "" }, { "docid": "49e95e6748f9915e4e3675961b27fb97", "score": "0.7215783", "text": "public function display_admin_page(){\n\t\t\techo \"<div class='wrap \" . PhoneNumberSwappy::$prefix . \"options-page \" . PhoneNumberSwappy::$prefix . \"wrap'>\";\n\t\t\t// $msg = $this->save_admin();\n\t\t\t$current_tab = ( isset( $_GET['tab'] ) ) ? intval( $_GET['tab'] ) : 0 ;\n\t\t\t$msg = '';\n\t\t\t$noncename = PhoneNumberSwappy::$prefix . 'nonce';\n\t\t\t$nonceaction = PhoneNumberSwappy::$prefix . 'do_save_nonce';\n\t\t\t// $msg = $this->save_admin();\n\t\t\techo \"<h2 class='\" . PhoneNumberSwappy::$prefix . \"option-page-title'>Plugin Options</h2>\";\n\n\t\t\t$this->do_tabs($current_tab);\n\n\t\t\techo \"<form action='' method='post'>\";\n\t\t\t$this->generate_option_fields($current_tab);\n\t\t\t$key = intval($current_tab);\n\t\t\t$tabvals = $this->static['tabs'][$current_tab];\n\t\t\t$hidesave = ( isset($tabvals['informational']) ) ? $tabvals['informational'] : false;\n\t\t\tif ( ! $hidesave ){\n\t\t\t\t$savepost = PhoneNumberSwappy::$prefix . \"save_post\";\n\t\t\t\techo \"<input type='hidden' name='{$savepost}' value='1' />\";\n\t\t\t\techo \"<input type='hidden' name='tab' value='{$current_tab}' />\";\n\t\t\t\twp_nonce_field( $nonceaction, $noncename );\n\t\t\t\techo \"<button class='button button-primary \" . PhoneNumberSwappy::$prefix . \"plugin-save-btn' type='submit'>Save Options</button>\";\n\t\t\t}\n\t\t\tif (isset($_GET['debug']))\n\t\t\t\t$this->debug_info();\n\t\t\techo \"</form>\";\n\t\t\techo \"</div><!-- EOF WRAP -->\";\n\t\t}", "title": "" }, { "docid": "af4e7ac206f6a6b48bb757378f352ce0", "score": "0.7210484", "text": "function wporg_options_page_html() {\n // check user capabilities\n if ( ! current_user_can( 'manage_options' ) ) {\n return;\n }\n \n // add error/update messages\n \n // check if the user have submitted the settings\n // wordpress will add the \"settings-updated\" $_GET parameter to the url\n if ( isset( $_GET['settings-updated'] ) ) {\n // add settings saved message with the class of \"updated\"\n add_settings_error( 'wporg_messages', 'wporg_message', __( 'Settings Saved', 'wporg' ), 'updated' );\n }\n \n // show error/update messages\n settings_errors( 'wporg_messages' );\n ?>\n <div class=\"wrap\">\n <h1><?php echo esc_html( get_admin_page_title() ); ?></h1>\n <form action=\"options.php\" method=\"post\">\n <?php\n // output security fields for the registered setting \"wporg\"\n settings_fields( 'wporg' );\n // output setting sections and their fields\n // (sections are registered for \"wporg\", each field is registered to a specific section)\n do_settings_sections( 'wporg' );\n // output save settings button\n submit_button( 'Save Settings' );\n ?>\n </form>\n </div>\n <?php\n }", "title": "" }, { "docid": "3b0c0a53ebb565ccebaee9f89dc38994", "score": "0.7205142", "text": "public function add_options_page() {\n $this->options_page = add_menu_page( $this->title, $this->title, 'manage_options', $this->key, array( $this, 'admin_page_display' ), 'dashicons-admin-generic', '99.1' );\n }", "title": "" }, { "docid": "d6f03d2bd6f5c66deb79d66d6bddb23c", "score": "0.72032773", "text": "public function admin_options() {\n\n ?>\n <h3><?php _e('Webbilling Pay', 'woo-webbilling-ikhan'); ?></h3>\n <p><?php _e('Webbilling.com is a world-wide established technical service provider and will take care of your European billing needs.', 'woo-webbilling-ikhan'); ?></p>\n <table class=\"form-table\">\n <?php\n if ( $this->is_valid_for_use() ) :\n\n // Generate the HTML For the settings form.\n $this->generate_settings_html();\n\n else :\n\n ?>\n <div class=\"inline error\"><p><strong><?php _e( 'Gateway Disabled', 'woo-webbilling-ikhan' ); ?></strong>: <?php _e( 'Webbilling does not support your store currency.', 'woo-webbilling-ikhan' ); ?></p></div>\n <?php\n\n endif;\n ?>\n </table><!--/.form-table-->\n <?php\n }", "title": "" }, { "docid": "acdfe13f0d86a51ada533e9782591faa", "score": "0.7194041", "text": "public function add_options_page() {\n\t\tif ( ! function_exists( 'acf_add_options_sub_page' ) ) return;\n\t\t\n\t\t$options_page = 'edit.php?post_type=' . $this->post_type;\n\t\tif ( $this->post_type == 'post' ) {\n\t\t\t$options_page = 'edit.php';\n\t\t}\n\t\t$this->options_page = acf_add_options_sub_page( \n\t\t\tarray( \n\t\t\t\t'page_title' => 'Options', \n\t\t\t\t'menu_title' => 'Options ' . $this->post_type, \n\t\t\t\t'parent_slug' => $options_page,\n\t\t\t\t'menu_slug' => 'acf-seo-' . $this->post_type,\n\t\t\t\t'post_id' => $this->post_type\n\t\t\t) \n\t\t);\n\n\t}", "title": "" }, { "docid": "ff9ccb01382f5dccb2e3bdab1a1e1779", "score": "0.71890867", "text": "public function admin_page_display() {\n?>\n <div class=\"wrap cmb2_options_page <?php echo $this->key; ?>\">\n <h2><?php echo esc_html( get_admin_page_title() ); ?></h2>\n <?php cmb2_metabox_form( $this->metabox_id, $this->key ); ?>\n </div>\n<?php\n }", "title": "" }, { "docid": "531e0edb241af5781e96590b54c8c2d0", "score": "0.71878177", "text": "public function register_page_options() { \n // Add section for options\n add_settings_section('uqc_section', 'Uncouth Quantity Control Options', array($this, 'display_section'), __FILE__);\n\n // Add title field. We don't want this.\n add_settings_field('uqc_enabled_field', 'Enabled', array($this, 'enabled_settings_field'), __FILE__, 'uqc_section');\n add_settings_field('uqc_show_subtotal_field', 'Show Subtotal', array($this, 'show_subtotal_settings_field'), __FILE__, 'uqc_section');\n add_settings_field('uqc_circular_field', 'Circular Quantity Buttons', array($this, 'circular_settings_field'), __FILE__, 'uqc_section');\n add_settings_field('uqc_btn_bgcol_field', 'Qty Change Button Background Color', array( $this, 'bg_settings_field' ), __FILE__, 'uqc_section' );\n add_settings_field('uqc_btn_forecol_field', 'Qty Change Button Text Color', array( $this, 'forecolour_settings_field' ), __FILE__, 'uqc_section' );\n\n register_setting(__FILE__, 'uqc_settings_options', array($this, 'validate_options'));\n }", "title": "" }, { "docid": "2d0a79d7698a1249728f674a118f7275", "score": "0.71741325", "text": "public function admin_menu() {\n\n add_options_page(\n 'Scoop.It Importer',\n 'Scoop.It Importer',\n 'manage_options',\n self::SLUG ,\n array(&$this, 'admin_page')\n );\n\n }", "title": "" }, { "docid": "52a7060c4d1cdca0bc599a652bf79e35", "score": "0.7172451", "text": "function renderAdminSettings()\n\t{\n\t\t/* can be overwritten by action plugin */\n\t\t$pluginParams =& $this->getPluginParams();\n\t\t?>\n<div id=\"page-<?php echo $this->_name;?>\" class=\"pluginSettings\"\n\tstyle=\"display: none\"><?php\n\t$c = count($pluginParams->get('timeline_table'));\n\t$pluginParams->_duplicate = true;\n\techo $pluginParams->render('params', 'connection');\n\tfor ($x=0; $x<$c; $x++) {\n\t\techo $pluginParams->render('params', '_default', true, $x);\n\t}\n\t?></div>\n\t<?php\n\t}", "title": "" }, { "docid": "63d1100d0fa76545ba9883d5ec9db286", "score": "0.7166799", "text": "public function frontPageOptions() {\n\t\tglobal $post;\n\t\t$this->theme->set('data', $this->theme->metaToData($post->ID));\n\t\techo $this->theme->render('admin'.DS.'front_page_options');\n\t}", "title": "" }, { "docid": "7a394ede6e8d8a83ff1fdf1b80e3c427", "score": "0.7163895", "text": "public function admin_options() {\n\t\n\t \t?>\n\t \t<?php $callbackUrl = add_query_arg( 'googleCheckoutListener', '1', trailingslashit( site_url() ) ); ?>\n\t \t<h3><?php _e('Google Checkout', 'woothemes'); ?></h3>\n\t \t<p><?php _e('Google Checkout works by sending the user to <a href=\"http://checkout.google.com\">Google Checkout</a> to enter their payment information.', 'woothemes'); ?></p>\n\t \t<p><?php echo sprintf(__('Please configure your Google Checkout merchant account as follows (you can find this under --> Settings --> Integration): <ul><li><em>My company will only post digitally signed carts</em> option must NOT be checked. </li><li><em>API callback URL</em> must be set to <em>%s</em>.</li><li> <em>Callback contents</em> must be set to <em>Notification as XML</em>.</li><li><em>API Version</em> must be set to <em>Version 2.0</em>.</li></ul>', 'woothemes'), $callbackUrl); ?></p>\n \t\t<table class=\"form-table\">\n \t\t<?php\n \t\t\t// Generate the HTML For the settings form.\n \t\t\t$this->generate_settings_html();\n \t\t?>\n\t\t\t</table><!--/.form-table-->\n \t\t<?php\n \t}", "title": "" }, { "docid": "8bd89a3f74583a4608b96706cf054cb0", "score": "0.7161113", "text": "public function settings_admin_page_callback()\n {\n if ( ! empty($_GET['view']) && $_GET['view'] == 'add-new-optin') {\n AddOptinCampaign::get_instance()->settings_admin_page();\n } else {\n // Hook the OptinCampaign_List table to Custom_Settings_Page_Api main content filter.\n add_action('wp_cspa_main_content_area', array($this, 'wp_list_table'), 10, 2);\n add_action('wp_cspa_before_post_body_content', array($this, 'optin_theme_sub_header'), 10, 2);\n add_action('wp_cspa_before_closing_header', [$this, 'add_new_optin_form_button']);\n\n $instance = Custom_Settings_Page_Api::instance();\n\n $instance->option_name(MO_OPTIN_CAMPAIGN_WP_OPTION_NAME);\n $instance->page_header(__('Optin Campaigns', 'mailoptin'));\n $instance->sidebar($this->sidebar_args());\n $this->register_core_settings($instance);\n echo '<div class=\"mailoptin-data-listing\">';\n $instance->build(defined('MAILOPTIN_DETACH_LIBSODIUM'));\n echo '</div>';\n\n $this->ab_split_test_form();\n }\n }", "title": "" }, { "docid": "a9c2273e8a4daa7a650bf694771f2a09", "score": "0.7158353", "text": "function admin_menu()\n {\n add_options_page(\n __('Humans dot txt', 'humans-dot-txt'),\n __('Humans dot txt', 'humans-dot-txt'),\n 'manage_options',\n 'humans-dot-txt',\n array($this, 'options_page')\n );\n }", "title": "" }, { "docid": "3606dded44c195d14867510420fec37c", "score": "0.7143497", "text": "function sc_plugin_menu() {\n\t\t add_options_page( 'Endicia Settings', 'Endicia Settings', 'manage_options', 'sc-endicia', array($this, 'endicia_plugin_options') );\n\t\t $this->register_endicia_settings(); \n\t}", "title": "" }, { "docid": "362298caddf7393734bece0fc7cd24b4", "score": "0.71412516", "text": "function admin_page()\n\t{\n\t\tif ('POST' == $_SERVER['REQUEST_METHOD']) {\n\t\t\t\n\t\t\t$settings = array();\n\t\t\tforeach ($this->opts as $k => $v) {\n\t\t\t\t$this->$k = $settings[$k] = $_POST[$k] ? true : false;\n\t\t\t}\n\t\t\tupdate_option('jm_coder', $settings);\n\n\t\t\techo '<div id=\"coder-saved\" class=\"updated fade-ffff00\"\">';\n\t\t\techo '<p><strong>';\n\t\t\t_e('Options saved.');\n\t\t\techo '</strong></p></div>';\n\t\t}\n\n\t\trequire_once(dirname(__FILE__) . '/config.php');\n\t}", "title": "" }, { "docid": "8b95bd1018a663537f2039c3f1ebff41", "score": "0.71321934", "text": "function pmprois_admin_add_page()\r\n{\r\n add_options_page('PMPro Infusionsoft Options', 'PMPro Infusionsoft', 'manage_options', 'pmprois_options', 'pmprois_options_page');\r\n}", "title": "" }, { "docid": "7f8147d52a4e6491677f59437fa1b7cd", "score": "0.71318215", "text": "function offer_generator_admin_menu() {\n\n\t$offer_generator_options_page = add_options_page(\n\t\t__('Offer Generator Settings', 'offer-generator'),\n\t\t__('Offer Generator', 'offer-generator'),\n\t\t'manage_options',\n\t\t'offer-generator',\n\t\t'offer_generator_settings_page'\n\t\t);\n\n}", "title": "" }, { "docid": "2f798fd6cdf6f2719653a37c89257412", "score": "0.7130113", "text": "function wpbooj_options_page() {\n // add top level menu page\n add_menu_page(\n 'Booj Options',\n 'Booj Options',\n 'manage_options',\n 'wpbooj_options',\n 'wpbooj_options_page_html'\n );\n}", "title": "" }, { "docid": "1435ec95a7fee2ef134db18ba0c48a5c", "score": "0.71271485", "text": "public function add_options_page() {\n\t\n\t\t$this->plugin_screen_hook_suffix = add_options_page(\n\t\t\t__( 'Chimp Machine Settings', 'chimp-machine' ),\n\t\t\t__( 'Chimp Machine', 'chimp-machine' ),\n\t\t\t'manage_options',\n\t\t\t$this->Chimp_Machine,\n\t\t\tarray( $this, 'display_options_page' )\n\t\t);\n\t\n\t}", "title": "" }, { "docid": "12fd2c6dafbe8612c4b5fc814d07d0d2", "score": "0.711537", "text": "public function admin_menus() {\r\n\t\t$buddyplug = buddyplug();\r\n\r\n\t\t// Bail if user cannot manage options\r\n\t\tif ( ! bp_current_user_can( 'manage_options' ) )\r\n\t\t\treturn;\r\n\r\n\t\t$this->hook_suffixes[] = add_submenu_page(\r\n\t\t\t$this->settings_page,\r\n\t\t\t__( 'BuddyPlug Options', 'buddyplug' ),\r\n\t\t\t__( 'BuddyPlug Options', 'buddyplug' ),\r\n\t\t\t'manage_options',\r\n\t\t\t'buddyplug',\r\n\t\t\t'buddyplug_admin_settings'\r\n\t\t);\r\n\r\n\t\tif( $buddyplug::buddypress_version_check() && buddyplug_get_plugin_version() != bp_get_option( 'buddyplug_db_version' ) )\r\n\t\t\tbp_update_option( 'buddyplug_db_version', buddyplug_get_plugin_version() );\r\n\t}", "title": "" }, { "docid": "83f15bd7f82e25d3163ab5524074c48c", "score": "0.71108806", "text": "public function options_page_view() {\n\n\t\t// Check user capabilities.\n\t\tif ( ! current_user_can( 'manage_options' ) ) {\n\t\t\treturn;\n\t\t}\n\t\t?>\n\t\t<div class=\"wrap\">\n\t\t\t<h1><?= esc_html( get_admin_page_title() ); ?></h1>\n\t\t\t<form action=\"options.php\" method=\"POST\">\n\t\t\t\t<?php\n\n\t\t\t\t// Output security fields for the registered setting \"gcs_settings\".\n\t\t\t\tsettings_fields( 'gcs_settings' );\n\n\t\t\t\t/*\n\t\t\t\t * Output setting sections and their fields.\n\t\t\t\t *\n\t\t\t\t * Sections are registered to the \"gcs-upload\" page, each field is\n\t\t\t\t * registered to a specific section.\n\t\t\t\t */\n\t\t\t\tdo_settings_sections( 'gcs-upload' );\n\n\t\t\t\t// Output save settings button.\n\t\t\t\tsubmit_button( __( 'Save Settings', 'gcs-upload' ) );\n\t\t\t\t?>\n\t\t\t</form>\n\t\t</div>\n\t\t<?php\n\t}", "title": "" }, { "docid": "bee33686d711c2503978066e491ff8da", "score": "0.7109376", "text": "function cfs_admin_tab() {\n\t\n\tadd_menu_page('Customize Share API', 'Customize Share API', 'manage_options', __FILE__, 'cfs_admin_page');\n}", "title": "" }, { "docid": "1a67439fe94a773c5dc8f42a906e1537", "score": "0.7103703", "text": "function EPFL_settings_register_options_page() {\n add_options_page('EPFL settings', 'EPFL settings', 'manage_options', 'EPFL_settings', 'EPFL_settings_options_page');\n}", "title": "" }, { "docid": "e3d38833be40adb53a5549fc5cd24145", "score": "0.7100048", "text": "function shibboleth_options_page() {\n\t$tab = isset( $_GET['tab'] ) ? sanitize_key( wp_unslash( $_GET['tab'] ) ) : 'general';\n\t?>\n\t<div class=\"wrap\">\n\t\t<form method=\"post\">\n\n\t\t\t<h1><?php esc_html_e( 'Shibboleth Options', 'shibboleth' ); ?></h1>\n\n\t<?php\n\tshibboleth_admin_tabs( $tab );\n\n\tswitch ( $tab ) {\n\t\tcase 'general':\n\t\t\tshibboleth_options_general();\n\t\t\tbreak;\n\n\t\tcase 'user':\n\t\t\tshibboleth_options_user();\n\t\t\tbreak;\n\n\t\tcase 'authorization':\n\t\t\tshibboleth_options_authorization();\n\t\t\tbreak;\n\n\t\tcase 'logging':\n\t\t\tshibboleth_options_logging();\n\t\t\tbreak;\n\t}\n\n\twp_nonce_field( 'shibboleth_update_options' );\n\t?>\n\t\t\t<p class=\"submit\">\n\t\t\t\t<input type=\"submit\" name=\"submit\" class=\"button-primary\" value=\"<?php esc_html_e( 'Save Changes' ); ?>\" />\n\t\t\t</p>\n\t\t</form>\n\t</div>\n\n\t<?php\n}", "title": "" }, { "docid": "13dd5cd34e3a8e99a2d2f358f57dd93f", "score": "0.70879626", "text": "public function add_options_page() {\n\t\t$this->options_page = add_options_page( $this->title, $this->title, 'manage_options', $this->key, array( $this, 'admin_page_display' ) );\n\n\t\t// Include CMB CSS in the head to avoid FOUT\n\t\tif ( $this->is_admin() ) {\n\t\t\tadd_action( \"admin_print_styles-{$this->options_page}\", array( 'CMB2_hookup', 'enqueue_cmb_css' ) );\n\t\t}\n\t}", "title": "" }, { "docid": "443074e94805abb126fcdd767a8894d4", "score": "0.7087328", "text": "public function create_admin_page() {\r\n\t\t\techo '<div class=\"wrap\">';\r\n\t\t\techo '<h2>' . __('WP Tuning Options', 'wp-tuning') . '</h2>';\r\n\t\t\techo '<form method=\"post\" action=\"options.php\">';\r\n\t\t\t\tsettings_fields( 'wp-tuning-options' );\r\n\t\t\t\tdo_settings_sections( 'wp-tuning-options' );\r\n\t\t\t\tsubmit_button();\r\n\t\t\techo '</form>';\r\n\t\t\techo '</div>';\r\n\t\t}", "title": "" }, { "docid": "cb3fd97e4bdd5443e2905175aaa5148b", "score": "0.70865834", "text": "public function display_options_page()\n {\n include_once 'partials/ptpkg-admin-display.php';\n }", "title": "" }, { "docid": "dccf2289f81645eade72ab6df9c03d84", "score": "0.70858353", "text": "public function displayAdminSettings()\n {\n ?>\n <div class=\"wrap\">\n <h2><?php print self::PLUGIN_NAME; ?></h2>\n <?php settings_errors(); ?>\n <form action=\"options.php\" method=\"post\">\n <?php settings_fields( self::OPTION_GROUP ); ?>\n <?php do_settings_sections( self::MENU_SLUG ); ?>\n <?php submit_button( __( 'Send', 'making-wp-ez' ) ) ?>\n </form>\n </div>\n <?php\n }", "title": "" }, { "docid": "24f3c93f78f9672c74678bcee1b0d61b", "score": "0.7081179", "text": "function lyAddOptionsPage()\r\n{\r\n\tif(function_exists('add_options_page'))\r\n\t{\r\n\t\tadd_options_page('LastYear Options', 'LastYear', 8, __FILE__, 'lyOptionsPage');\r\n\t}\r\n}", "title": "" }, { "docid": "bbd7a6ac9229945308e82edd3852e968", "score": "0.70649666", "text": "public function admin_page_display() {\n ?>\n <div class=\"wrap cmb2-options-page <?php echo $this->options_slug; ?>\">\n\n <h2><?php echo esc_html( get_admin_page_title() ); ?></h2>\n\n <div class=\"card\">\n <?php cmb2_metabox_form( $this->options_slug . '_options', $this->options_slug, array( 'cmb_styles' => false ) ); ?>\n </div>\n\n </div>\n <?php\n }", "title": "" }, { "docid": "ebb163aff65766eaaccb2ffa87696fd3", "score": "0.70571274", "text": "function plugin_menu() {\n add_options_page( '<%= name %>', '<%= name %>', 'manage_options', '<%= namespace %>-options', function () {\n\n if ( !current_user_can( 'manage_options' ) ) {\n wp_die( __( 'Sie besitzen nicht die Rechte zum Bearbeiten.' ) );\n }\n\n // handle posted options\n if ($_SERVER['REQUEST_METHOD'] === 'POST') {\n $this->handle_options();\n }\n\n // display plugin's options page\n Helper::render_template('admin/options');\n });\n }", "title": "" }, { "docid": "80a8db22df40a9d3cee9f1c45c5f4522", "score": "0.70485884", "text": "public function admin_menu_options()\r\n\t{\r\n\t\tadd_options_page(\r\n\t\t\t__('Ajaxed Comments', 'ajaxed-comments'),\r\n\t\t\t__('Ajaxed Comments', 'ajaxed-comments'),\r\n\t\t\t'manage_options',\r\n\t\t\t'ajaxed-comments-options',\r\n\t\t\tarray(&$this, 'comments_options_page')\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "36a47f72e81361bad1436bfe783a7e73", "score": "0.7026988", "text": "public function acf_options() {\n\t\tacf_add_options_page(array(\n\t\t\t'page_title' => 'Madnify ACF Options Page',\n\t\t\t'menu_title' => 'Madnify ACF',\n\t\t\t'menu_slug' => $this->get_slug().'madnify_acf',\n\t\t\t'capability' => 'edit_posts',\n\t\t\t'redirect' => false\n\t\t));\n\n\t\tacf_add_options_sub_page(array(\n\t\t\t'page_title' \t=> 'Madnify ACF Options Sub Page',\n\t\t\t'menu_title'\t=> 'Madnify ACF Sub',\n\t\t\t'parent_slug'\t=> $this->get_slug().'madnify_acf',\n\t\t));\n\t}", "title": "" }, { "docid": "1db1ef0d712751763e734b6119d895b2", "score": "0.70209354", "text": "public function add_options() \n\t{\n\t\t$this->top_menu_slug = add_menu_page(\n\t\t\t__('Zemanta', 'zemanta'), \n\t\t\t__('Zemanta', 'zemanta'), \n\t\t\t'manage_options', 'zemanta', \n\t\t\tarray($this, 'options'), \n\t\t\tplugins_url('/img/menu_icon.png', __FILE__)\n\t\t);\n\t}", "title": "" }, { "docid": "8e06749d5d33113437adf874b327d6a7", "score": "0.70099366", "text": "public function display_options_page()\n\t{\n\t?>\n\t<div class=\"wrap\">\n\t\t<h1>\n\t\t\t<span class=\"dashicons dashicons-admin-settings\" style=\"font-size: 32px\"></span>\n\t\t\t&nbsp;RJS Slider Options\n\t\t</h1>\n\t\t<form method=\"post\" action=\"options.php\">\n\t\t\t<?php \n\t\t\tsettings_fields( 'rjs_slider_settings' );\n\t\t\tdo_settings_sections( 'rjs-slider-options' );\n\t\t\tsubmit_button('Save Changes');\n\t\t\t?>\n\t\t</form>\n\t</div>\n\t<?php\n\t}", "title": "" }, { "docid": "fb5f9e6d02d0f3ad81a9ab2f8a464825", "score": "0.6996322", "text": "function on_admin_menu() {\n $this->pagehook = add_submenu_page(\n is_multisite()?'settings.php':'options-general.php',\n __('BP Groups Extras', 'bpge'),\n __('BP Groups Extras', 'bpge'),\n 'manage_options',\n 'bpge-admin',\n array( &$this, 'on_show_page') );\n add_action('load-'.$this->pagehook, array( &$this, 'on_load_page') );\n }", "title": "" }, { "docid": "c9f38038f0f29322c8ecc3011106621d", "score": "0.6988045", "text": "public\n function option_page_html()\n {\n if (!current_user_can('manage_options')) {\n wp_die('You do not have sufficient permissions to access this page.');\n }\n $page = $_GET['page'];\n\n do_action('wp_hipster/' . $page . '_before_page', $this->context);\n\n include $this->framework->get_theme()->get_dir() . '/framework/admin/views/options.php';\n\n do_action('wp_hipster/' . $page . '_after_page', $this->context);\n }", "title": "" }, { "docid": "26f71a1e143b5f46f16b7e53cef3a792", "score": "0.6985486", "text": "public function add_options_page() {\n $this->options_page = add_menu_page( $this->title, $this->title, 'manage_options', $this->options_slug, array( $this, 'admin_page_display' ), 'dashicons-editor-unlink' );\n // Include CMB CSS in the head to avoid FOUT\n add_action( \"admin_print_styles-{$this->options_slug}\", array( 'CMB2_hookup', 'enqueue_cmb_css' ) );\n }", "title": "" }, { "docid": "af7dd6b44236285400988c10d84a624b", "score": "0.69802976", "text": "function textwise_admin_page() {\r\n\tadd_options_page('TextWise Plugin', 'TextWise', 'manage_options', dirname(__FILE__).'/textwise-settings.php');\r\n}", "title": "" }, { "docid": "40a2bd2b8f25e61734a22c7bef6cc394", "score": "0.6974933", "text": "public function display_options_page() {\n\t\t//include_once 'partials/chimp-machine-admin-display.php';\n\t\tinclude 'partials/settings.php';\n\t}", "title": "" }, { "docid": "952b7ad2f1352dc5bb8988c62675c465", "score": "0.69605917", "text": "public function optionsContent()\n {\n echo \"\n <div class=\\\"wrap\\\">\n <h2>\" . __($this->sPluginName . ' Settings', $this->sTextDomain) . \"</h2>\n <p>\" . __('Settings for the ' . $this->sPluginName . ' plugin', $this->sTextDomain) . \"</p>\n <form method=\\\"post\\\" action=\\\"options.php\\\">\\n\";\n settings_fields($this->sSettingsGroup);\n echo $this->generateOptionsContent();\n echo \" <p class=\\\"submit\\\"><button type=\\\"submit\\\" name=\\\"submit\\\" id=\\\"submit\\\" class=\\\"button button-primary\\\">\" . __('Save Changes', $this->sTextDomain) . \"</button></p>\n </form>\n </div>\\n\";\n }", "title": "" }, { "docid": "5ecac5edd8807a3967c31b7ec578f156", "score": "0.69600743", "text": "function fximageslider_admin_menu() {\n\t\tadd_options_page('Image Slider FX Options', 'Image Slider FX', 'manage_options', 'fximageslider', 'fximageslider_admin_options');\n\t}", "title": "" }, { "docid": "dec197f209ab03befd7dc84c4d4d481c", "score": "0.6957423", "text": "function agt_plugin_menu() {\n\t\t add_options_page( 'Taleo Settings', 'Taleo Settings', 'manage_options', 'agt-taleo', array($this, 'agt_plugin_options') );\n\t\t $this->register_agt_settings(); \n\t}", "title": "" }, { "docid": "809c06c066543bbbff0fa4a61ed330e1", "score": "0.6949273", "text": "function display_options()\n {\n //Section Header\n add_settings_section(\"settings_section\", \"Website Settings\", \"display_header_options_content\", \"theme-options\");\n\n //Add fields\n add_settings_field(\"ws_contact_address\", \"Business Address\", \"display_page_ws_contact_address_form_element\", \"theme-options\", \"settings_section\");\n add_settings_field(\"ws_contact_telephone\", \"Contact Telephone Number\", \"display_page_ws_contact_telephone_form_element\", \"theme-options\", \"settings_section\");\n add_settings_field(\"ws_contact_email\", \"Contact Email Address\", \"display_page_ws_contact_email_form_element\", \"theme-options\", \"settings_section\");\n add_settings_field(\"ws_footer_information\", \"Footer Information\", \"display_page_ws_footer_information_form_element\", \"theme-options\", \"settings_section\");\n add_settings_field(\"ws_meta_keywords\", \"META Keywords<br>(Entire website)\", \"display_page_ws_meta_keywords_form_element\", \"theme-options\", \"settings_section\");\n\n //Register fields\n register_setting(\"settings_section\", \"ws_contact_address\");\n register_setting(\"settings_section\", \"ws_contact_telephone\");\n register_setting(\"settings_section\", \"ws_contact_email\");\n register_setting(\"settings_section\", \"ws_footer_information\");\n register_setting(\"settings_section\", \"ws_meta_keywords\");\n }", "title": "" }, { "docid": "82d90e18334f6161e0e0b0e0fc3df717", "score": "0.69479066", "text": "public function admin() {\n\t\t$out = $this->theme->render('admin'.DS.'theme_options');\n\t\techo $out;\n\t}", "title": "" }, { "docid": "6479eb8d42b2333d800d21d0dbc6b754", "score": "0.6946602", "text": "function optionsframework_options() {\n\n\t// Pull all the pages into an array\n\t$options_pages = array();\n\t$options_pages_obj = get_pages('sort_column=post_parent,menu_order,number=-1');\n\t$options_pages[''] = 'Select a page:';\n\tforeach ($options_pages_obj as $page) {\n\t\t$options_pages[$page->ID] = $page->post_title;\n\t}\n\n\t// Pull all the posts into an array\n\t$options_posts = array();\n\t$options_posts_obj = get_posts('sort_column=post_parent,menu_order');\n\t$options_posts[''] = 'Selecione um Post:';\n\tforeach ($options_posts_obj as $post) {\n\t\t$options_posts[$post->ID] = $post->post_title;\n\t}\n\n\t$options[] = array(\n\t\t'name' => 'Cabeçalho',\n\t\t'type' => 'heading');\n\n\t$options[] = array(\n\t\t'name' => 'Blogo do RSS',\n\t\t'desc' => 'Adicione um breve resumo para o box do RSS',\n\t\t'id' => 'rss_info',\n\t\t'std' => '',\n\t\t'type' => 'textarea');\n\n\t$options[] = array(\n\t\t'name' => 'Home',\n\t\t'type' => 'heading');\n\n\t$options[] = array(\n\t\t'name' => 'Bloco Destaques da Home',\n\t\t'desc' => '',\n\t\t'type' => 'info');\n\n\t$options[] = array(\n\t\t'name' => 'Primeiro Bloco',\n\t\t'desc' => '',\n\t\t'type' => 'info');\n\n\t$options[] = array(\n\t\t'name' => 'Ícone',\n\t\t'desc' => 'Faça o upload do ícone para o primeiro destaque',\n\t\t'id' => 'icon_feature_upload_um',\n\t\t'type' => 'upload');\n\n\t$options[] = array(\n\t\t'name' => 'Título',\n\t\t'desc' => 'Adicione o título para o primeiro destaque',\n\t\t'id' => 'title_feature_um',\n\t\t'std' => '',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Resumo',\n\t\t'desc' => 'Adicione um breve resumo para o primeiro destaque',\n\t\t'id' => 'resumo_feature_um',\n\t\t'std' => '',\n\t\t'type' => 'textarea');\n\n\t$options[] = array(\n\t\t'name' => 'Link do Box 1',\n\t\t'desc' => 'Adicione aqui a URL para onde o primeiro Box deve apontar. Lembre-se de adicionar o http://',\n\t\t'id' => 'link_box_um',\n\t\t'std' => '',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Segundo Bloco',\n\t\t'desc' => '',\n\t\t'type' => 'info');\n\n\t$options[] = array(\n\t\t'name' => 'Ícone',\n\t\t'desc' => 'Faça o upload do ícone para o segundo destaque',\n\t\t'id' => 'icon_feature_upload_dois',\n\t\t'type' => 'upload');\n\n\t$options[] = array(\n\t\t'name' => 'Título',\n\t\t'desc' => 'Adicione o título para o segundo destaque',\n\t\t'id' => 'title_feature_dois',\n\t\t'std' => '',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Resumo',\n\t\t'desc' => 'Adicione um breve resumo para o segundo destaque',\n\t\t'id' => 'resumo_feature_dois',\n\t\t'std' => '',\n\t\t'type' => 'textarea');\n\n\t$options[] = array(\n\t\t'name' => 'Link do Box 2',\n\t\t'desc' => 'Adicione aqui a URL para onde o segundo Box deve apontar. Lembre-se de adicionar o http://',\n\t\t'id' => 'link_box_dois',\n\t\t'std' => '',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Terceiro Bloco',\n\t\t'desc' => '',\n\t\t'type' => 'info');\n\n\t$options[] = array(\n\t\t'name' => 'Ícone',\n\t\t'desc' => 'Faça o upload do ícone para o terceiro destaque',\n\t\t'id' => 'icon_feature_upload_tres',\n\t\t'type' => 'upload');\n\n\t$options[] = array(\n\t\t'name' => 'Título',\n\t\t'desc' => 'Adicione o título para o terceiro destaque',\n\t\t'id' => 'title_feature_tres',\n\t\t'std' => '',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Resumo',\n\t\t'desc' => 'Adicione um breve resumo para o terceiro destaque',\n\t\t'id' => 'resumo_feature_tres',\n\t\t'std' => '',\n\t\t'type' => 'textarea');\n\n\t$options[] = array(\n\t\t'name' => 'Link do Box 3',\n\t\t'desc' => 'Adicione aqui a URL para onde o terceiro Box deve apontar. Lembre-se de adicionar o http://',\n\t\t'id' => 'link_box_tres',\n\t\t'std' => '',\n\t\t'type' => 'text');\n\t\n\t$options[] = array(\n\t\t'name' => 'Quarto Bloco',\n\t\t'desc' => '',\n\t\t'type' => 'info');\n\n\t$options[] = array(\n\t\t'name' => 'Ícone',\n\t\t'desc' => 'Faça o upload do ícone para o quarto destaque',\n\t\t'id' => 'icon_feature_upload_quatro',\n\t\t'type' => 'upload');\n\n\t$options[] = array(\n\t\t'name' => 'Título',\n\t\t'desc' => 'Adicione o título para o quarto destaque',\n\t\t'id' => 'title_feature_quatro',\n\t\t'std' => '',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Resumo',\n\t\t'desc' => 'Adicione um breve resumo para o quarto destaque',\n\t\t'id' => 'resumo_feature_quatro',\n\t\t'std' => '',\n\t\t'type' => 'textarea');\n\n\t$options[] = array(\n\t\t'name' => 'Link do Box 4',\n\t\t'desc' => 'Adicione aqui a URL para onde o quarto Box deve apontar. Lembre-se de adicionar o http://',\n\t\t'id' => 'link_box_quatro',\n\t\t'std' => '',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Menu de Categorias da Home',\n\t\t'desc' => '',\n\t\t'type' => 'info');\n\n\t$options[] = array(\n\t\t'name' => 'Primeira Categoria',\n\t\t'desc' => 'Adicione aqui o ID da primeira categoria que deseja adicionar ao menu',\n\t\t'id' => 'cat_1',\n\t\t'std' => '1',\n\t\t'class' => 'mini',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Segunda Categoria',\n\t\t'desc' => 'Adicione aqui o ID da segunda categoria que deseja adicionar ao menu',\n\t\t'id' => 'cat_2',\n\t\t'std' => '2',\n\t\t'class' => 'mini',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Terceira Categoria',\n\t\t'desc' => 'Adicione aqui o ID da terceira categoria que deseja adicionar ao menu',\n\t\t'id' => 'cat_3',\n\t\t'std' => '3',\n\t\t'class' => 'mini',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Quarta Categoria',\n\t\t'desc' => 'Adicione aqui o ID da quarta categoria que deseja adicionar ao menu',\n\t\t'id' => 'cat_4',\n\t\t'std' => '4',\n\t\t'class' => 'mini',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Quinta Categoria',\n\t\t'desc' => 'Adicione aqui o ID da quinta categoria que deseja adicionar ao menu',\n\t\t'id' => 'cat_5',\n\t\t'std' => '5',\n\t\t'class' => 'mini',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Anúncio da Home',\n\t\t'desc' => '',\n\t\t'type' => 'info');\n\n\t$options[] = array(\n\t\t'name' => 'Imagem do Anúncio',\n\t\t'desc' => 'Faça o upload da imagem do anúncio. A medida deve ser de 728x90px',\n\t\t'id' => 'anuncio_img',\n\t\t'type' => 'upload');\n\n\t$options[] = array(\n\t\t'name' => 'Link do Anúncio',\n\t\t'desc' => 'Adicione aqui a URL para onde o anúncio deve apontar. Lembre-se de adicionar o http://',\n\t\t'id' => 'anuncio_link',\n\t\t'std' => '',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Posts da Home',\n\t\t'desc' => '',\n\t\t'type' => 'info');\n\n\t$options[] = array(\n\t\t'name' => 'Quantidade de Posts',\n\t\t'desc' => 'Esse campo define quantos posts devem ser apresentados na Home',\n\t\t'id' => 'qtd_posts',\n\t\t'std' => '',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Quantidade de Palavras dos Posts da Home',\n\t\t'desc' => 'Coloque aqui a quantidade de palavras que deseja que apareça nos posts exibidos da home. Caso não esteja setado aqui, o valor padrão é 50 palavras',\n\t\t'id' => 'qtd_destaque',\n\t\t'std' => '',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Rodapé',\n\t\t'type' => 'heading');\n\n$options[] = array(\n\t\t'name' => 'Primeiro Bloco',\n\t\t'desc' => '',\n\t\t'type' => 'info');\n\n\t$options[] = array(\n\t\t'name' => 'Título',\n\t\t'desc' => 'Adicione o título para o primeiro destaque do Rodapé',\n\t\t'id' => 'title_footer_um',\n\t\t'std' => '',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Resumo',\n\t\t'desc' => 'Adicione um breve resumo para o primeiro destaque do Rodapé',\n\t\t'id' => 'resumo_footer_um',\n\t\t'std' => '',\n\t\t'type' => 'textarea');\n\n\t$options[] = array(\n\t\t'name' => 'Link do Box 1',\n\t\t'desc' => 'Adicione aqui a URL para onde o primeiro Box do Rodapé deve apontar. Lembre-se de adicionar o http://',\n\t\t'id' => 'link_footer_um',\n\t\t'std' => '',\n\t\t'type' => 'text');\n\n\n\t$options[] = array(\n\t\t'name' => 'Segundo Bloco',\n\t\t'desc' => '',\n\t\t'type' => 'info');\n\n\n\t$options[] = array(\n\t\t'name' => 'Título',\n\t\t'desc' => 'Adicione o título para o segundo destaque do Rodapé',\n\t\t'id' => 'title_footer_dois',\n\t\t'std' => '',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Resumo',\n\t\t'desc' => 'Adicione um breve resumo para o segundo destaque do Rodapé',\n\t\t'id' => 'resumo_footer_dois',\n\t\t'std' => '',\n\t\t'type' => 'textarea');\n\n\n\t$options[] = array(\n\t\t'name' => 'Terceiro Bloco',\n\t\t'desc' => '',\n\t\t'type' => 'info');\n\n\t$options[] = array(\n\t\t'name' => 'Título',\n\t\t'desc' => 'Adicione o título para o terceiro destaque do Rodapé',\n\t\t'id' => 'title_footer_tres',\n\t\t'std' => '',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Resumo',\n\t\t'desc' => 'Adicione um breve resumo para o terceiro destaque do Rodapé',\n\t\t'id' => 'resumo_footer_tres',\n\t\t'std' => '',\n\t\t'type' => 'textarea');\n\n\t$options[] = array(\n\t\t'name' => 'Telefone',\n\t\t'desc' => 'Adicione aqui o telefone de atendimento',\n\t\t'id' => 'telefone_footer_tres',\n\t\t'std' => '',\n\t\t'type' => 'text');\n\n\t$options[] = array(\n\t\t'name' => 'Link do Box 3',\n\t\t'desc' => 'Adicione aqui a URL para onde o terceiro Box do Rodapé deve apontar. Lembre-se de adicionar o http://',\n\t\t'id' => 'link_footer_tres',\n\t\t'std' => '',\n\t\t'type' => 'text');\n\n\treturn $options;\n}", "title": "" }, { "docid": "0cbf2d15147005480555d038ee3b0719", "score": "0.69326127", "text": "public function render_options_page() {\n\t\t\t$messages = $this->get_messages();\n\t\t\t$insufficient_permissions_message = $messages['insufficient_permissions'];\n\n\t\t\tif ( ! current_user_can( 'manage_options' ) ) {\n\t\t\t\twp_die( $insufficient_permissions_message );\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Load existing options\n\t\t\t */\n\t\t\t$plugin_options = $this->get_plugin_options();\n\t\t\t$plugin_data_options = $this->get_plugin_data_options();\n\n\t\t\t/**\n\t\t\t* If the form was submitted, update the options,\n\t\t\t* regardless of whether they have changed or not.\n\t\t\t*/\n\t\t\tif ( $this->helper_options_saved() === true ) {\n\n\t\t\t\t/**\n\t\t\t\t* Save default/user values from form submission\n\t\t\t\t*\n\t\t\t\t* @see https://stackoverflow.com/a/13461680/6850747\n\t\t\t\t*/\n\t\t\t\tforeach ( $plugin_options as $name => $attributes ) {\n\t\t\t\t\t$plugin_options[ $name ]['value'] = esc_html( $_POST[ $name ] );\n\t\t\t\t}\n\t\t\t\t// If we've updated our options,\n\t\t\t\t// get the latest data from the API.\n\t\t\t\t//\n\t\t\t\t// Tell the Ajax to get the latest data even if it is not stale.\n\t\t\t\t$plugin_data_options['force_refresh'] = true;\n\n\t\t\t\t// Update options object in database.\n\t\t\t\t$this->set_plugin_options( $plugin_options );\n\t\t\t\t$this->set_plugin_data_options( $plugin_data_options );\n\t\t\t} elseif ( isset( $plugin_data_options['last_updated'] ) ) {\n\t\t\t\t// if data has already been retrieved from API,\n\t\t\t\t// get the saved data.\n\t\t\t\t//\n\t\t\t\t// Only get the latest data if the existing data is stale.\n\t\t\t\t$plugin_data_options['force_refresh'] = false;\n\n\t\t\t\t// Update options object in database.\n\t\t\t\t$this->set_plugin_options( $plugin_options );\n\t\t\t\t$this->set_plugin_data_options( $plugin_data_options );\n\t\t\t} else {\n\t\t\t\t// else if form not submitted yet,\n\t\t\t\t// Don't get the data until we know which data to get,\n\t\t\t\t// (once the form is submitted).\n\t\t\t\t$plugin_data_options['force_refresh'] = false;\n\t\t\t\t$this->set_plugin_data_options( $plugin_data_options );\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Load the HTML template\n\t\t\t * This function's variables will be available to this template,\n\t\t\t * includng $this\n\t\t\t * $plugin_options are retrieved afresh inside the template\n\t\t\t */\n\t\t\trequire_once $this->get_path() . 'vendor/dotherightthing/wpdtrt-plugin-boilerplate/views/options.php';\n\t\t}", "title": "" }, { "docid": "501c8a201e66f4eea2c01cda9684788b", "score": "0.6923633", "text": "public function admin_page_display() {\n\t\t?>\n\t\t<div class=\"wrap cmb2_options_page <?php echo $this->key; ?>\">\n\t\t\t<h2><?php echo esc_html( get_admin_page_title() ); ?></h2>\n\t\t\t<?php cmb2_metabox_form( $this->metabox_id, $this->key ); ?>\n\t\t</div>\n\t\t<?php\n\t}", "title": "" }, { "docid": "04cd87298367f8e4f40cd2730d8f1859", "score": "0.6917385", "text": "function admin_page() {\n if( function_exists('ploption') && !function_exists('pl_has_editor') ) {\n \t$plversion = 'framework';\n } elseif ( function_exists('pl_has_editor') && pl_has_editor() ) {\n\t $plversion = 'dms';\n } else {\n \treturn;\n }\n\n\tif ( $plversion == 'framework' ) {\n\t\t$option_args = array(\n\t\t\t'name'\t\t=> 'icon_font_shortcode', // no spaces allowed\n\t\t\t'title'\t\t=> 'Icon Font Shortcode', // name of admin page title\n\t\t\t'array'\t\t=> $this->options_array(),\n\t\t\t'icon'\t\t=> $this->icon,\n\t\t\t'position'\t=> 5\n\t\t);\n\t\tpl_add_options_page( $option_args );\n\t}\n}", "title": "" }, { "docid": "64d7f215d55f5c151396620646806cee", "score": "0.69146556", "text": "function admin_menu() {\n\t\t$submenu = add_submenu_page( 'edit.php?post_type=invoice', __( 'Options', 'wp-invoice-pro' ), __( 'Options', 'wp-invoice-pro' ), 'manage_options', 'options', array( $this, 'plugin_page' ) );\n\t\t\n\t\tadd_action( 'admin_footer-' . $submenu, array( $this->options, 'inline_jquery' ) );\n }", "title": "" }, { "docid": "770d1b770d9576e1d1b425f729283def", "score": "0.6911616", "text": "function options_page()\n {\n $config = HT_Config::get_instance();\n\n if (isset($_POST['_wpnonce']) && wp_verify_nonce($_POST['_wpnonce'], 'humans-dot-txt-options')) {\n $config->set_humans_template($_POST['humans_template']);\n $config->set_plugins_template($_POST['plugins_template']);\n $config->set_plugins_separator($_POST['plugins_separator']);\n $config->set_plugins_prefix($_POST['plugins_prefix']);\n $config->set_plugins_suffix($_POST['plugins_suffix']);\n $config->set_authors_template($_POST['authors_template']);\n $config->set_authors_separator($_POST['authors_separator']);\n $config->set_authors_prefix($_POST['authors_prefix']);\n $config->set_authors_suffix($_POST['authors_suffix']);\n $config->set_obfuscate_email(\n isset($_POST['humans_obfuscate_email']) ? $_POST['humans_obfuscate_email'] : false\n );\n $config->set_head(isset($_POST['humans_head']) ? $_POST['humans_head'] : false);\n }\n\n require dirname(__FILE__) . '/../pages/options_page.php';\n }", "title": "" }, { "docid": "98660321f2e76f66acf33f40f955a859", "score": "0.6908369", "text": "function csds_userRegAide_customOptionsPage(){\r\n\t\tglobal $ura_settings_4;\r\n\t\t$titles = $this->menu_titles_array();\r\n\t\t$custom_options = new URA_CUSTOM_OPTIONS_CONTROLLER();\r\n\t\tif( function_exists( 'add_submenu_page' ) ){\r\n\t\t\t$ura_settings_4 = add_submenu_page( 'user-registration-aide', __( 'Custom Options', 'user-registration-aide' ), __( 'Custom Options', 'user-registration-aide' ), 'manage_options', 'custom-options', array( &$custom_options, 'custom_options_views' ) ); // Line 46 &$new_fields\r\n\t\t}\r\n\t\t$uras = new URA_STYLES();\r\n\t\t$dm = new URA_DASH_MSGS();\r\n\t\tadd_action( 'admin_print_styles-'.$ura_settings_4, array( &$uras, 'csds_userRegAide_enqueueMyStyles' ) ); // Line 795 &$this\r\n\t\tadd_action( 'load-'.$ura_settings_4, array( &$dm, 'my_help_setup' ) );\r\n\t\tunset( $uras, $dm );\r\n\t}", "title": "" }, { "docid": "37d75b1ee352e0ee00a03afa0bc6b91f", "score": "0.69053835", "text": "function ioch_admin_menu() {\n\n add_options_page(\n __( '10chat', IOCH_LANGUAGE_DOMAIN ),\n __( '10chat', IOCH_LANGUAGE_DOMAIN ),\n 'manage_options',\n IOCH_OPTIONS_PAGE_SLUG,\n 'ioch_admin_options_page'\n );\n\n}", "title": "" }, { "docid": "0f2a1a06dfc3e823fa761674442a18b7", "score": "0.6905087", "text": "function events_submenu_page() {\n?>\n<div>\n<h2>Event Settings</h2>\nDO NOT MODIFY THIS SETTINGS PAGE UNLESS YOU ABSOLUTELY KNOW WHAT YOU'RE DOING. YOU'VE BEEN WARNED.\n<form action=\"options.php\" method=\"post\">\n<?php settings_fields('plugin_options'); ?>\n<?php do_settings_sections('plugin'); ?>\n \n<input name=\"Submit\" type=\"submit\" value=\"<?php esc_attr_e('Save Changes'); ?>\" />\n</form></div>\n<?php\n}", "title": "" }, { "docid": "9cea15f50b90a7b9964c1ded1a11600f", "score": "0.6901208", "text": "function _wppa_page_options() {\r\nglobal $wpdb;\r\nglobal $wppa;\r\nglobal $wppa_opt;\r\nglobal $blog_id; \r\nglobal $wppa_status;\r\nglobal $options_error;\r\nglobal $wppa_api_version;\r\nglobal $wp_roles;\r\nglobal $wppa_table;\r\nglobal $wppa_subtable;\r\nglobal $wppa_revno;\r\n\t\t\t\r\n\r\n\t// Initialize\r\n\twppa_set_defaults();\r\n\t$options_error = false;\r\n\t\r\n\t// Things that wppa-admin-scripts.js needs to know\r\n\techo('<script type=\"text/javascript\">'.\"\\n\");\r\n\techo('/* <![CDATA[ */'.\"\\n\");\r\n\t\techo(\"\\t\".'wppaImageDirectory = \"'.wppa_get_imgdir().'\";'.\"\\n\");\r\n\t\techo(\"\\t\".'wppaAjaxUrl = \"'.admin_url('admin-ajax.php').'\";'.\"\\n\");\r\n\techo(\"/* ]]> */\\n\");\r\n\techo(\"</script>\\n\");\r\n\r\n\t// Someone hit a submit button or the like?\r\n\tif ( isset($_REQUEST['wppa_settings_submit']) ) {\t// Yep!\r\n\t\tcheck_admin_referer( 'wppa-nonce', 'wppa-nonce' );\r\n\t\t$key = $_REQUEST['wppa-key'];\r\n\t\t$sub = $_REQUEST['wppa-sub'];\r\n\t\t\r\n\t\t// Switch on action key\r\n\t\tswitch ( $key ) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t// Must be here\r\n\t\t\tcase 'wppa_moveup':\r\n\t\t\t\t$sequence = get_option('wppa_slide_order');\r\n\t\t\t\t$indices = explode(',', $sequence);\r\n\t\t\t\t$temp = $indices[$sub];\r\n\t\t\t\t$indices[$sub] = $indices[$sub - '1'];\r\n\t\t\t\t$indices[$sub - '1'] = $temp;\r\n\t\t\t\tupdate_option('wppa_slide_order', implode(',', $indices));\r\n\t\t\t\tbreak;\r\n\t\t\t// Should better be here\r\n\t\t\tcase 'wppa_setup':\r\n\t\t\t\twppa_setup(true); // Message on success or fail is in the routine\r\n\t\t\t\tbreak;\r\n\t\t\t// Must be here\r\n\t\t\tcase 'wppa_backup':\r\n\t\t\t\twppa_backup_settings();\t// Message on success or fail is in the routine\r\n\t\t\t\tbreak;\r\n\t\t\t// Must be here\r\n\t\t\tcase 'wppa_load_skin':\r\n\t\t\t\t$fname = get_option('wppa_skinfile');\r\n\r\n\t\t\t\tif ($fname == 'restore') {\r\n\t\t\t\t\tif (wppa_restore_settings(WPPA_DEPOT_PATH.'/settings.bak', 'backup')) {\r\n\t\t\t\t\t\twppa_ok_message(__('Saved settings restored', 'wppa'));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\twppa_error_message(__('Unable to restore saved settings', 'wppa'));\r\n\t\t\t\t\t\t$options_error = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telseif ($fname == 'default' || $fname == '') {\r\n\t\t\t\t\tif (wppa_set_defaults(true)) {\t\t\t\t\t\t\r\n\t\t\t\t\t\twppa_ok_message(__('Reset to default settings', 'wppa'));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\twppa_error_message(__('Unable to set defaults', 'wppa'));\r\n\t\t\t\t\t\t$options_error = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telseif (wppa_restore_settings($fname, 'skin')) {\r\n\t\t\t\t\twppa_ok_message(sprintf(__('Skinfile %s loaded', 'wppa'), basename($fname)));\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// Error printed by wppa_restore_settings()\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t// kan naar ajax\r\n\t\t\tcase 'wppa_cleanup':\r\n\t\t\t\twppa_cleanup_photos('0');\r\n\t\t\t\tbreak;\r\n\t\t\t// Must be here\r\n\t\t\tcase 'wppa_watermark_upload':\r\n\t\t\t\tif ( isset($_FILES['file_1']) && $_FILES['file_1']['error'] != 4 ) { // Expected a fileupload for a watermark\r\n\t\t\t\t\t$file = $_FILES['file_1'];\r\n\t\t\t\t\tif ( $file['error'] ) {\r\n\t\t\t\t\t\twppa_error_message(sprintf(__('Upload error %s', 'wppa'), $file['error']));\r\n\t\t\t\t\t} \r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t$imgsize = getimagesize($file['tmp_name']);\r\n\t\t\t\t\t\tif ( !is_array($imgsize) || !isset($imgsize[2]) || $imgsize[2] != 3 ) {\r\n\t\t\t\t\t\t\twppa_error_message(sprintf(__('Uploaded file %s is not a .png file', 'wppa'), $file['name']).' (Type='.$file['type'].').');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tcopy($file['tmp_name'], WPPA_UPLOAD_PATH . '/watermarks/' . basename($file['name']));\r\n\t\t\t\t\t\t\twppa_err_alert(sprintf(__('Upload of %s done', 'wppa'), basename($file['name'])));\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\telse {\r\n\t\t\t\t\twppa_error_message(__('No file selected or error on upload', 'wppa'));\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault: wppa_error_message('Unimplemnted action key: '.$key);\r\n\t\t}\r\n\t\t\r\n\t\t// Make sure we are uptodate\r\n\t\twppa_initialize_runtime(true);\r\n\r\n\t} // wppa-settings-submit\r\n\t\r\n\t\r\n\t// See if a regeneration of thumbs is pending\r\n\t$start = get_option('wppa_lastthumb', '-2');\r\n\tif ($start != '-2') {\r\n\t\t$start++; \r\n\t\t\r\n\t\t$msg = sprintf(__('Regenerating thumbnail images, starting at id=%s. Please wait...<br />', 'wppa'), $start);\r\n\t\t$msg .= __('If the line of dots stops growing or your browser reports Ready but you did NOT get a \\'READY regenerating thumbnail images\\' message, your server has given up. In that case: continue this action by clicking', 'wppa');\r\n\t\t$msg .= ' <a href=\"'.wppa_dbg_url(get_admin_url().'admin.php?page=wppa_options').'\">'.__('here', 'wppa').'</a>';\r\n\t\t$max_time = ini_get('max_execution_time');\t\r\n\t\tif ($max_time > '0') {\r\n\t\t\t$msg .= sprintf(__('<br /><br />Your server reports that the elapsed time for this operation is limited to %s seconds.', 'wppa'), $max_time);\r\n\t\t\t$msg .= __('<br />There may also be other restrictions set by the server, like cpu time limit.', 'wppa');\r\n\t\t}\r\n\t\t\r\n\t\twppa_ok_message($msg);\t// Creates element with id \"wppa-ok-p\"\r\n\t\r\n\t\twppa_regenerate_thumbs(); \r\n\t\t?>\r\n\t\t<script type=\"text/javascript\">document.getElementById(\"wppa-ok-p\").innerHTML=\"<strong><?php _e('READY regenerating thumbnail images.', 'wppa') ?></strong>\"</script>\r\n\t\t<?php\t\t\t\t\r\n\t\tupdate_option('wppa_lastthumb', '-2');\r\n\t}\r\n\t// Check database\r\n//\tif ( get_option('wppa_revision') != $wppa_revno ) \r\n\t\twppa_check_database(true);\r\n\t\r\n?>\t\t\r\n\t<div class=\"wrap\">\r\n\t\t<?php $iconurl = WPPA_URL.'/images/settings32.png'; ?>\r\n\t\t<div id=\"icon-album\" class=\"icon32\" style=\"background: transparent url(<?php echo($iconurl); ?>) no-repeat\">\r\n\t\t\t<br />\r\n\t\t</div>\r\n\t\t<h2><?php _e('WP Photo Album Plus Settings', 'wppa'); ?> <span style=\"color:blue;\"><?php _e('Auto Save', 'wppa') ?></span></h2>\r\n\t\t<?php _e('Database revision:', 'wppa'); ?> <?php echo(get_option('wppa_revision', '100')) ?>. <?php _e('WP Charset:', 'wppa'); ?> <?php echo(get_bloginfo('charset')); ?>. <?php echo 'Current PHP version: ' . phpversion() ?>. <?php echo 'WPPA+ API Version: '.$wppa_api_version ?>.\r\n\t\t<br /><?php if ( is_multisite() ) { \r\n\t\t\tif ( WPPA_MULTISITE_GLOBAL ) {\r\n\t\t\t\t_e('Multisite in singlesite mode.', 'wppa');\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t_e('Multisite enabled.', 'wppa');\r\n\t\t\t\techo ' ';\r\n\t\t\t\t_e('Blogid =', 'wppa');\r\n\t\t\t\techo ' '.$blog_id;\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n?>\r\n\t\t<!--<br /><a href=\"javascript:window.print();\"><?php //_e('Print settings', 'wppa') ?></a><br />-->\r\n\t\t<a style=\"cursor:pointer;\" id=\"wppa-legon\" onclick=\"jQuery('#wppa-legenda').css('display', ''); jQuery('#wppa-legon').css('display', 'none'); return false;\" ><?php _e('Show legenda', 'wppa') ?></a> \r\n\t\t<div id=\"wppa-legenda\" class=\"updated\" style=\"line-height:20px; display:none\" >\r\n\t\t\t<div style=\"float:left\"><?php _e('Legenda:', 'wppa') ?></div><br />\t\t\t\r\n\t\t\t<?php echo wppa_doit_button(__('Button', 'wppa')) ?><div style=\"float:left\">&nbsp;:&nbsp;<?php _e('action that causes page reload.', 'wppa') ?></div>\r\n\t\t\t<br />\r\n\t\t\t<input type=\"button\" onclick=\"if ( confirm('<?php _e('Are you sure?', 'wppa') ?>') ) return true; else return false;\" class=\"button-secundary\" style=\"float:left; border-radius:8px; font-size: 12px; height: 18px; margin: 0 4px; padding: 0px;\" value=\"<?php _e('Button', 'wppa') ?>\" />\r\n\t\t\t<div style=\"float:left\">&nbsp;:&nbsp;<?php _e('action that does not cause page reload.', 'wppa') ?></div>\r\n\t\t\t<br />\t\t\t\r\n\t\t\t<img src=\"<?php echo wppa_get_imgdir() ?>star.png\" title=\"<?php _e('Setting unmodified', 'wppa') ?>\" style=\"padding-left:4px; float:left; height:16px; width:16px;\" /><div style=\"float:left\">&nbsp;:&nbsp;<?php _e('Setting unmodified', 'wppa') ?></div>\r\n\t\t\t<br />\r\n\t\t\t<img src=\"<?php echo wppa_get_imgdir() ?>clock.png\" title=\"<?php _e('Update in progress', 'wppa') ?>\" style=\"padding-left:4px; float:left; height:16px; width:16px;\" /><div style=\"float:left\">&nbsp;:&nbsp;<?php _e('Update in progress', 'wppa') ?></div>\r\n\t\t\t<br />\r\n\t\t\t<img src=\"<?php echo wppa_get_imgdir() ?>tick.png\" title=\"<?php _e('Setting updated', 'wppa') ?>\" style=\"padding-left:4px; float:left; height:16px; width:16px;\" /><div style=\"float:left\">&nbsp;:&nbsp;<?php _e('Setting updated', 'wppa') ?></div>\r\n\t\t\t<br />\r\n\t\t\t<img src=\"<?php echo wppa_get_imgdir() ?>cross.png\" title=\"<?php _e('Update failed', 'wppa') ?>\" style=\"padding-left:4px; float:left; height:16px; width:16px;\" /><div style=\"float:left\">&nbsp;:&nbsp;<?php _e('Update failed', 'wppa') ?></div>\r\n\t\t\t<br />\r\n\t\t\t&nbsp;<a style=\"cursor:pointer;\" onclick=\"jQuery('#wppa-legenda').css('display', 'none'); jQuery('#wppa-legon').css('display', ''); return false;\" ><?php _e('Hide this', 'wppa') ?></a> \r\n\t\t</div>\r\n\t\t\r\n\t\t<form enctype=\"multipart/form-data\" action=\"<?php echo(wppa_dbg_url(get_admin_url().'admin.php?page=wppa_options')) ?>\" method=\"post\">\r\n\r\n\t\t\t<?php wp_nonce_field('wppa-nonce', 'wppa-nonce'); ?>\r\n\t\t\t<input type=\"hidden\" name=\"wppa-key\" id=\"wppa-key\" value=\"\" />\r\n\t\t\t<input type=\"hidden\" name=\"wppa-sub\" id=\"wppa-sub\" value=\"\" />\r\n\r\n\t\t\t<?php // Table 1: Sizes ?>\r\n\t\t\t<?php wppa_settings_box_header(\r\n\t\t\t\t'1', \r\n\t\t\t\t__('Table I:', 'wppa').' '.__('Sizes:', 'wppa').' '.\r\n\t\t\t\t__('This table describes all the sizes and size options (except fontsizes) for the generation and display of the WPPA+ elements.', 'wppa')\r\n\t\t\t); ?>\r\n\t\t\t\t\t\t\r\n\t\t\t\t<div id=\"wppa_table_1\" style=\" margin:0; padding:0; \" class=\"inside\" >\r\n\t\t\t\t\t<table class=\"widefat\">\r\n\t\t\t\t\t\t<thead style=\"font-weight: bold; \" class=\"wppa_table_1\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Setting', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<tbody class=\"wppa_table_1\">\r\n\t\t\t\t\t\t\t<?php \r\n\t\t\t\t\t\t\t$wppa_table = 'I';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader( 'A', '1', __('WPPA+ global system related settings', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Column Width', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The width of the main column in your theme\\'s display area.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the width of the main column in your theme\\'s display area.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('You should set this value correctly to make sure the fullsize images are properly aligned horizontally.', 'wppa')); \r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('You may enter \\'auto\\' for use in themes that have a floating content column.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('The use of \\'auto\\' is required for responsive themes.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_colwidth';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckFullHalign()';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels wide', 'wppa'), $onchange);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Resize on Upload', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Indicate if the photos should be resized during upload.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If you check this item, the size of the photos will be reduced to the dimension specified in the next item during the upload/import process.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('The photos will never be stretched during upload if they are smaller.', 'wppa')); \r\n\t\t\t\t\t\t\t$slug = 'wppa_resize_on_upload';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckResize()';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug, $onchange);\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Resize to', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Resize photos to fit within a given area.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Specify the screensize for the unscaled photos.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('The use of a non-default value is particularly usefull when you make use of lightbox functionality.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_resize_to';\r\n\t\t\t\t\t\t\t$px = __('pixels', 'wppa');\r\n\t\t\t\t\t\t\t$options = array(__('Fit within rectangle as set in Table I-B1,2', 'wppa'), '640 x 480 '.$px, '800 x 600 '.$px, '1024 x 768 '.$px, '1200 x 900 '.$px, '1280 x 960 '.$px, '1366 x 768 '.$px, '1920 x 1080 '.$px);\r\n\t\t\t\t\t\t\t$values = array( '0', '640x480', '800x600', '1024x768', '1200x900', '1280x960', '1366x768', '1920x1080');\r\n\t\t\t\t\t\t\t$class = 're_up';\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\twppa_setting('', '3', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Photocount threshold', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Number of thumbnails in an album must exceed.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Photos do not show up in the album unless there are more than this number of photos in the album. This allows you to have cover photos on an album that contains only sub albums without seeing them in the list of sub albums. Usually set to 0 (always show) or 1 (for one cover photo).', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_min_thumbs';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pieces', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Border thickness', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Thickness of wppa+ box borders.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the thickness for the border of the WPPA+ boxes. A number of 0 means: no border.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('WPPA+ boxes are: the navigation bars and the filmstrip.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_bwidth';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '5', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Border radius', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Radius of wppa+ box borders.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the corner radius for the border of the WPPA+ boxes. A number of 0 means: no rounded corners.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('WPPA+ boxes are: the navigation bars and the filmstrip.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('Note that rounded corners are only supported by modern browsers.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_bradius';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '6', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Box spacing', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Distance between wppa+ boxes.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_box_spacing';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '7', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\twppa_setting_subheader('B', '1', __('Slideshow related settings', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Maximum Width', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The maximum width photos will be displayed in slideshows.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the largest size in pixels as how you want your photos to be displayed.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('This is usually the same as the Column Width (Table I-A1), but it may differ.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_fullsize';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckFullHalign()';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels wide', 'wppa'), $onchange);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Maximum Height', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The maximum height photos will be displayed in slideshows.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the largest size in pixels as how you want your photos to be displayed.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('This setting defines the height of the space reserved for photos in slideshows.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('If you change the width of a display by the %%size= command, this value changes proportionally to match the aspect ratio as defined by this and the previous setting.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_maxheight';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels high', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Stretch to fit', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Stretch photos that are too small.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Images will be stretched to the Maximum Size at display time if they are smaller. Leaving unchecked is recommended. It is better to upload photos that fit well the sizes you use!', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_enlarge';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Slideshow borderwidth', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The width of the border around slideshow images.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('The border is made by the image background being larger than the image itsself (padding).', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('Additionally there may be a one pixel outline of a different color. See Table III, item 7.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('The number you enter here is exclusive the one pixel outline.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('If you leave this entry empty, there will be no outline either.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_fullimage_border_width';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Numbar Max', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Maximum nubers to display.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('In order to attemt to fit on one line, the numbers will be replaced by dots - except the current - when there are more than this number of photos in a slideshow.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_numbar_max';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('numbers', 'wppa'));\r\n\t\t\t\t\t\t\t$class = 'wppa_numbar';\r\n\t\t\t\t\t\t\twppa_setting($slug, '5', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\twppa_setting_subheader('C', '1', __('Thumbnail photos related settings', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Thumbnail Size', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The size of the thumbnail images.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('This size applies to the width or height, whichever is the largest.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('Changing the thumbnail size may result in all thumbnails being regenerated. this may take a while.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_thumbsize';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\t$class = 'tt_normal';\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\t$name = __('Thumbnail Aspect', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Aspect ration of thumbnail image', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_thumb_aspect';\r\n\t\t\t\t\t\t\t$options = array(\r\n\t\t\t\t\t\t\t\t__('--- same as fullsize ---', 'wppa'), \r\n\t\t\t\t\t\t\t\t__('--- square clipped ---', 'wppa'),\r\n\t\t\t\t\t\t\t\t__('4:5 landscape clipped', 'wppa'),\r\n\t\t\t\t\t\t\t\t__('3:4 landscape clipped', 'wppa'), \r\n\t\t\t\t\t\t\t\t__('2:3 landscape clipped', 'wppa'),\r\n\t\t\t\t\t\t\t\t__('9:16 landscape clipped', 'wppa'),\r\n\t\t\t\t\t\t\t\t__('1:2 landscape clipped', 'wppa'),\r\n\t\t\t\t\t\t\t\t__('--- square padded ---', 'wppa'),\r\n\t\t\t\t\t\t\t\t__('4:5 landscape padded', 'wppa'),\r\n\t\t\t\t\t\t\t\t__('3:4 landscape padded', 'wppa'), \r\n\t\t\t\t\t\t\t\t__('2:3 landscape padded', 'wppa'),\r\n\t\t\t\t\t\t\t\t__('9:16 landscape padded', 'wppa'),\r\n\t\t\t\t\t\t\t\t__('1:2 landscape padded', 'wppa')\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t$values = array(\r\n\t\t\t\t\t\t\t\t'0:0:none', \r\n\t\t\t\t\t\t\t\t'1:1:clip',\r\n\t\t\t\t\t\t\t\t'4:5:clip',\r\n\t\t\t\t\t\t\t\t'3:4:clip', \r\n\t\t\t\t\t\t\t\t'2:3:clip',\r\n\t\t\t\t\t\t\t\t'9:16:clip',\r\n\t\t\t\t\t\t\t\t'1:2:clip',\r\n\t\t\t\t\t\t\t\t'1:1:padd',\r\n\t\t\t\t\t\t\t\t'4:5:padd',\r\n\t\t\t\t\t\t\t\t'3:4:padd', \r\n\t\t\t\t\t\t\t\t'2:3:padd',\r\n\t\t\t\t\t\t\t\t'9:16:padd',\r\n\t\t\t\t\t\t\t\t'1:2:padd'\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\t$class = 'tt_normal';\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Thumbframe width', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The width of the thumbnail frame.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Set the width of the thumbnail frame.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('Set width, height and spacing for the thumbnail frames.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_tf_width';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels wide', 'wppa'));\r\n\t\t\t\t\t\t\t$class = 'tt_normal';\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\t$name = __('Thumbframe height', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The height of the thumbnail frame.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Set the height of the thumbnail frame.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('Set width, height and spacing for the thumbnail frames.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_tf_height';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels high', 'wppa'));\r\n\t\t\t\t\t\t\t$class = 'tt_normal';\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\t$name = __('Thumbnail spacing', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The spacing between adjacent thumbnail frames.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Set the minimal spacing between the adjacent thumbnail frames', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('Set width, height and spacing for the thumbnail frames.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('These sizes should be large enough for a thumbnail image and - optionally - the text under it.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_tn_margin';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\t$class = 'tt_normal';\r\n\t\t\t\t\t\t\twppa_setting($slug, '5', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Auto spacing', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Space the thumbnail frames automatic.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If you check this box, the thumbnail images will be evenly distributed over the available width.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('In this case, the thumbnail spacing value (setting I-9) will be regarded as a minimum value.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_thumb_auto';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'tt_normal';\r\n\t\t\t\t\t\t\twppa_setting($slug, '6', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Page size', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Max number of thumbnails per page.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the maximum number of thumbnail images per page. A value of 0 indicates no pagination.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_thumb_page_size';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('thumbnails', 'wppa'));\r\n\t\t\t\t\t\t\t$class = 'tt_always';\r\n\t\t\t\t\t\t\twppa_setting($slug, '7', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\t$name = __('Popup size', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The size of the thumbnail popup images.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the size of the popup images. This size should be larger than the thumbnail size.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('This size should also be at least the cover image size.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('Changing the popup size may result in all thumbnails being regenerated. this may take a while.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('Although this setting has only visual effect if \"Thumb popup\" (Table IV-C8) is checked,', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= ' '.esc_js(__('the value must be right as it is the physical size of the thumbnail and coverphoto images.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_popupsize';\r\n\t\t\t\t\t\t\t$class = 'tt_normal';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '8', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Use thumbs if fit', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Use the thumbnail image files if they are large enough.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('This setting speeds up page loading for small photos.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('Do NOT use this when your thumbnails have a forced aspect ratio (when Table I-C2 is set to anything different from --- same as fullsize ---)', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_use_thumbs_if_fit';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug); \r\n\t\t\t\t\t\t\twppa_setting($slug, '9', $name, $desc, $html, $help);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('D', '1', __('Album cover related settings', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Max Cover width', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Maximum width for a album cover display.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Display covers in 2 or more columns if the display area is wider than the given width.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('This also applies for \\'thumbnails as covers\\', and will NOT apply to single items.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_max_cover_width';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Min Text frame height', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The minimal cover text frame height.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('The minimal height of the description field in an album cover display.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('This setting enables you to give the album covers the same height provided that the cover images are equally sized.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_text_frame_height';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Coverphoto size', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The size of the coverphoto.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('This size applies to the width or height, whichever is the largest.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('Changing the coverphoto size may result in all thumbnails being regenerated. this may take a while.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_smallsize';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Page size', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Max number of covers per page.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the maximum number of album covers per page. A value of 0 indicates no pagination.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_album_page_size';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('covers', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('E', '1', __('Rating and comment related settings', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Rating size', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Select the number of voting stars.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_rating_max';\r\n\t\t\t\t\t\t\t$options = array('Standard: 5 stars', 'Extended: 10 stars');\r\n\t\t\t\t\t\t\t$values = array('5', '10');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\t$class = 'wppa_rating_';\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Display precision', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Select the desired rating display precision.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_rating_prec';\r\n\t\t\t\t\t\t\t$options = array('1 '.__('decimal places', 'wppa'), '2 '.__('decimal places', 'wppa'), '3 '.__('decimal places', 'wppa'), '4 '.__('decimal places', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('1', '2', '3', '4');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\t$class = 'wppa_rating_';\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Avatar size', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Size of Avatar images.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('The size of the square avatar; must be > 0 and < 256', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_gravatar_size';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$name = __('Rating space', 'wppa');\n\t\t\t\t\t\t\t$desc = __('Space between avg and my rating stars', 'wppa');\n\t\t\t\t\t\t\t$help = '';\n\t\t\t\t\t\t\t$slug = 'wppa_ratspacing';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels', 'wppa'));\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help);\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('F', '1', __('Widget related settings', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('TopTen count', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Number of photos in TopTen widget.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the maximum number of rated photos in the TopTen widget.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_topten_count';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('photos', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help, 'wppa_rating');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('TopTen size', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Size of thumbnails in TopTen widget.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the size for the mini photos in the TopTen widget.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('The size applies to the width or height, whatever is the largest.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('Recommended values: 86 for a two column and 56 for a three column display.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_topten_size';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help, 'wppa_rating');\r\n\r\n\t\t\t\t\t\t\t$name = __('Comment count', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Number of entries in Comment widget.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the maximum number of entries in the Comment widget.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_comment_count';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('entries', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Comment size', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Size of thumbnails in Comment widget.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the size for the mini photos in the Comment widget.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('The size applies to the width or height, whatever is the largest.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('Recommended values: 86 for a two column and 56 for a three column display.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_comment_size';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Thumbnail count', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Number of photos in Thumbnail widget.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the maximum number of rated photos in the Thumbnail widget.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_thumbnail_widget_count';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('photos', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '5', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Thumbnail widget size', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Size of thumbnails in Thumbnail widget.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the size for the mini photos in the Thumbnail widget.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('The size applies to the width or height, whatever is the largest.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('Recommended values: 86 for a two column and 56 for a three column display.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_thumbnail_widget_size';\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '6', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('LasTen count', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Number of photos in Last Ten widget.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the maximum number of rated photos in the LasTen widget.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_lasten_count';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('photos', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '7', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('LasTen size', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Size of thumbnails in Last Ten widget.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the size for the mini photos in the LasTen widget.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('The size applies to the width or height, whatever is the largest.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('Recommended values: 86 for a two column and 56 for a three column display.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_lasten_size';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '8', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('G', '1', __('Lightbox related settings. These settings have effect only when Table IX-A6 is set to wppa', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Number of text lines', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Number of lines on the lightbox description area, exclusive the n/m line.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter a number in the range from 0 to 24 or auto', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_ovl_txt_lines';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '40px', '', __('lines', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Magnifier cursor size', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Select the size of the magnifier cursor.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_magnifier';\r\n\t\t\t\t\t\t\t$options = array(__('small','wppa'), __('medium', 'wppa'), __('large', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('magnifier-small.png', 'magnifier-medium.png', 'magnifier-large.png');\r\n\t\t\t\t\t\t\t$onchange = 'document.getElementById(\\'wppa-cursor\\').src=wppaImageDirectory+document.getElementById(\\'wppa_magnifier\\').value';\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values, $onchange);\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html.'&nbsp;&nbsp;<img id=\"wppa-cursor\" src=\"'.wppa_get_imgdir().$wppa_opt[$slug].'\" />', $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t\t<tfoot style=\"font-weight: bold;\" class=\"wppa_table_1\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Setting', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</tfoot>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\r\n\t\t\r\n\t\t\t<?php // Table 2: Visibility ?>\r\n\t\t\t<?php wppa_settings_box_header(\r\n\t\t\t\t'2', \r\n\t\t\t\t__('Table II:', 'wppa').' '.__('Visibility:', 'wppa').' '.\r\n\t\t\t\t__('This table describes the visibility of certain wppa+ elements.', 'wppa')\r\n\t\t\t); ?>\r\n\t\t\t\r\n\t\t\t\t<div id=\"wppa_table_2\" style=\"display:none\" >\r\n\t\t\t\t\t<table class=\"widefat\">\r\n\t\t\t\t\t\t<thead style=\"font-weight: bold; \" class=\"wppa_table_2\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Setting', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<tbody class=\"wppa_table_2\">\r\n\t\t\t\t\t\t\t<?php \r\n\t\t\t\t\t\t\t$wppa_table = 'II';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('A', '1', __('Breadcrumb related settings', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Breadcrumb', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Show breadcrumb navigation bars.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Indicate whether a breadcrumb navigation should be displayed', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_show_bread';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckBreadcrumb()';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug, $onchange);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Breadcrumb on search results', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Show breadcrumb navigation bars on the search results page.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Indicate whether a breadcrumb navigation should be displayed above the search results.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_bc_on_search';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'wppa_bc';\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Breadcrumb on topten displays', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Show breadcrumb navigation bars on topten displays.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Indicate whether a breadcrumb navigation should be displayed above the topten displays.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_bc_on_topten';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'wppa_bc';\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Breadcrumb on last ten displays', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Show breadcrumb navigation bars on last ten displays.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Indicate whether a breadcrumb navigation should be displayed above the last ten displays.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_bc_on_lasten';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'wppa_bc';\r\n\t\t\t\t\t\t\twppa_setting($slug, '3.1', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\t$name = __('Home', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Show \"Home\" in breadcrumb.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Indicate whether the breadcrumb navigation should start with a \"Home\"-link', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_show_home';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'wppa_bc';\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\t$name = __('Separator', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Breadcrumb separator symbol.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Select the desired breadcrumb separator element.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('A text string may contain valid html.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('An image will be scaled automatically if you set the navigation font size.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_bc_separator';\r\n\t\t\t\t\t\t\t$options = array('&amp;raquo', '&amp;rsaquo', '&amp;gt', '&amp;bull', __('Text (html):', 'wppa'), __('Image (url):', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('raquo', 'rsaquo', 'gt', 'bull', 'txt', 'url');\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckBreadcrumb()';\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values, $onchange);\r\n\t\t\t\t\t\t\t$class = 'wppa_bc';\r\n\t\t\t\t\t\t\twppa_setting($slug, '5', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Html', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Breadcrumb separator text.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the HTML code that produces the separator symbol you want.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('It may be as simple as \\'-\\' (without the quotes) or as complex as a tag like <div>..</div>.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_bc_txt';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '90%', '300px');\r\n\t\t\t\t\t\t\twppa_setting($slug, '6', $name, $desc, $html, $help, $slug);\r\n\r\n\t\t\t\t\t\t\t$name = __('Image Url', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Full url to separator image.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the full url to the image you want to use for the separator symbol.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_bc_url';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '90%', '300px');\r\n\t\t\t\t\t\t\twppa_setting($slug, '7', $name, $desc, $html, $help, $slug);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Pagelink position', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The location for the pagelinks bar.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_pagelink_pos';\r\n\t\t\t\t\t\t\t$options = array(__('Top', 'wppa'), __('Bottom', 'wppa'), __('Both', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('top', 'bottom', 'both');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\twppa_setting($slug, '8', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\twppa_setting_subheader('B', '1', __('Slideshow related settings', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Start/stop', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Show the Start/Stop slideshow bar.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked: display the start/stop slideshow navigation bar above the full-size images and slideshow', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_show_startstop_navigation';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Browse bar', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Show Browse photos bar.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked: display the preveous/next navigation bar under the full-size images and slideshow', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_show_browse_navigation';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Filmstrip', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Show Filmstrip navigation bar.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked: display the filmstrip navigation bar under the full_size images and slideshow', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_filmstrip';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Film seam', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Show seam between end and start of film.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked: display the wrap-around point in the filmstrip', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_film_show_glue';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Photo name', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Display photo name.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked: display the name of the photo under the slideshow image.', 'wppa')); \r\n\t\t\t\t\t\t\t$slug = 'wppa_show_full_name';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '5', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Photo desc', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Display Photo description.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked: display the description of the photo under the slideshow image.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_show_full_desc';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '6', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Rating system', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Enable the rating system.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked, the photo rating system will be enabled.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_rating_on';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckRating()';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug, $onchange);\r\n\t\t\t\t\t\t\twppa_setting($slug, '7', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Rating display type', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Specify the type of the rating display.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_rating_display_type';\r\n\t\t\t\t\t\t\t$options = array(__('Graphic', 'wppa'), __('Numeric', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('graphic', 'numeric');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\t$class = 'wppa_rating_';\r\n\t\t\t\t\t\t\twppa_setting($slug, '8', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\t$name = __('Show average rating', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Display the avarage rating on the rating bar', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked, the average rating as well as the current users rating is displayed in max 5 stars.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('If unchecked, only the current users rating is displayed (if any).', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_show_avg_rating';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'wppa_rating_';\r\n\t\t\t\t\t\t\twppa_setting($slug, '9', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Comments system', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Enable the comments system.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Display the comments box under the fullsize images and let users enter their comments on individual photos.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_show_comments';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckComments()';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug, $onchange);\r\n\t\t\t\t\t\t\twppa_setting($slug, '10', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Comment Avatar default', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Show Avatars with the comments if not --- none ---', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_comment_gravatar';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckGravatar()';\r\n\t\t\t\t\t\t\t$options = array(\t__('--- none ---', 'wppa'), \r\n\t\t\t\t\t\t\t\t\t\t\t\t__('mystery man', 'wppa'), \r\n\t\t\t\t\t\t\t\t\t\t\t\t__('identicon', 'wppa'), \r\n\t\t\t\t\t\t\t\t\t\t\t\t__('monsterid', 'wppa'), \r\n\t\t\t\t\t\t\t\t\t\t\t\t__('wavatar', 'wppa'),\r\n\t\t\t\t\t\t\t\t\t\t\t\t__('retro', 'wppa'),\r\n\t\t\t\t\t\t\t\t\t\t\t\t__('--- url ---', 'wppa')\r\n\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t$values = array(\t'none', \r\n\t\t\t\t\t\t\t\t\t\t\t\t'mm', \r\n\t\t\t\t\t\t\t\t\t\t\t\t'identicon', \r\n\t\t\t\t\t\t\t\t\t\t\t\t'monsterid',\r\n\t\t\t\t\t\t\t\t\t\t\t\t'wavatar',\r\n\t\t\t\t\t\t\t\t\t\t\t\t'retro',\r\n\t\t\t\t\t\t\t\t\t\t\t\t'url'\r\n\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t$class = 'wppa_comment_';\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values, $onchange);\r\n\t\t\t\t\t\t\twppa_setting($slug, '11', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Comment Avatar url', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Comment Avatar default url.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_comment_gravatar_url';\r\n\t\t\t\t\t\t\t$class = 'wppa_grav';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '90%', '300px');\r\n\t\t\t\t\t\t\twppa_setting($slug, '12', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Big Browse Buttons', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Enable invisible browsing buttons.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked, the fullsize image is covered by two invisible areas that act as browse buttons.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('Make sure the Full height (Table I-B2) is properly configured to prevent these areas to overlap unwanted space.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('A side effect of this setting is that right clicking the image no longer enables the visitor to download the image.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_show_bbb';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '13', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Show custom box', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Display the custom box in the slideshow', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('You can fill the custom box with any html you like. It will not be checked, so it is your own responsability to close tags properly.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('The position of the box can be defined in Table IX-E.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_custom_on';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckCustom()';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug, $onchange);\r\n\t\t\t\t\t\t\twppa_setting($slug, '14', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Custom content', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The content (html) of the custom box.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('You can fill the custom box with any html you like. It will not be checked, so it is your own responsability to close tags properly.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('The position of the box can be defined in Table IX-E.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_custom_content';\r\n\t\t\t\t\t\t\t$html = wppa_textarea($slug, $name);\r\n\t\t\t\t\t\t\t$class = 'wppa_custom_';\r\n\t\t\t\t\t\t\twppa_setting(false, '15', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\t$name = __('Slideshow/Number bar', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Display the Slideshow / Number bar.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked: display the number boxes on slideshow', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_show_slideshownumbar';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckNumbar()';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug, $onchange);\r\n\t\t\t\t\t\t\twppa_setting($slug, '16', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('IPTC system', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Enable the iptc system.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Display the iptc box under the fullsize images.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_show_iptc';\r\n\t\t\t\t\t\t\t$onchange = ''; \r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '17', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('EXIF system', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Enable the exif system.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Display the exif box under the fullsize images.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_show_exif';\r\n\t\t\t\t\t\t\t$onchange = ''; \r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug); \r\n\t\t\t\t\t\t\twppa_setting($slug, '18', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Show Copyright', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Show a copyright warning on the user upload screen.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_copyright_on';\r\n\t\t\t\t\t\t\t$class = 'wppa_copyr';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '19', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Copyright notice', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The message to be displayed.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_copyright_notice';\r\n\t\t\t\t\t\t\t$class = 'wppa_copyr';\r\n\t\t\t\t\t\t\t$html = wppa_textarea($slug, $name);\r\n\t\t\t\t\t\t\twppa_setting($slug, '20', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\twppa_setting_subheader('C', '1', __('Thumbnail display related settings', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Thumbnail name', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Display Thubnail name.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Display photo name under thumbnail images.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_thumb_text_name';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'tt_normal';\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Thumbnail desc', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Display Thumbnail description.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Display description of the photo under thumbnail images.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_thumb_text_desc';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'tt_normal';\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Thumbnail rating', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Display Thumbnail Rating.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Display the rating of the photo under the thumbnail image.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_thumb_text_rating';\r\n\t\t\t\t\t\t\t$html = '<span class=\"wppa_rating\">'.wppa_checkbox($slug).'</span>';\r\n\t\t\t\t\t\t\t$class = 'wppa_rating_ tt_normal';\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Popup name', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Display Thubnail name on popup.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Display photo name under thumbnail images on the popup.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_popup_text_name';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'tt_normal wppa_popup';\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Popup desc', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Display Thumbnail description on popup.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Display description of the photo under thumbnail images on the popup.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_popup_text_desc';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'tt_normal wppa_popup';\r\n\t\t\t\t\t\t\twppa_setting($slug, '5', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Popup desc no links', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Strip html anchor tags from descriptions on popups', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Use this option to prevent the display of links that cannot be activated.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_popup_text_desc_strip';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'tt_normal wppa_popup';\r\n\t\t\t\t\t\t\twppa_setting($slug, '5.1', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Popup rating', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Display Thumbnail Rating on popup.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Display the rating of the photo under the thumbnail image on the popup.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_popup_text_rating';\r\n\t\t\t\t\t\t\t$html = '<span class=\"wppa_rating\">'.wppa_checkbox($slug).'</span>';\r\n\t\t\t\t\t\t\t$class = 'wppa_rating_ tt_normal wppa_popup';\r\n\t\t\t\t\t\t\twppa_setting($slug, '6', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Show rating count', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Display the number of votes along with average ratings.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked, the number of votes is displayed along with average rating displays on thumbnail and popup displays.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_show_rating_count';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'wppa_rating_ tt_normal';\r\n\t\t\t\t\t\t\twppa_setting($slug, '7', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\twppa_setting_subheader('D', '1', __('Album cover related settings', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Covertext', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Show the text on the album cover.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Display the album decription on the album cover', 'wppa'));\r\n//\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('If switched off, you can only link to the album using the covertitle or the coverphoto.', 'wppa'));\r\n//\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('Make sure you configure the coverphoto link as desired.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_show_cover_text';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Slideshow', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Enable the slideshow.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If you do not want slideshows: uncheck this box. Browsing full size images will remain possible.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_enable_slideshow';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Slideshow/Browse', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Display the Slideshow / Browse photos link on album covers', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('This setting causes the Slideshow link to be displayed on the album cover.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('If slideshows are disabled in item 2 in this table, you will see a browse link to fullsize images.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('If you do not want the browse link either, uncheck this item.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_show_slideshowbrowselink';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('View ...', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Display the View xx albums and yy photos link on album covers', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_show_viewlink';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('E', '1', __('Widget related settings', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Big Browse Buttons in widget', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Enable invisible browsing buttons in widget slideshows.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked, the fullsize image is covered by two invisible areas that act as browse buttons.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('Make sure the Full height (Table I-B2) is properly configured to prevent these areas to overlap unwanted space.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('A side effect of this setting is that right clicking the image no longer enables the visitor to download the image.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_show_bbb_widget';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\twppa_setting_subheader('F', '1', __('Lightbox related settings. These settings have effect only when Table IX-A6 is set to wppa', 'wppa'));\r\n\r\n\t\t\t\t\t\t\t$name = __('Overlay Close label text', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The text label for the cross exit symbol.', 'wppa');\r\n\t\t\t\t\t\t\t$help = __('This text may be multilingual according to the qTranslate short tags specs.', 'wppa');\r\n\t\t\t\t\t\t\t$slug = 'wppa_ovl_close_txt';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '200px');\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Overlay theme color', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The color of the image border and text background.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_ovl_theme';\r\n\t\t\t\t\t\t\t$options = array(__('Black', 'wppa'), __('White', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('black', 'white');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Overlay slide name', 'wppa');\n\t\t\t\t\t\t\t$desc = __('Show name if from slide.', 'wppa');\n\t\t\t\t\t\t\t$help = esc_js(__('Shows the photos name on a lightbox display when initiated from a slide.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('This setting also applies to film thumbnails if Table VI-11 is set to lightbox overlay.', 'wppa'));\n\t\t\t\t\t\t\t$slug = 'wppa_ovl_slide_name';\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$name = __('Overlay slide desc', 'wppa');\n\t\t\t\t\t\t\t$desc = __('Show description if from slide.', 'wppa');\n\t\t\t\t\t\t\t$help = esc_js(__('Shows the photos description on a lightbox display when initiated from a slide.', 'wppa'));\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('This setting also applies to film thumbnails if Table VI-11 is set to lightbox overlay.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_ovl_slide_desc';\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$name = __('Overlay thumb name', 'wppa');\n\t\t\t\t\t\t\t$desc = __('Show the photos name if from thumb.', 'wppa');\n\t\t\t\t\t\t\t$help = esc_js(__('Shows the name on a lightbox display when initiated from a standard thumbnail or a widget thumbnail.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('This setting applies to standard thumbnails, thumbnail-, comment-, topten- and lasten-widget.', 'wppa'));\n\t\t\t\t\t\t\t$slug = 'wppa_ovl_thumb_name';\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\n\t\t\t\t\t\t\twppa_setting($slug, '5', $name, $desc, $html, $help);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$name = __('Overlay thumb desc', 'wppa');\n\t\t\t\t\t\t\t$desc = __('Show description if from slide.', 'wppa');\n\t\t\t\t\t\t\t$help = esc_js(__('Shows the photos description on a lightbox display when initiated from a standard thumbnail or a widget thumbnail.', 'wppa'));\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('This setting applies to standard thumbnails, thumbnail-, comment-, topten- and lasten-widget.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_ovl_thumb_desc';\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\n\t\t\t\t\t\t\twppa_setting($slug, '6', $name, $desc, $html, $help);\n\r\n\t\t\t\t\t\t\t$name = __('Overlay potd name', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Show the photos name if from photo of the day.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Shows the name on a lightbox display when initiated from the photo of the day.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_ovl_potd_name';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '7', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Overlay potd desc', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Show description if from from photo of the day.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Shows the photos description on a lightbox display when initiated from the photo of the day.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_ovl_potd_desc';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '8', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Overlay show counter', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Show the x/y counter below the image.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_ovl_show_counter';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '9', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t\t<tfoot style=\"font-weight: bold;\" class=\"wppa_table_2\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Setting', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</tfoot>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t<?php // Table 3: Backgrounds ?>\r\n\t\t\t<?php wppa_settings_box_header(\r\n\t\t\t\t'3', \r\n\t\t\t\t__('Table III:', 'wppa').' '.__('Backgrounds:', 'wppa').' '.\r\n\t\t\t\t__('This table describes the backgrounds of wppa+ elements.', 'wppa')\r\n\t\t\t); ?>\r\n\t\t\t\r\n\t\t\t\t<div id=\"wppa_table_3\" style=\"display:none\" >\r\n\t\t\t\t\t<table class=\"widefat\">\r\n\t\t\t\t\t\t<thead style=\"font-weight: bold; \" class=\"wppa_table_3\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Background color', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Sample', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Border color', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Sample', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<tbody class=\"wppa_table_3\">\r\n\t\t\t\t\t\t\t<?php \r\n\t\t\t\t\t\t\t$wppa_table = 'III';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('A', '4', __('Slideshow elements backgrounds', 'wppa'));\r\n\r\n\t\t\t\t\t\t\t$name = __('Nav', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Navigation bars.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter valid CSS colors for navigation backgrounds and borders.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_bgcolor_nav';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_bcolor_nav';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '100px', '', '', \"checkColor('\".$slug1.\"')\") . '</td><td>' . wppa_color_box($slug1);\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '100px', '', '', \"checkColor('\".$slug2.\"')\") . '</td><td>' . wppa_color_box($slug2);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('SlideImg', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Fullsize Slideshow Photos.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter valid CSS colors for fullsize photo backgrounds and borders.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('The colors may be equal or \"transparent\"', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('For more information about slideshow image borders see the help on Table I-B4', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_bgcolor_fullimg';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_bcolor_fullimg';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '100px', '', '', \"checkColor('\".$slug1.\"')\") . '</td><td>' . wppa_color_box($slug1);\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '100px', '', '', \"checkColor('\".$slug2.\"')\") . '</td><td>' . wppa_color_box($slug2);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Numbar', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Number bar box background.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter valid CSS colors for numbar box backgrounds and borders.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_bgcolor_numbar';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_bcolor_numbar';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '100px', '', '', \"checkColor('\".$slug1.\"')\") . '</td><td>' . wppa_color_box($slug1);\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '100px', '', '', \"checkColor('\".$slug2.\"')\") . '</td><td>' . wppa_color_box($slug2);\r\n\t\t\t\t\t\t\t$class = 'wppa_numbar';\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\t$name = __('Numbar active', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Number bar active box background.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter valid CSS colors for numbar active box backgrounds and borders.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_bgcolor_numbar_active';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_bcolor_numbar_active';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '100px', '', '', \"checkColor('\".$slug1.\"')\") . '</td><td>' . wppa_color_box($slug1);\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '100px', '', '', \"checkColor('\".$slug2.\"')\") . '</td><td>' . wppa_color_box($slug2);\r\n\t\t\t\t\t\t\t$class = 'wppa_numbar';\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\t$name = __('Name/desc', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Name and Description bars.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter valid CSS colors for name and description box backgrounds and borders.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_bgcolor_namedesc';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_bcolor_namedesc';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '100px', '', '', \"checkColor('\".$slug1.\"')\") . '</td><td>' . wppa_color_box($slug1);\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '100px', '', '', \"checkColor('\".$slug2.\"')\") . '</td><td>' . wppa_color_box($slug2);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting($slug, '5', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Comments', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Comment input and display areas.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter valid CSS colors for comment box backgrounds and borders.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_bgcolor_com';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_bcolor_com';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '100px', '', '', \"checkColor('\".$slug1.\"')\") . '</td><td>' . wppa_color_box($slug1);\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '100px', '', '', \"checkColor('\".$slug2.\"')\") . '</td><td>' . wppa_color_box($slug2);\r\n\t\t\t\t\t\t\t$class = 'wppa_comment_';\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting($slug, '6', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\t$name = __('Custom', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Custom box background.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter valid CSS colors for custom box backgrounds and borders.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_bgcolor_cus';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_bcolor_cus';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '100px', '', '', \"checkColor('\".$slug1.\"')\") . '</td><td>' . wppa_color_box($slug1);\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '100px', '', '', \"checkColor('\".$slug2.\"')\") . '</td><td>' . wppa_color_box($slug2);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting($slug, '7', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('IPTC', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('IPTC display box background.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter valid CSS colors for iptc box backgrounds and borders.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_bgcolor_iptc';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_bcolor_iptc';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '100px', '', '', \"checkColor('\".$slug1.\"')\") . '</td><td>' . wppa_color_box($slug1);\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '100px', '', '', \"checkColor('\".$slug2.\"')\") . '</td><td>' . wppa_color_box($slug2);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting($slug, '8', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('EXIF', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('EXIF display box background.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter valid CSS colors for exif box backgrounds and borders.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_bgcolor_exif';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_bcolor_exif';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '100px', '', '', \"checkColor('\".$slug1.\"')\") . '</td><td>' . wppa_color_box($slug1);\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '100px', '', '', \"checkColor('\".$slug2.\"')\") . '</td><td>' . wppa_color_box($slug2);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting($slug, '9', $name, $desc, $html, $help);\r\n\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('B', '4', __('Other backgrounds', 'wppa'));\r\n\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Even', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Even background.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter valid CSS colors for even numbered backgrounds and borders of album covers and thumbnail displays \\'As covers\\'.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_bgcolor_even';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_bcolor_even';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '100px', '', '', \"checkColor('\".$slug1.\"')\") . '</td><td>' . wppa_color_box($slug1);\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '100px', '', '', \"checkColor('\".$slug2.\"')\") . '</td><td>' . wppa_color_box($slug2);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Odd', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Odd background.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter valid CSS colors for odd numbered backgrounds and borders of album covers and thumbnail displays \\'As covers\\'.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_bgcolor_alt';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_bcolor_alt';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '100px', '', '', \"checkColor('\".$slug1.\"')\") . '</td><td>' . wppa_color_box($slug1);\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '100px', '', '', \"checkColor('\".$slug2.\"')\") . '</td><td>' . wppa_color_box($slug2);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Img', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Cover Photos and popups.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter valid CSS colors for Cover photo and popup backgrounds and borders.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_bgcolor_img';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_bcolor_img';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '100px', '', '', \"checkColor('\".$slug1.\"')\") . '</td><td>' . wppa_color_box($slug1);\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '100px', '', '', \"checkColor('\".$slug2.\"')\") . '</td><td>' . wppa_color_box($slug2);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t\t<tfoot style=\"font-weight: bold;\" class=\"wppa_table_3\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Background color', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Sample', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Border color', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Sample', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</tfoot>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\r\n\t\t\t\t\t\r\n\t\t\t<?php // Table 4: Behaviour ?>\r\n\t\t\t<?php wppa_settings_box_header(\r\n\t\t\t\t'4', \r\n\t\t\t\t__('Table IV:', 'wppa').' '.__('Behaviour:', 'wppa').' '.\r\n\t\t\t\t__('This table describes the dynamic behaviour of certain wppa+ elements.', 'wppa')\r\n\t\t\t); ?>\r\n\r\n\t\t\t\t<div id=\"wppa_table_4\" style=\"display:none\" >\r\n\t\t\t\t\t<table class=\"widefat\">\r\n\t\t\t\t\t\t<thead style=\"font-weight: bold; \" class=\"wppa_table_4\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Setting', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<tbody class=\"wppa_table_4\">\r\n\t\t\t\t\t\t\t<?php \r\n\t\t\t\t\t\t\t$wppa_table = 'IV';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('A', '1', __('System related settings', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Use Ajax', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Use Ajax as much as is possible and implemented.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_allow_ajax';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckAjax()';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug, $onchange);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Photo names in urls', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Display photo names in urls, no numbers.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('While browsing through a slideshow and Use Ajax is checked, and the browser supports history.pushState,', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= ' '.esc_js(__('the photo names will be displayed in the generated urls in the browser address line.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('These urls are valid and can be saved for use later.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_use_photo_names_in_urls';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'wppa_allow_ajax_';\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('B', '1', __('Slideshow related settings', 'wppa'));\r\n\r\n\t\t\t\t\t\t\t$name = __('V align', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Vertical alignment of slideshow images.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Specify the vertical alignment of slideshow images.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('If you select --- none ---, the photos will not be centered horizontally either.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_fullvalign';\r\n\t\t\t\t\t\t\t$options = array(__('--- none ---', 'wppa'), __('top', 'wppa'), __('center', 'wppa'), __('bottom', 'wppa'), __('fit', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('default', 'top', 'center', 'bottom', 'fit');\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckFullHalign()';\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values, $onchange);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('H align', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Horizontal alignment of slideshow images.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Specify the horizontal alignment of slideshow images. If you specify --- none --- , no horizontal alignment will take place.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('This setting is only usefull when the Column Width differs from the Maximum Width.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('(Settings I-A1 and I-B1)', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_fullhalign';\r\n\t\t\t\t\t\t\t$options = array(__('--- none ---', 'wppa'), __('left', 'wppa'), __('center', 'wppa'), __('right', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('default', 'left', 'center', 'right');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\t$class = 'wppa_ha';\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Start', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Start slideshow running.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If you select \"running\", the slideshow will start running immediately, if you select \"still at first photo\", the first photo will be displayed in browse mode.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('If you select \"still at first norated\", the first photo that the visitor did not gave a rating will be displayed in browse mode.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_start_slide';\r\n\t\t\t\t\t\t\t$options = array(\t__('running', 'wppa'), \r\n\t\t\t\t\t\t\t\t\t\t\t\t__('still at first photo', 'wppa'), \r\n\t\t\t\t\t\t\t\t\t\t\t\t__('still at first norated', 'wppa')\r\n\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t$values = array(\t'run', \r\n\t\t\t\t\t\t\t\t\t\t\t\t'still', \r\n\t\t\t\t\t\t\t\t\t\t\t\t'norate'\r\n\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\t$class = 'wppa_ss';\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Start slideonly', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Start slideonly slideshow running.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_start_slideonly';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '3.1', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Animation type', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The way successive slides appear.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Select the way the old slide is to be replaced by the new one in the slideshow/browse fullsize display.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_animation_type';\r\n\t\t\t\t\t\t\t$options = array(\t__('Fade out and in simultaneous', 'wppa'),\r\n\t\t\t\t\t\t\t\t\t\t\t\t__('Fade in after fade out', 'wppa'),\r\n\t\t\t\t\t\t\t\t\t\t\t\t__('Shift adjacent', 'wppa'),\r\n\t\t\t\t\t\t\t\t\t\t\t\t__('Stack on', 'wppa'),\r\n\t\t\t\t\t\t\t\t\t\t\t\t__('Stack off', 'wppa'),\r\n\t\t\t\t\t\t\t\t\t\t\t\t__('Turn over', 'wppa')\r\n\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t$values = array(\t'fadeover',\r\n\t\t\t\t\t\t\t\t\t\t\t\t'fadeafter',\r\n\t\t\t\t\t\t\t\t\t\t\t\t'swipe',\r\n\t\t\t\t\t\t\t\t\t\t\t\t'stackon',\r\n\t\t\t\t\t\t\t\t\t\t\t\t'stackoff',\r\n\t\t\t\t\t\t\t\t\t\t\t\t'turnover'\r\n\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Timeout', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Slideshow timeout.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Select the time a single slide will be visible when the slideshow is started.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_slideshow_timeout';\r\n\t\t\t\t\t\t\t$options = array(__('very short (1 s.)', 'wppa'), __('short (1.5 s.)', 'wppa'), __('normal (2.5 s.)', 'wppa'), __('long (4 s.)', 'wppa'), __('very long (6 s.)', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('1000', '1500', '2500', '4000', '6000');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\t$class = 'wppa_ss';\r\n\t\t\t\t\t\t\twppa_setting($slug, '5', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Speed', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Slideshow animation speed.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Specify the animation speed to be used in slideshows.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('This is the time it takes a photo to fade in or out.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_animation_speed';\r\n\t\t\t\t\t\t\t$options = array(__('--- off ---', 'wppa'), __('very fast (200 ms.)', 'wppa'), __('fast (400 ms.)', 'wppa'), __('normal (800 ms.)', 'wppa'), __('slow (1.2 s.)', 'wppa'), __('very slow (2 s.)', 'wppa'), __('extremely slow (4 s.)', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('10', '200', '400', '800', '1200', '2000', '4000');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\t$class = 'wppa_ss';\r\n\t\t\t\t\t\t\twppa_setting($slug, '6', $name, $desc, $html, $help, $class);\r\n\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Slide hover pause', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Running Slideshow suspends during mouse hover.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_slide_pause';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '7', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Slideshow wrap around', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The slideshow wraps around the start and end', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_slide_wrap';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '8', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Full desc align', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The alignment of the descriptions under fullsize images and slideshows.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_fulldesc_align';\r\n\t\t\t\t\t\t\t$options = array(__('Left', 'wppa'), __('Center', 'wppa'), __('Right', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('left', 'center', 'right');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\twppa_setting($slug, '9', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Remove redundant space', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Removes unwanted &lt;p> and &lt;br> tags in fullsize descriptions.', 'wppa');\r\n\t\t\t\t\t\t\t$help = __('This setting has only effect when Table IX-A7 (foreign shortcodes) is checked.', 'wppa');\r\n\t\t\t\t\t\t\t$slug = 'wppa_clean_pbr';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '10', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Run wpautop on description', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Adds &lt;p> and &lt;br> tags in fullsize descriptions.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_run_wppautop_on_desc';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '11', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('C', '1', __('Thumbnail related settings', 'wppa'));\r\n\r\n\t\t\t\t\t\t\t$name = __('Photo order', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Photo ordering sequence method.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Specify the way the photos should be ordered. This is the default setting. You can overrule the default sorting order on a per album basis.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_list_photos_by';\r\n\t\t\t\t\t\t\t$options = array(__('--- none ---', 'wppa'), __('Order #', 'wppa'), __('Name', 'wppa'), __('Random', 'wppa'), __('Rating mean value', 'wppa'), __('Number of votes', 'wppa'), __('Timestamp', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('0', '1', '2', '3', '4', '6', '5');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Descending', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Descending order.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked: largest first', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('This is a system wide setting.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_list_photos_desc';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Thumbnail type', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The way the thumbnail images are displayed.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('You may select an altenative display method for thumbnails. Note that some of the thumbnail settings do not apply to all available display methods.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_thumbtype';\r\n\t\t\t\t\t\t\t$options = array(__('--- default ---', 'wppa'), __('like album covers', 'wppa'), __('--- none ---', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('default', 'ascovers', 'none');\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckThumbType()';\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values, $onchange);\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Placement', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Thumbnail image left or right.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Indicate the placement position of the thumbnailphoto you wish.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_thumbphoto_left';\r\n\t\t\t\t\t\t\t$options = array(__('Left', 'wppa'), __('Right', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('yes', 'no');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\t$class = 'tt_ascovers';\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\t$name = __('Vertical alignment', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Vertical alignment of thumbnails.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Specify the vertical alignment of thumbnail images. Use this setting when albums contain both portrait and landscape photos.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('It is NOT recommended to use the value --- default ---; it will affect the horizontal alignment also and is meant to be used with custom css.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_valign';\r\n\t\t\t\t\t\t\t$options = array( __('--- default ---', 'wppa'), __('top', 'wppa'), __('center', 'wppa'), __('bottom', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('default', 'top', 'center', 'bottom');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\t$class = 'tt_normal';\r\n\t\t\t\t\t\t\twppa_setting($slug, '5', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Thumb mouseover', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Apply thumbnail mouseover effect.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Check this box to use mouseover effect on thumbnail images.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_use_thumb_opacity';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckUseThumbOpacity()';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug, $onchange);\r\n\t\t\t\t\t\t\t$class = 'tt_normal';\r\n\t\t\t\t\t\t\twppa_setting($slug, '6', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Thumb opacity', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Initial opacity value.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter percentage of opacity. 100% is opaque, 0% is transparant', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_thumb_opacity';\r\n\t\t\t\t\t\t\t$html = '<span class=\"thumb_opacity_html\">'.wppa_input($slug, '50px', '', __('%', 'wppa')).'</span>';\r\n\t\t\t\t\t\t\t$class = 'tt_normal';\r\n\t\t\t\t\t\t\twppa_setting($slug, '7', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\t$name = __('Thumb popup', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Use popup effect on thumbnail images.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Thumbnails pop-up to a larger image when hovered.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_use_thumb_popup';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckPopup()';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug, $onchange);\r\n\t\t\t\t\t\t\t$htmlerr = wppa_htmlerr('popup-lightbox');\r\n\t\t\t\t\t\t\t$class = 'tt_normal';\r\n\t\t\t\t\t\t\twppa_setting($slug, '8', $name, $desc, $html.$htmlerr, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('D', '1', __('Album and covers related settings', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Album order', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Album ordering sequence method.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Specify the way the albums should be ordered.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_list_albums_by';\r\n\t\t\t\t\t\t\t$options = array(__('--- none ---', 'wppa'), __('Order #', 'wppa'), __('Name', 'wppa'), __('Random', 'wppa'), __('Timestamp', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('0', '1', '2', '3', '5');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Descending', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Descending order.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked: largest first', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_list_albums_desc';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Placement', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Cover image position.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Indicate the placement position of the coverphoto you wish.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_coverphoto_pos';\r\n\t\t\t\t\t\t\t$options = array(__('Left', 'wppa'), __('Right', 'wppa'), __('Top', 'wppa'), __('Bottom', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('left', 'right', 'top', 'bottom');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Cover mouseover', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Apply coverphoto mouseover effect.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Check this box to use mouseover effect on cover images.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_use_cover_opacity';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckUseCoverOpacity()';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug, $onchange);\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Cover opacity', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Initial opacity value.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter percentage of opacity. 100% is opaque, 0% is transparant', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_cover_opacity';\r\n\t\t\t\t\t\t\t$html = '<span class=\"cover_opacity_html\">'.wppa_input($slug, '50px', '', __('%', 'wppa')).'</span>';\r\n\t\t\t\t\t\t\t$class = 'tt_normal';\r\n\t\t\t\t\t\t\twppa_setting($slug, '5', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\twppa_setting_subheader('E', '1', __('Rating related settings', 'wppa'), 'wppa_rating_');\t\r\n\r\n\t\t\t\t\t\t\t$name = __('Rating login', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Users must login to rate photos.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If users want to vote for a photo (rating 1..5 stars) the must login first. The avarage rating will always be displayed as long as the rating system is enabled.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_rating_login';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'wppa_rating_';\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Rating change', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Users may change their ratings.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Users may change their ratings.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_rating_change';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'wppa_rating_';\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Rating multi', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Users may give multiple votes.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Users may give multiple votes. (This has no effect when users may change their votes.)', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_rating_multi';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'wppa_rating_';\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help, $class);\r\n\r\n\t\t\t\t\t\t\t$name = __('Rating use Ajax', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Use Ajax technology in rating (voting)', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked, the page is updated rather than reloaded after clicking a rating star.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('Enabling this feature ensures the fastest rating mechanism possible.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_rating_use_ajax';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'wppa_rating_';\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Next after vote', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Goto next slide after voting', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked, the visitor goes straight to the slide following the slide he voted. This will speed up mass voting.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_next_on_callback';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'wppa_rating_';\r\n\t\t\t\t\t\t\twppa_setting($slug, '5', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Star off opacity', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Rating star off state opacity value.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter percentage of opacity. 100% is opaque, 0% is transparant', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_star_opacity';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '50px', '', __('%', 'wppa'));\r\n\t\t\t\t\t\t\t$class = 'wppa_rating_';\r\n\t\t\t\t\t\t\twppa_setting($slug, '6', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('F', '1', __('Comments related settings', 'wppa'), 'wppa_comment_');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Commenting login', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Users must be logged in to comment on photos.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Check this box if you want users to be logged in to be able to enter comments on individual photos.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_comment_login';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'wppa_comment_';\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Last comment first', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Display the newest comment on top.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked: Display the newest comment on top.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('If unchecked, the comments are listed in the ordere they were entered.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_comments_desc';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'wppa_comment_';\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Comment moderation', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Comments from what users need approval.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Select the desired users of which the comments need approval.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_comment_moderation';\r\n\t\t\t\t\t\t\t$options = array(__('All users', 'wppa'), __('Logged out users', 'wppa'), __('No users', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('all', 'logout', 'none');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\t$class = 'wppa_comment_';\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Comment email required', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Commenting users must enter their email addresses.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_comment_email_required';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'wppa_comment_';\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('G', '1', __('Lightbox related settings. These settings have effect only when Table IX-A6 is set to wppa', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Overlay opacity', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The opacity of the lightbox overlay background.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_ovl_opacity';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '50px', '', __('%', 'wppa'));\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Click on background', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Select the action to be taken on click on background.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_ovl_onclick';\r\n\t\t\t\t\t\t\t$options = array(__('Nothing', 'wppa'), __('Exit (close)', 'wppa'), __('Browse (left/right)', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('none', 'close', 'browse');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Overlay animation speed', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The fade-in time of the lightbox images', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_ovl_anim';\r\n\t\t\t\t\t\t\t$options = array(__('--- off ---', 'wppa'), __('very fast (100 ms.)', 'wppa'), __('fast (200 ms.)', 'wppa'), __('normal (300 ms.)', 'wppa'), __('slow (500 ms.)', 'wppa'), __('very slow (1 s.)', 'wppa'), __('extremely slow (2 s.)', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('0', '100', '200', '300', '500', '1000', '2000');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t\t<tfoot style=\"font-weight: bold;\" class=\"wppa_table_4\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Setting', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</tfoot>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t<?php // Table 5: Fonts ?>\r\n\t\t\t<?php wppa_settings_box_header(\r\n\t\t\t\t'5',\r\n\t\t\t\t__('Table V:', 'wppa').' '.__('Fonts:', 'wppa').' '.\r\n\t\t\t\t__('This table describes the Fonts used for the wppa+ elements.', 'wppa')\r\n\t\t\t); ?>\r\n\t\t\t\r\n\t\t\t\t<div id=\"wppa_table_5\" style=\"display:none\" >\r\n\t\t\t\t\t<table class=\"widefat\">\r\n\t\t\t\t\t\t<thead style=\"font-weight: bold; \" class=\"wppa_table_5\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\" style=\"min-width:250px;\" ><?php _e('Font family', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Font size', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Font color', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Font weight', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<tbody class=\"wppa_table_5\">\r\n\t\t\t\t\t\t\t<?php \r\n\t\t\t\t\t\t\t$wppa_table = 'V';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$wppa_subtable = 'Z';\t// No subtables\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$options = array(__('normal', 'wppa'), __('bold', 'wppa'), __('bolder', 'wppa'), __('lighter', 'wppa'), '100', '200', '300', '400', '500', '600', '700', '800', '900');\r\n\t\t\t\t\t\t\t$values = array('normal', 'bold', 'bolder', 'lighter', '100', '200', '300', '400', '500', '600', '700', '800', '900');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Album titles', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Font used for Album titles.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter font name, size, color and weight for album cover titles.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_fontfamily_title';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_fontsize_title';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_fontcolor_title';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_fontweight_title';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '90%', '200px', '');\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\t$html3 = wppa_input($slug3, '70px', '', '');\r\n\t\t\t\t\t\t\t$html4 = wppa_select($slug4, $options, $values);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1a,b,c,d', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Slideshow desc', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Font for slideshow photo descriptions.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter font name, size, color and weight for slideshow photo descriptions.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_fontfamily_fulldesc';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_fontsize_fulldesc';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_fontcolor_fulldesc';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_fontweight_fulldesc';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '90%', '200px', '');\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\t$html3 = wppa_input($slug3, '70px', '', '');\r\n\t\t\t\t\t\t\t$html4 = wppa_select($slug4, $options, $values);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '2a,b,c,d', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Slideshow name', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Font for slideshow photo names.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter font name, size, color and weight for slideshow photo names.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_fontfamily_fulltitle';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_fontsize_fulltitle';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_fontcolor_fulltitle';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_fontweight_fulltitle';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '90%', '200px', '');\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\t$html3 = wppa_input($slug3, '70px', '', '');\r\n\t\t\t\t\t\t\t$html4 = wppa_select($slug4, $options, $values);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '3a,b,c,d', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Navigations', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Font for navigations.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter font name, size, color and weight for navigation items.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_fontfamily_nav';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_fontsize_nav';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_fontcolor_nav';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_fontweight_nav';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '90%', '200px', '');\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\t$html3 = wppa_input($slug3, '70px', '', '');\r\n\t\t\t\t\t\t\t$html4 = wppa_select($slug4, $options, $values);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '4a,b,c,d', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Thumbnails', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Font for text under thumbnails.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter font name, size, color and weight for text under thumbnail images.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_fontfamily_thumb';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_fontsize_thumb';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_fontcolor_thumb';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_fontweight_thumb';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '90%', '200px', '');\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\t$html3 = wppa_input($slug3, '70px', '', '');\r\n\t\t\t\t\t\t\t$html4 = wppa_select($slug4, $options, $values);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '5a,b,c,d', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Other', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('General font in wppa boxes.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter font name, size, color and weight for all other items.', 'wppa')); \r\n\t\t\t\t\t\t\t$slug1 = 'wppa_fontfamily_box';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_fontsize_box';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_fontcolor_box';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_fontweight_box';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '90%', '200px', '');\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\t$html3 = wppa_input($slug3, '70px', '', '');\r\n\t\t\t\t\t\t\t$html4 = wppa_select($slug4, $options, $values);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '6a,b,c,d', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Numbar', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Font in wppa number bars.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter font name, size, color and weight for numberbar navigation.', 'wppa')); \r\n\t\t\t\t\t\t\t$slug1 = 'wppa_fontfamily_numbar';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_fontsize_numbar';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_fontcolor_numbar';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_fontweight_numbar';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '90%', '200px', '');\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\t$html3 = wppa_input($slug3, '70px', '', '');\r\n\t\t\t\t\t\t\t$html4 = wppa_select($slug4, $options, $values);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '7a,b,c,d', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Numbar Active', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Font in wppa number bars, active item.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter font name, size, color and weight for numberbar navigation.', 'wppa')); \r\n\t\t\t\t\t\t\t$slug1 = 'wppa_fontfamily_numbar_active';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_fontsize_numbar_active';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_fontcolor_numbar_active';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_fontweight_numbar_active';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '90%', '200px', '');\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\t$html3 = wppa_input($slug3, '70px', '', '');\r\n\t\t\t\t\t\t\t$html4 = wppa_select($slug4, $options, $values);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '8a,b,c,d', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Lightbox', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Font in wppa lightbox overlays.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter font name, size, color and weight for wppa lightbox overlays.', 'wppa')); \r\n\t\t\t\t\t\t\t$slug1 = 'wppa_fontfamily_lightbox';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_fontsize_lightbox';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_fontcolor_lightbox';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_fontweight_lightbox';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$html1 = wppa_input($slug1, '90%', '200px', '');\r\n\t\t\t\t\t\t\t$html2 = wppa_input($slug2, '40px', '', __('pixels', 'wppa'));\r\n\t\t\t\t\t\t\t$html3 = wppa_input($slug3, '70px', '', '');\r\n\t\t\t\t\t\t\t$html4 = wppa_select($slug4, $options, $values);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '9a,b,c,d', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t\t<tfoot style=\"font-weight: bold;\" class=\"wppa_table_5\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Font family', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Font size', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Font color', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Font weight', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</tfoot>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\r\n\t\t\t\r\n\t\t\t<?php // Table 6: Links ?>\r\n\t\t\t<?php wppa_settings_box_header(\r\n\t\t\t\t'6',\r\n\t\t\t\t__('Table VI:', 'wppa').' '.__('Links:', 'wppa').' '.\r\n\t\t\t\t__('This table defines the link types and pages.', 'wppa')\r\n\t\t\t); ?>\r\n\t\t\t\r\n\t\t\t\t<div id=\"wppa_table_6\" style=\"display:none\" >\r\n\t\t\t\t\t<table class=\"widefat\">\r\n\t\t\t\t\t\t<thead style=\"font-weight: bold; \" class=\"wppa_table_6\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Link type', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Link page', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('New tab', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\" title=\"<?php _e('Photo specific link overrules', 'wppa') ?>\" style=\"cursor: default\"><?php _e('PSO', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<tbody class=\"wppa_table_6\">\r\n\t\t\t\t\t\t\t<?php \r\n\t\t\t\t\t\t\t$wppa_table = 'VI';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$wppa_subtable = 'Z';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Linktypes\r\n\t\t\t\t\t\t\t$options_linktype = array(__('no link at all.', 'wppa'), __('the plain photo (file).', 'wppa'), __('the full size photo in a slideshow.', 'wppa'), __('the fullsize photo on its own.', 'wppa'), __('the fs photo with download and print buttons.', 'wppa'), __('lightbox.', 'wppa'));\r\n\t\t\t\t\t\t\t$values_linktype = array('none', 'file', 'photo', 'single', 'fullpopup', 'lightbox'); //, 'indiv');\r\n\t\t\t\t\t\t\t$options_linktype_album = array(__('no link at all.', 'wppa'), __('the plain photo (file).', 'wppa'), __('the content of the album.', 'wppa'), __('the full size photo in a slideshow.', 'wppa'), __('the fullsize photo on its own.', 'wppa'), __('lightbox.', 'wppa'));\r\n\t\t\t\t\t\t\t$values_linktype_album = array('none', 'file', 'album', 'photo', 'single', 'lightbox'); //, 'indiv');\r\n\t\t\t\t\t\t\t$options_linktype_ss_widget = array(__('no link at all.', 'wppa'), __('the plain photo (file).', 'wppa'), __('defined at widget activation.', 'wppa'), __('the content of the album.', 'wppa'), __('the full size photo in a slideshow.', 'wppa'), __('the fullsize photo on its own.', 'wppa')); //, __('the photo specific link.', 'wppa'));\r\n\t\t\t\t\t\t\t$values_linktype_ss_widget = array('none', 'file', 'widget', 'album', 'photo', 'single'); //, 'indiv');\r\n\t\t\t\t\t\t\t$options_linktype_potd_widget = array(__('no link at all.', 'wppa'), __('the plain photo (file).', 'wppa'), __('defined on widget admin page.', 'wppa'), __('the content of the album.', 'wppa'), __('the full size photo in a slideshow.', 'wppa'), __('the fullsize photo on its own.', 'wppa'), __('lightbox.', 'wppa')); //, __('the photo specific link.', 'wppa'));\r\n\t\t\t\t\t\t\t$values_linktype_potd_widget = array('none', 'file', 'custom', 'album', 'photo', 'single', 'lightbox'); //, 'indiv');\r\n\t\t\t\t\t\t\t$options_linktype_cover_image = array(__('no link at all.', 'wppa'), __('the plain photo (file).', 'wppa'), __('same as title.', 'wppa'));\r\n\t\t\t\t\t\t\t$values_linktype_cover_image = array('none', 'file', 'same');\r\n\r\n\t\t\t\t\t\t\t// Linkpages\r\n\t\t\t\t\t\t\t$options_page = false;\r\n\t\t\t\t\t\t\t$options_page_post = false;\r\n\t\t\t\t\t\t\t$values_page = false;\r\n\t\t\t\t\t\t\t$values_page_post = false;\r\n\t\t\t\t\t\t\t// First\r\n\t\t\t\t\t\t\t$options_page_post[] = __('--- The same post or page ---', 'wppa');\r\n\t\t\t\t\t\t\t$values_page_post[] = '0';\r\n\t\t\t\t\t\t\t$options_page[] = __('--- Please select a page ---', 'wppa');\r\n\t\t\t\t\t\t\t$values_page[] = '0';\r\n\t\t\t\t\t\t\t// Pages if any\r\n\t\t\t\t\t\t\t$query = $wpdb->prepare( \"SELECT ID, post_title, post_content FROM \" . $wpdb->posts . \" WHERE post_type = 'page' AND post_status = 'publish' ORDER BY post_title ASC\" );\r\n\t\t\t\t\t\t\t$pages = $wpdb->get_results ($query, 'ARRAY_A');\r\n\t\t\t\t\t\t\tif ($pages) {\r\n\t\t\t\t\t\t\t\tforeach ($pages as $page) {\r\n\t\t\t\t\t\t\t\t\tif (strpos($page['post_content'], '%%wppa%%') !== false || strpos($page['post_content'], '[wppa') !== false) {\r\n\t\t\t\t\t\t\t\t\t\t$options_page[] = __($page['post_title']);\r\n\t\t\t\t\t\t\t\t\t\t$options_page_post[] = __($page['post_title']);\r\n\t\t\t\t\t\t\t\t\t\t$values_page[] = $page['ID'];\r\n\t\t\t\t\t\t\t\t\t\t$values_page_post[] = $page['ID'];\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t$options_page[] = '|'.__($page['post_title']).'|';\r\n\t\t\t\t\t\t\t\t\t\t$options_page_post[] = '|'.__($page['post_title']).'|';\r\n\t\t\t\t\t\t\t\t\t\t$values_page[] = $page['ID'];\r\n\t\t\t\t\t\t\t\t\t\t$values_page_post[] = $page['ID'];\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}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t$options_page[] = __('--- No page to link to (yet) ---', 'wppa');\r\n\t\t\t\t\t\t\t\t$values_page[] = '0';\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t$name = __('Sphoto', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Single photo link.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Select the type of link you want, or no link at all.', 'wppa')); \r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('If you select the fullsize photo on its own, it will be stretched to fit, regardless of that setting.', 'wppa')); /* oneofone is treated as portrait only */\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('Note that a page must have at least %%wppa%% or [wppa][/wppa] in its content to show up the photo(s).', 'wppa')); \r\n\t\t\t\t\t\t\t$slug1 = 'wppa_sphoto_linktype';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_sphoto_linkpage';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_sphoto_blank';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_sphoto_overrule';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckSphotoLink(); wppaCheckLinkPageErr(\\'sphoto\\');';\r\n\t\t\t\t\t\t\t$html1 = wppa_select($slug1, $options_linktype_album, $values_linktype_album, $onchange);\r\n\t\t\t\t\t\t\t$class = 'wppa_slp';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckLinkPageErr(\\'sphoto\\');';\r\n\t\t\t\t\t\t\t$html2 = wppa_select($slug2, $options_page, $values_page, $onchange, $class, true);\r\n\t\t\t\t\t\t\t$class = 'wppa_slb';\r\n\t\t\t\t\t\t\t$html3 = wppa_checkbox($slug3, '', $class);\r\n\t\t\t\t\t\t\t$html4 = wppa_checkbox($slug4);\r\n\t\t\t\t\t\t\t$htmlerr = wppa_htmlerr('sphoto');\r\n\t\t\t\t\t\t\t$html = array($html1, $htmlerr.$html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '0a,b,c,d', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Mphoto', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Media-like photo link.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Select the type of link you want, or no link at all.', 'wppa')); \r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('If you select the fullsize photo on its own, it will be stretched to fit, regardless of that setting.', 'wppa')); /* oneofone is treated as portrait only */\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('Note that a page must have at least %%wppa%% or [wppa][/wppa] in its content to show up the photo(s).', 'wppa')); \r\n\t\t\t\t\t\t\t$slug1 = 'wppa_mphoto_linktype';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_mphoto_linkpage';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_mphoto_blank';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_mphoto_overrule';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckMphotoLink(); wppaCheckLinkPageErr(\\'mphoto\\');';\r\n\t\t\t\t\t\t\t$html1 = wppa_select($slug1, $options_linktype_album, $values_linktype_album, $onchange);\r\n\t\t\t\t\t\t\t$class = 'wppa_mlp';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckLinkPageErr(\\'mphoto\\');';\r\n\t\t\t\t\t\t\t$html2 = wppa_select($slug2, $options_page, $values_page, $onchange, $class, true);\r\n\t\t\t\t\t\t\t$class = 'wppa_mlb';\r\n\t\t\t\t\t\t\t$html3 = wppa_checkbox($slug3, '', $class);\r\n\t\t\t\t\t\t\t$html4 = wppa_checkbox($slug4);\r\n\t\t\t\t\t\t\t$htmlerr = wppa_htmlerr('mphoto');\r\n\t\t\t\t\t\t\t$html = array($html1, $htmlerr.$html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1a,b,c,d', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Thumbnail', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Thumbnail link.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Select the type of link you want, or no link at all.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('If you select the fullsize photo on its own, it will be stretched to fit, regardless of that setting.', 'wppa')); /* oneofone is treated as portrait only */ \r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('Note that a page must have at least %%wppa%% or [wppa][/wppa] in its content to show up the photo(s).', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_thumb_linktype';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_thumb_linkpage';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_thumb_blank';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_thumb_overrule';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckThumbLink()';\r\n\t\t\t\t\t\t\t$html1 = wppa_select($slug1, $options_linktype, $values_linktype, $onchange);\r\n\t\t\t\t\t\t\t$class = 'wppa_tlp';\r\n\t\t\t\t\t\t\t$html2 = wppa_select($slug2, $options_page_post, $values_page_post, '', $class);\r\n\t\t\t\t\t\t\t$class = 'wppa_tlb';\r\n\t\t\t\t\t\t\t$html3 = wppa_checkbox($slug3, '', $class);\r\n\t\t\t\t\t\t\t$html4 = wppa_checkbox($slug4);\r\n\t\t\t\t\t\t\t$htmlerr = wppa_htmlerr('popup-lightbox');\r\n\t\t\t\t\t\t\t$html = array($html1, $htmlerr.$html2, $html3, $html4);\r\n\t\t\t\t\t\t\t$class = 'tt_always';\r\n\t\t\t\t\t\t\twppa_setting($slug, '2a,b,c,d', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('TopTenWidget', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('TopTen widget photo link.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Select the type of link the top ten photos point to.', 'wppa')); \r\n\t\t\t\t\t\t\t$slug1 = 'wppa_topten_widget_linktype'; \r\n\t\t\t\t\t\t\t$slug2 = 'wppa_topten_widget_linkpage';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_topten_blank';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_topten_overrule';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckTopTenLink(); wppaCheckLinkPageErr(\\'topten_widget\\');';\r\n\t\t\t\t\t\t\t$html1 = wppa_select($slug1, $options_linktype, $values_linktype, $onchange);\r\n\t\t\t\t\t\t\t$class = 'wppa_ttlp';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckLinkPageErr(\\'topten_widget\\');';\r\n\t\t\t\t\t\t\t$html2 = wppa_select($slug2, $options_page, $values_page, $onchange, $class, true);\r\n\t\t\t\t\t\t\t$class = 'wppa_ttlb';\r\n\t\t\t\t\t\t\t$html3 = wppa_checkbox($slug3, '', $class);\r\n\t\t\t\t\t\t\t$html4 = wppa_checkbox($slug4);\r\n\t\t\t\t\t\t\t$htmlerr = wppa_htmlerr('topten_widget');\r\n\t\t\t\t\t\t\t$html = array($html1, $htmlerr.$html2, $html3, $html4);\r\n\t\t\t\t\t\t\t$class = 'wppa_rating';\r\n\t\t\t\t\t\t\twppa_setting($slug, '3a,b,c,d', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('SlideWidget', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Slideshow widget photo link.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Select the type of link the top ten photos point to.', 'wppa')); \r\n\t\t\t\t\t\t\t$slug1 = 'wppa_slideonly_widget_linktype';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_slideonly_widget_linkpage';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_sswidget_blank';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_sswidget_overrule';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckSlideOnlyLink(); wppaCheckLinkPageErr(\\'slideonly_widget\\');';\r\n\t\t\t\t\t\t\t$html1 = wppa_select($slug1, $options_linktype_ss_widget, $values_linktype_ss_widget, $onchange);\r\n\t\t\t\t\t\t\t$class = 'wppa_solp';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckLinkPageErr(\\'slideonly_widget\\');';\r\n\t\t\t\t\t\t\t$html2 = wppa_select($slug2, $options_page, $values_page, $onchange, $class, true);\r\n\t\t\t\t\t\t\t$class = 'wppa_solb';\r\n\t\t\t\t\t\t\t$html3 = wppa_checkbox($slug3, '', $class);\r\n\t\t\t\t\t\t\t$html4 = wppa_checkbox($slug4);\r\n\t\t\t\t\t\t\t$htmlerr = wppa_htmlerr('slideonly_widget');\r\n\t\t\t\t\t\t\t$html = array($html1, $htmlerr.$html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '4a,b,c,d', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('PotdWidget', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Photo Of The Day widget link.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Select the type of link the photo of the day points to.', 'wppa')); \r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('If you select \\'defined on widget admin page\\' you can manually enter a link and title on the Photo of the day Widget Admin page.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_widget_linktype';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_widget_linkpage';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_potd_blank';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_potdwidget_overrule';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckPotdLink(); wppaCheckLinkPageErr(\\'widget\\');';\r\n\t\t\t\t\t\t\t$html1 = wppa_select($slug1, $options_linktype_potd_widget, $values_linktype_potd_widget, $onchange);\r\n\t\t\t\t\t\t\t$class = 'wppa_potdlp';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckLinkPageErr(\\'widget\\');';\r\n\t\t\t\t\t\t\t$html2 = wppa_select($slug2, $options_page, $values_page, $onchange, $class, true);\r\n\t\t\t\t\t\t\t$class = 'wppa_potdlb';\r\n\t\t\t\t\t\t\t$html3 = wppa_checkbox($slug3, '', $class);\r\n\t\t\t\t\t\t\t$html4 = wppa_checkbox($slug4);\r\n\t\t\t\t\t\t\t$htmlerr = wppa_htmlerr('widget');\r\n\t\t\t\t\t\t\t$html = array($html1, $htmlerr.$html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '5a,b,c,d', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Cover Image', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The link from the cover image of an album.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Select the type of link the coverphoto points to.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('The link from the album title can be configured on the Edit Album page.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('This link will be used for the photo also if you select: same as title.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('If you specify New Tab on this line, all links from the cover will open a new tab,', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('except when Ajax is activated on Table IV-A1.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_coverimg_linktype';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_coverimg_linkpage';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_coverimg_blank';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_coverimg_overrule';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckCoverImg()';\r\n\t\t\t\t\t\t\t$html1 = wppa_select($slug1, $options_linktype_cover_image, $values_linktype_cover_image, $onchange);\r\n\t\t\t\t\t\t\t$class = '';\r\n\t\t\t\t\t\t\t$html2 = '';\r\n\t\t\t\t\t\t\t$class = 'wppa_covimgbl';\r\n\t\t\t\t\t\t\t$html3 = wppa_checkbox($slug3, '', $class);\r\n\t\t\t\t\t\t\t$html4 = wppa_checkbox($slug4);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '6a,b,c,d', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('CommentWidget', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Comment widget photo link.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Select the type of link the comment widget photos point to.', 'wppa')); \r\n\t\t\t\t\t\t\t$slug1 = 'wppa_comment_widget_linktype'; \r\n\t\t\t\t\t\t\t$slug2 = 'wppa_comment_widget_linkpage';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_comment_blank';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_comment_overrule';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckCommentLink(); wppaCheckLinkPageErr(\\'comment_widget\\');';\r\n\t\t\t\t\t\t\t$html1 = wppa_select($slug1, $options_linktype, $values_linktype, $onchange);\r\n\t\t\t\t\t\t\t$class = 'wppa_cmlp';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckLinkPageErr(\\'comment_widget\\');';\r\n\t\t\t\t\t\t\t$html2 = wppa_select($slug2, $options_page, $values_page, $onchange, $class, true);\r\n\t\t\t\t\t\t\t$class = 'wppa_cmlb';\r\n\t\t\t\t\t\t\t$html3 = wppa_checkbox($slug3, '', $class);\r\n\t\t\t\t\t\t\t$html4 = wppa_checkbox($slug4);\r\n\t\t\t\t\t\t\t$htmlerr = wppa_htmlerr('comment_widget');\r\n\t\t\t\t\t\t\t$html = array($html1, $htmlerr.$html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '7a,b,c,d', $name, $desc, $html, $help);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$name = __('Slideshow', 'wppa');\n\t\t\t\t\t\t\t$desc = __('Slideshow fullsize link', 'wppa');\n\t\t\t\t\t\t\t$help = esc_js(__('You can overrule lightbox but not big browse buttons with the photo specifc link.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_slideshow_linktype';\n\t\t\t\t\t\t\t$slug2 = '';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_slideshow_blank';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_slideshow_overrule';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$opts = array(__('no link at all.', 'wppa'), __('the plain photo (file).', 'wppa'), __('lightbox.', 'wppa'));\r\n\t\t\t\t\t\t\t$vals = array('none', 'file', 'lightbox'); \r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckSlideLink()';\r\n\t\t\t\t\t\t\t$html1 = wppa_select($slug1, $opts, $vals, $onchange);\r\n\t\t\t\t\t\t\t$html2 = '';\n\t\t\t\t\t\t\t$class = 'wppa_sslb';\r\n\t\t\t\t\t\t\t$html3 = wppa_checkbox($slug3, '', $class);\n\t\t\t\t\t\t\t$html4 = wppa_checkbox($slug4);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '8a,,c,d', $name, $desc, $html, $help);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$name = __('ThumbnailWidget', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Thumbnail widget photo link.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Select the type of link the thumbnail photos point to.', 'wppa')); \r\n\t\t\t\t\t\t\t$slug1 = 'wppa_thumbnail_widget_linktype'; \r\n\t\t\t\t\t\t\t$slug2 = 'wppa_thumbnail_widget_linkpage';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_thumbnail_widget_blank';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_thumbnail_widget_overrule';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckThumbnailWLink(); wppaCheckLinkPageErr(\\'thumbnail_widget\\');';\r\n\t\t\t\t\t\t\t$html1 = wppa_select($slug1, $options_linktype, $values_linktype, $onchange);\r\n\t\t\t\t\t\t\t$class = 'wppa_tnlp';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckLinkPageErr(\\'thumbnail_widget\\');';\r\n\t\t\t\t\t\t\t$html2 = wppa_select($slug2, $options_page, $values_page, $onchange, $class, true);\r\n\t\t\t\t\t\t\t$class = 'wppa_tnlb';\r\n\t\t\t\t\t\t\t$html3 = wppa_checkbox($slug3, '', $class);\r\n\t\t\t\t\t\t\t$html4 = wppa_checkbox($slug4);\r\n\t\t\t\t\t\t\t$htmlerr = wppa_htmlerr('thumbnail_widget');\r\n\t\t\t\t\t\t\t$html = array($html1, $htmlerr.$html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '9a,b,c,d', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('LasTenWidget', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Last Ten widget photo link.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Select the type of link the last ten photos point to.', 'wppa')); \r\n\t\t\t\t\t\t\t$slug1 = 'wppa_lasten_widget_linktype'; \r\n\t\t\t\t\t\t\t$slug2 = 'wppa_lasten_widget_linkpage';\r\n\t\t\t\t\t\t\t$slug3 = 'wppa_lasten_blank';\r\n\t\t\t\t\t\t\t$slug4 = 'wppa_lasten_overrule';\r\n\t\t\t\t\t\t\t$slug = array($slug1, $slug2, $slug3, $slug4);\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckLasTenLink(); wppaCheckLinkPageErr(\\'lasten_widget\\');';\r\n\t\t\t\t\t\t\t$html1 = wppa_select($slug1, $options_linktype, $values_linktype, $onchange);\r\n\t\t\t\t\t\t\t$class = 'wppa_ltlp';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckLinkPageErr(\\'lasten_widget\\');';\r\n\t\t\t\t\t\t\t$html2 = wppa_select($slug2, $options_page, $values_page, $onchange, $class, true);\r\n\t\t\t\t\t\t\t$class = 'wppa_ltlb';\r\n\t\t\t\t\t\t\t$html3 = wppa_checkbox($slug3, '', $class);\r\n\t\t\t\t\t\t\t$html4 = wppa_checkbox($slug4);\r\n\t\t\t\t\t\t\t$htmlerr = wppa_htmlerr('lasten_widget');\r\n\t\t\t\t\t\t\t$html = array($html1, $htmlerr.$html2, $html3, $html4);\r\n\t\t\t\t\t\t\twppa_setting($slug, '10a,b,c,d', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Film linktype', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Direct access goto image in:', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Select the action to be taken when the user clicks on a filmstrip image.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_film_linktype';\r\n\t\t\t\t\t\t\t$options = array(__('slideshow window', 'wppa'), __('lightbox overlay', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('slideshow', 'lightbox');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\twppa_setting($slug, '11', $name, $desc, $html.'</td><td></td><td></td><td>', $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Art Monkey Link', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Enable the Art Monkey link on fullsize names.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Link Photo name in slideshow to file or zip with photoname as filename.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_art_monkey_link';\r\n\t\t\t\t\t\t\t$options = array(__('--- none ---', 'wppa'), __('image file', 'wppa'), __('zipped image', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('none', 'file', 'zip');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\twppa_setting($slug, '12', $name, $desc, $html.'</td><td></td><td></td><td>', $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Popup Download Link', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Configure the download link on fullsize popups.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Link fullsize popup download button to either image or zip file.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_art_monkey_popup_link';\r\n\t\t\t\t\t\t\t$options = array(__('image file', 'wppa'), __('zipped image', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('file', 'zip');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\twppa_setting($slug, '12', $name, $desc, $html.'</td><td></td><td></td><td>', $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t\t<tfoot style=\"font-weight: bold;\" class=\"wppa_table_6\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Link type', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Link page', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('New tab', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\" title=\"<?php _e('Photo specific link overrules', 'wppa') ?>\" style=\"cursor: default\"><?php _e('PSO', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</tfoot>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\r\n\t\t\t\r\n\t\t\t<?php // Table 7: Security ?>\r\n\t\t\t<?php wppa_settings_box_header(\r\n\t\t\t\t'7',\r\n\t\t\t\t__('Table VII:', 'wppa').' '.__('Access and Security:', 'wppa').' '.\r\n\t\t\t\t__('This table describes the access settings for wppa+ elements and pages.', 'wppa')\r\n\t\t\t); ?>\r\n\r\n\t\t\t\t<div id=\"wppa_table_7\" style=\"display:none\" >\r\n\t\t\t\t\t<table class=\"widefat\">\r\n\t\t\t\t\t\t<thead style=\"font-weight: bold; \" class=\"wppa_table_7\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<?php\r\n\t\t\t\t\t\t\t\t\t$wppacaps = array(\t'wppa_admin', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'wppa_upload', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'wppa_import', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'wppa_export', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'wppa_settings', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'wppa_potd', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'wppa_comments', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'wppa_help'\r\n\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$wppanames = array( 'Album Admin', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Upload Photos', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Import Photos', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Export Photos', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Settings', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Photo of the day', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Comments', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Help & Info'\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t\techo '<th scope=\"col\" >'.__('Role', 'wppa').'</th>';\r\n\t\t\t\t\t\t\t\t\tfor ($i = 0; $i < count($wppacaps); $i++) echo '<th scope=\"col\" style=\"width:11%;\">'.$wppanames[$i].'</th>';\r\n\t\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<tbody class=\"wppa_table_7\">\r\n\t\t\t\t\t\t\t<?php \r\n\t\t\t\t\t\t\t$wppa_table = 'VII';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('A', '5', __('Roles and Capability settings', 'wppa'));\r\n\r\n\t\t\t\t\t\t\t$roles = $wp_roles->roles;//get_option($wpdb->prefix . 'user_roles');\r\n\t\t\t\t\t\t\tforeach (array_keys($roles) as $key) {\r\n\t\t\t\t\t\t\t\t$role = $roles[$key];\r\n\t\t\t\t\t\t\t\techo '<tr class=\"wppa-VII-A wppa-none\" ><td>'.$role['name'].'</td>';\r\n\t\t\t\t\t\t\t\t$caps = $role['capabilities'];\r\n\t\t\t\t\t\t\t\tfor ($i = 0; $i < count($wppacaps); $i++) {\r\n\t\t\t\t\t\t\t\t\tif (isset($caps[$wppacaps[$i]])) {\r\n\t\t\t\t\t\t\t\t\t\t$yn = $caps[$wppacaps[$i]] ? true : false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse $yn = false;\r\n\t\t\t\t\t\t\t\t\t$enabled = ( $key != 'administrator' );\r\n\t\t\t\t\t\t\t\t\techo '<td>'.wppa_checkbox_e('caps-'.$wppacaps[$i].'-'.$key, $yn, '', '', $enabled).'</td>';\r\n\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\techo '</tr>';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t\t<table class=\"widefat\" style=\"margin-top:-2px;\" >\r\n\t\t\t\t\t\t<tbody class=\"wppa_table_7\">\r\n\t\t\t\t\t\t\t<?php\r\n\t\t\t\t\t\t\twppa_setting_subheader('B', '1', __('Miscellaneous scurity settings', 'wppa'));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('User upload login', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Users must be logged in to be able to upload.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If you uncheck this box, make sure you check the next 3 items.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('Set the owner to ---public--- of the albums that are allowed to be uploaded to.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_user_upload_login';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '0', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Owners only', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Limit album access to the album owners only.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked, users who can edit albums and/or upload/import photos can do that with their own albums and --- public --- albums only.', 'wppa')); \r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('Users can give their albums to another user. Administrators can change ownership and access all albums always.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_owner_only';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('User upload', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Enable visitors to upload photos.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If you check this item, visitors who are logged in and have wppa+ upload rights and have access to the album will see an upload photo link on album covers and thumbnail displays.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_user_upload_on';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckUserUpload()';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug, $onchange);\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Upload moderation', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Uploaded photos need moderation.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked, photos uploaded by users who do not have photo album admin access rights need moderation.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= esc_js(__('Users who have photo album admin access rights can change the photo status to publish or featured.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('You can set the album admin access rights in Table VII-A.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_upload_moderate';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Comment captcha', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Use a simple calculate captcha on comments form.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_comment_captcha';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\t$class = 'wppa_comment_';\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Spam lifetime', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Delete spam comments when older than.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_spam_maxage';\r\n\t\t\t\t\t\t\t$options = array(__('--- off ---', 'wppa'), __('10 minutes', 'wppa'), __('half an hour', 'wppa'), __('one hour', 'wppa'), __('one day', 'wppa'), __('one week', 'wppa'));\r\n\t\t\t\t\t\t\t$values = array('none', '600', '1800', '3600', '86400', '604800');\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\t$class = 'wppa_comment_';\r\n\t\t\t\t\t\t\twppa_setting($slug, '5', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t\t<tfoot style=\"font-weight: bold;\" class=\"wppa_table_7\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Setting', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</tfoot>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\r\n\t\t\t\r\n\t\t\t<?php // Table 8: Actions ?>\r\n\t\t\t<?php wppa_settings_box_header(\r\n\t\t\t\t'8',\r\n\t\t\t\t__('Table VIII:', 'wppa').' '.__('Actions:', 'wppa').' '.\r\n\t\t\t\t__('This table lists all actions that can be taken to the wppa+ system', 'wppa')\r\n\t\t\t); ?>\r\n\t\t\t\r\n\t\t\t\t<div id=\"wppa_table_8\" style=\"display:none\" >\r\n\t\t\t\t\t<table class=\"widefat\">\r\n\t\t\t\t\t\t<thead style=\"font-weight: bold; \" class=\"wppa_table_8\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Specification', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Do it!', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<tbody class=\"wppa_table_8\">\r\n\t\t\t\t\t\t\t<?php \r\n\t\t\t\t\t\t\t$wppa_table = 'VIII';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('A', '2', __('Harmless and reverseable actions', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Setup', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Re-initialize plugin.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Re-initilizes the plugin, (re)creates database tables and sets up default settings and directories if required.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('This action may be required to setup blogs in a multiblog (network) site as well as in rare cases to correct initilization errors.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_setup';\r\n\t\t\t\t\t\t\t$html1 = '';\r\n\t\t\t\t\t\t\t$html2 = wppa_doit_button('', $slug);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting(false, '1', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Backup settings', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Save all settings into a backup file.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Saves all the settings into a backup file', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_backup';\r\n\t\t\t\t\t\t\t$html1 = '';\r\n\t\t\t\t\t\t\t$html2 = wppa_doit_button('', $slug);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting(false, '2', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Load settings', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Restore all settings from defaults, a backup or skin file.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Restores all the settings from the factory supplied defaults, the backup you created or from a skin file.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug1 = 'wppa_skinfile';\r\n\t\t\t\t\t\t\t$slug2 = 'wppa_load_skin';\r\n\t\t\t\t\t\t\t$files = glob(WPPA_PATH.'/theme/*.skin');\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$options = false;\r\n\t\t\t\t\t\t\t$values = false;\r\n\t\t\t\t\t\t\t$options[] = __('--- set to defaults ---', 'wppa');\r\n\t\t\t\t\t\t\t$values[] = 'default';\r\n\t\t\t\t\t\t\tif (is_file(WPPA_DEPOT_PATH.'/settings.bak')) {\r\n\t\t\t\t\t\t\t\t$options[] = __('--- restore backup ---', 'wppa');\r\n\t\t\t\t\t\t\t\t$values[] = 'restore';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif ( count($files) ) {\r\n\t\t\t\t\t\t\t\tforeach ($files as $file) {\r\n\t\t\t\t\t\t\t\t\t$fname = basename($file);\r\n\t\t\t\t\t\t\t\t\t$ext = strrchr($fname, '.');\r\n\t\t\t\t\t\t\t\t\tif ( $ext == '.skin' ) {\r\n\t\t\t\t\t\t\t\t\t\t$options[] = $fname;\r\n\t\t\t\t\t\t\t\t\t\t$values[] = $file;\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}\r\n\t\t\t\t\t\t\t$html1 = wppa_select($slug1, $options, $values);\r\n\t\t\t\t\t\t\t$html2 = wppa_doit_button('', $slug2);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting(false, '3', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Regenerate', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Regenerate all thumbnails.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Regenerate all thumbnails.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_regen';\r\n\t\t\t\t\t\t\t$html1 = '';\r\n\t\t\t\t\t\t\t$html2 = wppa_ajax_button('', $slug);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting(false, '4', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Rerate', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Recalculate ratings.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('This function will recalculate all mean photo ratings from the ratings table.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('You may need this function after the re-import of previously exported photos', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_rerate';\r\n\t\t\t\t\t\t\t$html1 = '';\r\n\t\t\t\t\t\t\t$html2 = wppa_ajax_button('', $slug);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting(false, '5', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Cleanup', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Fix and secure WPPA+ system consistency', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('This function will cleanup incomplete db entries and recover lost photos.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_cleanup';\r\n\t\t\t\t\t\t\t$html1 = '';\r\n\t\t\t\t\t\t\t$html2 = wppa_doit_button('', $slug);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting(false, '6', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Recuperate', 'wppa');\r\n\t\t\t\t\t\t\t$desc = 'Recuperate IPTC and EXIF data from photos in WPPA+.';\r\n\t\t\t\t\t\t\t$help = esc_js(__('This action will attempt to find and register IPTC and EXIF data from photos in the WPPA+ system.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('WARNING: Photos that have been downzised during upload/import will have NO IPTC and/or EXIF data.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('If you want that data, you will have to re-import the original files. Use the update switch. You may resize them again.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_recup';\r\n\t\t\t\t\t\t\t$html1 = '';\r\n\t\t\t\t\t\t\t$html2 = wppa_ajax_button('', $slug);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting(false, '7', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('B', '2', __('Clearing and other irreverseable actions', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Clear ratings', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Reset all ratings.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('WARNING: If checked, this will clear all ratings in the system!', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_rating_clear';\r\n\t\t\t\t\t\t\t$html1 = '';\r\n\t\t\t\t\t\t\t$html2 = wppa_ajax_button('', $slug);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting(false, '1', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Reset IPTC', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Clear all IPTC data.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('WARNING: If checked, this will clear all IPTC data in the system!', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_iptc_clear';\r\n\t\t\t\t\t\t\t$html1 = '';\r\n\t\t\t\t\t\t\t$html2 = wppa_ajax_button('', $slug);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting(false, '2', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Reset EXIF', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Clear all EXIF data.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('WARNING: If checked, this will clear all EXIF data in the system!', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_exif_clear';\r\n\t\t\t\t\t\t\t$html1 = '';\r\n\t\t\t\t\t\t\t$html2 = wppa_ajax_button('', $slug);\r\n\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\twppa_setting(false, '3', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t\t<tfoot style=\"font-weight: bold;\" class=\"wppa_table_8\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Specification', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Do it!', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</tfoot>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\r\n\t\t\t\r\n\t\t\t<?php // Table 9: Miscellaneous ?>\r\n\t\t\t<?php wppa_settings_box_header(\r\n\t\t\t\t'9',\r\n\t\t\t\t__('Table IX:', 'wppa').' '.__('Miscellaneous:', 'wppa').' '.\r\n\t\t\t\t__('This table lists all settings that do not fit into an other table', 'wppa')\r\n\t\t\t); ?>\r\n\t\t\t\r\n\t\t\t\t<div id=\"wppa_table_9\" style=\"display:none\" >\r\n\t\t\t\t\t<table class=\"widefat\">\r\n\t\t\t\t\t\t<thead style=\"font-weight: bold; \" class=\"wppa_table_9\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Setting', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<tbody class=\"wppa_table_9\">\r\n\t\t\t\t\t\t\t<?php\r\n\t\t\t\t\t\t\t$wppa_table = 'IX';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('A', '1', __('WPPA+ System related miscellaneous settings', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Allow HTML', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Allow HTML in album and photo descriptions.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked: html is allowed. WARNING: No checks on syntax, it is your own responsability to close tags properly!', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_html';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\n\t\t\t\t\t\t\t$name = __('Check tag balance', 'wppa');\n\t\t\t\t\t\t\t$desc = __('Check if the HTML tags are properly closed: \"balanced\".', 'wppa');\n\t\t\t\t\t\t\t$help = esc_js(__('If the HTML tags in an album or a photo description are not in balance, the description is not updated, an errormessage is displayed', 'wppa'));\n\t\t\t\t\t\t\t$slug = 'wppa_check_balance';\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help);\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Allow WPPA+ Debugging', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Allow the use of &amp;debug=.. in urls to this site.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked: appending (?)(&)debug or (?)(&)debug=<int> to an url to this site will generate the display of special WPPA+ diagnostics, as well as php warnings', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_allow_debug';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('Autoclean', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Auto cleanup invalid database entries.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked, the database consistency will be automaticly secured after an interrupted upload or import procedure.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_autoclean';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('WPPA+ Filter priority', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Sets the priority of the wppa+ content filter.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If you encounter conflicts with the theme or other plugins, increasing this value sometimes helps. Use with great care!', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_filter_priority';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '50px');\r\n\t\t\t\t\t\t\twppa_setting($slug, '5', $name, $desc, $html, $help);\r\n\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Lightbox keyname', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The identifier of lightbox.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If you use a lightbox plugin that uses rel=\"lbox-id\" you can enter the lbox-id here.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_lightbox_name';\r\n\t\t\t\t\t\t\t$class = 'wppa_alt_lightbox';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '100px');\r\n\t\t\t\t\t\t\twppa_setting($slug, '6', $name, $desc, $html, $help, $class);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$name = __('Foreign shortcodes', 'wppa');\n\t\t\t\t\t\t\t$desc = __('Enable the use of non-wppa+ shortcodes in fullsize photo descriptions.', 'wppa');\n\t\t\t\t\t\t\t$help = esc_js(__('When checked, you can use shortcodes from other plugins in the description of photos.', 'wppa'));\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('The shortcodes will be expanded in the descriptions of fullsize images.', 'wppa'));\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('You will most likely need also to check Table IX-A1 (Allow HTML).', 'wppa'));\n\t\t\t\t\t\t\t$slug = 'wppa_allow_foreign_shortcodes';\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\n\t\t\t\t\t\t\twppa_setting($slug, '7', $name, $desc, $html, $help);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$name = __('Arrow color', 'wppa');\n\t\t\t\t\t\t\t$desc = __('Left/right browsing arrow color.', 'wppa');\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the color of the navigation arrows.', 'wppa'));\n\t\t\t\t\t\t\t$slug = 'wppa_arrow_color';\n\t\t\t\t\t\t\t$html = wppa_input($slug, '70px', '', '');\n\t\t\t\t\t\t\twppa_setting($slug, '8', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Meta on page', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Meta tags for photos on the page.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked, the header of the page will contain metatags that refer to featured photos on the page in the page context.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_meta_page';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '9', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Meta all', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Meta tags for all featured photos.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked, the header of the page will contain metatags that refer to all featured photo files.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('If you have many featured photos, you might wish to uncheck this item to reduce the size of the page header.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_meta_all';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '10', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Use WP editor', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Use the wp editor for multiline text fields.', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_use_wp_editor';\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '11', $name, $desc, $html, $help);\r\n\n\t\t\t\t\t\t\twppa_setting_subheader('B', '1', __('New Album and New Photo related miscellaneous settings', 'wppa'));\n\n\t\t\t\t\t\t\t$name = __('New Album', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Maximum time an album is indicated as New!', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_max_album_newtime';\r\n\t\t\t\t\t\t\t$options = array( __('--- off ---', 'wppa'), __('One hour', 'wppa'), __('One day', 'wppa'), __('One week', 'wppa'), __('One month', 'wppa') );\r\n\t\t\t\t\t\t\t$values = array( 0, 60*60, 60*60*24, 60*60*24*7, 60*60*24*30);\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('New Photo', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Maximum time a photo is indicated as New!', 'wppa');\r\n\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t$slug = 'wppa_max_photo_newtime';\r\n\t\t\t\t\t\t\t$options = array( __('--- off ---', 'wppa'), __('One hour', 'wppa'), __('One day', 'wppa'), __('One week', 'wppa'), __('One month', 'wppa') );\r\n\t\t\t\t\t\t\t$values = array( 0, 60*60, 60*60*24, 60*60*24*7, 60*60*24*30);\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Apply Newphoto desc', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Give each new photo a standard description.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked, each new photo will get the description (template) as specified in the next item.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_apply_newphoto_desc';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help);\r\n\r\n\t\t\t\t\t\t\t$name = __('New photo desc', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The description (template) to add to a new photo.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Enter the default description.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('If you use html, please check item A-1 of this table.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_newphoto_description';\r\n\t\t\t\t\t\t\t$html = wppa_textarea($slug, $name);\r\n\t\t\t\t\t\t\twppa_setting($slug, '4', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Upload limit', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('New albums are created with this upload limit.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Administrators can change the limit settings in the \"Edit Album Information\" admin page.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('A value of 0 means: no limit.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_upload_limit_count';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '50px', '', __('photos', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_upload_limit_time';\r\n\t\t\t\t\t\t\t$options = array( \t__('for ever', 'wppa'), \r\n\t\t\t\t\t\t\t\t\t\t\t\t__('per hour', 'wppa'), \r\n\t\t\t\t\t\t\t\t\t\t\t\t__('per day', 'wppa'), \r\n\t\t\t\t\t\t\t\t\t\t\t\t__('per week', 'wppa'), \r\n\t\t\t\t\t\t\t\t\t\t\t\t__('per month', 'wppa'), \t// 30 days\r\n\t\t\t\t\t\t\t\t\t\t\t\t__('per year', 'wppa'));\t// 364 days\r\n\t\t\t\t\t\t\t$values = array( '0', '3600', '86400', '604800', '2592000', '31449600');\r\n\t\t\t\t\t\t\t$html .= wppa_select($slug, $options, $values);\r\n\t\t\t\t\t\t\twppa_setting(false, '5', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twppa_setting_subheader('C', '1', __('Search Albums and Photos related settings', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Search page', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Display the search results on page.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Select the page to be used to display search results. The page MUST contain %%wppa%% or [wppa][/wppa].', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('You may give it the title \"Search results\" or something alike.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('Or you ou may use the standard page on which you display the generic album.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_search_linkpage';\r\n\t\t\t\t\t\t\t$query = $wpdb->prepare(\"SELECT ID, post_title, post_content FROM \" . $wpdb->posts . \" WHERE post_type = 'page' AND post_status = 'publish' ORDER BY post_title ASC\");\r\n\t\t\t\t\t\t\t$pages = $wpdb->get_results ($query, 'ARRAY_A');\r\n\t\t\t\t\t\t\t$options = false;\r\n\t\t\t\t\t\t\t$values = false;\r\n\t\t\t\t\t\t\t$options[] = __('--- Please select a page ---', 'wppa');\r\n\t\t\t\t\t\t\t$values[] = '0';\r\n\t\t\t\t\t\t\tif ($pages) {\r\n\t\t\t\t\t\t\t\tforeach ($pages as $page) {\r\n\t\t\t\t\t\t\t\t\tif ( strpos($page['post_content'], '%%wppa%%') !== false || strpos($page['post_content'], '[wppa') !== false ) {\r\n\t\t\t\t\t\t\t\t\t\t$options[] = __($page['post_title']);\r\n\t\t\t\t\t\t\t\t\t\t$values[] = $page['ID'];\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t$options[] = '|'.__($page['post_title']).'|';\r\n\t\t\t\t\t\t\t\t\t\t$values[] = $page['ID'];\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}\r\n\t\t\t\t\t\t\t$html = wppa_select($slug, $options, $values, '', '', true);\r\n\t\t\t\t\t\t\twppa_setting(false, '1', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Exclude separate', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Do not search \\'separate\\' albums.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('When checked, albums (and photos in them) that have the parent set to --- separate --- will be excluded from being searched.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_excl_sep';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Photos only', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Search for photos only.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('When checked, only photos will be searched for.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_photos_only';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '3', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twppa_setting_subheader('D', '1', __('Watermark related settings', 'wppa'));\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Watermark', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Enable the application of watermarks.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked, photos can be watermarked during upload / import.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_watermark_on';\r\n\t\t\t\t\t\t\t$onchange = 'wppaCheckWatermark()';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug, $onchange);\r\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('User Watermark', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Uploading users may select watermark settings', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('If checked, anyone who can upload and/or import photos can overrule the default watermark settings.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_watermark_user';\r\n\t\t\t\t\t\t\t$class = 'wppa_watermark';\r\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\r\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Watermark file', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('The default watermarkfile to be used.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('Watermark files are of type png and reside in', 'wppa') . ' ' . WPPA_UPLOAD_URL . '/watermarks/');\r\n\t\t\t\t\t\t\t$help .= '\\n\\n'.esc_js(__('A suitable watermarkfile typically consists of a transparent background and a black text or drawing.', 'wppa'));\r\n\t\t\t\t\t\t\t$help .= '\\n'.esc_js(__('The watermark image will be overlaying the photo with 80% transparency.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_watermark_file';\r\n\t\t\t\t\t\t\t$class = 'wppa_watermark';\r\n\t\t\t\t\t\t\t$html = '<select style=\"float:left; font-size:11px; height:20px; margin:0 20px 0 0; padding:0; \" id=\"wppa_watermark_file\" onchange=\"wppaAjaxUpdateOptionValue(\\'wppa_watermark_file\\', this)\" >' . wppa_watermark_file_select('default') . '</select>';\r\n\t\t\t\t\t\t\t$html .= '<img id=\"img_wppa_watermark_file\" src=\"'.wppa_get_imgdir().'star.png\" title=\"'.__('Setting unmodified', 'wppa').'\" style=\"padding-left:4px; float:left; height:16px; width:16px;\" />';\r\n\t\t\t\t\t\t\t$html .= __('position:', 'wppa').'<select style=\"float:left; font-size:11px; height:20px; margin:0 0 0 20px; padding:0; \" id=\"wppa_watermark_pos\" onchange=\"wppaAjaxUpdateOptionValue(\\'wppa_watermark_pos\\', this)\" >' . wppa_watermark_pos_select('default') . '</select>';\r\n\t\t\t\t\t\t\t$html .= '<img id=\"img_wppa_watermark_pos\" src=\"'.wppa_get_imgdir().'star.png\" title=\"'.__('Setting unmodified', 'wppa').'\" style=\"padding-left:4px; float:left; height:16px; width:16px;\" />';\r\n\t\t\t\t\t\t\twppa_setting(false, '3', $name, $desc, $html, $help, $class);\r\n\t\t\r\n\t\t\t\t\t\t\t$name = __('Upload watermark', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('Upload a new watermark file', 'wppa');\r\n\t\t\t\t\t\t\t// $help = ''; SAME AS PREVIOUS\r\n\t\t\t\t\t\t\t$slug = 'wppa_watermark_upload';\r\n\t\t\t\t\t\t\t$html = '<input id=\"my_file_element\" type=\"file\" name=\"file_1\" style=\"float:left; height:18px; font-size: 11px;\" />';\r\n\t\t\t\t\t\t\t$html .= wppa_doit_button(__('Upload it!', 'wppa'), $slug);\r\n\t\t\t\t\t\t\twppa_setting(false, '4', $name, $desc, $html, $help, $class);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$name = __('Watermark opacity', 'wppa');\r\n\t\t\t\t\t\t\t$desc = __('You can set the intensity of watermarks here.', 'wppa');\r\n\t\t\t\t\t\t\t$help = esc_js(__('The higher the number, the intenser the watermark. Value must be > 0 and <= 100.', 'wppa'));\r\n\t\t\t\t\t\t\t$slug = 'wppa_watermark_opacity';\r\n\t\t\t\t\t\t\t$html = wppa_input($slug, '50px', '', '%');\r\n\t\t\t\t\t\t\twppa_setting($slug, '5', $name, $desc, $html, $help, $class);\r\n\n\t\t\t\t\t\t\twppa_setting_subheader('E', '1', __('Slideshow elements sequence order settings', 'wppa'));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$indexopt = get_option('wppa_slide_order');\r\n\t\t\t\t\t\t\t$indexes = explode(',', $indexopt);\r\n\t\t\t\t\t\t\t$names = array(\r\n\t\t\t\t\t\t\t\t__('StartStop', 'wppa'), \r\n\t\t\t\t\t\t\t\t__('SlideFrame', 'wppa'), \r\n\t\t\t\t\t\t\t\t__('NameDesc', 'wppa'), \r\n\t\t\t\t\t\t\t\t__('Custom', 'wppa'), \r\n\t\t\t\t\t\t\t\t__('Rating', 'wppa'), \r\n\t\t\t\t\t\t\t\t__('FilmStrip', 'wppa'), \r\n\t\t\t\t\t\t\t\t__('Browsebar', 'wppa'), \r\n\t\t\t\t\t\t\t\t__('Comments', 'wppa'),\r\n\t\t\t\t\t\t\t\t__('IPTC data', 'wppa'),\r\n\t\t\t\t\t\t\t\t__('EXIF data', 'wppa'));\r\n\t\t\t\t\t\t\t$enabled = '<span style=\"color:green; float:right;\">( '.__('Enabled', 'wppa');\r\n\t\t\t\t\t\t\t$disabled = '<span style=\"color:orange; float:right;\">( '.__('Disabled', 'wppa');\r\n\t\t\t\t\t\t\t$descs = array(\r\n\t\t\t\t\t\t\t\t__('Start/Stop & Slower/Faster navigation bar', 'wppa') . ( $wppa_opt['wppa_show_startstop_navigation'] == 'yes' ? $enabled : $disabled ) . ' II-B1 )</span>',\r\n\t\t\t\t\t\t\t\t__('The Slide Frame', 'wppa') . '<span style=\"float:right;\">'.__('( Always )', 'wppa').'</span>',\r\n\t\t\t\t\t\t\t\t__('Photo Name & Description Box', 'wppa') . ( ( $wppa_opt['wppa_show_full_name'] == 'yes' || $wppa_opt['wppa_show_full_desc'] == 'yes' ) ? $enabled : $disabled ) .' II-B5,6 )</span>',\r\n\t\t\t\t\t\t\t\t__('Custom Box', 'wppa') . ( $wppa_opt['wppa_custom_on'] == 'yes' ? $enabled : $disabled ).' II-B14 )</span>',\r\n\t\t\t\t\t\t\t\t__('Rating Bar', 'wppa') . ( $wppa_opt['wppa_rating_on'] == 'yes' ? $enabled : $disabled ).' II-B7 )</span>',\r\n\t\t\t\t\t\t\t\t__('Film Strip with embedded Start/Stop and Goto functionality', 'wppa') . ( $wppa_opt['wppa_filmstrip'] == 'yes' ? $enabled : $disabled ).' II-B3 )</span>',\r\n\t\t\t\t\t\t\t\t__('Browse Bar with Photo X of Y counter', 'wppa') . ( $wppa_opt['wppa_show_browse_navigation'] == 'yes' ? $enabled : $disabled ).' II-B2 )</span>',\r\n\t\t\t\t\t\t\t\t__('Comments Box', 'wppa') . ( $wppa_opt['wppa_show_comments'] == 'yes' ? $enabled : $disabled ).' II-B10 )</span>',\r\n\t\t\t\t\t\t\t\t__('IPTC box', 'wppa') . ( $wppa_opt['wppa_show_iptc'] == 'yes' ? $enabled : $disabled ).' II-B17 )</span>',\r\n\t\t\t\t\t\t\t\t__('EXIF box', 'wppa') . ( $wppa_opt['wppa_show_exif'] == 'yes' ? $enabled : $disabled ).' II-B18 )</span>'\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t$i = '0';\r\n\t\t\t\t\t\t\twhile ( $i < '10' ) {\r\n\t\t\t\t\t\t\t\t$name = $names[$indexes[$i]];\r\n\t\t\t\t\t\t\t\t$desc = $descs[$indexes[$i]];\r\n\t\t\t\t\t\t\t\t$html = $i == '0' ? '&nbsp;' : wppa_doit_button(__('Move Up', 'wppa'), 'wppa_moveup', $i);\r\n\t\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t\t$slug = 'wppa_slide_order';\r\n\t\t\t\t\t\t\t\twppa_setting($slug, $indexes[$i]+1 , $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\t$i++;\r\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$name = __('Swap Namedesc', 'wppa');\n\t\t\t\t\t\t\t$desc = __('Swap the order sequence of name and description', 'wppa');\n\t\t\t\t\t\t\t$help = '';\n\t\t\t\t\t\t\t$slug = 'wppa_swap_namedesc';\n\t\t\t\t\t\t\t$html = wppa_checkbox($slug);\n\t\t\t\t\t\t\twppa_setting($slug, '11', $name, $desc, $html, $help);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twppa_setting_subheader('F', '1', __('Other plugins settings', 'wppa'));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$name = __('Cube Points Comment', 'wppa');\n\t\t\t\t\t\t\t$desc = __('Number of points for a comment', 'wppa');\n\t\t\t\t\t\t\t$help = esc_js(__('This setting requires the plugin Cube Points', 'wppa'));\n\t\t\t\t\t\t\t$slug = 'wppa_cp_points_comment';\n\t\t\t\t\t\t\t$html = wppa_input($slug, '50px', '', __('points per comment', 'wppa'));\n\t\t\t\t\t\t\twppa_setting($slug, '1', $name, $desc, $html, $help);\n\n\t\t\t\t\t\t\t$name = __('Cube Points Rating', 'wppa');\n\t\t\t\t\t\t\t$desc = __('Number of points for a rating vote', 'wppa');\n\t\t\t\t\t\t\t$help = esc_js(__('This setting requires the plugin Cube Points', 'wppa'));\n\t\t\t\t\t\t\t$slug = 'wppa_cp_points_rating';\n\t\t\t\t\t\t\t$html = wppa_input($slug, '50px', '', __('points per vote', 'wppa'));\n\t\t\t\t\t\t\twppa_setting($slug, '2', $name, $desc, $html, $help);\n\n\t\t\t\t\t\t\t?>\t\t\r\n\t\t\t\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t\t<tfoot style=\"font-weight: bold;\" class=\"wppa_table_9\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Setting', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</tfoot>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\r\n\t\t\t\r\n\t\t\t<?php // Table 10: IPTC Configuration ?>\r\n\t\t\t<?php wppa_settings_box_header(\r\n\t\t\t\t'10',\r\n\t\t\t\t__('Table X:', 'wppa').' '.__('IPTC Configuration:', 'wppa').' '.\r\n\t\t\t\t__('This table defines the IPTC configuration', 'wppa')\r\n\t\t\t); ?>\r\n\t\t\t\r\n\t\t\t\t<div id=\"wppa_table_10\" style=\"display:none\" >\r\n\t\t\t\t\t<table class=\"widefat\">\r\n\t\t\t\t\t\t<thead style=\"font-weight: bold; \" class=\"wppa_table_10\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Tag', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Status', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<tbody class=\"wppa_table_10\">\r\n\t\t\t\t\t\t\t<?php\r\n\t\t\t\t\t\t\t$wppa_table = 'X';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$wppa_subtable = 'Z';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$labels = $wpdb->get_results($wpdb->prepare(\"SELECT * FROM `\".WPPA_IPTC.\"` WHERE `photo`='0' ORDER BY `tag`\"), 'ARRAY_A');\r\n\t\t\t\t\t\t\tif ( is_array( $labels ) ) {\r\n\t\t\t\t\t\t\t\t$i = '1';\r\n\t\t\t\t\t\t\t\tforeach ( $labels as $label ) {\r\n\t\t\t\t\t\t\t\t\t$name = $label['tag'];\r\n\t\t\t\t\t\t\t\t\t$desc = '';\r\n\t\t\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t\t\t$slug1 = 'wppa_iptc_label_'.$name;\r\n\t\t\t\t\t\t\t\t\t$slug2 = 'wppa_iptc_status_'.$name;\r\n\t\t\t\t\t\t\t\t\t$html1 = wppa_edit($slug1, $label['description']);\r\n\t\t\t\t\t\t\t\t\t$options = array(__('Display', 'wppa'), __('Hide', 'wppa'), __('Optional', 'wppa'));\r\n\t\t\t\t\t\t\t\t\t$values = array('display', 'hide', 'option');\r\n\t\t\t\t\t\t\t\t\t$html2 = wppa_select_e($slug2, $label['status'], $options, $values);\r\n\t\t\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\t\t\twppa_setting(false, $i, $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\t\t$i++;\r\n\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\r\n\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t\t<tfoot style=\"font-weight: bold;\" class=\"wppa_table_10\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Tag', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Status', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</tfoot>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\r\n\t\t\t\r\n\t\t\t<?php // Table 11: EXIF Configuration ?>\r\n\t\t\t<?php wppa_settings_box_header(\r\n\t\t\t\t'11',\r\n\t\t\t\t__('Table XI:', 'wppa').' '.__('EXIF Configuration:', 'wppa').' '.\r\n\t\t\t\t__('This table defines the EXIF configuration', 'wppa')\r\n\t\t\t); ?>\r\n\t\t\t\r\n\t\t\t\t<div id=\"wppa_table_11\" style=\"display:none\" >\r\n\t\t\t\t\t<table class=\"widefat\">\r\n\t\t\t\t\t\t<thead style=\"font-weight: bold; \" class=\"wppa_table_11\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Tag', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Status', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</thead>\r\n\t\t\t\t\t\t<tbody class=\"wppa_table_11\">\r\n\t\t\t\t\t\t\t<?php\r\n\t\t\t\t\t\t\t$wppa_table = 'XI';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$wppa_subtable = 'Z';\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$labels = $wpdb->get_results($wpdb->prepare(\"SELECT * FROM `\".WPPA_EXIF.\"` WHERE `photo`='0' ORDER BY `tag`\"), 'ARRAY_A');\r\n\t\t\t\t\t\t\tif ( is_array( $labels ) ) {\r\n\t\t\t\t\t\t\t\t$i = '1';\r\n\t\t\t\t\t\t\t\tforeach ( $labels as $label ) {\r\n\t\t\t\t\t\t\t\t\t$name = $label['tag'];\r\n\t\t\t\t\t\t\t\t\t$desc = '';\r\n\t\t\t\t\t\t\t\t\t$help = '';\r\n\t\t\t\t\t\t\t\t\t$slug1 = 'wppa_exif_label_'.$name;\r\n\t\t\t\t\t\t\t\t\t$slug2 = 'wppa_exif_status_'.$name;\r\n\t\t\t\t\t\t\t\t\t$html1 = wppa_edit($slug1, $label['description']);\r\n\t\t\t\t\t\t\t\t\t$options = array(__('Display', 'wppa'), __('Hide', 'wppa'), __('Optional', 'wppa'));\r\n\t\t\t\t\t\t\t\t\t$values = array('display', 'hide', 'option');\r\n\t\t\t\t\t\t\t\t\t$html2 = wppa_select_e($slug2, $label['status'], $options, $values);\r\n\t\t\t\t\t\t\t\t\t$html = array($html1, $html2);\r\n\t\t\t\t\t\t\t\t\twppa_setting(false, $i, $name, $desc, $html, $help);\r\n\t\t\t\t\t\t\t\t\t$i++;\r\n\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\r\n\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t\t<tfoot style=\"font-weight: bold;\" class=\"wppa_table_11\">\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('#', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Tag', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Status', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Help', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t</tfoot>\r\n\t\t\t\t\t</table>\r\n\t\t\t\t</div>\r\n\t\t\t\r\n\t\t\t<?php // Table 12: Php configuration ?>\r\n\t\t\t<?php wppa_settings_box_header(\r\n\t\t\t\t'12',\r\n\t\t\t\t__('Table XII:', 'wppa').' '.__('WPPA+ and PHP Configuration:', 'wppa').' '.\r\n\t\t\t\t__('This table lists all WPPA+ constants and PHP server configuration parameters and is read only', 'wppa')\r\n\t\t\t); ?>\r\n\t\t\t\r\n\t\t\t<?php\r\n\t\t\t$wppa_table = 'XII';\r\n\t\t\t$wppa_subtable = 'Z';\r\n\t\t\t?>\r\n\r\n\t\t\t\t<div id=\"wppa_table_12\" style=\"display:none\" >\r\n\t\t<!--\t\t<div class=\"wppa_table_12\" style=\"margin-top:20px; text-align:left; \">\t-->\r\n\t\t\t\t\t\t<table class=\"widefat\">\r\n\t\t\t\t\t\t\t<thead style=\"font-weight: bold; \" class=\"wppa_table_12\">\r\n\t\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Name', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Description', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t\t<th scope=\"col\"><?php _e('Value', 'wppa') ?></th>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t<tbody class=\"wppa_table_12\">\r\n\t\t\t\t\t\t\t\t<tr style=\"color:#333;\">\r\n\t\t\t\t\t\t\t\t\t<td>WPPA_ALBUMS</td>\r\n\t\t\t\t\t\t\t\t\t<td><small><?php _e('Albums db table name.', 'wppa') ?></small></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php echo($wpdb->prefix . 'wppa_albums') ?></td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr style=\"color:#333;\">\r\n\t\t\t\t\t\t\t\t\t<td>WPPA_PHOTOS</td>\r\n\t\t\t\t\t\t\t\t\t<td><small><?php _e('Photos db table name.', 'wppa') ?></small></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php echo(WPPA_PHOTOS) ?></td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr style=\"color:#333;\">\r\n\t\t\t\t\t\t\t\t\t<td>WPPA_RATING</td>\r\n\t\t\t\t\t\t\t\t\t<td><small><?php _e('Rating db table name.', 'wppa') ?></small></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php echo(WPPA_RATING) ?></td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr style=\"color:#333;\">\r\n\t\t\t\t\t\t\t\t\t<td>WPPA_COMMENTS</td>\r\n\t\t\t\t\t\t\t\t\t<td><small><?php _e('Comments db table name.', 'wppa') ?></small></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php echo(WPPA_COMMENTS) ?></td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr style=\"color:#333;\">\r\n\t\t\t\t\t\t\t\t\t<td>WPPA_IPTC</td>\r\n\t\t\t\t\t\t\t\t\t<td><small><?php _e('IPTC db table name.', 'wppa') ?></small></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php echo(WPPA_IPTC) ?></td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr style=\"color:#333;\">\r\n\t\t\t\t\t\t\t\t\t<td>WPPA_EXIF</td>\r\n\t\t\t\t\t\t\t\t\t<td><small><?php _e('EXIF db table name.', 'wppa') ?></small></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php echo(WPPA_EXIF) ?></td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr style=\"color:#333;\">\r\n\t\t\t\t\t\t\t\t\t<td>WPPA_FILE</td>\r\n\t\t\t\t\t\t\t\t\t<td><small><?php _e('Plugins main file name.', 'wppa') ?></small></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php echo(WPPA_FILE) ?></td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr style=\"color:#333;\">\r\n\t\t\t\t\t\t\t\t\t<td>WPPA_PATH</td>\r\n\t\t\t\t\t\t\t\t\t<td><small><?php _e('Path to plugins directory.', 'wppa') ?></small></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php echo(WPPA_PATH) ?></td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr style=\"color:#333;\">\r\n\t\t\t\t\t\t\t\t\t<td>WPPA_NAME</td>\r\n\t\t\t\t\t\t\t\t\t<td><small><?php _e('Plugins directory name.', 'wppa') ?></small></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php echo(WPPA_NAME) ?></td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr style=\"color:#333;\">\r\n\t\t\t\t\t\t\t\t\t<td>WPPA_URL</td>\r\n\t\t\t\t\t\t\t\t\t<td><small><?php _e('Plugins directory url.', 'wppa') ?></small></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php echo(WPPA_URL) ?></td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr style=\"color:#333;\">\r\n\t\t\t\t\t\t\t\t\t<td>WPPA_UPLOAD</td>\r\n\t\t\t\t\t\t\t\t\t<td><small><?php _e('The relative upload directory.', 'wppa') ?></small></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php echo(WPPA_UPLOAD) ?></td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr style=\"color:#333;\">\r\n\t\t\t\t\t\t\t\t\t<td>WPPA_UPLOAD_PATH</td>\r\n\t\t\t\t\t\t\t\t\t<td><small><?php _e('The upload directory path.', 'wppa') ?></small></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php echo(WPPA_UPLOAD_PATH) ?></td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr style=\"color:#333;\">\r\n\t\t\t\t\t\t\t\t\t<td>WPPA_UPLOAD_URL</td>\r\n\t\t\t\t\t\t\t\t\t<td><small><?php _e('The upload directory url.', 'wppa') ?></small></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php echo(WPPA_UPLOAD_URL) ?></td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr style=\"color:#333;\">\r\n\t\t\t\t\t\t\t\t\t<td>WPPA_DEPOT</td>\r\n\t\t\t\t\t\t\t\t\t<td><small><?php _e('The relative depot directory.', 'wppa') ?></small></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php echo(WPPA_DEPOT) ?></td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr style=\"color:#333;\">\r\n\t\t\t\t\t\t\t\t\t<td>WPPA_DEPOT_PATH</td>\r\n\t\t\t\t\t\t\t\t\t<td><small><?php _e('The depot directory path.', 'wppa') ?></small></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php echo(WPPA_DEPOT_PATH) ?></td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<tr style=\"color:#333;\">\r\n\t\t\t\t\t\t\t\t\t<td>WPPA_DEPOT_URL</td>\r\n\t\t\t\t\t\t\t\t\t<td><small><?php _e('The depot directory url.', 'wppa') ?></small></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php echo(WPPA_DEPOT_URL) ?></td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t</tbody>\r\n\t\t\t\t\t\t</table>\r\n\t\t\t\t\t\t<p>&nbsp;</p>\r\n\t\t\t\t\t\t<?php wppa_phpinfo() ?>\r\n\t\t<!--\t\t\t</div>-->\r\n\t\t\t\t</div>\r\n\r\n\t\t</form>\r\n\t\t<script type=\"text/javascript\">wppaInitSettings();wppaCheckInconsistencies();</script>\r\n\t</div>\r\n\t\r\n<?php\r\n}", "title": "" }, { "docid": "f86044249f6a56fa7b8e032d4498c840", "score": "0.6897658", "text": "public function addOptionsPage()\n {\n if (!function_exists('acf_add_options_page')) {\n return;\n }\n\n $option_page = acf_add_options_page(array(\n 'page_title' => __('Disturbances', 'api-alarm-integration'),\n 'menu_slug' => 'api-alarm-integration-disturbances',\n 'parent_slug' => 'tools.php'\n ));\n }", "title": "" }, { "docid": "134e2a1df8c9cdac84fda580f813ebdc", "score": "0.6886337", "text": "function wordstrap_admin_options_page() {\n ?>\n\n<div class=\"wrap\">\n\n<?php wordstrap_admin_options_page_tabs(); ?>\n<?php settings_errors(); ?>\n<?php if(isset($_GET['error']) && !empty($_GET['error'])) : ?>\n\t<div class=\"error\"><p><?php echo $_GET['error']; ?></p></div>\n<?php endif; ?>\n\n<form action=\"options.php\" method=\"post\">\n<?php\nsettings_fields('theme_wordstrap_options');\ndo_settings_sections('wordstrap');\n\n$tab = ( isset( $_GET['tab'] ) ? $_GET['tab'] : 'general' ); ?>\n\n<p><input name=\"theme_wordstrap_options[submit-<?php echo $tab; ?>]\" type=\"submit\" class=\"button-primary\" value=\"<?php esc_attr_e('Save Settings', 'wordstrap'); ?>\" /></p>\n\n</form>\n\n</div>\n\n <?php \n}", "title": "" }, { "docid": "d2f33fe4f568954dc0193225924e937f", "score": "0.6886126", "text": "function nfzohocrm_site_options_display_page() {\n \n\tglobal $nfzohocrm_site_options;\n \n\t\n\t?>\n\t<div class=\"wrap\">\n\t\t<?php screen_icon( 'options-general' );?>\n\t\t<h2><?php _e('Ninja Forms Zoho CRM Settings', 'ninja-forms-zoho-crm'); ?></h2>\n \n\t\t<form method=\"post\" action=\"options.php\" class=\"nfzohocrm_site_options_form\">\n\t\t \n<?php\n\t\tsettings_fields('nfzohocrm-site-options');\n\t\tdo_settings_sections('nfzohocrm-site-options-section');\n\n\t\techo nfzohocrm_output_comm_status();\n\t\t\n?>\n\n\t\t\t<p class=\"submit\">\n\t\t\t\t<input type=\"submit\" class=\"button-primary\" value=\"<?php _e( 'Save Options', 'ninja-forms-zoho-crm' ); ?>\" />\n\t\t\t</p>\t\t\t\n\t\t</form>\n\t</div><!--end .wrap-->\n\t<?php\n\t\n}", "title": "" }, { "docid": "c714b5f61d891c1f105e7c53f043ed4f", "score": "0.6884065", "text": "function qode_Theme_Options() {\n\t\tadd_action('admin_menu', array(&$this, 'qode_admin_menu'));\n\t\tadd_action('admin_init', array(&$this, 'register_qode_theme_settings'));\n\t}", "title": "" }, { "docid": "78d4bee0ba909b142697f8b1293fd6bf", "score": "0.68833476", "text": "public function settings_page() {\n\t\tadd_options_page(\n\t\t __( 'Ticket 6821 options', 'ticket-6821' ),\n\t\t __( 'Ticket 6821', 'ticket-6821' ),\n\t\t 'manage_options', 'ticket-6821-plugin', array( $this, 'plugin_options' )\n\t\t);\n\t}", "title": "" }, { "docid": "e6a99ceb44fe7a8731a01f0e805cc035", "score": "0.68733996", "text": "function pmprocc_admin_add_page() \n{\n\tadd_options_page('PMPro Constant Contact Options', 'PMPro Constant Contact', 'manage_options', 'pmprocc_options', 'pmprocc_options_page');\n}", "title": "" }, { "docid": "03002c116810f4d29cdb2acadb6e7b68", "score": "0.68720746", "text": "public function ckwppe_setup_admin()\n{\n add_options_page(__('Woo Controller Dashboard', CKWPPE_TEXT_DOMAIN) , __('Woo Controller', CKWPPE_TEXT_DOMAIN) , 'administrator', 'woo-controller-settings', array(\n $this,\n 'woo_controller_admin_page'\n ));\n}", "title": "" }, { "docid": "0a680e354b3e1d6f3690bec3fb99d54a", "score": "0.68660444", "text": "function pmp_options_page() {\n\tif (!current_user_can('manage_options'))\n\t\twp_die( __( 'You do not have sufficient permissions to access this page.' ) );\n\n\tpmp_render_template('settings.php');\n}", "title": "" }, { "docid": "0a680e354b3e1d6f3690bec3fb99d54a", "score": "0.68660444", "text": "function pmp_options_page() {\n\tif (!current_user_can('manage_options'))\n\t\twp_die( __( 'You do not have sufficient permissions to access this page.' ) );\n\n\tpmp_render_template('settings.php');\n}", "title": "" }, { "docid": "5a423ef7fff8a306269c5827401a48ec", "score": "0.6864342", "text": "function tnt_mbox_admin_actions() {\n\tadd_options_page(\"MBox Options\", \"MBox Options\", \"edit_pages\", \"tnt-mbox-options\", \"tnt_mbox_admin\");\n}", "title": "" }, { "docid": "8fb9f61753dd4de880a1099f147b5fbc", "score": "0.68635654", "text": "function gallery_options_page() {\r\n\tadd_options_page('Optimized Content Gallery Options', 'Optimized Content Gallery', 10, 'Optimized-content-gallery/options.php');\r\n}", "title": "" }, { "docid": "b71e4c068ed2cb658ed8a2a28d97e879", "score": "0.68601614", "text": "function qode_admin_menu() {\n\t\t$this->init_qode_theme_options();\n\t\t//Add the Qode options page to the Themes' menu\n\t\t$this->pagehook = add_menu_page('Qode Theme', esc_html__('Qode', 'qode'), 'manage_options', 'qode_options_central_page', array(&$this, 'qode_generate_options_page'));\n\t\tadd_action('load-'.$this->pagehook, array(&$this, 'on_load_page'));\n\t}", "title": "" }, { "docid": "700e01874ba6403b08598529375ee6cc", "score": "0.68546575", "text": "public function display_plugin_admin_page() {\n\n include_once $this->plugin->plugin_path . '/views/admin-options.php';\n\n }", "title": "" }, { "docid": "c3e59c087eec6585ea08b531df5d11cb", "score": "0.6848832", "text": "public function options_page() {\n\t\tadd_options_page(\n\t\t\t__( 'Google Cloud Storage Upload', 'gcs-upload' ),\n\t\t\t__( 'GCS Upload', 'gcs-upload' ),\n\t\t\t'manage_options',\n\t\t\t'gcs-upload',\n\t\t\tarray( $this, 'options_page_view' )\n\t\t);\n\t}", "title": "" }, { "docid": "3ed64874baca1bd13fc20cc24600a962", "score": "0.6848742", "text": "function realanswers_admin_addpage() {\r\n\r\n $realanswers_insert_java = add_options_page('RealAnswers', 'RealAnswers', 8, 'realanswers_admin.php', 'realanswers_admin');\r\n //print javascript in sb-insertcodes sub menu page only\r\n add_action(\"admin_print_scripts-$realanswers_insert_java\", \"hook_realanswers_autocompleter\");\r\n\r\n}", "title": "" }, { "docid": "95d916874bf5cff9a0f57f94cd6b313b", "score": "0.6848581", "text": "public function admin_options()\n {\n // Make sure to empty the log file if not in test mode.\n if ($this->settings['testmode'] != 'yes') {\n $this->log('');\n $this->log('', true);\n }\n\n ?>\n <h3><?php _e('Touch Payments', 'woothemes'); ?></h3>\n <p><?php printf(\n __(\n 'The customer will be redirected to %sTouch Payments%s to complete the checkout process.',\n 'woothemes'\n ),\n '<a href=\"http://touchpayments.com.au/\">',\n '</a>'\n ); ?></p>\n\n <?php\n if ('AUD' == get_option('woocommerce_currency')) {\n ?>\n <table class=\"form-table\"><?php\n // Generate the HTML For the settings form.\n $this->generate_settings_html();\n ?></table><!--/.form-table--><?php\n } else {\n ?>\n <div class=\"inline error\"><p><strong><?php _e(\n 'Gateway Disabled',\n 'woothemes'\n ); ?></strong> <?php echo sprintf(\n __(\n 'Choose Australian Dollars as your store currency in <a href=\"%s\">Pricing Options</a> to enable the Touch Payments Gateway.',\n 'woocommerce'\n ),\n admin_url('?page=woocommerce&tab=catalog')\n ); ?></p></div>\n <?php\n } // End check currency\n ?>\n <?php\n }", "title": "" }, { "docid": "034f9ee0290e4242db1a5dac9e27adf9", "score": "0.68461704", "text": "public function admin_menu() {\t\t\r\n\t\t// add option in admin menu,\r\n\t\tglobal $simple_slider_admin_page;\r\n\t\t$simple_slider_admin_page = add_options_page('Simple Slider Plugin Options', 'Simple Slider', 8, __FILE__, array(&$this, 'optionsPage'));\r\n\r\n\t\tadd_action('admin_print_styles-' . $simple_slider_admin_page, array(&$this, 'installStyles'));\r\n\t\tadd_action('admin_print_scripts-' . $simple_slider_admin_page, array(&$this, 'loadScripts'));\r\n\t}", "title": "" }, { "docid": "283153dc15e71715c39791de72be94a0", "score": "0.6843227", "text": "function themeblvd_options($info, $shortname, $themename, $options) {\n\n $this->info = $info;\n $this->shortname = $shortname;\n $this->themename = $themename;\n $this->options = $options;\n\n //Run everything and finalize options page\n add_action('admin_menu', array(&$this, 'add_admin_menu'));\n\n }", "title": "" }, { "docid": "461ad6cd4dddf8f0dae42403e827c3f1", "score": "0.6843187", "text": "public function admin_page() {\n\n\t\t$this->load_fields();\n\n\t\t// Create admin page.\n\t\tadd_menu_page(\n\t\t\tesc_html__( 'Theme Settings', 'basel' ),\n\t\t\tesc_html__( 'Theme Settings', 'basel' ),\n\t\t\t'manage_options',\n\t\t\t'xtemos_options',\n\t\t\tarray( &$this, 'page_content' ),\n\t\t\tBASEL_ASSETS . '/images/theme-admin-icon.svg',\n\t\t\t61\n\t\t);\n\t\tforeach ( $this->_sections as $key => $section ) {\n\t\t\tif ( isset( $section['parent'] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tadd_submenu_page(\n\t\t\t\t'xtemos_options',\n\t\t\t\t$section['name'],\n\t\t\t\t$section['name'],\n\t\t\t\t'manage_options',\n\t\t\t\t'xtemos_options&tab=' . $key,\n\t\t\t\tarray( &$this, 'page_content' )\n\t\t\t);\n\t\t}\n\t\tremove_submenu_page( 'xtemos_options', 'xtemos_options' );\n\t}", "title": "" }, { "docid": "4d7f847b69fadb6ff53e9c397956d5b5", "score": "0.6839815", "text": "public function adminMenus() {\n\t\tadd_theme_page(__('Theme Options', 'rockharbor'), __('Theme Options', 'rockharbor'), 'edit_theme_options', 'theme_options', array($this, 'admin'));\n\t}", "title": "" }, { "docid": "e882d7f9e482e23cd2aa7ae0a900a36e", "score": "0.6839006", "text": "function wordstrap_menu_options() {\n add_theme_page(\"WordStrap Options\", \"WordStrap Options\", 'edit_theme_options', 'wordstrap-options', 'wordstrap_admin_options_page');\n}", "title": "" }, { "docid": "3c5549297e5c1e2535860c32314986e9", "score": "0.683848", "text": "function admin_menu(){\r\n\t\tif (function_exists('add_options_page')) {\r\n\t\t\tadd_options_page(__('WP-Alp', 'alp'),\r\n\t\t\t \t__('WP-Alp', 'alp'),\r\n\t\t\t\t 10,\r\n\t\t\t \tbasename ($this->dir()),\r\n\t\t\t \tarray (&$this, 'renderView')\r\n\t\t\t );\r\n\t\t}\r\n\t}", "title": "" } ]
7d5b7bcef761db790e5d6cfc6462f043
Get the PDF value of this action.
[ { "docid": "17fa0e75fe76ca55b2ce64b76270ea55", "score": "0.78988975", "text": "public function getPdfValue() {}", "title": "" } ]
[ { "docid": "4d662058de9cfe53b1b67e5ed8b89352", "score": "0.6438082", "text": "function pdfValue(\\Jazzee\\Entity\\Answer $answer, \\Jazzee\\ApplicantPDF $pdf);", "title": "" }, { "docid": "e5f5f5d11e5e850d99f994aac0f97f36", "score": "0.6268792", "text": "public function pdf($value) {\n return $this->setProperty('pdf', $value);\n }", "title": "" }, { "docid": "d550f410ea4c2ed1c818d81c8c77ea49", "score": "0.62238544", "text": "public function getFilePdf(): string\n {\n return (string) $this->filePdf;\n }", "title": "" }, { "docid": "ad0207c64d2193c66868450ab76af6e5", "score": "0.5957344", "text": "public function getValue()\n {\n return $this->segment->value;\n }", "title": "" }, { "docid": "55e49a032f55ef4f7b257ae35fc40ff0", "score": "0.59397995", "text": "public function getPage()\n {\n return $this->pdf->getPage();\n }", "title": "" }, { "docid": "666ae553615b7234244f48cda9c6f471", "score": "0.5936427", "text": "public function getCheminPDF() {\n\t\treturn $this->chemin_pdf;\n\t}", "title": "" }, { "docid": "78470a6e6a56706068f9887b15575f12", "score": "0.5804668", "text": "function getPdfLink() {\n\t\treturn $this->_PdfLink;\n\t}", "title": "" }, { "docid": "893e48e42b677ebb49f74d03f3c97a2a", "score": "0.5764844", "text": "public function getExportValue()\n {\n return $this->Value;\n }", "title": "" }, { "docid": "cfb1550c4e03599963a86c57da57ceb8", "score": "0.5697299", "text": "public function getValue()\n {\n return $this->getParameter('value');\n }", "title": "" }, { "docid": "cfb1550c4e03599963a86c57da57ceb8", "score": "0.5697299", "text": "public function getValue()\n {\n return $this->getParameter('value');\n }", "title": "" }, { "docid": "54c9eb0f6dfdd4751b4b5d76cf7d708a", "score": "0.56274575", "text": "public function getPdfType()\n {\n return $this->pdfType;\n }", "title": "" }, { "docid": "7ae7443a34cb33f3f09e43fd1c0729d5", "score": "0.5613556", "text": "public function getPdfContent();", "title": "" }, { "docid": "a6d910d85ae01921e9587ca48b0020f2", "score": "0.5589943", "text": "function getValue() { return $this->readText(); }", "title": "" }, { "docid": "cc2843ca963608236e6814bf68ee5ba9", "score": "0.5582525", "text": "protected function getPropertyValue(/**\n * If a confirmation page is set and a fileupload was done before\n * there is no incoming data if the process action is called.\n * The data is only in the session at this time.\n * This results in a negative validation (if a validation is set).\n * Therefore, look first in the session.\n */\n\\TYPO3\\CMS\\Form\\Domain\\Model\\ValidationElement $validationElement, /**\n * If a confirmation page is set and a fileupload was done before\n * there is no incoming data if the process action is called.\n * The data is only in the session at this time.\n * This results in a negative validation (if a validation is set).\n * Therefore, look first in the session.\n */\n$propertyName) {}", "title": "" }, { "docid": "09b998c2fd1f243e6d6253ef75ac2b2d", "score": "0.55804014", "text": "public function value()\n {\n return $this->getValue();\n }", "title": "" }, { "docid": "1a4166a029b58f552b9232a0c5528641", "score": "0.5539951", "text": "public function value()\n {\n if ($this->is_previewed) {\n $value = $this->post_value();\n } else {\n $mod = $this->getRealMod();\n $value = get_theme_mod($mod, false);\n }\n\n return $value;\n }", "title": "" }, { "docid": "0b998a386f131ed621ba0c03ca6c3800", "score": "0.55394405", "text": "public function getPdfDocument(): ?string\n {\n return isset($this->PdfDocument) ? $this->PdfDocument : null;\n }", "title": "" }, { "docid": "73180f15c25d953b506575337aa9adf9", "score": "0.5537438", "text": "public function getValue()\n {\n if (is_array($this->value)) {\n if (0 == count($this->value)) {\n return;\n } elseif (1 === count($this->value)) {\n return $this->value[0];\n } else {\n return $this->getRawMimeDirValue();\n }\n } else {\n return $this->value;\n }\n }", "title": "" }, { "docid": "fd4ace7cb09e6dcf2c69acb039ccd7c2", "score": "0.5529643", "text": "public function value ()\n {\n return $this->context->storage->value ($this->name);\n }", "title": "" }, { "docid": "ad248d679803c0719874ab357a9f67f4", "score": "0.55211973", "text": "public function getFilename()\n {\n return $this->filename . '.pdf';\n }", "title": "" }, { "docid": "983bd671e131893ae10a8a6e003a98ab", "score": "0.5487846", "text": "public function getPdf(): array\n {\n return (array) $this->pdf;\n }", "title": "" }, { "docid": "9cd534847cfce8e729c84e0ab09d28dc", "score": "0.5471212", "text": "function getValue() { return $this->readText(); }", "title": "" }, { "docid": "ca1d218b18eb3eb9b2d1e0c27160a1ad", "score": "0.5459574", "text": "public function getViewValue()\n {\n return Page::get()->byID((int) $this->owner->Value);\n }", "title": "" }, { "docid": "e87c2254957f9cb51631b579c7b49cee", "score": "0.54550564", "text": "function act() {\n return $this->value;\n }", "title": "" }, { "docid": "d21fae4f0a6e547012fabee574f20fa0", "score": "0.5439014", "text": "public function get()\n {\n return $this->_sPath->getValue();\n }", "title": "" }, { "docid": "8e7de92d558ecc53c4cc9273af656d00", "score": "0.5437146", "text": "public function getValue() {\n\t\treturn $this->data[\"value\"];\n\t}", "title": "" }, { "docid": "87ef89df7d3a51446f7369b19fa1edc3", "score": "0.54200387", "text": "public function getValue()\n {\n return $this->checked;\n }", "title": "" }, { "docid": "bfd588f1a06ab89cb34f443a1dfd4eee", "score": "0.54112566", "text": "public function getValue()\n\t{\n\t\treturn $this->data['value'];\n\t}", "title": "" }, { "docid": "be4a2f06c43e9f4bcd8509c0a9f1dede", "score": "0.53937095", "text": "public function getValue() {\n return $this->attributes['value'];\n }", "title": "" }, { "docid": "4171ba36acd10e0a11f50a46fdd5f589", "score": "0.5362921", "text": "public function getPermissionValue()\n {\n if (array_key_exists(\"permissionValue\", $this->_propDict)) {\n return $this->_propDict[\"permissionValue\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "48c24fd79c08a9a3d042069b64eeca75", "score": "0.536092", "text": "public function value()\n {\n return $this->value;\n }", "title": "" }, { "docid": "48c24fd79c08a9a3d042069b64eeca75", "score": "0.536092", "text": "public function value()\n {\n return $this->value;\n }", "title": "" }, { "docid": "48c24fd79c08a9a3d042069b64eeca75", "score": "0.536092", "text": "public function value()\n {\n return $this->value;\n }", "title": "" }, { "docid": "48c24fd79c08a9a3d042069b64eeca75", "score": "0.536092", "text": "public function value()\n {\n return $this->value;\n }", "title": "" }, { "docid": "48c24fd79c08a9a3d042069b64eeca75", "score": "0.536092", "text": "public function value()\n {\n return $this->value;\n }", "title": "" }, { "docid": "48c24fd79c08a9a3d042069b64eeca75", "score": "0.536092", "text": "public function value()\n {\n return $this->value;\n }", "title": "" }, { "docid": "6a3b30a45d9b6d1ac5a108af5d786d24", "score": "0.53506386", "text": "public function getValue()\n {\n return $this->_fields['Value']['FieldValue'];\n }", "title": "" }, { "docid": "1e368c9fb0cf8ec4d10e5a6315607c13", "score": "0.53473276", "text": "function getValue()\n {\n return $this->getAttribute(\"value\");\n }", "title": "" }, { "docid": "deb98c5d8381e747df1e00c14499a0a3", "score": "0.5341886", "text": "public function getPdfVersion() {}", "title": "" }, { "docid": "deb98c5d8381e747df1e00c14499a0a3", "score": "0.5341886", "text": "public function getPdfVersion() {}", "title": "" }, { "docid": "deb98c5d8381e747df1e00c14499a0a3", "score": "0.5341886", "text": "public function getPdfVersion() {}", "title": "" }, { "docid": "91c5cd87d31ffc9abc0254094482c46d", "score": "0.5331016", "text": "public function getValue() {\n\t\treturn $this->value;\n\t}", "title": "" }, { "docid": "91c5cd87d31ffc9abc0254094482c46d", "score": "0.5331016", "text": "public function getValue() {\n\t\treturn $this->value;\n\t}", "title": "" }, { "docid": "91c5cd87d31ffc9abc0254094482c46d", "score": "0.5331016", "text": "public function getValue() {\n\t\treturn $this->value;\n\t}", "title": "" }, { "docid": "91c5cd87d31ffc9abc0254094482c46d", "score": "0.5331016", "text": "public function getValue() {\n\t\treturn $this->value;\n\t}", "title": "" }, { "docid": "91c5cd87d31ffc9abc0254094482c46d", "score": "0.5331016", "text": "public function getValue() {\n\t\treturn $this->value;\n\t}", "title": "" }, { "docid": "91c5cd87d31ffc9abc0254094482c46d", "score": "0.5331016", "text": "public function getValue() {\n\t\treturn $this->value;\n\t}", "title": "" }, { "docid": "43df243d0a8f0d334343a07876921c44", "score": "0.5330123", "text": "public function getOwnerPdfDocument() {}", "title": "" }, { "docid": "43df243d0a8f0d334343a07876921c44", "score": "0.5330123", "text": "public function getOwnerPdfDocument() {}", "title": "" }, { "docid": "43df243d0a8f0d334343a07876921c44", "score": "0.532885", "text": "public function getOwnerPdfDocument() {}", "title": "" }, { "docid": "43df243d0a8f0d334343a07876921c44", "score": "0.532885", "text": "public function getOwnerPdfDocument() {}", "title": "" }, { "docid": "1c4d41118c77c383cf759d378ca78b2b", "score": "0.53263336", "text": "public function getValue() {\n return $this->value;\n }", "title": "" }, { "docid": "1c4d41118c77c383cf759d378ca78b2b", "score": "0.53263336", "text": "public function getValue() {\n return $this->value;\n }", "title": "" }, { "docid": "1c4d41118c77c383cf759d378ca78b2b", "score": "0.53263336", "text": "public function getValue() {\n return $this->value;\n }", "title": "" }, { "docid": "1c4d41118c77c383cf759d378ca78b2b", "score": "0.53263336", "text": "public function getValue() {\n return $this->value;\n }", "title": "" }, { "docid": "1c4d41118c77c383cf759d378ca78b2b", "score": "0.53263336", "text": "public function getValue() {\n return $this->value;\n }", "title": "" }, { "docid": "1c4d41118c77c383cf759d378ca78b2b", "score": "0.53263336", "text": "public function getValue() {\n return $this->value;\n }", "title": "" }, { "docid": "abd562cf0cde802d4082053ed8040426", "score": "0.5324542", "text": "public function get_value() {\n return $this->value;\n }", "title": "" }, { "docid": "822133661cd4dd580b6d10147906fde1", "score": "0.5323442", "text": "public function getValue()\n {\n return isset($this->value) ? $this->value : '';\n }", "title": "" }, { "docid": "822133661cd4dd580b6d10147906fde1", "score": "0.5323442", "text": "public function getValue()\n {\n return isset($this->value) ? $this->value : '';\n }", "title": "" }, { "docid": "362e2baee5c71a38218160202f8e3458", "score": "0.5322042", "text": "public function getValue() {\n return $this->_value;\n }", "title": "" }, { "docid": "bd973914c5747df7f69f101c9919f5fb", "score": "0.5321321", "text": "public function getValue() {\n return $this->value;\n }", "title": "" }, { "docid": "bd973914c5747df7f69f101c9919f5fb", "score": "0.5321321", "text": "public function getValue() {\n return $this->value;\n }", "title": "" }, { "docid": "bd973914c5747df7f69f101c9919f5fb", "score": "0.5321321", "text": "public function getValue() {\n return $this->value;\n }", "title": "" }, { "docid": "b82cc27ac5d21cf085b1a233657bdfcc", "score": "0.5321124", "text": "function getValue()\n\t{\n\t\treturn $this->value;\n\t}", "title": "" }, { "docid": "b82cc27ac5d21cf085b1a233657bdfcc", "score": "0.5321124", "text": "function getValue()\n\t{\n\t\treturn $this->value;\n\t}", "title": "" }, { "docid": "650403a345591ced84382039488ba705", "score": "0.5316526", "text": "final public function value()\n {\n return $this->value;\n }", "title": "" }, { "docid": "193a527a36aee55de0f32fa861b59a59", "score": "0.5312862", "text": "public function getFieldValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "2d67f799b0e85fcbf3765b09e36dfb69", "score": "0.5312777", "text": "public function value(): string\n {\n return $this->get('value');\n }", "title": "" }, { "docid": "2e33eb10665874078bc8f9cd248b0201", "score": "0.5307905", "text": "protected function getValue() {\r\n return $this->_value;\r\n }", "title": "" }, { "docid": "852c59f397aa4c5806fbeb8448840cea", "score": "0.53003395", "text": "function getValue() {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" }, { "docid": "d19c892768879698205ccf57f4ce7177", "score": "0.5295152", "text": "public function getValue()\n {\n return $this->value;\n }", "title": "" } ]
6680506fe619298c8d8c9ee29d29039a
Definicion de variables para ejecucion del procedimiento
[ { "docid": "be496409ea4ec5b01b1d8e523bb741c1", "score": "0.0", "text": "function insertarArchivoSensor(){\n\t\t$this->procedimiento='hidro.f_thd_archivo_sensor_ime';\n\t\t$this->transaccion='HD_ARSEN_INS';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_sensor','id_sensor','int4');\n\t\t$this->setParametro('orden','orden','int4');\n\t\t$this->setParametro('id_tipo_archivo','id_tipo_archivo','int4');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('nombre_col_file','nombre_col_file','varchar');\n\t\t$this->setParametro('orden_col_fecha','orden_col_fecha','int4');\n\t\t$this->setParametro('nombre_col_fecha','nombre_col_fecha','varchar');\n\t\t$this->setParametro('orden_col_hora','orden_col_hora','int4');\n\t\t$this->setParametro('nombre_col_hora','nombre_col_hora','varchar');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" } ]
[ { "docid": "3553a0a9b03e8a6684ceaf1fa9876063", "score": "0.6737833", "text": "function procesarVariables() {\r\n $propiedades = get_object_vars($this->data);\r\n foreach ($propiedades as $k => $value) {\r\n $this->$k = $this->data->$k;\r\n }\r\n }", "title": "" }, { "docid": "84f6e14f1cab8f9afd650f15e5b3c776", "score": "0.67038935", "text": "public function setup_variables() {\n\n\t}", "title": "" }, { "docid": "882484f78f404cb57e30b11e48cda2b0", "score": "0.64408636", "text": "public function __construct()\n {\n $this->_set_variables();\n }", "title": "" }, { "docid": "5db92f2d1d8720deec555e4bb4c6bfe3", "score": "0.6411298", "text": "public function initVars()\n {\n $this->listaCarreras = carrera::getListacarrera();\n $this->listaEstudiantes = ModelosEstudiantes::getListaestudiantes();\n $this->setVar('listaEstudiantes', $this->listaEstudiantes);\n $this->setVar('listaCarreras', $this->listaCarreras);\n }", "title": "" }, { "docid": "d74ff2200f6c28e7e27c1998be8daa65", "score": "0.63515496", "text": "public function __construct() {\n $conf= CargaConfiguracion::getInstance('');\n clNavegacion::cargaParametros();\n }", "title": "" }, { "docid": "efae390e65da2a502f8ebba83a619917", "score": "0.63315064", "text": "public function setVariables(){\n\t\t// Initial sample storage data\n\t\t$this->input = array(\n\t\t\t\n\t\t\t'unit-of-issue' => '100mgs',\n\t\t\t'description' => 'issued in 100mg sachets',\n\t\t\t\n\t\t\t\n\t\t);\n\n\t\t// Edition sample data\n\t\t$this->inputUpdate = array(\n\t\t\t\n\t\t\t'unit-of-issue' => '100mgs',\n\t\t\t'description' => 'issued in 100mg sachets',\n\t\t\t\t\t\t\n\t\t);\n\t}", "title": "" }, { "docid": "0b98a175f384ad1c028cf72cf4f8efa7", "score": "0.62726384", "text": "public function setVariables(){\n\t\t// Initial sample storage data\n\t\t$this->input = array(\n\t\t\t\n\t\t\t'name' => 'gloves',\n\t\t\t'description' => 'large size',\n\t\t\t'unit_of_issue' => '1',\n\t\t\t'unit_price' => '250.00',\n\t\t\t'item_code' => '7883',\n\t\t\t'storage_req' => 'dry place',\n\t\t\t'min_level' => '100',\n\t\t\t'max_level' => '5000',\n\t\t\t\n\t\t);\n\n\t\t// Edition sample data\n\t\t$this->inputUpdate = array(\n\t\t\t\n\t\t\t'name' => 'gloves',\n\t\t\t'description' => 'large size',\n\t\t\t'unit_of_issue' => '1',\n\t\t\t'unit_price' => '250.00',\n\t\t\t'item_code' => '7883',\n\t\t\t'storage_req' => 'dry place',\n\t\t\t'min_level' => '100',\n\t\t\t'max_level' => '5000',\n\t\t\t\t\t\t\n\t\t);\n\t}", "title": "" }, { "docid": "6e82aff3ab7947238e45b84dcf2d425e", "score": "0.6223233", "text": "private function inicializarParametros() {\r\n\r\n //Verifica se os parametro existem, senão iniciliza todos\r\n\t\t$this->view->parametros->dataInicial = isset($this->view->parametros->dataInicial) ? $this->view->parametros->dataInicial : \"\" ;\r\n $this->view->parametros->dataFinal = isset($this->view->parametros->dataFinal) ? $this->view->parametros->dataFinal : \"\" ;\r\n\r\n }", "title": "" }, { "docid": "6c184f583661eecb8dbe781e95477b78", "score": "0.6185425", "text": "function cl_proced() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"proced\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "1b41d6a4864f8877c041f0c44724b06d", "score": "0.6177132", "text": "function formPasoVariables() {\n $esteBloque = $this->miConfigurador->getVariableConfiguracion(\"esteBloque\");\n // ------------------- SECCION: Paso de variables ------------------------------------------------\n\n /**\n * En algunas ocasiones es útil pasar variables entre las diferentes páginas. SARA permite realizar esto a través de tres\n * mecanismos:\n * (a). Registrando las variables como variables de sesión. Estarán disponibles durante toda la sesión de usuario. Requiere acceso a\n * la base de datos.\n * (b). Incluirlas de manera codificada como campos de los formularios. Para ello se utiliza un campo especial denominado\n * formsara, cuyo valor será una cadena codificada que contiene las variables.\n * (c) a través de campos ocultos en los formularios. (deprecated)\n */\n //En este formulario se utiliza el mecanismo (b) para pasar las siguientes variables:\n // Paso 1: crear el listado de variables\n\n $valorCodificado = \"idUsario=\" . $esteBloque [\"grupo\"];\n /**\n * SARA permite que los nombres de los campos sean dinámicos. Para ello utiliza la hora en que es creado el formulario para\n * codificar el nombre de cada campo. Si se utiliza esta técnica es necesario pasar dicho tiempo como una variable:\n * (a) invocando a la variable $_REQUEST ['tiempo'] que se ha declarado en ready.php o\n * (b) asociando el tiempo en que se está creando el formulario\n */\n $valorCodificado .= \"&tiempo=\" . time();\n //Paso 2: codificar la cadena resultante\n $valorCodificado = $this->miConfigurador->fabricaConexiones->crypto->codificar($valorCodificado);\n\n\n $atributos [\"id\"] = \"formSaraData\"; // No cambiar este nombre\n $atributos [\"tipo\"] = \"hidden\";\n $atributos ['estilo'] = '';\n $atributos [\"obligatorio\"] = false;\n $atributos ['marco'] = true;\n $atributos [\"etiqueta\"] = \"\";\n $atributos [\"valor\"] = $valorCodificado;\n echo $this->miFormulario->campoCuadroTexto($atributos);\n unset($atributos);\n\n // ----------------FIN SECCION: Paso de variables -------------------------------------------------\n }", "title": "" }, { "docid": "621a6bd55c82b20b87fded873cd72f6b", "score": "0.61476845", "text": "function cl_empageconfche() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"empageconfche\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "51d4a2944fb7f1afcfbb8def11dea4aa", "score": "0.6137017", "text": "public function __construct() {\n // On met en place l'accès à la variable globale\n global $Extra;\n // On créé la référence\n $this->Extra = $Extra;\n }", "title": "" }, { "docid": "b1f7b303e6c5d09375af450bcda6787d", "score": "0.6135109", "text": "function cl_proctransferworkflowativexec() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"proctransferworkflowativexec\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "5a379c7022806a16baadb377361e919f", "score": "0.6101318", "text": "function inicializar_vars() {\n\tglobal $nombre, $dni, $localidad;\t\t\n $nombre=$dni=$localidad=\"\"; \n}", "title": "" }, { "docid": "6415722395fd67513a1f58c4d4c6a7a5", "score": "0.6096164", "text": "static public function obterPotencia(){\n \n \n \n }", "title": "" }, { "docid": "88b030ec05ee12c69e2bb6dae1e35bdd", "score": "0.6068011", "text": "function asignar_valores(){\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->cuenta=$_POST['cuenta'];\n\t\t$this->numero=$_POST['numero'];\n\t\t$this->titular=$_POST['titular'];\n\t\t$this->rif=$_POST['rif'];\n\t}", "title": "" }, { "docid": "0685a7f52d1cf211c1050e23d9d60439", "score": "0.60618263", "text": "function cl_processoforo() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"processoforo\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "48e714620d5c895a68e289b345fde962", "score": "0.6057829", "text": "protected function varSetup(){\n \t//Setup ID\n\t\t$this->setID($this->getInputString(\"id\", -1, \"G\"));\n\t\t\n\t\t//Set Page request\n\t\t$this->setPageRequest($this->getInputString(\"page\", \"\", \"G\")); \n }", "title": "" }, { "docid": "ca9eb22bfbbc7ac8ec3027895d497738", "score": "0.6038537", "text": "public function __construct()\n {\n /*\n * Define variables as array\n */\n $this->vars = array();\n }", "title": "" }, { "docid": "4fc9ba067680923644c580c5bdecd297", "score": "0.60216767", "text": "public function init_variables(){\n parent::init_variables();\n //if you want to force any variables put it after the parent function\n }", "title": "" }, { "docid": "d066ddf36c9865ae3656fbee1432ebe6", "score": "0.60165715", "text": "private function __construct()\n {\n $this->variables = [];\n }", "title": "" }, { "docid": "0fabaa4d8f5c475fba9112cd564f144b", "score": "0.5966659", "text": "function getParams()\n {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source = $data_source;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "title": "" }, { "docid": "0fabaa4d8f5c475fba9112cd564f144b", "score": "0.5966659", "text": "function getParams()\n {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source = $data_source;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "title": "" }, { "docid": "fdd33e65ca4b5af9dd0722852d91d0b1", "score": "0.59634316", "text": "protected function initVars() {\n\t\t\t$this->auth \t\t\t= 0;\n\t\t\t$this->acct \t\t\t= 0;\n\t\t\t$this->tipo_conta\t\t= \"\";\n\t\t\t\n\t\t\t$this->rc \t\t\t\t= 0;\n\t\t\t$this->rcup \t\t\t= 0;\n\t\t\t$this->rcdown \t\t\t= 0;\n\t\t\t\n\t\t\t$this->username \t\t= \"\";\n\t\t\t$this->password \t\t= \"\";\n\t\t\t$this->foneinfo \t\t= \"\";\n\t\t\t\n\t\t\t$this->entrada \t\t\t= 0;\n\t\t\t$this->saida \t\t\t= 0;\n\t\t\t$this->session \t\t\t= \"\";\n\t\t\t$this->bytes_in\t\t \t= \"\";\n\t\t\t$this->bytes_out \t\t= \"\";\n\t\t\t$this->nas \t\t\t\t= \"\";\n\t\t\t$this->ip_addr \t\t\t= \"\";\n\t\t\t$this->tempo \t\t\t= \"\";\n\t\t\t$this->terminate_cause \t= \"\";\n\t\t\n\t\t}", "title": "" }, { "docid": "9615e623b49b14f6d702035fa67dcdf3", "score": "0.5961997", "text": "function cl_procjur() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"procjur\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "30800dfca813a4433cd63302792bdc40", "score": "0.5949367", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "30800dfca813a4433cd63302792bdc40", "score": "0.5949367", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "3a07e501c5cf9e3e2b78d5791fdbb601", "score": "0.5934975", "text": "public function setVariables()\n {\n\t\t// Initial sample storage data\n\t\t$this->organismData = array(\n\t\t\t'name' => 'Enterococcus spp.',\n\t\t\t'description' => 'Grams known',\n\t\t\t'drugs' => ['12']\n\t\t);\n\n\t\t// Edition sample data\n\t\t$this->organismDataUpdate = array(\n\t\t\t'name' => 'Enterococcux species',\n\t\t\t'description' => 'Gram identifiable',\n\t\t\t'drugs' => ['12']\n\t\t);\n }", "title": "" }, { "docid": "5eb3594f576aefed36bf329136aa9cc0", "score": "0.59288317", "text": "private function setInitValues ( ) {\r\n \r\n /** crea l'objecte usuari */\r\n $this->model = new usuari ( );\r\n \r\n /** crea l'objecte paraula de pas */\r\n $this->modelParaula = new paraulapas ( );\r\n\r\n }", "title": "" }, { "docid": "99f92cfc1c21b4dbe24d4f1fd2695e1a", "score": "0.59170014", "text": "function asignar_valores(){\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->categoria=$_POST['categoria'];\n\t\t$this->fecha=$_POST['fecha'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t}", "title": "" }, { "docid": "1ea75f8db279d10a5feedbdc9b00dd35", "score": "0.5910279", "text": "public function __construct(){\r\n$this->acCodigo = \"\";\r\n$this->acFecha_salida = \"\";\r\n$this->acCedula_personal = \"\";\r\n$this->acNro_solicitud = \"\";\r\n$this->acFecha_solicitud = \"\";\r\n$this->acObservacion = \"\";\r\n$this->unidad = \"\";\r\n}", "title": "" }, { "docid": "9910d1d2e511d681e349f69d9f612369", "score": "0.5908841", "text": "public function assignPageVariables(){\r\n }", "title": "" }, { "docid": "5d9ea3323d524905300518b990cce2b7", "score": "0.58895886", "text": "function getParams()\n {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n\n if (isset($id)) {\n $this->id = $id;\n }\n\n if (isset($mode)) {\n $this->mode = $mode;\n }\n\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "title": "" }, { "docid": "70b8cb9aaa65f31e33cea39660978469", "score": "0.5885586", "text": "function __construct() { \n\t\t\t$this->id_boleto;\n\t\t\t$this->id_pagamento_boleto;\n\t\t\t$this->nosso_numero_boleto;\n\t\t\t$this->nosso_numero_cnab_boleto;\n\t\t\t$this->dt_emissao_boleto;\n\t\t\t$this->dt_vencimento_boleto;\n\t\t\t$this->valor_boleto;\n\t\t\t$this->especie_boleto;\n\t\t\t$this->aceite_boleto;\n\t\t\t$this->cod_protesto_boleto;\n\t\t\t$this->prazo_protesto_boleto;\n\t\t\t$this->num_parcela_boleto;\n\t\t\t$this->cod_moeda_boleto;\n\t\t\t$this->informacao_boleto_3;\n\t\t\t$this->informacao_boleto_4;\n\t\t\t$this->informacao_boleto_5;\n\t\t\t$this->informacao_boleto_6;\n\t\t\t$this->informacao_boleto_7;\n\t\t\t$this->id_lote;\n\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "7abee1f29319dc9f7596835f37b66f4b", "score": "0.58841944", "text": "public function __construct()\n {\n $this->demo_variable = 'Demo variable value';\n }", "title": "" }, { "docid": "ed2a41dda7acff9c4e684327f4ee7d4c", "score": "0.58823", "text": "function getParams()\n {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "title": "" }, { "docid": "ed2a41dda7acff9c4e684327f4ee7d4c", "score": "0.58823", "text": "function getParams()\n {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "title": "" }, { "docid": "c77ec98819982e0ee0adbffa5afb7690", "score": "0.5861186", "text": "function profilo(){\n\t\tforeach($_GET as $k=>$v){\n\t\t\t$this->$k = $v;\n\t\t}\n\t\t$this->standard_layout = true;\n\t\t$this->title = \"Area Riservata\";\n\t\t$this->db = new DBConn();\n\t\t$this->color = \"#F60\";\n\t\t$this->cerca = false;\n\t\t$this->auth = array('profilo');\n\t}", "title": "" }, { "docid": "eb436101f3ea73db8313a7c38e1c2c6c", "score": "0.58530706", "text": "private function initialize_variables() {\n\t $this->results = array();\n\t $this->message = '';\n }", "title": "" }, { "docid": "6175ad7a3253a88998db38312db7311c", "score": "0.58313924", "text": "public function __construct()\n {\n // Se instancia la clase de configuración.\n $this->_config = new Config();\n // Se instancia la clase de funciones utiles.\n $this->_util = new Util();\n // Se instancia la clase de Ws de Minerva.\n $this->_minerva = new Minerva();\n\n $this->respuesta = \"\";\n $this->estadoMinerva = \"\";\n $this->result = \"\";\n $this->respCommand = \"\";\n $this->urlLog = \"\";\n $this->urlLog = $this->_config->urlLog;\n $this->otherServices = array();\n }", "title": "" }, { "docid": "2f80eb83e7e78294b59361616661f6a8", "score": "0.5830322", "text": "public function __construct(){\n $this->conexion=null;\n $this->ultimosRegistros=null;\n $this->baseDeDatos=\"No Definida\";\n }", "title": "" }, { "docid": "f121e21f29f9c064720d50fef98ac96a", "score": "0.5825176", "text": "function __construct() {\n $this->user = \"user\";\n $this->view = new View(); //instanciate it here as every controller passes through this \n $this->enrypter = array(525250.22,625315.14,825020.24,4253290.34,125345.54);\n \n }", "title": "" }, { "docid": "7799306271c9914e6fa939d0c5435145", "score": "0.5819705", "text": "abstract protected function prepareVars();", "title": "" }, { "docid": "c7ce87e48580c70084a61d34a7945f28", "score": "0.58154756", "text": "public function __construct(protected string $nombre, public int $precio, public bool $disponible)\n { \n }", "title": "" }, { "docid": "11143a54d33c3d04df7bf1f86f4e37d7", "score": "0.58115166", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "11143a54d33c3d04df7bf1f86f4e37d7", "score": "0.58115166", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "11143a54d33c3d04df7bf1f86f4e37d7", "score": "0.58115166", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "11143a54d33c3d04df7bf1f86f4e37d7", "score": "0.58115166", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "11143a54d33c3d04df7bf1f86f4e37d7", "score": "0.58115166", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "11143a54d33c3d04df7bf1f86f4e37d7", "score": "0.58115166", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "11143a54d33c3d04df7bf1f86f4e37d7", "score": "0.58115166", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "11143a54d33c3d04df7bf1f86f4e37d7", "score": "0.58115166", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "bb5428b547f7ccaa9167dcf3b078a4ed", "score": "0.580445", "text": "function __construct() { \n\t\t\t$this->id_comentario;\n\t\t\t$this->fk_forum;\n\t\t\t$this->fk_usuario;\n\t\t\t$this->comentario;\n\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "e19e5e6cf9f7be4081f6e067dd8eb67b", "score": "0.57963246", "text": "public function prepareVars()\n {\n $this->vars['name'] = $this->formField->getName();\n $this->vars['value'] = $this->getLoadValue();\n $this->vars['model'] = $this->model;\n }", "title": "" }, { "docid": "e19e5e6cf9f7be4081f6e067dd8eb67b", "score": "0.57963246", "text": "public function prepareVars()\n {\n $this->vars['name'] = $this->formField->getName();\n $this->vars['value'] = $this->getLoadValue();\n $this->vars['model'] = $this->model;\n }", "title": "" }, { "docid": "0fd037b90733fddfedb530c51a102e43", "score": "0.57730186", "text": "public function __construct()\n {\n $this->idFuncion = 0;\n $this->nombreFuncion = \"\";\n $this->precioFuncion = \"\";\n $this->horaDeInicio = \"\";\n $this->duracionFuncion = \"\";\n $this->objTeatro = \"\";\n }", "title": "" }, { "docid": "d2a243ad8a63d04e84e459769cc42443", "score": "0.57708925", "text": "public function prepareVars()\n {\n $this->vars['name'] = $this->formField->getName();\n $this->vars['value'] = $this->model->{$this->valueFrom};\n\n // Set the requested template in a variable;\n $this->requestTemplate = $this->loadTemplate($this->vars['value']);\n if(!$this->requestTemplate)\n throw new \\Exception(sprintf('A unexpected error has occurred. The template slug is invalid.'));\n\n // Set a second variable with request data from database\n $template = $this->requestTemplate->attributes;\n if(!$template)\n throw new \\Exception(sprintf('A unexpected error has occurred. Erro while trying to get a non-object property.'));\n\n $this->vars['template'] = $template;\n }", "title": "" }, { "docid": "789e6382115181c071962e48bac58aa0", "score": "0.576961", "text": "public function __construct(){\r\n $url = $this->getUrl();\r\n\r\n // Verificar en controladores si el archivo con el nombre del controlador existe\r\n if(file_exists('../app/Controladores/'. ucwords($url[0]) .'.php')){\r\n // Si existe se setea como controlador porm defecto\r\n $this->controladorActual = ucwords($url[0]);\r\n\r\n // unset del indice 0, para desmontar el controlador\r\n unset($url[0]);\r\n }\r\n\r\n // requerir el controlador\r\n require_once '../app/controladores/'. $this->controladorActual .'.php';\r\n $this->controladorActual = new $this->controladorActual;\r\n\r\n // Verificar la segunda parte de la url, el MÉTODO\r\n if(isset($url[1])){\r\n if(method_exists($this->controladorActual, $url[1])){\r\n // Chequeamos el método\r\n $this->metodoActual = $url[1];\r\n unset($url[1]);\r\n }\r\n }\r\n // echo para probar el método actual\r\n // echo $this->metodoActual;\r\n\r\n // obtener los parámetros\r\n $this->parametros = $url ? array_values($url) : [];\r\n\r\n // llamar callback con parámetros array\r\n call_user_func_array([$this->controladorActual,$this->metodoActual], $this->parametros);\r\n }", "title": "" }, { "docid": "4eba063e7dfe2d993ef4ee86ca89996b", "score": "0.57602096", "text": "public function __construct() //Metodo magico\n {\n $this->nombre = \"\";\n $this->apellido = \"\";\n }", "title": "" }, { "docid": "77a16cb6b6d81bca763f24dbebde3afd", "score": "0.57589597", "text": "protected function getParams(): void \n {\n $params = require_once CONF . '/params.php';\n \n if (!empty($params)&& is_array($params)) {\n \n foreach ($params as $key => $value) {\n self::$app->setProperty($key, $value);\n }\n \n }\n }", "title": "" }, { "docid": "c44854512f18fb1816bb916dec011f78", "score": "0.5754663", "text": "protected function ReceiveParameters()\n\t\t{\n\t\t\t$this->Function = strtolower($_REQUEST[\"function\"]);\n\t\t\t$this->Tid = $this->GetParameter(\"tid\");\n\t\t\t$this->Custom = $this->GetParameter(\"custom\");\n\t\t\t$this->Prodid = $this->GetParameter(\"prodid\");\n\t\t\t$this->Pid = $this->GetParameter(\"pid\");\n\t\t\t$this->Dsignature = $this->GetParameter(\"dsignature\");\n\t\t}", "title": "" }, { "docid": "0cb714bcadd1bd178465bba7969bbd59", "score": "0.5747196", "text": "public function loadParams()\n {\n $this->params = \\OWeb\\OWeb::getInstance()->get_get();\n }", "title": "" }, { "docid": "84ce9a14f8bb3a4dcb7c66b0c7bf9b4b", "score": "0.57320315", "text": "public function __construct() {\n $this->ajaxController = new \\controllers\\ajaxController();\n $this->mantenimientosClass = new models\\MantenimientosClass();\n }", "title": "" }, { "docid": "bf0c0adbf6ab88e590c4668f42a5d4f9", "score": "0.5729804", "text": "public function __construct()\n\t{\n\t\t//$this->tipo = 'prod' ;\n\t\t//$this->tipo = 'paralelo' ;\n\t\t$this->tipo = 'respaldo' ;\n\t}", "title": "" }, { "docid": "8a6304be838346cc118a243108b5c15f", "score": "0.57279974", "text": "public function __construct( ){\n\t\t$this->message = \"Erro no tipo de variavel\";\n\t}", "title": "" }, { "docid": "8600a80d1f86f57e6ccd979a4cb3134c", "score": "0.5712723", "text": "function cl_pontoparada() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"pontoparada\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "8b6eadf1b584e69d23dd62f62954a1fa", "score": "0.5708166", "text": "function __construct() { \n\t\t\t$this->id_mercadoria;\n\t\t\t$this->mercadoria;\n\t\t\t$this->descricao;\n\t\t\t$this->fornecedor;\n\t\t\t$this->cnpj_fornecedor;\n\t\t\t$this->quantidade;\n\t\t\t$this->quantidade_min;\n\t\t\t$this->valor;\n\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "f4caa50ca62df61a13990cdd0938cd74", "score": "0.5707306", "text": "function cl_empord() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"empord\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "2ae3ca6e41e5896ac3d02e2678549cef", "score": "0.5705716", "text": "function getParams() {\r\n global $id;\r\n global $mode;\r\n global $view_mode;\r\n global $edit_mode;\r\n global $tab;\r\n if (isset($id)) {\r\n $this->id=$id;\r\n }\r\n if (isset($mode)) {\r\n $this->mode=$mode;\r\n }\r\n if (isset($view_mode)) {\r\n $this->view_mode=$view_mode;\r\n }\r\n if (isset($edit_mode)) {\r\n $this->edit_mode=$edit_mode;\r\n }\r\n if (isset($tab)) {\r\n $this->tab=$tab;\r\n }\r\n}", "title": "" }, { "docid": "a37d76f0af077dda7f904b838d5f43b5", "score": "0.56911707", "text": "private function assignControllerInfo()\n {\n $this->assign('module', $this->module);\n $this->assign('class', $this->class);\n $this->assign('event', $this->event);\n }", "title": "" }, { "docid": "ffd1b15e9689a213ab0ebd022f893e14", "score": "0.5684239", "text": "public function prepareVars()\n {\n $this->vars['inputType'] = $this->pattern;\n $this->vars['name'] = $this->formField->getName();\n $this->vars['table'] = $this->table;\n $this->vars['model'] = $this->model;\n $this->vars['value'] = $this->getLoadValue();\n }", "title": "" }, { "docid": "42eb4a879344581b07c71415e0f22d54", "score": "0.5682459", "text": "public function request(){ \n //Cargo el modulo correspondiente en base al tipo de requerimiento\n if(ENOLA_MODE == 'HTTP'){\n //Cargo el modulo Http\n $this->loadHttpModule();\n }else{\n //Cargo el modulo Cron\n $this->loadCronModule();\n } \n //Luego de la carga de todos los modulos creo una instancia de Support\\View\n $this->view= new Support\\View();\n //Cargo la configuracion del usuario\n $this->loadUserConfig();\n //Analizo si estoy en modo HTTP o CLI\n if(ENOLA_MODE == 'HTTP'){\n //Ejecuto el controlador correspondiente\n $this->httpCore->executeHttpRequest();\n }else{\n //Ejecuta el cron controller\n $this->cronCore->executeCronController();\n } \n }", "title": "" }, { "docid": "c432fb2c903917c0dd423c5b3db8bcab", "score": "0.5682282", "text": "public function __construct(){\n$this->acRif = \"\";\n$this->acRazon_social = \"\";\n$this->acCodigo_tipo_proveedor = \"\";\n$this->acDireccion = \"\";\n$this->acCodigo_area = \"\";\n$this->acTelefono = \"\";\n$this->acCodigo_dominio_correo = \"\";\n$this->acCorreo = \"\";\n}", "title": "" }, { "docid": "416e97fff7bb4714a16f797deb915bb1", "score": "0.5675142", "text": "function cl_prontuarios() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"prontuarios\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "ba4e0e12cf6713361d461a25c599588f", "score": "0.56729996", "text": "function cl_orcparamrelnota() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"orcparamrelnota\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "37cf3979076bdd70453238b4f35c447b", "score": "0.5672216", "text": "public function operateParams()\n {\n //$this->assign(\"params\", $setting);\n\n $this->display();\n }", "title": "" }, { "docid": "3e5873481628b400e84f2b0f13aa16f4", "score": "0.5655684", "text": "function __construct()\n\t\t{\n\t\t\t$this->personaModelo = $this->modelo('Persona');\n\t\t\t$this->fincaModelo = $this->modelo('Finca');\n\n\t\t\t$this->UbicacionModelo = $this->modelo('Ubicacion');\n\t\t\t\n\t\n\t\t}", "title": "" }, { "docid": "e20c68e4a47744950cc3d96e230f1022", "score": "0.5637056", "text": "function __construct( $nombre , $talla , $precio )\n {\n // asigno el valor que se pase por parametro a cada una de las instancias de las propiedades\n $this->nombre = $nombre;\n $this->talla = $talla;\n $this->precio = $precio;\n \n // echo \"***Se creo un contructor *** \\n\"; \n \n }", "title": "" }, { "docid": "b376520208ff3e6f2c56fecbdc99b52a", "score": "0.5632825", "text": "protected function initiate() {}", "title": "" }, { "docid": "050e904dbb38e1fee88fafc096c20f25", "score": "0.5624672", "text": "public function prepareVars()\n {\n $this->vars['name'] = $this->formField->getName();\n $this->vars['value'] = $this->getLoadValue();\n $this->vars['model'] = $this->model;\n\n $this->project = $this->vars['project'] = $this->controller->vars['formModel'];\n\n $this->vars['options'] = $this->getOptions();\n }", "title": "" }, { "docid": "793192b7cc6dbbbd54361520d803b5ef", "score": "0.5624525", "text": "function cl_parjuridico() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"parjuridico\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "8c348c9bed73a417ad2c48fe9d14c267", "score": "0.5622748", "text": "protected function assign_vars()\n\t{\n\t\t$this->contrib->assign_details(true);\n\t\t$this->display->assign_global_vars();\n\t\t$this->generate_navigation('faq');\n\t\t$this->generate_breadcrumbs();\n\t}", "title": "" }, { "docid": "773e79ccffee5fc0b2c4c007d7fb2990", "score": "0.5622537", "text": "private function inicializarParametros() {\r\n \r\n //Verifica se os parametro existem, senão iniciliza todos\r\n\t\t$this->view->parametros->gmeoid = isset($this->view->parametros->gmeoid) ? $this->view->parametros->gmeoid : \"\" ; \r\n $this->view->parametros->gmeano = isset($this->view->parametros->gmeano) ? trim($this->view->parametros->gmeano) : (intval(date('Y')) < 2014 ? '2014' : date(Y));\r\n $this->view->parametros->filtro_gmeano = isset($this->view->parametros->filtro_gmeano) ? trim($this->view->parametros->filtro_gmeano) : (intval(date('Y')) < 2014 ? '2014' : date(Y));\r\n $this->view->parametros->gmenome = isset($this->view->parametros->gmenome) ? trim($this->view->parametros->gmenome) : '';\r\n $this->view->parametros->filtro_cargo = isset($this->view->parametros->filtro_cargo) ? trim($this->view->parametros->filtro_cargo) : '';\r\n $this->view->parametros->gmefunoid_responsavel = isset($this->view->parametros->gmefunoid_responsavel) ? trim($this->view->parametros->gmefunoid_responsavel) : '';\r\n $this->view->parametros->gmetipo = isset($this->view->parametros->gmetipo) ? trim($this->view->parametros->gmetipo) : 'M';\r\n $this->view->parametros->gmemetrica = isset($this->view->parametros->gmemetrica) ? trim($this->view->parametros->gmemetrica) : 'P';\r\n $this->view->parametros->gmepeso = isset($this->view->parametros->gmepeso) ? trim($this->view->parametros->gmepeso) : 0;\r\n $this->view->parametros->gmeprecisao = isset($this->view->parametros->gmeprecisao) ? trim($this->view->parametros->gmeprecisao) : 0;\r\n $this->view->parametros->gmedirecao = isset($this->view->parametros->gmedirecao) ? trim($this->view->parametros->gmedirecao) : 'D';\r\n $this->view->parametros->gmeformula = isset($this->view->parametros->gmeformula) ? trim($this->view->parametros->gmeformula) : '';\r\n $this->view->parametros->filtro_gmeoid = isset($this->view->parametros->filtro_gmeoid) ? trim($this->view->parametros->filtro_gmeoid) : '';\r\n\r\n \r\n $this->view->parametros->listarMetas = array();\r\n //if (isset($_POST['gmeano']) && !empty($_POST['gmeano'])) {\r\n $this->view->parametros->listarMetas = $this->dao->buscarNomeMetas($this->view->parametros->gmeano);\r\n //}\r\n\r\n $this->view->parametros->listarCargos = $this->dao->buscarCargos();\r\n\r\n $this->view->parametros->listarFuncionarios = $this->dao->buscarFuncionarios($this->view->parametros->gmeoid, '','','');\r\n $this->view->parametros->listarFuncionariosCadastro = $this->dao->buscarFuncionarios('','', '',$this->view->parametros->gmeano);\r\n $this->view->parametros->listarFuncionariosCadastroCompartilhamento = $this->dao->buscarFuncionarios('','', $this->view->parametros->gmefunoid_responsavel,$this->view->parametros->gmeano);\r\n \r\n $this->view->parametros->listarTipos = array(\r\n 'D' => 'Diário',\r\n 'M' => 'Mensal',\r\n 'B' => 'Bimestral',\r\n 'T' => 'Trimestral',\r\n 'Q' => 'Quadrimestral',\r\n 'S' => 'Semestral',\r\n 'A' => 'Anual'\r\n );\r\n\r\n $this->view->parametros->listarMetricas = array(\r\n 'V' => 'Vlr',\r\n 'P' => '%',\r\n 'M' => '$'\r\n );\r\n\r\n $this->view->parametros->listarDirecoes = array(\r\n 'D' => 'Diretamente',\r\n 'I' => 'Inversamente'\r\n );\r\n\r\n $this->view->parametros->listarIndicadores = $this->dao->buscarIndicadores($this->view->parametros->gmetipo);\r\n \r\n $this->view->recarregarArvore = !isset($_GET['recarregarArvore']) ? false : (intval($_GET['recarregarArvore']) == 1);\r\n \r\n\r\n }", "title": "" }, { "docid": "995d082f5759511df2b8d68e41bbaa42", "score": "0.5617511", "text": "protected function gatherParameters()\n {\n $this->class_name = $this->argument('class_name');\n\n // If you didn't input the name of the class\n if (!$this->class_name) {\n $this->class_name = $this->ask('Enter class name');\n }\n\n // Convert to studly case\n $this->class_name = Str::studly($this->class_name);\n }", "title": "" }, { "docid": "1a8ba2d3477e68d9f42bb01c2f52a254", "score": "0.5617305", "text": "function usuarios_niveles_datos()\n\t{\n\n\t\tparent::objeto();\n\n\t\t$this->tabla=\"usuarios_niveles\";\n\t\t$this->campoClave=\"Id\";\n\t\t$this->id=null;\n\t\t\n\t\t\n$v=new Variable(2,$this->tabla,\"Id\",1);\n\t\t\t\n$v->clave=true;\n\t\t\t\n\t\t\t\n$v->autonumerica=true;\n\t\t\t\n$this->agregarVariable2($v);\n$v=new Variable(1,$this->tabla,\"Nivel\",2);\n$this->agregarVariable2($v);\n\n\t}", "title": "" }, { "docid": "5dae34d6e4fd2918cc77bfc55bab465b", "score": "0.56165254", "text": "function cl_msgaviso() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"msgaviso\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "5f0baab64aa74deee41e544ba816b52e", "score": "0.56141454", "text": "public function prepareVars()\n {\n $this->prepareBlocks();\n $this->vars['placeholder'] = $this->placeholder;\n $this->vars['name'] = $this->formField->getName();\n $this->vars['value'] = $this->getLoadValue();\n $this->vars['model'] = $this->model;\n $this->vars['toolSettings'] = e(json_encode($this->toolSettings));\n $this->vars['scripts'] = $this->scripts;\n }", "title": "" }, { "docid": "2d594e45a770490a9611521b313ca114", "score": "0.5604308", "text": "function __construct(){\n\t\t$this->departamento = 100;\n\t\t$this->municipio = 101;\n\t}", "title": "" }, { "docid": "cac5e1cdfd8b6116a19178b26646b945", "score": "0.5600824", "text": "function asignar_valores(){\n\t\t$this->codigo=$_POST['codigo'];\n\t\t$this->nombre=$_POST['nombre'];\n\t\t$this->categoria=$_POST['categoria'];\n\t\t$this->subcategoria=$_POST['subcategoria'];\n\t\t$this->prioridad=$_POST['prioridad'];\n\t\t$this->detal=$_POST['detal'];\n\t\t$this->mayor=$_POST['mayor'];\n\t\t$this->limite=$_POST['limite'];\n\t\t$this->descripcion=$_POST['descripcion'];\n\t\t$this->estado=$_POST['estado'];\n\t}", "title": "" }, { "docid": "e671e91a5e9b99b0547e2fc7af6c77c2", "score": "0.5596663", "text": "public function setDataFromConsoling()\n {\n $this->data->put('driver', $this->ask('数据库引擎(mysql/pgsql/sqlite):'));\n if (in_array($this->data->get('driver'), [\n 'mysql',\n 'pgsql',\n ])) {\n $this->data->put('database_host', $this->ask('数据库服务器:'));\n $this->data->put('database', $this->ask('数据库名:'));\n $this->data->put('database_username', $this->ask('数据库用户名:'));\n $this->data->put('database_password', $this->ask('数据库密码:'));\n }\n $this->data->put('database_prefix', $this->ask('数据库表前缀:'));\n $this->data->put('admin_account', $this->ask('管理员帐号:'));\n $this->data->put('admin_password', $this->ask('管理员密码:'));\n $this->data->put('admin_password_confirmation', $this->ask('重复密码:'));\n $this->data->put('admin_email', $this->ask('电子邮箱:'));\n $this->data->put('website', $this->ask('网站标题:'));\n $this->info('所填写的信息是:');\n $this->info('数据库引擎:' . $this->data->get('driver'));\n if (in_array($this->data->get('driver'), [\n 'mysql',\n 'pgsql',\n ])) {\n $this->info('数据库服务器:' . $this->data->get('database_host'));\n $this->info('数据库名:' . $this->data->get('database'));\n $this->info('数据库用户名:' . $this->data->get('database_username'));\n $this->info('数据库密码:' . $this->data->get('database_password'));\n }\n $this->info('数据库表前缀:' . $this->data->get('database_prefix'));\n $this->info('管理员帐号:' . $this->data->get('admin_account'));\n $this->info('管理员密码:' . $this->data->get('admin_password'));\n $this->info('重复密码:' . $this->data->get('admin_password_confirmation'));\n $this->info('电子邮箱:' . $this->data->get('admin_email'));\n $this->info('网站标题:' . $this->data->get('website'));\n $this->isDataSetted = true;\n }", "title": "" }, { "docid": "6e3cf1fba4e2b540da3f6f398230b686", "score": "0.5592957", "text": "public function __construct() {\n self::checaDependencias();\n }", "title": "" }, { "docid": "2cf4130f569e6e277d36383ec22c3e8c", "score": "0.5573259", "text": "function resumen(){\n echo '**********************' . PHP_EOL;\n echo '**** FUNCION DE CLASE ****' . PHP_EOL;\n echo $this->nombre . PHP_EOL;\n echo $this->talla . PHP_EOL;\n echo $this->precio . PHP_EOL;\n }", "title": "" }, { "docid": "b3ee52097028260ba55cafe5374d9c2b", "score": "0.5569854", "text": "function cl_pcorcamjulg() {\n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"pcorcamjulg\");\n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "0084b078f7fde40bb50708ff03f7d403", "score": "0.55671567", "text": "function cl_assentamentosubstituicao() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"assentamentosubstituicao\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "07837cecee9f8d29ac800f127420c946", "score": "0.55656564", "text": "public function __construct(){\r\n$this->acRif = \"\";\r\n$this->acRazon_social = \"\";\r\n$this->acCodigo_ciudad = \"\";\r\n$this->acDireccion = \"\";\r\n$this->acCorreo = \"\";\r\n$this->acTelefono = \"\";\r\n}", "title": "" }, { "docid": "48fdfa490dddbef28fe0b568e3c37ae1", "score": "0.55643725", "text": "public function ejecutar(){\n }", "title": "" }, { "docid": "09dbe96464fd6a693ebd6630f64a174a", "score": "0.5552776", "text": "protected function setup() {}", "title": "" }, { "docid": "09dbe96464fd6a693ebd6630f64a174a", "score": "0.5552776", "text": "protected function setup() {}", "title": "" }, { "docid": "4bfaf7586e527d6c57e817346bd6e83c", "score": "0.5550432", "text": "function __construct()\n {\n $this->criterion = $this->getCriterion();\n $this->frontend = $this->getFrontend();\n $this->identification = $this->getIdentification();\n $this->presentation = $this->getPresentation();\n $this->request = $this->getRequest();\n $this->security = $this->getSecurity();\n $this->transaction = $this->getTransaction();\n $this->user = $this->getUser();\n }", "title": "" }, { "docid": "da616a2feafb1aad0f8bafecd5ca00d6", "score": "0.55453837", "text": "protected function setUp() {\n $this->object = new DaoCadastraParcelas;\n $_GET['idTituloInicio']='1';\n $_GET['idTituloFinal']='99999';\n $_GET['idTitulo']='1';\n $_GET['idTipoCobranca']='1';\n $_GET['dataVencimento']='10/10/2018';\n $_GET['valorNominal']='110';\n $_GET['dataRegistroParcela']='15/10/2018';\n }", "title": "" }, { "docid": "336656d96808096cfc75d5c0f700b684", "score": "0.5539257", "text": "function __construct()\n {\n $this->conexion_bd = new Conexion_pp();\n $this->conexion_bd = $this->conexion_bd->conexion_bases_datos();\n }", "title": "" } ]
efbe788b9c5f937e25454024d78c5c21
Se crea el objeto que instancia al modelo que se va a utilizar
[ { "docid": "dec4b019a28a6dc6ea24552914043f7b", "score": "0.0", "text": "function __construct()\n\t{\n\n\t\t$this->ReportesCuentasModel = new ReportesCuentasModel();\n\t\t$this->ReportesCuentasModel->connect();\n\t}", "title": "" } ]
[ { "docid": "338b79cfc90f9d43ba968fe20a25b242", "score": "0.76685053", "text": "public function __CONSTRUCT(){\n $this->model = new Pelicula();\n }", "title": "" }, { "docid": "825ffeaad4dcc6e0f1e25e500c137f84", "score": "0.76231724", "text": "public function __CONSTRUCT(){\n $this->mode = new CursoModel();\n }", "title": "" }, { "docid": "71e232eae88428a6439d7dff0a93e193", "score": "0.76020974", "text": "public function __construct()\n\t\t{\n\t\t\t$this->modelo = new ModelosModel();\n\t\t}", "title": "" }, { "docid": "f84850e0868bcfddc2fa4574dcd935fd", "score": "0.7536861", "text": "function __construct(){\n\t\t\t$this->model = new model(); //variabel model merupakan objek baru yang dibuat dari class model\n\t\t}", "title": "" }, { "docid": "2161d385a6a4f179164e3090b604d737", "score": "0.7491131", "text": "private function modelInstance(){\r\n //$class = $this->getModel();\r\n //return new $class();\r\n }", "title": "" }, { "docid": "ee87eeea2d833889818723753257c5f8", "score": "0.743808", "text": "public function __construct()\n {\n $this->model = new \\stdClass();\n }", "title": "" }, { "docid": "e97012b2161bc885928869d990b6b1fe", "score": "0.7409866", "text": "function __construct()\r\n\t\t{\r\n\t\t\t//variabel mahasiswamodel merupakan objek baru yang dibuat dari class model\r\n\t\t\t$this->prodimodel = new prodimodel();\r\n\t\t}", "title": "" }, { "docid": "04bd1461baca0924b649077ad6853eb3", "score": "0.73712814", "text": "function __construct(){\n\n require('model/usuarioMdl.php');\n $this -> modelo = new usuarioMdl();\n }", "title": "" }, { "docid": "1e23c6e0245f46d46796639e3b48711f", "score": "0.7349299", "text": "public function __CONSTRUCT(){\n $this->mode = new CalificacionModel();\n }", "title": "" }, { "docid": "3acf186fd0ed8fc529a0bdf444ee9577", "score": "0.7333426", "text": "public function __CONSTRUCT(){\n $this->mode = new CargoModel();\n }", "title": "" }, { "docid": "2694ad10ce2505375b35a988ff642cce", "score": "0.7280859", "text": "public function __construct(){\n\t\t\t$this->personaModelo = $this->modelo('Persona');\n\t\t\t\n\n\t\t}", "title": "" }, { "docid": "9aede50e7e5c85a4ad8ce931cedd1fea", "score": "0.72776026", "text": "function __construct($id) {\r\n $this->modelo = BasePersonaje::obtener($id);\r\n \r\n }", "title": "" }, { "docid": "662206680b94ae69e4393ead4f5b5a54", "score": "0.7276337", "text": "public function __construct()\n\t\t{\n\t\t\t$this->modelo = new TcModel();\n\t\t}", "title": "" }, { "docid": "441571213ff8277885a826856f50d4aa", "score": "0.726544", "text": "function __construct()\n\t{\n\t\t// Llamando al contructor del Modelo\n\t\tparent::__construct();\n\t}", "title": "" }, { "docid": "441571213ff8277885a826856f50d4aa", "score": "0.726544", "text": "function __construct()\n\t{\n\t\t// Llamando al contructor del Modelo\n\t\tparent::__construct();\n\t}", "title": "" }, { "docid": "ab31d9eae2dc1c321c3581d76aae18d1", "score": "0.7258384", "text": "public function __construct()\r\n {\r\n $this->model = new $this->modelName();\r\n }", "title": "" }, { "docid": "82db62fe5599a3e1b7c39976bf0ff414", "score": "0.72569174", "text": "public function __construct()\n {\n $class = $this->model();\n $this->model = new $class;\n }", "title": "" }, { "docid": "9d52257dce223a67945174d261dac8cb", "score": "0.7221742", "text": "function __construct() {\n\t\t$this->productocomandaModel = new productocomandaModel();\n\t}", "title": "" }, { "docid": "72e44e9b60f7cb36d91c5dba27300538", "score": "0.7176166", "text": "function __construct()\n\t{\n\t\t$this->modelo = $this->modelo(\"tablasModelo\");\n\t}", "title": "" }, { "docid": "f8abca4ebc677231c22ec1a4492002f5", "score": "0.7145999", "text": "public function __construct()\r\n\t{\r\n\t\t//Variable que posee el nombre del archivo que se estara llamando, este archivo es el modelo donde estan los procedimientos para la base de datos.\r\n\t\t//\r\n\t\t$Objeto_Datos = json_decode( file_get_contents(\"php://input\" ));\r\n\t\tif( !isset( $Objeto_Datos->Nombre_Modelo ) ){\r\n\t\t\t echo \"Error fatal: no se indico cual archivo tipo modelo se debia cargar, verifica bien el proceso de envio de datos\";\r\n\t\t\t exit();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$Nombre_Modelo = $Objeto_Datos->Nombre_Modelo;\r\n\t\t\t$this->_Mdl_Ejemplo_Crud = $this->loadModel( $Nombre_Modelo );\r\n\r\n\t }\r\n\t}", "title": "" }, { "docid": "f918f70f334c6385ee333c2f49584617", "score": "0.7138124", "text": "public function __construct()\n {\n $this->objmateriais = new ModelAlmoxarifado();\n \n }", "title": "" }, { "docid": "816cb277ee03e15c79e4ecd0e72444ea", "score": "0.7130616", "text": "public function __construct() {\n $this->adminTallaModelo = new adminTallaModelo();\n }", "title": "" }, { "docid": "881aedaa97f2c834ea06ba63933db63f", "score": "0.71190274", "text": "public function __construct()\n\t\t{\n\t\t\t$this->modelo = new UsersModel();\n\t\t}", "title": "" }, { "docid": "69d09f8bdce7efb9b315c857ed35471c", "score": "0.7102486", "text": "public function __construct()\n {\n $model = $this->model;\n $this->instance = new $model();\n }", "title": "" }, { "docid": "c249cff57f35ed711032a5afe70110bd", "score": "0.7099171", "text": "public function __construct(){\n\t\t$this->tiendaModelo = new tiendaModelo();\n\t\t$this->productoFavoritoControlador = new productoFavoritoControlador();\n $this->productoEstrellaControlador = new productoEstrellaControlador();\n $this->productoMasVendidoControlador = new productoMasVendidoControlador();\n\t}", "title": "" }, { "docid": "5f0553bb6aa95dc897b60cf342ea0153", "score": "0.7076891", "text": "function __construct()\r\n {\r\n $this->modelorgano = new NomorganoModel();\r\n $this->modelsubcate = new NomsubcategoriaModel();\r\n $this->modelnivelestr = new NomnivelestrModel();\r\n $this->modeltpcifras = new NomtipocifraModel();\r\n $this->modelcargocvil = new NomcargocivilModel();\r\n $this->modelcargomitar = new NomcargomilitarModel();\r\n $this->modelcatcvil = new NomcategcivilModel();\r\n $this->modelcatocup = new NomcategoriaocupacionalModel();\r\n $this->modelpref = new NomprefijoModel();\r\n $this->modelespcia = new NomespecialidadModel();\r\n $this->modeltecnica = new NomtecnicaModel();\r\n $this->modelmodulos = new NommoduloModel();\r\n $this->modelpremltar = new NomprepmilitarModel();\r\n $this->modelagrup = new NomagrupacionesModel();\r\n $this->modelgrado = new NomgradomilitarModel();\r\n\r\n }", "title": "" }, { "docid": "51c8ea4280916477d87daa5b7c70b279", "score": "0.7069611", "text": "public function __construct() {\n $this->pedidoModelo = new pedidoModelo();\n $this->perfilControlador = new perfilControlador();\n }", "title": "" }, { "docid": "6c6d11eb71b21a254f43e0f9702b5bca", "score": "0.7047598", "text": "public function __construct()\n {\n $this->makeModel();\n }", "title": "" }, { "docid": "8a7a535eb7a598a766dc63eae2821f91", "score": "0.7020901", "text": "public function __construct() {\n $this->loket = new LoketModel();\n $this->pelayanan = new PelayananModel();\n /* Catatan:\n Apa yang ada di dalam function construct ini nantinya bisa digunakan\n pada function di dalam class Loket\n */\n }", "title": "" }, { "docid": "85315c3641b367f6f9e3df0cfa80b52d", "score": "0.6972047", "text": "function __construct(){\n $this->produk = new M_Produk(); //variabel model merupakan objek baru yang dibuat dari class model\n }", "title": "" }, { "docid": "2b4efe1dc0592537762e3b24c73e142e", "score": "0.6946179", "text": "function __construct(){\n\t\t\t$this->modelo = new CitaBss();\n\t\t}", "title": "" }, { "docid": "013d5a42a459badd271501713269ed25", "score": "0.6934057", "text": "public function __construct(){\n $this->ConsultaUbicacion_M = $this->modelo(\"Ubicacion_M\"); \n }", "title": "" }, { "docid": "a6245283c4cad83456e63eae3b9a7942", "score": "0.691227", "text": "public function __construct()\n {\n $this->validadorSesion();\n $this->nombreModulo = __CLASS__;\n $this->objModelo = $this->modelo('RegistroParqueaderosModelo',$this->nombreModulo);\n $this->response = array();\n }", "title": "" }, { "docid": "5de7407586c4602de14ca02cfa489e9c", "score": "0.6909139", "text": "private function create()\n {\n $this->entity = $this->model();\n }", "title": "" }, { "docid": "1fa48355812dbdc6717d1ce068fb4f71", "score": "0.69084305", "text": "public function __construct()\n {\n $this->imovelModel = new Imovel();\n }", "title": "" }, { "docid": "c30d0325ff19fb0067323da62af813a1", "score": "0.69053215", "text": "public function __construct(){\r\n\t\t$this->_vista = new Vista();\r\n\t#Si existe un modelo con el mismo nombre del controlador, este carga por default\r\n\t\t$this->_modelo = $this->cargaModelo(str_replace(\"Controlador\", \"\", get_class($this)));\r\n\t}", "title": "" }, { "docid": "0bb9cedd793301514cf1aa84e0d21fe4", "score": "0.68927765", "text": "public function __construct()\n {\n $this->model = new Model();\n }", "title": "" }, { "docid": "4f9c95a15692c19302a748c3b3c9cf41", "score": "0.68823594", "text": "public function __construct() {\r\n $this->usuarioModelo = $this->cargaModelo(\"Usuario\");\r\n }", "title": "" }, { "docid": "2882618fa22559182cbcd20ffe0cdbb7", "score": "0.68775254", "text": "public function createModel();", "title": "" }, { "docid": "d7c566096252dea2296aa5a835885237", "score": "0.68687814", "text": "public function __construct()\n\t{\n\t $this->entity = new Estados;\n\t}", "title": "" }, { "docid": "a2dd90f2306abf5d3afcc44e2dd3b4a1", "score": "0.6854768", "text": "function __construct()\n {\n $this->obj_contato = new OBJ_Contato();\n }", "title": "" }, { "docid": "483aa55902440eab4346be297641e9a7", "score": "0.68530154", "text": "public function model($model){\n // Zahtjevati model fajl \n require_once '../app/models/'. $model . '.php' ; // spajamo model sa metodom i spajamo ga sa .php-om\n\n // Instanciranje modela \n return new $model();\n}", "title": "" }, { "docid": "b3beae77e25c940fb087b45f0690e58a", "score": "0.6847898", "text": "private function instantiate_model() {//script hanging up here \n //print_r($this->object_variables);\n //echo $this->model_name;\n $model = $this->model_name . '_model';\n $this->model = new $model($this->object_variables);\n }", "title": "" }, { "docid": "a43f3089e2267ab5f6878226425efde2", "score": "0.6841766", "text": "function __construct()\n\t{\n\t\t$this->generacionIVAModel = new generacionIVAModel();\n\t}", "title": "" }, { "docid": "4aa4b8f6e7f69b3345a45356d0d791f8", "score": "0.68336356", "text": "function __construct()\n\t{\n\t\t$this->declaracionR21Model = new declaracionR21Model();\n\t}", "title": "" }, { "docid": "bece86e61107b86f63a1f90571a20928", "score": "0.6833178", "text": "public function __construct()\n\t{\n\t\t$this->model = new Model();\n\t}", "title": "" }, { "docid": "4d3ca8165553efedfbac54999a984588", "score": "0.6830672", "text": "public function __construct()\n {\n $this->ticket = new TicketModel();\n $this->ticket_pedidos = new PedidoTicketModel();\n $this->pedido = new PedidoModel();\n $this->contiene = new ContieneModel();\n }", "title": "" }, { "docid": "72c42f7f356b89be2945f78a10cd78ac", "score": "0.6808475", "text": "function __construct() {\n\t\t//$this->models = $this->array_of_models_from_db();\n\t}", "title": "" }, { "docid": "5b62034ec0428f4078936cf42e1d7042", "score": "0.67738163", "text": "function ModelReporte() { //Constructor de la clase del modelo\r\n\t\t$this->base_datos = new medoo();\r\n\t}", "title": "" }, { "docid": "ee48d6604f3816ded7fdaccab83f9df7", "score": "0.6765624", "text": "private function __construct(){\n //constructor generico\n }", "title": "" }, { "docid": "0c6da99fe9a0d7275020c419e0fa42ae", "score": "0.67561716", "text": "public function ProductosModelo() {\r\n parent::__construct();\r\n }", "title": "" }, { "docid": "a59a5f4ead56b07ae3405c3850120aea", "score": "0.6755016", "text": "function __construct(){\n $this->model_u=new universidad_model();\n }", "title": "" }, { "docid": "0ce18fe10cd7d9ec29bd014aaf7d69e1", "score": "0.6737632", "text": "function __construct() {\n\t\t\t\t// INSTANSIASI CLASS MODEL PENDUDUK\n\t\t\t\t$this->gaji\t= new model_gaji();\n\t\t\t\t$this->sistem\t= new model_sistem();\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "7fc2c0fe9bfa58e4f37aba785952a744", "score": "0.6731193", "text": "public function __construct() {\n\t\t$this->_model = get_called_class();\n\t}", "title": "" }, { "docid": "b53cc25b5baaae729f087e1439f0ac04", "score": "0.6726818", "text": "public function __construct()\n {\n parent::__construct();\n //METODO CARGADO EN EL MODELO\n $this->load->model('libroModel');\n\n \n }", "title": "" }, { "docid": "0aab12855616b43c75ec5ffb89644ff7", "score": "0.67213917", "text": "abstract public function modelFactory();", "title": "" }, { "docid": "4e7d52ce6523d47bd4f1748fbde1fa39", "score": "0.6718677", "text": "public function __construct(){\n\t\t$class= 'Model\\\\' . str_replace(array('Controller\\\\','Controller'),'',get_Called_Class()) .'Model';\n\t\t\n\t\t// Exemple : Si je suis dans Controller\\ProduitController\n\t\t// Je retire 'Controller\\' et 'Controller', il reste 'Produit'\n\t\t// J'ajouter 'Model\\' au début et 'Model' à la fin...\n\t\t// Il reste donc...\n\t\t// $class = Model\\ProduitModel\t\n\n\t\t$this -> model = new $class; //$this->model = new Model\\ProduitModel //voir ligne 12\n\t\t//j'instancie donc Model\\ProduitModel et je stocke l'objet ProduitModel dans $this->model;\n\t\t\n\t\t$config=new Config;\n\t\t$site=$config->getParametersSite();\n\t\t$this->url=$site['url'];\n\t}", "title": "" }, { "docid": "3ff3dbc29ad911ea5e25083043daa516", "score": "0.6712911", "text": "function __construct()\n {\n\n $this->TarjetaModel = new TarjetaModel();\n $this->TarjetaModel->connect();\n }", "title": "" }, { "docid": "2135dc9bcaeed5a469e7c808142c8ad2", "score": "0.67125946", "text": "function __construct(){\n \n $this->Localidade = new DadosLocalidade;\n }", "title": "" }, { "docid": "a1fce8d3330d9035568c11cc062eb227", "score": "0.6711649", "text": "public function __construct() {\r\n $this->db = new DatabaseModel();\r\n }", "title": "" }, { "docid": "7dcf0b03da2cd6dc3d2d1b4fdf61da4f", "score": "0.6690138", "text": "public function __construct()\n\t{\n\t $this->entity = new Sucursales;\n\t}", "title": "" }, { "docid": "a386a66c0068dc031d81076d4259b2cc", "score": "0.6676185", "text": "public function __construct(){\n //create objects of the class for the attributes. \n //these objects correspond to properties\n $this->db = new Database(); \n //new format object\n $this->fm = new Format();\n\n }", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.6673597", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.6673597", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.6673597", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.6673597", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.6673597", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.6673597", "text": "public function create(){}", "title": "" }, { "docid": "c490f5833a9d77d38753a62954459880", "score": "0.66650355", "text": "static public function create() {\r\n $model = new static::$modelName;\r\n return $model;\r\n }", "title": "" }, { "docid": "8c136d931e6d0562caa3668cfacf660b", "score": "0.66621256", "text": "public function __construct(){\n\t\tparent::__construct();\n\t\t$this->load->model(\"Cita_model\");#llamamos le modelo por el nombre de la clase\n\t}", "title": "" }, { "docid": "847fd4bba9bc52012d24d3ab0ee7b6fd", "score": "0.6661165", "text": "public function __construct()\n {\n $this->usuario = new Usuario();\n $this->vista = new Vista();\n $this->seguridad = new Seguridad();\n $this->reserva = new Reserva();\n }", "title": "" }, { "docid": "b6255f16deef9fb9793059060635ae19", "score": "0.6651442", "text": "public function create() {\n $class_name = get_class($this);\n $object_name = substr($class_name, 0, -5);\n $obj = new $object_name();\n $this->initialize_object($obj, $obj::$_json_fields);\n $this->initialize_object($obj, $obj::$_db_fields);\n return $obj;\n }", "title": "" }, { "docid": "11eaa58057abbf28099d1ead35c5e9bb", "score": "0.66496307", "text": "public function init(){\n $dataobj = new MobileexampleModel();\n $dataobj->factoryInit($this);\n }", "title": "" }, { "docid": "abeec23174f6de8951763d3853018902", "score": "0.6635062", "text": "public function __construct(){\n $this->filaModel = $this->model('Fila');\n $this->etapaModel = $this->model('Etapa');\n }", "title": "" }, { "docid": "68e0eab1034448c33ae1a6dd3439bd4f", "score": "0.66348094", "text": "function __construct()\n\t{\n\t\t$this->modelo = $this->modelbran(\"tablasbrand\");\n\t}", "title": "" }, { "docid": "04eb9cc4cf93dba2f88c69c2054abc71", "score": "0.65981895", "text": "public function __construct()\n {\n $this->validadorSesion();\n $this->nombreModulo = __CLASS__;\n $this->usuarioModelo = $this->modelo('RegistroUsuariosAdministradorModelo',$this->nombreModulo);\n $this->response = array();\n }", "title": "" }, { "docid": "3d029a77c69d487a19dc3152712e3bc0", "score": "0.65938884", "text": "public function createModel() {\n\t\t\t$model = \"\\\\models\\\\\".$this->prefix;\n\t\t\tif(class_exists($model)) {\n\t\t\t\treturn new $model;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//error404(); // Model not found.\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a1ef3f0e1bea5180881d8e7a12682f00", "score": "0.6585554", "text": "function createObject()\n\t{\n\t\t$this->ilias->raiseError($this->lng->txt(\"permission_denied\"),$this->ilias->error_obj->MESSAGE);\n\t\t\n\t\t/*\n\t\t$this->object->setTitle($this->lng->txt(\"obj_\".$this->object->getType().\"_local\"));\n\t\t$this->object->setDescription(\"obj_\".$this->object->getType().\"_local_desc\");\n\t\t\n\t\t$this->saveObject();\t\t \n\t\t*/\n\t}", "title": "" }, { "docid": "70f924ddedb7ced0364fbd3708cf0840", "score": "0.65731895", "text": "public function __construct()\n {\n $this->proyectModel = $this->model('Proyect');\n }", "title": "" }, { "docid": "70f924ddedb7ced0364fbd3708cf0840", "score": "0.65731895", "text": "public function __construct()\n {\n $this->proyectModel = $this->model('Proyect');\n }", "title": "" }, { "docid": "b443a476e08a3cb714facb7d6d995c2a", "score": "0.656923", "text": "public static function model()\r\n {\r\n return new self();\r\n }", "title": "" }, { "docid": "37c82abbbe249cfe9cdc97cddfcdda49", "score": "0.6566018", "text": "public static function model() {\n\t\t$class = get_called_class();\n\t\t\n\t\t$inst = new $class(null);\n\t\t\n\t\treturn $inst;\n\t}", "title": "" }, { "docid": "76af425219e1c414f77ab367fb48e774", "score": "0.6564479", "text": "public function create(){\n\t\t// not necessary for now\n\t}", "title": "" }, { "docid": "62a6a4d31ec08fb31c68a9ad46e1b106", "score": "0.6558588", "text": "public static function newModel(): self\n {\n return new self();\n }", "title": "" }, { "docid": "1dae023a915c8a08521054a83989a6a3", "score": "0.6558108", "text": "function __construct()\n {\n // load model\n Load::loadModel(\"compalinname\");\n }", "title": "" }, { "docid": "c196cecefdfc613231ddacd265603903", "score": "0.65558636", "text": "public Function __Construct(){\n\n $this->numeObjeto=0;\n //reinicia a variavel da classe\n $this->objetos=array();\n //faz um array de objeto\n }", "title": "" }, { "docid": "f506d06a8c59740e6c1d80dc25bb9bab", "score": "0.65399486", "text": "public function __construct()\n {\n $this->model = new PracticumModel();\n }", "title": "" }, { "docid": "78cb20ddfa7365b356a9ed10a6d803cc", "score": "0.65366864", "text": "public function __construct(){\n $this->tools = new Tools();\n $this->articleCategory = new ArticleCategoryModel;\n }", "title": "" }, { "docid": "8a82ea17145fd20ba38d7c3075f740ae", "score": "0.65343016", "text": "protected function make()\n {\n return new $this->model;\n }", "title": "" }, { "docid": "825adcecc51b145e679f2565c7f2fc71", "score": "0.65326333", "text": "function create($data)\r\n\t{\r\n\t\t$this->data = $data;\r\n\t\t// set needed database model ...\r\n\t\t$this->Entry = ClassRegistry::init('Entry');\r\n\t\t$this->Type = ClassRegistry::init('Type');\r\n\t\t$this->Setting = ClassRegistry::init('Setting');\r\n\t\t$this->EntryMeta = ClassRegistry::init('EntryMeta');\r\n\t}", "title": "" }, { "docid": "a38703f3cb490dfdd1854c72e1d9765a", "score": "0.65323836", "text": "function __construct() {\n\t\t$model = new OModelGroup(\n\t\t\tnew OModelField(\n\t\t\t\tname: 'id',\n\t\t\t\ttype: OMODEL_PK,\n\t\t\t\tcomment: 'Id único para cada cine'\n\t\t\t),\n\t\t\tnew OModelField(\n\t\t\t\tname: 'id_user',\n\t\t\t\ttype: OMODEL_NUM,\n\t\t\t\tcomment: 'Id del usuario que añade el cine',\n\t\t\t\tnullable: false,\n\t\t\t\tref: 'user.id'\n\t\t\t),\n\t\t\tnew OModelField(\n\t\t\t\tname: 'name',\n\t\t\t\ttype: OMODEL_TEXT,\n\t\t\t\tsize: 50,\n\t\t\t\tcomment: 'Nombre del cine',\n\t\t\t\tnullable: false\n\t\t\t),\n\t\t\tnew OModelField(\n\t\t\t\tname: 'slug',\n\t\t\t\ttype: OMODEL_TEXT,\n\t\t\t\tsize: 50,\n\t\t\t\tcomment: 'Slug del nombre del cine',\n\t\t\t\tnullable: false\n\t\t\t),\n\t\t\tnew OModelField(\n\t\t\t\tname: 'created_at',\n\t\t\t\ttype: OMODEL_CREATED,\n\t\t\t\tcomment: 'Fecha de creación del registro'\n\t\t\t),\n\t\t\tnew OModelField(\n\t\t\t\tname: 'updated_at',\n\t\t\t\ttype: OMODEL_UPDATED,\n\t\t\t\tcomment: 'Fecha de última modificación del registro'\n\t\t\t)\n\t\t);\n\n\t\tparent::load($model);\n\t}", "title": "" }, { "docid": "76c413314214f1671c98ee644ba131c9", "score": "0.6529565", "text": "public function __construct(){\n\t\t\t// $this->Model = $this->model(\"khachthue\");\n\t\t}", "title": "" }, { "docid": "a1582d269a1c0a1c0e3a54e94fc591e5", "score": "0.6529264", "text": "public function __construct(){\n require_once \"GestioneAcquariMarini/models/tankModel.php\";\n require_once \"GestioneAcquariMarini/models/userModel.php\";\n require_once \"GestioneAcquariMarini/models/habitantModel.php\";\n $this->tankModel = new TankModel();\n $this->userModel = new UserModel();\n $this->habitantModel = new HabitantModel();\n $this->allNameTank = $this->tankModel->getAllTankName();\n $this->allEmailUsers = $this->userModel->getAllEmail();\n }", "title": "" }, { "docid": "07f478c788114df07fa2bc1dce477b51", "score": "0.6520903", "text": "public function __construct()\n {\n $obj = new USER();\n $this->_login = $obj;\n\n //create an object from the class \"Crud\" and assign it to the property of this class\n $obj2 = new Crud();\n $this->_model = $obj2;\n\n }", "title": "" }, { "docid": "f01da9c5ccd87d062c9198de3ded44b3", "score": "0.6518487", "text": "public function __construct(){\n if(empty($_SESSION))\n @session_start();\n\n $this->oUtil = new \\BlogPhp\\Engine\\Util;\n \n $this->oUtil->getModel('Veto');\n $this->oModel = new \\BlogPhp\\Model\\Veto;\n\n /** Récupère l'identifiant de publication dans le constructeur afin d'éviter la duplication du même code **/\n // $this->_iId = (int) (!empty($_GET['id']) ? $_GET['id'] : 0);\n }", "title": "" }, { "docid": "67caf8931a4046d8d394ea4378e9f6b4", "score": "0.65107155", "text": "public function create(){\n\t\t//\n\t\n\t}", "title": "" }, { "docid": "a4d9b9f61a9e7e6dd927c56c8c9108e7", "score": "0.6505199", "text": "public function __construct() {\n\t\trequire 'models/usuarioModel.php';\n\t\t$this->usuario = new usuarioModel ();\n\t}", "title": "" }, { "docid": "c08a99aba1c6b351adf52e0aedf4a371", "score": "0.6501279", "text": "public function __construct() {\n $this->adres = new AdresModel();\n $this->order = new OrderModel();\n $this->mollie = new Mollie\\Api\\MollieApiClient();\n $this->mollie->setApiKey($_ENV[\"MOLLIE_KEY\"]);\n $this->cart = new ShoppingModel();\n $this->orderProducts = new OrderProductsModel();\n $this->product = new ProductModel();\n }", "title": "" }, { "docid": "d841389b09ed952158a74dfcff2b0861", "score": "0.649532", "text": "public function __construct() {\n $this->model = new Model_Jiafuyun_CompanyHouseStaff();\n\t}", "title": "" }, { "docid": "968e79e724609d352b8cd0ed8fa7b63f", "score": "0.6493928", "text": "public function __construct() {\n $this->PropertyModel = new PropertyModel();\n $this->User = new User();\n $this->SocialAcounts = new SocialAcounts();\n $this->CityModel = new CityModel();\n $this->Adds = new Adds();\n $this->FeatureModel = new FeatureModel();\n }", "title": "" }, { "docid": "89bd99975dc2c722c30439478481661f", "score": "0.6491435", "text": "function __construct() {\n $this->model = new PointsModel();\n }", "title": "" } ]
76c194fd3e3296842b8f9f49d2c17eb0
Returns the information which allows LoginGuard to render the TFA setup page. This is the page which allows the user to add or modify a TFA method for their user account. If the record does not correspond to your plugin return an empty array.
[ { "docid": "ae79185c95226aae5ab441de9fe4d111", "score": "0.7122438", "text": "public function onLoginGuardTfaGetSetup($record)\n\t{\n\t\t// Make sure we are enabled\n\t\tif (!$this->enabled)\n\t\t{\n\t\t\treturn array();\n\t\t}\n\n\t\t// Make sure we are actually meant to handle this method\n\t\tif ($record->method != $this->tfaMethodName)\n\t\t{\n\t\t\treturn array();\n\t\t}\n\n\t\t// Load the options from the record (if any)\n\t\t$options = $this->_decodeRecordOptions($record);\n\t\t$currentRecordRegistrations = isset($options['registrations']) ? $options['registrations'] : array();\n\n\t\t$registrations = $this->getRegistrationsFor($record->user_id);\n\n\t\t// Get some values assuming that we are NOT setting up U2F (the key is already registered)\n\t\t$submitOnClick = '';\n\t\t$preMessage = JText::_('PLG_LOGINGUARD_U2F_LBL_CONFIGURED');\n\t\t$u2fRegData = json_encode($this->u2f->getRegisterData($registrations));\n\t\t$type = 'input';\n\t\t$html = '';\n\t\t$helpURL = $this->params->get('helpurl', 'https://github.com/akeeba/loginguard/wiki/U2F');\n\n\t\t/**\n\t\t * If there are no security keys set up yet I need to show a different message and take a different action when\n\t\t * my user clicks the submit button.\n\t\t */\n\t\tif (empty($currentRecordRegistrations))\n\t\t{\n\t\t\tif (version_compare(JVERSION, '3.6.999', 'le'))\n\t\t\t{\n\t\t\t\t// Load Javascript\n\t\t\t\tJHtml::_('script', 'plg_loginguard_u2f/u2f-api.min.js', array(\n\t\t\t\t\t'version' => 'auto',\n\t\t\t\t\t'relative' => true,\n\t\t\t\t\t'detectDebug' => true,\n\t\t\t\t), true, false, false, true);\n\n\t\t\t\tJHtml::_('script', 'plg_loginguard_u2f/u2f.min.js', array(\n\t\t\t\t\t'version' => 'auto',\n\t\t\t\t\t'relative' => true,\n\t\t\t\t\t'detectDebug' => true,\n\t\t\t\t), true, false, false, true);\n\t\t\t}\n\t\t\t// Joomla! 3.7 is broken. We have to use the new method AND MAKE SURE $attribs IS NOT EMPTY BECAUSE JOOMLA IS HORRIBLY BROKEN.\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Load Javascript\n\t\t\t\tJHtml::_('script', 'plg_loginguard_u2f/u2f-api.min.js', array(\n\t\t\t\t\t'version' => 'auto',\n\t\t\t\t\t'relative' => true,\n\t\t\t\t\t'detectDebug' => true,\n\t\t\t\t\t'framework' => true,\n\t\t\t\t\t'pathOnly' => false,\n\t\t\t\t\t'detectBrowser' => true,\n\t\t\t\t), array(\n\t\t\t\t\t'defer' => false,\n\t\t\t\t\t'async' => false,\n\t\t\t\t));\n\n\t\t\t\tJHtml::_('script', 'plg_loginguard_u2f/u2f.min.js', array(\n\t\t\t\t\t'version' => 'auto',\n\t\t\t\t\t'relative' => true,\n\t\t\t\t\t'detectDebug' => true,\n\t\t\t\t\t'framework' => true,\n\t\t\t\t\t'pathOnly' => false,\n\t\t\t\t\t'detectBrowser' => true,\n\t\t\t\t), array(\n\t\t\t\t\t'defer' => false,\n\t\t\t\t\t'async' => false,\n\t\t\t\t));\n\t\t\t}\n\n\t\t\t$js = <<< JS\nwindow.jQuery(document).ready(function() {\n\takeeba.LoginGuard.u2f.regData = $u2fRegData;\n});\n\nJS;\n\t\t\tJFactory::getDocument()->addScriptDeclaration($js);\n\n\t\t\t$layoutPath = JPluginHelper::getLayoutPath('loginguard', 'u2f', 'register');\n\t\t\tob_start();\n\t\t\tinclude $layoutPath;\n\t\t\t$html = ob_get_clean();\n\t\t\t$type = 'custom';\n\n\t\t\t// Load JS translations\n\t\t\tJText::script('PLG_LOGINGUARD_U2F_ERR_JS_OTHER');\n\t\t\tJText::script('PLG_LOGINGUARD_U2F_ERR_JS_CANNOTPROCESS');\n\t\t\tJText::script('PLG_LOGINGUARD_U2F_ERR_JS_CLIENTCONFIGNOTSUPPORTED');\n\t\t\tJText::script('PLG_LOGINGUARD_U2F_ERR_JS_INELIGIBLE');\n\t\t\tJText::script('PLG_LOGINGUARD_U2F_ERR_JS_TIMEOUT');\n\n\t\t\t// Save the U2F request to the session\n\t\t\t$session = JFactory::getSession();\n\t\t\t$session->set('u2f.request', $u2fRegData, 'com_loginguard');\n\n\t\t\t// Special button handling\n\t\t\t$submitOnClick = \"akeeba.LoginGuard.u2f.setUp(); return false;\";\n\n\t\t\t// Message to display\n\t\t\t$preMessage = JText::_('PLG_LOGINGUARD_U2F_LBL_INSTRUCTIONS');\n\t\t}\n\n\t\treturn array(\n\t\t\t// Default title if you are setting up this TFA method for the first time\n\t\t\t'default_title' => JText::_('PLG_LOGINGUARD_U2F_LBL_DISPLAYEDAS'),\n\t\t\t// Custom HTML to display above the TFA setup form\n\t\t\t'pre_message' => $preMessage,\n\t\t\t// Heading for displayed tabular data. Typically used to display a list of fixed TFA codes, TOTP setup parameters etc\n\t\t\t'table_heading' => '',\n\t\t\t// Any tabular data to display (label => custom HTML). See above\n\t\t\t'tabular_data' => array(),\n\t\t\t// Hidden fields to include in the form (name => value)\n\t\t\t'hidden_data' => array(\n\t\t\t\t'u2fregdata' => $u2fRegData,\n\t\t\t),\n\t\t\t// How to render the TFA setup code field. \"input\" (HTML input element) or \"custom\" (custom HTML)\n\t\t\t'field_type' => $type,\n\t\t\t// The type attribute for the HTML input box. Typically \"text\" or \"password\". Use any HTML5 input type.\n\t\t\t'input_type' => 'hidden',\n\t\t\t// Pre-filled value for the HTML input box. Typically used for fixed codes, the fixed YubiKey ID etc.\n\t\t\t'input_value' => '',\n\t\t\t// Placeholder text for the HTML input box. Leave empty if you don't need it.\n\t\t\t'placeholder' => '',\n\t\t\t// Label to show above the HTML input box. Leave empty if you don't need it.\n\t\t\t'label' => '',\n\t\t\t// Custom HTML. Only used when field_type = custom.\n\t\t\t'html' => $html,\n\t\t\t// Should I show the submit button (apply the TFA setup)? Only applies in the Add page.\n\t\t\t'show_submit' => false,\n\t\t\t// onclick handler for the submit button (apply the TFA setup)?\n\t\t\t'submit_onclick' => $submitOnClick,\n\t\t\t// Custom HTML to display below the TFA setup form\n\t\t\t'post_message' => '',\n\t\t\t// URL for help content\n\t\t\t'help_url' => $helpURL,\n\t\t);\n\t}", "title": "" } ]
[ { "docid": "eeaf31125c6327c5b1964f491a5452be", "score": "0.69567275", "text": "public function onLoginGuardTfaGetMethod()\n\t{\n\t\tif (!$this->enabled)\n\t\t{\n\t\t\treturn array();\n\t\t}\n\n\t\t$helpURL = $this->params->get('helpurl', 'https://github.com/akeeba/loginguard/wiki/U2F');\n\n\t\treturn array(\n\t\t\t// Internal code of this TFA method\n\t\t\t'name' => $this->tfaMethodName,\n\t\t\t// User-facing name for this TFA method\n\t\t\t'display' => JText::_('PLG_LOGINGUARD_U2F_LBL_DISPLAYEDAS'),\n\t\t\t// Short description of this TFA method displayed to the user\n\t\t\t'shortinfo' => JText::_('PLG_LOGINGUARD_U2F_LBL_SHORTINFO'),\n\t\t\t// URL to the logo image for this method\n\t\t\t'image' => 'media/plg_loginguard_u2f/images/u2f.svg',\n\t\t\t// Are we allowed to disable it?\n\t\t\t'canDisable' => true,\n\t\t\t// Are we allowed to have multiple instances of it per user?\n\t\t\t'allowMultiple' => true,\n\t\t\t// URL for help content\n\t\t\t'help_url' => $helpURL,\n\t\t\t// Allow authentication against all entries of this TFA method. Otherwise authentication takes place against a SPECIFIC entry at a time.\n\t\t\t'allowEntryBatching' => $this->params->get('allowEntryBatching', 1),\n\t\t);\n\t}", "title": "" }, { "docid": "927de86e8db35d8e041e130eb7e9b0fd", "score": "0.62565064", "text": "private function Account () {\n $helpBts = array ();\n $helpBts['uname'] = helpbutton ('duepublico/duepAccount/username', '', '', true, false, '', true, false);\n $helpBts['pword'] = helpbutton ('duepublico/duepAccount/password', '', '', true, false, '', true, false);\n $helpBts['academictitle'] = helpbutton ('duepublico/duepAccount/academictitle', '', '', true, false, '', true, false);\n $helpBts['readaccount'] = helpbutton ('duepublico/duepAccount/readaccount', '', '', true, false, '', true, false);\n return $helpBts;\n }", "title": "" }, { "docid": "a5b09dfba93c8add013f8dba6accb856", "score": "0.6241327", "text": "public static function tabInfo()\n {\n return array(\n 'key' => 'account',\n 'slug' => 'laterpay-account-tab',\n 'url' => admin_url('admin.php?page=laterpay-account-tab'),\n 'title' => __('Account', 'laterpay'),\n 'cap' => 'activate_plugins',\n );\n }", "title": "" }, { "docid": "5857a82935d5247c2154988b577c6944", "score": "0.5961379", "text": "public function onLoginGuardTfaSaveSetup($record, JInput $input)\n\t{\n\t\t// Make sure we are enabled\n\t\tif (!$this->enabled)\n\t\t{\n\t\t\treturn array();\n\t\t}\n\n\t\t// Make sure we are actually meant to handle this method\n\t\tif ($record->method != $this->tfaMethodName)\n\t\t{\n\t\t\treturn array();\n\t\t}\n\n\t\t// Load the options from the record (if any)\n\t\t$options = $this->_decodeRecordOptions($record);\n\n\t\tif (!isset($options['registrations']))\n\t\t{\n\t\t\t$options['registrations'] = array();\n\t\t}\n\n\t\t// load the registration request from the session\n\t\t$session = JFactory::getSession();\n\t\t$u2fRegData = $session->get('u2f.request', null, 'com_loginguard');\n\t\t$session->set('u2f.request', null, 'com_loginguard');\n\t\t$registrationRequest = json_decode($u2fRegData);\n\n\t\t// Load the registration response from the input\n\t\t$code = $input->get('code', null, 'raw');\n\t\t$registerResponse = json_decode($code);\n\n\t\t// If there was no registration request BUT there is a registration response throw an error\n\t\tif (empty($registrationRequest) && !(empty($code) || empty($registerResponse)))\n\t\t{\n\t\t\tthrow new RuntimeException(JText::_('JERROR_ALERTNOAUTHOR'), 403);\n\t\t}\n\n\t\t// If there is no registration request (and there isn't a registration response) we are just saving the title.\n\t\tif (empty($registrationRequest))\n\t\t{\n\t\t\treturn $options;\n\t\t}\n\n\t\t// In any other case try to authorize the registration\n\t\ttry\n\t\t{\n\t\t\t$registration = $this->u2f->doRegister($registrationRequest[0], $registerResponse);\n\t\t}\n\t\tcatch (\\u2flib_server\\Error $err)\n\t\t{\n\t\t\tthrow new RuntimeException($err->getMessage(), 403);\n\t\t}\n\n\t\t// The code is valid. Unset the request data from the session and update the options\n\t\t$options['registrations'][] = $registration;\n\n\t\t// Return the configuration to be serialized\n\t\treturn $options;\n\t}", "title": "" }, { "docid": "ef3afe9bcb1d3d5086d56f2225f1a8b2", "score": "0.59053457", "text": "public function onLoginGuardTfaCaptive($record)\n\t{\n\t\t// Make sure we are enabled\n\t\tif (!$this->enabled)\n\t\t{\n\t\t\treturn array();\n\t\t}\n\n\t\t// Make sure we are actually meant to handle this method\n\t\tif ($record->method != $this->tfaMethodName)\n\t\t{\n\t\t\treturn array();\n\t\t}\n\n\t\t// Get the media version\n\t\tJLoader::register('LoginGuardHelperVersion', JPATH_SITE . '/components/com_loginguard/helpers/version.php');\n\t\t$mediaVersion = md5(LoginGuardHelperVersion::component('com_loginguard'));\n\n\t\t// We are going to load a JS file and use custom on-load JS to intercept the loginguard-captive-button-submit button\n\t\tif (version_compare(JVERSION, '3.6.999', 'le'))\n\t\t{\n\t\t\tJHtml::_('script', 'plg_loginguard_u2f/u2f-api.min.js', array(\n\t\t\t\t'version' => $mediaVersion,\n\t\t\t\t'relative' => true,\n\t\t\t\t'detectDebug' => true,\n\t\t\t), true, false, false, true);\n\n\t\t\tJHtml::_('script', 'plg_loginguard_u2f/u2f.min.js', array(\n\t\t\t\t'version' => $mediaVersion,\n\t\t\t\t'relative' => true,\n\t\t\t\t'detectDebug' => true,\n\t\t\t), true, false, false, true);\n\t\t}\n\t\telse\n\t\t// Joomla! 3.7 is broken. We have to use the new method AND MAKE SURE $attribs IS NOT EMPTY BECAUSE JOOMLA IS HORRIBLY BROKEN.\n\t\t{\n\t\t\tJHtml::_('script', 'plg_loginguard_u2f/u2f-api.min.js', array(\n\t\t\t\t'version' => $mediaVersion,\n\t\t\t\t'relative' => true,\n\t\t\t\t'detectDebug' => true,\n\t\t\t\t'framework' => true,\n\t\t\t\t'pathOnly' => false,\n\t\t\t\t'detectBrowser' => true,\n\t\t\t), array(\n\t\t\t\t'defer' => false,\n\t\t\t\t'async' => false,\n\t\t\t));\n\n\t\t\tJHtml::_('script', 'plg_loginguard_u2f/u2f.min.js', array(\n\t\t\t\t'version' => $mediaVersion,\n\t\t\t\t'relative' => true,\n\t\t\t\t'detectDebug' => true,\n\t\t\t\t'framework' => true,\n\t\t\t\t'pathOnly' => false,\n\t\t\t\t'detectBrowser' => true,\n\t\t\t), array(\n\t\t\t\t'defer' => false,\n\t\t\t\t'async' => false,\n\t\t\t));\n\t\t}\n\n\t\t// Load JS translations\n\t\tJText::script('PLG_LOGINGUARD_U2F_ERR_JS_OTHER');\n\t\tJText::script('PLG_LOGINGUARD_U2F_ERR_JS_CANNOTPROCESS');\n\t\tJText::script('PLG_LOGINGUARD_U2F_ERR_JS_CLIENTCONFIGNOTSUPPORTED');\n\t\tJText::script('PLG_LOGINGUARD_U2F_ERR_JS_INELIGIBLE_SIGN');\n\t\tJText::script('PLG_LOGINGUARD_U2F_ERR_JS_TIMEOUT');\n\n\t\t// Load the options from the record (if any), or from the entire method if the allowEntryBatching flag is set.\n\t\t$registrations = $this->getRegistrations($record);\n\n\t\t/**\n\t\t * The following code looks stupid. An explanation is in order.\n\t\t *\n\t\t * What we normally want to do is save the authentication data returned by getAuthenticateData into the session.\n\t\t * This is what is sent to the U2F key through the Javascript API and signed. The signature is posted back to\n\t\t * the form as the \"code\" which is read by onLoginGuardTfaValidate. That method will read the authentication\n\t\t * data from the session and pass it along with the key registration data (from the database) and the\n\t\t * authentication response (the \"code\" submitted in the form) to the U2F library for validation.\n\t\t *\n\t\t * Validation will work as long as the challenge recorded in the encrypted AUTHENTICATION RESPONSE matches, upon\n\t\t * decryption, the challenge recorded in the AUTHENTICATION DATA.\n\t\t *\n\t\t * I observed that for whatever stupid reason the browser was sometimes sending TWO requests to the server's\n\t\t * captive login page but only rendered the FIRST. This meant that the authentication data sent to the key had\n\t\t * already been overwritten in the session by the \"invisible\" second request. As a result the challenge would\n\t\t * not match and we'd get a validation error.\n\t\t *\n\t\t * The code below will attempt to read the authentication data from the session first. If it exists it will NOT\n\t\t * try to replace it (technically it replaces it with a copy of the same data - same difference!). If nothing\n\t\t * exists in the session, however, it WILL store the (random seeded) result of the getAuthenticateData method.\n\t\t * Therefore the first request to the captive login page will store a new set of authentication data whereas the\n\t\t * second, \"invisible\", request will just reuse the same data as the first request, fixing the observed issue in\n\t\t * a way that doesn't compromise security.\n\t\t *\n\t\t * In case you are wondering, yes, the data is removed from the session in the onLoginGuardTfaValidate method.\n\t\t * In fact it's the first thing we do after reading it, preventing constant reuse of the same set of challenges.\n\t\t *\n\t\t * That was fun to debug - for \"poke your eyes with a rusty fork\" values of fun.\n\t\t */\n\t\t$session = JFactory::getSession();\n\t\t$u2fAuthData = $this->u2f->getAuthenticateData($registrations);\n\t\t$u2fAuthData = $session->get('u2f.authentication', base64_encode(serialize($u2fAuthData)), 'com_loginguard');\n\t\t$u2fAuthData = unserialize(base64_decode($u2fAuthData));\n\t\t$u2fAuthDataJSON = json_encode($u2fAuthData);\n\t\t$session->set('u2f.authentication', base64_encode(serialize($u2fAuthData)), 'com_loginguard');\n\n\t\t$js = <<< JS\n\t\t\nfunction akeebaLoginGuardU2FOnClick()\n{\n\t window.jQuery('#loginguard-u2f-button').hide();\n\t\takeeba.LoginGuard.u2f.validate();\n\n\t\treturn false;\n}\n\t\t\nwindow.jQuery(document).ready(function($) {\n\takeeba.LoginGuard.u2f.authData = $u2fAuthDataJSON;\n\t\n\t$('#loginguard-captive-button-submit').click(function() {\n\t akeebaLoginGuardU2FOnClick();\n\t});\n\t\n\tsetTimeout(function() {\n\t akeebaLoginGuardU2FOnClick();\n\t}, 250);\n});\n\nJS;\n\t\tJFactory::getDocument()->addScriptDeclaration($js);\n\n\t\t$layoutPath = JPluginHelper::getLayoutPath('loginguard', 'u2f', 'validate');\n\t\tob_start();\n\t\tinclude $layoutPath;\n\t\t$html = ob_get_clean();\n\n\t\t$helpURL = $this->params->get('helpurl', 'https://github.com/akeeba/loginguard/wiki/U2F');\n\n\t\treturn array(\n\t\t\t// Custom HTML to display above the TFA form\n\t\t\t'pre_message' => JText::_('PLG_LOGINGUARD_U2F_LBL_INSTRUCTIONS'),\n\t\t\t// How to render the TFA code field. \"input\" (HTML input element) or \"custom\" (custom HTML)\n\t\t\t'field_type' => 'custom',\n\t\t\t// The type attribute for the HTML input box. Typically \"text\" or \"password\". Use any HTML5 input type.\n\t\t\t'input_type' => '',\n\t\t\t// Placeholder text for the HTML input box. Leave empty if you don't need it.\n\t\t\t'placeholder' => '',\n\t\t\t// Label to show above the HTML input box. Leave empty if you don't need it.\n\t\t\t'label' => '',\n\t\t\t// Custom HTML. Only used when field_type = custom.\n\t\t\t'html' => $html,\n\t\t\t// Custom HTML to display below the TFA form\n\t\t\t'post_message' => '',\n\t\t\t// Should I hide the submit button? Useful if you need to render your own buttons or use a method which is meant to auto-submit upon doing a certain action.\n\t\t\t'hide_submit' => true,\n\t\t\t// URL for help content\n\t\t\t'help_url' => $helpURL,\n\t\t\t// Allow authentication against all entries of this TFA method. Otherwise authentication takes place against a SPECIFIC entry at a time.\n\t\t\t'allowEntryBatching' => $this->params->get('allowEntryBatching', 1),\n\t\t);\n\t}", "title": "" }, { "docid": "369d6626d3e612bdc5ce271c112b56b5", "score": "0.58517605", "text": "public static function tfa()\n {\n $user = new CAT_User(CAT_Helper_Validate::sanitizePost('user'));\n echo CAT_Object::json_success($user->tfa_enabled());\n }", "title": "" }, { "docid": "bfbdba371617b0a682429885ead8f030", "score": "0.5727221", "text": "private function AskAccount () {\n $helpBts = array (); \n $helpBts['account'] = helpbutton ('duepublico/duepAccount/duepublicoaccount', '', '', true, false, '', true, false);\n return $helpBts;\n }", "title": "" }, { "docid": "c157d78f1c7de1f9fbb5db77f66c6699", "score": "0.5681326", "text": "public static function actions()\n\t{\n\t\t$return = array();\n\t\t\n\t\tif ( \\IPS\\core\\ProfileFields\\Field::fieldData() )\n\t\t{\n\t\t\t$return['profile_fields'] = 'complete_profile_app__core_ProfileFields';\n\t\t}\n\t\t\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "a03ed8cd9bee27c0968db1db01b9485b", "score": "0.5568722", "text": "public function acpForm()\n\t{\t\t\n\t\t$return = array(\n\t\t\tarray( 'login_handler_oauth_settings', \\IPS\\Member::loggedIn()->language()->addToStack( static::getTitle() . '_info', FALSE, array( 'sprintf' => array( (string) $this->redirectionEndpoint() ) ) ) ),\n\t\t\t'consumer_key'\t\t=> new \\IPS\\Helpers\\Form\\Text( 'oauth_consumer_key', ( isset( $this->settings['consumer_key'] ) ) ? $this->settings['consumer_key'] : '', TRUE ),\n\t\t\t'consumer_secret'\t=> new \\IPS\\Helpers\\Form\\Text( 'oauth_consumer_secret', ( isset( $this->settings['consumer_secret'] ) ) ? $this->settings['consumer_secret'] : '', TRUE ),\n\t\t);\t\n\t\t\n\t\t$return[] = 'account_management_settings';\n\t\t$return['show_in_ucp'] = new \\IPS\\Helpers\\Form\\Radio( 'login_handler_show_in_ucp', isset( $this->settings['show_in_ucp'] ) ? $this->settings['show_in_ucp'] : 'always', FALSE, array(\n\t\t\t'options' => array(\n\t\t\t\t'always'\t\t=> 'login_handler_show_in_ucp_always',\n\t\t\t\t'loggedin'\t\t=> 'login_handler_show_in_ucp_loggedin',\n\t\t\t),\n\t\t) );\n\t\t\n\t\t$nameChangesDisabled = array();\n\t\tif ( $forceNameHandler = static::handlerHasForceSync( 'name', $this ) )\n\t\t{\n\t\t\t$nameChangesDisabled[] = 'force';\n\t\t\t\\IPS\\Member::loggedIn()->language()->words['login_update_changes_yes_name_desc'] = \\IPS\\Member::loggedIn()->language()->addToStack( 'login_update_changes_yes_disabled', FALSE, array( 'sprintf' => $forceNameHandler->_title ) );\n\t\t}\n\t\t$return['update_name_changes'] = new \\IPS\\Helpers\\Form\\Radio( 'login_update_name_changes', isset( $this->settings['update_name_changes'] ) ? $this->settings['update_name_changes'] : 'disabled', FALSE, array( 'options' => array(\n\t\t\t'force'\t\t=> 'login_update_changes_yes_name',\n\t\t\t'optional'\t=> 'login_update_changes_optional',\n\t\t\t'disabled'\t=> 'login_update_changes_no',\n\t\t), 'disabled' => $nameChangesDisabled ), NULL, NULL, NULL, 'login_update_name_changes_inc_optional' );\n\t\t\n\t\t$emailChangesDisabled = array();\n\t\tif ( $forceEmailHandler = static::handlerHasForceSync( 'email', $this ) )\n\t\t{\n\t\t\t$emailChangesDisabled[] = 'force';\n\t\t\t\\IPS\\Member::loggedIn()->language()->words['login_update_changes_yes_email_desc'] = \\IPS\\Member::loggedIn()->language()->addToStack( 'login_update_changes_yes_disabled', FALSE, array( 'sprintf' => $forceEmailHandler->_title ) );\n\t\t}\n\t\t$return['update_email_changes'] = new \\IPS\\Helpers\\Form\\Radio( 'login_update_email_changes', isset( $this->settings['update_email_changes'] ) ? $this->settings['update_email_changes'] : 'optional', FALSE, array( 'options' => array(\n\t\t\t'force'\t\t=> 'login_update_changes_yes_email',\n\t\t\t'optional'\t=> 'login_update_changes_optional',\n\t\t\t'disabled'\t=> 'login_update_changes_no',\n\t\t), 'disabled' => $emailChangesDisabled ), NULL, NULL, NULL, 'login_update_email_changes_inc_optional' );\n\t\t\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "83c96b6b4debbe20ca22044b1cebc41c", "score": "0.5518112", "text": "static function plInfo ()\n {\n return array(\n 'plShortName' => _('Demo Plugin'),\n 'plDescription' => _('Edit some useless personal information'),\n 'plSelfModify' => TRUE, // Does this plugin have an owner that might be able to edit its entry\n 'plObjectType' => array('user'),\n\n // But simplePlugin can generate the ACL list for us\n 'plProvidedAcls' => parent::generatePlProvidedAcls(self::getAttributesInfo())\n );\n }", "title": "" }, { "docid": "334763636ed553c932854212338a90fd", "score": "0.5506917", "text": "public function account(){\n\t\t$page = $this->uri->segment(2);\n\t\t$action = $this->uri->segment(3);\n\n\t\t// if($action == \"password\"){\n\t\t// \t$sub_action = $this->uri->segment(4);\n\t\t// \tif (method_exists ( $this , $action . '_' . $sub_action )) {\n\t\t// \t\t$this->{ $action . '_' . $sub_action }();\n\t\t// \t}\n\t\t// \telse{\n\t\t// \t\tshow_404();\n\t\t// \t}\n\t\t// }else{\n\t\t\tif (method_exists ( $this , $page . '_' . $action )) {\n\t\t\t\t$this->{ $page . '_' . $action }();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tshow_404();\n\t\t\t}\n\t\t// }\n\t}", "title": "" }, { "docid": "b7d3cb1a8f96840e49695f256bd4cf5a", "score": "0.5504478", "text": "public function component_info(){\n\t\t\n\t\t$data = array();\n\t\t$data['title'] = __('Login','admin2020');\n\t\t$data['option_name'] = 'admin2020_admin_login';\n\t\t$data['description'] = __('Styles the admin login page.','admin2020');\n\t\treturn $data;\n\t\t\n\t}", "title": "" }, { "docid": "4df45e437f52f01f42a27add090cd3cf", "score": "0.548905", "text": "public function pluginDetails()\n {\n return [\n 'name' => 'User Plus',\n 'description' => 'Additional fields',\n 'author' => 'Codecycler',\n 'icon' => 'icon-user-add'\n ];\n }", "title": "" }, { "docid": "9797b3fac9258d924ae871595572933d", "score": "0.5465445", "text": "public function pluginDetails()\n {\n return [\n 'name' => 'PageFields',\n 'description' => 'Manage content structure for page',\n 'author' => 'Mateusz Kulpa',\n 'icon' => 'icon-leaf'\n ];\n }", "title": "" }, { "docid": "08322724035071ead481bc61d54e99eb", "score": "0.54368746", "text": "public function payment_fields() {\n\t\t$this->redirection_info();\n\t\t$integration_type_cls = 'integration_type_' . $this->id;\n\t\techo '<input type=\"hidden\" class=\"' . wp_kses_data( $integration_type_cls ) . '\" value=\"' . wp_kses_data( $this->get_integration_type() ) . '\" />';\n\t\tif ( class_exists( 'APS_Public' ) ) {\n\t\t\tAPS_Public::load_installment_wizard( $this->get_integration_type(), $this->aps_config->get_enabled_tokenization(), $this->aps_config->have_subscription(), $this->aps_config->is_authorization() );\n\t\t}\n\t}", "title": "" }, { "docid": "ae5f1929106a6b95ac15f93680d504ac", "score": "0.542294", "text": "private function callAdminLoadTA() {\n $_SESSION['Target'] = new TA();\n $_SESSION['Target']->loadTA($_POST['userName']);\n return $_SESSION['Target']->printInfo();\n }", "title": "" }, { "docid": "6d1c5f867ecca6b7a9461fd8b55b5c0f", "score": "0.54110914", "text": "protected function _getFields()\n\t{\n\t\t$options = XenForo_Application::get('options');\n\t\treturn array(\n\t\t\t'dark_taigachat' => array(\n\t\t\t\t'id' \t => array('type' => self::TYPE_UINT, 'autoIncrement' => true),\n\t\t\t\t'user_id' => array('type' => self::TYPE_UINT, 'required' => true),\n\t\t\t\t'date' => array('type' => self::TYPE_UINT, 'required' => true, 'default' => XenForo_Application::$time),\n\t\t\t\t'username' => array('type' => self::TYPE_STRING, 'required' => true, 'maxLength' => 50),\n\t\t\t\t'message' => array('type' => self::TYPE_STRING, 'required' => true, 'requiredError' => 'please_enter_valid_message'),\n\t\t\t\t'activity' => array('type' => self::TYPE_BOOLEAN, 'required' => true, 'default' => 0),\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "26c3a7455089dc0f967ae99b9a632e9f", "score": "0.5368765", "text": "function wizardArray()\t{\n\t\tglobal $LANG,$TBE_MODULES_EXT,$TYPO3_DB,$TCA;\n\n\t\t$GOBACKEND = $LANG;\n\t\t$GOBACKEND->includeLLFile('EXT:go_backend_layout/locallang.xml');\n\n\t\t$defVals = t3lib_div::implodeArrayForUrl('defVals', is_array($this->defVals) ? $this->defVals : array());\n\n\t\t$wizardItems = array(\n\t\t\t//'common' => array('header'=>$LANG->getLL('common')),\n\t\t\t'gosign_1' => array(\n\t\t\t\t'icon'=>'../typo3conf/ext/go_backend_layout/images/wizard_header.png',\n\t\t\t\t'title'=>$GOBACKEND->getLL('wizard.header'),\n\t\t\t\t'description'=>$GOBACKEND->getLL('wizard.header.description'),\n\t\t\t\t'params'=>'&defVals[tt_content][CType]=header'.$defVals,\n\t\t\t),\n\t\t\t'gosign_2' => array(\n\t\t\t\t'icon'=>'../typo3conf/ext/go_backend_layout/images/wizard_text.png',\n\t\t\t\t'title'=>$GOBACKEND->getLL('wizard.text'),\n\t\t\t\t'description'=>$GOBACKEND->getLL('wizard.text.description'),\n\t\t\t\t'params'=>'&defVals[tt_content][CType]=text'.$defVals,\n\t\t\t),\n\t\t\t'gosign_3' => array(\n\t\t\t\t'icon'=>'../typo3conf/ext/go_backend_layout/images/wizard_textpic2.png',\n\t\t\t\t'title'=>$GOBACKEND->getLL('wizard.textpic2'),\n\t\t\t\t'description'=>$GOBACKEND->getLL('wizard.textpic2.description'),\n\t\t\t\t'params'=>'&defVals[tt_content][CType]=textpic&defVals[tt_content][imageorient]=2'.$defVals,\n\t\t\t),\n\t\t\t'gosign_4' => array(\n\t\t\t\t'icon'=>'../typo3conf/ext/go_backend_layout/images/wizard_image2.png',\n\t\t\t\t'title'=>$GOBACKEND->getLL('wizard.image2'),\n\t\t\t\t'description'=>$GOBACKEND->getLL('wizard.image2.description'),\n\t\t\t\t'params'=>'&defVals[tt_content][CType]=image&defVals[tt_content][imageorient]=2'.$defVals,\n\t\t\t),\n\t\t\t'gosign_5' => array(\n\t\t\t\t'icon'=>'../typo3conf/ext/go_backend_layout/images/wizard_table.png',\n\t\t\t\t'title'=>$GOBACKEND->getLL('wizard.table'),\n\t\t\t\t'description'=>$GOBACKEND->getLL('wizard.table.description'),\n\t\t\t\t'params'=>'&defVals[tt_content][CType]=table'.$defVals,\n\t\t\t),\n\t\t\t'gosign_6' => array(\n\t\t\t\t'icon'=>'../typo3conf/ext/go_backend_layout/images/wizard_bullets.png',\n\t\t\t\t'title'=>$GOBACKEND->getLL('wizard.bullets'),\n\t\t\t\t'description'=>$GOBACKEND->getLL('wizard.bullets.description'),\n\t\t\t\t'params'=>'&defVals[tt_content][CType]=bullets'.$defVals,\n\t\t\t),\n\t\t\t'gosign_7' => array(\n\t\t\t\t'icon'=>'../typo3conf/ext/go_backend_layout/images/wizard_html.png',\n\t\t\t\t'title'=>$GOBACKEND->getLL('wizard.html'),\n\t\t\t\t'description'=>$GOBACKEND->getLL('wizard.html.description'),\n\t\t\t\t'params'=>'&defVals[tt_content][CType]=html'.$defVals,\n\t\t\t),\n\t\t);\n\n\t\t// #\n\t\t// ### Mansoor Ahmad - you set here CE, which don't shown on the wizard list\n\t\t// #\n\t\t$ignoreList\t= 'header,text,textpic,image,bullets,table,media,search,shortcut,div,html,list,menu,uploads,login,mailform,templavoila_pi1,dlstats_pi1,1,go_stopcslide_pi1';\n\t\t$wizardItems = $this->parseWizard($ignoreList, $wizardItems, $defVals);\n\n\t\t// Flexible content elements:\n\t\t$positionPid = $this->id;\n\t\t$dataStructureRecords = array();\n\t\t$storageFolderPID = $this->apiObj->getStorageFolderPid($positionPid);\n\n\t\t// Fetch data structures stored in the database:\n\t\t$addWhere = $this->buildRecordWhere('tx_templavoila_datastructure');\n\t\t$res = $TYPO3_DB->exec_SELECTquery(\n\t\t\t'*',\n\t\t\t'tx_templavoila_datastructure',\n\t\t\t'pid='.intval($storageFolderPID).' AND scope=2' . $addWhere .\n\t\t\t\tt3lib_BEfunc::deleteClause('tx_templavoila_datastructure').\n\t\t\t\tt3lib_BEfunc::versioningPlaceholderClause('tx_templavoila_datastructure')\n\t\t);\n\t\twhile(FALSE !== ($row = $TYPO3_DB->sql_fetch_assoc($res))) {\n\t\t\t$dataStructureRecords[$row['uid']] = $row;\n\t\t}\n/*\n\t\t// Fetch static data structures which are stored in XML files:\n\t\tif (is_array($GLOBALS['TBE_MODULES_EXT']['xMOD_tx_templavoila_cm1']['staticDataStructures']))\t{\n\t\t\tforeach($GLOBALS['TBE_MODULES_EXT']['xMOD_tx_templavoila_cm1']['staticDataStructures'] as $staticDataStructureArr)\t{\n\t\t\t\t$staticDataStructureArr['_STATIC'] = TRUE;\n\t\t\t\t$dataStructureRecords[$staticDataStructureArr['path']] = $staticDataStructureArr;\n\t\t\t}\n\t\t}\n*/\n\t\t// Fetch all template object records which uare based one of the previously fetched data structures:\n\t\t$templateObjectRecords = array();\n\t\t$addWhere = $this->buildRecordWhere('tx_templavoila_tmplobj');\n\t\t$res = $TYPO3_DB->exec_SELECTquery(\n\t\t\t'*',\n\t\t\t'tx_templavoila_tmplobj',\n\t\t\t'pid='.intval($storageFolderPID).' AND parent=0' . $addWhere .\n\t\t\t\tt3lib_BEfunc::deleteClause('tx_templavoila_tmplobj').\n\t\t\t\tt3lib_BEfunc::versioningPlaceholderClause('tx_templavoila_tmpl'), '', 'sorting'\n\t\t);\n\n\t\twhile(FALSE !== ($row = $TYPO3_DB->sql_fetch_assoc($res))) {\n\t\t\tif (is_array($dataStructureRecords[$row['datastructure']])) {\n\t\t\t\t$templateObjectRecords[] = $row;\n\t\t\t}\n\t\t}\n\n\t\t// Add the filtered set of TO entries to the wizard list:\n\t\t$wizardItems['fce']['header'] = $LANG->getLL('fce');\n foreach($templateObjectRecords as $index => $templateObjectRecord) {\n $tmpFilename = 'uploads/tx_templavoila/'.$templateObjectRecord['previewicon'];\n $wizardItems['fce_'.$index]['icon'] = (@is_file(PATH_site.$tmpFilename)) ? ('../' . $tmpFilename) : ('../' . t3lib_extMgm::siteRelPath('templavoila').'res1/default_previewicon.gif');\n $wizardItems['fce_'.$index]['description'] = $templateObjectRecord['description'] ? htmlspecialchars($templateObjectRecord['description']) : $LANG->getLL ('template_nodescriptionavailable');\n $wizardItems['fce_'.$index]['title'] = $templateObjectRecord['title'];\n $wizardItems['fce_'.$index]['params'] = '&defVals[tt_content][CType]=templavoila_pi1&defVals[tt_content][tx_templavoila_ds]='.$templateObjectRecord['datastructure'].'&defVals[tt_content][tx_templavoila_to]='.$templateObjectRecord['uid'].$defVals;\n $index ++;\n }\n\n\t\t// PLUG-INS:\n\t\tif (is_array($TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']))\t{\n\t\t\t$wizardItems['plugins'] = array('header'=>$LANG->getLL('plugins'));\n\t\t\treset($TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']);\n\t\t\twhile(list($class,$path)=each($TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']))\t{\n\t\t\t\t$modObj = t3lib_div::makeInstance($class);\n\t\t\t\t$wizardItems = $modObj->proc($wizardItems);\n\t\t\t}\n\t\t}\n\n\t\t// Remove elements where preset values are not allowed:\n\t\t$this->removeInvalidElements($wizardItems);\n\t\treturn $wizardItems;\n\t}", "title": "" }, { "docid": "05f934edfd5ec2fb70a4189f36cd1701", "score": "0.5359138", "text": "public function get_info()\n\t\t{\n\t\t\treturn array(\n\t\t\t\t'name'=>'Authorize.Net SIM',\n\t\t\t\t'custom_payment_form'=>'backend_payment_form.htm',\n\t\t\t\t'description'=>'Authorize.net Simple Integration Method with hosted payment form.'\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "151aa652a1cc43d622f5a1adf5f10790", "score": "0.53556657", "text": "function info()\n\t{\n\t\t$class=str_replace('hook_pointstore_','',strtolower(get_class($this)));\n\n\t\tif (get_option('is_on_'.$class.'_buy')=='0') return array();\n\n\t\t$next_url=build_url(array('page'=>'_SELF','type'=>'action','id'=>$class),'_SELF');\n\t\treturn array(do_template('POINTSTORE_'.strtoupper($class),array('NEXT_URL'=>$next_url)));\n\t}", "title": "" }, { "docid": "e2cde51636ced3c560d9cf89e6b07e8f", "score": "0.53473395", "text": "public function pluginDetails()\n {\n return [\n 'name' => 'GDPRUser',\n 'description' => 'Encrypts user values as per GDPR law',\n 'author' => 'Rebel59',\n 'icon' => 'icon-shield'\n ];\n }", "title": "" }, { "docid": "7ead9d0167d33b777281352da18e4319", "score": "0.53364396", "text": "public function info() {\n return array(\n 'text_type' => 'ZTEXT',\n 'module' => 'ZTEXT',\n 'text_type_long' => $this->__('ZTEXT Page Index'),\n 'allow_multiple' => true,\n 'form_content' => false,\n 'form_refresh' => false,\n 'show_preview' => true,\n 'admin_tableless' => true);\n }", "title": "" }, { "docid": "4ec7586bc1d6bd14d2c2670cb57dea62", "score": "0.5335774", "text": "function urway_MetaData() {\n return array(\n 'DisplayName' => 'UrWay',\n 'APIVersion' => '2.0', // Use API Version 1.1\n 'DisableLocalCredtCardInput' => true,\n 'TokenisedStorage' => false,\n );\n}", "title": "" }, { "docid": "377da281cf298b09d2e62eca20dcfc4c", "score": "0.53327", "text": "public function showForm()\n {\n if (Configs::get('activated') && Auth::getUser()->userverify_dateverified <= 0) {\n $translates = [\n 'entermobile' => Lang::get('uxms.userverify::lang.verifycomponent.first_step.entermobile'),\n 'donotanswer' => Lang::get('uxms.userverify::lang.verifycomponent.first_step.donotanswer'),\n 'placeholder' => Lang::get('uxms.userverify::lang.verifycomponent.first_step.placeholder'),\n 'next' => Lang::get('uxms.userverify::lang.verifycomponent.first_step.next'),\n ];\n\n return $this->firstStep($translates);\n }\n }", "title": "" }, { "docid": "b24f2eb221bba710050622e25ee280d1", "score": "0.53266937", "text": "function getSignupInfo($pMain) {\r\n\tglobal $db_raid, $pConfig;\r\n\r\n\tif($pMain->checkPerm('allow_signup')) {\r\n\t\t// clear signups\r\n\t\tunset($_SESSION['signups']);\r\n\r\n\t\t// get a list of all raids and status\r\n\t\t$sql['SELECT'] = 's.raid_id, s.cancel, s.queue, s.comments';\r\n\t\t$sql['FROM'] = array('raid AS r','signups as s','character as c');\r\n\t\t$sql['WHERE'] = 'r.raid_id=s.raid_id AND s.character_id=c.character_id AND c.profile_id='.$pMain->getProfileID();\r\n\t\t$result = $db_raid->set_query('select',$sql, __FILE__, __LINE__);\r\n\r\n\t\twhile($data = $db_raid->sql_fetchrow($result)) {\r\n\t\t\t$_SESSION['signups'][$data['raid_id']]['cancel'] = $data['cancel'];\r\n\t\t\t$_SESSION['signups'][$data['raid_id']]['queue'] = $data['queue'];\r\n\t\t\t$_SESSION['signups'][$data['raid_id']]['comments'] = $data['comments'];\r\n\t\t}\r\n\t} else {\r\n\t\treturn false;\r\n\t}\r\n}", "title": "" }, { "docid": "46a92dde7c225c614ac60f7b6b1f075d", "score": "0.5318167", "text": "function fcards_options() {\n $titan = TitanFramework::getInstance( 'fcards' );\n\n // Create my admin panel\n $panel = $titan->createAdminPanel( array(\n 'name' => 'Theme Options',\n 'title' => 'fcards Settings',\n 'icon' => 'dashicons-admin-appearance'\n ) );\n\n $general = $panel->createTab( array(\n 'name' => 'General',\n 'title' => 'General Options',\n ) );\n\n\n $general->createOption( array(\n 'name' => 'Default Settings',\n 'type' => 'heading',\n ) );\n\n $general->createOption( array(\n 'name' => 'Upload Favicon Default',\n 'id' => 'my_favicon_default',\n 'type' => 'upload',\n 'desc' => 'Upload your Favicon size(16x16 or 32x32 or 64x64)'\n ) );\n\n $general->createOption( array(\n 'name' => 'Upload Main Logo',\n 'id' => 'logo_main',\n 'type' => 'upload',\n 'desc' => 'Upload your main logo'\n ) );\n\n $general->createOption( array(\n 'name' => 'Upload Banner (Home Page)',\n 'id' => 'logo_sub_home',\n 'type' => 'upload',\n 'desc' => 'Upload Banner for Home'\n ) );\n\n $general->createOption( array(\n 'name' => 'Upload Banner (About Page)',\n 'id' => 'logo_sub_about',\n 'type' => 'upload',\n 'desc' => 'Upload Banner for About'\n ) );\n\n $general->createOption( array(\n 'name' => 'Upload Banner (Events Page)',\n 'id' => 'logo_sub_event',\n 'type' => 'upload',\n 'desc' => 'Upload Banner for Events'\n ) );\n\n $general->createOption( array(\n 'name' => 'Upload Banner (Consultancy Page)',\n 'id' => 'logo_sub_consultancy',\n 'type' => 'upload',\n 'desc' => 'Upload Banner for Consultancy'\n ) );\n\n $general->createOption( array(\n 'name' => 'Upload Banner (News Page)',\n 'id' => 'logo_sub_news',\n 'type' => 'upload',\n 'desc' => 'Upload Banner for News'\n ) );\n\n $general->createOption( array(\n 'name' => 'Upload Banner (Contact Page)',\n 'id' => 'logo_sub_contact',\n 'type' => 'upload',\n 'desc' => 'Upload Banner for Contact'\n ) );\n\n $general->createOption( array(\n 'name' => 'Upload Banner (Child Friendly Cities Page)',\n 'id' => 'logo_sub_child',\n 'type' => 'upload',\n 'desc' => 'Upload Banner for Child Friendly Cities'\n ) );\n\n\n $general->createOption( array(\n 'name' => 'Telephone No.',\n 'id' => 'tel_no',\n 'type' => 'text',\n 'desc' => 'Enter Telephone No.'\n ) );\n\n $general->createOption( array(\n 'name' => 'Footer Settings',\n 'type' => 'heading',\n ) );\n\n $general->createOption( array(\n 'name' => 'Upload Footer Logo',\n 'id' => 'logo_footer',\n 'type' => 'upload',\n 'desc' => 'Upload Footer Logo'\n ) );\n\n $general->createOption( array (\n 'name' => 'Footer Logo Link',\n 'id' => 'footer_link',\n 'type' => 'text'\n ) );\n\n $general->createOption( array(\n 'name' => 'Footer Email ID',\n 'id' => 'mail_id',\n 'type' => 'text',\n 'desc' => 'Enter Email ID'\n ) );\n\n $general->createOption( array(\n 'type' => 'save',\n ) );\n\n}", "title": "" }, { "docid": "db5fc0bbbfcc5fc2b3604fb4127b477d", "score": "0.53140897", "text": "function getFormElements()\n{\n $fields = array('fullname', 'email', 'password', 'confirm_password');\n \n return $fields;\n}", "title": "" }, { "docid": "88fe8ed95e90154fa29cf5ec6f886a0c", "score": "0.5313708", "text": "function pinata_getmoduleinfo(){\n\t$info = array(\n\t\t\"name\"=>\"Pinata\",\n\t\t\"version\"=>\"2.2\",\n\t\t\"author\"=>\"`@Elessa and `4Talisman\",\n\t\t\"category\"=>\"Forest Specials\",\n\t\t\"download\"=>\"core_module\",\n\t\t\"settings\"=>array(\n\t\t\t\"Pinata - Garden Settings (Forest is always active),title\",\n\t\t\t\"active\"=>\"Always active in the Gardens?,bool|0\",\n\t\t\t\"maxhit\"=>\"How many times can a player hit the pinata in the gardens each day?,int|1\",\n\t\t\t\"party\"=>\"Active in Gardens during Garden Parties?,bool|1\",\n\t\t\t\"This setting will be automagically overridden if the garden party module is not active,note\",\n\t\t),\n\t\t\"prefs\"=>array(\n\t\t\t\"Pinata User Prefs, title\",\n\t\t\t\"hittoday\"=>\"Times the player has hit the pinata today,int|0\",\n\t\t)\t\t\t\n\t);\n\treturn $info;\n}", "title": "" }, { "docid": "9f06df4f3db44a7bd0b2ff89518f3f0a", "score": "0.5308331", "text": "function GetPageSetupData(){}", "title": "" }, { "docid": "9f06df4f3db44a7bd0b2ff89518f3f0a", "score": "0.5308331", "text": "function GetPageSetupData(){}", "title": "" }, { "docid": "b0fb3294fd86676a6a45966bddcfa558", "score": "0.52866817", "text": "static function plInfo()\n {\n return array(\n \"plShortName\" => _(\"Fax reports\"),\n \"plDescription\" => _(\"Fax reports\").\"&nbsp;<i>\"._(\"All entries are readonly\").\"</i>\",\n \"plIcon\" => \"plugins/fax/images/iconReport.png\",\n \"plSelfModify\" => TRUE,\n \"plSection\" => \"addons\",\n \"plPriority\" => 5,\n \"plCategory\" => array(\"faxreport\" => array(\"description\" => _(\"Fax reports\"),\n \"objectClass\" => array())),\n\n \"plProvidedAcls\" => array(\n \"detailedView\" => _(\"Detailed view\"),\n \"id\" => _(\"Fax ID\"),\n \"queuingtime\" => _(\"Date\").\"&nbsp;/&nbsp;\"._(\"Time\"),\n \"status\" => _(\"Status\"),\n \"senderid\" => _(\"Sender ID\"),\n \"sendermsn\" => _(\"Sender MSN\"),\n \"receiverid\" => _(\"Receiver ID\"),\n \"receivermsn\" => _(\"Receiver MSN\"),\n \"pages\" => _(\"Number of pages\"),\n \"statusmessage\" => _(\"Status Message\"),\n \"transfertime\" => _(\"Transfer time\")\n )\n );\n }", "title": "" }, { "docid": "f4f257007f92b62280fca3e20bada522", "score": "0.52802014", "text": "public static function show_usermeta(){\n global $profileuser, $wpdb;\n\n $meta_keys = array();\n\n //If running version prior to Formidable 2.0\n if ( FrmRegAppHelper::is_below_2() ) {\n $form_options = $wpdb->get_col(\"SELECT options FROM {$wpdb->prefix}frm_forms WHERE is_template=0 AND status='published'\");\n\n foreach($form_options as $opts){\n $opts = maybe_unserialize($opts);\n if ( !isset($opts['reg_usermeta']) || empty($opts['reg_usermeta']) ) {\n continue;\n }\n \n foreach ( $opts['reg_usermeta'] as $meta_key => $field_id ) {\n if ( $meta_key != 'user_url' ) {\n $meta_keys[$meta_key] = $field_id;\n }\n }\n }\n //If running Formidable 2.0+\n } else {\n // Get registration settings for all forms\n $register_actions = FrmFormActionsHelper::get_action_for_form( 'all', 'register' );\n foreach ( $register_actions as $opts ) {\n if ( !isset( $opts->post_content['reg_usermeta'] ) || empty( $opts->post_content['reg_usermeta'] ) ) {\n continue;\n }\n\n foreach ( $opts->post_content['reg_usermeta'] as $usermeta_vars ) {\n if ( $usermeta_vars['meta_name'] != 'user_url' ) {\n $meta_keys[$usermeta_vars['meta_name']] = $usermeta_vars['field_id'];\n }\n }\n }\n }\n\n //TODO: prevent duplicate user meta from showing\n \n if ( !empty($meta_keys) ) {\n include(FrmRegAppHelper::path() .'/views/show_usermeta.php');\n }\n }", "title": "" }, { "docid": "e9dacf2c8d9dac2ef2d089035919500f", "score": "0.5269489", "text": "public function getBasic()\n {\n $data = array(\n 'username' => $this->getUsername(),\n 'user_id' => $this->getId());\n $userpref = $this->getUserpref();\n if (array_key_exists('showhelp', $userpref) && $userpref['showhelp'] === true) {\n $data['showhelp'] = true;\n } else {\n $data['showhelp'] = false;\n }\n\n return $data;\n }", "title": "" }, { "docid": "3a9b1046d6017f669d4b39ee56435d5a", "score": "0.5234557", "text": "function setting_fields_setup() {\n// register our settings\n register_setting( 'autotrack-settings-fields', 'at_username' );\n register_setting( 'autotrack-settings-fields', 'at_password');\n register_setting( 'autotrack-settings-fields', 'at_consumer_id' );\n register_setting( 'autotrack-settings-fields', 'at_dealer_id' );\n register_setting( 'autotrack-settings-fields', 'at_form_short_code' );\n register_setting( 'autotrack-settings-fields', 'at_number_of_occasions_on_home' );\n register_setting( 'autotrack-settings-fields', 'at_name_of_button_on_home' );\n register_setting( 'autotrack-settings-fields', 'at_url_page_adverts' );\n register_setting( 'autotrack-settings-fields', 'at_period_after_sell' );\n// themes\n register_setting( 'autotrack-settings-fields', 'at_theme' );\n// colors\n register_setting( 'autotrack-settings-fields', 'at_font_color' );\n register_setting( 'autotrack-settings-fields', 'at_attribute_label' );\n register_setting( 'autotrack-settings-fields', 'at_attribute_value' );\n register_setting( 'autotrack-settings-fields', 'at_header_color' );\n register_setting( 'autotrack-settings-fields', 'at_button_color' );\n register_setting( 'autotrack-settings-fields', 'at_price_color' );\n// Home page cars\n register_setting( 'autotrack-settings-fields', 'at_home_cars' );\n\n register_setting( 'autotrack-settings-fields', 'show_btw' );\n register_setting( 'autotrack-settings-fields', 'taxable' );\n// Ocasions sort by\n register_setting( 'autotrack-settings-fields', 'at_sort_by' );\n// Ascending/Descending ()\n register_setting( 'autotrack-settings-fields', 'at_sort_by_orientation' );\n// Layout mode list/table\n register_setting( 'autotrack-settings-fields', 'at_overview_layoutmode' );\n// Details mode list/tabs\n register_setting( 'autotrack-settings-fields', 'at_details_view_mode' );\n// Detail page / sortable sidebar blocks\n register_setting( 'autotrack-settings-fields', 'at_sidebar_blocks' );\n// Emails to receive the message\n register_setting( 'autotrack-settings-fields', 'receiver_emails' );\n// Social media\n register_setting( 'autotrack-settings-fields', 'at_social_icons' );\n// Shedule\n register_setting( 'autotrack-settings-fields', 'at_shedule' );\n// contact information\n register_setting( 'autotrack-settings-fields', 'at_contact_info' );\n// thankyou text\n register_setting( 'autotrack-settings-fields', 'at_thank_you_text' );\n// Social media\n register_setting( 'autotrack-settings-fields', 'socialShareOnOff' );\n register_setting( 'autotrack-settings-fields', 'at_addres_info' );\n\n register_setting( 'autotrack-settings-fields', 'at_go_back_text' );\n register_setting( 'autotrack-settings-fields', 'at_go_back_status' );\n register_setting( 'autotrack-settings-fields', 'at_link_to_thx_page' );\n register_setting( 'autotrack-settings-fields', 'thx_mess' );\n register_setting( 'autotrack-settings-fields', 'at_iframe' );\n\n}", "title": "" }, { "docid": "3926b5816591fb4e590d95026e2be590", "score": "0.5208182", "text": "function get_workshop_application_form_user_details() {\n\t$current_user = wp_get_current_user();\n\n\tif ( ! $current_user instanceof WP_User ) {\n\t\treturn array();\n\t}\n\n\treturn array(\n\t\t'wporg-user-name' => $current_user->user_login,\n\t\t'first-name' => $current_user->user_firstname,\n\t\t'last-name' => $current_user->user_lastname,\n\t\t'email' => $current_user->user_email,\n\t);\n}", "title": "" }, { "docid": "56f2a6249f8f2b84c0a24cd77f7e05bc", "score": "0.5207255", "text": "public function getMembershipProfileFields()\n {\n return array('homePhone', 'address1', 'address2','city','postcode');\n }", "title": "" }, { "docid": "a37ec8c01450043e2e6acd26309aa476", "score": "0.52067596", "text": "function getInfo()\n {\n\n $arr_info = array(\n 'name' => 'Options Logger',\n 'description' => 'Logs updates to WordPress settings',\n 'capability' => 'manage_options',\n 'messages' => array(\n // 'option_updated' => __('Updated option \"{option}\" on settings page \"{option_page}\"', \"simple-history\"),\n 'option_updated' => __('Updated option \"{option}\"', 'simple-history'),\n /*\n Updated option \"default_comment_status\" on settings page \"discussion\"\n Edited option \"default_comment_status\" on settings page \"discussion\"\n Modified option \"default_comment_status\" on settings page \"discussion\"\n\n Edited settings page \"discussion\" and the \"default_comment_status\" options\n\n */\n ),\n 'labels' => array(\n 'search' => array(\n 'label' => _x('Options', 'Options logger: search', 'simple-history'),\n 'options' => array(\n _x('Changed options', 'Options logger: search', 'simple-history') => array(\n 'option_updated'\n ),\n ),\n ),// end search array\n ),// end labels\n );\n\n return $arr_info;\n }", "title": "" }, { "docid": "f5f3eba7998ac3eb79255c9ba8d04a6b", "score": "0.5205896", "text": "public function payment_fields() {\n\t\tif ( is_checkout() ) {\n\t\t\t$this->redirection_info();\n\t\t\t$integration_type_cls = 'integration_type_' . $this->id;\n\t\t\techo '<input type=\"hidden\" class=\"' . wp_kses_data( $integration_type_cls ) . '\" value=\"' . wp_kses_data( $this->get_integration_type() ) . '\" />';\n\t\t\tif ( class_exists( 'APS_Public' ) ) {\n\t\t\t\tAPS_Public::load_credit_card_wizard( $this->get_integration_type(), $this->get_icons_array(), $this->aps_config->get_enabled_tokenization(), $this->aps_config->have_subscription(), $this->aps_config->is_authorization(), $this->aps_config->get_enabled_credit_card_installments() );\n\t\t\t}\n\t\t} else {\n\t\t\t$integration_type_cls = 'integration_type_' . $this->id;\n\t\t\techo '<input type=\"hidden\" class=\"' . wp_kses_data( $integration_type_cls ) . '\" value=\"' . wp_kses_data( $this->get_integration_type() ) . '\" />';\n\t\t\t$this->tokenization_form();\n\t\t}\n\t}", "title": "" }, { "docid": "a0a6c823dad01474783062a5e4aa7227", "score": "0.52053124", "text": "public function getProfileStructure() {\n $return = array();\n $return['BuddyPublicAvatar'] = new BuddyMemberProfileField(\n _t('BUDDY.profileavatar', 'Let non-buddies see your avatar'),\n 'BuddyPublicAvatar',\n null,\n 'CheckboxField'\n );\n $return['BuddyPublicProfile'] = new BuddyMemberProfileField(\n _t('BUDDY.profilepublic', 'Let non-buddies see your profile'),\n 'BuddyPublicProfile',\n null,\n 'CheckboxField'\n );\n //Uncomment to enable option to send messages as email\n /*$return['BuddyEmailToggle'] = new BuddyMemberProfileField(\n _t('BUDDY.profileemailtoggle', 'Allow the system to send you emails'),\n 'BuddyEmailToggle',\n null,\n 'CheckboxField'\n );*/\n $return['BuddyAboutMe'] = new BuddyMemberProfileField(\n _t('BUDDY.profileaboutme', 'About me')\n );\n $return['BuddyThinkingAbout'] = new BuddyMemberProfileField(\n _t('BUDDY.profilethinkingabout', 'Thinking about')\n );\n $return['BuddyLearningAbout'] = new BuddyMemberProfileField(\n _t('BUDDY.profilelearningabout', 'Learning about')\n );\n $return['BuddyStudied'] = new BuddyMemberProfileField(\n _t('BUDDY.profilestudied', 'Have studied'),\n 'BuddyStudied', 'default', 'StudyChoiceField'\n );\n $return['BuddyStudying'] = new BuddyMemberProfileField(\n _t('BUDDY.profilestudying', 'Are studying'),\n 'BuddyStudying', 'default', 'StudyChoiceField'\n );\n $return['BuddyInterest'] = new BuddyMemberProfileField(\n _t('BUDDY.profileinterest', 'Interests'),\n 'BuddyInterests', 'ManyManyCheckboxSet', 'CheckboxSetField'\n );\n $return['BuddyCanHelp'] = new BuddyMemberProfileField(\n _t('BUDDY.profilecanhelp', 'Can help with'),\n 'BuddyInterests', 'ManyManyCheckboxSet', 'CheckboxSetField'\n );\n //Decorate this class and add an alternate method if own member fields required\n $me = $this->owner;\n if (in_array('alternateprofilestructure', $me->allMethodNames(true), true)) {\n return $me->alternateProfileStructure($return);\n }\n return $return;\n }", "title": "" }, { "docid": "bd21949129d38729741a7bae08120cde", "score": "0.52033734", "text": "function qas_settings() {\n $form = array();\n\n $form['qas_username'] = array(\n '#type' => 'textfield',\n '#title' => t('QAS username'),\n '#description' => 'Username provide by QAS, this can be found in your account area on qas website',\n '#required' => FALSE,\n '#size' => 30,\n '#maxlength' => 32,\n '#default_value' => vaiable_get('qas_username'),\n );\n\n $form['qas_password'] = array(\n '#type' => 'textfield',\n '#title' => t('QAS Password'),\n '#description' => 'Password provide by QAS, this can be found in your account area on qas website',\n '#required' => FALSE,\n '#size' => 30,\n '#maxlength' => 32,\n '#default_value' => vaiable_get('qas_password'),\n );\n\n $form['description_enable'] = array(\n '#type' => 'checkbox',\n '#title' => t('Description'),\n '#default_value' => !empty($search_page->description) ? TRUE : FALSE\n );\n\n $form['description'] = array(\n '#type' => 'textfield',\n '#title' => t('Provide description'),\n '#title_display' => 'invisible',\n '#size' => 64,\n '#default_value' => !empty($search_page->description) ? $search_page->description : '',\n '#dependency' => array(\n 'edit-description-enable' => array(1),\n ),\n );\n\n $form['info'] = array(\n '#title' => t('Search Page Information'),\n '#type' => 'fieldset',\n '#collapsible' => FALSE,\n '#prefix' => '<div id=\"dynamic-search-page\">',\n '#suffix' => '</div>',\n );\n}", "title": "" }, { "docid": "6c9c78eeaaae2a1e519579a927858490", "score": "0.51992136", "text": "function paytabs_MetaData()\n{\n return array(\n 'DisplayName' => 'PayTabs - Payment Gateway',\n 'APIVersion' => '2.0', // Use API Version 1.1\n 'DisableLocalCreditCardInput' => true,\n 'TokenisedStorage' => false,\n );\n}", "title": "" }, { "docid": "4665d7284bc8112b7dd2378e7edd6ff1", "score": "0.51692516", "text": "function show_digp_reg_fields( $login_page = 1, $bgtype = null, $user_id = 0 ) {\r\n\t$reg_custom_fields = stripslashes( base64_decode( get_option( \"dig_reg_custom_field_data\", \"e30=\" ) ) );\r\n\t$reg_custom_fields = json_decode( $reg_custom_fields, true );\r\n\t$show_asterisk = get_option( 'dig_show_asterisk', 0 );\r\n\tdig_show_fields( $reg_custom_fields, $show_asterisk, $login_page, $bgtype, $user_id );\r\n}", "title": "" }, { "docid": "e73145bf4c0901da25ff57390f458b21", "score": "0.51672363", "text": "function jasperforge_sso_server_step3($form, &$form_state)\n{\n// $values = isset($form_state['multistep_values']['rate_the_room']) ? $form_state['multistep_values']['rate_the_room'] : array();\n//dpm($form_state, 'step3');\n $description = t('If you already have existing accounts with any of the JasperSoft websites,\n you can link them with this JasperSoft ID. Note that you can only link one existing account per site.<br />\n If you have more than one account that you want to use with this JasperSoft ID, you may consider using the Account Merge\n feature. This feature is accessible after registration on your user profile page.');\n $form['user_register'] = array(\n '#type' => 'fieldset',\n '#title' => t('Link Existing Accounts'),\n '#weight' => -1,\n '#collapsible' => FALSE,\n '#collapsed' => FALSE,\n '#tree' => TRUE,\n '#prefix' => '<div id=\"account-link-table\">',\n '#suffix' => '</div>',\n '#description' => $description,\n );\n\n $sites = jasperforge_sso_server_get_supported_sites();\n $last = abs(count($sites) - 1);\n foreach ($sites as $i => $site)\n {\n $tmp = l($site, \"http://${site}\", array('attributes' => array('target'=> '_blank')));\n// $tmp .= isset($links->creds[$site])? '&nbsp;<span class=\"marker\">Validated</span>' : '';\n $form['user_register'][$site]['checkbox'] = array(\n '#type' => 'checkbox',\n '#title' => $tmp,\n '#prefix' => $i == 0 ? '<table><tr><th></th><th>Account Email</th><th>Password</th></tr><tr><td>' : '<tr><td>',\n '#suffix' => '</td>',\n '#default_value' => isset($form_state['force_add'][$site])? TRUE : FALSE,\n '#disabled' => isset($form_state['force_add'][$site])? TRUE : FALSE,\n );\n $form['user_register'][$site]['mail'] = array(\n '#type' => 'textfield',\n '#default_value' => '',\n '#size' => 30,\n '#maxlength' => 100,\n '#required' => FALSE,\n '#default_value' => isset($form_state['force_add'][$site])? $_SESSION['form_state']['values']['mail'] : '',\n '#disabled' => isset($form_state['force_add'][$site])? TRUE : FALSE,\n '#prefix' => '<td>',\n '#suffix' => '</td>',\n );\n $form['user_register'][$site]['password'] = array(\n '#type' => 'password',\n '#maxlength' => 64,\n '#size' => 15,\n '#disabled' => isset($form_state['force_add'][$site])? TRUE : FALSE,\n '#prefix' => '<td>',\n '#suffix' => $i == $last ? '</td></tr></table>' : '</td></tr>',\n );\n }//foreach\n\n\n $form['user_register']['description'] = array(\n '#prefix' => '<div class=\"description\">',\n '#markup' => 'Check the box next to the site name to add, uncheck to remove link.',\n '#suffix' => '</div>',\n );\n if(!empty($form_state['force_add']))\n $form['user_register']['force_add_description'] = array(\n '#prefix' => '<div class=\"description\">',\n '#markup' => 'Some existing accounts are automatically dectected and merged. If you would like to link or merge\n other accounts, you can do so after registration.',\n '#suffix' => '</div>',\n );\n\n $form['user_register']['create_account'] = array(\n '#type' => 'submit',\n '#value' => t('Create new account'),\n '#name' => 'create_account',\n '#tree' => FALSE,\n '#submit' => array('jasperforge_sso_server_reg_submit'),\n );\n\n return $form;\n}", "title": "" }, { "docid": "5ff5109ef02069c630a33146c28a630e", "score": "0.51633567", "text": "private function _getVerificationAccountData() {\n\t\tif(!check($this->_username)) return;\n\t\t$result = $this->we->queryFetchSingle(\"SELECT * FROM \"._WE_REGISTER_.\" WHERE registration_username = ?\", array($this->_username));\n\t\tif(!is_array($result)) return;\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "1eec0a6e717d872cbd716c143044037e", "score": "0.5148476", "text": "public function get_user_info();", "title": "" }, { "docid": "1b9273f175a49cf3d7c5d345ef71da31", "score": "0.5143379", "text": "function presseportal_option_page_show_general_options() {\n\t$api_key = presseportal_get_option(PRESSEPORTAL_API_KEY);\n?>\n <table id=\"PresseportalTabGeneral\" class=\"form-table\" style=\"clear:none\">\n\t\t<tr valign=\"top\">\n\t\t\t<td colspan=\"2\">\n\t\t\t\t<div class=\"adminHelpMessage\">\n\t\t\t\t\t<img src=\"<?php echo plugins_url('img/info.gif', dirname(__FILE__))?>\" alt=\"Info\" align=\"middle\" />\n\t\t\t\t\t<?php _e('This page contains fundamental plugin settings. Without API key and resource id the plugin is unable to work.', 'Presseportal'); ?>\n\t\t\t\t\t<br>\n\t\t\t\t\t<?php _e('If you do not have an API key, please register on the following page to get one', 'Presseportal'); ?>:\n\t\t\t\t\t<a href=\"http://www.presseportal.de/services/\" target=\"_blank\"><?php _e('Click here', 'Presseportal'); ?></a>.\n\t\t\t\t</div>\n\t\t\t</td>\n\t\t</tr>\n\n <tr valign=\"top\">\n <td scope=\"row\" class=\"label\">\n \t<label for=\"api_key\"><?php _e('Presseportal API key', 'Presseportal'); ?>:</label>\n </td>\n <td>\n\t\t\t\t<?php $api_key = presseportal_get_option(PRESSEPORTAL_API_KEY); ?>\n <input name=\"api_key\" id=\"api_key\" size=\"50\" value=\"<?php echo $api_key; ?>\" type=\"text\" class=\"regular-text\" />\n </td>\n </tr>\n\n <tr valign=\"top\">\n <td scope=\"row\" class=\"label\">\n \t<label for=\"cron_user_id\"><?php _e('Default user for new posts', 'Presseportal'); ?>:</label>\n </td>\n <td>\n<?php\n\t\t\t\t\t\t\t$current_user = presseportal_get_option(PRESSEPORTAL_DEFAULT_USER_ID);\n\t\t\t\t\t\t\twp_dropdown_users(\"orderby=user_nicename&name=default_user_id&selected=\" . $current_user);\n?>\n\t\t\t</td>\n </tr>\n\n <tr valign=\"top\">\n <td scope=\"row\" class=\"label\">\n \t<label for=\"cron_category_id\"><?php _e('Default category for new posts', 'Presseportal'); ?>:</label>\n </td>\n <td>\n<?php\n\t\t\t\t\t\t$current_cat = presseportal_get_option(PRESSEPORTAL_DEFAULT_CATEGORY_ID);\n\t\t\t\t\t\twp_dropdown_categories(\"hide_empty=0&name=default_category_id&selected=\" . $current_cat . \"&show_option_none=Keine\");\n?>\n\t\t\t</td>\n </tr>\n\n <tr valign=\"top\">\n <td scope=\"row\" class=\"label\">\n \t<label for=\"filter_positive\"><?php _e('Default positive filters', 'Presseportal'); ?>:<br/>\n \t(<?php _e('Separate multiple filters by comma.', 'Presseportal'); ?>)\n </label>\n </td>\n <td>\n <textarea name=\"filter_positive\" cols=\"50\" rows=\"5\"><?php echo presseportal_get_option(PRESSEPORTAL_DEFAULT_FILTER_POSITIVE); ?></textarea>\n </td>\n </tr>\n\n <tr valign=\"top\">\n <td scope=\"row\" class=\"label\">\n \t<label for=\"filter_negative\"><?php _e('Default negative filters', 'Presseportal'); ?>:<br/>\n \t(<?php _e('Separate multiple filters by comma.', 'Presseportal'); ?>)\n </label>\n </td>\n <td>\n <textarea name=\"filter_negative\" cols=\"50\" rows=\"5\"><?php echo presseportal_get_option(PRESSEPORTAL_DEFAULT_FILTER_NEGATIVE); ?></textarea>\n </td>\n </tr>\n\n\t</table>\n<?php\n}", "title": "" }, { "docid": "d2dbe32a4ab7b19ed60c94b9650977e0", "score": "0.5140567", "text": "public function getRegistrationInfoData();", "title": "" }, { "docid": "691f3d36a9e652904022007a0a63fbca", "score": "0.51378644", "text": "public function info()\n\t{\n\t\treturn array(\n\t\t\t'url' => 'http://habariproject.org',\n\t\t\t'name' => 'Register',\n\t\t\t'license' => 'Apache License 2.0',\n\t\t\t'author' => 'Habari Community',\n\t\t\t'version' => self::VERSION,\n\t\t\t'description' => 'Lets people register to become blog users, and be placed in a group specified by the admin.'\n\t\t);\n\t}", "title": "" }, { "docid": "71191c3aacdfd120aafb2a4c8e6d50c9", "score": "0.5134437", "text": "public function generateProfile() {\n\n\t\t$fields = $this->getOption('profile-fields');\n\t\t$user_id = $this->getField('user_id');\n\t\tif ($fields) :\n\t\t\tforeach(unserialize($fields) as $type => $label) : ?>\n\t\t\t<?php $name = 'p-'.$this->sanitize_title($label); ?>\n\t\t\t<div class=\"control-group\">\n\t\t\t\t<label class=\"control-label\" for=\"<?php echo $name; ?>\"><?php echo $label; ?></label>\n\t\t\t\t<div class=\"controls\">\n\t\t\t\t<?php if (strstr($type, 'text_input')) : ?>\n\t\t\t\t\t<input type=\"text\" class=\"input-xlarge\" id=\"<?php echo $name; ?>\" name=\"<?php echo $name; ?>\" value=\"<?php echo $this->getOption(\"$name\", false, true, $user_id); ?>\">\n\t\t\t\t<?php elseif (strstr($type, 'checkbox')) : ?>\n\t\t\t\t\t<input type=\"checkbox\" class=\"input-xlarge\" id=\"<?php echo $name; ?>\" name=\"<?php echo $name; ?>\" <?php echo $this->getOption(\"$name\", true, true, $user_id); ?>>\n\t\t\t\t<?php elseif (strstr($type, 'textarea')) : ?>\n\t\t\t\t\t<textarea class=\"input-xlarge\" id=\"<?php echo $name; ?>\" name=\"<?php echo $name; ?>\" rows=\"5\"><?php echo $this->getOption(\"$name\", false, true, $user_id); ?></textarea>\n\t\t\t\t<?php endif; ?>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t<?php endforeach; ?>\n\n\t\t<?php if( ($this->getOption('profile-timestamps-admin-enable') && !in_array(1, $_SESSION['user_level'])) || !$this->getOption('profile-timestamps-enable') ) return; ?>\n\t\t<?php\n\t\t\tif($this->getOption(\"p-timestamp\", false, true, $user_id))\n\t\t\t\t$timestamps = unserialize($this->getOption(\"p-timestamp\", false, true, $user_id));\n\t\t\telse $timestamps = array();\n\t\t?>\n\t\t<legend><?php _e('Access Logs'); ?></legend>\n\t\t<table class=\"table table-condensed span6\">\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t<th><?php _e('Last Accessed'); ?></th>\n\t\t\t\t\t<th><?php _e('Location'); ?></th>\n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t<tbody>\n\t\t\t<?php if(!empty($timestamps)) : ?>\n\t\t\t<?php foreach($timestamps as $time => $location) : ?>\n\t\t\t\t<tr>\n\t\t\t\t\t<td><?php echo date('M d, Y', $time) . ' ' . _('at') . ' ' . date('h:i a', $time); ?></td>\n\t\t\t\t\t<td><?php echo $location; ?></td>\n\t\t\t\t</tr>\n\t\t\t<?php endforeach; ?>\n\t\t\t<?php else : ?>\n\t\t\t<tr><td><?php _e('Has not logged in yet'); ?></td></tr>\n\t\t\t<?php endif; ?>\n\t\t\t</tbody>\n\t\t</table>\n\t\t<?php endif;\n\t}", "title": "" }, { "docid": "92782eec1d58aed2c25479cd3104e8cc", "score": "0.51290965", "text": "function gr_get_gr_plugin_details_list() {\n\techo \"Getresponse-integration details:\\n\";\n\t$details = gr()->db->get_gr_plugin_details();\n\tif ( empty( $details ) ) {\n\t\treturn;\n\t}\n\n\tforeach ( $details as $detail ) {\n\t\techo str_replace( gr_prefix(), '',\n\t\t\t\t$detail->option_name ) . \" : \" . $detail->option_value . \"\\n\";\n\t}\n}", "title": "" }, { "docid": "de306bed5a4f9dc74764faecfca86a2b", "score": "0.5126204", "text": "function Member_TFA_Auth_Form($Additional, $Cancel = true, $AllowEmail = false) {\n\t?>\n\n\t<div class=\"group\">\n\n\t\t<?php\n\t\t\tif ( $Cancel ) {\n\t\t\t\techo '\n\t\t<div class=\"col span_3_of_11\">\n\t\t\t<p class=\"like-input text-center\"><a class=\"color-pomegranate\" href=\"?twofactorauth\">Cancel</a></p>\n\t\t</div>\n\t\t<div class=\"col span_1_of_11\"><br></div>';\n\t\t\t} else {\n\t\t\t\techo '\n\t\t<div class=\"col span_2_of_11\"><br></div>';\n\t\t\t}\n\t\t?>\n\n\t\t<form method=\"POST\" action=\"\">\n\t\t\t<div class=\"col span_3_of_11\">\n\t\t\t\t<input type=\"tel\" name=\"code\" autocomplete=\"off\" autofocus required>\n\t\t\t</div>\n\t\t\t<div class=\"col span_1_of_11\"><br></div>\n\t\t\t<div class=\"col span_3_of_11\">\n\n\t\t\t<?php\n\t\t\t\tif ( $Additional ) {\n\t\t\t\t\techo '<input type=\"hidden\" name=\"'.$Additional.'\" required>';\n\t\t\t\t}\n\t\t\t?>\n\n\t\t\t\t<input type=\"hidden\" name=\"auth\" required>\n\n\t\t\t\t<?php echo Runonce_CSRF_Form(); ?>\n\n\t\t\t\t<input type=\"submit\" value=\"Confirm\">\n\t\t\t</div>\n\t\t</form>\n\t</div>\n\n\t<?php\n\n\tif ( $AllowEmail ) {\n\t\t// TODO\n\t\t// Button to initiate a bypass.\n\t\t// Recreate the runonce and use it like a one time login key that is emailed to the user.\n\t\t// $Sitewide['Root'].$Sitewide['Account'].'?once='.$NewKey\n\t\t// Delete the original runonce.\n\t\t?>\n\n\t\t<div class=\"group\">\n\t\t\t<form method=\"POST\" action=\"\">\n\t\t\t\t<div class=\"col span_3_of_11\">\n\n\t\t\t\t<?php\n\t\t\t\t\tif ( $Additional ) {\n\t\t\t\t\t\techo '<input type=\"hidden\" name=\"'.$Additional.'\" required>';\n\t\t\t\t\t}\n\t\t\t\t?>\n\n\t\t\t\t\t<input type=\"hidden\" name=\"auth\" required>\n\n\t\t\t\t\t<?php echo Runonce_CSRF_Form(); ?>\n\n\t\t\t\t\t<input type=\"submit\" value=\"Confirm\">\n\t\t\t\t</div>\n\t\t\t</form>\n\t\t</div>\n\n\t\t<?php\n\t}\n}", "title": "" }, { "docid": "e7be68de3be56a4615521f8d43755c39", "score": "0.51252675", "text": "public function getAccountInfoForm()\n {\n $this->data['title'] = 'Profiel aanmaken';\n $this->data['user'] = $this->guard()->user();\n\t $this->data['user_info'] = $this->guard()->user()->userInfo ? $this->guard()->user()->userInfo : null;\n\n return view(backpack_view('profile.create'), $this->data);\n }", "title": "" }, { "docid": "972588bc9d2aa3b3679d0a9a6d9fe2d9", "score": "0.5124774", "text": "public function info () {\n\t\treturn array_merge(parent::info(), array(\n\t\t\t'title' => 'FTP',\n\t\t\t'description' => 'Store backups to your FTP server',\n\t\t\t'icon' => $this->_plugin->url('img/ftp.png')\n\t\t));\n\t}", "title": "" }, { "docid": "3478e8ffb414267d5b62fa3dba37901e", "score": "0.5115878", "text": "public function info()\n {\n return array('module' => $this->name,\n 'text_type' => $this->__('Extended menu'),\n 'text_type_long' => $this->__('Extended menu block'),\n 'allow_multiple' => true,\n 'form_content' => false,\n 'form_refresh' => false,\n 'show_preview' => true,\n 'admin_tableless' => true);\n }", "title": "" }, { "docid": "7fd38039968bb0af912d8fa8ec1b36a4", "score": "0.51094955", "text": "public function getRegisteredGuideTours()\n {\n // Be sure the TypoScript service is available\n if (!($this->typoScriptService instanceof TypoScriptService)) {\n $this->typoScriptService = GeneralUtility::makeInstance('TYPO3\\\\CMS\\\\Extbase\\\\Service\\\\TypoScriptService');\n }\n //\n // 1. Get configured tours registered by GuideUtility::addTour\n $tours = array();\n $backendUser = $this->getBackendUserAuthentication();\n if(isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['guide']['tours']) && count($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['guide']['tours'])>0) {\n $tours = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['guide']['tours'];\n }\n //\n // 2. Get tours defined by Page-TypoScript/tsconfig\n $toursPage = $this->getBackendUserAuthentication()->getTSConfig(\n 'mod.guide.tours', BackendUtility::getPagesTSconfig(0)\n );\n if(is_array($toursPage['properties']) && count($toursPage['properties'])>0) {\n $toursPage = $this->typoScriptService->convertTypoScriptArrayToPlainArray($toursPage['properties']);\n ArrayUtility::mergeRecursiveWithOverrule($tours, $toursPage);\n }\n //\n // 3. Get tours defined by User-TypoScript\n $toursUser = $this->getBackendUserAuthentication()->getTSConfig(\n 'mod.guide.tours'\n );\n if(is_array($toursUser['properties']) && count($toursUser['properties'])>0) {\n $toursUser = $this->typoScriptService->convertTypoScriptArrayToPlainArray($toursUser['properties']);\n ArrayUtility::mergeRecursiveWithOverrule($tours, $toursUser);\n }\n if(count($tours) >0) {\n foreach ($tours as $tourKey => $tour) {\n $tour['name'] = $tourKey;\n // Merge user configuration\n if (isset($backendUser->uc['moduleData']['guide'][$tour['name']])) {\n $tours[$tour['name']] = array_merge($tour,\n $backendUser->uc['moduleData']['guide'][$tour['name']]);\n } else {\n $tours[$tour['name']] = $tour;\n }\n // Be sure disabled is available\n if (!isset($tours[$tourKey]['disabled'])) {\n $tours[$tourKey]['disabled'] = false;\n }\n // Title and description\n $tours[$tourKey]['title'] = $this->translate($tours[$tourKey]['title']);\n $tours[$tourKey]['description'] = $this->translate($tours[$tourKey]['description']);\n // Generate an id\n $tours[$tourKey]['id'] = GeneralUtility::camelCaseToLowerCaseUnderscored($tour['name']);\n $tours[$tourKey]['id'] = 'guide-tour-' . str_replace('_', '-', $tours[$tourKey]['id']);\n // Remove steps\n if (!isset($tours[$tourKey]['currentStepNo'])) {\n $tours[$tourKey]['currentStepNo'] = 0;\n }\n $tours[$tourKey]['stepsCount'] = count($tours[$tourKey]['steps']);\n unset($tours[$tourKey]['steps']);\n // Tour/Module is enabled for current user\n if (!$this->moduleEnabled($tour['moduleName'])) {\n // ..if not, remove that tour!\n unset($tours[$tourKey]);\n }\n }\n }\n return $tours;\n }", "title": "" }, { "docid": "a119c6c9c25c2ad19658480d92a49311", "score": "0.5096096", "text": "public function usage()\n\t{\n\t\tob_start();\n\t?>\n\tWhat is Tender's MultiPass Single-Sign on?\n\n\tWhen you build a website with [CMS], it already comes with a user registration system. Tender compliments your application, product or marketing site by being able to share this registration systems information.\n\n\tWith MultiPass Single Sign On you don't need user's to re-register with Tender, who wants to do that? Terrible people. That's whom.\n\n\tWith MultiPass we pass all the user information as securely as possible over a simple hyperlink. \n\n\tThis plugin goes one step further and makes sure you don't have to do any of the weird encryption and crazy programming to secure the info. All you need to know are three simple things: \n\n\t1. Your Tender url (e.g. http://help.tender.com)\n\t2. Your SSO Key\n\t3. Your Tender Key\n\t\n\tHow fantastic is that? This plugin will automatically generate that anchor element for you. It looks something like this:\n\t\n\t<a href=\"(the generated url)\">Support</a>\n\t\n\tEnabling MultiPass SSO\n\n\tIn order to use this plugin you need to enable MultiPass on your Tender application. Here's how:\n\n\t1. Login to your Tender app so you see your dashboard\n\t2. Click on the Site Settings nav item\n\t3. Scroll down to the bottom of the page\n\t4. Where it says \"MultiPass Single Sign On\" click on \"Enabled\".\n\t5. Copy and paste your SSO API key and your site key, make sure you keep them separate and you know which is which. \n\n\tWith those three pieces of information, this plugin will automatically generate your Tender link.\n\t\n\t3. Finally you can setup the plugin like this in your EE template:\n\n\t{exp:multipass sso_key=\"your_sso_key\" key=\"your_tender_key\" link=\"yourtenderurl.com\"}\n\t\n\tYou can also add optional parameters: \n\t\n\ttext=\"Support\" You can change the text of the link\n\t\n\tWhere \"link\" is the link to your Tender app. My Tender app, for example, is called MultiPass. Therefore, my link is \"http://multipass.tenderapp.com\". You don't even have to add the http:// if you don't want to. \n\t\n\tIt works perfectly well if you've setup Tender with your own domain. So use that link instead if you'd like (e.g. help.mydomain.com).\n\t\n\tJust so you know, it's an incredibly long and ugly URL. It doesn't look pretty, but it works so well. This just means your data is as secure as it can possibly be.\n\t<?php\n\t\n\t\t$buffer = ob_get_contents();\n\t\n\t\tob_end_clean();\n\t\n\t\treturn $buffer;\n\t}", "title": "" }, { "docid": "6c2690f2e32c71f0edfbb33550573188", "score": "0.5093598", "text": "public function initializeAction() {\n $this->frontendConfigurationManager = GeneralUtility::makeInstance(\\TYPO3\\CMS\\Extbase\\Configuration\\FrontendConfigurationManager::class);\n $extConfig = $this->frontendConfigurationManager->getTypoScriptSetup();\n $this->pluginSettings = $extConfig['plugin.']['tx_empadministration_empadministration.']['settings.'];\n $this->userinfo = $GLOBALS['TSFE']->fe_user->user;\n }", "title": "" }, { "docid": "8de77d94769914001b1bd48f9dfbde3c", "score": "0.5091227", "text": "function paytabs_config()\n{\n return array(\n // the friendly display name for a payment gateway should be\n // defined here for backwards compatibility\n 'FriendlyName' => array(\n 'Type' => 'System',\n 'Value' => 'PayTabs - Think Cashless',\n ),\n 'Endpoint' => array(\n \"FriendlyName\" => \"Endpoint region\",\n \"Type\" => \"dropdown\",\n \"Options\" => PaytabsApi::getEndpoints(),\n \"Default\" => \"ARE\",\n ),\n 'MerchantId' => array(\n 'FriendlyName' => 'Profile ID',\n 'Type' => 'text',\n 'Size' => '35',\n ),\n 'MerchantKey' => array(\n 'FriendlyName' => 'Server Key',\n 'Type' => 'text',\n 'Size' => '55',\n ),\n 'hide_shipping' => array(\n 'FriendlyName' => 'Hide shipping information',\n 'Type' => 'yesno',\n ),\n );\n}", "title": "" }, { "docid": "612386552b3e6ccd82d0802cc1d8b2fb", "score": "0.508835", "text": "public function plugin_settings_fields() {\n\t\t\t\t\t\t\n\t\treturn array(\n\t\t\tarray(\n\t\t\t\t'title' => '',\n\t\t\t\t'description' => $this->plugin_settings_description(),\n\t\t\t\t'fields' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'account_url',\n\t\t\t\t\t\t'label' => esc_html__( 'Account URL', 'gravityformsbatchbook' ),\n\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t'class' => 'small',\n\t\t\t\t\t\t'after_input' => '.batchbook.com',\n\t\t\t\t\t\t'feedback_callback' => array( $this, 'validate_account_url' )\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'api_token',\n\t\t\t\t\t\t'label' => esc_html__( 'API Token', 'gravityformsbatchbook' ),\n\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t'class' => 'medium',\n\t\t\t\t\t\t'feedback_callback' => array( $this, 'initialize_api' )\n\t\t\t\t\t),\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'type' => 'save',\n\t\t\t\t\t\t'messages' => array(\n\t\t\t\t\t\t\t'success' => esc_html__( 'Batchbook settings have been updated.', 'gravityformsbatchbook' )\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\t\t\n\t}", "title": "" }, { "docid": "6c14917374c321ff40f2ad731b6a4370", "score": "0.5081373", "text": "public function pluginDetails(): array\n {\n return [\n 'name' => __('gromit.forms::lang.plugin.name'),\n 'description' => __('gromit.forms::lang.plugin.description'),\n 'author' => 'GromIT',\n 'icon' => 'icon-address-card'\n ];\n }", "title": "" }, { "docid": "e9b0cc89d5ef8aebba64c71bc5db429c", "score": "0.50797457", "text": "function getInfo() {\n\n\t\t$arr_info = array(\t\t\t\n\t\t\t\"name\" => \"Options Logger\",\n\t\t\t\"description\" => \"Logs updates to WordPress settings\",\n\t\t\t\"capability\" => \"manage_options\",\n\t\t\t\"messages\" => array(\n\t\t\t\t//'option_updated' => __('Updated option \"{option}\" on settings page \"{option_page}\"', \"simple-history\"),\n\t\t\t\t'option_updated' => __('Updated option \"{option}\"', \"simple-history\"),\n\t\t\t\t/*\n\n\t\t\t\tUpdated option \"default_comment_status\" on settings page \"discussion\"\n\t\t\t\tEdited option \"default_comment_status\" on settings page \"discussion\"\n\t\t\t\tModified option \"default_comment_status\" on settings page \"discussion\"\n\n\t\t\t\tEdited settings page \"discussion\" and the \"default_comment_status\" options\n\t\n\t\t\t\t*/\n\t\t\t),\n\t\t\t\"labels\" => array(\n\t\t\t\t\"search\" => array(\n\t\t\t\t\t\"label\" => _x(\"Options\", \"Options logger: search\", \"simple-history\"),\n\t\t\t\t\t\"options\" => array(\n\t\t\t\t\t\t_x(\"Changed options\", \"Options logger: search\", \"simple-history\") => array(\n\t\t\t\t\t\t\t\"option_updated\"\n\t\t\t\t\t\t),\t\t\t\t\t\t\n\t\t\t\t\t)\n\t\t\t\t) // end search array\n\t\t\t) // end labels\n\t\t);\n\t\t\n\t\treturn $arr_info;\n\n\t}", "title": "" }, { "docid": "6355d32f7213479c0d5fe972eebbfba5", "score": "0.50738084", "text": "private static function get_lead_fields(){\r\n\t\treturn array(\r\n\t\t\tarray(\"name\" => \"type\", \"label\" => \"Shoot Type\", \"required\" => \"true\"), \r\n\t\t\tarray(\"name\" => \"first_name\", \"label\" => \"First Name\", \"required\" => \"true\"), \r\n\t\t\tarray(\"name\" => \"last_name\", \"label\" =>\"Last Name\", \"required\" => \"true\"),\r\n\t\t\tarray(\"name\" => \"email\", \"label\" =>\"Email\", \"required\" => \"true\"), \r\n\t\t\tarray(\"name\" => \"date\", \"label\" => \"Session Date\"),\r\n\t\t\tarray(\"name\" => \"referrer\", \"label\" => \"Referrer\"),\r\n\t\t\tarray(\"name\" => \"remarks\", \"label\" => \"Remarks\"),\r\n\t\t\tarray(\"name\" => \"phone\", \"label\" =>\"Phone\"), \r\n\t\t\tarray(\"name\" => \"phonetype\", \"label\" => \"Phone Type\"),\r\n\t\t\tarray(\"name\" => \"home_phone\", \"label\" =>\"Home Phone\"), \r\n\t\t\tarray(\"name\" => \"work_phone\", \"label\" =>\"Work Phone\"), \r\n\t\t\tarray(\"name\" => \"cell_phone\", \"label\" =>\"Cell Phone\"), \r\n\t\t\tarray(\"name\" => \"role\", \"label\" => \"Role\"),\r\n\t\t\tarray(\"name\" => \"bridesmaids_count\", \"label\" =>\"Bridesmaids Count\"), \r\n\t\t\tarray(\"name\" => \"groomsmen_count\", \"label\" =>\"Groomsmen Count\"), \r\n\t\t\tarray(\"name\" => \"guests_count\", \"label\" =>\"Guests Count\"),\r\n\t\t\tarray(\"name\" => \"ceremony_location\", \"label\" =>\"Ceremony Location\"), \r\n\t\t\tarray(\"name\" => \"ceremony_start_time\", \"label\" =>\"Ceremony Start Time\"), \r\n\t\t\tarray(\"name\" => \"ceremony_end_time\", \"label\" =>\"Ceremony End Time\"), \r\n\t\t\tarray(\"name\" => \"reception_location\", \"label\" =>\"Reception Location\"), \r\n\t\t\tarray(\"name\" => \"reception_start_time\", \"label\" =>\"Reception Start Time\"), \r\n\t\t\tarray(\"name\" => \"reception_end_time\", \"label\" =>\"Reception End Time\")\r\n\t\t);\r\n }", "title": "" }, { "docid": "00a647e9ae6007dd2bb5d325c5b55bb8", "score": "0.50736403", "text": "function setup() {\n\t\t//echo \"setup\";\n\t\tunset($this->mode);\n\t\t$marker = $this->marker;\n\t\t$hash = md5(\"pluginSetup\".$marker);\n\t\t$marker = explode(\"~\",$marker);\n\t\t//$setup = explode(\".\",$marker[3]);\n\t\tif (count($marker)==2) {\n\t\t\t\t$setup = explode('.', $marker[1]);\n\t\t} else {\n\t\t\t$setup = explode('.', $marker[3]);\n\t\t}\n\t\t$hash = md5('pluginSetup-' . $this->marker.$GLOBALS['TSFE']->fe_user->user['usergroup']);\n\t\t//t3lib_div::debug($marker);\n\t\t$cached = tx_crud__cache::get($hash);\n\t\t//t3lib_div::Debug($cached);\n\t\t$this->pageConfig=$cached['config'];\n\t\tif(is_array($cached['typoscript'])) {\n\t\t\t$typoscript=$cached['typoscript'];\n\t\t}\n\t\t//t3lib_div::debug($marker);\n\t\t$cache['config']=$cached['config'];\n\t\tif (!is_array($typoscript)) {\n\t\t\tdefine(PATH_t3lib,\"t3lib/\");\n\t\t\t//echo \"generiere typscript for \".$this->marker;\n\t\t\trequire_once(PATH_t3lib . 'class.t3lib_page.php');\n\t\t\trequire_once(PATH_t3lib . 'class.t3lib_tstemplate.php');\n\t\t\trequire_once (PATH_t3lib . 'class.t3lib_tsparser_ext.php');\n\t\t\t$sysPageObj = tx_div::makeInstance('t3lib_pageSelect');\n\t\t\t$rootLine = $sysPageObj->getRootLine($GLOBALS['TSFE']->id);\n\t\t\t$TSObj = tx_div::makeInstance('t3lib_tsparser_ext');\n\t\t\t$TSObj->tt_track = 0;\n\t\t\t$TSObj->init();\n\t\t\t$TSObj->runThroughTemplates($rootLine);\n\t\t\t$TSObj->generateConfig();\n\t\t\t//t3lib_div::debug($TSObj->setup['plugin.']);die();\n\t\t\t//t3lib_div::debug($setup,\"setup\");\n\t\t\t//t3lib_div::debug($marker,\"marker\");\n\t\t\tif(strtolower($marker[0])==\"plugin\") {\n\t\t\t\t$ts=explode(\".\",$marker[1]);\n\t\t\t\t$cache['typoscript'] = $TSObj->setup[$ts[0].\".\"][$ts[1].'.'];\n\t\t\t}\n\t\t\telse $cache['typoscript'] = $TSObj->setup[$setup[0].\".\"][$setup[1].'.'];\n\t\t\t//t3lib_div::Debug($TSObj->setup[$setup[0].\".\"],\"ts\");\n\t\t\t//die();\n\t\t\t$cache['typoscript']['configurations.']['setup.']['baseURL']=$cache['config']['baseURL'];\n\t\t\t$cache['config'] = $TSObj->setup['config.'];\n\t\t\ttx_crud__cache::write($hash,$cache);\n\n\t\t\t$typoscript=$cache['typoscript'];\n\t\t\t//t3lib_div::debug($typoscript);\n\t\t\t$this->pageConfig=$cache['config'];\n\t\t}\n\t\t//t3lib_div::debug($cache['typoscript']);\n\t\tif(isset($_REQUEST['q'])) $setup = $typoscript['configurations.'][\"autocompleteAction.\"];\n\t\telse $setup = $typoscript['configurations.'][$marker[0].\"Action.\"];\n\t\t//t3lib_div::debug($setup);\n\t\t//$pars=tx_crud__div::_GP($setup['setup.']['extension']);\n\t\tif(strtolower($marker[0])==\"plugin\") return $setup;\n\t\t//t3lib_div::debug($cache['typoscript'],\"ts\");\n\t\t//if(!is_array($setup['aa.'])) $this->newContent=\"CRUD Parser has no Typscript found for \".implode(\"~\",$marker).\"! Please create Typoscript: \". $marker[3];\n\t\t$pars=tx_crud__div::_GP($setup['setup.']['extension']);\n\t\t//t3lib_div::debug($pars,\"vorher\");\n\t\tif(strlen($pars[\"action\"]) >= 3 && $pars['action'] != $marker[0] && $setup['setup.']['freezeAction']!='1') {\n\t\t\t$marker[0] = $pars['action'];\n\t\t\t$setup = $typoscript['configurations.'][$marker[0].\"Action.\"];\n\t\t\t//t3lib_div::debug($setup);\n\t\t}\n\t\t$this->actionID=$setup['storage.']['action'];\n\t\t$_checkNodeType = explode(\".\",$marker[2]);\n\t\t//t3lib_div::debug($setup);\n\t\tif ($_checkNodeType[0] == \"PARS\") {\n\t\t\t$marker[2] = $pars[strtolower($_checkNodeType[1])];\n\t\t}\n\t\tif (isset($pars['retrieve']) && !isset($pars['action'])) {\n\t\t\t$marker[0] = \"retrieve\";\n\t\t\t$setup = $typoscript['configurations.'][$marker[0].\"Action.\"];\n\t\t\t$setup['storage.']['nodes'] = $pars['retrieve'];\n\t\t\t//t3lib_div::debug($setup);\n\t\t}\n\n\t\telseif(isset($marker[2])) $setup['storage.']['nodes']=$marker[2];\n\t\telseif(isset($pars['retrieve'])) $setup['storage.']['nodes'] = $pars['retrieve'];\n\t\tif(strlen($setup['storage.']['nameSpace'])<=3) $setup['storage.']['nameSpace']= strtolower($marker[1]);\n\t\tif(strlen($marker[4])>1) $setup['storage.']['fields']=$marker[4];\n\t\tif (strlen($marker[5]) > 1) {\n\t\t\t$defaults = explode(\",\",$marker[5]);\n\t\t\tif (is_array($defaults)) {\n\t\t\t\tforeach ($defaults as $default) {\n\t\t\t\t\t$singleDefault_exploded = explode(\"=\",$default);\n\t\t\t\t\t$setup['storage.']['defaultQuery.'][strtolower($marker[1]).\".\"][$singleDefault_exploded[0]] = $singleDefault_exploded[1];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//t3lib_div::debug($setup);\n\t\t$setup_ok = $setup;\n\t\tif (is_array($setup['storage.']['virtual.'])) {\n\t\t\tforeach ($setup['storage.']['virtual.'] as $key=>$val) {\n\t\t\t\tif ($key != strtolower($setup['storage.']['nameSpace']) . \".\") {\n\t\t\t\t\tunset($setup_ok['storage.']['virtual.'][$setup['storage.']['nameSpace']]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (is_array($setup['storage.']['modifications.'])) {\n\t\t\tforeach($setup['storage.']['modifications.'] as $key=>$val) {\n\t\t\t\tif ($key != strtolower($setup['storage.']['nameSpace']) . \".\") {\n\t\t\t\t\tunset($setup_ok['storage.']['modifications.'][$setup['storage.']['nameSpace']]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(isset($_SERVER['HTTPS'])) $setup_ok['setup.']['baseURL']=\"https://\".t3lib_div::getThisUrl();\n\t\telse $setup_ok['setup.']['baseURL']=\"http://\".t3lib_div::getThisUrl();\n\t\t//t3lib_div::Debug($setup_ok);\n\t//\tdie();\n\t\treturn $setup_ok;\n\t}", "title": "" }, { "docid": "fa70388b567b7275e37da84e8a3eedb4", "score": "0.5064309", "text": "public function pluginDetails()\r\n {\r\n return [\r\n 'name' => 'VK API',\r\n 'description' => 'Плагин реализует интерфейс VK API',\r\n 'author' => 'demin',\r\n 'icon' => 'icon-vk'\r\n ];\r\n }", "title": "" }, { "docid": "c42defc71b3b560c81dbea6d2128a9f2", "score": "0.5062605", "text": "public function pluginDetails()\n {\n return [\n 'name' => 'Quiz Tools',\n 'description' => 'Tools to present quizzes',\n 'author' => 'hermetic',\n 'icon' => 'icon-cogs'\n ];\n }", "title": "" }, { "docid": "5004198ad3c922b0493f6e9cbff239c6", "score": "0.5061964", "text": "public abstract function loginInfo();", "title": "" }, { "docid": "0c418b0b86ff1e8f4823c2dab3a093da", "score": "0.50541157", "text": "function PayFast_config()\n{\n return array(\n // the friendly display name for a payment gateway should be\n // defined here for backwards compatibility\n 'FriendlyName' => array(\n 'Type' => 'System',\n 'Value' => 'PayFast',\n ),\n // Merchant ID field\n 'merchant_id' => array(\n 'FriendlyName' => 'Merchant ID',\n 'Type' => 'text',\n 'Size' => '25',\n 'Default' => '',\n 'Description' => 'Your Merchant ID as given on the <a href=\"http://www.payfast.co.za/acc/integration\">Integration</a> page of your PayFast account',\n ),\n // Merchant Key field\n 'merchant_key' => array(\n 'FriendlyName' => 'Merchant Key',\n 'Type' => 'text',\n 'Size' => '25',\n 'Default' => '',\n 'Description' => 'Your Merchant Key as given on the <a href=\"http://www.payfast.co.za/acc/integration\">Integration</a> page of your PayFast account',\n ),\n // PassPhrase field\n 'passphrase' => array(\n 'FriendlyName' => 'PassPhrase',\n 'Type' => 'text',\n 'Size' => '32',\n 'Default' => '',\n 'Description' => 'Your PassPhrase as when set on the <a href=\"http://www.payfast.co.za/acc/integration\">Integration</a> page of your PayFast account',\n ),\n // Recurring option\n 'enable_recurring' => array(\n 'FriendlyName' => 'Enable Recurring Billing',\n 'Type' => 'yesno',\n 'Description' => 'Check to enable Recurring Billing after enabling adhoc Payments on the <a href=\"http://www.payfast.co.za/acc/integration\">Integration</a> page of your PayFast account',\n ),\n // Force Recurring option\n 'force_recurring' => array(\n 'FriendlyName' => 'Force Recurring Billing',\n 'Type' => 'yesno',\n 'Description' => 'Check to force all clients to use tokenized billing(adhoc subscriptions). This requires \"Enable Recurring Billing\" to be enabled to take effect.',\n ),\n // Sandbox option\n 'test_mode' => array(\n 'FriendlyName' => 'Sandbox Test Mode',\n 'Type' => 'yesno',\n 'Description' => 'Check to enable sandbox mode',\n ),\n // Debugging option\n 'debug' => array(\n 'FriendlyName' => 'Debugging',\n 'Type' => 'yesno',\n 'Description' => 'Check this to turn debug logging on',\n ),\n );\n}", "title": "" }, { "docid": "efb0b220adb487dd49fb58361ebc0bb4", "score": "0.50500864", "text": "protected function getFields(): array\n {\n return [\n 'email' => in_array(Config::get('APP_NATIVE_LOGIN_USING'), ['EMAIL', 'BOTH']),\n 'username' => in_array(Config::get('APP_NATIVE_LOGIN_USING'), ['USERNAME', 'BOTH']),\n 'group_id' => false,\n 'password' => false,\n 'temp_pw' => true,\n 'send_email' => true,\n 'salutation' => false,\n 'first_name' => false,\n 'last_name' => false,\n 'gender' => false,\n 'dob' => false,\n 'timezone' => false,\n ];\n }", "title": "" }, { "docid": "b59cbf8e9c630021c4c39eb76621b799", "score": "0.50498706", "text": "public function registerUserPermissions()\n {\n return array(\n 'activateAccounts' => array('label' => Craft::t('Activate Accounts')),\n );\n }", "title": "" }, { "docid": "2e47d922d30c0a3a4593f04aafbdc8c5", "score": "0.5047455", "text": "function admin_info( $request )\r\n\t{\r\n\r\n\t\t// Return Info to the Backend User Form\r\n\t}", "title": "" }, { "docid": "61800a934b90516be425103fd1bd3bc7", "score": "0.5039222", "text": "function ciniki_fatt_settingsGet($ciniki) {\n // \n // Find all the required and optional arguments\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'prepareArgs');\n $rc = ciniki_core_prepareArgs($ciniki, 'no', array(\n 'tnid'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Tenant'), \n )); \n if( $rc['stat'] != 'ok' ) { \n return $rc;\n } \n $args = $rc['args'];\n \n // \n // Make sure this module is activated, and\n // check permission to run this function for this tenant\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'fatt', 'private', 'checkAccess');\n $rc = ciniki_fatt_checkAccess($ciniki, $args['tnid'], 'ciniki.fatt.settingsGet'); \n if( $rc['stat'] != 'ok' ) { \n return $rc;\n }\n $modules = $rc['modules'];\n \n //\n // Load timezone\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'tenants', 'private', 'intlSettings');\n $rc = ciniki_tenants_intlSettings($ciniki, $args['tnid']);\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $intl_timezone = $rc['settings']['intl-default-timezone'];\n ciniki_core_loadMethod($ciniki, 'ciniki', 'users', 'private', 'dateFormat');\n $date_format = ciniki_users_dateFormat($ciniki, 'php');\n\n //\n // Grab the settings for the tenant from the database\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbDetailsQueryDash');\n $rc = ciniki_core_dbDetailsQueryDash($ciniki, 'ciniki_fatt_settings', 'tnid', $args['tnid'], 'ciniki.fatt', 'settings', '');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n\n if( !isset($rc['settings']) ) {\n return array('stat'=>'ok', 'settings'=>array());\n }\n $settings = $rc['settings'];\n\n if( isset($settings['aeds-expirations-message-next']) && $settings['aeds-expirations-message-next'] != '' ) {\n $dt = new DateTime($settings['aeds-expirations-message-next'], new DateTimeZone('UTC'));\n $dt->setTimezone(new DateTimeZone($intl_timezone));\n $settings['aeds-expirations-message-next'] = $dt->format($date_format);\n }\n\n return array('stat'=>'ok', 'settings'=>$settings);\n}", "title": "" }, { "docid": "73567ee52bba2ca284b86b97c877d47f", "score": "0.50316495", "text": "public function plugin_settings_fields() {\n\n\t\treturn array(\n\t\t\tarray(\n\t\t\t\t'title' => esc_html__( 'Campaign Monitor Account Information', 'gravityformscampaignmonitor' ),\n\t\t\t\t'description' => sprintf(\n\t\t\t\t\t'<p>%s</p>',\n\t\t\t\t\tsprintf(\n\t\t\t\t\t\tesc_html__( 'Campaign Monitor is an email marketing software for designers and their clients. Use Gravity Forms to collect customer information and automatically add it to your client\\'s Campaign Monitor subscription list. If you don\\'t have a Campaign Monitor account, you can %1$ssign up for one here.%2$s', 'gravityformscampaignmonitor' ),\n\t\t\t\t\t\t'<a href=\"http://www.campaignmonitor.com\" target=\"_blank\">',\n\t\t\t\t\t\t'</a>'\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\t'fields' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'name' => 'apiKey',\n\t\t\t\t\t\t'label' => esc_html__( 'API Key', 'gravityformscampaignmonitor' ),\n\t\t\t\t\t\t'type' => 'text',\n\t\t\t\t\t\t'class' => 'medium',\n\t\t\t\t\t\t'feedback_callback' => array( $this, 'initialize_api' ),\n\t\t\t\t\t\t'description' => esc_html__( \"To locate your API key, in your Campaign Monitor account, click on your profile image and then select 'Account settings'. On the Account settings page click 'API keys' and then click 'Show API key'. If you haven't generated one yet, click 'Generate API key' instead.\", 'gravityformscampaignmonitor' ),\n\t\t\t\t\t),\n\t\t\t\t)\n\t\t\t),\n\t\t);\n\n\t}", "title": "" }, { "docid": "db401ef1350cf30607239625a2ea5bc6", "score": "0.50299007", "text": "static function plInfo()\n {\n return (array(\n \"plShortName\" => _(\"Script entry\"),\n \"plDescription\" => _(\"FAI script entry\"),\n \"plSelfModify\" => FALSE,\n \"plDepends\" => array(),\n \"plPriority\" => 19,\n \"plSection\" => array(\"administration\"),\n \"plCategory\" => array(\"fai\"),\n \"plProvidedAcls\" => array(\n \"cn\" => _(\"Name\"),\n \"description\" => _(\"Description\"),\n \"FAIscript\" => _(\"Script entry\"),\n \"FAIpriority\" => _(\"Script Priority\"))\n ));\n }", "title": "" }, { "docid": "f132fad7712a9dfbbe1aae5e53480979", "score": "0.50249", "text": "protected function getFields()\n {\n return array(\n 'user_id',\n 'name',\n 'oauth_user_id',\n 'username',\n 'pic_url',\n 'oauth_provider',\n 'token',\n 'secret'\n );\n }", "title": "" }, { "docid": "5ffd1cd926c805b4173c6540e1a53738", "score": "0.5021449", "text": "public function get_fields() {\r\n $fields = $this->db->list_fields('CUPU_Integrator');\r\n return $fields;\r\n }", "title": "" }, { "docid": "3af69844e855726ee8b901d2f715e9a4", "score": "0.5017489", "text": "function plugins_get_context() {\n global $authmech;\n global $xerte_toolkits_site;\n if (!$authmech) {\n $authmech = Xerte_Authentication_Factory::create($xerte_toolkits_site->authentication_method);\n }\n \n $basename = basename($_SERVER['SCRIPT_NAME'], '.php');\n $logged_in = !$authmech->needsLogin();\n return array($basename, $logged_in);\n}", "title": "" }, { "docid": "336059141005e5f073a06dd1d44ad066", "score": "0.5015205", "text": "public function get_fields() {\n\n\t\t/**\n\t\t * Filter page/api config fields/options.\n\t\t *\n\t\t * @since 0.1\n\t\t * @var array\n\t\t */\n\t\treturn apply_filters( 'content_views_civicrm_remote_settings_options', [\n\t\t\t'server' => __( 'Server url', 'content-views-civicrm' ),\n\t\t\t'path' => __( 'Path (REST url)', 'content-views-civicrm' ),\n\t\t\t'key' => __( 'Site key', 'content-views-civicrm' ),\n\t\t\t'api_key' => __( 'API key', 'content-views-civicrm' )\n\t\t] );\n\n\t}", "title": "" }, { "docid": "bc96212906aa5ce074dc8a2cb760dc99", "score": "0.50119036", "text": "public function plugin_settings_fields()\n {\n return array(\n array(\n \"title\" => \"Pre-Populate Settings\",\n \"fields\" => array(\n array(\n \"name\" => \"parameters\",\n \"tooltip\" => \"Example: utm_source,utm_campaign,utm_medium\",\n \"label\" => \"Query Parameters\",\n \"type\" => \"text\",\n \"class\" => \"large\",\n ),\n array(\n \"name\" => \"cookieExpiration\",\n \"tooltip\" => \"Cookie Expiration in days. Set to 0 for session duration. You can use decimals for parts of a day (0.5 = 12 hours).\",\n \"label\" => \"Cookie Expiration\",\n \"type\" => \"text\",\n \"class\" => \"large\",\n )\n )\n ),\n );\n }", "title": "" }, { "docid": "d917c69f836b30c78aa688d8d6894426", "score": "0.50109404", "text": "static public function show_profile_fields($user)\n {\n global $wp_properties;\n $fields = self::clean_array(!empty($wp_properties['configuration']['feature_settings']['agents']['agent_fields']) ? $wp_properties['configuration']['feature_settings']['agents']['agent_fields'] : array());\n $social_fields = self::clean_array(!empty($wp_properties['configuration']['feature_settings']['agents']['agent_social_fields']) ? $wp_properties['configuration']['feature_settings']['agents']['agent_social_fields'] : array());\n ?>\n <table class=\"form-table\">\n <?php if (is_array($social_fields) and !empty($social_fields)) : ?>\n <?php foreach ($social_fields as $key => $social_field) : ?>\n <tr class='column-<?php echo $key; ?>'>\n <th><label><?php echo $social_field['name']; ?></label></th>\n <td>\n <input type=\"text\" class=\"regular-text\" name=\"agent_social_fields[<?php echo $key; ?>]\"\n value=\"<?php echo esc_attr($user->{$key}); ?>\"/>\n </td>\n </tr>\n <?php endforeach; ?>\n <?php endif;\n if (is_array($fields) and !empty($fields)) : ?>\n <?php foreach ($fields as $key => $field) : ?>\n <tr class='column-<?php echo $key; ?>'>\n <th><label><?php echo $field['name']; ?></label></th>\n <td>\n <input type=\"text\" class=\"regular-text\" name=\"agent_fields[<?php echo $key; ?>]\"\n value=\"<?php echo esc_attr($user->{$key}); ?>\"/>\n </td>\n </tr>\n <?php endforeach; ?>\n <?php else: ?>\n <tr>\n <td\n colspan=\"2\"><?php printf(__('You can add fields on the <a href=\"%s\">settings page</a>.', ud_get_wpp_agents()->domain), 'edit.php?post_type=property&page=property_settings#tab_agents'); ?></td>\n </tr>\n <?php endif; ?>\n\n <?php if (class_exists('class_wpp_pdf_flyer')) : ?>\n <tr>\n <th><label for=\"flyerwriteup\"><?php _e('Flyer Writeup', ud_get_wpp_agents()->domain); ?></label></th>\n <td>\n <textarea cols=\"30\" rows=\"5\" id=\"flyerwriteup\" name=\"agent_fields[flyer_content]\"\n style=\"width:300px;\"><?php echo esc_attr($user->flyer_content); ?></textarea><br/>\n <span\n class=\"description\"><?php _e('Please enter a writeup for flyers.', ud_get_wpp_agents()->domain); ?></span>\n </td>\n </tr>\n <?php endif; ?>\n </table>\n <?php\n }", "title": "" }, { "docid": "99849b589398835d766c36640077542b", "score": "0.5008766", "text": "public function getFields():array\n {\n return [\n 'controlKey' => 'text',\n 'endpointId' => 'text',\n 'login' => 'text',\n ];\n }", "title": "" }, { "docid": "89bba9504c89254aeb814268a8b661e1", "score": "0.50081307", "text": "public function pluginDetails()\n {\n return [\n 'name' => 'Twigs',\n 'description' => 'No description provided yet...',\n 'author' => 'JD',\n 'icon' => 'icon-leaf'\n ];\n }", "title": "" }, { "docid": "d958f046084a3336abc008b5194f508b", "score": "0.500098", "text": "public function pluginDetails()\n {\n return [\n 'name' => 'Bolo Bet Helper',\n 'description' => 'Bolo Bet Helper',\n 'author' => '',\n 'icon' => 'icon-user-plus',\n 'homepage' => ''\n ];\n }", "title": "" }, { "docid": "3256ab79b841379d068e5cee4623e06c", "score": "0.49953237", "text": "public function xoousers_create_standard_fields ()\n {\n $this->allowed_inputs = array(\n 'text' => __('Text','xoousers'),\n 'fileupload' => __('Image Upload','xoousers'),\n 'textarea' => __('Textarea','xoousers'),\n 'select' => __('Select Dropdown','xoousers'),\n 'radio' => __('Radio','xoousers'),\n 'checkbox' => __('Checkbox','xoousers'),\n 'password' => __('Password','xoousers'),\n 'datetime' => __('Date Picker','xoousers')\n );\n\n /* Core registration fields */\n $set_pass = $this->get_option('set_password');\n if ($set_pass)\n {\n $this->registration_fields = array(\n 50 => array(\n 'icon' => 'user',\n 'field' => 'text',\n 'type' => 'usermeta',\n 'meta' => 'user_login',\n 'name' => __('Username', 'xoousers'),\n 'required' => 1\n ),\n 100 => array(\n 'icon' => 'envelope',\n 'field' => 'text',\n 'type' => 'usermeta',\n 'meta' => 'user_email',\n 'name' => __('E-mail','xoousers'),\n 'required' => 1,\n 'can_hide' => 1,\n ),\n 150 => array(\n 'icon' => 'lock',\n 'field' => 'password',\n 'type' => 'usermeta',\n 'meta' => 'user_pass',\n 'name' => __('Password','xoousers'),\n 'required' => 1,\n 'can_hide' => 0,\n 'help' => __('Password must be at least 7 characters long. To make it stronger, use upper and lower case letters, numbers and symbols.','xoousers')\n ),\n 200 => array(\n 'icon' => 0,\n 'field' => 'password',\n 'type' => 'usermeta',\n 'meta' => 'user_pass_confirm',\n 'name' => __('Confirm Password','xoousers'),\n 'required' => 1,\n 'can_hide' => 0,\n 'help' => __('Type your password again.','xoousers')\n ),\n 250 => array(\n 'icon' => 0,\n 'field' => 'password_indicator',\n 'type' => 'usermeta'\n )\n );\n } else {\n\n $this->registration_fields = array(\n 50 => array(\n 'icon' => 'user',\n 'field' => 'text',\n 'type' => 'usermeta',\n 'meta' => 'user_login',\n 'name' => __('Username','xoousers'),\n 'required' => 1\n ),\n 100 => array(\n 'icon' => 'envelope',\n 'field' => 'text',\n 'type' => 'usermeta',\n 'meta' => 'user_email',\n 'name' => __('E-mail','xoousers'),\n 'required' => 1,\n 'can_hide' => 1,\n 'help' => __('A password will be e-mailed to you.','xoousers')\n )\n );\n }\n\n /* Core login fields */\n $this->login_fields = array(\n 50 => array(\n 'icon' => 'user',\n 'field' => 'text',\n 'type' => 'usermeta',\n 'meta' => 'user_login',\n 'name' => __('Username or Email','xoousers'),\n 'required' => 1\n ),\n 100 => array(\n 'icon' => 'lock',\n 'field' => 'password',\n 'type' => 'usermeta',\n 'meta' => 'login_user_pass',\n 'name' => __('Password','xoousers'),\n 'required' => 1\n )\n );\n\n /* These are the basic profile fields */\n $this->fields = array(\n 80 => array(\n 'position' => '50',\n 'type' => 'separator',\n 'name' => __('Profile Info','xoousers'),\n 'private' => 0,\n 'show_in_register' => 1,\n 'show_in_widget' => 1,\n 'deleted' => 0,\n 'show_to_user_role' => 0\n ),\n\n 100 => array(\n 'position' => '100',\n 'icon' => 'user',\n 'field' => 'text',\n 'type' => 'usermeta',\n 'meta' => 'first_name',\n 'name' => __('First Name','xoousers'),\n 'can_hide' => 1,\n 'can_edit' => 1,\n 'show_in_register' => 1,\n 'show_in_widget' => 1,\n 'private' => 0,\n 'social' => 0,\n 'deleted' => 0,\n 'show_to_user_role' => 0,\n 'edit_by_user_role' => 0,\n 'help_text' => ''\n ),\n 120 => array(\n 'position' => '101',\n 'icon' => 0,\n 'field' => 'text',\n 'type' => 'usermeta',\n 'meta' => 'last_name',\n 'name' => __('Last Name','xoousers'),\n 'can_hide' => 1,\n 'can_edit' => 1,\n 'show_in_register' => 1,\n 'show_in_widget' => 1,\n 'private' => 0,\n 'social' => 0,\n 'deleted' => 0,\n 'show_to_user_role' => 0,\n 'edit_by_user_role' => 0,\n 'help_text' => ''\n ),\n\n 130 => array(\n 'position' => '130',\n 'icon' => '0',\n 'field' => 'select',\n 'type' => 'usermeta',\n 'meta' => 'age',\n 'name' => __('Age','xoousers'),\n 'can_hide' => 1,\n 'can_edit' => 1,\n 'show_in_register' => 1,\n 'show_in_widget' => 1,\n 'required' => 1,\n 'private' => 0,\n 'social' => 0,\n 'predefined_options' => 'age',\n 'deleted' => 0,\n 'allow_html' => 0,\n 'show_to_user_role' => 0,\n 'edit_by_user_role' => 0,\n 'help_text' => ''\n ),\n\n 150 => array(\n 'position' => '150',\n 'icon' => 'user',\n 'field' => 'text',\n 'type' => 'usermeta',\n 'meta' => 'display_name',\n 'name' => __('Display Name','xoousers'),\n 'can_hide' => 0,\n 'can_edit' => 1,\n 'show_in_register' => 1,\n 'show_in_widget' => 1,\n 'private' => 0,\n 'social' => 0,\n 'required' => 1,\n 'deleted' => 0,\n 'show_to_user_role' => 0,\n 'edit_by_user_role' => 0,\n 'help_text' => ''\n ),\n 170 => array(\n 'position' => '200',\n 'icon' => 'pencil',\n 'field' => 'textarea',\n 'type' => 'usermeta',\n 'meta' => 'brief_description',\n 'name' => __('Brief Description','xoousers'),\n 'can_hide' => 0,\n 'can_edit' => 1,\n 'show_in_register' => 1,\n 'show_in_widget' => 0,\n 'private' => 0,\n 'social' => 0,\n 'deleted' => 0,\n 'allow_html' => 1,\n 'show_to_user_role' => 0,\n 'edit_by_user_role' => 0,\n 'help_text' => ''\n ),\n 190 => array(\n 'position' => '200',\n 'icon' => 'pencil',\n 'field' => 'textarea',\n 'type' => 'usermeta',\n 'meta' => 'description',\n 'name' => __('About / Bio','xoousers'),\n 'can_hide' => 1,\n 'can_edit' => 1,\n 'show_in_register' => 1,\n 'show_in_widget' => 0,\n 'private' => 0,\n 'social' => 0,\n 'deleted' => 0,\n 'allow_html' => 1,\n 'show_to_user_role' => 0,\n 'edit_by_user_role' => 0,\n 'help_text' => ''\n ),\n 200 => array(\n 'position' => '200',\n 'icon' => '0',\n 'field' => 'select',\n 'type' => 'usermeta',\n 'meta' => 'country',\n 'name' => __('Country','xoousers'),\n 'can_hide' => 1,\n 'can_edit' => 1,\n 'show_in_register' => 1,\n 'show_in_widget' => 1,\n 'required' => 1,\n 'private' => 0,\n 'social' => 0,\n 'predefined_options' => 'countries',\n 'deleted' => 0,\n 'allow_html' => 0,\n 'show_to_user_role' => 0,\n 'edit_by_user_role' => 0,\n 'help_text' => ''\n ),\n\n 230 => array(\n 'position' => '250',\n 'type' => 'separator',\n 'name' => __('Contact Info','xoousers'),\n 'private' => 0,\n 'show_in_register' => 1,\n 'show_in_widget' => 1,\n 'deleted' => 0,\n 'show_to_user_role' => 0\n\n ),\n\n\n 430 => array(\n 'position' => '400',\n 'icon' => 'link',\n 'field' => 'text',\n 'type' => 'usermeta',\n 'meta' => 'user_url',\n 'name' => __('Website','xoousers'),\n 'can_hide' => 1,\n 'can_edit' => 1,\n 'show_in_register' => 1,\n 'show_in_widget' => 1,\n 'required' => 0,\n 'private' => 0,\n 'social' => 0,\n 'deleted' => 0,\n 'show_to_user_role' => 0,\n 'edit_by_user_role' => 0,\n 'help_text' => ''\n ),\n 470 => array(\n 'position' => '450',\n 'type' => 'separator',\n 'name' => __('Social Profiles','xoousers'),\n 'private' => 0,\n 'show_in_register' => 1,\n 'show_in_widget' => 0,\n 'deleted' => 0,\n 'show_to_user_role' => 0\n\n ),\n 520 => array(\n 'position' => '500',\n 'icon' => 'facebook',\n 'field' => 'text',\n 'type' => 'usermeta',\n 'meta' => 'facebook',\n 'name' => __('Facebook','xoousers'),\n 'can_hide' => 1,\n 'can_edit' => 1,\n 'required' => 0,\n 'show_in_register' => 1,\n 'show_in_widget' => 0,\n 'private' => 0,\n 'social' => 1,\n 'tooltip' => __('Connect via Facebook','xoousers'),\n 'deleted' => 0,\n 'show_to_user_role' => 0,\n 'edit_by_user_role' => 0,\n 'help_text' => ''\n ),\n 560 => array(\n 'position' => '510',\n 'icon' => 'twitter',\n 'field' => 'text',\n 'type' => 'usermeta',\n 'meta' => 'twitter',\n 'name' => __('Twitter Username','xoousers'),\n 'can_hide' => 1,\n 'can_edit' => 1,\n 'required' => 0,\n 'show_in_register' => 1,\n 'show_in_widget' => 0,\n 'private' => 0,\n 'social' => 1,\n 'tooltip' => __('Connect via Twitter','xoousers'),\n 'deleted' => 0,\n 'show_to_user_role' => 0,\n 'edit_by_user_role' => 0,\n 'help_text' => ''\n ),\n 590 => array(\n 'position' => '520',\n 'icon' => 'google-plus',\n 'field' => 'text',\n 'type' => 'usermeta',\n 'meta' => 'googleplus',\n 'name' => __('Google+','xoousers'),\n 'can_hide' => 1,\n 'can_edit' => 1,\n 'show_in_register' => 1,\n 'show_in_widget' => 0,\n 'private' => 0,\n 'required' => 0,\n 'social' => 1,\n 'tooltip' => __('Connect via Google+','xoousers'),\n 'deleted' => 0,\n 'show_to_user_role' => 0,\n 'edit_by_user_role' => 0,\n 'help_text' => ''\n ),\n 600 => array(\n 'position' => '550',\n 'type' => 'separator',\n 'name' => __('Account Info','xoousers'),\n 'private' => 0,\n 'show_in_register' => 0,\n 'show_in_widget' =>0,\n 'deleted' => 0,\n 'show_to_user_role' => 0\n\n ),\n 690 => array(\n 'position' => '600',\n 'icon' => 'lock',\n 'field' => 'password',\n 'type' => 'usermeta',\n 'meta' => 'user_pass',\n 'name' => __('New Password','xoousers'),\n 'can_hide' => 0,\n 'can_edit' => 1,\n 'private' => 1,\n 'social' => 0,\n 'deleted' => 0,\n 'show_to_user_role' => 0,\n 'edit_by_user_role' => 0,\n 'help_text' => ''\n ),\n 720 => array(\n 'position' => '700',\n 'icon' => 0,\n 'field' => 'password',\n 'type' => 'usermeta',\n 'meta' => 'user_pass_confirm',\n 'name' => 0,\n 'can_hide' => 0,\n 'can_edit' => 1,\n 'private' => 1,\n 'social' => 0,\n 'deleted' => 0,\n 'show_to_user_role' => 0,\n 'edit_by_user_role' => 0,\n 'help_text' => ''\n )\n );\n\n /* Store default profile fields for the first time */\n if (!get_option('usersultra_profile_fields'))\n {\n update_option('usersultra_profile_fields', $this->fields);\n }\n\n\n }", "title": "" }, { "docid": "caeabbae12e2aa080a2838513a1cb1f2", "score": "0.49927035", "text": "private function getInfo()\n {\n if ($this->attachment_info == 0) {\n $db = DataAccess::getInstance();\n $row = $db->GetRow(\"SELECT * FROM \" . $this->user_share_fees_configuration_table);\n $this->attachment_info = $row;\n $this->active = $this->attachment_info['active'];\n }\n return;\n }", "title": "" }, { "docid": "4d50f86ad4f0c678d7d1adc6f6740205", "score": "0.4992667", "text": "function PayFast_MetaData()\n{\n return array(\n 'DisplayName' => 'PayFast',\n 'APIVersion' => '1.1', // Use API Version 1.1\n 'DisableLocalCreditCardInput' => true,\n 'TokenisedStorage' => false, // _storeremote takes CC details and returns token via gateway API\n );\n}", "title": "" }, { "docid": "14d773178bf0c624136acd19b375a206", "score": "0.49911913", "text": "public function settings_info() {\n ?>\n <p>\n This plugin allows you to secure a site so that only users authenticated to a given external application may access it. All of the following settings must be set correctly for this plugin to work correctly.\n </p>\n <hr>\n <?php\n }", "title": "" }, { "docid": "89c4cf06b89627a0d22c5773123cb345", "score": "0.49908528", "text": "public function createFormFields()\n {\n return array(\n 'tab' => 'CreditCard',\n 'fields' => array(\n array(\n 'name' => 'enabled',\n 'label' => $this->getTranslatedString('text_enable'),\n 'type' => 'onoff',\n 'doc' => $this->getTranslatedString('enable_heading_title_creditcard'),\n 'default' => 0,\n ),\n array(\n 'name' => 'psd_two',\n 'label' => $this->getTranslatedString('config_PSD2_information'),\n 'type' => 'hint',\n 'doc' => $this->getTranslatedString('config_PSD2_information_desc_prestashop'),\n ),\n array(\n 'name' => 'title',\n 'label' => $this->getTranslatedString('config_title'),\n 'type' => 'text',\n 'default' => $this->getTranslatedString('heading_title_creditcard'),\n 'required' => true,\n ),\n array(\n 'name' => 'merchant_account_id',\n 'label' => $this->getTranslatedString('config_merchant_account_id'),\n 'type' => 'text',\n 'default' => $this->credentialsConfig->getMerchantAccountId(),\n 'required' => true,\n ),\n array(\n 'name' => 'secret',\n 'label' => $this->getTranslatedString('config_merchant_secret'),\n 'type' => 'text',\n 'default' => $this->credentialsConfig->getSecret(),\n 'required' => true,\n ),\n array(\n 'name' => 'three_d_merchant_account_id',\n 'label' => $this->getTranslatedString('three_d_merchant_account_id'),\n 'type' => 'text',\n 'default' => $this->credentialsConfig->getThreeDMerchantAccountId(),\n 'required' => true,\n ),\n array(\n 'name' => 'three_d_secret',\n 'label' => $this->getTranslatedString('config_three_d_merchant_secret'),\n 'type' => 'text',\n 'default' => $this->credentialsConfig->getThreeDSecret(),\n 'required' => true,\n ),\n array(\n 'name' => 'ssl_max_limit',\n 'label' => $this->getTranslatedString('config_ssl_max_limit'),\n 'type' => 'text',\n 'default' => '300.0',\n 'required' => true,\n ),\n array(\n 'name' => 'three_d_min_limit',\n 'label' => $this->getTranslatedString('config_three_d_min_limit'),\n 'type' => 'text',\n 'default' => '100.0',\n 'required' => true,\n ),\n array(\n 'name' => 'base_url',\n 'label' => $this->getTranslatedString('config_base_url'),\n 'type' => 'text',\n 'doc' => $this->getTranslatedString('config_base_url_desc'),\n 'default' => $this->credentialsConfig->getBaseUrl(),\n 'required' => true,\n ),\n array(\n 'name' => 'wpp_url',\n 'label' => $this->getTranslatedString('config_wpp_url'),\n 'type' => 'text',\n 'doc' => $this->getTranslatedString('config_wpp_url_desc'),\n 'default' => $this->credentialsConfig->getWppUrl(),\n 'required' => true,\n ),\n array(\n 'name' => 'http_user',\n 'label' => $this->getTranslatedString('config_http_user'),\n 'type' => 'text',\n 'default' => $this->credentialsConfig->getHttpUser(),\n 'required' => true,\n ),\n array(\n 'name' => 'http_pass',\n 'label' => $this->getTranslatedString('config_http_password'),\n 'type' => 'text',\n 'default' => $this->credentialsConfig->getHttpPassword(),\n 'required' => true,\n ),\n array(\n 'name' => 'payment_action',\n 'type' => 'select',\n 'default' => 'pay',\n 'label' => $this->getTranslatedString('config_payment_action'),\n 'options' => array(\n array('key' => 'reserve', 'value' => $this->getTranslatedString('text_payment_action_reserve')),\n array('key' => 'pay', 'value' => $this->getTranslatedString('text_payment_action_pay')),\n ),\n ),\n array(\n 'name' => 'requestor_challenge',\n 'type' => 'select',\n 'default' => ChallengeInd::NO_PREFERENCE,\n 'label' => $this->getTranslatedString('config_challenge_indicator'),\n 'options' => array(\n array(\n 'key' => ChallengeInd::NO_PREFERENCE,\n 'value' => $this->getTranslatedString('config_challenge_no_preference')\n ),\n array(\n 'key' => ChallengeInd::NO_CHALLENGE,\n 'value' => $this->getTranslatedString('config_challenge_no_challenge')\n ),\n array(\n 'key' => ChallengeInd::CHALLENGE_THREED,\n 'value' => $this->getTranslatedString('config_challenge_challenge_threed')\n )\n ),\n ),\n array(\n 'name' => 'descriptor',\n 'label' => $this->getTranslatedString('config_descriptor'),\n 'type' => 'onoff',\n 'default' => 0,\n ),\n array(\n 'name' => 'send_additional',\n 'label' => $this->getTranslatedString('config_additional_info'),\n 'type' => 'onoff',\n 'default' => 1,\n ),\n array(\n 'name' => 'ccvault_enabled',\n 'label'=> $this->getTranslatedString('enable_vault'),\n 'type' => 'onoff',\n 'default' => 0\n ),\n array(\n 'name' => 'test_credentials',\n 'type' => 'linkbutton',\n 'required' => false,\n 'buttonText' => $this->getTranslatedString('test_config'),\n 'id' => 'creditcardConfig',\n 'method' => 'creditcard',\n 'send' => array(\n 'WIRECARD_PAYMENT_GATEWAY_CREDITCARD_BASE_URL',\n 'WIRECARD_PAYMENT_GATEWAY_CREDITCARD_WPP_URL',\n 'WIRECARD_PAYMENT_GATEWAY_CREDITCARD_HTTP_USER',\n 'WIRECARD_PAYMENT_GATEWAY_CREDITCARD_HTTP_PASS'\n )\n )\n )\n );\n }", "title": "" }, { "docid": "d86e43863710058d069604a3178b8ee5", "score": "0.4988407", "text": "public function getAvailableFields(): array\n {\n return [\n 'user_id' => 'User id',\n ];\n }", "title": "" }, { "docid": "6c196a6f7f1f5a713e04c9c9ffeb585b", "score": "0.4977856", "text": "function GetAuthNeeded(){}", "title": "" }, { "docid": "3de3b3999889141a0481d6d6d23d6786", "score": "0.49717653", "text": "public function get_form_fields(): array;", "title": "" }, { "docid": "af7639397e94726fef31ef1ade3c8066", "score": "0.4963101", "text": "public static function AuthInfo()\n\t{\n\t\t$result = [\"login\" => false, \"id\" => null, \"name\" => null];\n\t\tif (isset($_SESSION['user_id']))\n\t\t\t$result = [\"login\" => true, \"id\" => $_SESSION['user_id'], \"name\" => $_SESSION['user_name']];\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "f4ab7907e89eb7b90adcb9d26ac79925", "score": "0.49575448", "text": "public function defaultAccountDetail()\n {\n $core =& get_instance();\n\n $detail = array();\n\n //$detail['accountname'] = \"Create a new Account.\";\n $detail['accountstatus_id'] = \"1\";\n $detail['accountstatusname'] = \"Active\";\n $detail['timezone_id'] = \"146\";\n $detail['timezone'] = \"US/Pacific\";\n $detail['accounttype_id'] = \"1\";\n $detail['accounttype'] = \"Customer\";\n $detail['firstname'] = \"\";\n $detail['lastname'] = \"\";\n $detail['user_id'] = \"\";\n $detail['theme'] = $core->config['parameters']['default_theme'];\n\n return $detail;\n\n }", "title": "" }, { "docid": "91aff1550663385de0351749c642ca00", "score": "0.49557745", "text": "function NAF_NAFmenublock_info() {\r\n return array('text_type' => 'NAF menu',\r\n 'module' => 'NAF',\r\n 'text_type_long' => 'Show NAF menu',\r\n 'allow_multiple' => false,\r\n 'form_content' => false,\r\n 'form_refresh' => true,\r\n 'show_preview' => true);\r\n}", "title": "" }, { "docid": "e7ba30704ff33866fff1e537f38fd72c", "score": "0.49555317", "text": "function info()\n\t{\n\t\t$info=array();\n\t\t$info['author']='Chris Graham';\n\t\t$info['organisation']='ocProducts';\n\t\t$info['hacked_by']=NULL;\n\t\t$info['hack_version']=NULL;\n\t\t$info['version']=2;\n\t\t$info['locked']=false;\n\t\t$info['parameters']=array('username','period','display','title','width','height');\n\t\treturn $info;\n\t}", "title": "" }, { "docid": "b3d292c10c01d42b4265d66eae93c540", "score": "0.49539167", "text": "public function compInfo(){\n\t\t\t//invoco la funcion login del modelo\n\t\t\t$respuesta = $this->modelo->login($this->usuario,$this->contrasenia);\n\t\t\tif ($respuesta != 2 || $respuesta != 3) {\n\t\t\t\tswitch ($respuesta[0]['nombrerol']) {\n\t\t\t\t\t\tcase 'Vendedor':\n\t\t\t\t\t\t\treturn array(\n\t\t\t\t\t\t\t\t'ruta' => '/Usuario/main.html',\n\t\t\t\t\t\t\t\t'infoUser' => $respuesta[0]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'Recolector':\n\t\t\t\t\t\t\treturn array(\n\t\t\t\t\t\t\t\t'ruta' => '/Recolector/mainRecolector.html',\n\t\t\t\t\t\t\t\t'infoUser' => $respuesta[0]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\treturn 4;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\n\t\t\t}else{\n\t\t\t\treturn $respuesta;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "c111327d194cc18b3b10daaf299c8e31", "score": "0.49445406", "text": "public function renderTab()\n {\n /**\n * @var $commonController \\LaterPay\\Controller\\Admin\\Common\n */\n $commonController = Bootstrap::get('\\LaterPay\\Controller\\Admin\\Common');\n $liveMerchantId = get_option('laterpay_live_merchant_id');\n $liveAPIKey = get_option('laterpay_live_api_key');\n\n $urlEU = 'https://web.laterpay.net/dialog/entry/?redirect_to=/merchant/add#/signup';\n $urlUS = 'https://web.uselaterpay.com/dialog/entry/?redirect_to=/merchant/add#/signup';\n\n $args = array(\n 'sandbox_merchant_id' => get_option('laterpay_sandbox_merchant_id'),\n 'sandbox_api_key' => get_option('laterpay_sandbox_api_key'),\n 'live_merchant_id' => $liveMerchantId,\n 'live_api_key' => $liveAPIKey,\n 'region' => get_option('laterpay_region'),\n 'credentials_url_eu' => $urlEU,\n 'credentials_url_us' => $urlUS,\n 'plugin_is_in_live_mode' => $this->config->get('is_in_live_mode'),\n 'plugin_is_in_visible_test_mode' => get_option('laterpay_is_in_visible_test_mode'),\n 'header' => $commonController->renderHeader(),\n 'has_live_credentials' => ! empty($liveMerchantId) && ! empty($liveAPIKey),\n '_wpnonce' => wp_create_nonce('laterpay_form'),\n );\n\n $this\n ->loadAssets()\n ->render('admin/tabs/account', array('_' => $args));\n }", "title": "" }, { "docid": "6813eb9f591753d16444ee2abf175a88", "score": "0.4944227", "text": "public function get_info()\n\t\t{\n\t\t\treturn array(\n\t\t\t\t'name'=>'Sage Pay Direct',\n\t\t\t\t'description'=>'UK payment gateway - Sage Pay. \"Direct\" integration method.'\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "25cfd03c89113bb3392eec88ee2a1a37", "score": "0.49415854", "text": "public function acc_setup(){\n\t\t// $this->form_validation->set_rules('txt_gender', 'gender', 'required');\n\t\t$this->form_validation->set_rules('password', 'password', 'required');\n\t\t$this->form_validation->set_rules('txt_acc_type', 'account type', 'required');\n\t\t// $this->form_validation->set_rules('txtaccCode', 'account code', 'required');\n\t\t$this->form_validation->set_rules('ddlLocation', 'location', 'required');\n\t\tif ($this->form_validation->run()==TRUE)\n\n\t\t{\t$row=$this->ml->AccTypeValidate($this->session->memLogin);\n\t\t\tif($row!==true){\n\t\t\t\t$this->ml->addAccount();\n\t\t\t\tredirect('profile/'.$this->session->acc_id);\n\t\t\t}else{\n\t\t\t\t$data[\"error\"]=\"this member of account type have already... \";\n\t\t\t\t$data[\"member\"] = $this->ml->select($this->session->memLogin);\n\t\t\t\t$data[\"location\"] = $this->ml->get_location();\n\t\t\t\t$this->load->view('layout_site/header_top1');\n\t\t\t\t$this->load->view('layout_site/nav');\n\t\t\t\t$this->load->view('addAccount',$data);\n\t\t\t\t$this->load->view('layout_site/footer');\n\t\t\t}\n\t\t}else{ $this->addAccount(); }\n\t}", "title": "" }, { "docid": "0ab83d472156a3327b0fe6ee612ea0d6", "score": "0.49392352", "text": "public function getAvailableFields(): array\n {\n return [\n 'ADDITIONAL_INFO' => 'Дополнительная информация',\n 'ASSIGNED_BY_ID' => 'Связано с пользователем по ID',\n 'BEGINDATE' => 'Дата начала',\n 'CATEGORY_ID' => 'Идентификатор направления',\n 'CLOSED' => 'Завершена',\n 'CLOSEDATE' => 'Дата завершения',\n 'COMMENTS' => 'Коментарии',\n 'COMPANY_ID' => 'Идентификатор привязанной компании',\n 'CONTACT_IDS' => 'Идентификатор привязанного контакта',\n 'CURRENCY_ID' => 'Идентификатор валюты сделки',\n 'IS_NEW' => 'Флаг новой сделки (т. е. сделка в первой стадии)',\n 'LOCATION' => 'Местоположение клиента',\n 'OPENED' => 'Доступен для всех',\n 'OPPORTUNITY' => 'Сумма',\n 'ORIGINATOR_ID' => 'Идентификатор источника данных',\n 'ORIGIN_ID' => 'Идентификатор элемента в источнике данных',\n 'PROBABILITY' => 'Вероятность',\n 'STAGE_ID' => 'Идентификатор стадии',\n 'STAGE_SEMANTIC_ID' => 'Имя',\n 'TAX_VALUE' => 'Ставка налога',\n 'TITLE' => 'Название',\n 'TYPE_ID' => 'Тип сделки',\n 'UTM_CAMPAIGN' => 'Обозначение рекламной кампании',\n 'UTM_CONTENT' => 'Содержание кампании',\n 'UTM_MEDIUM' => 'Тип трафика',\n 'UTM_SOURCE' => 'Рекламная система',\n 'UTM_TERM' => 'Условие поиска кампании',\n 'PRODUCTS' => 'PRODUCTS',\n ];\n }", "title": "" }, { "docid": "fea1598cf841a2496356443f2f62f985", "score": "0.49327916", "text": "static function get_fields() { return array(); }", "title": "" } ]
d4c1e5e46f3147a669ade4e0b43388e8
Gets the field the key references
[ { "docid": "063d915d69a50e542da6bc0c64e39557", "score": "0.0", "text": "public static function getForeignKeys() {\n\t\t$keys = array();\n\n\t\t$std = new \\stdClass();\n\t\t$std->table = \"venue_check_question\";\n\t\t$std->field = \"id\";\n\t\t\n\t\t$keys['venue_check_question'] = $std;\t\n\t\t$std = new \\stdClass();\n\t\t$std->table = \"venue_check\";\n\t\t$std->field = \"id\";\n\t\t\n\t\t$keys['venue_check'] = $std;\t\n\t\treturn $keys;\n\t}", "title": "" } ]
[ { "docid": "de4c3fd7db7471b9e2ee6f938ee4f5fc", "score": "0.8035067", "text": "public function getKeyField() {\n\t\treturn $this->_keyField;\n\t}", "title": "" }, { "docid": "2445bf0e7a4897d76cf027a7c8c16ba6", "score": "0.777812", "text": "public function getKeyField()\n {\n return static::key();\n }", "title": "" }, { "docid": "cceab87751cabcf61e0cf724b481e7bd", "score": "0.75763094", "text": "public function field($key) {\n\t\treturn $this->_schema[$key];\n\t}", "title": "" }, { "docid": "4ee0318c453f0d8e1469abdf3aea5d74", "score": "0.751993", "text": "public function getFieldsKey() {\n\t\treturn $this->_fieldsKey;\n\t}", "title": "" }, { "docid": "ef5658cba1619441c369ab8b203b290b", "score": "0.74680716", "text": "public function key_field(){\n $object = new $this->key();\n return $object->source()->keycol();\n }", "title": "" }, { "docid": "b8f62c6eba68cc3b13cff22ea081bb67", "score": "0.7304269", "text": "private function getRefFieldKey()\n\t{\n\t\tif (!empty($this->refFieldKey)) return $this->refFieldKey;\n\n\t\tforeach ($this->schema as $field)\n\t\t{\n\t\t\tif (isset($field['type']) && $field['type'] == 'ref')\n\t\t\t{\n\t\t\t\t$this->refFieldKey = $field['name'];\n\t\t\t\treturn $this->refFieldKey;\n\t\t\t}\n\t\t}\n\n\t\tthrow new RuntimeException('Schema Invalid, no ref field!');\n\t}", "title": "" }, { "docid": "3a6f3734edfebd26cf0c4a3231bf3bf1", "score": "0.71322954", "text": "public function getKey()\n {\n return $this->{$this->getKeyField()};\n }", "title": "" }, { "docid": "314882e98b3650492ff0a883bcd20362", "score": "0.7083762", "text": "public function key()\n\t{\n\t\treturn $this->getField('key');\n\t}", "title": "" }, { "docid": "64da68ba2f365e7610fcc58be18b682e", "score": "0.70637876", "text": "public function getField() {\n\t\treturn $this->_field;\n\t}", "title": "" }, { "docid": "196d6daeafe22912d980270cd8c49c74", "score": "0.7046829", "text": "public function getField()\n {\n return $this->_field;\n }", "title": "" }, { "docid": "196d6daeafe22912d980270cd8c49c74", "score": "0.7046829", "text": "public function getField()\n {\n return $this->_field;\n }", "title": "" }, { "docid": "ab1eb4f7e55a79af466d10bcbed3ddc6", "score": "0.7041635", "text": "function key() {\n return key($this->fields);\n }", "title": "" }, { "docid": "19e603b8c026d3eb6e4895d18384a5dd", "score": "0.7011855", "text": "public function getField()\n {\n return $this->field;\n }", "title": "" }, { "docid": "19e603b8c026d3eb6e4895d18384a5dd", "score": "0.7011855", "text": "public function getField()\n {\n return $this->field;\n }", "title": "" }, { "docid": "19e603b8c026d3eb6e4895d18384a5dd", "score": "0.7011855", "text": "public function getField()\n {\n return $this->field;\n }", "title": "" }, { "docid": "19e603b8c026d3eb6e4895d18384a5dd", "score": "0.7011855", "text": "public function getField()\n {\n return $this->field;\n }", "title": "" }, { "docid": "19e603b8c026d3eb6e4895d18384a5dd", "score": "0.7011855", "text": "public function getField()\n {\n return $this->field;\n }", "title": "" }, { "docid": "368005ac42790d5ddb7cbc2d776a4b12", "score": "0.69983065", "text": "public function getField() {\n return $this->field;\n }", "title": "" }, { "docid": "1845b34b9adf64b7dd94d48b062d09fb", "score": "0.6984325", "text": "public function getField() {\n return $this->fieldName;\n }", "title": "" }, { "docid": "a51c62ba1578902e5a9a712c650fe35f", "score": "0.6967844", "text": "public function getGetfield()\n {\n return $this->getfield;\n }", "title": "" }, { "docid": "25161e92665b9c569d5059d6bdf0b1ca", "score": "0.69466287", "text": "public function getField();", "title": "" }, { "docid": "25161e92665b9c569d5059d6bdf0b1ca", "score": "0.69466287", "text": "public function getField();", "title": "" }, { "docid": "25161e92665b9c569d5059d6bdf0b1ca", "score": "0.69466287", "text": "public function getField();", "title": "" }, { "docid": "25161e92665b9c569d5059d6bdf0b1ca", "score": "0.69466287", "text": "public function getField();", "title": "" }, { "docid": "25161e92665b9c569d5059d6bdf0b1ca", "score": "0.69466287", "text": "public function getField();", "title": "" }, { "docid": "236a4431e62f0e1bee9e356a4139b155", "score": "0.6934927", "text": "public function get_field();", "title": "" }, { "docid": "94cc21de0204b1c350c4e9b66a8f001f", "score": "0.6934363", "text": "public function field($key)\n\t{\n\t\tif (is_array($key)) $key = $key[0];\n\n\t\tforeach ($this->fields as $field)\n\t\t{\n\t\t\tif ($key == $field->name)\n\t\t\t{\n\t\t\t\treturn $field->value();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9c079b011dcf6d9191a5bd15cbc55227", "score": "0.68736976", "text": "public function getField(): string\n {\n return $this->field;\n }", "title": "" }, { "docid": "bf123b9c0b28dd98e718678d80000247", "score": "0.6868661", "text": "public function __get($key){\n return $this->fields[$key];\n }", "title": "" }, { "docid": "84b000fef4a14867de87e081a31114b8", "score": "0.6846831", "text": "public function getRefKeys () {\n\t\tif (isset($this->options['refKey'])) {\n\t\t\treturn explode(\",\", $this->options['refKey']);\n\t\t} else {\n\t\t\treturn $this->config->getEntity($this->foreign)->getPkFields();\n\t\t}\n\t}", "title": "" }, { "docid": "84b000fef4a14867de87e081a31114b8", "score": "0.6846831", "text": "public function getRefKeys () {\n\t\tif (isset($this->options['refKey'])) {\n\t\t\treturn explode(\",\", $this->options['refKey']);\n\t\t} else {\n\t\t\treturn $this->config->getEntity($this->foreign)->getPkFields();\n\t\t}\n\t}", "title": "" }, { "docid": "eeaf0c51f06da5e84cd430779a28c5b9", "score": "0.68284494", "text": "public final function getRefKey() {\n return $this->refKey;\n }", "title": "" }, { "docid": "f58dbb535e9b63065e768084a3be29b0", "score": "0.68037415", "text": "public function getHashField()\n {\n return $this->field_prefix . $this->id;\n }", "title": "" }, { "docid": "3ddfaff41265604ed879c064c5ddbaac", "score": "0.6803007", "text": "public function field() {\n return $this->field;\n }", "title": "" }, { "docid": "4234a2f8d02b208fbf1156885c07ad08", "score": "0.6799944", "text": "private function getField()\n {\n /** @noinspection PhpIncompatibleReturnTypeInspection */\n return Craft::$app->getFields()->getFieldById($this->fieldId);\n }", "title": "" }, { "docid": "aa20c8c49faeb87d4e43b66256492ced", "score": "0.6771685", "text": "private function getField($key) {\r\n return $this->getValueByKey($this->response, $key);\r\n }", "title": "" }, { "docid": "963120f351713a4909fe1dbb920fea49", "score": "0.67101455", "text": "public function getRefKeys () {\n\t\tif (isset($this->options['refKey'])) {\n\t\t\treturn explode(\",\", $this->options['refKey']);\n\t\t} else {\n\t\t\treturn $this->config->getEntity($this->local)->getPkFields();\n\t\t}\n\t}", "title": "" }, { "docid": "963120f351713a4909fe1dbb920fea49", "score": "0.67101455", "text": "public function getRefKeys () {\n\t\tif (isset($this->options['refKey'])) {\n\t\t\treturn explode(\",\", $this->options['refKey']);\n\t\t} else {\n\t\t\treturn $this->config->getEntity($this->local)->getPkFields();\n\t\t}\n\t}", "title": "" }, { "docid": "8ebee4d99cf98f434f2ba90b5ed5d8e6", "score": "0.66941035", "text": "function getKeyField() \n {\n return \"navbargroup_nameKey\";\n }", "title": "" }, { "docid": "b813d34e0822c464140001e4ecb614f8", "score": "0.66913795", "text": "public function key()\n {\n return $this->fields[$this->iteratorPosition];\n }", "title": "" }, { "docid": "64aba010be048026bd6a4d54b7fde7dc", "score": "0.6673089", "text": "public function getField(string $key)\n {\n return optional($this->fields->where('key', $key)->first())->value;\n }", "title": "" }, { "docid": "3e0db1f2da15e49587af816aacf8ec85", "score": "0.66520244", "text": "private function referenceFieldsByTag()\n {\n $tag = $this->spec['field']['tag'];\n\n if ($this->cache->offsetExists($tag)) {\n return $this->cache[$tag];\n }\n\n if ('LDR' !== $tag) {\n $_fieldRef = $this->record->getFields($tag, true);\n } else {\n // tag = LDR\n $_fieldRef[] = $this->record->getLeader();\n }\n\n $this->cache[$tag] = $_fieldRef;\n\n return $_fieldRef;\n }", "title": "" }, { "docid": "e697a532a0a79badec473646228e1ed0", "score": "0.66002893", "text": "public function __get($key) {\n if ($key === 'ID') {\n return $this->Id;\n }\n\n foreach ($this->FieldValueCollection->EntityFields as $arr) {\n if ($arr->InternalName === $key) return $arr->Value;\n }\n }", "title": "" }, { "docid": "c1ac9745ef782d7feda4f220829b2fe8", "score": "0.6577114", "text": "public function getField()\n {\n return isset($this->field) ? $this->field : '';\n }", "title": "" }, { "docid": "f76308bf439e0591f25c0c8386f7093b", "score": "0.65762144", "text": "public function getField()\n\t{\n\t\treturn $this->_neoField;\n\t}", "title": "" }, { "docid": "3c84e0ba3e82a682d7520c28d5e61613", "score": "0.6560063", "text": "public function getKey ( ) { return $this->key; }", "title": "" }, { "docid": "20f006f116b12441091c1005d4dc9bff", "score": "0.65005034", "text": "public function getKey() {\r\n return $this->key;\r\n }", "title": "" }, { "docid": "2f17dfdb56b075eebef3c04d9c0a5039", "score": "0.6500037", "text": "public function getFieldName(){\n\t\treturn $this->fieldName;\n\t}", "title": "" }, { "docid": "2f17dfdb56b075eebef3c04d9c0a5039", "score": "0.6500037", "text": "public function getFieldName(){\n\t\treturn $this->fieldName;\n\t}", "title": "" }, { "docid": "8c87e2acd9b5b7307b631bd2551c7e58", "score": "0.6495125", "text": "public function getFieldName() {\n return $this->fieldName;\n }", "title": "" }, { "docid": "4deb836aef55d6193aa557a785bfa979", "score": "0.6488392", "text": "public function getKey(){\n return($this->key);\n }", "title": "" }, { "docid": "fde4d6fddf8a961b90a8dcdfda869d56", "score": "0.64802945", "text": "public function getKey()\n {\n if (is_null($this->key)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_KEY);\n if (is_null($data)) {\n return null;\n }\n $this->key = (string) $data;\n }\n\n return $this->key;\n }", "title": "" }, { "docid": "fde4d6fddf8a961b90a8dcdfda869d56", "score": "0.64802945", "text": "public function getKey()\n {\n if (is_null($this->key)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_KEY);\n if (is_null($data)) {\n return null;\n }\n $this->key = (string) $data;\n }\n\n return $this->key;\n }", "title": "" }, { "docid": "fde4d6fddf8a961b90a8dcdfda869d56", "score": "0.64802945", "text": "public function getKey()\n {\n if (is_null($this->key)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_KEY);\n if (is_null($data)) {\n return null;\n }\n $this->key = (string) $data;\n }\n\n return $this->key;\n }", "title": "" }, { "docid": "fde4d6fddf8a961b90a8dcdfda869d56", "score": "0.64802945", "text": "public function getKey()\n {\n if (is_null($this->key)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_KEY);\n if (is_null($data)) {\n return null;\n }\n $this->key = (string) $data;\n }\n\n return $this->key;\n }", "title": "" }, { "docid": "fde4d6fddf8a961b90a8dcdfda869d56", "score": "0.64802945", "text": "public function getKey()\n {\n if (is_null($this->key)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_KEY);\n if (is_null($data)) {\n return null;\n }\n $this->key = (string) $data;\n }\n\n return $this->key;\n }", "title": "" }, { "docid": "7572e9e8370af795cda8c2ede49b7268", "score": "0.6478838", "text": "public function getKey() {\n return $this->key;\n }", "title": "" }, { "docid": "74ca942320a54bb5b8b5b9b7082159fc", "score": "0.64743763", "text": "public function getKey()\n\t{ \n\t\treturn $this->key;\n\t}", "title": "" }, { "docid": "6791cad16f1c49a39daef7673e1b8096", "score": "0.6454456", "text": "public static function &fieldKeys()\n {\n if (!isset(Civi::$statics[__CLASS__]['fieldKeys'])) {\n Civi::$statics[__CLASS__]['fieldKeys'] = array_flip(Socrates\\Utils_Array::collect('name', self::fields()));\n }\n return Civi::$statics[__CLASS__]['fieldKeys'];\n }", "title": "" }, { "docid": "75926e7063b70a1f875fb7a1c67d0d8a", "score": "0.6453914", "text": "public function getFieldName()\n {\n return $this->fieldName;\n }", "title": "" }, { "docid": "7e8712438cd443ebee188c0e8c7a02c0", "score": "0.6446491", "text": "protected function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "7e8712438cd443ebee188c0e8c7a02c0", "score": "0.6446491", "text": "protected function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "cb7a8c8007404a4c960e84bd430943c4", "score": "0.6439204", "text": "public function getField(){}", "title": "" }, { "docid": "58d4eda2097b4fc89b554ba56749b2d3", "score": "0.6438632", "text": "public function getKey()\r\n {\r\n return $this->_key;\r\n }", "title": "" }, { "docid": "58d4eda2097b4fc89b554ba56749b2d3", "score": "0.6438632", "text": "public function getKey()\r\n {\r\n return $this->_key;\r\n }", "title": "" }, { "docid": "be9222188643f45d88b90dbe9b3c193e", "score": "0.64297587", "text": "public function grabPkField() : Field\n {\n\n return $this->grabModel()->getPkField();\n }", "title": "" }, { "docid": "7722d7142a4f8e8a5d37806edeecfb6a", "score": "0.6429039", "text": "public function offsetGet( $key ) {\n\t\treturn $this->get_field_raw( $key );\n\t}", "title": "" }, { "docid": "4f7e3cee7e3d1884149b388983f901a9", "score": "0.6424211", "text": "public function get($key) {\n\t\tif($key == 'fields') return $this;\n\t\tif($key == 'fields_id') {\n\t\t\t$values = array();\n\t\t\tforeach($this as $field) $values[] = $field->id; \n\t\t\treturn $values; \n\t\t}\n\t\tif($key == 'removedFields') return $this->removedFields; \n\t\tif(isset($this->settings[$key])) return $this->settings[$key];\n\t\t$value = parent::get($key);\n\t\tif($value !== null) return $value; \n\t\treturn $this->getField($key); \n\t}", "title": "" }, { "docid": "9cf9079b8ef2e0420e1ab536911d872a", "score": "0.64238197", "text": "public function getKey(){\n return $this->key;\n }", "title": "" }, { "docid": "515a1cf6a7f4fc3886a0581b06c4855a", "score": "0.6422417", "text": "public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "f55adf789fc7603fc61e4f9320a01113", "score": "0.64088374", "text": "public function getKey()\n {\n return $this->key;\n }", "title": "" }, { "docid": "6e51c95a897acdc5d81674249e913316", "score": "0.64003795", "text": "public function getKey() {\n return $this->key;\n }", "title": "" }, { "docid": "c65adf3e6421b23fa6aa688a72591ae7", "score": "0.6392934", "text": "public function getKey()\n {\n return $this->key;\n\n }", "title": "" }, { "docid": "844eb09798aa5d81565448c300acfb87", "score": "0.63704616", "text": "function get_key() { }", "title": "" }, { "docid": "844eb09798aa5d81565448c300acfb87", "score": "0.63704616", "text": "function get_key() { }", "title": "" }, { "docid": "665b6bd5c509f5d783ebf8a0033de534", "score": "0.6368039", "text": "final public function getKey()\n\t{\n\t\treturn $this->key;\n\t}", "title": "" }, { "docid": "14a8b1bb716f8cab51b5b29af40d2eb0", "score": "0.63580954", "text": "public function getRelatedKey()\n {\n return $this->modelInstance->{ $this->property('name') }()->getRelated()->getKeyName();\n }", "title": "" } ]
96e6d3c77b84729043ffd107da934ee2
constructor opens database connection
[ { "docid": "c5f62e56c512df0e12bbea75b4e817c9", "score": "0.0", "text": "function __construct() \r\n { \r\n // connect to the database\r\n $this->mMysqli = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, \r\n DB_DATABASE); \r\n }", "title": "" } ]
[ { "docid": "b2ab936a9d9e8159990713b08c11e49e", "score": "0.77429605", "text": "function __construct() {\n\n\t\t$this->open_db_connection();\n\n\t}", "title": "" }, { "docid": "9b6ef5dfb6b795a70ba32f004e0fea16", "score": "0.7738855", "text": "protected function openConn() {\n $database = new Database();\n $this->conn = $database->getConnection();\n }", "title": "" }, { "docid": "bdbda30df0e5f9bd520b2d905af5a9f3", "score": "0.771343", "text": "protected function openConn()\n {\n $database = new Database();\n $this->conn = $database->getConnection();\n }", "title": "" }, { "docid": "ae0bcf89b453fc501c3adb07b0e47db1", "score": "0.77123225", "text": "function __construct() {\n $this->db = new ConnectDb();\n $this->connection = $this->db->open_connection();\n }", "title": "" }, { "docid": "944f77c19d29386b6ba25873af92d181", "score": "0.7676107", "text": "function __construct(){\n\t\t\t$this->open_db_connection();//executing the connection automatically\n\t\t}", "title": "" }, { "docid": "682d05536e6331c69eea1f79b45645a5", "score": "0.75817233", "text": "public function __construct() {\n $database = new Database();\n $this->connection = $database->getConnection();\n }", "title": "" }, { "docid": "fbba9519c79ef73d2c80f173194e6bac", "score": "0.75276417", "text": "public function __construct(){\n\t\t$database = new Database();\n\t\t$db = $database->getConnection();\n $this->conn = $db;\n }", "title": "" }, { "docid": "333e0df877b667450c318c6e9bc2869d", "score": "0.7522681", "text": "private function openDatabaseConnection()\n {\n // set the (optional) options of the PDO connection. in this case, we set the fetch mode to\n // \"objects\", which means all results will be objects, like this: $result->user_name !\n // For example, fetch mode FETCH_ASSOC would return results like this: $result[\"user_name] !\n // @see http://www.php.net/manual/en/pdostatement.fetch.php\n $options = array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ, PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING);\n\n // generate a database connection, using the PDO connector\n // @see http://net.tutsplus.com/tutorials/php/why-you-should-be-using-phps-pdo-for-database-access/\n $this->db = new PDO(DB_TYPE . ':host=' . DB_HOST . ';dbname=' . DB_NAME . ';charset=' . DB_CHARSET, DB_USER, DB_PASS, $options);\n }", "title": "" }, { "docid": "318279e313de82839f97257c30ee5d0a", "score": "0.75202024", "text": "public function __construct()\r\n\t{\r\n\t\t$database = new Database();\r\n\t\t//dbConnection() is from Database.class\r\n\t\t$db = $database->dbConnection();\r\n\t\t$this->conn = $db;\r\n }", "title": "" }, { "docid": "16c4d69d6d8520b7db19c4dd1f786653", "score": "0.7502911", "text": "public function __construct() {\n global $database;\n $this->connection = $database->getConnection();\n }", "title": "" }, { "docid": "c303bc1684ca761b8697caa5ece06a18", "score": "0.7480431", "text": "function __construct(){\n $this->db = Database::getInstance();\n $this->connection = $this->db->getConnection();\n }", "title": "" }, { "docid": "7dc644a3cfed6a5578573f903447c059", "score": "0.7469606", "text": "public function open() {\n\t\ttry {\n\t\t\t$this->connection = new PDO($this->db_dsn,\n\t\t\t$this->db_username,\n\t\t\t$this->db_password);\n\t\t} catch(PDOException $e) {\n\t\t\techo \"An database connection error occurred:\".\n\t\t\t\" {$e->getMessage()}\";\n\t\t\texit();\n\t\t}\n\t}", "title": "" }, { "docid": "9593d23266291678a315f56a70e5ad53", "score": "0.74620366", "text": "function __construct() {\n $this->db = new Database(DBTYPE, DBHOST, DBNAME, DBUSER, DBPASSWORD);\n }", "title": "" }, { "docid": "07b8aed902232c0a49856fa7b1744d61", "score": "0.7455055", "text": "public function __construct(){\n $database = new Database();\n $this->db = $database->getConnection();\n }", "title": "" }, { "docid": "bba6f632ec3de9af0f6f4c278c72ad45", "score": "0.7450936", "text": "public function __construct()\n\t{\n\t\t$db = new Database();\n\t\t$this->conn = $db->getConn();\n\t}", "title": "" }, { "docid": "20244e557c216bbc77361c9ffe884be5", "score": "0.7418104", "text": "public function __construct()\r\n {\r\n $this->connection = (new Database())->connect();\r\n }", "title": "" }, { "docid": "5df6a6bcadc58b315d9b96da691b57e7", "score": "0.73977965", "text": "public function __construct() {\n\t\t\t$this->connection = $this->openConnection();\n\t\t}", "title": "" }, { "docid": "adcdf69feb8fdcdf556c4dc0d0eea397", "score": "0.7381693", "text": "public static function connect()\n {\n if (!empty(self::$db)) {\n return;\n }\n self::$db = DB::getInstance();\n }", "title": "" }, { "docid": "d4c56f0b362435d6c814a7501a0c0671", "score": "0.73776776", "text": "public function __construct() {\n $this->db = Database::connect();\n }", "title": "" }, { "docid": "bdb541eda86c3d3505b57b4071c39c71", "score": "0.73631567", "text": "public function __construct() {\n\t\t\t\tinclude 'po-component/po-menumanager/includes/db.php';\n\t\t\t\t$this->db = new DB;\n\t\t\t\t$this->db->Connect(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME, DATABASE_PORT);\n\t\t\t}", "title": "" }, { "docid": "bdb541eda86c3d3505b57b4071c39c71", "score": "0.73631567", "text": "public function __construct() {\n\t\t\t\tinclude 'po-component/po-menumanager/includes/db.php';\n\t\t\t\t$this->db = new DB;\n\t\t\t\t$this->db->Connect(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME, DATABASE_PORT);\n\t\t\t}", "title": "" }, { "docid": "ccbfd30bb61a6ca8a31ccd118f5b815c", "score": "0.73597205", "text": "private function __construct()\n {\n $this->initDatabaseConfig();\n $this->connect();\n }", "title": "" }, { "docid": "f7e6efac9b9c32743f3e9485c8f82650", "score": "0.7348608", "text": "public function __construct($database) \n { \n //Open the database connection \n $this->connect($database); \n }", "title": "" }, { "docid": "963015a9c547963a8d388c40e65217c8", "score": "0.7334556", "text": "public function __construct()\n {\n $this->db = parent::getConnect();\n }", "title": "" }, { "docid": "b2261ae5c4fe949dc70188db7adc498a", "score": "0.7313959", "text": "public function __construct(){\n require_once \"database.php\";\n $this->connAccess = new Database(DB_NAME);\n }", "title": "" }, { "docid": "0bff249b4218272dd441794bc1b2aa80", "score": "0.7312439", "text": "public function __construct() {\r\n $this->connection = $this->initDB();\r\n }", "title": "" }, { "docid": "b5d1e9cc08e018afa77fc60611a16d3c", "score": "0.7290318", "text": "public function __construct()\n {\n $this->con = Database::getConnection();\n }", "title": "" }, { "docid": "6f918320a479e68f422adade4587d46c", "score": "0.728958", "text": "public function __construct(){\n\t\t$this->conn = new Database();\n\t\t$this->connection = $this->conn->Connect();\n\t}", "title": "" }, { "docid": "d40bb27c60f75e2db0b508c590d9711b", "score": "0.728728", "text": "public function __construct()\n {\n Singleton::setClass(DatabaseConnection);\n $this->_db_connection = Singleton::getInstance()->getConnection();\n }", "title": "" }, { "docid": "e7762d17f78fa49828992c4ea915e982", "score": "0.728339", "text": "public function __construct()\n {\n $this->db = $this->dbConnect();\n }", "title": "" }, { "docid": "9a83fe3de38f47aff0c42b8e3b759570", "score": "0.72796047", "text": "private function _openDB() {\n\t\t// Connection to database\n\t\t$conf = Config::databases();\n\t\t$conf = $conf[$this->db];\n\t\t$this->prefix = $conf['prefix'];\n\t\tif(!empty($this->prefix))\n\t\t\t$this->table = $this->prefix.'_'.$this->table;\n\t\tif(isset(Model::$connections[$this->db]))\treturn;\n\t\ttry {\n\t\t\t$pdo = new PDO('mysql:dbname='.$conf['database'].';host='.$conf['host'], \n\t\t\t\t\t\t\t$conf['login'], $conf['password'], \n\t\t\t\t\t\t\tarray(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));\n\t\t\tModel::$connections[$this->db] = $pdo;\n\t\t} catch (PDOException $e) {\n\t\t\tif(Config::$debug > 0)\n\t\t\t\tdie($e->getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "0408151280951c13abdf83609aad1a46", "score": "0.7278899", "text": "function __construct() {\n require_once dirname(__FILE__).'/DbConnect.php';\n \n //open new database connection\n try{\n $db = new DbConnect();//instantiate the DbConnect class\n $this->conn = $db->connect();\n } catch (Exception $ex) {\n $this::dbConnectError($ex->getCode());\n exit();//unconditionally stop processing\n\n } \n \n }", "title": "" }, { "docid": "7ee440adba33f5a4532ea43c3786d8d5", "score": "0.72728795", "text": "public function __construct() {\n self::$dbcon = DB::getConnection();\n }", "title": "" }, { "docid": "c58438b174157ed2ba084f4ad633cd69", "score": "0.7268778", "text": "function __construct(){\n $this->_db = (new DataBaseServices())->connect();\n }", "title": "" }, { "docid": "e9e2853f2cf8c4bf6d07eff9818121c3", "score": "0.72613674", "text": "function __construct() {\n $db = new database_connection();\n $this->connection= $db->connection(); \n }", "title": "" }, { "docid": "c742a639c0c6ceb0125cb3f695921b7f", "score": "0.7259857", "text": "public function open_db_connection (){\n $this->connection = new mysqli( DB_HOST, DB_USER, DB_PASS, DB_NAME );\n if($this->connection->connect_errno){\n die(\"Database connection fail: \".$this->connection->connect_error );\n }\n }", "title": "" }, { "docid": "a3b02835d63294c627303b60a7fa1be2", "score": "0.72576004", "text": "public function __construct()\n {\n $this->_db = $this->dbConnect();\n\n }", "title": "" }, { "docid": "e46d0db90ecab1ded8afcb205ca1074d", "score": "0.7254331", "text": "public function __construct(){\r\n\r\n $db = new DB;\r\n\r\n $this->db = $db->get_connection();\r\n\r\n }", "title": "" }, { "docid": "e6207a37aa5493510215cf48cd4b4fb2", "score": "0.7250821", "text": "public function open_db_connection () {\n\n\t\t$this->connection = new mysqli(DB_HOST,DB_USER,DB_PASS,DB_NAME);\n\n\t\tif ($this->connection->connect_errno) {\n\t\t\tdie(\"Database connection failed\" . $this->connection->connect_errno);\n\t\t}\n\n\t}", "title": "" }, { "docid": "8a391133d1f299540c94a3f44e88b50d", "score": "0.72466147", "text": "private function __construct()\n {\n $this->log(\"DB object instantiated.\");\n\n // Grab database config\n $Config = Config::singleton();\n $this->host = $Config->get('DB_HOST');\n $this->user = $Config->get('DB_USER');\n $this->password = $Config->get('DB_PASSWORD');\n $this->db = $Config->get('DB_DB');\n\n // Attempt connection\n try {\n $this->connect();\n } catch (\\Throwable $e) {\n $this->log(\"Error connecting to database: \" . $e->getMessage() . ' [' . $e->getFile() . ':' . $e->getLine() . ']');\n Logger::dump(true);\n }\n }", "title": "" }, { "docid": "60f90111b0b35b4f28770fd2d44952b2", "score": "0.72457564", "text": "function __construct() {\r\n\t$this->open_connection();\r\n\t}", "title": "" }, { "docid": "abb2f3884fa45091ac968cc47f0680d9", "score": "0.72395056", "text": "public function open()\n\t{\n\t\t$dsn = 'mysql:dbname=' . $this->name . ';host=' . $this->host . ';';\n\t\t$options = [];\n\t\tif ($this->persistent)\n\t\t{\n\t\t\t$options[\\PDO::ATTR_PERSISTENT] = true;\n\t\t}\n\n\t\ttry {\n\t\t\t$this->dbn = new \\PDO($dsn, $this->user, $this->password, $options);\n\t\t\t$charset = $this->getDefaultCharset();\n\t\t\tif ($charset)\n\t\t\t{\n\t\t\t\t$this->execute('set names '.$charset);\n\t\t\t}\n\t\t\t$this->execute('set time_zone=\"' . date('P') . '\"');\n\t\t\t$this->execute('set sql_mode=\"' . $this->mode . '\"');\n\t\t} catch (\\PDOException $e) {\n\t\t\tConsole::log($e->getMessage());\n\t\t\t\\Application::halt(500);\n\t\t}\n\t}", "title": "" }, { "docid": "be83073add48bc6c07a4037a40271fcc", "score": "0.72170275", "text": "private function __construct() {\n $this->connection = mysqli_connect(DATABASE_HOST, DATABASE_USER, DATABASE_PASS,DATABASE_DB);\n }", "title": "" }, { "docid": "d9fcb6bbaa235d32e3bb8413b814e34c", "score": "0.7216142", "text": "function __construct() {\n\t\t\t// A constructor must not do anything beside that: no side-effects.\n\n\t\t\t$this->connection = new Database();\n\n\t\t}", "title": "" }, { "docid": "7b3f071e6c436a96c43a464ea047ed5c", "score": "0.72046876", "text": "function __construct() {\n\t\t$this->conn = $this->connectDB();\n\t}", "title": "" }, { "docid": "06037be9760ae8dfd38721272691e808", "score": "0.7202146", "text": "function __construct()\n\t{\n\t\t$this->db = new Database();\n\t\t$this->db->connect();\n\t}", "title": "" }, { "docid": "130364822411b3338394a314ec8dce14", "score": "0.7184222", "text": "function __construct() {\n $this->conn = $this->connectDB();\n\t}", "title": "" }, { "docid": "f56780717b02d31b8654ff17d6e3ec38", "score": "0.7182357", "text": "public function __construct()\n {\n //create database object\n $this->dbObject = new DatabaseModule($this->database);\n\n //connect to database\n $this->dbObject->connectToServer();\n }", "title": "" }, { "docid": "b81243e897b2ecffe2638e783b2bf778", "score": "0.71796304", "text": "function __construct(){\n\t \t\t$this->db= new Database(DB_TYPE, DB_HOST, DB_USER, DB_PASS, DB_NAME);\n\t }", "title": "" }, { "docid": "4f910833f590c1a4c6534a28e0c6eb73", "score": "0.71748066", "text": "function __construct(){\n parent::__construct();\n $this->dbConn = $this->getConn();\n\t\t}", "title": "" }, { "docid": "1d6c5da828695d669ae7e9846fe6bf8b", "score": "0.7149835", "text": "protected function __construct()\n {\n $this->connection = $this->getConnection();\n }", "title": "" }, { "docid": "980de5bee1d576b908dfb9eeeaa3da01", "score": "0.71410716", "text": "public function __construct()\n\t{\n\t\t$this->connectDb();\n\t}", "title": "" }, { "docid": "c9289a279649ab3208a96ca3b7df0433", "score": "0.7132535", "text": "public function __construct()\n\t\t{\n\t\t\t$this->DbConnect();\n\t\t}", "title": "" }, { "docid": "074b7dbedfb8e93c8915b12ce48fad6b", "score": "0.7131891", "text": "public function __construct()\n\t{\n\t\t$this->db = self::getDB();\n\t}", "title": "" }, { "docid": "a812e7eb0897faad764e75c139819670", "score": "0.7118965", "text": "function __construct()\n {\n $this->open('db/wikidb.db');\n \n if (!$this) {\n throw new Exception('Database not found');\n }\n }", "title": "" }, { "docid": "29f6bd9c3919845a488a4f02644e9b64", "score": "0.7117866", "text": "public function openConnection() {\n $this->connection = new mysqli($this->host, $this->username, $this->password, $this->database); /*copied from create-db.php file and contains a connection with its mysqli with variables from database class*/\n if($this->connection->connect_error) {\n die(\"<p>Error: \" . $this->connection->connect_error . \"</p>\"); /*paragraphing my connection*/\n }\n }", "title": "" }, { "docid": "8a95eb800661e2b074ea368ad3509031", "score": "0.7108901", "text": "public function __construct()\n {\n $this->dbConnect();\n }", "title": "" }, { "docid": "6ce087d2b98a6b3d43c72a63d0ca6498", "score": "0.71084034", "text": "function __construct()\n {\n $this->db = new Database(DB_SERVER, DB_USER, DB_PASS, DB_DATABASE);\n }", "title": "" }, { "docid": "8dfce56b1c7a34752333559eee173190", "score": "0.71071714", "text": "public static function connect()\n { \n\n if (!isset(self::$connection))\n {\t\n self::$connection=new database;\n }\n \n return self::$connection;\n\n }", "title": "" }, { "docid": "317c2a5e04efbcad403cb73770f4372b", "score": "0.7088782", "text": "public function openDB()\n {\n if ( ! isset($this->_conn) )\n {\n try\n {\n // log database activity if $debug\n if ( $this->_debug ) error_log($this->_project . \" DBWrapper::openDB(): opening database...\", 0);\n\n $this->_openDBEXE();\n }\n catch ( DBWrapperOpenDBException $ex )\n {\n throw $ex;\n }\n }\n }", "title": "" }, { "docid": "c93dc7e29a00c52b47d06549e7abdeb1", "score": "0.70763814", "text": "public function __construct(){\r\n $this->db = Database::connect();\r\n }", "title": "" }, { "docid": "e350d9743cb7d3be91a325f6668a0513", "score": "0.70748013", "text": "function db_connector() {\n\t\t$attributes = array(\n\t\t\t\\PDO::ATTR_PERSISTENT => true,\n\t\t\t\\PDO::ATTR_ERRMODE => \\PDO::ERRMODE_EXCEPTION\n\t\t);\n\n\t\t$this->db = new \\PDO( 'mysql:host=' . DB_HOST . ';dbname=' . DB_NAME, DB_USER, DB_PASS, $attributes );\n\t}", "title": "" }, { "docid": "1e8f3485e7526b0261162780e82558c5", "score": "0.70625603", "text": "function __construct (){\r\n $this->conn = mysqli_connect (DB_SERVER, DB_USER, DB_PASS) or die (\"Error\" .mysqli_error());\r\n mysqli_select_db($this->conn, DB_NAME); //get the connection first, then select the db\r\n }", "title": "" }, { "docid": "613f2c9d6fe02e8fb930a0b6e8bf5338", "score": "0.70612353", "text": "function __construct() {\n // connecting to database\n $this->db = new db_connect();\n $this->db->connect();\n }", "title": "" }, { "docid": "4122ffd3fb121af0db8024249ce95c3b", "score": "0.7061173", "text": "public function __construct()\n\t{\n\t\n\t\t$this->connection= mysql_connect($this->SERVER,$this->USERNAME, $this->PASSWORD);\n\t\n\n\t\t\n\t\tif (mysqli_connect_errno($this->connection))\n \t\t{\n \t\t\techo \"(In Database Constructor) Failed to connect to MySQL: \" . mysqli_connect_error();\n \t\t}\n\t\tmysql_select_db($this->DATABASE,$this->connection);\n\t}", "title": "" }, { "docid": "b9e3747dd34d48466a54f29bc2c7da7a", "score": "0.70375454", "text": "function __construct(){\n require_once dirname(__FILE__) . '/DbConnect.php';\n $dbConnect = new Dbconnect;\n $this->con = $dbConnect->connect();\n }", "title": "" }, { "docid": "5118b5a996b3bdac1dca66141b2251d0", "score": "0.7029993", "text": "public function __construct(){\n $db_manager = new DbManager();\n $this->db_handle = $db_manager->getHandle();\n }", "title": "" }, { "docid": "43e207f59abaa739dc4305634e303240", "score": "0.70260483", "text": "public function __construct(){\n\t\t\n\t\t//Starts a session if there isn't one currently\n\t\tif (session_id() == '') {\n \t\tsession_start();\n\t\t}\n\t\t\n\t\t//Instantiates the connection class, and calls the dbConnect function from connection.php\n\t\t$this->db = new Connection();\n\t\t$this->db = $this->db->dbConnect();\n\t}", "title": "" }, { "docid": "66a0621b47a820a3b261ea99b8aacfdc", "score": "0.70204425", "text": "function __construct()\n {\n $obj_singleton_connect_db = singleton_connect_db::getInstance();\n $this->link = $obj_singleton_connect_db->getConnection(); \n }", "title": "" }, { "docid": "3dcac959d3454ccb6dfc0cbe4a14b2aa", "score": "0.7011203", "text": "public function __construct()\n {\n $this->_db = DatabaseFactory::getDefaultPdoObject();\n }", "title": "" }, { "docid": "ed6a13b777be0c8dbbd5d669278a2828", "score": "0.7005248", "text": "public function __construct()\n\t\t{\n\t\t\t$this->_db = new Database();\n\t\t}", "title": "" }, { "docid": "b3461d94b8b957d65b215c729f5d0784", "score": "0.7003567", "text": "private function createDatabaseConnection()\n {\n // Set the fetch mode to 'objects', which means all results will be\n // objects, like this: $result->user_name.\n // Set the error reporting to 'warnings'.\n $options = array(\n \\PDO::ATTR_DEFAULT_FETCH_MODE => \\PDO::FETCH_OBJ,\n \\PDO::ATTR_ERRMODE => \\PDO::ERRMODE_WARNING\n );\n\n // Setting the database encoding.\n if (DB_TYPE == 'pgsql') {\n $db_encoding = ' options=\"--client_encoding=' . DB_CHARSET . '\"';\n } else {\n $db_encoding = '; charset=' . DB_CHARSET;\n }\n\n // Create a new database connection.\n $this->db = new \\PDO(\n DB_TYPE . ':host=' . DB_HOST . ';dbname=' . DB_NAME . $db_encoding,\n DB_USER,\n DB_PASS,\n $options\n );\n }", "title": "" }, { "docid": "660e23cffd86c93da0852a3ed3d765cd", "score": "0.69981414", "text": "public static function Open(){\n self::$con_state = new PDO('mysql:host=database;dbname='.self::$CONFIG_DB['db'], self::$CONFIG_DB['username'], self::$CONFIG_DB['password']);\n }", "title": "" }, { "docid": "bbf0898348bf2f02161fc15144168861", "score": "0.6995684", "text": "function __construct()\r\n { \r\n $f3=Base::instance();\r\n $this->f3=$f3;\r\n \r\n $db=new DB\\SQL(\r\n $f3->get(DB_CONN),\r\n $f3->get(DB_USERNAME),\r\n $f3->get(DB_PASSWORD),\r\n array( \\PDO::ATTR_ERRMODE => \\PDO::ERRMODE_EXCEPTION )\r\n );\r\n $this->db=$db;\r\n }", "title": "" }, { "docid": "e0c48101451fd3ec8a35a95424e43e9e", "score": "0.69936174", "text": "public function __construct()\n {\n $connectString = PGSQL_DB_ADDRESS . \" \" . PGSQL_DB . \" \" . PGSQL_USR . \" \" . PGSQL_PASS;\n $dbConnection = pg_connect($connectString);\n if(!$dbConnection)\n {\n die(CON_ERR);\n }\n else\n {\n $this->connectionLink = $dbConnection;\n }\n }", "title": "" }, { "docid": "150405d837bde4785edf863f058d86d7", "score": "0.699223", "text": "function __construct()\n\t\t{\n\t\t\t$this->db\t= new database();\n\t\t\tif(!$this->db->dbConnect())\n\t\t\t\t\"Error Connection\".$this->db->ErrorInfo;\n\t\t}", "title": "" }, { "docid": "87a4dd5b867b97dad819ebdee2f6e19f", "score": "0.6988197", "text": "public function __construct()\n {\n\n //connect to PDO here.\n $this->_db = \\Core\\database::get();\n }", "title": "" }, { "docid": "a18be3002048e889c7ed507bc89b6ba2", "score": "0.6985815", "text": "function __construct() {\n\t\t$this->conn = $this->connect();\n\t}", "title": "" }, { "docid": "cf7f8fa7f31ab7fe9ca77ffa6c04d4fd", "score": "0.69857556", "text": "private function __construct() {\n self::$connection = new PDO(\n \"mysql:host=localhost;dbname=\" . DATABASE_NAME,\n DATABASE_USERNAME,\n DATABASE_PASSWORD);\n }", "title": "" }, { "docid": "1e29ef1c4c5e091c3751c5a203cad322", "score": "0.6972891", "text": "private function db_connect() {\n\t\tglobal $retweetbot_dsn;\n\t\t$this->db = new DB($retweetbot_dsn);\n\t}", "title": "" }, { "docid": "e4b89c4a6db76620084802b19499ddc1", "score": "0.69651836", "text": "public function __construct() {\n\t\tparent::__construct();\n\t\t$this->setDatabase(DATABASE_HOST, DATABASE_NAME);\n\t}", "title": "" }, { "docid": "c4148d35e95574363b20f4a07b1dbef0", "score": "0.69603604", "text": "function __construct()\n {\n //open db at file path\n $this->open('..\\database\\database.db');\n }", "title": "" }, { "docid": "5347cf6ef6789e05afb04702413ecb6c", "score": "0.695924", "text": "public function __construct(){\n $this->db = Database::connect(); \n }", "title": "" }, { "docid": "51e060cfc8693bf648b032aae5cffe43", "score": "0.6958534", "text": "function __construct()\n\t{\n\t\t#$this->open($dbfilepath) or die(\"could not create database\");\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "1ea5fb9523b0c279b4f7515736ab2be2", "score": "0.69583017", "text": "function __construct(){\n\n\t\t\trequire_once 'Db_Connect.php';\n\t\t\t$database = new Db_Connect();\n\t\t\t$this->conn = $database->databaseConnect();\n\t\t}", "title": "" }, { "docid": "766889f8f91e83c0823286c8dda70158", "score": "0.69503766", "text": "public function __construct()\n\t{\n\t\t$this->_db = DB::getInstance();\n\t}", "title": "" }, { "docid": "a11491ff2ff2f90f684c3c50f3cb195e", "score": "0.6943855", "text": "public function __construct()\n\t{\n $dbConfig=require(DIR_CONFIG.'dbConfig.php');//Get login information from the configuration file\n $this->database= Database\\Database::getInstance();//Get reference to database\n $this->database->connect(\n\t\t$dbConfig['type'],\n\t\t$dbConfig['host'],\n\t\t$dbConfig['user'], \n\t\t$dbConfig['pass'],\n\t\t$dbConfig['name']);//Connect with database\n }", "title": "" }, { "docid": "aa3578e13a152aa8bb7599d63a858061", "score": "0.69433033", "text": "public function __construct()\n\t{\n\t\t$dba = new DBAccess();\n\t\t$this->pdo = $dba->get_connection();\n\t}", "title": "" }, { "docid": "aa3578e13a152aa8bb7599d63a858061", "score": "0.69433033", "text": "public function __construct()\n\t{\n\t\t$dba = new DBAccess();\n\t\t$this->pdo = $dba->get_connection();\n\t}", "title": "" }, { "docid": "9fbdb91a825239f19bcf6611bd082b96", "score": "0.694034", "text": "function __construct() {\n\n\t\t//get global db object\n\t\tglobal $db_info;\n\n\t\tinclude_once LIBRARY_PATH . \"database/Common.php\";\n\t\tinclude_once LIBRARY_PATH . \"database/DB.php\";\n\n\t\t$db_conn = DB ( $db_info, ACTIVE_RECORD );\n\t\t//set db property so that we can access db using it.\n\t\t$this->db = $db_conn;\n\t}", "title": "" }, { "docid": "b5e71ab759ebc2f27e2f5a8c22589d70", "score": "0.69389135", "text": "public function __construct(){\n $dataSource = 'mysql:host='. $this->host . ';dbname=' . $this->dbName . ';charset=utf8;';\n $options =[\n PDO::ATTR_PERSISTENT => true,\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION\n\n ];\n //Create PDO instance\n try {\n $this->dbConnection = new PDO($dataSource, $this->user, $this->password, $options);\n }\n catch(PDOException $exception){\n $this->error = $exception->getMessage();\n }\n }", "title": "" }, { "docid": "77e2a81f16b435d95ea887b57fb3799d", "score": "0.69357544", "text": "public function init()\n {\n parent::init();\n $this->db = Instance::ensure($this->db, Connection::className());\n }", "title": "" }, { "docid": "0b0288dbbeeba6e555a3c959dc3a7e06", "score": "0.69349563", "text": "function __construct()\n\t{\n\t\t$this->db = new DBConnections();\n\t}", "title": "" }, { "docid": "624c899ceecf5b438a97d7b289394c80", "score": "0.6929291", "text": "function __construct()\n {\n include_once './db_connect.php';\n // connecting to database\n $this->db = new DB_Connect();\n $this->conn = $this->db->connect();\n }", "title": "" }, { "docid": "d9baa422980367b43acd27f8fe6088a4", "score": "0.6926065", "text": "protected function __construct() {\n\t\tif (!is_null($this->db)) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->initialize();\n\t\t\t\t\n\t\tif (!is_null($this->db_username)) {\n\n\t\t\ttry {\n\t\t\t\t$this->db = NewADOConnection($this->db_type);\n\n\t\t\t\t// IBM DB2 wants catalog as the first parameter\n\t\t\t\tif ($this->db_type == 'db2') {\n\t\t\t\t\t// Try the old approach\n\t\t\t\t\ttry {\n\t\t\t\t\t\t$this->db->Connect($this->db_catalog, $this->db_username, $this->db_password, $this->db_host);\n\t\t\t\t\t} catch (Exception $ex) {\n\t\t\t\t\t\t// If it failes .. try the new approach\n\t\t\t\t\t\t$this->db->Connect($this->db_host, $this->db_username, $this->db_password, $this->db_catalog);\n\t\t\t\t\t}\n\n\n\t\t\t\t} elseif ($this->db_type == 'sqlite') {\n\t\t\t\t\t// only the database name is needed\n\t\t\t\t\t$this->db->Connect($this->getSQLitePath());\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tif ($this->db_type == 'oci8') {\n\t\t\t\t\t\t$this->db->charSet = 'AL32UTF8';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$this->db->Connect($this->db_host, $this->db_username, $this->db_password, $this->db_catalog);\n\t\t\t\t}\n\n\n\t\t\t\t$this->db->debug = $this->debug;\n\t\t\t\t$this->db->fnExecute = 'addQueryCount';\n\n\t\t\t} catch (Exception $e) {\n\n\t\t\t\t$this->redirect('?page=error&type=db');\n\t\t\t\texit();\n\t\t\t}\n\n\t\t} else {\n\t\t\t$this->redirect('?page=error&type=db');\n\t\t\texit();\n\t\t}\n\t}", "title": "" }, { "docid": "ebf47540f4455aee7c8fbd72e5428495", "score": "0.69256705", "text": "public function __construct(){\n\n\t\t$database_host = \"localhost\";\n\t\t$database_user = \"\";\n\t\t$database_password = \"\";\n\t\t$database_name = \"\";\n\n\t\t$this->database = new Database($database_host,$database_user,$database_password,$database_name);\n\n }", "title": "" }, { "docid": "0d02756b4e5e95225d901c813c4d47c8", "score": "0.692487", "text": "public function __construct() {\n $this->db = new PDOConection(DB_SERVER, DB_DATABASE, DB_USER, DB_PASSWORD);\n }", "title": "" }, { "docid": "2d02cc86baac26f907a66b10946828cd", "score": "0.69196373", "text": "public function __construct()\n {\n $this->connect = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);\n }", "title": "" }, { "docid": "c81d70fe865bda748ae82c5138051d61", "score": "0.6917299", "text": "public function open_db_connection(){\n\n\t\t\t$this->conn = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);\n\n\t\t\t// if(mysqli_connect_errno()){\n\t\t\t// \tdie(\"Database connection failed.\".mysql_error());\n\t\t\t// }\n\n\t\t\tif($this->conn->connect_errno){\n\t\t\t\tdie(\"Database connection failed.\".$this->conn->connect_error);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "dd3dd290b8954bc6542a917960c6b76d", "score": "0.6917003", "text": "public function __construct()\r\n {\r\n\t\t$this->dbInstance=new Database();\r\n }", "title": "" }, { "docid": "ae8725f42068a0675994b19570d3bc97", "score": "0.69168186", "text": "public function __construct( )\r\n\t{\r\n\t\t$this->database = new zgDatabase( );\r\n\t\t$this->database->connect( );\r\n\t}", "title": "" } ]
457eb456b9e9590b7d0ad7521e4f7f0d
Removes a value from the cache.
[ { "docid": "c16af6fb921d027964d939d01aa4af20", "score": "0.6013921", "text": "public function remove($key);", "title": "" } ]
[ { "docid": "2aac2cef28b19774f130a7a4a717dba7", "score": "0.6799615", "text": "function remove($key)\n\t{\n\t\treturn $this->oCache->delete($key);\n\t}", "title": "" }, { "docid": "50576b1bf79cdf6881f588ecf12ea797", "score": "0.6782148", "text": "public function testValueRemoval() {\n\t\t\t@unlink('file_cache_test.dat'); // Delete from broken tests.\n\t\t\t$cache = new FileCache('file_cache_test.dat', false);\n\n\t\t\t$cache->foo = 42;\n\t\t\t$this->assertEquals(42, $cache->foo);\n\n\t\t\tunset($cache->foo);\n\t\t\t$this->assertNull($cache->foo);\n\n\t\t\tunset($cache);\n\t\t}", "title": "" }, { "docid": "03bf17d6e53ebf95884364a0b9e1bfcc", "score": "0.668957", "text": "public function deleteValue( $value )\n\t{\n\t\treturn $this->getRedis()->zDelete( \n\t\t\t$this->getKey(), \n\t\t\t$value\n\t\t);\n\t}", "title": "" }, { "docid": "0d380f100fe5a583ead478cbe606f133", "score": "0.6631397", "text": "protected function deleteValue($key)\n\t{\n\t\treturn $this->_cache->delete($key);\n\t}", "title": "" }, { "docid": "d3c615e6529618608929a2b7a9f579dd", "score": "0.6621151", "text": "public function cache__do_remove ( $key )\n\t{\n\t\t# Cleanup at Db level\n\t\t$this->Registry->Db->cur_query = array(\n\t\t\t\t'do'\t => \"delete\",\n\t\t\t\t'table' => \"cache_store\",\n\t\t\t\t'where' => \"cs_key=\" . $this->Registry->Db->db->quote( $key ),\n\t\t\t);\n\t\t$this->Registry->Db->simple_exec_query_shutdown();\n\n\t\t# Cleanup at Cache abstraction level\n\t\treturn $this->cachelib->do_remove( $key );\n\t}", "title": "" }, { "docid": "712eeadcbc20b2b945146262c22e0233", "score": "0.65640724", "text": "protected function deleteValue($key)\n\t{\n\t\t$cacheFile = $this->getCacheFile ( $key );\n\n\t\treturn @unlink ( $cacheFile );\n\t}", "title": "" }, { "docid": "be853e29a6d5273ba15e8510fb7ff8ad", "score": "0.6543349", "text": "public function remove($key)\n {\n if (isset($this->cache[$key])) {\n $value = $this->cache[$key];\n unset($this->cache[$key]);\n return $value;\n }\n return static::ENTRY_NOT_FOUND;\n }", "title": "" }, { "docid": "41879ba39563b2e418130024329ad819", "score": "0.64764565", "text": "public function remove_user_from_cache($value, $key = 'id') {\n if (empty($this->users_online)) {\n $this->update_users_online();\n }\n $online_key = null;\n foreach ($this->users_online as $k => $online_user) {\n if ($online_user[$key] == $value) {\n $online_key = $k;\n break; \n }\n }\n if (!is_null($online_key)) {\n unset($this->users_online[$online_key]);\n $this->write_cache($this->users_online);\n return TRUE; \n }\n return FALSE; \n }", "title": "" }, { "docid": "287a4c0e1c0c672ed75cccdd17f9d69d", "score": "0.6400688", "text": "protected function deleteValue($key) {\n $cacheKey = $this->getCacheKey($key);\n return $this->deleteObject($cacheKey);\n }", "title": "" }, { "docid": "0df6bdc56d57c92ab63d9c78d95e791f", "score": "0.6371598", "text": "function remove( $value );", "title": "" }, { "docid": "bc6f05c2f4184f21039a914625798f7e", "score": "0.63433534", "text": "public function remove()\n {\n return $this->cache->remove($this->getToken());\n }", "title": "" }, { "docid": "b65a98aa6408dd9c5ba361f4db681907", "score": "0.6288019", "text": "function cache_del($key)\n{\n if( isset($_SESSION[\"system_internal_cache\"][$key]) )\n\t\tunset($_SESSION[\"system_internal_cache\"][$key]);\n\tif( system_is_module_loaded('globalcache') )\n\t\tglobalcache_delete($key);\n}", "title": "" }, { "docid": "af4b3ba3677abaab81d85899d90dd58f", "score": "0.62690127", "text": "public function removeValue(mixed $value): void;", "title": "" }, { "docid": "64fe25a43986c0f7d58a096366fa2eee", "score": "0.6265927", "text": "function scaffold_cache_forget($key)\n {\n return scaffold_cache()->forget($key);\n }", "title": "" }, { "docid": "f9f55fe4acca1f8ec50ee52c96b8958c", "score": "0.62540203", "text": "function delete($key) {\n\n $result = $this->objMemcached->delete($key);\n if ( false !== $result ) {\n unset( $this->cache[$key] );\n }\n return $result;\n }", "title": "" }, { "docid": "c3993eff9c2408a9e9fa62cc52b1f5c0", "score": "0.6245569", "text": "abstract protected function clearOneObjectFromCache($key);", "title": "" }, { "docid": "c3993eff9c2408a9e9fa62cc52b1f5c0", "score": "0.6245569", "text": "abstract protected function clearOneObjectFromCache($key);", "title": "" }, { "docid": "b701def19a3fb11c32103d5e7cb2b774", "score": "0.62056226", "text": "public function cache_delete() {\n return unlink($this->cache_path());\n }", "title": "" }, { "docid": "aa8977584d4125ceb3a11dbda910da34", "score": "0.6143662", "text": "public static function cachePull( $key ){\n\t\t$val = self::cacheGet( $key );\n\n\t\tself::cacheDelete( $key );\n\n\t\treturn $val;\n\t}", "title": "" }, { "docid": "e6edec1cf02c1b1035464ac93fcfd681", "score": "0.61242783", "text": "abstract function clearCache();", "title": "" }, { "docid": "8ee09a361045b574a11bfa5c86f573a5", "score": "0.61121106", "text": "public function clearCache();", "title": "" }, { "docid": "76ad279fd69136ea736ec5ee8bb29c61", "score": "0.6092876", "text": "abstract public function clear_cache();", "title": "" }, { "docid": "dc41f5bf8747ce8bf380a687fda13343", "score": "0.6088426", "text": "public function delete($key)\n {\n \\Cache::forget($key);\n }", "title": "" }, { "docid": "2ef94016a30e4b7c2d8289a10058e533", "score": "0.60856605", "text": "public function removeAttribute($key)\n {\n $this->cacheAdapter->removeCache($key);\n }", "title": "" }, { "docid": "76252644eddf5c0ef21888550f9a00d0", "score": "0.60822576", "text": "public function remove($key)\n {\n return $this->memcache->delete($key);\n }", "title": "" }, { "docid": "eb290105f17df91b20a4d83321810287", "score": "0.6053109", "text": "public function __unset($key);", "title": "" }, { "docid": "0e447413d90546ecd404415b1d2a3078", "score": "0.60510904", "text": "abstract protected function deleteValue($key);", "title": "" }, { "docid": "fb5a6abf142f33144a6d4957a55de813", "score": "0.60492843", "text": "static public function updateCacheWithoutSaving( $key, $value )\n\t{\n\t\tself::$data_store[ $key ] = $value;\n\t}", "title": "" }, { "docid": "274218799c4795bd523a30f74bef1654", "score": "0.6048327", "text": "public static function removeCache()\n {\n Data\\Cldr::removeCache();\n }", "title": "" }, { "docid": "86755ab7fd763af797de4537f9ca65d8", "score": "0.603419", "text": "abstract public function deleteValue($key);", "title": "" }, { "docid": "3c7c0e85e6f2bcf89cee7ce10c02c098", "score": "0.602668", "text": "public function remove($key) {}", "title": "" }, { "docid": "ee98c2045fdc444ecedc6eec0948cacb", "score": "0.59932643", "text": "public function remove( $key );", "title": "" }, { "docid": "af0bd007157d4fe0d47fc5ba61044f6d", "score": "0.59911895", "text": "function remove($key);", "title": "" }, { "docid": "af0bd007157d4fe0d47fc5ba61044f6d", "score": "0.59911895", "text": "function remove($key);", "title": "" }, { "docid": "bedfb994ffe9f510a0d3b636f89167bf", "score": "0.5981507", "text": "public static function decr($key, $value = 1)\r\n {\r\n if(!$key)return FALSE;\r\n if(DEVELOPER)\r\n {\r\n return apc_dec($key, $value);\r\n }else{\r\n $obj = self::_getCounterObj();\r\n return $obj->decr($key, $value);\r\n }\r\n }", "title": "" }, { "docid": "0a9f5996e3906763dbd18f9fc7562b20", "score": "0.5972271", "text": "function remove ()\r\n {\r\n if (is_file($this->cache_dir . $this->filename))\r\n {\r\n unlink($this->cache_dir . $this->filename);\r\n }\r\n }", "title": "" }, { "docid": "e9006a80ce840310ec25d3eb249f38e9", "score": "0.59534585", "text": "function cache_unset($var_name, $type = \"memcache\"){\n\tglobal $_config;\n\n\tif($_config['server']['memcache'] && $type == \"memcache\"){\n\t\tglobal $_memcache;\n\t\treturn $_memcache->delete($_config['server']['memcache_prefix'].'_'.$var_name);\n\t}elseif($_config['server']['file_cache'] || ($type == \"file\" && $_config['server']['file_cache'])){\n\t\tglobal $_file_cache;\n\t\treturn $_file_cache->store($var_name, NULL, 1);\n\t}\n\n\treturn false;\n}", "title": "" }, { "docid": "18f8744658b94bb3af8a4f5d7e5b4512", "score": "0.5945497", "text": "public function remove(string $key);", "title": "" }, { "docid": "18f8744658b94bb3af8a4f5d7e5b4512", "score": "0.5945497", "text": "public function remove(string $key);", "title": "" }, { "docid": "86f32facb0b2f070f1578805b1fac86f", "score": "0.5942822", "text": "protected abstract function deleteValue( $key );", "title": "" }, { "docid": "ea9328bdc4d82b12ade4b9b58eb2f0c7", "score": "0.59414494", "text": "public static function remove(string $key);", "title": "" }, { "docid": "7bf59e9c618e2bb4c25764b2f0e74dc4", "score": "0.59388524", "text": "public function decr($key);", "title": "" }, { "docid": "06102f99eebbb8365ff28955a3da16f7", "score": "0.592303", "text": "public function pop($value);", "title": "" }, { "docid": "c901a5b2f8e458deebb490ef93253a6d", "score": "0.5872873", "text": "public static function remove($path) {\n\t\tstatic::$_data = Set::remove(static::$_data, $path);\n\t}", "title": "" }, { "docid": "5fd7dcb8c8988958d71c3e482571b5f6", "score": "0.5868997", "text": "#[@test]\n public function removeReturnsPreviousValue() {\n $this->map->put(new String('key'), new String('value'));\n $this->assertEquals(new String('value'), $this->map->remove(new String('key')));\n }", "title": "" }, { "docid": "33afe43bde776a5aa3cdc26ef7c2145b", "score": "0.58688813", "text": "public function purgeCache();", "title": "" }, { "docid": "aa0568f7e990a6d6dc026ee22d94c7af", "score": "0.5862643", "text": "public function invalidateCache();", "title": "" }, { "docid": "36220ab05bbc2ac658610a2317c291fd", "score": "0.5857256", "text": "public function removeValue($value) {\n\t\t\t$serialization = (string)serialize($value);\n\t\t\t$count = $this->count();\n\t\t\tforeach ($this->elements as $key => $element) {\n\t\t\t\tif ((string)serialize($element) == $serialization) {\n\t\t\t\t\tunset($this->elements[$key]);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn ($count != $this->count());\n\t\t}", "title": "" }, { "docid": "689f5817a51a6a937d2675e9e36d34c7", "score": "0.5853288", "text": "public function remove($value): self\n {\n $index = $this->find($value);\n if ($index !== null) {\n unset($this->values[$index]);\n }\n return $this;\n }", "title": "" }, { "docid": "69e99f9f76b177c986fc7841066abff5", "score": "0.58453614", "text": "public static function cacheDelete( $key ){\n\t\treturn delete_transient( self::CACHE_GROUP . $key );\n\t}", "title": "" }, { "docid": "13bade0df95dea98338aeafcdba84a87", "score": "0.5827902", "text": "static function remove($key, $cache='default')\r\n\t\t{\r\n\t\t\t$cachename = $cache;\r\n\t\t\t$cache = Configure::read('Cache.'.$cache);\r\n\t\t\tif($cache)\r\n\t\t\t{\r\n\t\t\t\t$path = CACHE.$cachename.'_'.((isset($cache['prefix']))?$cache['prefix']:'').self::clearFileName($key);\r\n\t\t\t\tif(file_exists($path))\r\n\t\t\t\t\treturn unlink($path);\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}", "title": "" }, { "docid": "91189aaecaf31637e71eebe77f5704e4", "score": "0.5823", "text": "public function purgeCache(): void;", "title": "" }, { "docid": "7f68a410280d289ae623f9a49c01363c", "score": "0.58221203", "text": "public function delete(string $key)\r\n\t{\r\n\t\t$key = $this->prefix.$key;\r\n\r\n\t\treturn wincache_ucache_delete($key);\r\n\t}", "title": "" }, { "docid": "25e47f86b8b081d8f2d2185ffc59eb9f", "score": "0.5819121", "text": "public function remove($key)\n\t{\n\t\tif(isset($this->data[$key]))\n\t\t\tunset($this->data[$key]);\n\t}", "title": "" }, { "docid": "5edae69957dea5bc7db97596da19ebbf", "score": "0.5796615", "text": "public function cacheClear($source = NULL);", "title": "" }, { "docid": "de208305725bdd3ed506b5051c563521", "score": "0.57756674", "text": "public static function pull($key, $value)\n {\n if (isset($_SESSION[$key]) && $_SESSION[$key] === $value)\n unset($_SESSION[$key]);\n else\n echo 'Something in wrong';\n }", "title": "" }, { "docid": "6b1db0276724a0b09f7e4600b4547587", "score": "0.57619697", "text": "public function remove($key)\n\t{\n\t\tif(!$this->_r)\n\t\t{\n\t\t\tif(isset($this->_d[$key]))\n\t\t\t{\n\t\t\t\t$value=$this->_d[$key];\n\t\t\t\tunset($this->_d[$key]);\n\t\t\t\treturn $value;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// it is possible the value is null, which is not detected by isset\n\t\t\t\tunset($this->_d[$key]);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tthrow new CException(Yii::t('yii','The map is read only.'));\n\t}", "title": "" }, { "docid": "cf5715ec4a89f662664b0e81d5667432", "score": "0.5756644", "text": "protected function clearOneObjectFromCache($key)\n {\n return $this->client->del($key);\n }", "title": "" }, { "docid": "8cab1714146dca596d51be57a3354881", "score": "0.57506263", "text": "public function unset(string $key);", "title": "" }, { "docid": "c379d5c4d28937f33cf837e06e162274", "score": "0.57468927", "text": "public function remove($key): self;", "title": "" }, { "docid": "8173d865a210083f1150dcbedeae97e6", "score": "0.57466775", "text": "public function removeValue($name);", "title": "" }, { "docid": "24671681a269eb11ce939e7ef8780997", "score": "0.57358664", "text": "static function delete($key)\n {\n \t$config = wcmConfig::getInstance();\n \t$key = $config['wcm.project.guid'].$key;\n\n\t/* OPTIMISATION NSTEIN 29/06/2009 */\n\tunset(self::$registryCache[$key]);\n \t\n switch(self::getMode())\n {\n case 'APC':\n return apc_delete($key);\n\n case 'Lite':\n default:\n require_once(WCM_DIR . '/includes/CacheLite/Lite.php');\n $config = wcmConfig::getInstance();\n $cache = new Cache_Lite(array(\n 'caching' => true,\n 'cacheDir' => self::getCacheDir(),\n 'automaticSerialization' => true,\n 'lifeTime' => $config['wcm.cache.lifeTime']));\n return $cache->remove($key);\n }\n }", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.5735121", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.5735121", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.5735121", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.5735121", "text": "public function remove();", "title": "" }, { "docid": "9d0e3adcaf603ad97676866db091edbf", "score": "0.5732295", "text": "public function remove($key) {\n\t\tif ($this->hasKey($key)) {\n\t\t\tunset($this->data[$key]);\n\t\t}\n\t}", "title": "" }, { "docid": "e331e56e7453ee7ed49aa313f9543ab9", "score": "0.5720319", "text": "function cache_it($c_key, $value, $minutes = CACHE_MINUTES)\n{\n //$c_key = $table.'.'.$field.'.'.$id_field.'.'.$id;\n Cache::forget($c_key);\n Cache::put($c_key, $value, $minutes);\n return true;\n}", "title": "" }, { "docid": "7d24b53db1d68b20e023f4bd6160cc86", "score": "0.57197374", "text": "public function remove($value) {\n\n\t\tif (($pos = array_search($value, $this->program) !== false) {\n\t\t\tunset($this->program[$pos]);\n\t\t}\n\n\t}", "title": "" }, { "docid": "9d9e84c02a1bdbf0f9e524d15218ee76", "score": "0.57149667", "text": "function removeValue($ctx, $key)\n\t{\n\t\t$key = rtl::toStr($key);\n\t\tif (isset($this->_map[$key]))\n\t\t\tunset($this->_map[$key]);\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "e2bfbe5d223e93be9ea6a2400246d8b3", "score": "0.569594", "text": "public function remove($path) {\n\t\tif (!$this->enabled or Scanner::isPartialFile($path)) {\n\t\t\treturn;\n\t\t}\n\n\t\t$parent = dirname($path);\n\t\tif ($parent === '.') {\n\t\t\t$parent = '';\n\t\t}\n\n\t\t$entry = $this->cache->get($path);\n\n\t\t$this->cache->remove($path);\n\n\t\t$this->correctParentStorageMtime($path);\n\t\tif ($entry instanceof ICacheEntry) {\n\t\t\t$this->propagator->propagateChange($path, time(), -$entry->getSize());\n\t\t} else {\n\t\t\t$this->propagator->propagateChange($path, time());\n\t\t\tif ($this->cache instanceof Cache) {\n\t\t\t\t$this->cache->correctFolderSize($parent);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1e551d477a0e66fbcf79fe0919405ef0", "score": "0.5689094", "text": "public function delete($key)\n\t{\n\t\ttry\n\t\t{\n\t\t\tcms_db()->Execute(\"delete from {cache} where k = ?\", array($key));\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "f320cb46af99b38648538b16da3c7382", "score": "0.5684518", "text": "protected function purge(){\n\t\treturn $this->memcache->invalidateCacheByTag(self::TAG);\n\t}", "title": "" }, { "docid": "4153702e096cd15c913c4052f0bfb31b", "score": "0.56821984", "text": "public function delete($key)\n {\n return xcache_unset($this->prefix . $key);\n }", "title": "" }, { "docid": "6024777575bd202c8b1bb76627a9fddd", "score": "0.56799656", "text": "public function getCacheUnsets() : int;", "title": "" }, { "docid": "f89da11df27c55c8fbc702dba330d7b4", "score": "0.5677407", "text": "protected function removeCache($key = false) {\r\n if (!$this->useCache) {\r\n return false;\r\n }\r\n \r\n return removeMemcacheObject($key);\r\n }", "title": "" }, { "docid": "8677b71bbc023d3175203e13eb507026", "score": "0.5673758", "text": "public static function remove($key) {\r\n\t\tunset(self::$map[$key]);\r\n\t}", "title": "" }, { "docid": "07b0ebca876d777104122bb31c7ebaf0", "score": "0.5667543", "text": "public function delete($key)\n {\n $this->cache->delete($key);\n }", "title": "" }, { "docid": "075c6851e8c64d0db6c65873d0d0035b", "score": "0.5653497", "text": "public function removeData($value)\n {\n if (!empty($this->data[$value]))\n {\n unset($this->data[$value]);\n $this->setData($this->data);\n return $this->data;\n }\n }", "title": "" }, { "docid": "92a5ea307c54c56446b0ef1220788bfc", "score": "0.56512755", "text": "public function remove($value) {\n if (!is_string($value) && !is_int($value)) {\n $this->errorno = self::ERR_INPUT_PARAM;\n $this->error = self::MSG_TYPE_NOT_ATOMIC;\n return $this->errorno;\n }\n $status = $this->client->apply($this->key, 'llist', 'remove', array($this->bin, $value));\n $this->processStatusCode($status);\n return $this->errorno;\n }", "title": "" }, { "docid": "89e9dd775495ae22f25ab4d1b40318b2", "score": "0.56432635", "text": "public function decrement($key, $value = 1)\n\t{\n\t\t$res = $this->currentMemcache->decrement($key, $value);\n\t\tif (!$res) {\n\t\t\t$this->errmsg = \"decrement key[$key] with value[$value] at \" .\n\t\t\t\t\"memcached[{$this->currentCluster}:{$this->currentIDC}] failed\";\n\t\t}\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "68a40890c7ef2d63a03f31f89749a1c7", "score": "0.5642586", "text": "function cache_clear($cache_group = 'global', $cache_storage_type = false)\n{\n\n return mw('cache')->delete($cache_group, $cache_storage_type);\n\n\n}", "title": "" }, { "docid": "c016383239de01b593b7fb7d07bfae8e", "score": "0.5641257", "text": "public function remove($key)\n {\n if (isset($this->data[$key])) {\n unset($this->data[$key]);\n }\n }", "title": "" }, { "docid": "6e7423ee0ab9ecac00608f69b07dc457", "score": "0.56408596", "text": "public function testClear()\n {\n $this->assertTrue($this->cache->set($this->key, $this->value));\n // remove key from cache\n $this->assertTrue($this->cache->clear($this->key));\n // check if the key exists\n $this->assertEmpty($this->cache->get($this->key));\n }", "title": "" }, { "docid": "1d1250ad209ce390bdaad146d059c680", "score": "0.56379163", "text": "public function delete($key)\n {\n $result = $this->cache->delete($key);\n\n return $result;\n }", "title": "" }, { "docid": "92795dd838b6a9946bdee0595c8f8abe", "score": "0.5636837", "text": "public function pop($key)\n {\n return Cache::getInstance()->deQueue($key);\n }", "title": "" }, { "docid": "3903496928953edb242397c51c3e92ad", "score": "0.56226766", "text": "public function remove(int $key): void;", "title": "" }, { "docid": "78a040457c1cd86e8554f3449825a230", "score": "0.5596456", "text": "function hard_delete( $key ) {\n\t\t$storage_key = $this->get_item_key( $key );\n\t\treturn @$this->_memcache->delete( $storage_key, 0 );\n\t}", "title": "" } ]
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "86a04e3392049c76b450231b1fb65aa0", "score": "0.0", "text": "public function edit($id)\n {\n $location = Location::find($id);\n if ($location == null) {\n return redirect('not-found')->with('not-found', 'location');\n } else {\n $ratings = \\App\\Rating::all()->where('location_id', $location->id);\n return view(\"edit-location\", ['location' => $location, 'ratings' => $ratings]);\n }\n }", "title": "" } ]
[ { "docid": "63497a4ff75a6b12992600d5af4d1bbe", "score": "0.7944804", "text": "public function edit(Resource $resource)\n {\n $rsr = $resource;\n return view('admin.resource.edit',compact('rsr'));\n }", "title": "" }, { "docid": "49b3fe3f7253d93f1c8579116d67814a", "score": "0.79241365", "text": "public function edit() {\n $data['resources'] = Resource::get($_REQUEST['idResource']);\n $this->view->show(\"resources/updateResources\", $data);\n\n }", "title": "" }, { "docid": "f09a11111572f588818123ad93c4854c", "score": "0.78617597", "text": "public function edit(Resource $resource)\n {\n return view('resources.edit', ['resource' => $resource]);\n }", "title": "" }, { "docid": "2bbbffcfdd4173a05cbc190726de80b5", "score": "0.7800815", "text": "public function edit(Resource $resource)\n {\n return view('Resource.update',['resource'=> $resource, 'types' => $this->types]);\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.7692893", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ef3e9f01b5c403fd41a38f33d2f1a922", "score": "0.7691249", "text": "public function edit($id)\n\t{\n\t\t// get the resource\n\t\t$resource = Resource::find($id);\n\n\t\t// show the edit form and pass the resource\n\t\treturn view('resources.edit', ['resource' => $resource]);\n\t}", "title": "" }, { "docid": "ac53c5763e3a0b0ec0125039ef9bb509", "score": "0.7631773", "text": "public function edit()\n {\n $this->form();\n }", "title": "" }, { "docid": "0f32b306b1aa0f5b31036edb537b0c74", "score": "0.7169776", "text": "function edit() {\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t$productId = KRequest::getInt('productId');\n\n\t\t$view = $this->getDefaultViewForm();\n\t\t$view->setProductId($productId)->display();\n\n\t}", "title": "" }, { "docid": "d8e210ea6b36c944e816d8ec19543411", "score": "0.71480757", "text": "public function edit(Resource $resource, Identifier $identifier): View\n {\n $this->authorize('update', $identifier);\n\n return view('identifiers.edit')\n ->with('identifiable', $resource)\n ->with('identifier', $identifier);\n }", "title": "" }, { "docid": "219dcedd731665337d4912c0c43d0cb6", "score": "0.7053453", "text": "public function displaysEditForm();", "title": "" }, { "docid": "0a368a092d974074b6d8f048a5aa1f04", "score": "0.7036634", "text": "public function edit($id)\n {\n\n $file=Resource::where('id',$id)->with('form')->first();\n\n return view('dashboard2.resources.view-single',compact('file'));\n\n }", "title": "" }, { "docid": "96884a0d55f36349b743e3d913248156", "score": "0.70006657", "text": "function edit()\n {\n $this->_view_edit('edit');\n }", "title": "" }, { "docid": "fbf54e9e3bb25e5f2f4d8c933bfc17c1", "score": "0.69737965", "text": "public function edit($id)\n\t{\n\t\t$types = array('carousel'=>'carousel', 'block'=>'block');\n\t\t$resource = $this->resource->find($id);\n\n\t\tif (is_null($resource))\n\t\t{\n\t\t\treturn Redirect::route('backend.resources.index');\n\t\t}\n\n\t\treturn View::make('backend.resources.edit', compact('resource','types'));\n\t}", "title": "" }, { "docid": "38b4c2bcc5d6f933f82442e502068ae3", "score": "0.6945275", "text": "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "title": "" }, { "docid": "ec89f95d803c1882fe8f62198321e89d", "score": "0.6935729", "text": "public function edit()\n {\n return view('feregister::edit');\n }", "title": "" }, { "docid": "453c6ef4ad1256a84463a04120493055", "score": "0.6929833", "text": "public function edit($id)\n\t{\n\t\t$resource = Resource::find($id);\n\t\t$resourcetags = $resource->tags()->get();\n\t\t$resourceDevice = $resource->devices()->get();\n\t\t$tags = Tag::all();\n\t\treturn View::make(\"resources.edit\", compact('resource', 'tags', 'resourcetags', 'resourceDevice'));\n\n\t}", "title": "" }, { "docid": "ace9804aed3dcd98f54ca26999591399", "score": "0.69124234", "text": "public function editAction()\n {\n\n //changing layout for formbuilder\n $this->layout('layout/layoutformbuilder');\n\n //to check if the form is available with sending id\n $id = (int)$this->params()->fromRoute('id', 0);\n if (!$id) {\n return $this->redirect()->toRoute('forms');\n }\n\n try {\n $formtable = $this->table->getForm($id);\n } catch (\\Exception $ex) {\n\n return $this->redirect()->toRoute('formlar');\n }\n\n $public = ($formtable->public == 0 ? \"\" : \"checked\");\n\n $formdata = str_replace([\"\\r\", \"\\n\", \"\\t\"], \"\", $formtable->form_xml);\n\n return new ViewModel(array(\n 'formdata' => $formdata,\n 'title' => $formtable->title,\n 'public' => $public,\n 'form_id' => $id,\n ));\n }", "title": "" }, { "docid": "896f4a4d71aca2d677afe0b092e925ae", "score": "0.68977296", "text": "public function editForm()\n {\n $company = App::get('database')->select('companies', 'id', $_GET['id']);\n return view('companies.edit', compact('company'));\n }", "title": "" }, { "docid": "f60e724dc93ad65b7bd2e7142b16eabc", "score": "0.68976134", "text": "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "title": "" }, { "docid": "9eb1e5145183746d6174732b2e6ab6f7", "score": "0.6888274", "text": "public function edit($id)\n {\n $this->data[$this->modelName] = $this->repository->findById($id);\n $this->data[\"formRoute\"] = \"app.admin.{$this->pluralModelName}.update\";\n\n if ($this->package) {\n return \\View::make(\"{$this->package}{$this->pluralModelName}.form\", $this->data);\n }\n return \\View::make(\"{$this->pluralModelName}::form\", $this->data);\n }", "title": "" }, { "docid": "2891bcfcbba3d9ccd7e04a793a319678", "score": "0.6879567", "text": "public function edit()\n {\n return view('relatorio/edit');\n }", "title": "" }, { "docid": "e6470354f303106d7614dcb739e7ac8b", "score": "0.6868626", "text": "public function edit($id)\n\t{ \n return $this->showForm($id) ;\n\t}", "title": "" }, { "docid": "1261b2ff2c2892d8e345a090ebccdc20", "score": "0.6868574", "text": "public function edit($id)\n {\n //\n $resource= Resource::find($id);\n return view('admin.resources.edit')->with('resource',$resource)\n ->with('categories', ResourceCategory::all());\n \n \n }", "title": "" }, { "docid": "aa9bd3e29a3754d9df81fc4fecc9f778", "score": "0.68530333", "text": "public function edit()\n\t{\n\t\t$app = JFactory::getApplication();\n\t\t$app->input->set('view', \"{$this->resource}_edit\");\n\n\t\t$requestedIDs = THM_GroupsHelperComponent::cleanIntCollection($app->input->get('cid', [], 'array'));\n\t\t$requestedID = (empty($requestedIDs) or empty($requestedIDs[0])) ?\n\t\t\t$app->input->getInt('id', 0) : $requestedIDs[0];\n\n\t\t$app->input->set('id', $requestedID);\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "403e97bd79006ec2c70680a1e5607024", "score": "0.68462545", "text": "public function edit()\n //Affiche la vue d'édition\n {\n $idq = (int)$this->request->getParameter('idq');\n $idquest = (int)$this->request->getParameter('idquest');\n if(!isset($idquest))\n {\n $this->linkTo('Questionnaire','showQuest'); //Redirection si on tente de forcer l'action\n }\n $questionnaire=Questionnaire::getWithId($idq);\n $question=Question::getWithId($idquest);\n\n $view = new View($this,'question/editQuestion');\n $view->setArg('user',$this->request->getUserObject());\n $view->setArg('questionnaire',$questionnaire);\n $view->setArg('question',$question); \n $view->render();\n }", "title": "" }, { "docid": "3f0fdb8a9e0c5042bc834d969bd7f457", "score": "0.68393826", "text": "public function edit($id)\n {\n $form = $this->formRepo->getById($id);\n return view('form::edit',compact('form'));\n }", "title": "" }, { "docid": "bc8f4e204324385826216ccb48ad7f95", "score": "0.68303907", "text": "public function edit($id)\n {\n $employee = $this->employee_model->find($id);\n $page_name = \"Employee Edit\";\n $data = [\n 'title' => $page_name . \" |\" . $this->scope,\n 'page_name' => $page_name,\n 'method' => \"PUT\",\n 'employee' => $employee\n ];\n return view('admin.employee.employee_form', $data);\n }", "title": "" }, { "docid": "574cbb15d465710a6d0d6af84b51d1c4", "score": "0.6824977", "text": "public function edit(Request $request, $resource = null, $modelId = null)\n {\n $resource = $this->getResource($resource)->findOrNew($modelId);\n $fields = $resource->formFields($request);\n\n return view('orm.form_editar', compact('resource', 'modelId', 'fields'));\n }", "title": "" }, { "docid": "e2927e92778527f489c5ee4fae07174a", "score": "0.6823364", "text": "public function edit()\n {\n return view('hariperawatan::edit');\n }", "title": "" }, { "docid": "7e6f6b98f95d290854fd4b7b6ebea376", "score": "0.68107593", "text": "public function edit($id)\n {\n $formi = Form::find($id);\n return view('form.edit')->with('form',$formi);\n }", "title": "" }, { "docid": "a66e6ee3bd0d4fa614c8f657ecc1c30e", "score": "0.68047357", "text": "public function edit(Form $form)\n {\n //\n }", "title": "" }, { "docid": "a66e6ee3bd0d4fa614c8f657ecc1c30e", "score": "0.68047357", "text": "public function edit(Form $form)\n {\n //\n }", "title": "" }, { "docid": "a66e6ee3bd0d4fa614c8f657ecc1c30e", "score": "0.68047357", "text": "public function edit(Form $form)\n {\n //\n }", "title": "" }, { "docid": "873a08d0f357fca631ccc7259052d9ce", "score": "0.68018645", "text": "public function edit()\n {\n return view('common::edit');\n }", "title": "" }, { "docid": "231882e93a58215aa3b11a974a66292d", "score": "0.6791791", "text": "public function edit()\n {\n return view('admin::edit');\n }", "title": "" }, { "docid": "287fac0e40e0fc4457b5971a6b332ea5", "score": "0.67817605", "text": "public function edit($id)\n {\n $form = Form::find($id);\n return view ('edit', compact('form','id'));\n\n }", "title": "" }, { "docid": "a0bb44c51b89e19c05c40a5e00361787", "score": "0.678043", "text": "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 ]);\n\n return view($this->folder . '.form', [\n 'title' => $this->title,\n 'form' => $form,\n 'breadcrumb' => 'new-' . $this->url\n ]);\n }", "title": "" }, { "docid": "e9a6ba4ac4a39eb71d0b22131b92e151", "score": "0.6778012", "text": "public function editAction()\n {\n //Renderiza la vista del formulario de edición pasando los datos del objeto de usuario como parámetros\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "title": "" }, { "docid": "c7a68fcc4c5d663b60bb79c1db0fd8f0", "score": "0.6777242", "text": "public function edit()\n {\n return view('rab::edit');\n }", "title": "" }, { "docid": "831f414162a04d60cf4626d4c7c10b29", "score": "0.676462", "text": "public function action_edit()\n {\n\n $article_id = Request::current()->param( 'id' );\n\n $article = ORM::factory( 'Article', $article_id );\n\n $this->template->content = View::factory( 'article/edit' )\n ->set( \"article\", $article );\n }", "title": "" }, { "docid": "d4cb0697dc022ba2b219ae706730a925", "score": "0.6759936", "text": "public function edit()\n {\n return view(\"customer.profile.edit-form\");\n }", "title": "" }, { "docid": "7db9741921d6fb649f2fe79d04292bd8", "score": "0.67557925", "text": "function action_edit()\n {\n if (!empty($this->m_partial))\n {\n $this->partial($this->m_partial);\n return;\n }\n\n $node = &$this->m_node;\n\n $record = $this->getRecord();\n\n if ($record === null)\n {\n $location = $node->feedbackUrl(\"edit\", ACTION_FAILED, $record);\n $node->redirect($location);\n }\n\n // allowed to edit record?\n if (!$this->allowed($record))\n {\n $this->renderAccessDeniedPage();\n return;\n }\n\n $record = $this->mergeWithPostvars($record);\n\n $this->notify(\"edit\", $record);\n if ($node->hasFlag(NF_LOCK))\n {\n if ($node->m_lock->lock($node->primaryKey($record), $node->m_table, $node->getLockMode()))\n {\n $res = $this->invoke(\"editPage\", $record, true);\n }\n else\n {\n $res = $node->lockPage();\n }\n }\n else\n {\n $res = $this->invoke(\"editPage\", $record, false);\n }\n\n $page = &$this->getPage();\n $page->addContent($node->renderActionPage(\"edit\", $res));\n }", "title": "" }, { "docid": "6aff33fd543a3dbe6a9a3f0bc6d4aa3f", "score": "0.6754868", "text": "public function edit($id)\n\t{\n\t\treturn view($this->getViewPath() . '.edit', [\n\t\t\t'entity' => $this->getRepository()->getById($id)\n\t\t]);\n\t}", "title": "" }, { "docid": "da50458558a47bf128b527dd0589bf19", "score": "0.6740746", "text": "public function getShowEdit(){\n\t\t$data=array(\n\t\t\t\"product_id\"=>$_GET['product_id'],\n\t\t\t\"id\"=>$_GET['id'],\n\t\t\t\"key\"=>$_GET['key'],\n\t\t\t\"value\"=>$_GET['value'],\n\t\t\t\"value_type\"=>$_GET['value_type']);\n\t\t$this->setTitle('Edit Meta Data Fields');\n\t\t$this->setContent( $this->getView('shopify/editForm',$data, dirname(__DIR__)) );\n\t}", "title": "" }, { "docid": "327eb9166841535d9866d10e4d98911d", "score": "0.673346", "text": "public function edit(FormBuilder $formBuilder,$id)\n {\n $model = $this->service->find($id);\n\n $form = $formBuilder->create($this->form, [\n 'method' => 'PUT',\n 'url' => route($this->url . '.update', $id),\n 'model' => $model\n ]);\n\n return view($this->folder . '.form', [\n 'title' => $this->title,\n 'form' => $form,\n 'breadcrumb' => 'new-' . $this->url\n ]);\n }", "title": "" }, { "docid": "327eb9166841535d9866d10e4d98911d", "score": "0.673346", "text": "public function edit(FormBuilder $formBuilder,$id)\n {\n $model = $this->service->find($id);\n\n $form = $formBuilder->create($this->form, [\n 'method' => 'PUT',\n 'url' => route($this->url . '.update', $id),\n 'model' => $model\n ]);\n\n return view($this->folder . '.form', [\n 'title' => $this->title,\n 'form' => $form,\n 'breadcrumb' => 'new-' . $this->url\n ]);\n }", "title": "" }, { "docid": "327eb9166841535d9866d10e4d98911d", "score": "0.673346", "text": "public function edit(FormBuilder $formBuilder,$id)\n {\n $model = $this->service->find($id);\n\n $form = $formBuilder->create($this->form, [\n 'method' => 'PUT',\n 'url' => route($this->url . '.update', $id),\n 'model' => $model\n ]);\n\n return view($this->folder . '.form', [\n 'title' => $this->title,\n 'form' => $form,\n 'breadcrumb' => 'new-' . $this->url\n ]);\n }", "title": "" }, { "docid": "ede615513f1cd6830cebbff1cff3d172", "score": "0.6730169", "text": "public function edit()\n {\n $show = false;\n return view('admin.company.new_edit_company', ['company' => $this->company, 'show' => $show]);\n }", "title": "" }, { "docid": "782ef4d2ddc01501d9d52db2e27382e3", "score": "0.6729418", "text": "public function edit()\n {\n $company = Company::firstOrFail();\n\n $this->authorize('update', $company);\n\n return view('company.edit', compact('company'));\n }", "title": "" }, { "docid": "dd81e1e93e373c64b8d97c13d404e1d9", "score": "0.672225", "text": "public function editAction()\n {\n $config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/forms/employees.ini', 'edit');\n $form = new Application_Form_Employees($config);\n\n //Verificando o \"id\" do employee e caso nao exista ou seja nulo redireciona para tela inicial do employees.\n $idEmployee = $this->_request->getParam('id');\n\n if(empty($idEmployee) || $idEmployee==null){\n $this->redirect('/employees');\n }//if id employees\n\n //Recupera os dados do registro.\n $dadosEmployee = $this->_modelEmployees->find($idEmployee)->current();\n\n //Verifica se os registros existem e se retornar nulo redireciona para a tela inidial do employee\n if($dadosEmployee==null){\n $this->redirect('/employees');\n }else{\n //Faz os tratamentos para realizar o update\n $arrayDados = $this->_modelEmployees->_convertDBArr($dadosEmployee);\n\n //Update elements in DB\n if($this->_request->isPost()){\n $valida=$this->validateData($this->_request,'edit');\n if(is_bool($valida) & $valida==true) {\n $this->redirect('/employees');\n }else{\n $form->populate($this->_request->getParams());\n $this->view->error=$this->_exception;\n }\n }//if post form\n }//if / else dadosRegistro employee\n $this->view->form=$form;\n }", "title": "" }, { "docid": "e351dcf650141a8698d44b64e5a4419d", "score": "0.67109543", "text": "public function edit($id) {\n //\n\n $record = Record::with(['project', 'version', 'step'])->findOrFail($id);\n $this->authorize('update', $record);\n return view('records.edit', compact('record'));\n }", "title": "" }, { "docid": "976ce24b8869bc5efd9d3b6a9ef9cd04", "score": "0.67107934", "text": "public function edit($id)\n {\n $existing_product = Product::find($id);\n if ($existing_product == null) {\n return view(\"errors.404\");\n }\n //\n return view(\"products.form\")->with([\n \"product\" => $existing_product,\n \"action\" => \"/products/\" . $existing_product->id,\n \"method\" => \"PUT\"\n ]);\n }", "title": "" }, { "docid": "0944fd8e1824339605e976256e0b3109", "score": "0.6708619", "text": "public function edit($id)\n {\n $item = AppService::find($id);\n return View::make(self::CID.'.form')->with(['item' => $item ]);\n }", "title": "" }, { "docid": "07eefe6f127805103bc2fce4d90a6c56", "score": "0.6693604", "text": "public function edit(FormBuilder $formBuilder, $model)\n {\n if (!$model instanceof Model) {\n throw new ModelNotFoundException();\n }\n\n $url = route(\"{$this->_resourceId()}.update\", [$model->id]);\n\n return view($this->_getViewId('edit'), [\n 'resourceId' => $this->_resourceId(),\n 'title' => ucfirst($this->_resourceId()) . ' edit',\n 'form' => $this->_buildForm($formBuilder, [], [\n 'model' => $model,\n 'method' => 'PUT',\n 'url' => $url,\n ]),\n ]);\n }", "title": "" }, { "docid": "fb7b3974efc6a63347c6199f4b029cd6", "score": "0.6691619", "text": "public function edit()\n {\n return View::make('hr.manage_person');\n }", "title": "" }, { "docid": "0a029a6ab148c259b840db15b5d5d47b", "score": "0.6689175", "text": "public function edit($id)\n { \n $user = $this->db->getForEdit($id);\n\n return view('forms.edit', compact('user'));\n }", "title": "" }, { "docid": "b53d80e937efeb059b69199175992b44", "score": "0.6682786", "text": "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "title": "" }, { "docid": "5b998b4d45aa274c94ce73446f3c3925", "score": "0.6672461", "text": "public function edit($id)\n {\n $this->data['product'] = Product::findOrFail($id);\n $this->data['category'] = Category::ArrayForSelect();\n $this->data['mode'] = 'edit';\n return view('product.form', $this->data);\n }", "title": "" }, { "docid": "d4aad26a259262122f565814e7ce84e7", "score": "0.66713744", "text": "public function edit()\r\n {\r\n return view('tasksmanagement::edit');\r\n }", "title": "" }, { "docid": "9886a60c72f344fb1a6f18d92026613c", "score": "0.66675514", "text": "public function edit($id)\n {\n $model = $this->model->findOrFail($id);\n\n $data = ['model' => $model, 'title' => $this->title, 'subtitle' => $this->subtitle, 'view' =>$this->view];\n\n return view($this->admin.'.form')->with($data);\n }", "title": "" }, { "docid": "f75501807012fb55bd7c913101cdf4db", "score": "0.6665343", "text": "public function EditForm() {\n\t\treturn $this->formForMode(Editable::ActionName);\n\t}", "title": "" }, { "docid": "e0f498f2af90518d72ea59b1f6b65e8b", "score": "0.66623044", "text": "public function edit($id)\n {\n $equipment = Equipment::find($id);\n\n // Show the form\n return view('equipment.equipment-update', ['equipment' => $equipment]);\n }", "title": "" }, { "docid": "547f26916fa94a09feb71222a052271a", "score": "0.6660905", "text": "public function edit()\n {\n return view('all::edit');\n }", "title": "" }, { "docid": "0181f4e5e9689f674dc79546331ae9bc", "score": "0.6658182", "text": "public function edit()\n {\n return view('pemenangtender::edit');\n }", "title": "" }, { "docid": "b9e7c17b5ca2a237f0c1d1e7d9ca5a1e", "score": "0.6656968", "text": "public function edit()\n {\n return view('rekap::edit');\n }", "title": "" }, { "docid": "6b69173e00e76eea22ba6c8aec29e554", "score": "0.66568744", "text": "public function edit($id)\n {\n return view('agent::Entry.edit');\n }", "title": "" }, { "docid": "3750ae1bfc7ba7197cadd140a6f90a57", "score": "0.66522", "text": "public function edit($id)\n {\n $internauta = Internauta::findOrFail($id);\n return view('/layouts/admin/internauta_form',compact('internauta'));\n\n }", "title": "" }, { "docid": "5abc6953fae7162215480b7a9fef57c1", "score": "0.66518015", "text": "public function edit()\n {\n return view('collection::edit');\n }", "title": "" }, { "docid": "56e8e9b08c0406905beb3036122cd7af", "score": "0.6642529", "text": "public function edit()\n {\n return view('home::edit');\n }", "title": "" }, { "docid": "6e4aaaecb164b8d0cbb900aa36edf9db", "score": "0.6638773", "text": "public function edit($id)\n {\n $data = $this->data;\n $data = $this->customFormData($data);\n $model = $this->model;\n $data['record'] = $model::find($id);\n $data['idUpdate'] = $id;\n return view($this->form, $data);\n }", "title": "" }, { "docid": "7adf75fec90d8eb00935443a4314abdf", "score": "0.66372186", "text": "function edit()\n\t{\n\t\tJRequest::setVar( 'view', 'personnalisation' );\n\t\tJRequest::setVar( 'layout', 'form' );\n\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "10f67101b1ec6fd3d0c3c35c1442e712", "score": "0.66361433", "text": "public function editForm();", "title": "" }, { "docid": "d0628008c21c857e6203f02c16d81776", "score": "0.6632226", "text": "public function edit(Request $request, $id)\n {\n $form = Form::find($id);\n \n return view('Admin.Form.edit',compact('form'));\n }", "title": "" }, { "docid": "9792a1a79a644a9b305c75264d7f1741", "score": "0.6632226", "text": "public function editAction()\n {\n\n $id = $this->_request->id;\n $server = $this->getTable('FedoraConnectorServer')->find($id);\n\n // Get the form.\n $form = $this->_doServerForm('edit', $id);\n\n // Fill it with the data.\n $form->populate(array(\n 'name' => $server->name,\n 'url' => $server->url,\n 'is_default' => $server->is_default\n ));\n\n $this->view->form = $form;\n $this->view->server = $server;\n\n }", "title": "" }, { "docid": "8590c55c1c70061cc325176390a29404", "score": "0.66302156", "text": "public function edit(\n $resource,\n $userId\n );", "title": "" }, { "docid": "a8366eccbd97542beb1dcee0b26eec87", "score": "0.6623415", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BackendBundle:Receipe')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Receipe entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n\n\n return $this->render('BackendBundle:Receipe:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n\n ));\n }", "title": "" }, { "docid": "3c40f107dc8a7c56dda24081ce12fac9", "score": "0.66224486", "text": "public function edit($id)\n {\n $template = (object) $this->template;\n $form = $this->form();\n $data = GambarDepan::findOrFail($id);\n return view('admin.master.edit',compact('template','form','data'));\n }", "title": "" }, { "docid": "537f56dbca99f12eba56dee2e6b7652c", "score": "0.6619818", "text": "public function edit($id)\n\t{\n $form = $this->form(Author::find($id), \"modify\", \"authors/\".$id);\n return view('authors.form', compact('form'));\n\t}", "title": "" }, { "docid": "70adb5a3151ff0ad7f56b3e02f53ecfb", "score": "0.6613304", "text": "public function edit($id)\n {\n return view('module::edit');\n }", "title": "" }, { "docid": "d615d8d8a4d8f4cf935c141dac481476", "score": "0.6613157", "text": "public function edit($id)\n {\n\n $this->init();\n\n $this->pre_edit($id);\n\n $model = \"App\\\\\" . $this->model;\n $data = $model::find($id);\n $action = $this->action;\n $view = $this->model;\n\n\n $form = $model::edit_form($data);\n\n $form['data']['action'] = $action . \"/\" . $id;\n $form['data']['heading'] = \"Edit \" . str_singular($this->model) . \": \" . $id;\n $form['data']['type'] = \"edit\";\n $form['data']['submit'] = \"Update\";\n\n\n return view('tm::forms.add',compact( \"form\", 'action','view'));\n }", "title": "" }, { "docid": "345d2a2590332cafb30fb6f184f6807e", "score": "0.66126305", "text": "public function edit($id)\n\t{\n\t\t$product = Product::find($id);\n\t\treturn view('admin.products.edit')->with(compact('product'));\t// Abrir form de modificacion\n\t}", "title": "" }, { "docid": "1c9e3fbaf6d64c606c4efb7b565c986a", "score": "0.66118526", "text": "public function edit($id)\n\t{\n\t\t$employee = $this->employee->find($id);\n\t\treturn view('employee.edit',$employee);\n\t}", "title": "" }, { "docid": "a363f0a8d7cee161faa9c4c20a035fea", "score": "0.6611423", "text": "public function edit()\n {\n $user = $this->user;\n return view('i.edit',compact(\"user\"));\n }", "title": "" }, { "docid": "c5f9f66773e15856a4fb998798981449", "score": "0.65987045", "text": "public function edit(Form $form)\n {\n return view('back.forms.edit', compact('form'));\n }", "title": "" }, { "docid": "2b5fb043a3c87778cf2cebbc780df3b7", "score": "0.659838", "text": "public function edit()\n\t{\n\t\tparent::edit();\n\t}", "title": "" }, { "docid": "0725d45df945a0db7f9c322605b7a2b3", "score": "0.65971076", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('StelQuestionBundle: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('StelQuestionBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "2a47ad7ce79b806f24d1a15c7fc9c440", "score": "0.6596694", "text": "public function edit($id)\n {\n return view('frontend::edit');\n }", "title": "" }, { "docid": "6b40e5ba991031bdde690e4197097887", "score": "0.6595757", "text": "public function edit($id)\n {\n $data['module'] = array_merge($this->module(),[\n 'action' => 'update'\n ]);\n $data['data'] = Faq::findOrFail($id);\n return view(\"backend.{$this->module()['module']}.create-edit\", $data);\n }", "title": "" }, { "docid": "0ac449955cdecf917632987ec468ea81", "score": "0.6593962", "text": "public function editAction()\n {\n return $this->render();\n }", "title": "" }, { "docid": "83080d32c3b420a765df50f4c8ce9647", "score": "0.65927714", "text": "public function show($id){\n return $this->showForm('update', $id);\n }", "title": "" }, { "docid": "90b4761c6084dd8bf9c1af57e8c7a15e", "score": "0.65908116", "text": "public function display_edit() {\n\t\t$template = Template::get();\n\t\t$role = \\Role::get_by_id($_GET['id']);\n\n\t\tif (isset($_POST['role'])) {\n\t\t\t$role->load_array($_POST['role']);\n\t\t\t$role->save();\n\n\t\t\tSession::set_sticky('message', 'updated');\n\t\t\tSession::redirect('/administrative/role?action=edit&id=' . $role->id);\n\t\t}\n\n\t\t$permissions = \\Permission::get_all();\n\t\t$template->assign('permissions', $permissions);\n\t\t$template->assign('role', $role);\n\t}", "title": "" }, { "docid": "e2177174dce1589d74c83b8a2b827def", "score": "0.65875673", "text": "public function edit($id)\n {\n $product = ProductBook::find($id);\n if ($product==null){\n return redirect(\"errors\");\n }\n return view('admin.listItem.ProductBook.FormBook')->with([\n \"product\"=> $product,\n \"action\"=>\"/AdminProductBook/\" . $product->id,\n \"method\"=>\"PUT\"\n ]) ;\n }", "title": "" }, { "docid": "7f796cde701f9b339bc451ab192e51e9", "score": "0.65855646", "text": "public function edit($id)\n {\n $title = 'Editar Forma de pagamento';\n $formaPagto = $this->formaPagto->find($id);\n return view('painel.forma-de-pagamentos.create-edit',compact('formaPagto', 'title'));\n }", "title": "" }, { "docid": "8f5764d60e419bbdd688ce0400c69fda", "score": "0.6579371", "text": "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getGetParameter('id');\n\t\t$partner = $this->model->partner->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('partner/edit', [\n\t\t\t'partner' => $partner\n\t\t]);\n\t}", "title": "" }, { "docid": "6acc615a39a27e3e0c8dad0b3b8edffa", "score": "0.65793544", "text": "public function edit($id)\n {\n $field = FormField::find($id);\n return view('admin.form.field.edit', compact('field'));\n }", "title": "" }, { "docid": "2de3ab7e4c9b351247adb666d596460e", "score": "0.6571994", "text": "public function edit($id)\n {\n $rodo = Rodo::where('id', $id)->first();\n return view('admin.rodo.form', [\n 'entry' => $rodo,\n 'cardtitle' => 'Edytuj regułkę'\n ]);\n }", "title": "" }, { "docid": "5be28ce959fcbd926070cfaf781714d6", "score": "0.65718997", "text": "public function edit()\n {\n return view('mgepisodios::edit');\n }", "title": "" }, { "docid": "f845e400455aac9c438867bdedf1afcb", "score": "0.65701544", "text": "public function edit($id)\n {\n $product = $this->productsRepository->getById($id);\n\n return view('products.form')->with('product', $product);\n }", "title": "" }, { "docid": "5f6bdbd8f1459dcca737fbcb595d090f", "score": "0.65660715", "text": "public function edit($id)\n\t{\n\t\t$this->page_title = 'Edit Test';\n\t\t$data = $this->rendarEdit($id);\n\t\treturn view('admin.crud.form',$data);\n\t}", "title": "" }, { "docid": "21d99e41a1e26e985dcc253e30b0cdcd", "score": "0.6563645", "text": "public function actionEdit() { }", "title": "" }, { "docid": "adb65a1366e0acdb9d74ef45e02025d7", "score": "0.6556976", "text": "public function edit($id)\n {\n $form = Form::findOrFail($id);\n $form->valid_fields = $this->getFieldTypes();\n $form->field_types_with_options = $this->getTypesWithOptions();\n $form->json_form = $form->toJson();\n $form->getSortedFields();\n $form->json_fields = $form->prepareJsonFields();\n return view('customForms.edit', ['form' => $form]);\n\n }", "title": "" } ]
ccbac23fe5060d65630b19e5693a41e9
Get the validation rules that apply to the request.
[ { "docid": "d49885b4592a08671a20935907a660a9", "score": "0.0", "text": "public function rules()\n { \n $rules = [\n 'name' => 'required|between:5,23',\n 'description' => 'required|between: 1,250',\n 'image' => 'required',\n 'url' => 'url', \n 'price' => [\n 'required',\n 'regex:/\\d+[\\.|,]?\\d+/'\n ],\n ];\n \n return $rules;\n \n\n }", "title": "" } ]
[ { "docid": "b344895fd61d31159e9d44793f24ae8b", "score": "0.85802996", "text": "protected function validationRules()\n {\n return $this->createFormRequest()->rules();\n }", "title": "" }, { "docid": "f82927e1194515645fa820d75825b7ee", "score": "0.8128832", "text": "public function rules()\n {\n return $this->getRequestConfig()->rules();\n }", "title": "" }, { "docid": "5d1491b711525e6bfdb239ee303f30fc", "score": "0.81096613", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'POST':\n $rules = [\n 'name' => 'required',\n 'address' => 'required',\n 'geo' => 'required',\n 'customer_id' => 'required'\n ];\n break;\n case 'PUT':\n case 'PATCH':\n $rules = [\n 'name' => 'required',\n 'address' => 'required',\n 'geo' => 'required',\n 'customer_id' => 'required'\n ];\n break;\n\n default:\n $rules = [\n 'name' => 'required',\n 'address' => 'required',\n 'geo' => 'required',\n 'customer_id' => 'required'\n ];\n break;\n }\n\n\n return $rules;\n }", "title": "" }, { "docid": "5c5546d6ad190ce5c7ec85b96ea733d9", "score": "0.80757684", "text": "public static function getValidationRules()\n {\n return self::$validationRules;\n }", "title": "" }, { "docid": "5b9a58453f77a4a116d635586356febb", "score": "0.8024182", "text": "public function getValidationRules()\n\t{\n\t\treturn $this->rules;\n\t}", "title": "" }, { "docid": "674f48033c4da89ffa7685260cca729a", "score": "0.79264987", "text": "public function rules()\n {\n return $this->validationRules;\n }", "title": "" }, { "docid": "57a1dfe9064d1c59c4ba2aa5cf8c8e71", "score": "0.7920409", "text": "public function rules()\n {\n $rules;\n switch ($this->method()) {\n case 'POST':\n $rules = [\n 'first_name' => 'required|max:255',\n 'last_name' => 'required|max:255',\n 'email' => 'required|email|ends_with_tld|unique:users|max:255',\n 'password' => 'required|case_diff|numbers|letters|symbols|max:255|min:8',\n 'role' => 'required|in:admin,user',\n ];\n break;\n case 'PUT':\n $rules = [\n 'first_name' => 'required|max:255',\n 'last_name' => 'required|max:255',\n ];\n break;\n default:\n # code...\n break;\n }\n\n return $rules;\n }", "title": "" }, { "docid": "cfd597a91dc44c22eb998e8c4dc36af3", "score": "0.7826606", "text": "protected function getRules()\n {\n if (null === $this->requestClass) {\n $this->fail('Property request is not specified for this test');\n }\n\n $request = new $this->requestClass;\n\n if (!$request instanceof ApiRequest) {\n $this->fail('This test case allows to test only ApiRequest entities');\n }\n\n if (null !== $this->user) {\n $request->setUserResolver(function () {\n return $this->user;\n });\n }\n\n return $request->rules();\n }", "title": "" }, { "docid": "135365264d61677409cd7e265b1aae67", "score": "0.777848", "text": "public function getValidationRules()\n {\n return array_keys($this->validationRules);\n }", "title": "" }, { "docid": "377825d3f36ed7689c4302fa559eae2d", "score": "0.77537656", "text": "public function rules()\n {\n switch ($this->getRequestMethod()) {\n case 'store':\n return [\n 'name' => 'required|string',\n 'remarks' => 'nullable|string',\n 'status' => 'nullable|boolean',\n 'sort' => 'nullable|integer|min:0',\n 'rules' => 'nullable|array',\n 'rules.*' => 'nullable|in:' . get_validate_in_string(RiskGroup::$ruleLists)\n ];\n break;\n\n case 'update':\n return [\n 'name' => 'string',\n 'remarks' => 'nullable|string',\n 'status' => 'nullable|boolean',\n 'sort' => 'nullable|integer|min:0',\n 'rules' => 'nullable|array',\n 'rules.*' => 'nullable|in:' . get_validate_in_string(RiskGroup::$ruleLists)\n ];\n break;\n\n default:\n return [];\n }\n }", "title": "" }, { "docid": "199d11a4929beab748dfc5a4193912ad", "score": "0.7736165", "text": "public function rules()\n {\n if ( $this->method() == 'PUT' ) {\n $rules = [\n 'first_name' => 'min: 2',\n 'last_name' => 'min:2',\n 'email' => 'email',\n 'company_id' => 'required',\n 'phone' => 'digits:10'\n ];\n } else {\n $rules = [\n 'first_name' => 'required|min: 2',\n 'last_name' => 'required| min:2',\n 'email' => 'required|email',\n 'company_id' => 'required|int',\n 'phone' => 'required|digits:10'\n ];\n }\n return $rules;\n }", "title": "" }, { "docid": "8b542d7cc2aafe00fc90740020a72d39", "score": "0.7715304", "text": "public function rules()\n {\n switch (Route::currentRouteName()) {\n case 'login':\n return [\n 'email' => $this->validateEmail('login'),\n 'password' => $this->validatePassword('login'),\n ];\n case 'register':\n return [\n 'first_name' => $this->validateFirstName(),\n 'last_name' => $this->validateLastName(),\n 'email' => $this->validateEmail('register'),\n 'password' => $this->validatePassword('register'),\n ];\n case 'verify/email':\n case 'account/delete/confirm':\n return [\n 'token' => $this->validateToken(),\n ];\n case 'forgot/password':\n return [\n 'email' => $this->validateEmail(),\n ];\n case 'resend/verification':\n return [\n 'email' => $this->validateEmail('resend-verification'),\n ];\n case 'reset/password':\n return [\n 'token' => $this->validateToken(),\n 'password' => $this->validatePassword(),\n ];\n case 'account/delete/request':\n return [\n 'api_token' => new CheckClientIdent(),\n ];\n default:\n return [];\n }\n }", "title": "" }, { "docid": "e09f5125340db653eb6c8e033b44fe26", "score": "0.7713263", "text": "public function getRules()\n {\n // Set the validation rules.\n $rules = [\n 'order_id' => 'integer|required|exists:pgsql.consumer.orders,id',\n 'reference_id' => 'string|nullable|max:100',\n 'status' => 'string|in:pending,verified,settled,declined',\n 'reason' => 'string|required',\n 'amount' => 'numeric|required|min:0|max:999999999999.99',\n 'shipping_fee_flag' => 'integer|in:0,1',\n 'insurance_fee_flag' => 'integer|in:0,1',\n 'transaction_fee_flag' => 'integer|in:0,1',\n 'assets' => 'json|nullable',\n 'remarks' => 'string|nullable'\n ];\n\n return $rules;\n }", "title": "" }, { "docid": "82a3b5c111fc6c19b865d5b3b34a8a30", "score": "0.77092636", "text": "public function rules()\n {\n $rules = [];\n switch ($this->getMethod()) {\n case 'PUT':\n // no break\n case 'POST':\n $rules = [\n 'has_parent' => 'required|in:0,1',\n 'parent' => 'required_if:has_parent,1',\n 'can_has_children' => 'required|in:0,1',\n 'name' => 'required'\n ];\n # code...\n break;\n \n default:\n # code...\n break;\n }\n return $rules;\n }", "title": "" }, { "docid": "0fbab98d594ff61bd05c512cab86bb46", "score": "0.76987183", "text": "public function rules()\n {\n switch($this->method()) {\n case 'POST':\n $rules = [\n 'company_name' =>'required',\n 'business_type' =>'required',\n 'product_category' =>'required',\n 'product_status' =>'required',\n 'product_name' => 'required',\n 'product_price' => 'required',\n 'product_desc' => 'required',\n ];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "91291f9e882b03a36231403437eea78f", "score": "0.76849", "text": "public function getRules()\n {\n // Set the validation rules.\n $rules = [\n 'party_id' => 'integer|required|exists:pgsql.core.organizations,party_id',\n 'settlement_transfer_id' => 'integer|nullable|exists:pgsql.wallet.transfers,id',\n 'type' => 'string|required|in:' . implode(',', array_keys(config('settings.ledger_entry_types'))),\n 'status' => 'string|required|in:' . implode(',', array_keys(config('settings.ledger_entry_statuses'))),\n 'amount' => 'numeric|required|min:0|max:999999999999.99',\n 'breakdown' => 'json|required',\n 'reference_id' => 'string|nullable|max:100',\n 'bank_details' => 'json|nullable',\n 'remarks' => 'string|nullable',\n 'period' => 'string|required',\n 'closed_at' => 'date|required',\n 'settled_at' => 'date|nullable',\n 'settled_by' => 'integer|nullable',\n ];\n\n return $rules;\n }", "title": "" }, { "docid": "cd5bec9e9d569a456f81970b63507111", "score": "0.7683038", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "cd5bec9e9d569a456f81970b63507111", "score": "0.7683038", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "cd5bec9e9d569a456f81970b63507111", "score": "0.7683038", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "cd5bec9e9d569a456f81970b63507111", "score": "0.7683038", "text": "public function rules()\n {\n return $this->rules;\n }", "title": "" }, { "docid": "edb6e1295bf0d4036bc49f24a77d312d", "score": "0.76820654", "text": "public function rules()\n {\n $rules = $this->rules;\n \n if(Request::isMethod('PATCH')){\n $rules['mg_name'] = 'required|max:10';\n }\n\n return $rules;\n }", "title": "" }, { "docid": "c14fed4b797510caf172c6060aee3ff4", "score": "0.767571", "text": "public function rules()\n {\n $rules = [\n 'title' => 'required',\n 'content' => 'required',\n ];\n\n if ($this->get('method') == 'edit') {\n $rules['slug'] = 'required';\n foreach (Hook::getFormValidation('pages.edit') as $hook_rule) {\n $rules = array_merge($rules, $hook_rule);\n }\n } else {\n foreach (Hook::getFormValidation('pages.create') as $hook_rule) {\n $rules = array_merge($rules, $hook_rule);\n }\n }\n\n foreach (Hook::getFormValidation('pages.form') as $hook_rule) {\n $rules = array_merge($rules, $hook_rule);\n }\n\n\n return $rules;\n }", "title": "" }, { "docid": "d932018bf793de86e2dfa0d1a05e8514", "score": "0.7672468", "text": "public function rules()\n {\n return $this->rules[$this->method()];\n }", "title": "" }, { "docid": "91ca451d95bff1768eb2f2bd4fccf751", "score": "0.765128", "text": "public function rules()\n {\n return SiswaModel::VALIDATION_RULES + User::VALIDATION_RULES;\n }", "title": "" }, { "docid": "fead012d0b91937e2555d0bfbe34b858", "score": "0.76478314", "text": "public function rules()\n {\n $rules = [];\n\n $rules['first_name'] = 'required';\n $rules['last_name'] = 'required';\n $rules['email'] = 'required|email|unique_email';\n $rules['password'] = 'required|min:6';\n $rules['confirm_password'] = 'required|min:6|same:password';\n $rules['secondary_contact'] = 'required|email|unique_email';\n\n $rules = array_merge($rules, $this->getRulesForUsers($this->get('user')));\n\n return $rules;\n }", "title": "" }, { "docid": "310b85e88aaa2edd681bb6c0ab49f4da", "score": "0.7640041", "text": "public function rules()\n {\n $rules = [];\n if ($this->isMethod('post')) {\n $rules = [\n 'title' => 'required|string|min:3|max:20',\n 'country'=> 'required|string|min:2|max:30',\n 'city' => 'required|string|min:3|max:30',\n ];\n } elseif ($this->isMethod('put')) {\n $rules = [\n 'title' => 'required|string|min:3|max:20',\n 'country' => 'required|string|min:2|max:30',\n 'city' => 'required|string|min:3|max:30',\n ];\n }\n return $rules;\n }", "title": "" }, { "docid": "fe300ec6bec6561cac244c888270c017", "score": "0.76399946", "text": "public function rules()\n {\n switch($this->method())\n {\n case 'POST':\n {\n $rules= [\n 'name' => 'required|string|max:191',\n 'palestrante' => 'required', \n 'local' => 'required|max:255',\n 'date_time' => 'required',\n 'document' => 'nullable|max:150|url',\n ];\n return $rules;\n }\n case 'PUT':\n case 'PATCH':\n {\n return [\n 'name' => 'required|string|max:191',\n 'local' => 'required|max:255',\n 'palestrante' => 'required', \n 'date_time' => 'required',\n 'document' => 'nullable|max:150|url',\n ];\n }\n default:break;\n \n }\n return [\n \n ];\n }", "title": "" }, { "docid": "3f6567914683b75dbf27a3f6111bf08a", "score": "0.7635143", "text": "public function getRules()\n\t{\n\t\t$rules['cashier_session_id']\t= ['required', 'exists:' . app()->make(CashierSession::class)->getTable() . ',id' ];\n\t\t$rules['method'] \t= ['required', 'in:'.implode(',', config()->get('cashier.settlement_method'))];\n\t\t$rules['amount'] \t= ['required', 'numeric'];\n\t\t$rules['ref_id'] = ['nullable', 'numeric'];\n\t\t$rules['ref_type'] = ['nullable', 'string'];\n\t\t\n\t\treturn $rules;\n\t}", "title": "" }, { "docid": "be588f9f122adda1faf662687645bb9d", "score": "0.76108444", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n {\n return [\n 'prefix' => 'required|max:5',\n 'name_th' => 'required|max:100',\n 'name_en' => 'required|max:100',\n ];\n }\n case 'PUT':\n {\n return [\n 'prefix' => 'required|max:5',\n 'name_th' => 'required|max:100',\n 'name_en' => 'required|max:100',\n ];\n }\n default:\n break;\n }\n }", "title": "" }, { "docid": "493a957f8990b238ab3aab1a042255af", "score": "0.7602735", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return $this->rulesForCreate();\n case 'PUT':\n return $this->rulesForUpdate();\n default:\n break;\n }\n\n return [];\n }", "title": "" }, { "docid": "5fd01dbbd4ae37c1c4f693224d641939", "score": "0.75983995", "text": "public function rules()\n {\n $rules = $this->rules;\n\n return $rules;\n }", "title": "" }, { "docid": "8d391ad42a96b730d206ab32b5037652", "score": "0.7596716", "text": "public function rules()\n {\n // initiate rules\n $rules = [];\n \n // condition to check the request method\n switch ($this->method()) {\n // if the request method id POST rules will be payment_name that required\n // and if the request method is DELETE rules will be payment_id that required\n case 'POST':\n $rules['payment_name'] = 'required';\n break;\n case 'DELETE':\n $rules['payment_id'] = 'required';\n break;\n }\n\n // return array of rules\n return $rules;\n }", "title": "" }, { "docid": "e10425538949b029bbba01910301bfcb", "score": "0.7594831", "text": "public function rules()\n {\n $rules = [];\n foreach ($this->request->get('codigo_postal') as $key => $value) {\n $rules['codigo_postal.' . $key] = 'required|numeric';\n }\n foreach ($this->request->get('calle') as $key => $value) {\n $rules['calle.' . $key] = 'required';\n }\n foreach ($this->request->get('numero') as $key => $value) {\n $rules['numero.' . $key] = 'required';\n }\n foreach ($this->request->get('colonia') as $key => $value) {\n $rules['colonia.' . $key] = 'required';\n }\n foreach ($this->request->get('municipio') as $key => $value) {\n $rules['municipio.' . $key] = 'required';\n }\n foreach ($this->request->get('ciudad') as $key => $value) {\n $rules['ciudad.' . $key] = 'required';\n }\n foreach ($this->request->get('pais') as $key => $value) {\n $rules['pais.' . $key] = 'required';\n }\n foreach ($this->request->get('entidad_federativa') as $key => $value) {\n $rules['entidad_federativa.' . $key] = 'required';\n }\n return $rules;\n }", "title": "" }, { "docid": "42ab1d4aef30cecce7527fce51c7146c", "score": "0.7579594", "text": "public function rules()\n {\n switch ($this->validate_rule) {\n case config('validate.update_email'):\n $rules = ['email' => 'required|email|unique:users',];\n\n break;\n case config('validate.update_information'):\n $rules = [\n 'name' => 'required|string|max:255',\n 'phone' => 'required|string|max:15',\n 'date_of_birth' => 'required|string|max:20',\n 'address' => 'required|string',\n ];\n\n break;\n case config('validate.update_avatar'):\n $rules = ['photo' => 'required|image',];\n \n break;\n default:\n $rules = ['github_url' => 'required|string',];\n }\n \n return $rules;\n }", "title": "" }, { "docid": "f0782f46a6228941f91ad0325b4ea08e", "score": "0.7577833", "text": "public function rules()\n {\n switch($this->method())\n {\n // CREATE\n case 'POST':{\n $rules=[\n //'project_id' => 'required|numeric',\n 'stage_id' => 'required|numeric',\n 'thresholdinfo' => 'required|string',\n\n ];\n break;\n }\n case 'PATCH':{\n $rules=[\n 'thresholdinfo' => 'required|string',\n ];\n break;\n }\n // UPDATE\n case 'PUT':\n case 'GET':\n case 'DELETE':\n default:\n {\n return [];\n }\n }\n\n return $rules;\n }", "title": "" }, { "docid": "3fc00954ebc1872126d0ad42741263df", "score": "0.7573127", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST': {\n return [\n 'job_title_fr' => 'required',\n 'job_title_en' => 'required',\n 'link' => 'required',\n 'location' => 'required',\n 'job_type' => 'required'\n ];\n }\n case 'PUT':\n case 'PATCH': {\n return [];\n }\n default:\n break;\n }\n\n return [\n\n ];\n }", "title": "" }, { "docid": "7d908d2cb788afb4e555196bda719264", "score": "0.757236", "text": "public function rules()\n {\n switch ($this->route()->getName()) {\n case 'api.test-paper.store':\n return [\n 'user_id' => ['required', 'integer'],\n 'test_id' => ['required', 'integer'],\n 'minutes' => ['required', 'integer'],\n 'actual_score' => ['required', 'integer'],\n 'answers' => ['required', 'string'],\n ];\n break;\n }\n }", "title": "" }, { "docid": "87400bd803969d5af183cef06b705a1f", "score": "0.7549658", "text": "public function rules()\n {\n if($this->method() == 'POST') {\n return [\n 'name_ar' => 'required|string|max:191',\n 'name_en' => 'required|string|max:191',\n 'salary' => 'required|string|max:191',\n 'insurance' => 'required|string|max:191',\n 'gender' => 'required|in:F,M',\n ];\n } else if($this->method() == 'PUT') {\n return [\n 'name_ar' => 'required|string|max:191',\n 'name_en' => 'required|string|max:191',\n 'salary' => 'required|string|max:191',\n 'insurance' => 'required|string|max:191',\n 'gender' => 'required|in:F,M',\n ];\n }\n\n return [];\n }", "title": "" }, { "docid": "e449852aefe3f53bf6d7239f055aa46c", "score": "0.7545184", "text": "public function rules()\n\t{\n\t\treturn static::$rules;\n\t}", "title": "" }, { "docid": "c54cdd3b2da14a3fb4b1215b41772a31", "score": "0.75397813", "text": "public function rules()\n {\n switch ($this->getMethod()) {\n\n case 'POST':\n\n return [\n 'title' => 'required|string|max:255',\n 'description' => 'required|string|max:255',\n 'execution_date' => 'required|date',\n 'percentage_intermediary' => 'required|integer|min:1|max:100',\n ];\n\n case 'PUT':\n case 'GET':\n\n return [\n 'id' => 'required|integer|exists:orders,id',\n ];\n }\n }", "title": "" }, { "docid": "59d25543571a7f6bec1ebecd36bab054", "score": "0.75363225", "text": "public function rules()\n {\n if ($this->isMethod('post')) {\n return $this->createRules();\n } elseif ($this->isMethod('put')) {\n return $this->updateRules();\n }\n }", "title": "" }, { "docid": "021b0c74bb39bb182dc689720c1082d3", "score": "0.75321424", "text": "public static function getValidationRules()\n {\n return array(\n 'type' => 'required|in:'.implode(',', array_keys(Bubble::getTypes())),\n 'project_id' => 'required_if:type,project|exists:projects,id|numeric',\n 'quest_id' => 'required_if:type,quest|exists:quests,id|numeric',\n 'order' => 'numeric',\n );\n }", "title": "" }, { "docid": "28b465ae6adfb63cb22a3a93d4c724a9", "score": "0.75165886", "text": "public function rules()\n {\n switch ($this->getRequestMethod()) {\n case 'store':\n return [\n 'name' => 'nullable|string',\n 'names' => 'nullable|array',\n 'category' => 'required|integer|in:' . get_validate_in_string(DatabaseNotification::$categories),\n 'message' => 'required|string',\n 'start_at' => 'nullable|date',\n 'end_at' => 'nullable|date',\n 'status' => 'required|int|in:' . implode(',', array_keys(User::$statuses)),\n ];\n break;\n\n case 'reply':\n return [\n 'message' => 'required|string',\n ];\n break;\n }\n return [];\n }", "title": "" }, { "docid": "d707bb0769e974c2f417a897389d069a", "score": "0.75155175", "text": "public function rules()\n {\n return static::$rules;\n }", "title": "" }, { "docid": "364a13c2893d8efd75f00b506118239c", "score": "0.75133425", "text": "public function rules()\n {\n return ValidationTableRepository::getInstance()->getValidationForTable(static::getTable());\n }", "title": "" }, { "docid": "a1a34317b01599e3e29db008c67554cb", "score": "0.75006264", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE':\n case 'POST': {\n return [\n 'display_name' => 'required',\n ];\n }\n case 'PUT':\n case 'PATCH': {\n return [\n 'display_name' => 'required',\n ];\n }\n }\n }", "title": "" }, { "docid": "19ce38209b9f70b160af4c62fe7e4ead", "score": "0.7500172", "text": "public function rules()\n {\n $rules = [\n 'name' => ['required']\n ];\n\n if (!$this->route('id')) {\n $rules['type_id'] = ['required', 'integer'];\n }\n\n return array_merge($rules, self::resolveValidationRules($this->input('type_id')));\n }", "title": "" }, { "docid": "31e91afa00dee4837a819848030b2f16", "score": "0.7499005", "text": "public function rules()\n {\n $rules = $this->rules;\n if(Request::isMethod('PATCH')){\n $rules['r_name'] = 'required|max:16|min:2';\n }\n return $rules;\n }", "title": "" }, { "docid": "12f4fbe79a73dec84e50a2406f68836b", "score": "0.74954253", "text": "public function rules()\n {\n switch($this->method()) {\n case 'GET':\n return [\n 'per_page' => 'min:1|integer',\n ];\n\n case 'POST':\n return [\n //\n ];\n\n case 'PUT':\n case 'PATCH':\n return [\n //\n ];\n\n default:\n return [\n //\n ];\n }\n }", "title": "" }, { "docid": "f4532ad0f2342b7c30f2267483fc260f", "score": "0.7490092", "text": "public function rules()\n {\n $rules = [\n 'title' => 'required',\n 'subject' => 'required',\n 'content' => 'required',\n ];\n\n $this->postMergeRule($rules, 'slug', 'required');\n\n return $rules;\n }", "title": "" }, { "docid": "562a47390e240c2e8cf88083ab73b383", "score": "0.7478887", "text": "public function rules()\n {\n\n switch($this->method()){\n case 'POST':\n $rules = [\n 'name' => 'required|string|max:90',\n 'email' => 'required|email',\n 'subject' => 'required|string|max:90',\n 'phone' => 'sometimes',\n 'message' => 'required|string', \n ]; \n break;\n case 'PATCH':\n $rules = [\n 'status' => 'sometimes|min:0|max:1',\n ]; \n case 'DELETE':\n $rules = [\n 'id.*' => 'required' \n ];\n break;\n default:\n $rules = [];\n }\n\n return $rules;\n\n \n }", "title": "" }, { "docid": "f619af17dfa0349d9493297034b319cd", "score": "0.74773455", "text": "public function rules()\n {\n switch($this->method())\n {\n case 'GET':\n break;\n case 'DELETE':\n break;\n case 'POST':\n {\n return [\n 'name' => 'required|min:3',\n 'code' => 'required|min:2',\n 'duration' => 'required|min:3|numeric',\n ];\n break;\n }\n case 'PUT':\n return [\n 'name' => 'required|min:3',\n 'id' => 'required|numeric|exists:exams',\n 'code' => 'required|min:2',\n 'duration' => 'required|min:3|numeric',\n ];\n break;\n case 'PATCH':\n break;\n default:\n break;\n }\n\n }", "title": "" }, { "docid": "4c6f1c1a31614b6cf405dbd44ea6e9a2", "score": "0.74727464", "text": "protected function getRules()\n {\n if (method_exists($this->model, 'validationRules')) {\n return $this->model->validationRules();\n }\n\n if (property_exists($this->model, 'validationRules')) {\n return $this->model->validationRules;\n }\n }", "title": "" }, { "docid": "5b814a64a3acb99e18f93805f08918ab", "score": "0.7472394", "text": "public function getRules() {\n return [\n 'actions' => [ 'required', ],\n 'user_edit' => [ 'required', 'rangeLogin', 'uniqueLogin', ],\n 'pass_edit' => [ 'required', 'confirmPassword', 'minPassword' ],\n 'pass_repeat_edit' => [ 'required', ],\n 'family_edit' => [ 'required', ],\n 'name_edit' => [ 'required', ],\n 'edit_user_id' => [ 'required', ],\n ];\n }", "title": "" }, { "docid": "bdf3579f828038eeaf97cb07780ec7fd", "score": "0.7472078", "text": "public function rules()\n {\n $rules = $this->rules;\n // Request::getPathInfo()方法获取命名路由,用来区分不同页面\n if(Request::getPathInfo() == '/admin/reg_sub'){ //路由为/admin/reg_sub的特有验证部分\n $rules['email'] = new ValidLoginEmail(); //自定义了一个email的规则\n $rules['code'] = 'required|between:4,4';\n $rules['title'] = new SimpleRule(); //自定义了一个简单的规则\n $rules['repository'] = [\n 'required',\n new ValidRepository($this->source(), Request()->branch)\n ];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "0c2bffd586aa8c674e0d501fe28a5c30", "score": "0.7470815", "text": "protected function getValidationRules(): array\n {\n return [\n new QueryComplexity(config('lighthouse.security.max_query_complexity', 0)),\n new QueryDepth(config('lighthouse.security.max_query_depth', 0)),\n new DisableIntrospection(config('lighthouse.security.disable_introspection', false)),\n ];\n }", "title": "" }, { "docid": "119ad8f3755c6d986b04519e27d456d9", "score": "0.746567", "text": "public function rules()\n {\n if ($this->isMethod('PUT') || $this->isMethod('PATCH')) {\n return $this->getUpdateRules();\n }\n\n return $this->getCreateRules();\n }", "title": "" }, { "docid": "e8d9aa85c4ddd35bf5be169d30dbc63f", "score": "0.7462552", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'POST':\n return [\n // Validate User\n 'email' => 'required|unique:users,email|email',\n 'password' => 'required|min:6|max:30',\n 're_password' => 'required|same:password',\n 'name' => 'required|min:6|max:50',\n 'birthday' => 'required|date',\n 'phone' => 'required|min:10|max:12',\n 'address' => 'required',\n ];\n\n case 'PUT':\n case 'PATCH':\n default:\n return [];\n }\n }", "title": "" }, { "docid": "3dab997d91de85a319d8f1bad7021dda", "score": "0.74601465", "text": "public function rules()\n {\n $rules = [\n 'name' => ['required', 'min:2', 'max:255'],\n 'latitude' => ['required'],\n 'longitude' => ['required'],\n 'time_zone' => ['required'],\n ];\n\n if (in_array($this->method(), ['POST', 'CREATE'])) {\n $rules['country_code'] = ['required', 'min:2', 'max:2'];\n $rules['subadmin1_code'] = ['required'];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "2b53106c2d8dae7fa0b770ca86b770b2", "score": "0.74508816", "text": "public function rules()\n {\n $rules = [];\n switch ($this->method()){\n case 'POST':\n $rules = [\n 'first_name' => 'required|string|max:191',\n 'last_name' => 'required|string|max:191',\n 'email' => [\n 'required',\n 'email',\n Rule::unique('users')\n ],\n 'password' => 'string|min:8|max:191'\n ];\n break;\n case 'PUT':\n case 'PATCH':\n $id = $this->route('user');\n $rules = [\n 'name' => 'string|max:191',\n 'email' => [\n 'email',\n Rule::unique('users')->ignore($id)\n ],\n 'password' => 'string|min:8|max:191'\n ];\n break;\n case 'DELETE':\n case 'GET':\n default:\n break;\n }\n\n return $rules;\n }", "title": "" }, { "docid": "c75036feca27411d7d75806baeb5db7c", "score": "0.74482924", "text": "public function rules()\n {\n switch (strtoupper($this->getMethod())) {\n case 'PUT':\n return [\n 'quantity' => ['required', 'numeric', 'min:1'],\n ];\n break;\n default:\n return [\n 'quantity' => ['required', 'numeric', 'min:1'],\n 'goods_id' => ['required'],\n 'goods_specification_id' => ['required'],\n 'marketing_type' => ['in:App\\Models\\DiscountGoods'],\n 'marketing_id' => [\n 'required_with:marketing_type',\n new CheckGoodsMarketing(\n $this->get('goods_id', 0),\n $this->get('goods_specification_id', 0),\n $this->get('marketing_type', ''),\n $this->get('quantity', 0)\n )\n ]\n ];\n break;\n }\n }", "title": "" }, { "docid": "056b2e236d4d44ef1640af54def21bbd", "score": "0.744633", "text": "public function rules()\n {\n $rules = array();\n $rules['name'] = $this->validarName();\n $rules['horario_apertura'] = $this->validarHorarioApertura();\n $rules['horario_cierre'] = $this->validarHorarioCierre();\n $rules['web'] = $this->validarWeb();\n $rules['social'] = $this->validarSocial();\n $rules['type'] = $this->validarType();\n $rules['period'] = $this->validarPeriod();\n $rules['description'] = $this->validarDescription();\n\n return $rules;\n }", "title": "" }, { "docid": "38544f22064b6ab87123cc4adefb3a44", "score": "0.7445684", "text": "public function rules()\n {\n switch($this->method()) {\n case 'POST':\n return [\n 'userId' => 'required|unique:user,userId',\n 'email' => 'required|email|unique:user,email',\n\t 'password' => 'required',\n 'name' => 'required',\n 'lastname' => 'required',\n 'department_id' => 'required|exists:department,id',\n 'permission' => 'required|in:owner,admin,staff,premium,user'\n ];\n case 'PUT':\n return [\n 'email' => 'email',\n\t 'password' => '',\n 'name' => '',\n 'lastname' => '',\n 'department_id' => 'exists:department,id',\n 'permission' => 'in:owner,admin,staff,premium,user'\n ];\n default:\n return [];\n }\n }", "title": "" }, { "docid": "cd3d32f0e7a6b30a42fde7c5719a2e7a", "score": "0.7443789", "text": "private function getRules()\n {\n $rules = [\n \"titulo\" => \"required|string\",\n \"tipo\" => \"required|string|in:full-time,part-time\",\n \"categoria\" => \"required|integer|exists:categorias,id\",\n \"descripcion\" => \"required|string\",\n \"experiencia\" => \"required|integer|in:1,2,5,10\",\n \"salario_1\" => \"required|numeric\",\n \"salario_2\" => \"bail|nullable|numeric\",\n \"estado\" => \"required|string\",\n \"ciudad\" => \"required|string\",\n \"ubicacion\" => \"required|string\",\n \"contacto\" => \"required|string\",\n \"habilitado\" => \"nullable|boolean\",\n ];\n return $rules;\n }", "title": "" }, { "docid": "6255bf09623d0297ad6df82f37246fec", "score": "0.7439664", "text": "public function rules() {\n $rules = [\n\t 'cost_type' => 'required|min:1|max:6',\n\t 'value' => 'required|min:1',\n\t 'contract_partner_type' => 'required|min:1|max:6',\n\n\t 'partner_id' => 'required',\n 'description' => 'required|min:1|max:100',\n\t 'contracted_at' => 'required',\n\t 'realized_at' => 'required',\n\n\t 'payment_form' => 'required|min:1|max:100',\n\t 'payment_date' => 'required',\n\t\t];\n\t\tswitch ( $this->method() ) {\n\t\t\tcase 'GET':\n\t\t\tcase 'DELETE':\n\t\t\t{\n\t\t\t\treturn [];\n\t\t\t}\n\t\t\tcase 'POST':\n\t\t\t{\n\t\t\t\treturn $rules;\n\t\t\t}\n\t\t\tcase 'PUT':\n\t\t\tcase 'PATCH':\n\t\t\t{\n\t\t\t\treturn $rules;\n\t\t\t}\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t}", "title": "" }, { "docid": "4255ade1d94abafb3999810da1e4c3a1", "score": "0.7439358", "text": "public function rules()\n {\n switch($this->method())\n {\n case 'GET':\n case 'DELETE':\n {\n return [];\n }\n case 'POST':\n {\n return [\n 'bio' => 'required|min:3|max:255',\n 'experience' => 'required|min:3|max:60',\n 'address' => 'required|min:3|max:160',\n 'city' => 'required|min:3|max:60',\n 'state' => 'required|min:3|max:60',\n 'zip' => 'required|digits_between:3,5|integer',\n ];\n }\n case 'PUT':\n case 'PATCH':\n {\n return [\n 'bio' => 'required|min:3|max:255',\n 'experience' => 'required|min:3|max:60',\n 'address' => 'required|min:3|max:160',\n 'city' => 'required|min:3|max:60',\n 'state' => 'required|min:3|max:60',\n 'zip' => 'required|digits_between:3,5|integer',\n ];\n }\n default:break;\n }\n }", "title": "" }, { "docid": "0dcbe07edfec21a3f576a435646d19f8", "score": "0.7435011", "text": "public function rules()\n {\n switch(Route::currentRouteName()){ //当前路由别名\n case 'ywapplyPayReturn' :\n return [\n 'token' => 'required',\n 'yw_applyid' => 'required|integer',\n 'status' => 'required|integer',\n 'yw_billpics' => 'required_if:status,3',\n ];\n default :\n return [];\n }\n }", "title": "" }, { "docid": "07e7bb93d76f36f0bc29b7783a28acd7", "score": "0.743252", "text": "public function rules() {\n return array_get($this->rules, $this->getAction(), []);\n }", "title": "" }, { "docid": "510a5cb31b3fe21f30aade7ee0c28b6a", "score": "0.74324596", "text": "protected function parseValidationRules()\n {\n return [$this->getParameter() => $this->container->call([$this, 'rules'])];\n }", "title": "" }, { "docid": "8cd7cb1ced595cfbe76757342e535359", "score": "0.7427798", "text": "public function rules()\n {\n return static::getRules();\n }", "title": "" }, { "docid": "3362b9d8a0ff2fa72cd3b970ebbc05ff", "score": "0.7424502", "text": "public function rules() {\n\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return array();\n }\n case 'POST': {\n //Contact Us Form\n return array(\n 'name' => 'required|min:3',\n 'email' => 'required|email|min:3',\n 'message' => 'required|min:3',\n 'subject' => 'required|min:3',\n );\n }\n case 'PUT': {\n return array(\n 'first_name' => 'required|min:2',\n 'email' => 'required|email|min:3',\n 'phone' => 'required|min:3',\n 'address' => 'required|min:3',\n 'shipment_id' => 'required',\n 'promocode' => 'validcode|notexpire'\n );\n }\n case 'PATCH': {\n return array(\n 'f_name' => 'required|min:2',\n 'l_name' => 'required|min:2',\n 'email' => 'required|email|min:3',\n 'phone' => 'required|min:3',\n 'address' => 'required|min:3',\n 'gender' => 'required',\n 'country'=>'required'\n );\n }\n }\n }", "title": "" }, { "docid": "c3604b467f03c344b86bf5eecdd0cb9b", "score": "0.7424337", "text": "public static function getAllValidationRules()\n {\n return array_merge(\n self::$infoValidationRules,\n self::$passValidationRules\n );\n }", "title": "" }, { "docid": "04c9445b462ed8bdb8b7a0dfdffc0fc4", "score": "0.74188185", "text": "public function rules()\n {\n $atualGroupRoute = explode(\"::\", Route::currentRouteName());\n $atualRoute = end($atualGroupRoute);\n $validate = [];\n\n switch ($atualRoute) {\n case 'reloadSession':\n $validate = [\n 'password' => 'required|min:6'\n ];\n break;\n }\n\n return $validate;\n }", "title": "" }, { "docid": "8501e4295a74b0ba9797f75456a0c778", "score": "0.74178624", "text": "public function rules()\n {\n switch ($this->route()->getName()) {\n\t\t\tcase 'admin.login' :\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'name' => 'required|max:12|min:2',\n\t\t\t\t\t\t'password' => 'required|max:60|min:5'\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tdefault:\n\t\t\t\t{\n\t\t\t\t\treturn [];\n\t\t\t\t}\n\t\t}\n }", "title": "" }, { "docid": "f2266c75b8ad837bc4984ed7542b71c7", "score": "0.74057823", "text": "public function rules()\n {\n $rules = [\n 'page_title' => 'required',\n 'show_in_menu' => 'required',\n 'seo.controller' => 'required',\n 'seo.function' => 'required',\n ];\n\n $rules += $this->seoRules();\n\n return $rules;\n }", "title": "" }, { "docid": "8507514a709df8bbd0e4e23b758471d2", "score": "0.7395353", "text": "public function rules()\n {\n $rules = [\n 'name' => 'min:3|max:50|required',\n 'preposition' => 'max:10|nullable',\n 'last_name' => 'min:3|max:50|required',\n 'email' => 'min:5|max:50|email|unique:user,email,'.Auth::user()->id,\n 'function' => 'min:3|max:50|nullable',\n 'department_id' => 'integer|required|exists:department,id',\n\n ];\n\n if (isset($this->request->all()['password'])) {\n $rules += ['password' => 'min:5|max:30|confirmed'];\n }\n\n return $rules;\n }", "title": "" }, { "docid": "e7b0626ebdc93b01844cb7ffcf7dfcf0", "score": "0.7394749", "text": "public function rules(): array\n {\n return $this->rules;\n }", "title": "" }, { "docid": "93d78eb0f8280f18f7a60e97d08d3cde", "score": "0.73933583", "text": "public function rules(Request $request)\n {\n $rules = $this->getRules($request->get('code'));\n\n return $rules;\n }", "title": "" }, { "docid": "9ccd1b58bc9a55c31b8771c0bc520b1c", "score": "0.7393202", "text": "public function rules() {\n $this->sanitize();\n return [\n 'key_stage' => 'required',\n 'year_group' => 'required',\n 'subject' => 'required',\n 'question_set' => 'required',\n 'assign_date' => 'required',\n 'completion_date' => 'required',\n ];\n }", "title": "" }, { "docid": "41dbe9df3f0e6f98bcd3d6ea162fb934", "score": "0.73931456", "text": "public function rules() {\n switch ($this->method()) {\n case 'POST':\n case 'PUT':\n case 'PATCH':\n return [\n //\n 'project_id' => 'required|integer',\n 'version_id' => 'required|integer',\n 'step_id' => 'required|integer',\n 'work_time' => 'required|integer',\n 'current_time' => 'required|date',\n 'body' => 'required|between:2,100',\n ];\n case 'GET':\n case 'DELETE':\n return [];\n\n }\n\n }", "title": "" }, { "docid": "2d157594f04a77aae2204b49f532b77f", "score": "0.7389781", "text": "public function rules()\n {\n $rules = array();\n\n if ($this->exists('titulo')) {\n $rules['titulo'] = $this->validarTitulo();\n }\n\n if ($this->exists('uri')) {\n $rules['uri'] = $this->validarUrl();\n }\n\n if ($this->exists('tipo')) {\n $rules['tipo'] = $this->validarTipo();\n }\n\n if ($this->exists('descripcion')) {\n $rules['descripcion'] = $this->validarDescripcion();\n }\n\n if ($this->exists('privacidad')) {\n $rules['privacidad'] = $this->validarPrivacidad();\n }\n\n if ($this->exists('tags')) {\n $rules['tags'] = $this->validarTags();\n }\n\n return $rules;\n }", "title": "" }, { "docid": "3225eb958c20b62d7d0585e81205613b", "score": "0.7389362", "text": "public function rules()\n {\n $rules = [\n 'email' => 'required|unique:users,email',\n 'password' => 'required|min:8',\n 'perfil_id' => 'required'\n ];\n\n $rules += $this->getDadosPessoaisRules();\n $rules += $this->getContatoRules();\n\n return $rules;\n }", "title": "" }, { "docid": "c03f3ddb79ec7ba96b4037ecd1d06fc0", "score": "0.7385394", "text": "public function rules()\n {\n $rules = [\n 'name' => 'required|string',\n ];\n\n if ($this->getMethod() == 'POST') {\n $rules['name'] = \"\";\n } else {\n $rules['name'] = \"\";\n }\n\n return $rules;\n }", "title": "" }, { "docid": "5f2c75adf7c0f9be34ed9532b798b82f", "score": "0.73824245", "text": "private function getValidationRules() {\n return [\n 'author_name' => 'required|string',\n 'author_email' => 'required|email',\n 'terms-conditions' => 'accepted',\n\n // TOREMEMBER SCOMMENTARE\n // TOTEST\n // 'service_number' => 'required_without: text',\n // 'text' => 'required without: service_number | string'\n ];\n }", "title": "" }, { "docid": "8bcf770276646d0d88b7e05eff62aea9", "score": "0.7375543", "text": "public function rules()\n {\n switch ($this->method()) {\n case 'GET':\n case 'DELETE': {\n return [];\n }\n case 'POST':\n case 'PUT':\n case 'PATCH': {\n return [\n 'project_id' => 'bail|required',\n 'car_no' => 'bail|required',\n 'device_id' => 'bail|required',\n 'project_phase_id' => 'bail|required',\n 'content' => 'bail|required',\n 'reason' => 'bail|required',\n 'handled_at' => 'bail|required',\n 'result' => 'bail|required',\n ];\n }\n default:\n return [];\n break;\n }\n }", "title": "" }, { "docid": "de95af73a26aeb0415f8bed4799ddf7c", "score": "0.73728365", "text": "public function rules()\n {\n $actionMethod = $this->route()->getActionMethod();\n\n if (! in_array($actionMethod, ['store', 'update'])) {\n return [];\n }\n\n if ($actionMethod == 'store') {\n return $this->resource->getCreationRules($this);\n }\n\n if ($actionMethod == 'update') {\n return $this->resource->getUpdateRules($this);\n }\n }", "title": "" }, { "docid": "91e5ec48b4a1f430a0834c98479dc3d7", "score": "0.7368973", "text": "public function rules()\n {\n if ($this->isRegister())\n return array_merge($this->primaryRules, [\n 'email' => 'required|email',\n 'password' => 'required|string|min:6',\n 'password_confirmation' => 'required|string|min:6',\n ]);\n\n return $this->primaryRules;\n }", "title": "" }, { "docid": "eb035d3feab5e875b6adf85eb6539612", "score": "0.7361124", "text": "public static function specificValidationRules()\n {\n return [];\n }", "title": "" }, { "docid": "c4fca8b26d2417a50dde3428d41b353d", "score": "0.735947", "text": "public function getValidationRules()\n {\n return [\n 'body' => ['required'],\n ];\n }", "title": "" }, { "docid": "e0ea4ba8b29581f2ad50e25d9179131b", "score": "0.7358614", "text": "private function getValidationRules()\n {\n $rules = $this->getSimpleRules();\n\n foreach ($this->getComplexRules() as $rule) {\n $rules->push(\n $this->{'get' . $rule . 'Rule'}()\n );\n }\n\n return $rules->values()->implode('|');\n }", "title": "" }, { "docid": "d46cfef698b44a19c1b1669fca6bd4b1", "score": "0.73536634", "text": "public function getValidationRules(): array;", "title": "" }, { "docid": "7d1bd4f60f8482c257c0238f4f6b31ba", "score": "0.73503643", "text": "public function rules()\n {\n return $this->rulesByType($this->getType());\n }", "title": "" }, { "docid": "cce92790a392d4ee473a08bb4aec3c2e", "score": "0.73377484", "text": "public function getRules() {\n return [\n 'user_id' => 'required|exists:users,id',\n 'amount' => 'required',\n 'fee' => 'required',\n 'order_id' => 'required',\n 'charge_id' => 'required',\n 'bardcode' => 'required',\n 'reference' => 'required',\n 'expired_at' => 'required',\n ];\n }", "title": "" }, { "docid": "b1dfd1c1502f80a1f559d5370f580e63", "score": "0.7335358", "text": "public function rules()\n {\n\t\tswitch($this->method()) {\n\t\t\tcase 'POST':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'name' => 'string|required',\n\t\t\t\t\t\t'web_agence' => 'boolean|required',\n\t\t\t\t\t\t'address' => 'string|nullable',\n\t\t\t\t\t\t'complement' => 'string|nullable',\n\t\t\t\t\t\t'zip_code' => 'string|nullable|max:10',\n\t\t\t\t\t\t'city' => 'string|nullable',\n\t\t\t\t\t\t'country_id' => 'integer|nullable',\n\t\t\t\t\t\t'website' => 'string|nullable',\n\t\t\t\t\t\t'email' => 'email|nullable',\n\t\t\t\t\t\t'actif' => 'boolean|nullable',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tcase 'PUT':\n\t\t\t\t{\n\t\t\t\t\treturn [\n\t\t\t\t\t\t'name' => 'string|required',\n\t\t\t\t\t\t'web_agence' => 'boolean|required',\n\t\t\t\t\t\t'address' => 'string|nullable',\n\t\t\t\t\t\t'complement' => 'string|nullable',\n\t\t\t\t\t\t'zip_code' => 'string|nullable|max:10',\n\t\t\t\t\t\t'city' => 'string|nullable',\n\t\t\t\t\t\t'country_id' => 'integer|nullable',\n\t\t\t\t\t\t'website' => 'string|nullable',\n\t\t\t\t\t\t'email' => 'email|nullable',\n\t\t\t\t\t\t'actif' => 'boolean|nullable',\n\t\t\t\t\t];\n\t\t\t\t}\n\t\t\tdefault:break;\n\t\t}\n }", "title": "" }, { "docid": "c449b8f7bb5b8a1ecc386894a73ba209", "score": "0.7335088", "text": "public function rules()\n {\n $methodName = $this->getRequestMethod();\n switch ($methodName) {\n case 'store':\n return [\n 'name' => 'required|between:4,12|regex:/^[A-Za-z0-9\\-\\_]+$/|unique:admins',\n 'nick_name' => 'nullable|string',\n 'password' => 'required|string|min:6',\n 'operate_password' => 'nullable|string|min:6',\n 'language' => 'required|string',\n 'remarks' => 'nullable|string|max:255',\n 'sort' => 'nullable|integer|min:0',\n 'status' => 'nullable|boolean',\n 'admin_role_ids' => 'required|array',\n 'admin_role_ids.*' => 'required|integer|exists:admin_roles,id',\n ];\n break;\n\n case 'changePassword':\n case 'updatePassword':\n return [\n 'password' => 'required|string|min:6|confirmed',\n 'password_confirmation' => 'required|string|min:6',\n ];\n break;\n }\n\n }", "title": "" }, { "docid": "02143c637c1fe793b31b99dae9291b7f", "score": "0.7329458", "text": "public function rules()\n {\n\n if($this->method() === 'POST'){\n return [\n 'requested_at' => 'nullable|date',\n 'completed_at' => 'nullable|date',\n 'concern' => 'nullable|string',\n 'assessment' => 'nullable|string',\n 'solution' => 'nullable|string',\n 'user_id' => 'required',\n ];\n }\n return [];\n }", "title": "" }, { "docid": "78649369c5c9d925777c9f804b5cf2c9", "score": "0.732838", "text": "public function rules()\n {\n $user = Auth::user();\n\n if ('PUT' == Request::method()) {\n return [\n 'title' => ['required', 'max:255'],\n 'goodbye_text' => ['required', 'string', 'max:1000'],\n 'welcome_message' => ['required', 'string', 'max:1000'],\n 'redirect_url' => ['nullable', 'url'],\n 'require_password' => ['required', 'in:0,1'],\n 'password' => ['nullable', 'alpha_num', 'min:8'],\n 'visibility' => ['required', 'in:0,1'],\n 'question_color' => ['required', 'max:255'],\n 'answer_color' => ['required', 'max:255'],\n 'button_color' => ['required', 'max:255'],\n 'button_text_color' => ['required', 'max:255'],\n 'background_color' => ['required', 'max:255'],\n 'is_template' => ['required', 'in:0,1'],\n ];\n }\n }", "title": "" }, { "docid": "b5cb1ede50a42c941310ab316ddab38f", "score": "0.73247796", "text": "public function rules(): array\n {\n\n switch($this->method()) {\n // CREATE\n case 'POST':\n {\n return [\n 'display_name' => 'required',\n 'mobile' => 'required',\n 'address' => 'required'\n ];\n }\n // UPDATE\n case 'PUT':\n case 'PATCH':\n {\n\n return [\n 'display_name' => 'required',\n 'mobile' => 'required',\n 'address' => 'required'\n ];\n\n }\n case 'GET':\n case 'DELETE':\n default:\n {\n return [];\n };\n }\n }", "title": "" }, { "docid": "4f0ac7ab1eefd73c17f2bd1df40d8a9f", "score": "0.7315152", "text": "public function rules()\n {\n $validation = [];\n if ($this->method() == 'POST') {\n $validation = [\n 'name' => 'required|max:100',\n 'alias' => 'required|max:100|unique:conferences,alias,NULL,id,deleted_at,NULL'\n ];\n } elseif ($this->method() == 'PUT') {\n $validation = [\n 'name' => 'required|max:100',\n 'alias' => 'required|max:100|unique:conferences,alias,' . $this->route()->parameter('id') . ',id,deleted_at,NULL'\n ];\n }\n\n return $validation;\n }", "title": "" }, { "docid": "eeca381dad746dfce5988793a54f8e08", "score": "0.7311742", "text": "public function rules()\n {\n $rules = [];\n if($this->google_calendar_status == 'active'){\n $rules = [\n 'google_client_id' => 'required',\n 'google_client_secret' => 'required',\n ];\n }\n return $rules;\n\n }", "title": "" }, { "docid": "a7131888047981700af9d963378e801e", "score": "0.7305993", "text": "public function rules()\n {\n return $this->getMethod() == 'GET' ? [] : [\n 'name' => 'required|max:50',\n 'category_id' => 'required',\n 'type_id' => 'required',\n 'logo' => 'sometimes|image',\n 'market_price' => 'numeric',\n 'shop_price' => 'numeric',\n 'sort_num' => 'numeric',\n ];\n }", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "b9c7396430ae6e7edac156e7bee50e1d", "score": "0.0", "text": "public function index(Ground $ground)\n {\n $seeds = $ground->beds()->with('plants.seed')->get()->pluck('plants')->collapse()->pluck('seed');\n return $this->showAll($seeds);\n }", "title": "" } ]
[ { "docid": "a1420ad0fb284c611971591393b45aef", "score": "0.75101477", "text": "public function index()\n\t{\n\t\t$resources = Resources::all();\n\t\t$collection = array();\n\t\t\n\t\tforeach ($resources as $name => $options)\n\t\t{\n\t\t\tif (false === value($options->visible)) continue;\n\t\t\t\n\t\t\t$collection[$name] = $options;\n\t\t}\n\n\t\t$table = $this->presenter->table($collection);\n\n\t\tSite::set('title', trans('orchestra/foundation::title.resources.list'));\n\t\tSite::set('description', trans('orchestra/foundation::title.resources.list-detail'));\n\n\t\treturn View::make('orchestra/foundation::resources.index', array(\n\t\t\t'eloquent' => $collection,\n\t\t\t'table' => $table,\n\t\t));\n\t}", "title": "" }, { "docid": "03c28056ac36b9758780b52bcb56ea11", "score": "0.7452768", "text": "public function actionList() {\n $this->getList();\n }", "title": "" }, { "docid": "79ad7ebbde0cad2af3c2becbd440dc9d", "score": "0.73606837", "text": "public function listing();", "title": "" }, { "docid": "0aa4853e6e1c011310051c464837c9be", "score": "0.7342436", "text": "public function index()\n {\n $resources = $this->resource->paginate(10);\n\n return view('manager.resources.index', compact('resources'));\n }", "title": "" }, { "docid": "f6249e52b27cd61546f9ac9938889b8c", "score": "0.729956", "text": "public function index()\n {\n $resources = Resource::all();\n return view('admin.resource.list')->with('resources',$resources);\n }", "title": "" }, { "docid": "dd0281461ff38e01dc7daaf263a98684", "score": "0.72682965", "text": "function index() {\n $this->getList();\n }", "title": "" }, { "docid": "223999e9a02d01dc0cad36705dec31b1", "score": "0.72471476", "text": "public function actionList() {\n $this->_getList();\n }", "title": "" }, { "docid": "eacf64f52d5b73d527cae880dfe65bc1", "score": "0.7216051", "text": "public function index()\n {\n return RecipeListResource::collection(Recipe::paginate(10));\n }", "title": "" }, { "docid": "5e485f5256447384c89b0040914b850e", "score": "0.72108763", "text": "public function index()\n {\n $resources = Resource::orderBy('id', 'desc')->paginate(10);\n\n return view('admin.resource.index', [\n 'resources' => $resources\n ]);\n }", "title": "" }, { "docid": "2e3564beb136b7de619ee51f1088fb53", "score": "0.71962565", "text": "public function index()\n {\n\n return \\View::make('resources.index')\n ->with(['displayName' => 'resources']\n );\n }", "title": "" }, { "docid": "6ba01bde2894545b26719d51e92cebf6", "score": "0.71554273", "text": "public function indexAction()\n {\n\n $em = $this->getDoctrine()->getManager();\n\n $resources = $em->getRepository('AppBundle:Resource')->findAllDesc();\n\n return $this->render('admin/resource/index.html.twig', array(\n 'resources' => $resources,\n ));\n }", "title": "" }, { "docid": "42bee349ff83930cb164b3a793f6d5b2", "score": "0.71425146", "text": "public function listAction()\n {\n //Setup search properties form\n $searchForm = $this->service->getForm('Search');\n $action = $this->view->url(['action'=>'search'], 'controllers');\n $searchForm->setAction($action);\n $this->view->searchForm = $searchForm;\n //Setup properties list\n $this->service->setPaginatorOptions($this->getAppSetting('paginator'));\n $page = (int) $this->param($this->view->translate('page'), 1);\n $collection = $this->service->retrievePropertyCollection($page);\n $this->view->collection = $collection;\n $this->view->paginator = $this->service->getPaginator($page);\n }", "title": "" }, { "docid": "d7820004a578ddc16d57dff08d715ef0", "score": "0.7131644", "text": "public function showResource()\n\t{\n\t\treturn view('resources.list')->with('resources', Resources::all());\n\t}", "title": "" }, { "docid": "1ac60064d05eb6556018c88c4294567a", "score": "0.71117806", "text": "public function index()\n\t{\n\t\t$this->lists();\n\t}", "title": "" }, { "docid": "21284f1b8a31a69a0252300fcccbc357", "score": "0.71051973", "text": "public function listingAction()\r\n {\r\n\r\n $oZendDbSelect = new Zend_Db_Select(Zend_Db_Table::getDefaultAdapter());\r\n $oZendDbSelect->from('View_Rclient_Types_Listing')->order('cl_type_id asc');\r\n\r\n // Query search engine\r\n $oMySearchEngine = new My_Search_Engine($oZendDbSelect);\r\n $oMySearchEngine->findWordOn(array('cl_type_libelle' => array('operator' => 'like')));\r\n\r\n $oMySearchEngine->findByFields(\r\n array(\r\n 'cl_type_id' => array('operator' => 'eql'),\r\n 'cl_type_libelle' => array('operator' => 'like')\r\n )\r\n );\r\n\r\n $oMySearchEngine->makeOrderBy();\r\n\r\n // Downloading the filtered list in CSV\r\n if ($this->_helper->ContextSwitch()->getCurrentContext() == 'csv') {\r\n $oExport = new My_Data_Export_CSV(new My_Data_Export_Source_Adapter_Select($oMySearchEngine->getSelect()));\r\n $this->view->csv = $oExport->make();\r\n $this->view->filename = Phoenix_Data_Export_Csv::buildFileName();\r\n } // Viewing the filtered list in HTML\r\n else {\r\n // Initialize paginator adapter\r\n $oAdapter = new Zend_Paginator_Adapter_DbSelect($oMySearchEngine->getSelect());\r\n\r\n // Pagination management\r\n $oPaginator = new My_Paginator($oAdapter);\r\n $oPaginator->setCurrentPageNumber($this->_getParam('page'));\r\n $oPaginator->setItemCountPerPage(15);\r\n $this->view->paginator = $oPaginator;\r\n }\r\n }", "title": "" }, { "docid": "68a189cc0bf8bc79e0e116676dbdb66b", "score": "0.70201534", "text": "public function actionList()\n {\n $this->assign(\"name\", \"leiyi\");\n\n $this->display('home/page/list.tpl');\n }", "title": "" }, { "docid": "eeebaafb341e5dcfe7cd3e2d7c48f741", "score": "0.70189494", "text": "public function listAction()\n {\n \t$currentPage = 1;\n \t//Check if the user is not on page 1\n \t$i = $this->_request->getQuery('i');\n \tif(!empty($i))\n \t{\n \t\t$currentPage = $this->_request->getQuery('i');\n \t}\n \t\n \t//Create a db object\n \trequire_once \"../application/models/Db/Db_Db.php\";\n \t$db = Db_Db::conn();\n \t\n \t//Create a Zend_db_select object\n \t$sql = new Zend_Db_Select($db);\n \t\n \t//Define the columns to retrieve as well as table.\n \t$columns = array(\"id\",\"artist_name\");\n \t$table = array(\"artists\");\n \t\n \t//SELECT `artists`.`id`, `artists`.`artist_name` FROM `artists`\n\t\t$statement = $sql->from($table, $columns);\n \t\n \t//Initialize the Zend_Paginator\n \t$paginator = Zend_Paginator::factory($statement);\n \t\n \t//Set the properties for the pagination\n \t$paginator->setItemCountPerPage(10);\n \t$paginator->setPageRange(10);\n \t$paginator->setCurrentPageNumber($currentPage);\n \t\n \t$this->view->paginator = $paginator;\n \t\n }", "title": "" }, { "docid": "7c87396141031b5bdb4d7fce1a123f8f", "score": "0.7007564", "text": "public function index()\n {\n $this->listing('0', '', '0');\n }", "title": "" }, { "docid": "20d766db80674b0e4072b2719471b257", "score": "0.69715154", "text": "public function index()\n {\n\n $ourresource = OurResource::all();\n return view('Admin.ourresource.all', compact('ourresource'));\n }", "title": "" }, { "docid": "217e339de79424bf236318e41ddb0695", "score": "0.6958248", "text": "public function index()\n {\n $resources = Resource::getResourceDetails();\n return view('admin.resources.index')->with('resources', $resources);\n }", "title": "" }, { "docid": "84dde6f109c23a0b3b845c0d6e864169", "score": "0.6902794", "text": "public function index()\n\t{\n $config['list'] = VrResources::get()->toArray();\n $config['title'] = trans('app.adminMenuResources');\n $config['no_data'] = trans('app.adminNoData');\n $config['new'] = route('app.resources.create');\n $config['edit'] = 'app.resources.edit';\n $config['delete'] = 'app.resources.destroy';\n return view('admin.adminList', $config);\n\t}", "title": "" }, { "docid": "6e166e624d00d2c763463d2f398dd1ef", "score": "0.6894143", "text": "public function indexAction() {\n $this->pageTitle = $this->_(\"AclResource management\");\n $grid = new AclResourceGrid(\"AclResource\");\n $grid->run();\n $this->view->setVars(array(\n 'grid' => $grid\n ));\n }", "title": "" }, { "docid": "bebf123d6dd48762f8190b1776616d05", "score": "0.6894074", "text": "public function index()\n {\n if (is_null($this->resource)) {\n return response()->json($this->service->paginate());\n } else {\n return $this->resource::collection($this->service->paginate());\n }\n }", "title": "" }, { "docid": "97968d8873a94786d3e40145696ee2bd", "score": "0.68932414", "text": "public function index()\n {\n return Resources::collection(Model::orderBy('id', 'desc')->paginate());\n }", "title": "" }, { "docid": "5dc08bdec3bdf1e8261a81891fdb5f4e", "score": "0.6873757", "text": "public function index()\n {\n $arrObjResource = Resource::latest()->paginate(5);\n return view('resource.index', compact('arrObjResource'))\n ->with('i', (request()->input('page', 1) - 1) * 5);\n }", "title": "" }, { "docid": "0e8ad7256c7bbd8504ebf3d782bb3209", "score": "0.687015", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $resources = $em->getRepository('AppBundle:Resource')->findBy(array('channel' => $this->getUser()->getActiveChannel()));\n\n return $this->render('AppBundle:Resource:index.html.twig', array(\n 'resources' => $resources,\n 'channel' => $this->getUser()->getActiveChannel(),\n ));\n }", "title": "" }, { "docid": "e76df9bb5e40cc75acb3fb5e4b084b82", "score": "0.68480945", "text": "public function listing() {\n $title = \"Admin - Listing\";\n $this->set(compact('title'));\n\n $conditions = array('delete_status' => NotDeleted);\n if ($this->request->is('post') && !empty($this->request->data['search'])) {\n $conditions['OR']['first_name LIKE'] = '%' . $this->request->data['search'] . '%';\n $conditions['OR']['last_name LIKE'] = '%' . $this->request->data['search'] . '%';\n $conditions['OR']['email LIKE'] = '%' . $this->request->data['search'] . '%';\n }\n\n $this->paginate = [\n 'limit' => PAGING_SIZE,\n 'conditions' => $conditions,\n ];\n $Results = $this->paginate('Admins');\n $this->set(compact('Results'));\n\n if ($this->request->is('ajax')) {\n $this->viewBuilder()->layout('ajax');\n $this->viewBuilder()->templatePath('Element' . DS . 'admin' . DS . 'admin');\n $this->render('index');\n }\n }", "title": "" }, { "docid": "6b9f4551cb0d7103440e15f4ff2bc102", "score": "0.6841973", "text": "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->_actividadModel->getActividad();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "title": "" }, { "docid": "95b579529f8b40d1b2b6ae580a9b3250", "score": "0.6834807", "text": "public function index()\n {\n $this->params['page'] = empty($this->params['page']) ? 1 : $this->params['page'];\n $collection = $this->model->paginate($this->params);\n $this->set('objects', $collection['objects']);\n $this->set_pagination($collection);\n }", "title": "" }, { "docid": "4b8e52b6fdf81afdda958487f24d56b3", "score": "0.68284565", "text": "public function listAction()\n {\n $catalog = $this->container->get('catalog');\n\n $book_list = $catalog->listBooks();\n\n return [\n 'list' => $book_list,\n ];\n }", "title": "" }, { "docid": "358b82626374a39ca1c5cb87e1d94243", "score": "0.68270004", "text": "public function crane_list() {\n\t\t\t$this->setAction('index');\t\n\t\t\t$this->render('crane_list');\n\t}", "title": "" }, { "docid": "3824dabd41509647ac9d2bc02a329701", "score": "0.68262446", "text": "public function indexAction()\n {\n $config = $this->getConfiguration();\n\n $listRenderer = $this->getListRenderer();\n $sort = $this->getSort();\n $listRenderer->setSort($sort);\n $criteria = $this->getFilterCriteria();\n\n $pager = $this->getPager();\n $pager->setMaxRows($config->getListOption('max_page_rows'));\n $pager->setPage($this->getCurrentPage());\n $pager->setQueryBuilder(\n $this->getModelManager()->buildQuery(\n $criteria,\n $sort\n )\n );\n\n $criteria = $this->getModelManager()->mergeFilterCriteriaObjects($criteria);\n $filterForm = $this->getFilterRenderer()->getForm($criteria);\n\n return $this->container->get('templating')\n ->renderResponse($listRenderer->getTemplate(), array(\n 'renderer' => $listRenderer,\n 'filter' => $this->getFilterRenderer(),\n 'pager' => $pager,\n 'csrf' => $this->container->get('form.csrf_provider')->generateCsrfToken('list'),\n 'filtered' => count($criteria),\n 'form' => $filterForm->createView()\n ));\n }", "title": "" }, { "docid": "cf4f6462e1cc3025d88860aa2c4ba62f", "score": "0.6823859", "text": "function index()\n\t{\n\t\t$args = func_get_args();\n\t\tcall_user_func_array(array($this, 'listing'), $args);\n\t}", "title": "" }, { "docid": "01d58c7ca6fc90f9a714a9eb1332496e", "score": "0.68216413", "text": "public function index()\n\t{\n\t\t$resourceLikes = $this->resourceLikeRepository->paginate(10);\n\n\t\treturn view('resourceLikes.index')\n\t\t\t->with('resourceLikes', $resourceLikes);\n\t}", "title": "" }, { "docid": "550d19f420a94197568709e17d512612", "score": "0.6817977", "text": "public function listTask()\n\t{\n\t\t// Incoming directory (this should be a path built from a resource ID and its creation year/month)\n\t\t$listdir = Request::getString('listdir', '');\n\t\tif (!$listdir)\n\t\t{\n\t\t\techo '<p class=\"error\">' . Lang::txt('COM_RESOURCES_ERROR_NO_LISTDIR') . '</p>';\n\t\t\treturn;\n\t\t}\n\n\t\t// Incoming sub-directory\n\t\t$subdir = Request::getString('subdir', '');\n\n\t\t// Build the path\n\t\t$path = Utilities::buildUploadPath($listdir, $subdir);\n\n\t\t$folders = array();\n\t\t$docs = array();\n\n\t\tif (is_dir($path))\n\t\t{\n\t\t\t// Loop through all files and separate them into arrays of images, folders, and other\n\t\t\t$dirIterator = new \\DirectoryIterator($path);\n\n\t\t\tforeach ($dirIterator as $file)\n\t\t\t{\n\t\t\t\tif ($file->isDot())\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$name = $file->getFilename();\n\n\t\t\t\tif ($file->isDir())\n\t\t\t\t{\n\t\t\t\t\t$folders[$path . DS . $name] = $name;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ($file->isFile())\n\t\t\t\t{\n\t\t\t\t\tif (in_array(strtolower($name), array('cvs', '.svn', '.git', '.ds_store')))\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t$docs[$path . DS . $name] = $name;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tksort($folders);\n\t\t\tksort($docs);\n\t\t}\n\n\t\t$this->view\n\t\t\t->set('listdir', $listdir)\n\t\t\t->set('subdir', $subdir)\n\t\t\t->set('docs', $docs)\n\t\t\t->set('folders', $folders)\n\t\t\t->set('config', $this->config)\n\t\t\t->setErrors($this->getErrors())\n\t\t\t->setLayout('list')\n\t\t\t->display();\n\t}", "title": "" }, { "docid": "78f3ca79946467b9bfd80223ec5ba614", "score": "0.68092096", "text": "public function index()\n {\n return PlayResource::collection(Play::paginate());\n }", "title": "" }, { "docid": "f1c7ec0399bbc0a26f289a612459ed88", "score": "0.67956036", "text": "function index()\r\n\t{\r\n $this->showlist();\r\n\t}", "title": "" }, { "docid": "31a61aadfd15cf04075c88c5088f8860", "score": "0.6790091", "text": "public function listing(Request $request)\n {\n //validations and access control\n $this->validationAndAccess(__FUNCTION__, $request);\n\n //Start query builder. You can start limiting your results here, for example:\n $scope = $this->nested_parameters;\n if(empty($scope)){\n $query = '';\n }else{\n $query = $this->model->select($this->model->availableTableFields());\n foreach($scope as $field => $value){\n $query = (!empty($value)) ? $query->where($field,'=',$value) : $query;\n }\n }\n\n //Get resources list using our query builder function, just to pass the tablable model, the json request from the table view and optionally, a initial query object.\n $query_results = VibrantTools::getListFromModel($this->model, $request, $this->force_id_request, $query);\n\n return response()->json($query_results);\n }", "title": "" }, { "docid": "118caca12a46f44cf44d066cf46e4baf", "score": "0.67682076", "text": "public function index()\n {\n return ItemResource::collection(Items::orderBy('id', 'desc')->paginate(30));\n }", "title": "" }, { "docid": "50b94f1d44a80883647d7fc440645f79", "score": "0.6757619", "text": "public function listAction()\n {\n $contents = $this->entityManager->getRepository('Studit\\H5PBundle\\Entity\\Content')->findAll();\n return $this->render('@StuditH5P/list.html.twig', ['contents' => $contents]);\n }", "title": "" }, { "docid": "6cb967692b4f77fb138723c118707e5a", "score": "0.67552984", "text": "public function listAction()\n\t{\n\t\t$pages = Model_Query_Page::getTree(Model_Query_Page::TREE_TYPE_FLAT);\n\t\t\n\t\t$this->view->pages = $pages;\n\t}", "title": "" }, { "docid": "a62c8fb3c6a39b17143e4f99a44215eb", "score": "0.6743237", "text": "public function index()\n {\n // Get Products\n $products = Product::paginate(15);\n\n // Return collection of products as a resource\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "17f3cd4988f20f8325c593af544287ff", "score": "0.67251754", "text": "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "title": "" }, { "docid": "24af10ce4b6b3777185b0f14f381d2ed", "score": "0.6722118", "text": "public function index() {\n $resources = $this->resourceMapper->findAll();\n\n // put the array containing Resource object to the view\n $this->view->setVariable(\"resources\", $resources);\n if (isset($this->currentUser) && $this->currentUser->getUser_type() == usertype::Administrator){\n $this->view->render(\"resources\", \"index\");\n }\n }", "title": "" }, { "docid": "1d448703f5190066628ad9862a2d03f8", "score": "0.67192703", "text": "public function indexAction() {\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n\n //GET VIEWER\n $viewer = Engine_Api::_()->user()->getViewer();\n\t\t$viewer_id = $viewer->getIdentity();\n\n //GET LISTING SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n \n\t\t//GET LEVEL SETTING\n $this->view->allowed_upload_photo = Engine_Api::_()->authorization()->isAllowed($list, $viewer, 'photo');\n \n //GET PAGINATOR\n $this->view->album = $album = $list->getSingletonAlbum();\n $this->view->paginator = $paginator = $album->getCollectiblesPaginator();\n $this->view->total_images = $paginator->getTotalItemCount();\n $paginator->setCurrentPageNumber($this->_getParam('page'));\n $paginator->setItemCountPerPage(20);\n\n if (empty($this->view->allowed_upload_photo) && empty($this->view->total_images)) {\n return $this->setNoRender();\n }\n \n //ADD COUNT TO TITLE\n if ($this->_getParam('titleCount', false) && $paginator->getTotalItemCount() > 0) {\n $this->_childCount = $paginator->getTotalItemCount();\n }\n }", "title": "" }, { "docid": "871969a5830c5824710f35f92b284e14", "score": "0.67153114", "text": "public function list_action()\n {\n $productRp = new ProductRepository;\n\n $pageTitle = 'crud';\n $crudLinkStyle = 'current_page';\n\n $cssStyleRule = $this->buildStyleRule();\n $backgroundColor = $this->getBackgroundColor();\n\n $isLoggedInAsAdmin = $this->isAdminUser();\n\n // 2. get all products\n $products = $productRp->get_all_products();\n\n $isLoggedIn = $this->is_logged_in_from_session();\n $user_name = $this->username_from_session();\n\n\n require_once __DIR__ . '/../template/admin_crud.php';\n }", "title": "" }, { "docid": "114a63c0832877abfdcd8697254fa24d", "score": "0.67119807", "text": "public function list()\n {\n // On va vérifier les authorisations : Admin only\n $this->checkAuthorisation(['admin']);\n\n // On appelle la méthode show() de l'objet courant\n // En argument, on fournit le fichier de Vue\n // Par convention, chaque fichier de vue sera dans un sous-dossier du nom du Controller\n\n $products = Product::findAll();\n\n $dataToDisplay = [\n 'products' => $products\n ];\n\n // On va appeler (require) le fichier views/category/list.tpl.php\n $this->show('product/list', $dataToDisplay);\n }", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.6708785", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.6708785", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "86eb524e99a31621e46aa2e8718e61f6", "score": "0.67032564", "text": "public function index()\n {\n $items = Item::orderBy('id', 'DESC')->paginate(10);\n\n return ItemResource::collection($items);\n }", "title": "" }, { "docid": "d79dbba2d57614ef830362a19c63a970", "score": "0.66856146", "text": "public function index()\n {\n return $this->view('list', [\n 'elements' => $this->service->index()\n ]);\n }", "title": "" }, { "docid": "db8a0696586c7515873c89a6a0d1cb86", "score": "0.6679388", "text": "public function actionIndex()\n {\n $array = MyList::getAll();\n\n return $this->render('index', ['model' => $array]);\n }", "title": "" }, { "docid": "f87e4c930a716211a968b3d9cc7f28cb", "score": "0.6678533", "text": "public function listAction()\n {\n $data = array(\n 'red',\n 'green',\n 'blue',\n 'yellow'\n );\n\n $request = $this->getRequest();\n $acceptHeader = $request->getHeader('Accept');\n\n $this->view->assign(\n array(\n 'data' => $data\n )\n );\n }", "title": "" }, { "docid": "0fd2e15257bfa9204ec9573726987c66", "score": "0.66758674", "text": "public function index()\n {\n $menu = Menu::paginate(10);\n\n return MenuResource::collection($menu);\n }", "title": "" }, { "docid": "daba699beaeef91359ed7b10313414c0", "score": "0.6675674", "text": "public function index()\n {\n $this->checkPermission(\"admin_permission_management\");\n $items = $this->service->getAll();\n\n $items = ApiResource::collection($items);\n\n return $this->respondWithSuccess($items);\n }", "title": "" }, { "docid": "93802b97c6f44ae5e366b70deec744b9", "score": "0.6660186", "text": "public function show()\n {\n $results = $this->run('show');\n }", "title": "" }, { "docid": "5278e85997fa12c693ce5b7a9a5f2e24", "score": "0.6659587", "text": "public function index() {\n\t\treturn ClientResource::collection(Client::paginate(15));\n\t}", "title": "" }, { "docid": "601280f6c7a8fe1284080c1c22a3e447", "score": "0.66556156", "text": "public function index()\n {\n // Get Accounts\n $accounts = Account::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of Accounts as a resource\n return AccountResource::collection($accounts);\n }", "title": "" }, { "docid": "5d3102f6a725b79d77b0e3bc731ae984", "score": "0.66531765", "text": "public function index()\n {\n $polls = Poll::latest()->paginate(16);\n return PollResource::collection($polls);\n }", "title": "" }, { "docid": "4c33127363526600cc1da25d18f917b1", "score": "0.66473025", "text": "public function index()\n {\n $entries = Entry::all();\n return view('list', compact('entries'));\n }", "title": "" }, { "docid": "e2eacd814cad9b8205ce83c08f3b5e18", "score": "0.6642945", "text": "public function showAllAction()\n {\n $title = \"Product overview\";\n $page = $this->app->page;\n $db = $this->app->db;\n\n $this->connection();\n $sql = \"SELECT * FROM product;\";\n $res = $db->executeFetchAll($sql);\n\n $data = [\n \"res\" => $res,\n \"check\" => \"check\"\n ];\n\n // $page->add(\"flash\", [], \"hej\");\n $page->add(\"products/header\");\n $page->add(\"products/show-all\", $data);\n\n return $page->render([\n \"title\" => $title,\n ]);\n }", "title": "" }, { "docid": "7ba8d3b39da88e11faeb12313b1810c2", "score": "0.66420376", "text": "public function index()\n {\n return view('pages.listing-list', [ 'listings' => Listing::all() ]);\n }", "title": "" }, { "docid": "2e266895b57f5ca532a4517799527c81", "score": "0.663746", "text": "public function index()\n {\n $this->authorize('viewAny', Article::class);\n return ArticleResource::collection(Article::paginate(10));\n }", "title": "" }, { "docid": "c7312e7e8966df50b49658cf582ce6ec", "score": "0.6634986", "text": "public function index()\n {\n return ScreenResource::collection(Screen::orderby('created_at','desc')->paginate(10));\n }", "title": "" }, { "docid": "e3549202853588a65782bc96028199ed", "score": "0.6634244", "text": "public function indexAction()\n {\n $page = isset($_GET['page']) ? (int)$_GET['page'] : 1;\n $perpage = 9;\n $count = R::count('product');\n $pagination = new Pagination($page, $perpage, $count);\n $start = $pagination->getStart();\n $products = R::getAll(\"SELECT product.*, category.title AS cat FROM product JOIN category ON category.id = product.category_id ORDER BY product.title LIMIT $start, $perpage\");\n $this->setMeta('Product Liste');\n $this->set(compact('products', 'pagination', 'count'));\n }", "title": "" }, { "docid": "a7737316f2150c9517aa85bb9cd5c182", "score": "0.6619814", "text": "public function actionList()\n {\n $this->render(\n 'list',\n array(\n 'modules' => ($modules = $this->getInstalledModules()) ? $modules : array(),\n )\n );\n }", "title": "" }, { "docid": "fe5cbdcbc1d4a099ac316f47b6bde600", "score": "0.66063577", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n }", "title": "" }, { "docid": "48b9c834ddf22a0e1e54ba121573b35d", "score": "0.659257", "text": "public function index()\n {\n $items= Item::all();\n return ItemResource::collection($items);\n }", "title": "" }, { "docid": "ca2a7c14d5251722cbb44ad0cf858243", "score": "0.65878767", "text": "public function overviewAction()\n {\n return $this->getProxy(self::PROXY_CLASS)->findAll();\n }", "title": "" }, { "docid": "904c604bfcee5f1df6ea56185ca68d5b", "score": "0.658743", "text": "public function index()\n {\n //GET all the ARTICLES\n $articles = Article::paginate(15);//display 15 records per page\n\n //return colletion of articles\n return ArticleResource::collection($articles);\n\n }", "title": "" }, { "docid": "1cb3c7ae8b44dd6649599a0c6b21c3c7", "score": "0.65849286", "text": "public function index()\n\t{\n\t\t$data = [\n\t\t\t'pageTitle' => $this->getResourcePluralName(),\n\t\t\t'allItems' => $this->repo->search($this->getIndexFilter()),\n\t\t\t'isDestroyingEntityAllowed' => $this->isDestroyAllowed(),\n\t\t\t'canCreateEntities' => $this->canCreateEntities(),\n\t\t\t'canEditEntities' => $this->canEditEntities(),\n\t\t];\n\n\t\t$viewName = $this->getIndexViewName();\n\n\t\treturn view($viewName, $data);\n\t}", "title": "" }, { "docid": "4e0e77be39529387e26200c96e69287c", "score": "0.6584902", "text": "public function index()\n {\n return $this->respondResource($this->courseTransformer->transformCollection($this->model->all()));\n }", "title": "" }, { "docid": "918a60c91683ae2630d02bdb5af36fd8", "score": "0.658451", "text": "public function index()\n\t{\n\t\t// if view_table_permission is false, abort\n\t\tif (isset($this->crud['view_table_permission']) && !$this->crud['view_table_permission']) {\n\t\t\tabort(403, 'Not allowed.');\n\t\t}\n\n\t\t// get all results for that entity\n\t\t$model = $this->crud['model'];\n\t\t$this->data['entries'] = $model::all();\n\n\t\t$this->_prepare_columns(); // checks that the columns are defined and makes sure the response is proper\n\n\t\t$this->data['crud'] = $this->crud;\n\n\t\t// load the view from /resources/views/vendor/dick/crud/ if it exists, otherwise load the one in the package\n\t\tif (view()->exists('vendor.dick.crud.list'))\n\t\t{\n\t\t\treturn view('vendor.dick.crud.list', $this->data);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn view('crud::list', $this->data);\n\t\t}\n\t}", "title": "" }, { "docid": "679aeb0a886968964597db4d52db9f05", "score": "0.6575637", "text": "public function action_list() {\n\t\tKohana::$log->add(Kohana::DEBUG,'Executing Controller_Admin_Photo::action_list');\n\n\t\t// Build request\n\t\t$query = DB::select();\n\n\t\tif(isset($_POST['terms']))\n\t\t{\n\t\t\t$query->where('title','like',\"%\".$_POST['terms'].\"%\");\n\t\t\t$query->or_where('subtitle','like',\"%\".$_POST['terms'].\"%\");\n\t\t}\n\n\t\t$photos = Sprig::factory('photo')->load($query, FALSE);\n\n\n\t\tif(Request::$is_ajax)\n\t\t{\n\t\t\t// return a json encoded HTML table\n $this->request->response = json_encode(\n\t\t\t\tView::factory('admin/photo/list_tbody')\n\t\t\t\t\t->bind('photos', $photos)\n ->render()\n );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// return the full page\n\t\t\t$this->template->content = View::factory('admin/photo/list')\n\t\t\t\t->set('tbody', View::factory('admin/photo/list_tbody')\n\t\t\t\t\t->bind('photos', $photos)\n\t\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "e99878c1a0eff5bcf7bf12ed5c8ef9d5", "score": "0.6569159", "text": "public function show()\n {\n return view('listing::show');\n }", "title": "" }, { "docid": "2a58e9f56c195880d92e6beb689abbba", "score": "0.6568871", "text": "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t\n\t\t$perpage = $this->perpage;\n\t\t$search = array();\n\t\t\n\t\tlist($total, $data) = Cut_Service_Type::getList($page, $perpage, $search);\n\t\t$count = Cut_Service_Store::getCountByType();\n\t\t$this->assign('data', $data);\n\t\t$this->assign('count', $count);\n\t\t$url = $this->actions['listUrl'] .'/?'. http_build_query($search) . '&';\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $url));\n\t\t$this->assign('search', $search);\n\t\t$this->cookieParams();\n\t}", "title": "" }, { "docid": "ec4c68627da9cf6d0e66bd08ee79a1dc", "score": "0.65679175", "text": "public function index()\n {\n // Get articles\n $phonebook = Phonebook::all();\n // $phonebook = Phonebook::orderBy('created_at', 'desc')->paginate(10);\n\n // Return collection of articles as a resource\n return PhonebookResource::collection($phonebook);\n }", "title": "" }, { "docid": "91bd64ec31d39c68673ba29f7d9f8854", "score": "0.65645313", "text": "public function index()\n {\n $books = Book::all();\n\n return BookResource::collection($books);\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.65630996", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "fbe5edfb0d98ba0fd6a7b19c41578f77", "score": "0.6558744", "text": "public function index()\n {\n try{\n $records = $this->recordRepository->all();\n return RecordResource::collection($records);\n }catch(Exception $ex){\n return (new RecordResource(null))->additional([\"success\" => false, 'message' => $ex->getMessage()]);\n }\n }", "title": "" }, { "docid": "3880843e6dad72ba6c5735793fc1ed0b", "score": "0.65569484", "text": "public function index()\n {\n $query = Person::getList(request('filter', ''))\n ->orderBy(request('order_by','s_FullLegalName'),request('order','ASC'));\n \n return PersonResource::collection($query->paginate(request('per_page', 100)));\n }", "title": "" }, { "docid": "d6b8267e53f8fa9ab6b806d4fbc412ee", "score": "0.655646", "text": "public function indexAction()\n {\n $total = 0;\n $records = $this->selectRecords($total);\n\n $this->apiOutRecords($records, array('_total' => $total));\n }", "title": "" }, { "docid": "04cfd6b456f88347b94d80eedaf2f138", "score": "0.65467566", "text": "public function index()\n {\n return new FormatResourceCollection(Format::paginate(12));\n }", "title": "" }, { "docid": "9c04a592d034f52c23e6d6ecf983a3ae", "score": "0.6545487", "text": "public function index()\n {\n return EmployeeResource::collection(Employee::query()->paginate());\n }", "title": "" }, { "docid": "4b7799b0d4a4b471dbc995e613462306", "score": "0.6540035", "text": "public function listAction()\n {\n return new Response(\n json_encode([\n [\n 'id' => 1,\n 'title' => 'First Post on Vox',\n 'author' => 'Mario Rossi',\n 'author_id' => 1,\n 'excerpt' => \"Here we are! Finally this is my first post on Vox and I am so happy that...\",\n 'content' => \"Here we are! Finally this is my first post on Vox and I am so happy that this is my lorem ipsum bla bla bla bla!\",\n 'date' => \"08/01/2015\"\n ],\n [\n 'id' => 2,\n 'title' => 'And yes, this is my second post!',\n 'author' => 'Lukas Schneider',\n 'author_id' => 2,\n 'excerpt' => \"Well this is already my second post and so you already know that...\",\n 'content' => \"Well this is already my second post and so you already know that, in terms of being my second post,\n this is exactly what is says it is: my second, incredibly well written and fantastimagically published post!\",\n 'date' => \"09/02/2015\"\n ]\n ]),\n 200,\n 'application/json'\n );\n }", "title": "" }, { "docid": "ab27904c6696fc1d0abf6bfaac7bde7e", "score": "0.65393996", "text": "public function listAction()\n {\t\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepEmp = $em->getRepository('BoAdminBundle:SupEmployee');\n\t\t$nb_tc = $oRepEmp->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$supemployees = $em->getRepository('BoAdminBundle:SupEmployee')->findBy(array(),array('firstname' => 'asc'),$nb_cpp,$offset);\n return $this->render('supemployee/index.html.twig', array(\n 'supemployees' => $supemployees,\n\t\t\t'types'=>$em->getRepository('BoAdminBundle:Contracts')->getContractType(),\n\t\t\t'languages'=>$em->getRepository('BoAdminBundle:Language')->getAll(),\n\t\t\t'statuss'=>$em->getRepository('BoAdminBundle:Employee')->getStatusEmployee(),\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'message'=> $this->getSessionMessage(),\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"archives\",\n\t\t\t'sm'=>\"supemployee\",\n ));\n }", "title": "" }, { "docid": "7bf076a0c3e59596e2f2d0bcbed69f85", "score": "0.6537932", "text": "public function index()\n {\n $artigos = Artigo::paginate(15);\n return ArtigoResource::collection($artigos);\n }", "title": "" }, { "docid": "f02310ea34b1d707bc2f4d714e4c27f4", "score": "0.6536302", "text": "public function index()\n {\n return view($this->template.'.list.index');\n }", "title": "" }, { "docid": "f852b02ada9624be17ccc6c0b233bca4", "score": "0.65281487", "text": "public function list()\n {\n }", "title": "" }, { "docid": "37171947214224489a9ea88290a99d00", "score": "0.6524211", "text": "public function index()\n {\n return view(self::$prefixView.'list');\n }", "title": "" }, { "docid": "37171947214224489a9ea88290a99d00", "score": "0.6524211", "text": "public function index()\n {\n return view(self::$prefixView.'list');\n }", "title": "" }, { "docid": "151cb6ff960217da12cef7baa33178ed", "score": "0.65242016", "text": "public function listAction()\n {\n if ((!$this->auth->hasIdentity()) || ($this->session->type != '1'))\n $this->_helper->redirector('index', 'index');\n\n $this->view->headTitle(\"Noticias\");\n $this->view->headLink()->appendStylesheet($this->view->baseUrl().'/css/list.css');\n\n $tbNews = new TbNews();\n $this->view->news = $tbNews->select()->query()->fetchAll();\n }", "title": "" }, { "docid": "b1dec5f0dac45e2b14cc0f57d1289acb", "score": "0.6520758", "text": "public function index()\n {\n //\n\t\t\t\t// $resources = Resource::all();\n\t\t\t\t// $resources = $resources->sortByDesc('creation_date');\n\t\t\t\t// return response()->json($resources->values()->all());\n\n\t\t\t\treturn response()->json(Resource::orderBy('creation_date', 'desc')->get());\n }", "title": "" }, { "docid": "e88169ebd124db7bccec6b3cfb0167be", "score": "0.65185016", "text": "public function index()\n {\n $albums = Album::orderBy('date', 'desc')->paginate(20);\n\n\n return AlbumResource::collection($albums);\n }", "title": "" }, { "docid": "fbf72fd4f1e2e3a08a1398a646fce575", "score": "0.6510457", "text": "public function index()\n\t{\n\t\t$shows = $this->shows->all();\n\t\n\t\treturn $this->apiResponse('success', $shows->toArray());\n\t}", "title": "" }, { "docid": "1860cb7aec35aa79a7186d6bd7c6a7d4", "score": "0.6500537", "text": "public function index()\n {\n //\n return view('backend.admin.catalogs.index')\n ->with(['catalogs' => Catalog::paginate(10)]);\n }", "title": "" }, { "docid": "3bcd0d0bc609b30833a686c0ca043c6e", "score": "0.6499314", "text": "public function index()\n {\n $links = Link::all();\n\n return LinkResource::collection($links);\n }", "title": "" }, { "docid": "66db74bb7d42b9897dbcbf88ebabf0ca", "score": "0.64984006", "text": "public function index()\n {\n $request = request();\n if($request->query->has('page_size')){\n $this->setPageSize(request()->query->getInt('page_size', $this->page_size));\n }\n\n $items = $this->indexService->getItems($this->pageSize());\n\n return view($this->templateIndex, [\n 'items' => $items,\n 'title' => $this->getTitle(),\n 'controller' => $this->getController(),\n 'fields' => $this->listFields(),\n 'sortable' => $this->isSortable\n ]);\n }", "title": "" }, { "docid": "bc53be210c897827bfafe166eceeb35a", "score": "0.6490407", "text": "public function index()\n {\n $employees = $this->paginate($this->Employees);\n\n $this->set(compact('employees'));\n $this->set('_serialize', ['employees']);\n }", "title": "" }, { "docid": "65d1d46b6cab2b6d3d5320b59de21946", "score": "0.64824736", "text": "public function index()\n {\n //get some articles\n $posts = Post::paginate(15);\n //return the collection as resource\n return PostResource :: collection($posts);\n }", "title": "" }, { "docid": "43a505c360befd38cd453143a05a36e2", "score": "0.6481628", "text": "public function index()\n {\n $statuses = $this->statuses->paginate(10);\n\n return view('backend.statuses.index',compact('statuses'));\n }", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.0", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" } ]
[ { "docid": "2aaf2ecaef4fe756e441fbe5133d649b", "score": "0.77659076", "text": "public function create()\n {\n return view('resource::create');\n }", "title": "" }, { "docid": "03bfd9797acc7936efbf149267039e5d", "score": "0.77260846", "text": "public function create()\n {\n return view('resource.create');\n }", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "09a06518682f649f50825ae03a5f02c5", "score": "0.74312615", "text": "public function create(Resource $resource)\n {\n \n return view('resources.create', compact('resource'));\n }", "title": "" }, { "docid": "0040811f91da2137388f5b25ff0b7003", "score": "0.74040693", "text": "public function create()\n {\n // we don't need the create method which will show a frontend of forms\n }", "title": "" }, { "docid": "eefd3a34279d87bd94753b0beae69b0d", "score": "0.7391348", "text": "public function create()\n {\n return view('humanresources::create');\n }", "title": "" }, { "docid": "59acf613824f0c3b37aa55dc50605250", "score": "0.7295752", "text": "public function create()\n {\n // Get the form options\n $options = method_exists($this, 'formOptions') ? $this->formOptions() : [];\n\n // Render create view\n return $this->content('create', $options);\n }", "title": "" }, { "docid": "9332c37244dbc51a6ec587579d9cd246", "score": "0.72882813", "text": "public function create()\n {\n //\n return view('forms.create');\n }", "title": "" }, { "docid": "97f8d4d6f5ca725cf3e66f545b385fc5", "score": "0.7287024", "text": "public function create()\n {\n return view('formation.add-form');\n }", "title": "" }, { "docid": "43b99da6b88bf413a5a649ba3a67015e", "score": "0.72783977", "text": "public function create()\n\t{\n\t\treturn view($this->views . '.form')->with('obj', $this->model);\n\t}", "title": "" }, { "docid": "43b99da6b88bf413a5a649ba3a67015e", "score": "0.72783977", "text": "public function create()\n\t{\n\t\treturn view($this->views . '.form')->with('obj', $this->model);\n\t}", "title": "" }, { "docid": "241815ede3de07346cdc5dd5223c3297", "score": "0.7277652", "text": "public function create()\n {\n return view(\"pengeluaran.form\");\n }", "title": "" }, { "docid": "3068f5b3c0dfff179b7c9ecffe939b5b", "score": "0.72379696", "text": "public function create()\n {\n $countries = Country::all();\n $roles = Role::all();\n $pageTitle = trans(config('dashboard.trans_file').'add_new');\n $submitFormRoute = route('admins.store');\n $submitFormMethod = 'post';\n return view(config('dashboard.resource_folder').$this->controllerResource.'form', compact('countries', 'roles', 'pageTitle', 'submitFormRoute', 'submitFormMethod'));\n }", "title": "" }, { "docid": "38ecc75a4d6989a8b4f4e8399b531681", "score": "0.7215714", "text": "public function create()\n {\n //\n return view('admin.forms.create');\n }", "title": "" }, { "docid": "2ba4890e70df9cc5460b64bc519b7725", "score": "0.7213451", "text": "public function actionCreate() {\n $model = new Form();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->form_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "53f6a6cabd482a9ba582ca823a9212fc", "score": "0.72079307", "text": "public function actionCreate()\n {\n $model=new Resources;\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if(isset($_POST['Resources']))\n {\n $model->attributes=$_POST['Resources'];\n $model->created_at = date(\"Y-m-d H:i:s\");\n $model->modified_at = date(\"Y-m-d H:i:s\");\n if($model->is_available == \"on\"){\n $model->is_available = 1;\n }\n else{\n $model->is_available = 0;\n }\n if($model->save())\n $this->redirect(array('view','id'=>$model->resource_id));\n }\n\n $this->render('create',array(\n 'model'=>$model,\n 'from' => \"create\",\n ));\n }", "title": "" }, { "docid": "ec6c48e2a6c77e52e3dd220e9a42790d", "score": "0.72031635", "text": "public function create()\n {\n return view('RequestForms.requestforms.create');\n }", "title": "" }, { "docid": "b85c23612f97bf86113f4c24770e2c90", "score": "0.71800745", "text": "public function create()\n {\n return view('be/forms/add');\n }", "title": "" }, { "docid": "9b078c37b7def3d0aa0936448ea591e4", "score": "0.7176178", "text": "public function form()\n {\n return view('create');\n }", "title": "" }, { "docid": "abcdd6ee800f478cd20431244af3bd42", "score": "0.71643156", "text": "public function newAction()\n {\n $this->view->form = new ClientForm(null, array('edit' => true));\n }", "title": "" }, { "docid": "333b7adf43052fb5d5c8718573f770bd", "score": "0.71619326", "text": "public function create()\r\n {\r\n return view('ask::form');\r\n }", "title": "" }, { "docid": "83a47d90318500ad98cc612ab26fc702", "score": "0.71607125", "text": "public function create(){\n $resourceStatuses = ResourceStatus::orderBy('name', 'ASC')->get();\n $resourceTypes = ResourceType::orderBy('name', 'ASC')->get();\n $dependencies = Dependency::orderBy('name', 'ASC')->get();\n $resourceCategories = ResourceCategory::orderBy('name', 'ASC')->get();\n $physicalStates = PhysicalState::orderBy('name', 'ASC')->get();\n $spaces = Space::orderBy('name', 'ASC')->get();\n\n return view('admin.resources.create_edit')\n ->with('spaces', $spaces)\n ->with('resourceStatuses', $resourceStatuses)\n ->with('resourceTypes', $resourceTypes)\n ->with('dependencies', $dependencies)\n ->with('resourceCategories', $resourceCategories)\n ->with('physicalStates', $physicalStates)\n ->with('title_page', 'Crear nuevo recurso')\n ->with('menu_item', $this->menu_item);\n }", "title": "" }, { "docid": "7f194de3c5c17bb40860b2954fe66227", "score": "0.71606153", "text": "public function create()\n {\n return view('Application_Form/create');\n }", "title": "" }, { "docid": "cdccf0772168a4c3198ad8229762752f", "score": "0.7155322", "text": "public function create()\n {\n return $this->view('form');\n }", "title": "" }, { "docid": "dda7015eff0593458f7e9daeb92389f7", "score": "0.71473134", "text": "public function create()\r\n {\r\n Breadcrumb::title(trans('admin_partner.create'));\r\n return view('admin.partner.create_edit');\r\n }", "title": "" }, { "docid": "b4766fe7cffd9556005a702266efce82", "score": "0.7135474", "text": "public function create()\n {\n return view('luot-choi.form');\n }", "title": "" }, { "docid": "53163536d5d151380894ed516baf152c", "score": "0.71345985", "text": "public function actionCreate() {\n $this->render('create');\n }", "title": "" }, { "docid": "97209db276d73dfc71ffc10ef4a4037f", "score": "0.71315765", "text": "public function create()\n {\n return view('book.form');\n }", "title": "" }, { "docid": "91f24bb86cd15eed211f58196f1d86ae", "score": "0.71308476", "text": "public function create()\n {\n return view('backend.Professor.add');\n }", "title": "" }, { "docid": "c571604fd51a96c35378cece2d31fca9", "score": "0.712255", "text": "public function create()\n {\n return view('component.form');\n }", "title": "" }, { "docid": "d97704263c26734e129cdf5323ff60bc", "score": "0.7120813", "text": "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCResourcePersonBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "title": "" }, { "docid": "11be4c91a1fe4a200ba70320116d65bd", "score": "0.71170485", "text": "public function newAction()\n {\n $entity = new Form();\n $form = $this->createCreateForm($entity);\n\n return $this->render('FormBundle:Form:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "e864dc2fb3b7132697f36b0ed311645c", "score": "0.7115181", "text": "public function create()\n {\n //\n\n $modules = Module::getFormModulesArray();\n\n return view('resources.create', compact('modules'));\n }", "title": "" }, { "docid": "5d55890bc62628c68b42c85ea77e34ab", "score": "0.7111818", "text": "public function create()\n {\n //return the form\n return view('addBrand');\n }", "title": "" }, { "docid": "250053e797e8b6427e70e0bf8a821f82", "score": "0.7103223", "text": "public function create()\n {\n return view('singularForm');\n }", "title": "" }, { "docid": "4ae755f5cddde08f9f196daabb710be5", "score": "0.7102469", "text": "public function create()\n {\n return view('rest.create');\n }", "title": "" }, { "docid": "730158469e1bfb64d8c0b14e02113fed", "score": "0.7092879", "text": "public function create()\n { \n return $this->showForm();\n }", "title": "" }, { "docid": "d1aa4707a9c6ebf5c8103249dbc1a2a3", "score": "0.7087244", "text": "public function create()\n {\n $view = 'create';\n\n $active = $this->active;\n $word = $this->create_word;\n $model = null;\n $select = null;\n $columns = null;\n $actions = null;\n $item = null;\n\n return view('admin.crud.form', compact($this->compact));\n }", "title": "" }, { "docid": "30ab8989b95dcf9d797d22a8cedaf241", "score": "0.70865136", "text": "public function create()\n {\n return view ('walas.form');\n }", "title": "" }, { "docid": "e72578b08d1332567faf884e2c542543", "score": "0.70826364", "text": "public function create()\n {\n //\n return view('Hrm.create');\n }", "title": "" }, { "docid": "1d478e63e74fbe4c05b862772d019539", "score": "0.707235", "text": "public function create()\n\t{\n\t\treturn View::make('referrals.create');\n\t}", "title": "" }, { "docid": "b7d9a98626783303d6641ee55810a61c", "score": "0.70682013", "text": "public function create()\n {\n return view ('mapel.form');\n }", "title": "" }, { "docid": "ef53dfc7738110e45d9007d473bd71d5", "score": "0.70573217", "text": "public function newAction()\n {\n $user = $this->getUser();\n $entity = new Program();\n $form = $this->createCreateForm($entity);\n\n return $this->render('SifoAdminBundle:new:layout.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'user' => $user,\n ));\n }", "title": "" }, { "docid": "a3472bb62fbfd95113a02e6ab298fb16", "score": "0.705323", "text": "public function create()\n {\n return view('admin.new.create');\n }", "title": "" }, { "docid": "c69f303d7cafa0864b25b452417d3c13", "score": "0.70510703", "text": "public function create()\n\t{\n\t\treturn view('actions.create');\n\t}", "title": "" }, { "docid": "24de1eba4953f740bc6a118cfe591c83", "score": "0.70484626", "text": "public function create()\n\t{\n\t\treturn view('terapis.create');\n\t}", "title": "" }, { "docid": "620ab4a3a65ec50a3ce7567f8eb824b6", "score": "0.70416564", "text": "public function create()\n {\n return view('periode.form', ['action' => 'create']);\n }", "title": "" }, { "docid": "f6a3aae712481bebdb682e358afe1838", "score": "0.7037379", "text": "public function create()\n {\n return view('addnew');\n }", "title": "" }, { "docid": "6e681e9ac9f85217033ef4f7a3bbf71a", "score": "0.70288837", "text": "public function new()\n {\n return view('api.create');\n }", "title": "" }, { "docid": "2d5b7eca3b39b1bc57b0ee331b2b4be2", "score": "0.70182526", "text": "public function create()\n {\n return view('cr.create');\n }", "title": "" }, { "docid": "66b746538eaf7a550c7b3a12968b96a6", "score": "0.70147324", "text": "public function create()\n {\n return view('supplier.form');\n }", "title": "" }, { "docid": "66b746538eaf7a550c7b3a12968b96a6", "score": "0.70147324", "text": "public function create()\n {\n return view('supplier.form');\n }", "title": "" }, { "docid": "815b2bb0c304d8b5c4fe1f4daf2ceec4", "score": "0.7002844", "text": "public function newAction()\n {\n $entity = new Contratos();\n $form = $this->createForm(new ContratosType(), $entity);\n\n return $this->render('ContratosBundle:Contratos:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "352b208a6732c907e34599651886889d", "score": "0.69893515", "text": "public function newAction()\n {\n $entity = new Presupuesto();\n $entity->setFecha(new \\DateTime(\"now\"));\n $form = $this->createForm(new PresupuestoType(), $entity);\n\n return $this->render('SisafBundle:Presupuesto:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "c8b3173ebb54a31ce2b94ee2bb8bfa2c", "score": "0.69823664", "text": "public function newAction()\n {\n $this->view->form = new PeliculaForm(null, array('edit' => true));\n }", "title": "" }, { "docid": "186fd4dd8e12d5f9b7757f0a686adc29", "score": "0.6978345", "text": "public function create()\n {\n //\n \n return view('students.add-record');\n }", "title": "" }, { "docid": "ed971a374ffda4f996862b4981ac44db", "score": "0.69768286", "text": "public function create() {\n\n\t\t//Pasamos los datos antiguos del form o un objeto vacio a la vista\n\t\treturn view('balance.entry.insert', [\n\t\t\t'title' \t=> 'Insertar Registro',\n\t\t\t'action' \t=> [\n\t\t\t'name' => 'insert',\n\t\t\t'value' => 'Insertar',\n\t\t\t'route' => '/entry/insert'\n\t\t\t],\n\t\t\t'concepts'\t=> Concepts::all('name', 'id'),\n\t\t\t'entry'\t=> $this->createEntry (old())\n\t\t\t]\n\t\t\t);\n\n\t}", "title": "" }, { "docid": "ac3176c7f03421a5d8485f79ce8a5af7", "score": "0.69745404", "text": "public function create()\n {\n //\n return view('admin.forms.form-produto');\n }", "title": "" }, { "docid": "b448943ed550a7fe66b7e558cb34571d", "score": "0.697418", "text": "public function create()\n {\n\t\treturn view('admin.pages.material-form-create', ['page' => 'material']);\n }", "title": "" }, { "docid": "f552f3b31ae1d146915cc557308d9ddf", "score": "0.6973076", "text": "public function create()\n {\n $controls = [\n [\n 'type' => 'text',\n 'name' => 'title',\n 'title' => 'Название',\n 'placeholder' => 'Введите название'\n ],\n ];\n\n return view('control-form.create', [\n 'title' => 'Добавить новый жанр',\n 'controls' => $controls,\n 'button_title' => 'Все жанры',\n 'button_route' => 'genre.index',\n 'route_store' => 'genre.store',\n ]);\n }", "title": "" }, { "docid": "77f3e1fd596cfdf21d9eae9a8efaa862", "score": "0.69651383", "text": "public function create()\n\t\t{\n\t\t\treturn view('kalender.create');\n\t\t}", "title": "" }, { "docid": "5de84c2126fe48e85ce132c9fbb06f89", "score": "0.69628006", "text": "public function newAction()\n {\n $entity = new Section();\n $form = $this->createForm(new SectionType(), $entity);\n\n return $this->render('OrchestraOrchestraBundle:Section:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "c259b246490a579b8d14c75187100711", "score": "0.69576067", "text": "public function create()\n {\n //\n return view(env('THEME').'.form');\n }", "title": "" }, { "docid": "8ed65484ff2ee4c220e635b0137f51c9", "score": "0.69491976", "text": "public function create()\n {\n return view('show.create');\n }", "title": "" }, { "docid": "468549dd2c5b7deb7ef57808ae25eb96", "score": "0.69468784", "text": "public function newAction()\n {\n $entity = new Representation();\n $form = $this->createCreateForm($entity);\n\n return $this->render('DevPCultBundle:Representation:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "93bc20f90c626c640e22d48a58c57dc8", "score": "0.6946652", "text": "public function action_new()\n\t{\n\t\t$id = $this->request->param('id');\n\n\t\tif ($id !== null)\n\t\t{\n\t\t\t$this->redirect(Route::url('customer', array('action' => 'edit', 'id' => $id)));\n\t\t} // if\n\n\t\t$model = ORM::factory('Customer');\n\n\t\t$this->content = View::factory('customer/form', array(\n\t\t\t'title' => __('Create new customer'),\n\t\t\t'customer' => $model,\n\t\t\t'properties' => $model->get_properties(),\n\t\t\t'ajax_url' => Route::url('customer', array('action' => 'save'))\n\t\t));\n\t}", "title": "" }, { "docid": "bfc152f36ac3a238d17495dc7b11b127", "score": "0.69463605", "text": "public function create() {\n\t\t//\n\t\treturn view('matakuliah.create');\n\t}", "title": "" }, { "docid": "3646d78424385e5a1829ad7679cf8113", "score": "0.6940157", "text": "public function create()\n {\n abort_if(Gate::denies('user_access'), Response::HTTP_FORBIDDEN, '403 Forbidden');\n $forms = Form::all(['id', 'name']);\n return view('admin.form.create',[\n 'forms' => $forms\n ]);\n }", "title": "" }, { "docid": "d2dfb39011e7751d334f3b102132bcc0", "score": "0.6937871", "text": "public function create()\n {\n return view('libro.create');\n }", "title": "" }, { "docid": "f19095884fa0edb7061608c09bb71e8d", "score": "0.6934648", "text": "public function create()\n {\n return view(static::$resource::uriKey() . '.create');\n }", "title": "" }, { "docid": "c617fff7a1564553ef77993e1b2abce0", "score": "0.6932357", "text": "public function create()\n\t{\n\t\treturn View::make('pertanians.create');\n\t}", "title": "" }, { "docid": "978bcc6315cbc834f3ebe718240ae1d3", "score": "0.6928802", "text": "public function create()\n {\n return view('actions.create');\n }", "title": "" }, { "docid": "978bcc6315cbc834f3ebe718240ae1d3", "score": "0.6928802", "text": "public function create()\n {\n return view('actions.create');\n }", "title": "" }, { "docid": "a5971cddc1452c95970f26bbe6bb5e6f", "score": "0.6924157", "text": "public function create()\n\t{\n\t\treturn view('baloncestos.create');\n\t}", "title": "" }, { "docid": "5517acddff8c143f08d4836b4e8fd2e3", "score": "0.69231087", "text": "public function create()\n\t{\t\n\n\t\treturn view('karyawan.create');\n\t}", "title": "" }, { "docid": "0b29daaacb3707cc487ca300065d6c2d", "score": "0.6922709", "text": "public function create()\n {\n return view('Admin/product/form');\n }", "title": "" }, { "docid": "c4416390a701ec4941a20dc3ab095a2a", "score": "0.6919174", "text": "public function create()\n\t{\n\t\treturn view('create');\n\t}", "title": "" }, { "docid": "1d6a11dbd501ca5d140d052e376ab852", "score": "0.69172156", "text": "public function create()\n {\n //\n return view('security_form/create');\n }", "title": "" }, { "docid": "e90d65170f9bc3dd1e2b969826600c53", "score": "0.6914271", "text": "public function create()\n {\n return view('ekskul.create');\n }", "title": "" }, { "docid": "d4c80824a85a6929fc348476de3eca98", "score": "0.69134784", "text": "public function newAction()\n {\n $entity = new Faq();\n $form = $this->createCreateForm($entity);\n\n return $this->render('StalkAdminBundle:Faq:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "48be68f2d9bd5c305c8873ab5aff62d3", "score": "0.69117326", "text": "public function create()\n\t{\n\t\t//\n\n return view ('control.create');\n\t}", "title": "" }, { "docid": "e8cca05e3e15a063aab85a8139089f03", "score": "0.6910168", "text": "public function create()\n\t{\n\t\treturn View::make('actions.create');\n\t}", "title": "" }, { "docid": "9b7a38de3bb00757b81dc1254498c827", "score": "0.6908405", "text": "public function create()\n {\n //\n return view(\"admin.admin.add\");\n }", "title": "" }, { "docid": "5519441f340b7c0a79f84cf3d36493f2", "score": "0.6906029", "text": "public function create()\n {\n return view('bookshelfs.create');\n }", "title": "" }, { "docid": "f608122e33d25f55691c654ca00c5667", "score": "0.690486", "text": "public function create()\n {\n //\n view('backend.form.post');\n }", "title": "" }, { "docid": "e9b252f908807559380ec3e0133efd8e", "score": "0.69030714", "text": "public function create()\n\t{\n\t\treturn view('background.form');\n\t}", "title": "" }, { "docid": "e88b17f0dfcb8e1d7ac04c5b9f6af8f1", "score": "0.6902272", "text": "public function create()\n {\n return view('cars.form');\n }", "title": "" }, { "docid": "0bfd2732af9e7c334472e3d359a90660", "score": "0.6900851", "text": "public function newAction()\r\n {\r\n return view('new::new');\r\n }", "title": "" }, { "docid": "b0e63a1ed98c6d4fef9c0ef1f2d36a46", "score": "0.6900227", "text": "public function create()\n {\n return view('digemid::create');\n }", "title": "" }, { "docid": "a0881f7e221b4df400147e74c85c747d", "score": "0.68980205", "text": "public function create()\n {\n Return View::make(\"manufacture.add\");\n }", "title": "" }, { "docid": "500865703b94c25ca90c99ae01ee90e3", "score": "0.6896493", "text": "public function new()\n {\n $this->denyAccessUnlessGranted('ROLE_ADMIN');\n\n $form = $this->createNewForm(new Relation());\n\n return $this->render('@IntegratedContent/relation/new.html.twig', [\n 'form' => $form->createView(),\n ]);\n }", "title": "" }, { "docid": "b0dd1ae1c23ce5ea02e38a9b85427b1e", "score": "0.68961895", "text": "public function create()\n \t{\n \t\treturn view('terapiobat.create');\n \t}", "title": "" }, { "docid": "1dbd74dcb3f0ceb2fd4fb4fd641e0384", "score": "0.6895091", "text": "public function create()\n {\n return view('backend.instruktur.form');\n }", "title": "" }, { "docid": "8e97605e60c08e7be60f2ce241d8675e", "score": "0.68922514", "text": "public function create()\n {\n return view('administration.create');\n }", "title": "" }, { "docid": "e9341a1375b53713ef8760a5689b525f", "score": "0.68912005", "text": "public function create()\n {\n return view('bookself.create');\n }", "title": "" }, { "docid": "0075ba982bed082bc50bd31893c5082e", "score": "0.6890889", "text": "public function create()\n {\n //\n $BookId = Book::max('id')+1;\n $BookId = \"BOOKID-\".str_pad($BookId, 4, '0', STR_PAD_LEFT);\n\n $data = array(\n 'bookId'=>$BookId,\n 'form'=>\"create\",\n );\n return view('book.form')->with($data);\n }", "title": "" }, { "docid": "6769fe63e35d4f98abe507728065b246", "score": "0.6890337", "text": "public function create()\r\n {\r\n return view('superadmin::create');\r\n }", "title": "" }, { "docid": "b7654a4ac084aa2dc258dde927666f09", "score": "0.68886495", "text": "public function create()\n {\n return view (\"student.create\");\n }", "title": "" } ]
9d069c1637f43ccb3f46b5b747afa51e
Define your route model bindings, pattern filters, etc.
[ { "docid": "2699547dca6b63b548b6a6439b9a8122", "score": "0.0", "text": "public function boot()\n {\n //\n parent::boot();\n\n // To make work www urls, because router detect \"www.\" as a team for subdomain route model binding\n if (Str::contains(url()->current(), 'www')) {\n return Redirect::to(\n Str::replaceFirst('www.', '', url()->current())\n )->send();\n }\n }", "title": "" } ]
[ { "docid": "7eda744e0a6c1e3aefa9063850d1c379", "score": "0.6805602", "text": "protected function configureRoutes() {}", "title": "" }, { "docid": "5e3ad60bb939aff9d57fabae7bd528d3", "score": "0.6512758", "text": "public function register_routes();", "title": "" }, { "docid": "ab85a2be367bc314bb1df0ff1f233c75", "score": "0.64999276", "text": "public function routes();", "title": "" }, { "docid": "ab85a2be367bc314bb1df0ff1f233c75", "score": "0.64999276", "text": "public function routes();", "title": "" }, { "docid": "d5ae802f0336de5d065aadf93bae491c", "score": "0.649627", "text": "public function register_routes()\n {\n }", "title": "" }, { "docid": "d5ae802f0336de5d065aadf93bae491c", "score": "0.649627", "text": "public function register_routes()\n {\n }", "title": "" }, { "docid": "d5ae802f0336de5d065aadf93bae491c", "score": "0.649627", "text": "public function register_routes()\n {\n }", "title": "" }, { "docid": "d5ae802f0336de5d065aadf93bae491c", "score": "0.649627", "text": "public function register_routes()\n {\n }", "title": "" }, { "docid": "d5ae802f0336de5d065aadf93bae491c", "score": "0.649627", "text": "public function register_routes()\n {\n }", "title": "" }, { "docid": "d5ae802f0336de5d065aadf93bae491c", "score": "0.649627", "text": "public function register_routes()\n {\n }", "title": "" }, { "docid": "2d6ac3f8ee15bd7e2fcf4e509dadd736", "score": "0.6482605", "text": "protected function _initRoutes()\n {\n\n }", "title": "" }, { "docid": "25b4493fc4e9ef108f52c32ddaac3234", "score": "0.64733046", "text": "public static function register_routes()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "16fdb4b18c812ffc76e9f242b742e6fb", "score": "0.6415001", "text": "public function register_routes() : void {\n // This incantation means:\n // accept requests like /thing/:id where `:id` is an int.\n register_rest_route(static::API_NAMESPACE, '/thing/(?P<id>\\d+)', [\n 'methods' => 'GET',\n 'callback' => [$this, 'thing_action'],\n ]);\n }", "title": "" }, { "docid": "25b4a6454f0aca4914d7b4992e910173", "score": "0.63794106", "text": "public function addRoutes()\n {\n // main routes\n $this->app->get('/', 'Itb\\MainController::indexAction');\n $this->app->get('/contact', 'Itb\\MainController::contactAction');\n\n // hello routes\n $this->app->get('/hello', 'Itb\\HelloController::indexAction');\n $this->app->get('/hello/{name}', 'Itb\\HelloController::nameAction');\n }", "title": "" }, { "docid": "5fb1d30b9ec9331ac0d91e718f28a1d5", "score": "0.6370845", "text": "public function register_routes() {\n\t\t$namespace = $this->get_rest_namespace();\n\n\t\tCollection_Elementor::get_instance()->init_rest_endpoints( $namespace );\n\t\tCollection_Elementor_Blocks::get_instance()->init_rest_endpoints( $namespace );\n\t\tCollection_Beaver_Builder::get_instance()->init_rest_endpoints( $namespace );\n\t\tCollection_Photos::get_instance()->init_rest_endpoints( $namespace );\n\t\tImport::get_instance()->init_rest_endpoints( $namespace );\n\t\tNotifications::get_instance()->init_rest_endpoints( $namespace );\n\t\tOptions::get_instance()->init_rest_endpoints( $namespace );\n\n\t}", "title": "" }, { "docid": "996fb1fd45a98546dc2b9c9d01d45372", "score": "0.6347625", "text": "protected function defineRoutes()\n {\n if (! $this->app->routesAreCached()) {\n $router = app('router');\n\n $router->group(['namespace' => 'Copya\\Http\\Controllers'], function ($router) {\n\n require __DIR__.'/../routes/console.php';\n require __DIR__.'/../routes/web.php';\n });\n\n $this->mapApiRoutes();\n\n\n }\n }", "title": "" }, { "docid": "adcf0b377a737c9072b6f18f6eff72b2", "score": "0.63225603", "text": "public function boot() {\n\t\tparent::boot();\n\n\t\tforeach (config('slugs.bindings', []) as $key => $model) {\n\t\t\tRoute::bind($key, function ($value) use ($model, $key) {\n\n\t\t\t\tif ($value instanceof Model) { // no need for rebinding\n\t\t\t\t\treturn $value;\n\t\t\t\t} else if (strpos($value, '/') !== false) {\n\t\t\t\t\t$value = substr($value, 0, strpos($value, '/'));\n\t\t\t\t}\n\n\t\t\t\treturn $this->eagerLoadModel(app($model), $key, $value);\n\t\t\t});\n\t\t}\n\t}", "title": "" }, { "docid": "7223b6d060b22dd14a7e967e21401992", "score": "0.63060176", "text": "public function setup()\n {\n parent::setup();\n // rote and options configuration\n $this->routeMatch->setParam('module', 'api');\n $this->routeMatch->setParam('service', 'authenticate');\n $this->routeMatch->setParam('formatter', 'json');\n $this->routeMatch->setParam('action', 'index');\n }", "title": "" }, { "docid": "9a8a98d6905784ac197507801e7fd4a4", "score": "0.62996846", "text": "public function setRoutes()\n {\n $this->_routes = $this->getConfig('routes');\n $self = $this;\n $prefix = $this->getConfig('prefix');\n foreach ($this->_routes as $key => $value) {\n $this->slim->map($prefix . $value['route'], function() use($self, $key, $value){\n $args = func_get_args();\n $layout = isset($value['layout']) ? $value['layout'] : true;\n\n // This will store a custom function if defined into the route\n $custom = isset($value['custom']) ? $value['custom'] : false;\n\n $self->slim->view()->appendGlobalData(array(\"route\" => $key));\n $template = isset($value['template']) ? $value['template'] : false;\n\n //set view data for article and archives routes\n switch ($key) {\n case 'home':\n \t// $query = new \\Parse\\ParseQuery(\"Venue\");\n \t// $query->descending(\"createdAt\");\n \t// $query->limit(6);\n \t// $results = $query->find();\n \t// $this->viewData['venues'] = $results;\n break;\n\n case 'venue':\n \t// $query = new \\Parse\\ParseQuery(\"Venue\");\n \t// $venue = $query->get($args[0]);\n \t// $this->viewData['venue'] = $venue;\n \tbreak;\n\n // If key is not matched, check if a custom function is declared\n default:\n if ($custom && is_callable($custom))\n call_user_func($custom, $self, $key, $value);\n break;\n }\n if(!$layout){\n $self->enableLayout = false;\n }\n else{\n $self->setLayout($layout);\n }\n // render the template file\n $self->render($template);\n\n })->via('GET')\n ->name($key)\n ->conditions(\n isset($value['conditions']) ? $value['conditions']: array()\n );\n }\n\n // Register not found handler\n $this->slim->notFound(function () use ($self) {\n $self->slim->render('404');\n });\n }", "title": "" }, { "docid": "48968305f2ac565471f599ed332e7ace", "score": "0.62929064", "text": "public function boot()\n {\n parent::boot();\n\n if (Request::is('*/user/user/*')) {\n Route::bind('user', function ($user) {\n $userrepo = $this->app->make('\\Litepie\\User\\Interfaces\\UserRepositoryInterface');\n return $userrepo->findorNew($user);\n });\n }\n\n if (Request::is('*/user/permission/*')) {\n Route::bind('permission', function ($permission) {\n $permissionrepo = $this->app->make('\\Litepie\\User\\Interfaces\\PermissionRepositoryInterface');\n return $permissionrepo->findorNew($permission);\n });\n }\n\n if (Request::is('*/user/role/*')) {\n Route::bind('role', function ($role) {\n $rolerepo = $this->app->make('\\Litepie\\User\\Interfaces\\RoleRepositoryInterface');\n return $rolerepo->findorNew($role);\n });\n }\n\n if (Request::is('*/user/team/*')) {\n Route::bind('team', function ($team) {\n $teamrepo = $this->app->make('\\Litepie\\User\\Interfaces\\TeamRepositoryInterface');\n return $teamrepo->findorNew($team);\n });\n }\n\n }", "title": "" }, { "docid": "f338f6e88dacc476637ae7d8be40917a", "score": "0.62854826", "text": "public function addRoutes() \n {\n register_rest_route( 'kerigansolutions/v1', '/attractions',\n [\n 'methods' => 'GET',\n 'callback' => [ $this, 'getPosts' ],\n 'permission_callback' => '__return_true'\n ]\n );\n }", "title": "" }, { "docid": "8c2e4cd5f04954b6dad069f3aff101cd", "score": "0.62728816", "text": "private function create_routes(): void\n {\n $status = $this->router->add_route('', array($this->router, 'homeView'), ['method' => 'GET']);\n if (!$status) die('Route home not added!');\n\n $status = $this->router->add_route('contact', array($this->router, 'contactView'), ['method' => 'GET']);\n if (!$status) die('Route contact not added!');\n\n $status = $this->router->add_route('post', array($this->router, 'postApi'), ['method' => 'POST', 'model' => 'ModelPost']);\n if (!$status) die('Route postApi not added!');\n }", "title": "" }, { "docid": "3b0c4fc1ee453e6dbc684040c1c48a00", "score": "0.62522703", "text": "public function boot()\n {\n parent::boot();\n\n if (Request::is('*/blog/category/*')) {\n Route::bind('category', function ($category) {\n $categoryrepo = $this->app->make('Litecms\\Blog\\Interfaces\\CategoryRepositoryInterface');\n return $categoryrepo->findorNew($category);\n });\n }\n\n if (Request::is('*/blog/blog/*')) {\n Route::bind('blog', function ($blog) {\n $blogrepo = $this->app->make('Litecms\\Blog\\Interfaces\\BlogRepositoryInterface');\n return $blogrepo->findorNew($blog);\n });\n }\n\n if (Request::is('*/blog/comment/*')) {\n Route::bind('comment', function ($comment) {\n $commentrepo = $this->app->make('Litecms\\Blog\\Interfaces\\CommentRepositoryInterface');\n return $commentrepo->findorNew($comment);\n });\n }\n\n if (Request::is('*/blog/tag/*')) {\n Route::bind('tag', function ($tag) {\n $tagrepo = $this->app->make('Litecms\\Blog\\Interfaces\\TagRepositoryInterface');\n return $tagrepo->findorNew($tag);\n });\n }\n\n }", "title": "" }, { "docid": "8041b82842714e67a711534ab2061b34", "score": "0.624237", "text": "function defineRoutes(&$router)\n {\n\t\t$router->map('people_import_highrise', 'people/import/highrise', array('controller' => 'company_highrise', 'action' => 'import_clients'));\n\t\t$router->map('people_company_import_highrise', 'people/:company_id/import/highrise', array('controller' => 'company_highrise', 'action' => 'import_contacts'));\n\t\t\n\t\t$router->map('profile_highrise', 'people/:company_id/users/:user_id/highrise', array('controller' => 'profile_highrise', 'action' => 'index'), array('company_id' => '\\d+', 'user_id' => '\\d+'));\n\t\t$router->map('profile_highrise_test_token', 'people/:company_id/users/:user_id/highrise/test-token', array('controller' => 'profile_highrise', 'action' => 'test_token'), array('company_id' => '\\d+', 'user_id' => '\\d+'));\n }", "title": "" }, { "docid": "fc8ac103c943c8e57cbe8bb28146c883", "score": "0.62166744", "text": "protected function setupRoutes()\n {\n $this->loadRoutesFrom(__DIR__.'/../routes/webhook.php');\n\n }", "title": "" }, { "docid": "07159e9183c6f2dab29e9dfb5e3b38af", "score": "0.62100196", "text": "public function boot(Router $router) {\n //\n\n parent::boot($router);\n\n $router->bind('broker', function($value) {\n try {\n return \\App\\Models\\User::withStatus()->findOrFail($value);\n }catch(ModelNotFoundException $e) {\n throw new InsuraModelNotFoundException('brokers.message.error.missing');\n }\n });\n $router->bind('client', function($value) {\n try {\n return \\App\\Models\\User::withStatus()->findOrFail($value);\n }catch(ModelNotFoundException $e) {\n throw new InsuraModelNotFoundException('clients.message.error.missing');\n }\n });\n $router->bind('recipient', function($value) {\n try {\n return \\App\\Models\\User::withStatus()->findOrFail($value);\n }catch(ModelNotFoundException $e) {\n throw new InsuraModelNotFoundException('users.message.error.missing');\n }\n });\n $router->bind('sender', function($value) {\n try {\n return \\App\\Models\\User::withStatus()->findOrFail($value);\n }catch(ModelNotFoundException $e) {\n throw new InsuraModelNotFoundException('users.message.error.missing');\n }\n });\n $router->bind('staff', function($value) {\n try {\n return \\App\\Models\\User::withStatus()->findOrFail($value);\n }catch(ModelNotFoundException $e) {\n throw new InsuraModelNotFoundException('staff.message.error.missing');\n }\n });\n $router->bind('user', function($value) {\n try {\n return \\App\\Models\\User::withStatus()->findOrFail($value);\n }catch(ModelNotFoundException $e) {\n throw new InsuraModelNotFoundException('users.message.error.missing');\n }\n });\n $router->model('attachment', 'App\\Models\\Attachment', function() {\n throw new InsuraModelNotFoundException('attachments.message.error.missing');\n });\n $router->model('chat', 'App\\Models\\Chat', function() {\n throw new InsuraModelNotFoundException('chats.message.error.missing');\n });\n $router->model('company', 'App\\Models\\Company', function() {\n throw new InsuraModelNotFoundException('companies.message.error.missing');\n });\n $router->model('email', 'App\\Models\\Email', function() {\n throw new InsuraModelNotFoundException('communication.message.error.missing.email');\n });\n $router->model('note', 'App\\Models\\Note', function() {\n throw new InsuraModelNotFoundException('notes.message.error.missing');\n });\n $router->model('policy', 'App\\Models\\Policy', function() {\n throw new InsuraModelNotFoundException('policies.message.error.missing');\n });\n $router->model('product', 'App\\Models\\Product', function() {\n throw new InsuraModelNotFoundException('products.message.error.missing');\n });\n $router->model('reminder', 'App\\Models\\Reminder', function() {\n $exc = new InsuraModelNotFoundException('reminders.message.errors.missing');\n $exc->setBack(true);\n throw $exc;\n });\n $router->model('text', 'App\\Models\\Text', function() {\n throw new InsuraModelNotFoundException('communication.message.error.missing.text');\n });\n }", "title": "" }, { "docid": "19e8c30f22c0c1ab179ae44a6cb4b6ec", "score": "0.61858445", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n # $this->mapAuthRoutes();\n\n //\n }", "title": "" }, { "docid": "51b2a1532b07d8584c27aa4a2252a368", "score": "0.61803776", "text": "public static function register_routes() {\n\t\tregister_rest_route( 'opensearch/1.1', '/document', array(\n\t\t\tarray(\n\t\t\t\t'methods' => WP_REST_Server::READABLE,\n\t\t\t\t'callback' => array( 'WP_REST_Open_Search_Controller', 'get_document' ),\n\t\t\t),\n\t\t) );\n\n\t\tregister_rest_route( 'opensearch/1.1', '/suggestions', array(\n\t\t\tarray(\n\t\t\t\t'methods' => WP_REST_Server::READABLE,\n\t\t\t\t'callback' => array( 'WP_REST_Open_Search_Controller', 'get_suggestions' ),\n\t\t\t\t'args' => array(\n\t\t\t\t\t's' => array(\n\t\t\t\t\t\t'sanitize_callback' => 'sanitize_key',\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t),\n\t\t) );\n\t}", "title": "" }, { "docid": "61b7ee238fa8f0e45188fdca85d87006", "score": "0.6180012", "text": "abstract public function registerRoutes();", "title": "" }, { "docid": "e716ba4791dac86e4ac886c11e84b97b", "score": "0.61782396", "text": "protected function registerRouterBindings()\n {\n $this->singleton('router', function () {\n return $this->loadComponent('router', 'Illuminate\\Routing\\RoutingServiceProvider');\n });\n }", "title": "" }, { "docid": "69a3961132689935bc12e800eedc1f25", "score": "0.61647576", "text": "public function register_routes() {\n\t\tregister_rest_route(\n\t\t\t$this->namespace,\n\t\t\t'/' . $this->rest_base,\n\t\t\tarray(\n\t\t\t\tarray(\n\t\t\t\t\t'methods' => 'GET',\n\t\t\t\t\t'callback' => array( $this, 'get_items' ),\n\t\t\t\t\t'permission_callback' => array( $this, 'get_items_permissions_check' ),\n\t\t\t\t\t'args' => $this->get_collection_params(),\n\t\t\t\t),\n\t\t\t\t'schema' => array( $this, 'get_public_item_schema' ),\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "3c7a5c953bcf4ffda64c38b7f7d9cd12", "score": "0.6156908", "text": "protected function mapRoutes()\n {\n //\n }", "title": "" }, { "docid": "17c97ff19566968dcd8105be6527218a", "score": "0.61530125", "text": "function defineRoutes(&$router) {\n \n // General\n $router->map('homepage', '');\n \n // API specific\n $router->map('info', 'info', array('controller' => 'api', 'action' => 'info'));\n $router->map('system_roles', 'roles/system', array('controller' => 'api', 'action' => 'system_roles'));\n $router->map('project_roles', 'roles/project', array('controller' => 'api', 'action' => 'project_roles'));\n $router->map('role_details', 'roles/:role_id', array('controller' => 'api', 'action' => 'role'), array('role_id' => '\\d+'));\n \n // Auth\n $router->map('login', 'login', array('controller' => 'auth', 'action' => 'login'));\n $router->map('logout', 'logout', array('controller' => 'auth', 'action' => 'logout'));\n $router->map('forgot_password', 'lost-password', array('controller' => 'auth', 'action' => 'forgot_password'));\n $router->map('reset_password', 'reset-password', array('controller' => 'auth', 'action' => 'reset_password'));\n $router->map('refresh_session', 'refresh-session', array('controller' => 'auth', 'action' => 'refresh_session'));\n \n // Dashboard / Search / Starred / Trash\n $router->map('dashboard', 'dashboard', array('controller' => 'dashboard', 'action' => 'index'));\n $router->map('search', 'search', array('controller' => 'dashboard', 'action' => 'search'));\n $router->map('quick_search', 'quick-search', array('controller' => 'dashboard', 'action' => 'quick_search'));\n $router->map('new_since_last_visit', 'new-since-last-visit', array('controller' => 'dashboard', 'action' => 'new_since_last_visit'));;\n $router->map('mark_all_read', 'mark-all-read', array('controller' => 'dashboard', 'action' => 'mark_all_read'));;\n $router->map('recent_activities', 'recent-activities', array('controller' => 'dashboard', 'action' => 'recent_activities'));;\n $router->map('active_projects', 'active-projects', array('controller' => 'dashboard', 'action' => 'active_projects'));;\n $router->map('late_today', 'late-today', array('controller' => 'dashboard', 'action' => 'late_today'));;\n $router->map('starred', 'starred', array('controller' => 'dashboard', 'action' => 'starred'));\n $router->map('trash', 'trash', array('controller' => 'dashboard', 'action' => 'trash'));\n $router->map('trash_empty', 'trash_empty', array('controller' => 'dashboard', 'action' => 'trash_empty'));\n $router->map('quick_add', 'quick-add', array('controller' => 'dashboard', 'action' => 'quick_add'));\n $router->map('rss', 'rss', array('controller' => 'dashboard', 'action' => 'rss'));\n $router->map('ical', 'ical', array('controller' => 'dashboard', 'action' => 'ical'));\n $router->map('ical_subscribe', 'ical-subscribe', array('controller' => 'dashboard', 'action' => 'ical_subscribe'));\n $router->map('js_disabled', 'javascript-disabled', array('controller' => 'dashboard', 'action' => 'js_disabled'));\n \n // People\n $router->map('people', 'people', array('controller' => 'people', 'action' => 'index'));\n $router->map('people_archive', 'people/archive', array('controller' => 'people', 'action' => 'archive'));\n \n $router->map('people_companies_add', 'people/add-company', array('controller' => 'companies', 'action' => 'add'));\n $router->map('people_companies_quick_add', 'people/quick-add-company', array('controller' => 'companies', 'action' => 'quick_add'));\n $router->map('people_company', 'people/:company_id', array('controller' => 'companies', 'action' => 'view'), array('company_id' => '\\d+'));\n $router->map('people_company_edit', 'people/:company_id/edit', array('controller' => 'companies', 'action' => 'edit'), array('company_id' => '\\d+'));\n $router->map('people_company_delete', 'people/:company_id/delete', array('controller' => 'companies', 'action' => 'delete'), array('company_id' => '\\d+'));\n $router->map('people_company_archive', 'people/:company_id/archive', array('controller' => 'companies', 'action' => 'archive'), array('company_id' => '\\d+'));\n $router->map('people_company_edit_logo', 'people/:company_id/edit-logo', array('controller' => 'companies', 'action' => 'edit_logo'), array('company_id' => '\\d+'));\n $router->map('people_company_delete_logo', 'people/:company_id/delete-logo', array('controller' => 'companies', 'action' => 'delete_logo'), array('company_id' => '\\d+'));\n \n $router->map('people_company_user', 'people/:company_id/users/:user_id', array('controller' => 'users', 'action' => 'view'), array('company_id' => '\\d+', 'user_id' => '\\d+'));\n $router->map('people_company_user_add', 'people/:company_id/add-user', array('controller' => 'users', 'action' => 'add'), array('company_id' => '\\d+'));\n $router->map('people_company_user_edit', 'people/:company_id/users/:user_id/edit', array('controller' => 'users', 'action' => 'edit'), array('company_id' => '\\d+', 'user_id' => '\\d+'));\n $router->map('people_company_user_edit_profile', 'people/:company_id/users/:user_id/edit-profile', array('controller' => 'users', 'action' => 'edit_profile'), array('company_id' => '\\d+', 'user_id' => '\\d+'));\n $router->map('people_company_user_edit_settings', 'people/:company_id/users/:user_id/edit-settings', array('controller' => 'users', 'action' => 'edit_settings'), array('company_id' => '\\d+', 'user_id' => '\\d+'));\n $router->map('people_company_user_edit_company_and_role', 'people/:company_id/users/:user_id/edit-company-and-role', array('controller' => 'users', 'action' => 'edit_company_and_role'), array('company_id' => '\\d+', 'user_id' => '\\d+'));\n $router->map('people_company_user_delete', 'people/:company_id/users/:user_id/delete', array('controller' => 'users', 'action' => 'delete'), array('company_id' => '\\d+', 'user_id' => '\\d+'));\n $router->map('people_company_user_edit_password', 'people/:company_id/users/:user_id/edit-password', array('controller' => 'users', 'action' => 'edit_password'), array('company_id' => '\\d+', 'user_id' => '\\d+'));\n $router->map('people_company_user_edit_avatar', 'people/:company_id/users/:user_id/edit-avatar', array('controller' => 'users', 'action' => 'edit_avatar'), array('company_id' => '\\d+', 'user_id' => '\\d+'));\n $router->map('people_company_user_delete_avatar', 'people/:company_id/users/:user_id/delete-avatar', array('controller' => 'users', 'action' => 'delete_avatar'), array('company_id' => '\\d+', 'user_id' => '\\d+'));\n $router->map('people_company_user_api', 'people/:company_id/users/:user_id/api', array('controller' => 'users', 'action' => 'api'), array('company_id' => '\\d+', 'user_id' => '\\d+'));\n $router->map('people_company_user_api_reset_key', 'people/:company_id/users/:user_id/reset-api-key', array('controller' => 'users', 'action' => 'api_reset_key'), array('company_id' => '\\d+', 'user_id' => '\\d+'));\n $router->map('people_company_user_recent_activities', 'people/:company_id/users/:user_id/recent-activities', array('controller' => 'users', 'action' => 'recent_activities'), array('company_id' => '\\d+', 'user_id' => '\\d+'));\n $router->map('people_company_user_add_to_projects', 'people/:company_id/users/:user_id/add-to-projects', array('controller' => 'users', 'action' => 'add_to_projects'), array('company_id' => '\\d+', 'user_id' => '\\d+'));\n $router->map('people_company_user_send_welcome_message', 'people/:company_id/users/:user_id/send-welcome-message', array('controller' => 'users', 'action' => 'send_welcome_message'), array('company_id' => '\\d+', 'user_id' => '\\d+'));\n \n // Projects\n $router->map('projects', 'projects', array('controller' => 'projects', 'action' => 'index'));\n $router->map('projects_all', 'projects/all', array('controller' => 'projects', 'action' => 'all_projects'));\n $router->map('projects_add', 'projects/add', array('controller' => 'project', 'action' => 'add'));\n $router->map('projects_archive', 'projects/archive', array('controller' => 'projects', 'action' => 'archive'));\n \n // Project groups\n $router->map('project_groups', 'projects/groups', array('controller' => 'project_groups', 'action' => 'index'));\n $router->map('project_groups_add', 'projects/groups/add', array('controller' => 'project_groups', 'action' => 'add'));\n $router->map('project_groups_quick_add', 'projects/groups/quick-add', array('controller' => 'project_groups', 'action' => 'quick_add'));\n $router->map('project_group', 'projects/groups/:project_group_id', array('controller' => 'project_groups', 'action' => 'view'), array('project_group_id' => '\\d+'));\n $router->map('project_group_edit', 'projects/groups/:project_group_id/edit', array('controller' => 'project_groups', 'action' => 'edit'), array('project_group_id' => '\\d+'));\n $router->map('project_group_delete', 'projects/groups/:project_group_id/delete', array('controller' => 'project_groups', 'action' => 'delete'), array('project_group_id' => '\\d+'));\n \n // Single project\n $router->map('project_overview', 'projects/:project_id', array('controller' => 'project', 'action' => 'index'), array('project_id' => '\\d+'));\n $router->map('project_user_tasks', 'projects/:project_id/user-tasks', array('controller' => 'project', 'action' => 'user_tasks'), array('project_id' => '\\d+'));\n $router->map('project_rss', 'projects/:project_id/rss', array('controller' => 'project', 'action' => 'rss'), array('project_id' => '\\d+'));\n $router->map('project_ical', 'projects/:project_id/ical', array('controller' => 'project', 'action' => 'ical'), array('project_id' => '\\d+'));\n $router->map('project_ical_subscribe', 'projects/:project_id/ical-subscribe', array('controller' => 'project', 'action' => 'ical_subscribe'), array('project_id' => '\\d+'));\n $router->map('project_edit', 'projects/:project_id/edit', array('controller' => 'project', 'action' => 'edit'), array('project_id' => '\\d+'));\n $router->map('project_edit_status', 'projects/:project_id/edit-status', array('controller' => 'project', 'action' => 'edit_status'), array('project_id' => '\\d+'));\n $router->map('project_edit_icon', 'projects/:project_id/edit-icon', array('controller' => 'project', 'action' => 'edit_icon'), array('project_id' => '\\d+'));\n $router->map('project_delete', 'projects/:project_id/delete', array('controller' => 'project', 'action' => 'delete'), array('project_id' => '\\d+'));\n $router->map('project_delete_icon', 'projects/:project_id/delete-icon', array('controller' => 'project', 'action' => 'delete_icon'), array('project_id' => '\\d+'));\n $router->map('project_pin', 'projects/:project_id/pin', array('controller' => 'project', 'action' => 'pin'), array('project_id' => '\\d+'));\n $router->map('project_unpin', 'projects/:project_id/unpin', array('controller' => 'project', 'action' => 'unpin'), array('project_id' => '\\d+'));\n $router->map('project_export', 'projects/:project_id/export', array('controller' => 'project', 'action' => 'export'), array('project_id' => '\\d+'));\n \n // Project people\n $router->map('project_people', 'projects/:project_id/people', array('controller' => 'project_people', 'action' => 'index'), array('project_id' => '\\d+'));\n $router->map('project_people_add', 'projects/:project_id/people/add', array('controller' => 'project_people', 'action' => 'add_people'), array('project_id' => '\\d+'));\n $router->map('project_remove_user', 'projects/:project_id/people/:user_id/remove-from-project', array('controller' => 'project_people', 'action' => 'remove_user'), array('project_id' => '\\d+', 'user_id' => '\\d+'));\n $router->map('project_user_permissions', 'projects/:project_id/people/:user_id/change-permissions', array('controller' => 'project_people', 'action' => 'user_permissions'), array('project_id' => '\\d+', 'user_id' => '\\d+'));\n \n // Project objects (generic, this stuff is usually overriden)\n $router->map('project_objects', 'projects/:project_id/objects', array('controller' => 'projects', 'action' => 'overview'), array('project_id' => '\\d+'));\n $router->map('project_object_trash', 'projects/:project_id/objects/:object_id/move-to-trash', array('controller' => 'project_objects', 'action' => 'move_to_trash'), array('project_id' => '\\d+', 'object_id' => '\\d+'));\n $router->map('project_object_untrash', 'projects/:project_id/objects/:object_id/restore-from-trash', array('controller' => 'project_objects', 'action' => 'restore_from_trash'), array('project_id' => '\\d+', 'object_id' => '\\d+'));\n $router->map('project_object_change_visibility', 'projects/:project_id/objects/:object_id/change-visibility', array('controller' => 'project_objects', 'action' => 'change_visibility'), array('project_id' => '\\d+', 'object_id' => '\\d+'));\n $router->map('project_object_complete', 'projects/:project_id/objects/:object_id/complete', array('controller' => 'project_objects', 'action' => 'complete'), array('project_id' => '\\d+', 'object_id' => '\\d+'));\n $router->map('project_object_open', 'projects/:project_id/objects/:object_id/open', array('controller' => 'project_objects', 'action' => 'open'), array('project_id' => '\\d+', 'object_id' => '\\d+'));\n $router->map('project_object_move', 'projects/:project_id/objects/:object_id/move', array('controller' => 'project_objects', 'action' => 'move'), array('project_id' => '\\d+', 'object_id' => '\\d+'));\n $router->map('project_object_copy', 'projects/:project_id/objects/:object_id/copy', array('controller' => 'project_objects', 'action' => 'copy'), array('project_id' => '\\d+', 'object_id' => '\\d+'));\n $router->map('project_object_lock', 'projects/:project_id/objects/:object_id/lock', array('controller' => 'project_objects', 'action' => 'lock'), array('project_id' => '\\d+', 'object_id' => '\\d+'));\n $router->map('project_object_unlock', 'projects/:project_id/objects/:object_id/unlock', array('controller' => 'project_objects', 'action' => 'unlock'), array('project_id' => '\\d+', 'object_id' => '\\d+')); \n $router->map('project_object_star', 'projects/:project_id/objects/:object_id/star', array('controller' => 'project_objects', 'action' => 'star'), array('project_id' => '\\d+', 'object_id' => '\\d+'));\n $router->map('project_object_unstar', 'projects/:project_id/objects/:object_id/unstar', array('controller' => 'project_objects', 'action' => 'unstar'), array('project_id' => '\\d+', 'object_id' => '\\d+')); \n \n // Widgets\n $router->map('select_users_widget', 'select-users', array('controller' => 'widgets', 'action' => 'select_users'));\n $router->map('select_projects_widget', 'select-projects', array('controller' => 'widgets', 'action' => 'select_projects'));\n $router->map('jump_to_project_widget', 'jump-to-project', array('controller' => 'widgets', 'action' => 'jump_to_project'));\n $router->map('object_subscribers_widget', 'object-subscriptions', array('controller' => 'widgets', 'action' => 'object_subscribers'));\n $router->map('image_picker', 'image-picker', array('controller' => 'widgets', 'action' => 'image_picker'));\n $router->map('link_picker', 'link-picker', array('controller' => 'widgets', 'action' => 'link_picker'));\n \n // ---------------------------------------------------\n // Administration\n // ---------------------------------------------------\n \n $router->map('admin', 'admin', array('controller' => 'admin', 'action' => 'index'));\n \n // Roles\n $router->map('admin_roles', 'admin/roles', array('controller' => 'roles_admin', 'action' => 'index'));\n $router->map('admin_roles_add_system', 'admin/roles/add-system', array('controller' => 'roles_admin', 'action' => 'add_system'));\n $router->map('admin_roles_add_project', 'admin/roles/add-project', array('controller' => 'roles_admin', 'action' => 'add_project'));\n \n $router->map('admin_role', 'admin/roles/:role_id', array('controller' => 'roles_admin', 'action' => 'view'), array('role_id' => '\\d+'));\n $router->map('admin_role_edit', 'admin/roles/:role_id/edit', array('controller' => 'roles_admin', 'action' => 'edit'), array('role_id' => '\\d+'));\n $router->map('admin_role_delete', 'admin/roles/:role_id/delete', array('controller' => 'roles_admin', 'action' => 'delete'), array('role_id' => '\\d+'));\n $router->map('admin_role_set_as_default', 'admin/roles/:role_id/set-as-default', array('controller' => 'roles_admin', 'action' => 'set_as_default'), array('role_id' => '\\d+'));\n $router->map('admin_role_set_permission_value', 'admin/roles/:role_id/set-permission-value/:permission_name', array('controller' => 'roles_admin', 'action' => 'set_permission_value'), array('role_id' => '\\d+'));\n \n // Modules\n $router->map('admin_modules', 'admin/modules', array('controller' => 'modules_admin', 'action' => 'index'));\n $router->map('admin_module', 'admin/modules/:module_name', array('controller' => 'modules_admin', 'action' => 'module'));\n $router->map('admin_module_install', 'admin/modules/:module_name/install', array('controller' => 'modules_admin', 'action' => 'install'));\n $router->map('admin_module_uninstall', 'admin/modules/:module_name/uninstall', array('controller' => 'modules_admin', 'action' => 'uninstall'));\n \n // Settings\n $router->map('admin_settings', 'admin', array('controller' => 'admin', 'action' => 'index'));\n $router->map('admin_settings_general', 'admin/settings/general', array('controller' => 'settings', 'action' => 'general'));\n $router->map('admin_settings_mailing', 'admin/settings/mailing', array('controller' => 'settings', 'action' => 'mailing'));\n $router->map('admin_settings_mailing_test_connection', 'admin/settings/mailing/test_connection', array('controller' => 'settings', 'action' => 'mailing_test_connection'));\n $router->map('admin_settings_date_time', 'admin/settings/date-time', array('controller' => 'settings', 'action' => 'date_time'));\n $router->map('admin_settings_hide_welcome_message', 'admin/settings/hide-welcome-message', array('controller' => 'settings', 'action' => 'hide_welcome_message'));\n $router->map('admin_settings_categories', 'admin/settings/categories', array('controller' => 'categories_admin'));\n $router->map('admin_settings_maintenance', 'admin/settings/maintenance', array('controller' => 'settings', 'action' => 'maintenance'));\n \n $router->map('admin_settings_email_templates', 'admin/settings/email-templates', array('controller' => 'email_templates_admin', 'action' => 'index'));\n $router->map('admin_settings_email_template', 'admin/settings/email-templates/:module_name/:template_name', array('controller' => 'email_templates_admin', 'action' => 'details'));\n $router->map('admin_settings_email_template_edit', 'admin/settings/email-templates/:module_name/:template_name/edit', array('controller' => 'email_templates_admin', 'action' => 'edit'));\n \n // Languages\n $router->map('admin_languages', 'admin/languages', array('controller' => 'languages_admin'));\n $router->map('admin_languages_add', 'admin/languages/add', array('controller' => 'languages_admin', 'action' => 'add'));\n $router->map('admin_languages_import', 'admin/languages/import', array('controller' => 'languages_admin', 'action' => 'import'));\n $router->map('admin_language', 'admin/languages/:language_id', array('controller' => 'languages_admin', 'action' => 'view'), array('language_id' => '\\d+'));\n $router->map('admin_language_export', 'admin/languages/:language_id/export', array('controller' => 'languages_admin', 'action' => 'export'), array('language_id' => '\\d+'));\n $router->map('admin_language_edit', 'admin/languages/:language_id/edit', array('controller' => 'languages_admin', 'action' => 'edit'), array('language_id' => '\\d+'));\n $router->map('admin_language_delete', 'admin/languages/:language_id/delete', array('controller' => 'languages_admin', 'action' => 'delete'), array('language_id' => '\\d+'));\n $router->map('admin_language_set_default', 'admin/languages/:language_id/set-as-default', array('controller' => 'languages_admin', 'action' => 'set_as_default'), array('language_id' => '\\d+'));\n $router->map('admin_language_add_translation_file', 'admin/languages/:language_id/add-translation-file', array('controller' => 'languages_admin', 'action' => 'add_translation_file'), array('language_id' => '\\d+'));\n $router->map('admin_language_edit_translation_file', 'admin/languages/:language_id/edit-translation-file', array('controller' => 'languages_admin', 'action' => 'edit_translation_file'), array('language_id' => '\\d+'));\n \n // Tools\n $router->map('admin_tools_test_email', 'admin/tools/test-email', array('controller' => 'system_tools', 'action' => 'test_email'));\n $router->map('admin_tools_mass_mailer', 'admin/tools/mass-mailer', array('controller' => 'system_tools', 'action' => 'mass_mailer'));\n \n // Other\n $router->map('admin_other_scheduled_tasks', 'admin/scheduled-tasks', array('controller' => 'system_tools', 'action' => 'scheduled_tasks'));\n \n // Cron\n $router->map('frequently', 'frequently', array('controller' => 'cron', 'action' => 'frequently'));\n $router->map('hourly', 'hourly', array('controller' => 'cron', 'action' => 'hourly'));\n $router->map('daily', 'daily', array('controller' => 'cron', 'action' => 'daily'));\n \n }", "title": "" }, { "docid": "81b1678dcc571e23d2e77d5c72cf34b7", "score": "0.61225474", "text": "protected function routes()\n {\n Nova::routes()\n ->withAuthenticationRoutes()\n ->withPasswordResetRoutes()\n ->register();\n }", "title": "" }, { "docid": "c2326651d33dc21bb0bc97e8437129f8", "score": "0.61152667", "text": "protected function routes()\n {\n Nova::routes()\n ->withAuthenticationRoutes()\n ->withPasswordResetRoutes()\n ->register();\n }", "title": "" }, { "docid": "c2326651d33dc21bb0bc97e8437129f8", "score": "0.61152667", "text": "protected function routes()\n {\n Nova::routes()\n ->withAuthenticationRoutes()\n ->withPasswordResetRoutes()\n ->register();\n }", "title": "" }, { "docid": "c2326651d33dc21bb0bc97e8437129f8", "score": "0.61152667", "text": "protected function routes()\n {\n Nova::routes()\n ->withAuthenticationRoutes()\n ->withPasswordResetRoutes()\n ->register();\n }", "title": "" }, { "docid": "3d8a02e2b3d3f81a1cc165a7c610eb3f", "score": "0.6111694", "text": "public function register_routes() {\n $this->registerBaseRoutes();\n }", "title": "" }, { "docid": "3d8a02e2b3d3f81a1cc165a7c610eb3f", "score": "0.6111694", "text": "public function register_routes() {\n $this->registerBaseRoutes();\n }", "title": "" }, { "docid": "aa3b35391e29f59cfb9ae650d2339499", "score": "0.61012363", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n $this->mapDonorRoutes();\n\n $this->mapHostaffRoutes();\n\n $this->mapCostaffRoutes();\n\n $this->mapMestaffRoutes();\n\n $this->mapAdminRoutes();\n\n }", "title": "" }, { "docid": "90256ceb52ff11e0bf88c0da495c2fa9", "score": "0.6087984", "text": "private function bindRequest()\r\n {\r\n //request uri\r\n $reqUri = $this->bindUri();\r\n\r\n //split and trim request uri\r\n $split = explode(\"/\", $reqUri);\r\n $this->_split = $this->arrayTrim($split);\r\n\r\n //binds module, controller, action and routes\r\n $this->bindModule();\r\n $this->bindController();\r\n $this->bindAction();\r\n $this->bindRoutes();\r\n }", "title": "" }, { "docid": "151c45cbc3b980cb3112a374a95a3f3f", "score": "0.6063671", "text": "public function registerRoutes()\n {\n $this->app['router']->group(['before' => 'oauth'], function () {\n // get all the soldout order and products.\n $this->app['router']->get('soldouts', 'Paxifi\\Order\\Controller\\OrderController@soldouts');\n\n $this->app['router']->get('orders/{order}', 'Paxifi\\Order\\Controller\\OrderController@show');\n\n $this->app['router']->post('orders', 'Paxifi\\Order\\Controller\\OrderController@store');\n\n // Feedback\n $this->app['router']->put('orders/{order}/feedback', 'Paxifi\\Order\\Controller\\OrderController@feedback');\n\n // Payment\n $this->app['router']->post('orders/{order}/payments', 'Paxifi\\Payment\\Controller\\PaymentController@payment');\n });\n }", "title": "" }, { "docid": "cfefa56444f9e0d9b85f86551f1380b8", "score": "0.6047733", "text": "public function register_routes() {\n\t\tregister_rest_route( $this->namespace, '/' . $this->rest_base, array(\n\t\t\tarray(\n\t\t\t\t'methods' => WP_REST_Server::READABLE,\n\t\t\t\t'callback' => array( $this, 'get_item' ),\n\t\t\t\t'permission_callback' => array( $this, 'get_item_permissions_check' ),\n\t\t\t),\n\t\t) );\n\t}", "title": "" }, { "docid": "84a63e308aa8635d78c3080c28e8bbde", "score": "0.60442775", "text": "public function register_routes() {\r\n\t\tregister_rest_route( $this->namespace, '/' . $this->rest_base, array(\r\n array(\r\n 'methods' => WP_REST_Server::READABLE,\r\n 'callback' => array( $this, 'get_items' ),\r\n 'args' => $this->get_collection_params(),\r\n ),\r\n 'schema' => array( $this, 'get_public_item_schema' ),\r\n\t ));\r\n\t}", "title": "" }, { "docid": "c7553a630af97709f25d848c59a9891d", "score": "0.60401213", "text": "protected abstract function registerRoutes();", "title": "" }, { "docid": "74bf9606359640d12ff229f9577d160e", "score": "0.6038174", "text": "protected function boot()\n {\n $indicator = $this->route ? $this->route->getName() : null;\n\n if (!str_contains($indicator, '.')) {\n $indicator = ltrim(str_replace('/', '.', request()->path()), '.');\n }\n\n if (str_contains($indicator, '.') && !starts_with($indicator, '_')) {\n $indicatorArray = explode('.', $indicator);\n $this->action = last($indicatorArray);\n $this->resource = head($indicatorArray);\n $this->modelBaseName = studly_case($this->resource);\n\n if ($modelName = $this->modelClass()) {\n\n $this->model = new $modelName;\n\n $this->query = $this->model->select('*');\n\n $this->routePrefix = $this->model->resourceName();\n }\n }\n }", "title": "" }, { "docid": "3577e8ab333326f1e4eb02a0c18d291a", "score": "0.6035696", "text": "public static function addRestMapping($strRoutePath, $strModel);", "title": "" }, { "docid": "8854f39c6155664caea165e315aaf9db", "score": "0.6027491", "text": "protected function initRoutes()\n {\n // Index\n $this->registerRoute(Request::METHOD_GET, '/')\n ->useController(SampleController::class, 'indexAction')\n ->setName('index');\n\n // Partials sample\n $this->registerRoute(Request::METHOD_GET, '/samples/partials')\n ->useController(SampleController::class, 'partialsSampleAction')\n ->setName('partials sample');\n\n // View helpers sample\n $this->registerRoute(Request::METHOD_GET, '/samples/view-helpers')\n ->useController(SampleController::class, 'viewHelpersSampleAction')\n ->setName('view helpers sample');\n\n // Test route\n $this->registerRoute(Request::METHOD_GET, '/samples/vars/:name')\n ->useController(SampleController::class, 'varsAction')\n ->setName('route vars sample');\n }", "title": "" }, { "docid": "0dc8bd2724ea035fe3f6a7e03f03ea38", "score": "0.6021338", "text": "public function boot()\n {\n //\n\n parent::boot();\n\n Route::bind('product', function($value, $route)\n {\n return hex2bin($value);\n });\n\n Route::bind('offer', function($value, $route)\n {\n return hex2bin($value);\n });\n\n Route::bind('vendor', function($value, $route)\n {\n return hex2bin($value);\n });\n\n Route::bind('category', function($value, $route)\n {\n return hex2bin($value);\n });\n\n Route::bind('user', function($value, $route)\n {\n return hex2bin($value);\n });\n\n Route::bind('message', function($value, $route)\n {\n return hex2bin($value);\n });\n\n Route::bind('conversation', function($value, $route)\n {\n return hex2bin($value);\n });\n\n Route::bind('ticket', function($value, $route)\n {\n return hex2bin($value);\n });\n\n\n Route::bind('purchase', function($value, $route)\n {\n return hex2bin($value);\n });\n\n Route::bind('sales', function($value, $route)\n {\n return hex2bin($value);\n });\n\n\n Route::bind('sale', function($value, $route)\n {\n return hex2bin($value);\n });\n\n Route::bind('profile/sale', function($value, $route)\n {\n return hex2bin($value);\n });\n\n\n\n // Route::bind('shipping', function($value, $route)\n // {\n // #$hashids = new Hashids\\Hashids('MySecretSalt');\n // return Crypt::decryptString($value);\n // });\n\n // Route::bind('options', function($value, $route)\n // {\n // #$hashids = new Hashids\\Hashids('MySecretSalt');\n // return Crypt::decryptString($value);\n // });\n\n // Route::bind('product/edit', function($value, $route)\n // {\n // #$hashids = new Hashids\\Hashids('MySecretSalt');\n // return Crypt::decryptString($value);\n // });\n\n // Route::bind('vendor', function($value, $route)\n // {\n // #$hashids = new Hashids\\Hashids('MySecretSalt');\n // return Crypt::decryptString($value);\n // });\n\n // Route::bind('user', function($value, $route)\n // {\n // #$hashids = new Hashids\\Hashids('MySecretSalt');\n // return Crypt::decryptString($value);\n // });\n\n // Route::bind('category', function($value, $route)\n // {\n // #$hashids = new Hashids\\Hashids('MySecretSalt');\n // return Crypt::decryptString($value);\n // });\n\n\n // Route::bind('address', function ($value, $route) {\n // return $this->getModel(\\App\\Address::class, $value);\n // });\n\n // Route::bind('admin', function ($value, $route) {\n // return $this->getModel(\\App\\Admin::class, $value);\n // });\n\n // Route::bind('ban', function ($value, $route) {\n // return $this->getModel(\\App\\Ban::class, $value);\n // });\n\n // Route::bind('category', function ($value, $route) {\n // return $this->getModel(\\App\\Category::class, $value);\n // });\n\n // Route::bind('conversation', function ($value, $route) {\n // return $this->getModel(\\App\\Conversation::class, $value);\n // });\n\n // Route::bind('dispute', function ($value, $route) {\n // return $this->getModel(\\App\\Dispute::class, $value);\n // });\n\n // Route::bind('feedback', function ($value, $route) {\n // return $this->getModel(\\App\\Feedback::class, $value);\n // });\n\n // Route::bind('image', function ($value, $route) {\n // return $this->getModel(\\App\\Image::class, $value);\n // });\n\n // Route::bind('disputemessage', function ($value, $route) {\n // return $this->getModel(\\App\\DisputeMessage::class, $value);\n // });\n\n // Route::bind('log', function ($value, $route) {\n // return $this->getModel(\\App\\Log::class, $value);\n // });\n\n // Route::bind('message', function ($value, $route) {\n // return $this->getModel(\\App\\Message::class, $value);\n // });\n\n // Route::bind('notification', function ($value, $route) {\n // return $this->getModel(\\App\\Notification::class, $value);\n // });\n\n // Route::bind('offer', function ($value, $route) {\n // return $this->getModel(\\App\\Offer::class, $value);\n // });\n\n // Route::bind('permission', function ($value, $route) {\n // return $this->getModel(\\App\\Permission::class, $value);\n // });\n\n // Route::bind('pgpkey', function ($value, $route) {\n // return $this->getModel(\\App\\PGPKey::class, $value);\n // });\n\n // Route::bind('physicalproduct', function ($value, $route) {\n // return $this->getModel(\\App\\PhysicalProduct::class, $value);\n // });\n\n // Route::bind('product', function ($value, $route) {\n // return $this->getModel(\\App\\Product::class, $value);\n // });\n\n // Route::bind('purchase', function ($value, $route) {\n // return $this->getModel(\\App\\Purchase::class, $value);\n // });\n\n // Route::bind('shipping', function ($value, $route) {\n // return $this->getModel(\\App\\Shipping::class, $value);\n // });\n\n // Route::bind('ticket', function ($value, $route) {\n // return $this->getModel(\\App\\Ticket::class, $value);\n // });\n\n // Route::bind('ticketreply', function ($value, $route) {\n // return $this->getModel(\\App\\TicketReply::class, $value);\n // });\n\n // Route::bind('user', function ($value, $route) {\n // return $this->getModel(\\App\\User::class, $value);\n // });\n\n // Route::bind('vendor', function ($value, $route) {\n // return $this->getModel(\\App\\Vendor::class, $value);\n // });\n\n // Route::bind('vendor', function ($value, $route) {\n // return $this->getModel(\\App\\VendorPurchase::class, $value);\n // });\n\n // Route::bind('permission', function ($value, $route) {\n // return $this->getModel(\\App\\Permission::class, $value);\n // });\n }", "title": "" }, { "docid": "9356ff0d19cf51f390b62e5455104d8e", "score": "0.60073227", "text": "public function boot()\n {\n Route::middlewareGroup('dashboard', [\n Firewall::class,\n RedirectInstall::class,\n ]);\n\n Route::middlewareGroup('access', [\n Firewall::class,\n AccessMiddleware::class,\n ]);\n\n $this->binding();\n\n parent::boot();\n }", "title": "" }, { "docid": "abdf638f3b0664dbba32d6e62c92c64c", "score": "0.60058105", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n $this->mapSchoolCollegeVersityRoutes();\n\n $this->mapSchoolCollegeVersityRoutes();\n\n $this->mapStudentRoutes();\n\n $this->mapIndividualRoutes();\n\n $this->mapWelfareRoutes();\n\n $this->mapInstitutionRoutes();\n\n //\n }", "title": "" }, { "docid": "969cfe5779cfbc887c6af507334d1087", "score": "0.6005665", "text": "public function map(){\n $this->mapApiRoutes();\n $this->mapWebRoutes();\n }", "title": "" }, { "docid": "ece07e91c13feeb46b24cca70db1e804", "score": "0.59917176", "text": "public function map()\n {\n $this->mapApiRoutes();\n //==============================================\n $this->mapApiRoutesAdmin();\n $this->mapApiRoutesTreasury();\n $this->mapApiRoutesControl();\n $this->mapApiRoutesHeadmaster();\n $this->mapApiRoutesGeneral();\n\n $this->mapWebRoutes();\n\n //\n }", "title": "" }, { "docid": "6f4110555d0f99980b0b279480a734d4", "score": "0.59645516", "text": "public function routes()\n {\n $this->router->group([\n 'prefix' => 'cnpj',\n 'as' => 'cnpj.',\n ], function () {\n $this->router->get('validate/{cnpj}', ['as' => 'validate', 'uses' => 'CnpjController@validateCnpj']);\n });\n /*\n |------------------------------------------------------------------------------\n | Cpf Api\n |------------------------------------------------------------------------------\n */\n $this->router->group([\n 'prefix' => 'cpf',\n 'as' => 'cpf.',\n ], function () {\n $this->router->get('validate/{cpf}', ['as' => 'validate', 'uses' => 'CpfController@validateCpf']);\n });\n }", "title": "" }, { "docid": "23564c6aa3b86a72f75b7d8fb7125e6e", "score": "0.59631884", "text": "public function boot()\n {\n parent::boot();\n\n Route::bind('teamRequest', function ($value) {\n if ($value === 'bulkTeamRequest') {\n return $this->registerEntity4Bulk($value);\n }\n });\n }", "title": "" }, { "docid": "2c46af26511e6f651dccdae11ee70ad8", "score": "0.5953679", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n $this->mapAuthenticationRoutes();\n\n $this->mapProfileRoutes();\n\n $this->mapAdminRoutes();\n\n $this->mapTeamRoutes();\n\n //\n }", "title": "" }, { "docid": "dff21f5fc05653fb995dff1ff324d112", "score": "0.595005", "text": "public function register_routes() {\n\n register_rest_route(\n $this->namespace, '/' . $this->rest_base, array(\n array(\n 'methods' => WP_REST_Server::READABLE,\n 'callback' => array( $this, 'get_removed_items' ),\n 'permission_callback' => array( $this, 'get_items_permissions_check' ),\n 'args' => $this->get_collection_params(),\n ),\n 'schema' => array( $this, 'get_public_item_schema' ),\n )\n );\n\n\t}", "title": "" }, { "docid": "dd6a1412e8cf0a4bb3d6767097a40fe1", "score": "0.5947927", "text": "public function route();", "title": "" }, { "docid": "82ec50eebfd27f8293c75f1873a6c1cf", "score": "0.5925526", "text": "protected function registerRoutes()\n {\n //加载路由\n $this->loadRoutesFrom(\n $this->app->make('path.haxibiao-wallet') . '/router.php'\n );\n }", "title": "" }, { "docid": "d56b01cf85dd0f9bcc9f54a1f498020a", "score": "0.59244686", "text": "function app_map_routes(yapf\\plugin\\AltoRouter $router)\n{\n # routes are executed in mappings order - place the most generic at the END\n # default route. Usually will suffice, so don't remove unless you know what are you doing\n $router->map('GET|POST|DELETE', '/[a:controller]/[a:action]?/[a:id]?', null);\n}", "title": "" }, { "docid": "e761a87a5f078f62f66855264fb1a491", "score": "0.5919431", "text": "function route(){\n \n }", "title": "" }, { "docid": "10f90bd44ca980e123899325f4a0bf44", "score": "0.5897632", "text": "public function map()\n {\n $this->mapMainRoutes();\n $this->mapAdminRoutes();\n $this->mapApiRoutes();\n }", "title": "" }, { "docid": "1b1cbb987b53fad1492b6b2a170fe8ea", "score": "0.5896871", "text": "protected function fillRoutes()\n\t{\n\t\t$this->route(\n\t\t\t'index',\n\t\t\t'/',\n\t\t\tarray('controller' => 'Main', 'action' => 'index')\n\t\t);\n\n\t\t// /ajax/PublicAjax/get_items/\n\t\t// /ajax/AdminAjax/create_dir/\n\t\t$this->route(\n\t\t\t'ajax',\n\t\t\t'/ajax/(PublicAjax|AdminAjax):controller/:action/'\n\t\t);\n\n\t\t// set handler for unrouted requests (a fallback route)\n\t\t$fallbackRoute = new Route(\n\t\t\t$this->getDefaultDispatcher(),\n\t\t\tParameterImportRule::multiple(array(\n\t\t\t\t'controller' => 'Main',\n\t\t\t\t'action' => '404'\n\t\t\t))\n\t\t);\n\n\t\t$this->setFallbackRoute($fallbackRoute);\n\t}", "title": "" }, { "docid": "33b4fa19b1a33c7ce733a57a929df45d", "score": "0.5893425", "text": "protected function _initRoutes()\n\t{\n\t\t$frontController = Zend_Controller_Front::getInstance();\n\t\t$router = $frontController->getRouter();\n\t\t\n\t\t//initialize rest route\n\t\t$restRoute = new Zend_Rest_Route($frontController, array(), array('api'));\n\t\t$router->addRoute('rest', $restRoute);\n\t\t\n\t\t//routes\n\t\t$router->addRoute(\n\t\t\t'home',\n\t\t\tnew Zend_Controller_Router_Route(\n\t\t\t\t'/home', \n\t\t\t\tarray('module' => 'default', 'controller' => 'index', 'action' => 'index')\n\t\t\t)\n\t\t);\n\t\t$router->addRoute(\n\t\t\t\t'aboutus',\n\t\t\t\tnew Zend_Controller_Router_Route(\n\t\t\t\t\t'/aboutus', \n\t\t\t\t\tarray('module' => 'default', 'controller' => 'index', 'action' => 'aboutus')\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\t\n\t\t$router->addRoute(\n\t\t\t\t'addItemEmpty',\n\t\t\t\tnew Zend_Controller_Router_Route(\n\t\t\t\t\t'/addItem', \n\t\t\t\t\tarray('module' => 'default', 'controller' => 'index', 'action' => 'index')\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\t\n\t\t$router->addRoute(\n\t\t\t\t'addItem',\n\t\t\t\tnew Zend_Controller_Router_Route(\n\t\t\t\t\t'/addItem/:itemID', \n\t\t\t\t\tarray('module' => 'default', 'controller' => 'index', 'action' => 'additem')\n\t\t\t\t\t)\n\t\t\t\t);\n\t}", "title": "" }, { "docid": "d13db6d45791961f1a79c3f713a25361", "score": "0.58923507", "text": "public static function defineRoutes(DiInterface $di) {\n /* @var $router \\Phalcon\\Mvc\\Router */\n $router = $di->get('router');\n $uriprefix = static::getRouteUriPrefix($di);\n \n // get a list of real controller names within this module\n // it will route to the controller if it exists,\n // else to the correct Action in indexController\n $ctrlmatch = implode('|',static::getControllerList());\n \n $router->add(\"{$uriprefix}/:params\",static::routeconf([\n 'params' => 1\n ]));\n $router->add(\"{$uriprefix}/:action/:params\",static::routeconf([\n 'action' => 1,\n 'params' => 2\n ]));\n $router->add(\"{$uriprefix}/({$ctrlmatch})/:params\",static::routeconf([\n 'controller' => 1,\n 'params' => 2\n ]));\n $router->add(\"{$uriprefix}/({$ctrlmatch})/:action/:params\",static::routeconf([\n 'controller' => 1,\n 'action' => 2,\n 'params' => 3\n ]));\n }", "title": "" }, { "docid": "b22d6293d3709ce98b04773c388e5e4b", "score": "0.5891002", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n //\n }", "title": "" }, { "docid": "b22d6293d3709ce98b04773c388e5e4b", "score": "0.5891002", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n //\n }", "title": "" }, { "docid": "b22d6293d3709ce98b04773c388e5e4b", "score": "0.5891002", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n //\n }", "title": "" }, { "docid": "1cd1341bb053bf3e6492d4791e1e4c29", "score": "0.5884653", "text": "public function load_routes()\n {\n }", "title": "" }, { "docid": "56bbeb2572c00b0af6ae6aef1daa95a0", "score": "0.5883447", "text": "protected function setRoutes()\n\t{\n\t\t$this->addRoute('/', 'Welcome');\n\t\tparent::setRoutes();\n\t}", "title": "" }, { "docid": "f21140f18411a93f450a0e4f404fed66", "score": "0.5876475", "text": "function route()\r\n {\r\n $this->initUser();\r\n\r\n $request = $this->args->request;\r\n switch ($keyword = isset($request[0]) ? $request[0] : false) {\r\n case 'ajax':\r\n case 'json':\r\n case 'xml':\r\n $this->route_ajax($keyword);\r\n break;\r\n default:\r\n $this->route_normal();\r\n }\r\n }", "title": "" }, { "docid": "d2cfc0e29c948cadef41db350b3d32d6", "score": "0.58749694", "text": "public function register_routes() {\r\n\t\tadd_action( 'rest_api_init', array( $this, 'register_api_hooks'));\r\n }", "title": "" }, { "docid": "9f1f07a65d5950f7f9fdaea6936b6ca7", "score": "0.5866606", "text": "protected function routes()\n {\n AtomicPanel::routes()\n ->withAuthenticationRoutes()\n ->withPasswordResetRoutes();\n }", "title": "" }, { "docid": "72b692bc684820c363136f092119b009", "score": "0.5862483", "text": "public function boot()\n {\n parent::boot();\n\n Route::bind('domain', function ($domain) {\n $service = new \\Xzxzyzyz\\ConohaAPI\\Services\\Mail\\DomainService;\n\n return $service->findorFail($domain);\n });\n\n Route::bind('email', function ($email, \\Illuminate\\Routing\\Route $route) {\n $domain = $route->parameter('domain');\n\n if (is_null($domain)) {\n $domain = $route->parameter('domainId');\n }\n\n return $domain->emails()->findorFail($email);\n });\n\n Route::bind('domainId', function ($domainId, \\Illuminate\\Routing\\Route $route) {\n $domain = new \\Xzxzyzyz\\ConohaAPI\\Entities\\Domain(['domain_id' => $domainId]);\n\n if (! $route->hasParameter('domain')) {\n $route->setParameter('domain', $domain);\n }\n\n return $domain;\n });\n\n Route::bind('emailId', function ($emailId, \\Illuminate\\Routing\\Route $route) {\n $email = new \\Xzxzyzyz\\ConohaAPI\\Entities\\Email(['email_id' => $emailId]);\n\n if (! $route->hasParameter('email')) {\n $route->setParameter('email', $email);\n }\n\n $email->domain_id = optional($route->parameter('domain'))->domain_id;\n\n return $email;\n });\n\n Route::bind('messageId', function ($messageId, \\Illuminate\\Routing\\Route $route) {\n $message = new \\Xzxzyzyz\\ConohaAPI\\Entities\\Message(['message_id' => $messageId]);\n\n if (! $route->hasParameter('message')) {\n $route->setParameter('message', $message);\n }\n\n $message->domain_id = optional($route->parameter('domain'))->domain_id;\n $message->email_id = optional($route->parameter('email'))->email_id;\n\n return $message;\n });\n }", "title": "" }, { "docid": "69a3aff1daeb0a8df69da9116724bd5b", "score": "0.58573884", "text": "public function map() {\n\t\t$this->mapWebRoutes();\n\n\t\t$this->mapApiRoutes();\n\t}", "title": "" }, { "docid": "8dfaeb99c42007999cc11a5908ad49b4", "score": "0.5856255", "text": "public function map()\n {\n $this->mapWebRoutes();\n\n $this->mapApiRoutes();\n\n //\n }", "title": "" }, { "docid": "6cfa3c3eda2cb6d44dc1d60643e5c488", "score": "0.58480734", "text": "private function _set_routing()\r\n\t\t{\r\n\t\t\tinclude APPPATH.\"config/router.php\";\r\n\r\n\t\t\t$this->routes = ((isset($routes) && is_array($routes)) ? $routes : []);\r\n\t\t\tunset($routes);\r\n\r\n\t\t\tif ($this->uri->uri_string == \"\")\r\n\t\t\t{\r\n\t\t\t\t$this->_set_default_controller();\r\n\t\t\t}\r\n\r\n\t\t\tif (count($this->uri->segments) > 0)\r\n\t\t\t{\r\n\t\t\t\treturn $this->_validate_request();\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "fa493561ef75ae9c02188a7e52a4904c", "score": "0.58429986", "text": "protected function _set_routing()\n {\n // since URI segments are more search-engine friendly, but they can optionally be used.\n // If this feature is enabled, we will gather the directory/class/method a little differently\n if ($this->enable_query_strings)\n {\n $_d = $this->config->item('directory_trigger');\n $_d = isset($_GET[$_d]) ? trim($_GET[$_d], \" \\t\\n\\r\\0\\x0B/\") : '';\n if ($_d !== '')\n {\n $this->uri->filter_uri($_d);\n $this->set_directory($_d);\n }\n\n $_c = trim($this->config->item('controller_trigger'));\n if ( ! empty($_GET[$_c]))\n {\n $this->uri->filter_uri($_GET[$_c]);\n $this->set_class($_GET[$_c]);\n\n $_f = trim($this->config->item('function_trigger'));\n if ( ! empty($_GET[$_f]))\n {\n $this->uri->filter_uri($_GET[$_f]);\n $this->set_method($_GET[$_f]);\n }\n\n $this->uri->rsegments = array(\n 1 => $this->class,\n 2 => $this->method\n );\n }\n else\n {\n $this->_set_default_controller();\n }\n\n // Routing rules don't apply to query strings and we don't need to detect\n // directories, so we're done here\n return;\n }\n\n // Load the routes.php file.\n if (file_exists(APPPATH.'config/routes.php'))\n {\n include(APPPATH.'config/routes.php');\n }\n\n if (file_exists(APPPATH.'config/'.ENVIRONMENT.'/routes.php'))\n {\n include(APPPATH.'config/'.ENVIRONMENT.'/routes.php');\n }\n\n // Validate & get reserved routes\n if (isset($route) && is_array($route))\n {\n isset($route['default_controller']) && $this->default_controller = $route['default_controller'];\n isset($route['translate_uri_dashes']) && $this->translate_uri_dashes = $route['translate_uri_dashes'];\n unset($route['default_controller'], $route['translate_uri_dashes']);\n $this->routes = $route;\n }\n\n // Is there anything to parse?\n if ($this->uri->uri_string !== '')\n {\n $this->_parse_routes();\n }\n else\n {\n if( ! is_null($this->input->cookie('lang')))\n {\n $this->config->set_item('language', $this->input->cookie('lang'));\n }\n $this->_set_default_controller();\n }\n }", "title": "" }, { "docid": "a5c173c64985359df390da18f0133f19", "score": "0.5841784", "text": "public function bind(Router $router);", "title": "" }, { "docid": "81adb5a6fd84c9cd7cbd462122e0db4e", "score": "0.5840533", "text": "public function addRoute();", "title": "" }, { "docid": "ee5de3782f1c42d88df6f5b77760e046", "score": "0.5839319", "text": "public function map()\n {\n $this->loadRoutesFrom(app_path('Http/routes.php'));\n }", "title": "" }, { "docid": "ee5de3782f1c42d88df6f5b77760e046", "score": "0.5839319", "text": "public function map()\n {\n $this->loadRoutesFrom(app_path('Http/routes.php'));\n }", "title": "" }, { "docid": "06f2290177a943ad90ee2780daedd541", "score": "0.5832423", "text": "public function boot()\n\t{\n $this->package('jlapp/bookbinder');\n// App::bind('TransformModel', function() { return new TransformModel;});\n// App::bind('EpubModel', function() { return new EpubModel;});\n \n require_once __DIR__ .'/routes.php';\n\t}", "title": "" }, { "docid": "7e4b2b49f4fd76deaa46fe879552831b", "score": "0.58307254", "text": "public function register_routes() {\n\n\t\tregister_rest_route( $this->namespace, '/' . $this->rest_base, array(\n\t\t\tarray(\n\t\t\t\t'methods' => WP_REST_Server::READABLE,\n\t\t\t\t'callback' => array( $this, 'get_items' ),\n\t\t\t\t'permission_callback' => array( $this, 'get_items_permissions_check' ),\n\t\t\t\t'args' => $this->get_collection_params(),\n\t\t\t),\n\t\t\t'schema' => array( $this, 'get_public_item_schema' ),\n\t\t) );\n\n\t\tregister_rest_route( $this->namespace, '/' . $this->rest_base . '/(?P<type>[\\w-]+)', array(\n\t\t\t'args' => array(\n\t\t\t\t'type' => array(\n\t\t\t\t\t'description' => __( 'An alphanumeric identifier for the post type.' ),\n\t\t\t\t\t'type' => 'string',\n\t\t\t\t),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'methods' => WP_REST_Server::READABLE,\n\t\t\t\t'callback' => array( $this, 'get_item' ),\n\t\t\t\t'args' => array(\n\t\t\t\t\t'context' => $this->get_context_param( array( 'default' => 'view' ) ),\n\t\t\t\t),\n\t\t\t),\n\t\t\t'schema' => array( $this, 'get_public_item_schema' ),\n\t\t) );\n\t}", "title": "" }, { "docid": "3425d3f878be39adeb7f87b9675ba552", "score": "0.5822542", "text": "public function setRouteMethodes ():Router\n\t{\n\t\t$routePath = __DIR__ . '/../app/route.php';\n\t\tif (is_file($routePath)) {\n\t\t\trequire_once $routePath;\n\n\t\t\tif (isset($get) && is_array($get)) {\n\t\t\t\t$this->get = $get;\n\t\t\t}\n\n\t\t\tif (isset($post) && is_array($post)) {\n\t\t\t\t$this->post = $post;\n\t\t\t}\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "f3dee2cd50193eb15e2e98ba1907cb24", "score": "0.58217937", "text": "function initRoutes(App $app) {\n global $auth;\n\n $app->post('/auth', '\\Routes\\AuthRoute:performAuthentication');\n $app->get('/libraries', '\\Routes\\LibraryRoute:getLibraries');\n\n $app->group('/user', function () {\n $this->get('[/]', '\\Routes\\UserRoute:getUserInformation');\n $this->get('/settings', '\\Routes\\UserRoute:getSettings');\n $this->post('/settings', '\\Routes\\UserRoute:changeSetting');\n\n })->add($auth);\n\n $app->get('/settings', '\\Routes\\SettingsRoute:getSettings')->add($auth);\n\n $app->group('/cart', function () {\n $this->get('[/page/{page}[/offset/{offset}]]', '\\Routes\\CartRoute:getCartView');\n $this->get('/info', '\\Routes\\CartRoute:getCartInformation');\n $this->post('/add', '\\Routes\\CartRoute:addTitlesToCart');\n $this->post('/remove', '\\Routes\\CartRoute:removeTitlesFromCart');\n $this->get('/orderlist', '\\Routes\\CartRoute:getOrderlist');\n $this->post('/order', '\\Routes\\CartRoute:order');\n })->add($auth);\n\n $app->group('/watchlist', function () {\n $this->get('/list', '\\Routes\\WatchlistRoute:getWatchlists');\n $this->get('/{id}[/page/{page}[/offset/{offset}]]', '\\Routes\\WatchlistRoute:getWatchlistView');\n $this->post('/{id}/add', '\\Routes\\WatchlistRoute:addTitlesToWatchlist');\n $this->post('/{id}/remove', '\\Routes\\WatchlistRoute:removeTitlesFromWatchlist');\n $this->delete('/{id}', '\\Routes\\WatchlistRoute:deleteWatchlist');\n $this->put('/new', '\\Routes\\WatchlistRoute:addWatchlist');\n $this->patch('/order', '\\Routes\\WatchlistRoute:changeWatchlistOrder');\n $this->post('/{id}/rename', '\\Routes\\WatchlistRoute:renameWatchlist');\n $this->post('/default', '\\Routes\\WatchlistRoute:changeDefaultWatchlist');\n })->add($auth);\n\n $app->group('/search', function () {\n $this->get('/{query}/{queryType}[/page/{page}[/offset/{offset}]]', '\\Routes\\SearchRoute:searchTitles');\n $this->get('/options', '\\Routes\\SearchRoute:getSearchOptions');\n })->add($auth);\n\n\n $app->group('/overview', function () {\n $this->get('[/page/{page}[/offset/{offset}]]', '\\Routes\\OverviewRoute:getMainView');\n })->add($auth);\n\n $app->group('/rejected', function () {\n $this->get('[/page/{page}[/offset/{offset}]]', '\\Routes\\RejectRoute:getRejectedView');\n $this->post('/add', '\\Routes\\RejectRoute:addRejectedTitles');\n $this->post('/remove', '\\Routes\\RejectRoute:removeRejectedTitles');\n })->add($auth);\n\n $app->group('/pending', function () {\n $this->get('[/page/{page}[/offset/{offset}]]', '\\Routes\\PendingRoute:getPendingView');\n })->add($auth);\n\n $app->group('/done', function () {\n $this->get('[/page/{page}[/offset/{offset}]]', '\\Routes\\DoneRoute:getDoneView');\n })->add($auth);\n\n $app->group('/titles', function () {\n $this->get('/{id}/info', '\\Routes\\TitleRoute:titleInfo');\n $this->get('/{id}/opac', '\\Routes\\TitleRoute:getOPACLink');\n $this->get('/{id}/pica', '\\Routes\\TitleRoute:getTitlePicaData');\n $this->patch('/{id}/user', '\\Routes\\TitleRoute:changeTitleUser');\n $this->post('/save', '\\Routes\\TitleRoute:saveTitleInformation');\n $this->delete('/delete', '\\Routes\\TitleRoute:delete');\n })->add($auth);\n\n $app->get('/cover/{isbn}[/{size}]', '\\Routes\\CoverRoute:getCover')->add($auth);\n\n $app->get('/status', function (){});\n}", "title": "" }, { "docid": "0103eea75d10b860e291b90b90e0e358", "score": "0.5815031", "text": "public function routeStartup() {}", "title": "" }, { "docid": "44e60414c6354a7feb0328e97e8479b0", "score": "0.5809296", "text": "protected function routeStore()\n {\n }", "title": "" }, { "docid": "b85c10a79e1c1a179e642993d36d644f", "score": "0.58009434", "text": "function boot()\n{\n parent::boot();\n // Perform the binding\n Route::model('event', Conference::class);\n}", "title": "" }, { "docid": "648749e733ee9ff6589c22c4cec06841", "score": "0.579845", "text": "protected function init()\n {\n $routes = $this->routePluginManager;\n foreach ([\n 'catchall' => __NAMESPACE__ . '\\Catchall',\n 'simple' => __NAMESPACE__ . '\\Simple',\n ] as $name => $class\n ) {\n $routes->setInvokableClass($name, $class);\n };\n }", "title": "" }, { "docid": "0fb24634c570768dbdafa4baaf90f681", "score": "0.5798019", "text": "public function map()\n {\n /** 歌部門 **/\n $this->mapSongWebRoutes();\n $this->mapSongApiRoutes();\n\n /** 漫才部門 **/\n $this->mapManzaiWebRoutes();\n\n /** 管理画面 **/\n $this->mapAdminWebRoutes();\n $this->mapAdminApiRoutes();\n }", "title": "" }, { "docid": "59282212ab5c86c7ce1d5db0611560fd", "score": "0.5794546", "text": "public static function registerRoutes()\n {\n Route::get('ddviewer', 'Kilimall\\Viewer\\Controllers\\ViewerController@index');\n }", "title": "" }, { "docid": "f49aab5799b54f46529836938fe03a5a", "score": "0.57941693", "text": "public function __construct()\n {\n app()->booted(function () {\n $this->setModelInstanceFromCurrentRoute();\n });\n }", "title": "" }, { "docid": "0608d24bf98037f2a84b3cac6be54563", "score": "0.5793768", "text": "public function setOilRoutes()\n\t{\n\t\t// Clean normal controller routes\n\t\t$this->routes = array();\n\n\t\t// Change default Route class for DiC forge\n\t\t$this->dic->setClass('Route', 'Fuel\\\\Kernel\\\\Route\\\\Task');\n\n\t\t// Add Task routes\n\t\t$this->addRoute('(.*)', '$1');\n\t}", "title": "" }, { "docid": "55861fc416b9103a9b890b8450d21162", "score": "0.57931215", "text": "public static function handler ()\r\n {\r\n\r\n if (self::get_router() === true)\r\n {\r\n $regex = null;\r\n $class = null;\r\n $class_path = null;\r\n $object = null;\r\n $function = null;\r\n $parameters = null;\r\n\r\n\r\n foreach (self::$_rule as $rule)\r\n {\r\n $regex = self::resource_to_regex($rule['regex']);\r\n\r\n if (preg_match($regex,self::$_requested['resource']))\r\n {\r\n\r\n if ($rule['method'] == self::$_requested['method'])\r\n {\r\n\r\n // check class\r\n $class = $rule['class'];\r\n $class_path = APP_PATH.'controllers/'.$rule['path'].$class.'.php';\r\n\r\n if (file_exists($class_path))\r\n {\r\n require_once $class_path;\r\n\r\n // check if class exists\r\n if (class_exists($class))\r\n {\r\n $object = new $class();\r\n\r\n // check object functions (methods).\r\n $function = $rule['function'];\r\n $parameters = $rule['parameters'];\r\n\r\n if (method_exists($class,$function))\r\n {\r\n\r\n if (!is_null($parameters) && is_array($parameters))\r\n {\r\n call_user_func_array(\r\n array($object,$function),\r\n self::get_parameters($parameters));\r\n }\r\n else\r\n {\r\n $object->$function();\r\n }\r\n\r\n }\r\n else\r\n {\r\n cliprz::system(error)->show_404();\r\n }\r\n\r\n }\r\n else\r\n {\r\n cliprz::system(error)->show_404();\r\n }\r\n\r\n }\r\n else\r\n {\r\n cliprz::system(error)->show_404();\r\n }\r\n\r\n }\r\n\r\n // if regex matched break the loop\r\n break;\r\n }\r\n\r\n }\r\n\r\n // Unset data\r\n unset($regex,$class,$class_path,$object,$function,$parameters);\r\n self::$_rule = array();\r\n self::$_map = array();\r\n self::$_requested = array();\r\n\r\n }\r\n else\r\n {\r\n //c_redirecting(\"Home\");\r\n cliprz::system(error)->show_404();\r\n }\r\n\r\n }", "title": "" }, { "docid": "0d011b8209caf12f63fd9175aa16dbb4", "score": "0.57782155", "text": "public function boot()\n\t{\n\t\t$this->setupRoutes($this->app->router);\n\t}", "title": "" }, { "docid": "003a5fd60ebf1692fe846bd15b144d46", "score": "0.57773584", "text": "public function all()\n {\n $this->forRestfulRoute();\n $this->forCustomRoute();\n }", "title": "" }, { "docid": "81deba739c3ca1b5fbf512698e736e0e", "score": "0.5767586", "text": "public function map()\n {\n $this->mapAjaxRoutes();\n\n $this->mapApiRoutes();\n }", "title": "" }, { "docid": "35a003c88fd64d03c47f8208df58bc31", "score": "0.5764013", "text": "public function boot()\n {\n //\n\n parent::boot();\n\n Route::model('category', \\App\\Models\\Category::class);\n Route::model('voucher', \\App\\Models\\Voucher::class);\n \n // Route::model('shopKeeper', App\\Models\\ShopKeeper::class);\n Route::model('shopKeeperCategory', \\App\\Models\\ShopKeeperCategory::class);\n \n Route::model('office', \\App\\Models\\Office::class);\n Route::model('budget', \\App\\Models\\Budget::class);\n Route::model('budgetCategory', \\App\\Models\\BudgetCategory::class);\n \n Route::model('voucher_transaction', \\App\\Models\\Transaction::class);\n Route::model('user', \\App\\Models\\User::class);\n\n Route::bind('shopKeeper', function ($shopKeeper) {\n return \\App\\Models\\ShopKeeper::find($shopKeeper);\n });\n\n Route::bind('device_approve_token', function ($token) {\n return \\App\\Models\\Device::whereApproveToken($token)->first();\n });\n\n Route::bind('voucher_code', function ($code) {\n return \\App\\Models\\Voucher::whereCode($code)->first();\n });\n\n Route::bind('voucherAddress', function ($address) {\n $wallet = \\App\\Models\\Wallet::where([\n 'address' => $address,\n 'walletable_type' => \\App\\Models\\Voucher::class\n ])->first();\n\n return $wallet ? $wallet->walletable : $wallet;\n });\n }", "title": "" }, { "docid": "7bc06cce970ee43531691849ba47580e", "score": "0.57625115", "text": "protected function registerBindings()\n {\n $this->app->bind(ResolverInterface::class, function () {\n $ad = $this->app->make(Roycedb::class);\n\n $ur = new UserResolver($ad);\n\n return $ur;\n });\n }", "title": "" }, { "docid": "55cda07dd802a83c04a6cd3ba1caa478", "score": "0.5760552", "text": "public function map()\n {\n $this->mapApiRoutes();\n\n //\n }", "title": "" } ]
9fc3075253f1170edce8eb643eaa26aa
Altas, bajas, modificaciones en la tabla seg_users
[ { "docid": "94ab7cbf4b23c2bc9a18656ef8fc0512", "score": "0.0", "text": "public static function abm($auth, $action, $data = [])\n {\n try {\n $sql = \"select * from sp_user_abm(?,?,?) as result\";\n return DB::select($sql, [\n Json::encode($auth),\n $action,\n Json::encode($data)\n ])[0]->result;\n } catch (\\Illuminate\\Database\\QueryException $e) {\n return queryErrorParse($e);\n }\n }", "title": "" } ]
[ { "docid": "f616d7cf5258fca882c7abb610702745", "score": "0.6145689", "text": "private function tbl_usuarios() {\r\n\t\t\t$this->usuarios = $this->esquema->createTable('USUARIOS');\r\n\t\t\t$this->usuarios->addColumn('ID', 'bigint', array(\r\n\t\t\t\t'notnull' => true,\r\n\t\t\t\t'autoincrement' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del Usuario'\r\n\t\t\t));\r\n\t\t\t$this->usuarios->addColumn('USUARIO', 'string', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 255,\r\n\t\t\t\t'comment' => 'Usuario de Ingreso'\r\n\t\t\t));\r\n\t\t\t$this->usuarios->addColumn('PASSWORD', 'string', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 255,\r\n\t\t\t\t'comment' => 'Contraseña de Ingreso'\r\n\t\t\t));\r\n\t\t\t$this->usuarios->addColumn('NOMBRE', 'string', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 255,\r\n\t\t\t\t'comment' => 'Nombres del Usuario'\r\n\t\t\t));\r\n\t\t\t$this->usuarios->addColumn('APELLIDO', 'string', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 255,\r\n\t\t\t\t'comment' => 'Apellidos del Usuario'\r\n\t\t\t));\r\n\t\t\t$this->usuarios->addColumn('CEDULA', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'Cedula del Usuario'\r\n\t\t\t));\r\n\t\t\t$this->usuarios->addColumn('USUARIO_RR', 'string', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 255,\r\n\t\t\t\t'comment' => 'Usuario de RR'\r\n\t\t\t));\r\n\t\t\t$this->usuarios->addColumn('CORREO', 'string', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 255,\r\n\t\t\t\t'comment' => 'Correo electronico del Usuario'\r\n\t\t\t));\r\n\t\t\t$this->usuarios->addColumn('ESTADO', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del Estado del Usuario [ID de la tabla ESTADOS]'\r\n\t\t\t));\r\n\t\t\t$this->usuarios->addColumn('EMPRESA', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID de la Empresa del Usuario [ID de la tabla USUARIOS_EMPRESA]'\r\n\t\t\t));\r\n\t\t\t$this->usuarios->addColumn('CARGO', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del Cargo del Usuario [ID de la tabla USUARIOS_CARGO]'\r\n\t\t\t));\r\n\t\t\t$this->usuarios->addColumn('PERMISO', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del Permiso del Usuario [ID de la tabla PERMISOS]'\r\n\t\t\t));\r\n\t\t\t\r\n\t\t\t$this->usuarios->setPrimaryKey(array('ID'));\r\n\t\t\t$this->usuarios->addForeignKeyConstraint($this->estados, array('ESTADO'), array('ID'), $this->opcForeign);\r\n\t\t\t$this->usuarios->addForeignKeyConstraint($this->usuarios_empresa, array('EMPRESA'), array('ID'), $this->opcForeign);\r\n\t\t\t$this->usuarios->addForeignKeyConstraint($this->usuarios_cargo, array('CARGO'), array('ID'), $this->opcForeign);\r\n\t\t\t$this->usuarios->addForeignKeyConstraint($this->permisos, array('PERMISO'), array('ID'), $this->opcForeign);\r\n\t\t}", "title": "" }, { "docid": "08f619891b5f46700682b4b7cf4cab99", "score": "0.596121", "text": "function modeloUserGetAll (){\n // Genero lo datos para la vista que no muestra la contraseña ni los códigos de estado o plan\n // sino su traducción a texto\n $db = AccesoDatos::getModelo();\n $tusuarios = $db->getUsuarios();\n foreach ($tusuarios as $clave=>$user){\n \n $tabla[$user->id]= ['nombre'=>$user->nombre,\n 'correo'=>$user->correo,\n 'plan'=>PLANES[$user->plan],\n 'estado'=>ESTADOS[$user->estado],\n ];\n }\n return $tabla;\n}", "title": "" }, { "docid": "ad04e089072e16d8f0a59ec8439a9e5f", "score": "0.59367836", "text": "function fetchTabelaUsersAtivos($conn) {\n $sql = \"SELECT U.*, T.descricao FROM utilizador U, tipoUtilizador T WHERE tipoUtilizador <> '4' AND tipoUtilizador <> '6' AND T.idTipoUtilizador = U.tipoUtilizador ORDER BY U.data\";\n $retval = mysqli_query($conn, $sql);\n if(mysqli_num_rows($retval) != 0) {\n while($row = mysqli_fetch_array($retval, MYSQLI_ASSOC)) {\n mostrarDadosTabela($row); \n }\n } else {\n return false;\n }\n mysqli_close($conn);\n}", "title": "" }, { "docid": "3effb8c07bba52c1a77399e2b7c353da", "score": "0.5862614", "text": "public function createUnifiedUserTable () {\n\n\t\t$this->output( \"\\n# Creating unified user table. \\n\" );\n\n\t\t$this->userArrayForInsert = array();\n\t\twhile( $row = array_pop( $this->userArray ) ) {\n\n\t\t\t$i = count( $this->userArrayForInsert );\n\t\t\tforeach( $this->userTableRows as $key ) {\n\n\t\t\t\t// if $key doesn't start with \"user_\" then skip it (it's not a valid field name)\n\t\t\t\tif ( strpos( $key, \"user_\" ) !== 0 ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$this->userArrayForInsert[$i][$key] = $row[$key];\n\t\t\t}\n\n\t\t}\n\n\t\t$db = $this->wikiDBs[$this->primeWiki];\n\t\t$db->query( 'DELETE FROM user' );\n\t\t$db->insert(\n\t\t\t'user',\n\t\t\t$this->userArrayForInsert,\n\t\t\t__METHOD__\n\t\t);\n\t\t$autoInc = count( $this->userArrayForInsert ) + 1;\n\t\t$db->query( \"ALTER TABLE user AUTO_INCREMENT = $autoInc;\" );\n\n\t}", "title": "" }, { "docid": "dcac1c812274de7dc80f7bbabf94a393", "score": "0.58588517", "text": "function users(){\n\t$listado= mysql_query(\"select us.name as name, us.email as email , co.name as pais\n\tfrom users us\n\tjoin country co on co.Code=us.countryCode\");\n\t\n\t$i = 1;\n\t\n\twhile ($reg = mysql_fetch_array($listado)) {\n\t\techo '<tr>';\n\t\techo '<td >' . $i . '</td>';\n\t\techo '<td >' . mb_convert_encoding($reg['name'], \"UTF-8\") . '</td>';\n\t\techo '<td >' . mb_convert_encoding($reg['email'], \"UTF-8\") . '</td>';\n\t\techo '<td >' . mb_convert_encoding($reg['pais'], \"UTF-8\") . '</td>';\n\t\techo '</tr>';\n\t\t$i++;\n\t}\n}", "title": "" }, { "docid": "83dee757417ab8ce913976491b25011d", "score": "0.58244216", "text": "function tampil_data_user()\n\t{\n\t\t$data = mysqli_query($this->connect, \"select * from user\");\n\t\twhile ($d = mysqli_fetch_array($data)) {\n\t\t\t$hasil[] = $d;\n\t\t}\n\t\treturn $hasil;\n\t}", "title": "" }, { "docid": "9a97d017b317e4deae217476c188ab54", "score": "0.5816878", "text": "public function change()\n {\n $tableAdmin=$this-> table('wtv_user',['id' => false, 'primary_key' => ['user_id']]);\n $tableAdmin\n ->addColumn('user_id','integer')\n ->addColumn('user_code','string',['limit'=>100,'null' => false])\n ->addColumn('user_first_name','string',['limit'=>100,'null' => false])\n ->addColumn('user_last_name','string',['limit'=>300,'null' => false])\n ->addColumn('user_full_name','string',['limit'=>300,'null' => false])\n ->addColumn('user_login_name','string',['limit'=>300,'null' => false])\n ->addColumn('user_login_pass','string',['limit'=>300,'null' => false])\n ->addColumn('user_email','string',['limit'=>300,'null' => false])\n ->addColumn('user_phone','string',['limit'=>300,'null' => false])\n ->addColumn('user_city','string',['limit'=>300,'null' => false])\n ->addColumn('user_district','string',['limit'=>300,'null' => false])\n ->addColumn('user_address','string',['limit'=>300,'null' => false])\n ->addColumn('user_birthday','date',['null' => false])\n ->addColumn('user_url_image_alias','string',['limit'=>300,'null' => false])\n ->addColumn('user_url_background','string',['limit'=>300,'null' => false])\n ->addColumn('user_jog_present','string',['limit'=>300,'null' => false])\n ->addColumn('user_type_account','integer',['default'=>0,'null' => false])\n ->addColumn('created','date')\n ->save();\n }", "title": "" }, { "docid": "b0075832163f5f7edefe5075783ee4e4", "score": "0.5812826", "text": "function user() {\n $user = $this->ion_auth->user()->row();\n //\n //get id\n $data['profic'] = $this->model_portofolio->select_profic_user($user->id)->row();\n $data['user'] = $user;\n if ($this->model_portofolio->select_metadata($user->id, 1)->row() == NULL) {\n $this->model_portofolio->insert_usermeta($user->id, 1);\n $data['profil'] = $this->model_portofolio->select_metadata($user->id, 1)->row();\n } else {\n $data['profil'] = $this->model_portofolio->select_metadata($user->id, 1)->row();\n }\n if ($this->model_portofolio->select_metadata($user->id, 2)->row() == NULL) {\n $this->model_portofolio->insert_usermeta($user->id, 2);\n $data['pengajaran'] = $this->model_portofolio->select_metadata($user->id, 2)->row();\n } else {\n $data['pengajaran'] = $this->model_portofolio->select_metadata($user->id, 2)->row();\n }\n if ($this->model_portofolio->select_metadata($user->id, 3)->row() == NULL) {\n $this->model_portofolio->insert_usermeta($user->id, 3);\n $data['riset'] = $this->model_portofolio->select_metadata($user->id, 3)->row();\n } else {\n $data['riset'] = $this->model_portofolio->select_metadata($user->id, 3)->row();\n }\n if ($this->model_portofolio->select_metadata($user->id, 4)->row() == NULL) {\n $this->model_portofolio->insert_usermeta($user->id, 4);\n $data['publikasi'] = $this->model_portofolio->select_metadata($user->id, 4)->row();\n } else {\n $data['publikasi'] = $this->model_portofolio->select_metadata($user->id, 4)->row();\n }\n if ($this->model_portofolio->select_metadata($user->id, 5)->row() == NULL) {\n $this->model_portofolio->insert_usermeta($user->id, 5);\n $data['pengalaman'] = $this->model_portofolio->select_metadata($user->id, 5)->row();\n } else {\n $data['pengalaman'] = $this->model_portofolio->select_metadata($user->id, 5)->row();\n }\n if ($this->model_portofolio->select_metadata($user->id, 6)->row() == NULL) {\n $this->model_portofolio->insert_usermeta($user->id, 6);\n $data['pendidikan'] = $this->model_portofolio->select_metadata($user->id, 6)->row();\n } else {\n $data['pendidikan'] = $this->model_portofolio->select_metadata($user->id, 6)->row();\n }\n\n //print_r($data['profic']);\n //print_r($data['user']);\n //print_r($data['publikasi']);\n //print_r($data);\n $this->load->view('portofolio/profil', $data);\n }", "title": "" }, { "docid": "e06a4e961477c8ee9bcd499f92499c7e", "score": "0.57990223", "text": "protected function add_user_columns($table, &$columns, &$headers) {\n global $CFG;\n if (!$table->is_downloading() && $CFG->grade_report_showuserimage) {\n $columns[] = 'picture';\n $headers[] = '';\n }\n //if (!$table->is_downloading()) {\n $columns[] = 'fullname';\n $headers[] = get_string('firstname').', '.get_string('lastname');\n //} else {\n // $columns[] = 'lastname';\n // $headers[] = get_string('lastname');\n // $columns[] = 'firstname';\n // $headers[] = get_string('firstname');\n //}\n\n // When downloading, some extra fields are always displayed (because\n // there's no space constraint) so do not include in extra-field list.\n //$extrafields = get_extra_user_fields($this->context,\n // $table->is_downloading() ? array('institution', 'department', 'email') : array());\n $extrafields = get_extra_user_fields($this->context,\n $table->is_downloading() ? array('email') : array());\n foreach ($extrafields as $field) {\n $columns[] = $field;\n $headers[] = get_user_field_name($field);\n }\n\n if ($table->is_downloading()) {\n // $columns[] = 'institution';\n // $headers[] = get_string('institution');\n\n //$columns[] = 'department';\n //$headers[] = get_string('department');\n\n $columns[] = 'email';\n $headers[] = get_string('email');\n }\n }", "title": "" }, { "docid": "de6a06a1d52a909b9fc211ce6979d4a7", "score": "0.5792171", "text": "public function instal_nw_users_table(){\n\n\t\t$table = \"nw_users\";\n\t\ttry {\n\t\t $this->db->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );//Error Handling\n\t\t $sql =\"CREATE table $table(\n\t\t ID INT( 11 ) AUTO_INCREMENT PRIMARY KEY,\n\t\t user_login VARCHAR( 50 ) NOT NULL, \n\t\t user_pass VARCHAR( 250 ) NOT NULL,\n\t\t user_nickname VARCHAR( 150 ) NOT NULL, \n\t\t user_email VARCHAR( 150 ) NOT NULL,\n\t\t user_registred date NOT NULL, \n\t\t user_status INT( 11 ) NOT NULL,\n\t\t display_name VARCHAR( 50 ) NOT NULL);\" ;\n\t\t $this->db->exec($sql);\n\n\t\t} catch(PDOException $e) {\n\t\t die($e->getMessage());//Remove or change message in production code\n\t\t}\n\t}", "title": "" }, { "docid": "5123626eae5f24540474f4f717eb6991", "score": "0.5790672", "text": "private function tbl_guiones_asignacion() {\r\n\t\t\t$this->guiones_asignacion = $this->esquema->createTable('GUIONES_ASIGNACION');\r\n\t\t\t$this->guiones_asignacion->addColumn('ID', 'bigint', array(\r\n\t\t\t\t'notnull' => true,\r\n\t\t\t\t'autoincrement' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID de asignación del guion'\r\n\t\t\t));\r\n\t\t\t$this->guiones_asignacion->addColumn('NOMBRE', 'string', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 255,\r\n\t\t\t\t'comment' => 'Nombre de la asignacion'\r\n\t\t\t));\r\n\t\t\t$this->guiones_asignacion->addColumn('GUION', 'bigint', array(\r\n\t\t\t\t'notnull' => true,\r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del del guion [ID de la tabla de GUIONES]'\r\n\t\t\t));\r\n\t\t\t$this->guiones_asignacion->addColumn('ESTADO', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del Estado de la asignacion [ID de la tabla ESTADOS]'\r\n\t\t\t));\r\n\t\t\t$this->guiones_asignacion->setPrimaryKey(array('ID'));\r\n\t\t\t$this->guiones_asignacion->addForeignKeyConstraint($this->guiones, array('GUION'), array('ID'), $this->opcForeign);\r\n\t\t\t$this->guiones_asignacion->addForeignKeyConstraint($this->estados, array('ESTADO'), array('ID'), $this->opcForeign);\r\n\t\t}", "title": "" }, { "docid": "f0201e456f39f0624f3c03e23a9ccc8d", "score": "0.57668424", "text": "public function dadosUsuarios()\n\t\t{\n\t\t\t$select = \"\n\t\t\t\tSELECT id, login, pri_nome, ult_nome, email, permissao\n\t\t\t\tFROM usuario\";\n\t\t\t$result = $this->mysqli->query($select);\n\t\t\tself::checaBuscaVazia($result); // Confere se o select retornou algo\n\n\t\t\twhile($row = $result->fetch_assoc()){\t\t\t\t\t\n\t\t\t\tself::defineNomePermissao($row['permissao']);\n\t\t\t\t// Gera conteudo da tabela\n\t\t\t\t$this->usuarios .= \"\t\t\n\t\t\t\t<tr>\n\t\t\t\t\t<td id='alinhamento'>\".$row['login'].\"</td>\n\t\t\t\t\t<td id='alinhamento'>\".$row['pri_nome'].\"</td>\n\t\t\t\t\t<td id='alinhamento'>\".$row['ult_nome'].\"</td>\n\t\t\t\t\t<td id='alinhamento'>\".$row['email'].\"</td>\n\t\t\t\t\t<td id='alinhamento'>\".$this->nomPermissao.\"</td>\n\t\t\t\t\t<form method='POST' action='interacao_bd/update_permissao.php'?>\n\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t<div class='form-group'>\t\t\t\n\t\t\t\t\t\t\t\t<select class='form-control' onchange='submitForm(this.form);' name='alt_perm'>\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<option value=''>Permissão</option>\n\t\t\t\t\t\t\t\t\t<option value='1'>Total</option>\n\t\t\t\t\t\t\t\t\t<option value='2'>Média</option>\n\t\t\t\t\t\t\t\t\t<option value='3'>Mínima</option>\n\t\t\t\t\t\t\t\t\t<option value='4'>Nenhuma</option>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t</div>\t\t\t\t\t\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<input name='id' type=hidden value='\".$row['id'].\"' />\n\t\t\t\t\t</form>\n\t\t\t\t\t<td align='center'><a onclick='deletaUsuario(\".$row['id'].\");' style='cursor: pointer;' class='fas fa-user-times fa-3x'></a></td>\n\t\t\t\t</tr>\";\t\t\t\t\t\t \n\t\t\t}\n\t\t\techo $this->usuarios;\n\t\t}", "title": "" }, { "docid": "ea37c1d24769fd17cb73efce162a6a0a", "score": "0.5764416", "text": "private function tbl_permisos_seleccion() {\r\n\t\t\t$this->permisos_seleccion = $this->esquema->createTable('PERMISOS_SELECCION');\r\n\t\t\t$this->permisos_seleccion->addColumn('ID', 'bigint', array(\r\n\t\t\t\t'notnull' => true,\r\n\t\t\t\t'autoincrement' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del Permiso Seleccion'\r\n\t\t\t));\r\n\t\t\t$this->permisos_seleccion->addColumn('PERMISO', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del Permiso del Usuario [ID de la tabla PERMISOS]'\r\n\t\t\t));\r\n\t\t\t$this->permisos_seleccion->addColumn('MODULO', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del Permiso del Modulo [ID de la tabla PERMISOS_MODULOS]'\r\n\t\t\t));\r\n\t\t\t$this->permisos_seleccion->addColumn('ACCESO', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del Permiso del Permiso Acceso [ID de la tabla PERMISOS_ACCESO]'\r\n\t\t\t));\r\n\t\t\t$this->permisos_seleccion->setPrimaryKey(array('ID'));\r\n\t\t\t$this->permisos_seleccion->addForeignKeyConstraint($this->permisos, array('PERMISO'), array('ID'), $this->opcForeign);\r\n\t\t\t$this->permisos_seleccion->addForeignKeyConstraint($this->permisos_modulo, array('MODULO'), array('ID'), $this->opcForeign);\r\n\t\t\t$this->permisos_seleccion->addForeignKeyConstraint($this->permisos_acceso, array('ACCESO'), array('ID'), $this->opcForeign);\r\n\t\t}", "title": "" }, { "docid": "f8eaa3a7855d02d4afbc908a55fde633", "score": "0.5756246", "text": "function getEmpleados($columns){\n\t\t$sql = \"\n\t\tSELECT $columns\n\t\tFROM users \n\t\tWHERE ( user_type = 2 OR user_type = 1)\n\t\t/*AND\t\tuser_status = 0*/\n\t\tORDER BY user_last_name\";\n\t\treturn db_loadHashList( $sql );\n\t\t\n\t}", "title": "" }, { "docid": "95495e9f227253d3178176be5165feb7", "score": "0.569822", "text": "function usuarios(){\n\t\t$i=1;\n\t\t$objConexion = conectar(\"on\");\n\t\t$consulta = $objConexion->query(\"SELECT id_usuario,email_usuario,password_usuario,nombre_usuario,rfc_usuario,telefono_usuario,(SELECT tipo FROM tipo_usuario WHERE id_tipo_usuario=tipo_usuario) as tipo FROM usuario\");\n\t\tif($consulta->num_rows == 0){\n\t\t\techo 'No hay usuarios'; /* editar esta opcion */ \n\t \t}\n\t\techo libreriasJS();\n\t\techo '<link type=\"text/css\" href=\"css/tablas.css\" rel=\"stylesheet\" />';\n\t\techo '<div id=\"ventana\">';\n\t\techo '<table border=\"1\">';\n\t\techo '<thead><tr><th scope=\"col\">Correo</th><th scope=\"col\">Clave</th><th scope=\"col\">Nombre</th><th scope=\"col\">RFC</th><th scope=\"col\">Telefono</th><th scope=\"col\">Tipo</th><th scope=\"col\">Acci&oacute;n</th></tr></thead>';\n\t\techo '<tbody>';\n\t\t\twhile($fila=$consulta->fetch_assoc()){\n\t\t\t\tif(($i%2)==0){\n\t\t\t\t\techo '<tr>';\n\t\t\t\t\t\techo '<td>'.$fila['email_usuario'].'</td>';\n\t\t\t\t\t\techo '<td>'.$fila['password_usuario'].'</td>';\n\t\t\t\t\t\techo '<td>'.$fila['nombre_usuario'].'</td>';\n\t\t\t\t\t\techo '<td>'.$fila['rfc_usuario'].'</td>';\n\t\t\t\t\t\techo '<td>'.$fila['telefono_usuario'].'</td>';\n\t\t\t\t\t\techo '<td>'.$fila['tipo'].'</td>';\n\t\t\t\t\t\techo '<td><a href=\"admins_all.php?accion=eliminar_usr&id='.$fila['id_usuario'].'\" data-tooltip=\"Haz click para volver al artículo\"><img src=\"img/btn_del.png\" /></a><a href=\"admins_all.php?accion=editar_usr&id='.$fila['id_usuario'].'\"><img src=\"img/btn_edi.png\" /></a></td>';\n\t\t\t\t\techo '</tr>';\n\t\t\t\t}else{\n\t\t\t\t\techo '<tr class=\"odd\">';\n\t\t\t\t\t\techo '<td>'.$fila['email_usuario'].'</td>';\n\t\t\t\t\t\techo '<td>'.$fila['password_usuario'].'</td>';\n\t\t\t\t\t\techo '<td>'.$fila['nombre_usuario'].'</td>';\n\t\t\t\t\t\techo '<td>'.$fila['rfc_usuario'].'</td>';\n\t\t\t\t\t\techo '<td>'.$fila['telefono_usuario'].'</td>';\n\t\t\t\t\t\techo '<td>'.$fila['tipo'].'</td>';\n\t\t\t\t\t\techo '<td><a href=\"admins_all.php?accion=eliminar_usr&id='.$fila['id_usuario'].'\"><img src=\"img/btn_del.png\" /></a><a href=\"admins_all.php?accion=editar_usr&id='.$fila['id_usuario'].'\"><img src=\"img/btn_edi.png\" /></a></td>';\n\t\t\t\t\techo '</tr>';\n\t\t\t\t}\n\t\t\t\t$i+=1;\n\t\t\t}\n\t\techo '</tbody>';\n\t\techo '</table><br /><center><button id=\"agregar\">Agregar nuevo usuario</button>&nbsp;<button id=\"cerrar\">Cerrar el administrador</button></center>';\n\t\techo '</div>';\n\t\tconectar(\"off\");\n\t\techo '<script type=\"text/javascript\">\n\t\t\t\t$(\"button\").button(); \n\t\t\t\tcargar_ventana(\"ventana\",\"Administrador de usuarios\");\n\t\t\t\t$(\"#agregar\").click(function(){\n\t\t\t\t\twindow.location.assign(\"admins_all.php?accion=agregar_usr\");\n\t\t\t\t});\n\t\t\t\t$(\"#cerrar\").click(function(){\n\t\t\t\t\twindow.location.assign(\"menu.php\");\n\t\t\t\t});\n\t\t\t </script>';\n\t}", "title": "" }, { "docid": "c23f79a895b44e9c0acfd11f3829a36c", "score": "0.56718", "text": "function listUser()\n {\n $conn = new mysqli(SERVER, USER, PASSWORD, DB);\n $sql = \"SELECT id_user, tb_user.nombre, apellidos, tb_tip_doc.tip_doc AS tip_doc,num_doc, correo,\n celular, password, tb_tip_user.nombre AS tip_user, tb_business.nombre AS nombreempresa, date_create\n FROM tb_user\n INNER JOIN tb_tip_doc ON tb_user.id_tip_doc=tb_tip_doc.id_tip_doc\n INNER JOIN tb_tip_user ON tb_user.id_tip_user=tb_tip_user.id_tip_user\n INNER JOIN tb_business ON tb_user.id_business=tb_business.id_business \";\n $result = $conn->query($sql);\n if ($result->num_rows > 0)\n {\n $table = \"\";\n $table .=\"<table id='example2' class='table table-bordered table-hover'>\";\n $table .=\"<thead>\";\n $table .=\"<tr>\";\n $table .=\"<th>ID</th>\";\n $table .=\"<th>NOMBRE</th>\";\n $table .=\"<th>APELLIDOS</th>\";\n $table .=\"<th>TIP DOC</th>\";\n $table .=\"<th>DOCUMENTO</th>\";\n $table .=\"<th>CORREO</th>\";\n $table .=\"<th>CELULAR</th>\";\n $table .=\"<th>TIP USUARIO</th>\";\n $table .=\"<th>EMPRESA</th>\";\n $table .=\"<th>CREACION</th>\";\n $table .=\"<th>OPCIONES</th>\";\n $table .=\"</tr>\";\n $table .=\"</thead>\";\n // output data of each row\n while($row = $result->fetch_assoc())\n {\n $table .=\"<thead>\";\n $table .= \"<tr>\";\n $table .= \"<td>\".$row['id_user'].\"</td>\";\n $table .= \"<td>\".$row['nombre'].\"</td>\";\n $table .= \"<td>\".$row['apellidos'].\"</td>\";\n $table .= \"<td>\".$row['tip_doc'].\"</td>\";\n $table .= \"<td>\".$row['num_doc'].\"</td>\";\n $table .= \"<td>\".$row['correo'].\"</td>\";\n $table .= \"<td>\".$row['celular'].\"</td>\";\n $table .= \"<td>\".$row['tip_user'].\"</td>\";\n $table .= \"<td>\".$row['nombreempresa'].\"</td>\";\n $table .= \"<td>\".$row['date_create'].\"</td>\";\n $table .= \"<td><a href=''><i class='nav-icon fas fa-edit' style='color:#239200;'></i></a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\";\n $table .= \"<a href=''><i class='nav-icon fas fa-trash-alt' style='color:red;'></i></a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\";\n $table .= \"<a href=''><i class='nav-icon fas fa-info-circle' style='color:blue;'></i></td>\";\n $table .= \"</tr>\";\n $table .=\"</thead>\";\n }\n $table .=\"</table>\";\n return $table;\n\n }\n\n }", "title": "" }, { "docid": "ee7b18ae3753ac5c5d0bb298b283564a", "score": "0.5642673", "text": "private function tbl_guiones_registro_afectacion() {\r\n\t\t\t$this->guiones_registro_afectacion = $this->esquema->createTable('GUIONES_REGISTRO_AFECTACION');\r\n\t\t\t$this->guiones_registro_afectacion->addColumn('ID', 'bigint', array(\r\n\t\t\t\t'notnull' => true,\r\n\t\t\t\t'autoincrement' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID de la afectacion'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro_afectacion->addColumn('NOMBRE', 'string', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 255,\r\n\t\t\t\t'comment' => 'Nombre de la afectacion'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro_afectacion->addColumn('ESTADO', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del Estado de la afectacion [ID de la tabla ESTADOS]'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro_afectacion->setPrimaryKey(array('ID'));\r\n\t\t\t$this->guiones_registro_afectacion->addForeignKeyConstraint($this->estados, array('ESTADO'), array('ID'), $this->opcForeign);\r\n\t\t}", "title": "" }, { "docid": "bd70839aff6e61ad95bdc16be9ad1b5c", "score": "0.5641207", "text": "public static function showUserTable() {\n echo \"<table id='users'>\n <tr>\n <th></th>\n <th>Utilisateur</th>\n <th>Mail</th>\n <th>Date de naissance</th>\n <th>Note</th>\n <th>Voitures</th>\n <th>Commentaires</th>\n </tr>\";\n for ($i = 0; $i < count(User::$listOfUsers); $i++ ) {\n echo \"<tr>\";\n echo \"<td>\";\n $iLink = $i + 1;\n echo \"<a href='users.php?user=$iLink'>Voir</a>\";\n echo \"</td>\";\n echo \"<td>\";\n echo User::$listOfUsers[$i]->getFirstName() . \" \" . User::$listOfUsers[$i]->getLastName();\n echo \"</td>\";\n echo \"<td>\";\n echo User::$listOfUsers[$i]->getEmail();\n echo \"</td>\";\n echo \"<td>\";\n echo User::$listOfUsers[$i]->getBirthDate();\n echo \"</td>\";\n echo \"<td>\";\n echo User::$listOfUsers[$i]->getRate();\n echo \"</td>\";\n echo \"<td>\";\n echo User::$listOfUsers[$i]->getListOfCars();\n echo \"</td>\";\n echo \"<td>\";\n echo User::$listOfUsers[$i]->getListOfComments();\n echo \"</td>\";\n echo \"</tr>\";\n }\n echo \"</table>\";\n }", "title": "" }, { "docid": "cdd1ae6f8da6c5e4e1fcd49dffa85607", "score": "0.5638422", "text": "function fetchTabelaUsersPorAprovar($conn) {\n $sql = \"SELECT U.*, T.descricao FROM utilizador U, tipoUtilizador T WHERE tipoUtilizador = '4' AND T.idTipoUtilizador = U.tipoUtilizador\";\n $retval = mysqli_query($conn, $sql);\n if(mysqli_num_rows($retval) != 0) {\n while($row = mysqli_fetch_array($retval, MYSQLI_ASSOC)) {\n mostrarDadosTabela($row);\n }\n } else {\n echo \"\n <tr>\n <td colspan='6' class='has-text-centered'>\n Não foram encontrados registos nesta tabela.\n </td>\n </tr>\n \";\n }\n mysqli_close($conn);\n}", "title": "" }, { "docid": "0e35dfbb03bdff72f814abf03710c887", "score": "0.5636654", "text": "function tablaUsuarios($consulta) {\n\tglobal $Buscador;\n\techo \"<tr class='tr-th'><td>Id</td><td>Tipo</td><td>Nombre</td><td>Email</td><td align='right'>\".$Buscador.\"</td></tr>\";\n\twhile($reg=mysql_fetch_array($consulta))\n\t{ \n\t\tif($reg['tipoUsuario']==\"Administrador\")\n\t\t\t$classTipoUser=\"flaticon-important\";\n\t\telse \n\t\t\t$classTipoUser=\"flaticon-user91\";\n\t\techo \"<tr class='tr'><td align='center'>\".$reg['IdUsuario'].\"</td><td width='100'><span class='\".$classTipoUser.\"'></span> \".$reg['tipoUsuario'].\"</td><td>\".$reg['Nombres'].\" \".$reg['Apellidos'].\"</td><td>\".$reg['Email'].\"</td><td align='right'><span class='flaticon-expand span-btn-admin' title='Detalles' onclick='expandDetails(this,\\\"Usuarios\\\",\".$reg['IdUsuario'].\")'></span><span class='flaticon-black322 span-btn-admin' title='Editar' onclick='editRows(this,\\\"Usuarios\\\",\".$reg['IdUsuario'].\")'></span><span class='flaticon-delete81 span-btn-admin' title='Borrar' onclick='deleteUser(this,\\\"Usuarios\\\",\".$reg['IdUsuario'].\")'></span></td></tr>\";\n\t}\n}", "title": "" }, { "docid": "bb9c608b6853c3770bd3f347990b5edf", "score": "0.56345856", "text": "private function tbl_guiones_registro() {\r\n\t\t\t$this->guiones_registro = $this->esquema->createTable('GUIONES_REGISTRO');\r\n\t\t\t$this->guiones_registro->addColumn('ID', 'bigint', array(\r\n\t\t\t\t'notnull' => true,\r\n\t\t\t\t'autoincrement' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del registro del guion'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro->addColumn('FECHA', 'datetime', array(\r\n\t\t\t\t'notnull' => false,\r\n\t\t\t\t'comment' => 'Fecha de ingreso del registro'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro->addColumn('USUARIO', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del usuario del registro [ID de la tabla USUARIOS]'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro->addColumn('TIPO', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del tipo de registro [ID de la tabla GUIONES_REGISTRO_TIPO]'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro->addColumn('AFECTACION', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID de la afectacion del registro [ID de la tabla GUIONES_REGISTRO_AFECTACION]'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro->addColumn('AVISO', 'bigint', array(\r\n\t\t\t\t'notnull' => false,\r\n\t\t\t\t'default' => 0,\r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'Numero del aviso del registro'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro->addColumn('UBICACION', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID de la UBICACION del registro [ID de la tabla GUIONES_REGISTRO_UBICACION]'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro->setPrimaryKey(array('ID'));\r\n\t\t\t$this->guiones_registro->addForeignKeyConstraint($this->usuarios, array('USUARIO'), array('ID'), $this->opcForeign);\r\n\t\t\t$this->guiones_registro->addForeignKeyConstraint($this->guiones_registro_tipo, array('TIPO'), array('ID'), $this->opcForeign);\r\n\t\t\t$this->guiones_registro->addForeignKeyConstraint($this->guiones_registro_afectacion, array('AFECTACION'), array('ID'), $this->opcForeign);\r\n\t\t\t$this->guiones_registro->addForeignKeyConstraint($this->guiones_registro_ubicacion, array('UBICACION'), array('ID'), $this->opcForeign);\r\n\t\t}", "title": "" }, { "docid": "df25554f73bd0b44492bbd5d7afaab88", "score": "0.5623928", "text": "public function listForTable (){\r\n //generamo la query final que precisamos\r\n $queryResult= \"SELECT id,dni,nombre,apellido,mail FROM usuario.usuario ORDER BY id;\";\r\n\r\n //Ejecutamos la query\r\n $this->stmt=pg_query($this->link,$queryResult) or die(\"Error en la consulta,function listForTable :\".preg_last_error());\r\n\r\n return $this->stmt;\r\n }", "title": "" }, { "docid": "38d6ad7bd47512eb8e74df60ed6fdfec", "score": "0.5600608", "text": "public function alterUsersTable( $columns ) {\n\t\t$columns = array_slice( $columns, 0, count( $columns ) - 1 ) + array(\n\t\t\t\t'defAuth' => __( \"Two Factor\", \"defender-security\" )\n\t\t\t) + array_slice( $columns, count( $columns ) - 1 );\n\t\t\n\t\treturn $columns;\n\t}", "title": "" }, { "docid": "a7921e91b70201c3cf6fa9bc5385d117", "score": "0.5593447", "text": "public function change()\n {\n $table = $this->table('erc_users', ['id' => true, 'primary_key' => ['id']]); \n $table->addColumn('nik', 'string', ['null'=>true, 'limit' => 50])\n ->addColumn('full_name', 'string', ['null'=>true,'limit' => 50])\n ->addColumn('email', 'string', ['limit' => 50])\n ->addColumn('password', 'string', ['null' => true])\n ->addColumn('avatar', 'string', ['null' => true])\n ->addColumn('avatar_dir', 'string', ['null' => true])\n ->addColumn('phone_number', 'string', ['null'=>true,'limit' => 50])\n ->addColumn('token', 'string', ['default' => null, 'limit' => 255, 'null' => true,])\n ->addColumn('token_expires', 'datetime', ['default' => null, 'limit' => null, 'null' => true,])\n ->addColumn('api_token', 'string', ['default' => null, 'limit' => 255, 'null' => true,])\n ->addColumn('activation_date', 'datetime', ['default' => null, 'limit' => null, 'null' => true,])\n ->addColumn('tos_date', 'datetime', ['default' => null, 'limit' => null, 'null' => true,])\n ->addColumn('active', 'boolean', ['null' => false, 'default' => false])\n ->addColumn('slug', 'string', ['null' => false])\n ->addColumn('company_id', 'integer', ['null'=>true])\n ->addColumn('branch_id', 'integer', ['null'=>true])\n ->addColumn('is_superuser', 'boolean', ['null' => false, 'default' => false])\n ->addColumn('created_by', 'integer', ['null'=>true])\n ->addColumn('created_at', 'timestamp')\n ->addColumn('updated_at', 'timestamp')\n ->addColumn('last_updated_by', 'integer', ['null' => true, 'limit'=>15])\n ->addIndex('slug',['unique'=>1])\n ->addIndex('company_id')\n ->addIndex('branch_id')\n ->addIndex('email',['unique'=>1])\n ->addIndex('nik',['unique'=>1])\n ->create();\n }", "title": "" }, { "docid": "6eaa89a126a8a02a83099b2b16b59d48", "score": "0.5592531", "text": "static function SamUpdatUserInfo(array $USR)\n\t\t{\n\t\t // get the filed updat\n\t\t\t \n\t\t $Sam_filed_value_udated = array(\n\t\t\t\n \n\t\t\t\t 'user_city' => '`u_city`','user_state' => '`u_status`','user_country' => '`u_country`','user_occupation' => '`u_occupation`','user_marstatus' => '`u_marstatus`',\n\t\t\t\t \n\t\t\t\t 'user_age' => ' `u_age`','user_allowmsgs' => '`u_allowmsg`','user_title' => '`u_title`','user_photo_url' => '`u_photo_url`',\n\t\t\t\t \n\t\t\t\t 'user_homepage' => '`u_home_page`',\n\t\t\t\t \n 'user_link1' => '`u_link1`','user_link2' => '`u_link2`','user_quote' => '`u_quote`' ,'user_bio' => '`u_bio`','user_hobbies' => '`u_hobbies`',\n\t\t\t\t \n\t\t\t\t 'user_lnews' => '`u_lnews`','user_font' => '`u_template`','user_opacity' => ' `u_opacity`','user_skin' => '`u_skin`'\n\t\t\t\t \n\t\t\t\t /*[user_hideemail] => 0 , [user_hideactivity] => 0 */ \n \n\t\t\t\n\t\t\t);\n\t\t\t\n\t\t\t \n\t\t\t\tforeach($Sam_filed_value_udated as $key => $vla):\n\t\t\t\t\n\t\t\t\t if($key == 'user_font' )\n\t\t\t\t {\n\t\t\t\t\t \n \n\t\t\t\t\t $USR['user_font'] = $USR['user_fontsize'].' *|* ' .$USR['user_font'].' *|* ' .$USR['user_color'].' *|* ' .$USR['user_fontalign'].' *|* ' ;\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t // die($USR['user_skin']);\n\t\t\t\t\t \n\t\t\t\t\tif(( int) $USR['user_skin'] < 0 or ( int) $USR['user_skin'] > 39 ) continue;\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t if(! empty($USR[$key]))\n\t\t\t\t\n\t\t\t parent::SamUpdat('users',$vla,\"'\".$USR[$key].\"'\", 'WHERE user_id = \"'.UID.'\"');\n\t\t\t\t \n\t\t\t\t// echo '1'.$vla .'--'.$USR[$key] .'<br>' ; \n\t\t\t \n\t\t\t endforeach;\n\t \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t}", "title": "" }, { "docid": "5f177fe7433908cd45fea8107750d860", "score": "0.55894744", "text": "private function tbl_usuarios_cargo() {\r\n\t\t\t$this->usuarios_cargo = $this->esquema->createTable('USUARIOS_CARGO');\r\n\t\t\t$this->usuarios_cargo->addColumn('ID', 'bigint', array(\r\n\t\t\t\t'notnull' => true,\r\n\t\t\t\t'autoincrement' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del Cargo'\r\n\t\t\t));\r\n\t\t\t$this->usuarios_cargo->addColumn('NOMBRE', 'string', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 255,\r\n\t\t\t\t'comment' => 'Nombre del Cargo'\r\n\t\t\t));\r\n\t\t\t$this->usuarios_cargo->setPrimaryKey(array('ID'));\r\n\t\t}", "title": "" }, { "docid": "676b854302253567e60ab6810617d57d", "score": "0.5583063", "text": "public function retrieve_all_users()\n {\n $table_pengajar = $this->db->dbprefix('pengajar');\n $table_siswa = $this->db->dbprefix('siswa');\n $table_login = $this->db->dbprefix('login');\n\n $sql = \"SELECT {$table_login}.username, {$table_pengajar}.nama FROM {$table_pengajar} INNER JOIN {$table_login} ON {$table_pengajar}.id = {$table_login}.pengajar_id\n UNION\n SELECT {$table_login}.username, {$table_siswa}.nama FROM {$table_siswa} INNER JOIN {$table_login} ON {$table_siswa}.id = {$table_login}.siswa_id\";\n\n $result = $this->db->query($sql);\n\n $data = array();\n foreach ($result->result_array() as $r) {\n # selain yang login\n if (is_login() && $r['username'] == get_sess_data('login', 'username')) {\n continue;\n }\n $data[] = addslashes($r['nama']) . ' [' . $r['username'] . ']';\n }\n\n return $data;\n }", "title": "" }, { "docid": "51e4fd736eb04b9bbf6f403dd372303e", "score": "0.55814266", "text": "public function creer(){ /*** Cree un utilisateur par insertion d'un tuple dans la table UserTab ***/\r\n \r\n \r\n // $this -> setInscrit(1);\r\n $this -> insertDb();//Insertion en Bd d'un tuple user\r\n\t\t\t\r\n }", "title": "" }, { "docid": "c76d0ebcec4fb1d8d57f867bdf7056f0", "score": "0.55758035", "text": "function care_modify_user_table( $column ) {\n // $column['id'] = 'ID';\n // return $column;\n \n $new = array();\n foreach($column as $key => $title) {\n if ($key == 'username') { \n $new['user_id'] = 'ID'; // Our custom column’s identifier and text\n $new['registered'] = 'Registered';\n }\n $new[$key] = $title;\n }\n return $new;\n}", "title": "" }, { "docid": "07c064d6a44c1682121e37bede736bcd", "score": "0.55687195", "text": "public function loadData(){\r\n\t\t\t $pseudo = addslashes($this -> getPseudo()) ;\r\n\r\n\t\t if(! empty($pseudo)){\r\n\t\t\t$q = \"select * from UserTab where User_pseudo='\".$pseudo.\"'\";\r\n\t\t\t$r = execute($q);\r\n\t\t\twhile( $l = mysql_fetch_assoc($r) ){\r\n\t\t\t\t$this -> setFields($l);//Affectation aux champs de l'objet UserTab \r\n\t\t\t}\r\n\t\t }\r\n\r\n\t }", "title": "" }, { "docid": "00f86feb1f67e55fc1290f4b3116c70c", "score": "0.5565417", "text": "public function createUserArray () {\n\t\t$userColumnsIssetChecks = array(\n\t\t\t'user_email',\n\t\t\t'user_real_name',\n\t\t\t'user_password'\n\t\t);\n\n\t\t$this->output( \"\\nCreating userArray from all user tables\" );\n\n\t\t// Read user table for all wikis, add to $this->userArray giving each username a new unique ID\n\t\tforeach( $this->wikiDBs as $wikiID => $db ) {\n\n\t\t\t$this->output( \"\\nAdding $wikiID to userArray\" );\n\n\t\t\t// SELECT entire user table\n\t\t\t$result = $db->query(\n\t\t\t\t\"SELECT * FROM user\"\n\t\t\t);\n\n\t\t\twhile( $row = $result->fetchRow() ) {\n\n\t\t\t\tif ( ! $this->userTableRows ) {\n\t\t\t\t\t$this->userTableRows = array();\n\t\t\t\t\tforeach( $row as $key => $value ) {\n\t\t\t\t\t\t$this->userTableRows[] = $key;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$userName = $row['user_name'];\n\n\t\t\t\tif ( ! isset( $this->userArray[$userName] ) ) {\n\n\t\t\t\t\t$this->userArray[$userName] = $row;\n\n\t\t\t\t\t// give new ID\n\t\t\t\t\t$newId = count( $this->userArray );\n\n\t\t\t\t\t$this->userArray[$userName][\"user_id\"] = $newId;\n\n\t\t\t\t} else {\n\n\t\t\t\t\t// sum edit counts\n\t\t\t\t\t$this->userArray[$userName][\"user_editcount\"] += $row['user_editcount'];\n\n\t\t\t\t\t// If this wiki ($row) has an older user_registration, use this wiki's value\n\t\t\t\t\tif ( $this->userArray[$userName][\"user_registration\"] > $row['user_registration'] ) {\n\t\t\t\t\t\t$this->userArray[$userName][\"user_registration\"] = $row['user_registration'];\n\t\t\t\t\t}\n\n\t\t\t\t\t// If this wiki ($row) has been touched more recently, use this wiki's value\n\t\t\t\t\tif ( $this->userArray[$userName][\"user_touched\"] < $row['user_touched'] ) {\n\t\t\t\t\t\t$this->userArray[$userName][\"user_touched\"] = $row['user_touched'];\n\n\t\t\t\t\t\t// also use this wikis password since they've accessed it more recently\n\t\t\t\t\t\tif ( $row['user_password'] ) {\n\t\t\t\t\t\t\t$this->userArray[$userName][\"user_password\"] = $row['user_password'];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tforeach ( $userColumnsIssetChecks as $col ) {\n\t\t\t\t\t\tif ( ! $this->userArray[$userName][$col] && $row[$col] ) {\n\t\t\t\t\t\t\t$this->userArray[$userName][$col] = $row[$col];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "a42d21389b6c15875b0382a16b59190d", "score": "0.55510545", "text": "private function tbl_usuarios_empresa() {\r\n\t\t\t$this->usuarios_empresa = $this->esquema->createTable('USUARIOS_EMPRESA');\r\n\t\t\t$this->usuarios_empresa->addColumn('ID', 'bigint', array(\r\n\t\t\t\t'notnull' => true,\r\n\t\t\t\t'autoincrement' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID de la Empresa'\r\n\t\t\t));\r\n\t\t\t$this->usuarios_empresa->addColumn('NOMBRE', 'string', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 255,\r\n\t\t\t\t'comment' => 'Nombre de la Empresa'\r\n\t\t\t));\r\n\t\t\t$this->usuarios_empresa->addColumn('ESTADO', 'bigint', array(\r\n\t\t\t\t'notnull' => true,\r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'Estado de la Empresa [ID de la tabla ESTADOS]'\r\n\t\t\t));\r\n\t\t\t$this->usuarios_empresa->setPrimaryKey(array('ID'));\r\n\t\t\t$this->usuarios_empresa->addForeignKeyConstraint($this->estados, array('ESTADO'), array('ID'), $this->opcForeign);\r\n\t\t}", "title": "" }, { "docid": "5b701c6dd2ccc425fac6e17155d54ac8", "score": "0.5549453", "text": "public function getAllUsersAtivos(){\n\n $this->db->select('*');\n $this->db->from(\"admin_empresa\");\n $this->db->where('status', 1);\n $this->db->order_by(\"id\", 'desc');\n\n return $this->db->get();\n }", "title": "" }, { "docid": "c548d679d62731625a4f5c83344ab561", "score": "0.5546553", "text": "function add_user($ci, $grado, $espe, $nombres, $paterno, $materno, $fec_nac, $lugar, $direccion, $fono, $celular, $gsanguineo, $gestion, $curso) {\n // \t\t$qUserExists = \"SELECT * FROM docente WHERE id_docente='$id_docente'\";\n\t\t$qInsertUser = \"INSERT INTO alumno (ci, grado, espe, nombres, paterno, materno, fec_nac, lugar, direccion, fono, celular, gsanguineo, gestion, curso)\n\t\t\t\t \t\t\t VALUES ('$ci', '$grado', '$espe', '$nombres', '$paterno', '$materno', '$fec_nac', '$lugar', '$direccion', '$fono', '$celular', '$gsanguineo', '$gestion', '$curso')\";\n\t\t\n\t\tif ($espe == \"1ER. A.M.\")\n\t\t{\n\t\t\t\t$qInsertUser1 = \"INSERT INTO primero (ci, gestion)\n\t\t\t\t \t\t\t VALUES ('$ci', '$gestion')\";\n\t\t}\n\t\telseif ($espe == \"2DO. A.M.\")\n\t\t{\n\t\t\t\t$qInsertUser2 = \"INSERT INTO segundo (ci, gestion)\n\t\t\t\t \t\t\t VALUES ('$ci', '$gestion')\";\n\t\t}\n\t\telseif ($espe == \"3ER. A.M.\")\n\t\t{\n\t\t\t\t$qInsertUser3 = \"INSERT INTO tercero (ci, gestion)\n\t\t\t\t \t\t\t VALUES ('$ci', '$gestion')\";\n\t\t}\n\t\telseif ($curso == \"basico\")\n\t\t{\n\t\t\t\t$qInsertUser3 = \"INSERT INTO basico (ci, gestion)\n\t\t\t\t \t\t\t VALUES ('$ci', '$gestion')\";\n\t\t}\n\t\telseif ($corso == \"avanzado\")\n\t\t{\n\t\t\t\t$qInsertUser3 = \"INSERT INTO avanzado (ci, gestion)\n\t\t\t\t \t\t\t VALUES ('$ci', '$gestion')\";\n\t\t}\n\t\t$connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($qInsertUser); \n\t\t$result = mysql_query($qInsertUser1);\n\t\t$result = mysql_query($qInsertUser2);\n\t\t$result = mysql_query($qInsertUser3);\n\t}", "title": "" }, { "docid": "b3779a436f7a70f5a5761357e6ee511d", "score": "0.55322516", "text": "public function select($usuario_has_hojaruta);", "title": "" }, { "docid": "83403a70805cef72a0079e8a0803a8b3", "score": "0.55292475", "text": "function listerUtilisateur()\n\t{\n\t\t$req=\"select idUti, nomUti, prenomUti, photoUti, telPorUti, mailUti, statutUti from utilisateur\";\n\t\t$exereq = mysql_query($req) or die(mysql_error());\n\t\n\t\twhile($ligne=mysql_fetch_array($exereq))\n\t\t{\n\t\t\t$tab[]=$ligne;\n\t\t}\n\n\t\treturn $tab;\n\t}", "title": "" }, { "docid": "4b397131a76d4897653271fd889af22b", "score": "0.55219775", "text": "function saveUser($sVars)\n{\n require_once($_SERVER[\"DOCUMENT_ROOT\"].\"/config/config.php\");\n require_once($_SERVER[\"DOCUMENT_ROOT\"].\"/class/autoload.php\");\n\n // Récupérer les données\n $aData = json_decode($sVars,true);\n $db = new cMariaDb($Cfg);\n if( $aData[\"User\"][\"id\"] == 0 ){\n // id=0 > Ajoute\n $Columns = \"\";\n $Values = \"\";\n foreach( $aData[\"User\"] as $key => $value )\n {\n if( $key != \"id\"){\n $Columns .= $key.\",\";\n $Values .= \"'\".addslashes($value).\"',\"; \n }\n if( $key == \"sEmail\"){\n $Columns .= \"pMotPasse,\";\n $Values .= \"SHA1('\".$value.\"'),\";\n }\n }\n $Columns = substr($Columns,0,-1);\n $Values = substr($Values,0,-1);\n $sSQL = \"INSERT INTO sys_user ($Columns,dDateInscription) VALUES ($Values,CURRENT_TIMESTAMP);\";\n $aTmp = $db->Query($sSQL);\n $id = $db->getLastId();\n } else {\n $Set = \"\";\n foreach( $aData[\"User\"] as $key => $value )\n {\n if( $key != \"id\"){\n $Set .= $key.\"='\".addslashes($value).\"',\";\n }\n }\n $Set = substr($Set,0,-1);\n $id = $aData[\"User\"][\"id\"];\n $sSQL = \"UPDATE sys_user SET $Set WHERE id=$id;\";\n $aTmp = $db->Query($sSQL);\n }\n // Méthode pas très élégante, mais il faudrait faire un delta entre tableaux \n // et agir en conséquence... \n // On supprime tout et on insert\n // Sauvegarde des droits ($aData[\"Rights\"])\n $sSQL = \"DELETE FROM sys_user_rights WHERE idUser=$id\";\n $db->Query($sSQL);\n foreach($aData[\"Rights\"] as $Right) {\n $sSQL = \"INSERT INTO sys_user_rights SET idRights=$Right, idUser=$id;\";\n $db->Query($sSQL);\n }\n\n // $aRet = [\"Errno\" => 2, \n // \"ErrMsg\" => $sTmp, \n // \"SQL\" => $sSQL ];\n\n return [\"Errno\" => 0, \"ErrMsg\" => \"OK\", \"SQL\" => $sSQL ];\n\n header('content-type:application/json');\n echo json_encode($aRet); \n}", "title": "" }, { "docid": "89fe2632e310521b383d416e0a0cc778", "score": "0.55215114", "text": "private function tbl_guiones() {\r\n\t\t\t$this->guiones = $this->esquema->createTable('GUIONES');\r\n\t\t\t$this->guiones->addColumn('ID', 'bigint', array(\r\n\t\t\t\t'notnull' => true,\r\n\t\t\t\t'autoincrement' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID de guion'\r\n\t\t\t));\r\n\t\t\t$this->guiones->addColumn('NOMBRE', 'string', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 255,\r\n\t\t\t\t'comment' => 'Nombre de la plantilla del guion'\r\n\t\t\t));\r\n\t\t\t$this->guiones->addColumn('PLANTILLA', 'text', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => false,\r\n\t\t\t\t'comment' => 'plantilla del guion'\r\n\t\t\t));\r\n\t\t\t$this->guiones->addColumn('ESTADO', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del Estado del Guion [ID de la tabla ESTADOS]'\r\n\t\t\t));\r\n\t\t\t$this->guiones->setPrimaryKey(array('ID'));\r\n\t\t\t$this->guiones->addForeignKeyConstraint($this->estados, array('ESTADO'), array('ID'), $this->opcForeign);\r\n\t\t}", "title": "" }, { "docid": "1c3ddc1a1e85b5f34b977c2b0003e815", "score": "0.5503742", "text": "function set_profile($tipo, $idusuario)\n {\n $query = '';\n if($tipo == 'B')\n {\n $query = 'INSERT INTO permisos_usr (idpermiso, idusuario, cpermis) VALUES\n (1, '.$idusuario.', 1),\n (2, '.$idusuario.', 1),\n (3, '.$idusuario.', 1),\n (4, '.$idusuario.', 1),\n (5, '.$idusuario.', 1),\n (6, '.$idusuario.', 1),\n (7, '.$idusuario.', 0),\n (8, '.$idusuario.', 0),\n (9, '.$idusuario.', 1),\n (10, '.$idusuario.', 0),\n (11, '.$idusuario.', 0),\n (12, '.$idusuario.', 0),\n (13, '.$idusuario.', 1),\n (14, '.$idusuario.', 1),\n (15, '.$idusuario.', 0),\n (16, '.$idusuario.', 1),\n (17, '.$idusuario.', 0),\n (18, '.$idusuario.', 0),\n (19, '.$idusuario.', 0),\n (20, '.$idusuario.', 0),\n (21, '.$idusuario.', 0),\n (22, '.$idusuario.', 0),\n (23, '.$idusuario.', 0),\n (24, '.$idusuario.', 1),\n (25, '.$idusuario.', 0),\n (26, '.$idusuario.', 0),\n (27, '.$idusuario.', 0);';\n }\n\n if($tipo == 'C')\n {\n $query = 'INSERT INTO permisos_usr (idpermiso, idusuario, cpermis) VALUES\n (1, '.$idusuario.', 1),\n (2, '.$idusuario.', 1),\n (3, '.$idusuario.', 1),\n (4, '.$idusuario.', 1),\n (5, '.$idusuario.', 1),\n (6, '.$idusuario.', 0),\n (7, '.$idusuario.', 1),\n (8, '.$idusuario.', 1),\n (9, '.$idusuario.', 1),\n (10, '.$idusuario.', 1),\n (11, '.$idusuario.', 0),\n (12, '.$idusuario.', 1),\n (13, '.$idusuario.', 0),\n (14, '.$idusuario.', 0),\n (15, '.$idusuario.', 1),\n (16, '.$idusuario.', 1),\n (17, '.$idusuario.', 1),\n (18, '.$idusuario.', 1),\n (19, '.$idusuario.', 0),\n (20, '.$idusuario.', 0),\n (21, '.$idusuario.', 0),\n (22, '.$idusuario.', 0),\n (23, '.$idusuario.', 0),\n (24, '.$idusuario.', 0),\n (25, '.$idusuario.', 1),\n (26, '.$idusuario.', 0),\n (27, '.$idusuario.', 0);';\n }\n\n if($tipo == 'E')\n {\n $query = 'INSERT INTO permisos_usr (idpermiso, idusuario, cpermis) VALUES\n (1, '.$idusuario.', 1),\n (2, '.$idusuario.', 1),\n (3, '.$idusuario.', 1),\n (4, '.$idusuario.', 1),\n (5, '.$idusuario.', 1),\n (6, '.$idusuario.', 1),\n (7, '.$idusuario.', 1),\n (8, '.$idusuario.', 0),\n (9, '.$idusuario.', 1),\n (10, '.$idusuario.', 1),\n (11, '.$idusuario.', 1),\n (12, '.$idusuario.', 1),\n (13, '.$idusuario.', 0),\n (14, '.$idusuario.', 0),\n (15, '.$idusuario.', 0),\n (16, '.$idusuario.', 1),\n (17, '.$idusuario.', 1),\n (18, '.$idusuario.', 1),\n (19, '.$idusuario.', 1),\n (20, '.$idusuario.', 1),\n (21, '.$idusuario.', 1),\n (22, '.$idusuario.', 1),\n (23, '.$idusuario.', 1),\n (24, '.$idusuario.', 0),\n (25, '.$idusuario.', 0),\n (26, '.$idusuario.', 0),\n (27, '.$idusuario.', 0);';\n }\n\n return $query;\n }", "title": "" }, { "docid": "989ff60e85c54aa78ecb87d9bc1371e6", "score": "0.55001473", "text": "public function mostrar_usuaris(){\n $sql = \"SELECT usuaris.id AS id, usuaris.nom AS nom, usuaris.cognoms AS cognoms, usuaris.email AS email,\n usuaris.idrol AS idrol, rols.descrip AS descrip FROM usuaris INNER JOIN rols ON usuaris.idrol = rols.id\";\n \n $query=$this->db->prepare($sql);\n $query->execute();\n $res=$query->fetchAll();\n return $res;\n }", "title": "" }, { "docid": "bf7498dfc221d587f110994cc33cc9f5", "score": "0.5489825", "text": "function new_modify_user_table( $column ) {\n\t$column['raport'] = 'Raporty';\n\t$column['kursy'] = 'Kursy';\n\n\tunset( $column['email'] );\n\treturn $column;\n}", "title": "" }, { "docid": "f528850ea1aa6f5a4df731549f7859e1", "score": "0.54839414", "text": "public function select_users_gerentes (){\n $gerentes = User::join('personal','users.id','=','personal.id')\n ->select('users.usuario','personal.id','personal.nombre','personal.apellidos')\n ->where('users.rol_id','=','4')\n ->get();\n\n return['gerentes' => $gerentes];\n }", "title": "" }, { "docid": "319d5f56ee65ba46ffcafc3658e3e88b", "score": "0.54712516", "text": "private function create_tables()\n {\n global $wpdb;\n\n /* http://wiip.fr/content/choisir-le-type-de-colonne-de-ses-tables-mysql */\n $sql = '\n CREATE TABLE IF NOT EXISTS '.$this->tables['users'].'(\n id int(11) NOT NULL auto_increment,\n PRIMARY KEY (id),\n nom VARCHAR(255) NOT NULL,\n prenom VARCHAR(255) NOT NULL,\n email VARCHAR(320) NOT NULL,\n password VARCHAR(500) NOT NULL,\n adresse CHAR(255),\n codepostal CHAR(10),\n ville CHAR(60),\n pays CHAR(60),\n telephone_professionnel CHAR(20),\n dateinscription CHAR(20) NOT NULL,\n statut VARCHAR(15),\n evenement VARCHAR(255),\n date_evenement DATE,\n specialite VARCHAR(100),\n categorie VARCHAR(20),\n isUpdate VARCHAR(10),\n organisme_facturation CHAR(100),\n email_facturation CHAR(255),\n adresse_facturation CHAR(255),\n ville_facturation CHAR(60),\n codepostal_facturation CHAR(10),\n pays_facturation CHAR(50),\n contacts TEXT\n \n\n )';\n\n dbDelta($sql);\n\n $sql = '\n CREATE TABLE IF NOT EXISTS '.$this->tables['users_file'].'(\n id int(11) NOT NULL auto_increment,\n PRIMARY KEY (id),\n email VARCHAR(320) NOT NULL,\n fichier VARCHAR(500) NOT NULL,\n chemin VARCHAR(500) NOT NULL,\n date_enregistrement VARCHAR(500) NOT NULL,\n type_doc VARCHAR(100) NOT NULL\n \n )';\n\n dbDelta($sql);\n }", "title": "" }, { "docid": "b20629c3633d7d0e460f3ae254de6b40", "score": "0.54685", "text": "public function defineAdditionalUserTableAttributes()\n {\n if (craft()->userSession->getUser()->admin) {\n return array(\n 'hasTwoFactorAuthentication' => Craft::t('2-Factor Auth'),\n );\n }\n }", "title": "" }, { "docid": "d20b471de1fc02728043c8de6ab3a479", "score": "0.5467922", "text": "public function tampilUserTerakhir()\n {\n $this->db->order_by('id_user','DESC');\n return $this->db->get('tb_user',1);\n }", "title": "" }, { "docid": "14569060702fe85825c295082c2efa9e", "score": "0.54592186", "text": "public function change()\n {\n $table = $this->table('saefis');\n $table->addColumn('user_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('reference_number', 'string', [\n 'default' => null,\n 'limit' => 101,\n 'null' => true,\n ]);\n $table->addColumn('basic_details', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('place_vaccination', 'string', [\n 'default' => null,\n 'limit' => 101,\n 'null' => true,\n ]);\n $table->addColumn('place_vaccination_other', 'string', [\n 'default' => null,\n 'limit' => 250,\n 'null' => true,\n ]);\n $table->addColumn('site_type', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('site_type_other', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('vaccination_in', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('vaccination_in_other', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('reporter_name', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('report_date', 'date', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('start_date', 'date', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('complete_date', 'date', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('designation_id', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('telephone', 'string', [\n 'default' => null,\n 'limit' => 40,\n 'null' => true,\n ]);\n $table->addColumn('mobile', 'string', [\n 'default' => null,\n 'limit' => 40,\n 'null' => true,\n ]);\n $table->addColumn('reporter_email', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('patient_name', 'string', [\n 'default' => null,\n 'limit' => 200,\n 'null' => true,\n ]);\n $table->addColumn('gender', 'string', [\n 'default' => null,\n 'limit' => 20,\n 'null' => true,\n ]);\n $table->addColumn('hospitalization_date', 'date', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('status_on_date', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('died_date', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('autopsy_done', 'string', [\n 'default' => null,\n 'limit' => 40,\n 'null' => true,\n ]);\n $table->addColumn('autopsy_done_date', 'date', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('autopsy_planned', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('autopsy_planned_date', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('past_history', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('past_history_remarks', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('adverse_event', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('adverse_event_remarks', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('allergy_history', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('allergy_history_remarks', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('existing_illness', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('existing_illness_remarks', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('hospitalization_history', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('hospitalization_history_remarks', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('medication_vaccination', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('medication_vaccination_remarks', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('faith_healers', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('faith_healers_remarks', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('family_history', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('family_history_remarks', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('pregnant', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('pregnant_weeks', 'string', [\n 'default' => null,\n 'limit' => 50,\n 'null' => true,\n ]);\n $table->addColumn('breastfeeding', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('infant', 'string', [\n 'default' => null,\n 'limit' => 100,\n 'null' => true,\n ]);\n $table->addColumn('birth_weight', 'integer', [\n 'default' => null,\n 'limit' => 10,\n 'null' => true,\n ]);\n $table->addColumn('delivery_procedure', 'string', [\n 'default' => null,\n 'limit' => 205,\n 'null' => true,\n ]);\n $table->addColumn('delivery_procedure_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('source_examination', 'boolean', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('source_documents', 'boolean', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('source_verbal', 'boolean', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('verbal_source', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('source_other', 'boolean', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('source_other_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('examiner_name', 'string', [\n 'default' => null,\n 'limit' => 205,\n 'null' => true,\n ]);\n $table->addColumn('other_sources', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('signs_symptoms', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('person_details', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('person_designation', 'string', [\n 'default' => null,\n 'limit' => 205,\n 'null' => true,\n ]);\n $table->addColumn('person_date', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('medical_care', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('not_medical_care', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('final_diagnosis', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('when_vaccinated', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('when_vaccinated_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('prescribing_error', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('prescribing_error_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_unsterile', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_unsterile_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_condition', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_condition_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_reconstitution', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_reconstitution_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_handling', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_handling_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_administered', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_administered_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('vaccinated_vial', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('vaccinated_session', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('vaccinated_locations', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('vaccinated_locations_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]); \n $table->addColumn('vaccinated_cluster', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('vaccinated_cluster_number', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('vaccinated_cluster_vial', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('vaccinated_cluster_vial_number', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('syringes_used', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('syringes_used_specify', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('syringes_used_other', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n $table->addColumn('syringes_used_findings', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('reconstitution_multiple', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('reconstitution_different', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('reconstitution_vial', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('reconstitution_syringe', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('reconstitution_vaccines', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('reconstitution_observations', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('cold_temperature', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('cold_temperature_deviation', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('cold_temperature_specify', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('procedure_followed', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('other_items', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('partial_vaccines', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('unusable_vaccines', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('unusable_diluents', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('additional_observations', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('cold_transportation', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('vaccine_carrier', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('coolant_packs', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('transport_findings', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('similar_events', 'string', [\n 'default' => null,\n 'limit' => 55,\n 'null' => true,\n ]);\n $table->addColumn('similar_events_describe', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('similar_events_episodes', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('affected_vaccinated', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('affected_not_vaccinated', 'integer', [\n 'default' => null,\n 'limit' => 11,\n 'null' => true,\n ]);\n $table->addColumn('affected_unknown', 'string', [\n 'default' => null,\n 'limit' => 255,\n 'null' => true,\n ]);\n\n $table->addColumn('community_comments', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]); \n $table->addColumn('relevant_findings', 'text', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('created', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->addColumn('modified', 'datetime', [\n 'default' => null,\n 'limit' => null,\n 'null' => true,\n ]);\n $table->create();\n }", "title": "" }, { "docid": "1cda5b0ad3b3abe6a15fd0460e432f88", "score": "0.54585403", "text": "public static function modeloUserGetAll ():array {\n // Genero lo datos para la vista que no muestra la contraseña ni los códigos de estado o plan\n // sino su traducción a texto\n $stmt=self::$db->query(\"select * from Usuarios\");\n $usuarios=[];\n $stmt->setFetchMode(PDO::FETCH_ASSOC);\n while ($cod=$stmt->fetch()) {\n $datosuser= [\n $cod[\"nombre\"],\n $cod[\"email\"],\n PLANES[$cod[\"plan\"]],\n ESTADOS[$cod[\"estados\"]]\n ];\n $usuarios[$cod[\"user\"]]=$datosuser;\n }\n return $usuarios;\n}", "title": "" }, { "docid": "dbbb8cf5aed3f187f2836a16e6499824", "score": "0.5454782", "text": "public static function createAppigoUserTable()\n {\n $link = TDOUtil::getDBLink();\n if($link)\n {\n\t\t\t$sql = \"CREATE TABLE appigo_user_accounts(userid VARCHAR(36) NOT NULL, username VARCHAR(100), email_verified TINYINT(1), email_opt_out TINYINT(1), password VARCHAR(64), oauth_provider TINYINT NOT NULL DEFAULT 0, oauth_uid VARCHAR(36), first_name VARCHAR(60), last_name VARCHAR(60), admin_level TINYINT(1) NOT NULL DEFAULT 0, deactivated TINYINT(1), last_reset_timestamp INT, creation_timestamp INT NOT NULL DEFAULT 0, image_guid VARCHAR(36), image_update_timestamp INT, INDEX tdo_user_accounts_username_index (username(10)), INDEX tdo_user_accounts_creation_timestamp (creation_timestamp), INDEX tdo_user_accounts_pk(userid(10)))\";\n\t\t\tif(mysql_query($sql, $link))\n\t\t\t{\n TDOUtil::closeDBLink($link);\n \n return true;\n\t\t\t}\n TDOUtil::closeDBLink($link);\n }\n return false;\n }", "title": "" }, { "docid": "30431efde69b29d0bae36088cee6e969", "score": "0.5453499", "text": "private function tbl_permisos_acceso() {\r\n\t\t\t$this->permisos_acceso = $this->esquema->createTable('PERMISOS_ACCESO');\r\n\t\t\t$this->permisos_acceso->addColumn('ID', 'bigint', array(\r\n\t\t\t\t'notnull' => true,\r\n\t\t\t\t'autoincrement' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del Permiso Acceso'\r\n\t\t\t));\r\n\t\t\t$this->permisos_acceso->addColumn('NOMBRE', 'string', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 255,\r\n\t\t\t\t'comment' => 'Nombre de los permisos del Acceso'\r\n\t\t\t));\r\n\t\t\t$this->permisos_acceso->addColumn('LECTURA', 'boolean', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'default' => 0,\r\n\t\t\t\t'comment' => 'Permiso de Lectura'\r\n\t\t\t));\r\n\t\t\t$this->permisos_acceso->addColumn('ESCRITURA', 'boolean', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'default' => 0,\r\n\t\t\t\t'comment' => 'Permiso de Escritura'\r\n\t\t\t));\r\n\t\t\t$this->permisos_acceso->addColumn('ACTUALIZAR', 'boolean', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'default' => 0,\r\n\t\t\t\t'comment' => 'Permiso de Actualizar'\r\n\t\t\t));\r\n\t\t\t$this->permisos_acceso->addColumn('ELIMINAR', 'boolean', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'default' => 0,\r\n\t\t\t\t'comment' => 'Permiso de Eliminar'\r\n\t\t\t));\r\n\t\t\t$this->permisos_acceso->setPrimaryKey(array('ID'));\r\n\t\t}", "title": "" }, { "docid": "c940eb32368dfec2234d48dfd4fad169", "score": "0.5451836", "text": "function getAllUser_Privilage() {\n\t\t$SQL=\"SELECT * FROM user_privilage_tab\";\n\t\t$this->db->executeQuery($SQL);\n\n\t\t$result = array();\n\t\t$count = 0;\n\n\t\twhile($rs = $this->db->nextRecord())\n\t\t{\n\t\t\t$user_privilage = new User_Privilage();\n\t\t\t$user_privilage->setId($rs['id']);\n\t\t\t$user_privilage->setOrder_no($rs['order_no']);\n\t\t\t$user_privilage->setCode($rs['code']);\n\t\t\t$user_privilage->setUser_id($rs['user_id']);\n\t\t\t$user_privilage->setPrivilage_id($rs['privilage_id']);\n\t\t\t$user_privilage->setIs_view($rs['is_view']);\n\t\t\t$user_privilage->setIs_save($rs['is_save']);\n\t\t\t$user_privilage->setIs_edit($rs['is_edit']);\n\t\t\t$user_privilage->setIs_delete($rs['is_delete']);\n\t\t\t$user_privilage->setData_date($rs['data_date']);\n\t\t\t$user_privilage->setStatus($rs['status']);\n\t\t\t$user_privilage->setDate_($rs['date_']);\n\t\t\t$result[$count++] = $user_privilage;\n\t\t}\n\n\t\t$this->db->closeRs();\n\t\treturn $result;\n\n\t}", "title": "" }, { "docid": "edc10cba2af4459da487495c40646328", "score": "0.5437074", "text": "public function get_eng_trabajanding(){\n $query = $this->db->query(\"\n SELECT \n DISTINCT otp.k_id_user, CONCAT(u.n_name_user, ' ', u.n_last_name_user) AS nombre\n FROM \n ot_padre otp\n INNER JOIN\n user u\n ON u.k_id_user = otp.k_id_user\n ;\");\n return $query->result();\n }", "title": "" }, { "docid": "03bf3ca4957cebd0bc2ed0cdd20dc946", "score": "0.54238623", "text": "public function mostrar_tabla_anuncios(){\n\n\t\t$return = '';\n\t\t$mensaje = array('0' => 'Desactivado', '1' => 'Activo');\n\t\t$cols = array('id', 'clave_interna', 'provincia', 'municipio', 'tipo_venta', 'anuncio_promocionado',\n\t\t\t\t\t 'anuncio_e','paquete','activo','apto');\n\t\t$this->where('ussr',$this->user);\n\n\t\tif($salida = $this->get('anuncios', NULL, $cols)){\n\n\t\t\t$return .= '<table class=\"table table-bordered table-hover\">';\n\n\t\t\t$return .= '<tr>\n\t\t\t\t\t <th>Imagen</th>\n\t\t\t\t\t <th>Clave interna</th>\n\t\t\t\t\t <th>Paquete</th>\n\t\t\t\t\t <th>Provincia</th>\n\t\t\t\t\t <th>Operacion</th>\n\t\t\t\t\t <th>Nº imagenes</th>\n\t\t\t\t\t <th>Idiomas</th>\n\t\t\t\t\t <th>Contratado</th>\n\t\t\t\t\t <th>Anuncio apto</th>\n\t\t\t\t\t <th>Anuncio activo</th>\n\t\t\t\t\t <th>Opciones</th>\n\t\t\t\t\t </tr>';\n\t\t\t//por cada anuncio varias cosas habra que hacer\n\t\t\t$i=1;\t\t \n\t\t\tforeach ($salida as $key => $value) {\n\t\t\n\t\t\t\t$num = $i++;\n\t\t\t\t$id_arr = md5($value['id']);\n\t\t\t\t$imagen = $this->sacar_foto($id_arr, $this->user);\n\n\t\t\t\t$return .='<tr>\n\t\t\t\t\t \t<td>'.$imagen.'</td>\n\t\t\t\t\t <td>'.$value['clave_interna'].'</td>\n\t\t\t\t\t <td>'.$value['paquete'].'</td>\n\t\t\t\t\t <td>'.$value['provincia'].'<br />\n\t\t\t\t\t '.$this->show_municipio($value['municipio']).'</td>\n\t\t\t\t\t <td>'.$value['tipo_venta'].'</td>';\n\n\n\n\t\t\t\t//mostrara numero de imagenes en el anuncio\n\t\t\t\t$return .='<td>';\n\t\t\t\t$return .= $this->num_imagenes_anuncio($value['id']);\n\t\t\t\t$return .='</td>';\n\n\n\t\t\t\t//mostrando idiomas en los que esta el anuncio\n\t\t\t\t$return .='<td>';\n\t\t\t\t$return .= $this->idiomas_del_anuncio($value['id']);\n\t\t\t\t$return .='</td>';\n\n\t\t\t\t//estrella o promocionado\n\t\t\t\t$return .='<td>';\n\t\t\t\tif(!empty($value['anuncio_promocionado']) && ($value['anuncio_promocionado'] == 1)){\n\t\t\t\t\t$return .= 'Anuncio promocionado<br />';\t}\n\t\t\t\tif($value['anuncio_e'] == 1){\n\t\t\t\t\t$return .= 'Anuncio estrella';\t\t\t}\t\n\t\t\t\t\t\n\t\t\t $return .= '</td>';\n\t\t\t $return .= '<td>'.$value['apto'].'</td>';\n\t\t\t $return .= '<td id=\"act-'.$id_arr.'\">'.$mensaje[$value['activo']].'</td>';\n\t\t\t //dropdown de opciones\n\t\t\t $return .= '<td>'.$this->dropdown_tabla_anuncios($id_arr).'</td>';\n\t\t\n\t\t\t\t$return .= '</tr>';\n\n\t\t\t}//fin del foreach\n\n\t\t\t$return .= '</table>';\n\n\n\t\t}else{\n\t\t\t$return .= '<h5 id=\"sec1\">No hay anuncios 1 </h5>';\n\t\t}\n\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "32b9ba464246888e789ec1cd80b91f5d", "score": "0.54190433", "text": "public function ddl_user()\r\n\t {\r\n\t $link = $this->connect();\r\n\t $search = \"SELECT user_id,user_name,user_type,password FROM user\";\r\n\t $resultq = mysqli_query($link, $search);\r\n\t $usr = array();\r\n\t $usrArr = array();\r\n\t while ($row = mysqli_fetch_row($resultq)) {\r\n\t $usr['user_id'] = $row[0];\r\n\t $usr['username'] = $row[1];\r\n\t $usr['user_type'] = $row[2];\r\n\t $usr['password'] = $row[3];\r\n\t $usrArr[] = $usr;\r\n\t }\r\n\t return $usrArr;\r\n\t }", "title": "" }, { "docid": "c0f241efe2278ae2581a1aab710fbb8b", "score": "0.5416404", "text": "public function change()\n {\n $members = $this->table('members');\n $members->addColumn('password', 'string')\n ->addColumn('com_trading_name_vie', 'string')\n ->addColumn('com_trading_name_eng', 'string')\n ->addColumn('com_trading_name_jpn', 'string')\n ->addColumn('com_short_name_vie', 'string')\n ->addColumn('com_short_name_eng', 'string')\n ->addColumn('com_short_name_jpn', 'string')\n ->addColumn('com_country', 'integer', ['comment' => '1: VN, 2: JP'])\n ->addColumn('com_lang_chosen', 'string', ['comment' => '1: VIE, 2: ENG, 3: JPN'])\n ->addColumn('com_established', 'date')\n ->addColumn('com_tax_code', 'string')\n ->addColumn('com_capital', 'string')\n ->addColumn('com_staff', 'integer')\n ->addColumn('gender', 'integer')\n ->addColumn('image', 'string',['null' =>true])\n ->addColumn('com_business_vie', 'text')\n ->addColumn('com_business_eng', 'text')\n ->addColumn('com_business_jpn', 'text')\n ->addColumn('com_note_vie','text')\n ->addColumn('com_note_eng','text')\n ->addColumn('com_note_jpn','text')\n ->addColumn('address_vie', 'string')\n ->addColumn('address_eng', 'string')\n ->addColumn('address_jpn', 'string')\n ->addColumn('com_pic_department_vie', 'string')\n ->addColumn('com_pic_department_eng', 'string')\n ->addColumn('com_pic_department_jpn', 'string')\n ->addColumn('type_company_id', 'integer')\n ->addColumn('type_business_id', 'integer')\n ->addColumn('mobile', 'string')\n ->addColumn('com_rate', 'string')\n ->addColumn('cooperation_id', 'integer')\n ->addColumn('need_id', 'integer')\n ->addColumn('com_status', 'integer')\n ->addColumn('com_inquiry_vie', 'text')\n ->addColumn('com_inquiry_eng', 'text')\n ->addColumn('com_inquiry_jpn', 'text')\n ->addColumn('com_level', 'integer', ['default' => 2,'comment' => '1: vip member, 2: default member'])\n ->addColumn('com_view', 'integer')\n ->addColumn('com_send_email','integer')\n ->addColumn('com_name_jpn','string')\n ->addColumn('com_name_eng', 'string')\n ->addColumn('manager_eng', 'string')\n ->addColumn('manager_jpn', 'string')\n ->addColumn('created', 'datetime')\n ->addColumn('modified', 'datetime', ['null' => true, 'default' => null])\n ->save();\n\n }", "title": "" }, { "docid": "2f02c9082fff4cccbd21526510f001cb", "score": "0.5409982", "text": "function index_superusuarios() {\n\t\t$conditions = array('Administrativo.perfil' => '0'); \n\t\t$order = array('Administrativo.nombre' => 'ASC');\n\t\t$administrativos=$this->Administrativo->find('all', array ('conditions' => $conditions, 'order' => $order));\t\t\n\t\t$perfil=$this->Perfil->find('all');\n\t\tforeach ($perfil as $p){\n\t\t\t$perfiles[$p['Perfil']['id']]=$p['Perfil']['perfil'];\n\t\t}\n\t\t$perfiles[0]='SuperAdministrador';\n\t\t$this->set('perfiles', $perfiles);\n\t\t$this->set('administrativos', $administrativos);\n\t}", "title": "" }, { "docid": "ca8739bf5ccab337ee35816557a55de6", "score": "0.5405044", "text": "function get_usersTable(){\n $result = array();\n $users = selectQuery(TAB_USERS, \"\", \"id DESC\");\n $user_groups =\n $i = 0;\n\n foreach($users as $user){\n $id = $user['id'];\n $result[$i]['id'] = $id;\n $result[$i]['username'] = $user['username'];\n $result[$i]['password'] = \"**********\";\n $result[$i]['email'] = $user['email'];\n $result[$i]['group'] = selectJoin(TAB_USR_ROLE, TAB_GROUPS, \"groupId = id\", \"userId = $id\")[0]['role'];\n $i++;\n }\n return $result;\n}", "title": "" }, { "docid": "106fc01d49d1b35c5a34ba0519f4af48", "score": "0.5403646", "text": "public function fetchAllUser() {\n try {\n // Select all users\n $query = \"\n select * \n from tb_user \n \";\n // Create object to connect to MySQL using PDO\n $mysqlPDO = new MySQLPDO();\n // Prepare the query\n $statement = $mysqlPDO->getConnection()->prepare($query);\n // Execute the query without paramters\n $statement->execute();\n // Get affect rows in associative array\n $rows = $statement->fetchAll();\n // Foreach row in array\n foreach ($rows as $row) {\n // Create a User object\n $user = new User($row);\n //Create datatable row\n $tmp_data[] = array(\n $user->getEmail(),\n $user->getUsername(),\n \"********\",\n \"<div style='text-align:center'>\".$user->getAccess().\"</div>\",\n $user->getState() == \"0\" ? '<div style=\"text-align:center\"><i class=\"fas fa-times\" style=\"color:red\"></i></div>' : '<div style=\"text-align:center\"><i class=\"fas fa-check\" style=\"text-align: center; color:green;\"></i></div>',\n \"<div style='text-align:center'><a href='javascript:update(\".json_encode($user).\")' class='btn btn-info'><i class='fas fa-edit'></i></a></div>\",\n \"<div style='text-align:center'><a href='javascript:remove(\".$user->getId().\")' class='btn btn-danger'><i class='far fa-trash-alt'></i></a></div>\"\n );\n }\n // Export into DataTable json format if there's any record in $tmp_data\n if (isset($tmp_data) && count($tmp_data) > 0) {\n $data = array(\n \"data\" => $tmp_data\n );\n } else {\n $data = array(\n \"data\" => array()\n );\n }\n return $data;\n } catch (PDOException $e) {\n die(\"Error message: \" . $e->getMessage());\n }\n }", "title": "" }, { "docid": "f56fbe22b1e5523e6fa7a42c19ac98e3", "score": "0.540243", "text": "static public function mdlIngresarUsuario($tabla, $datos){\n\n $stmt = Conexion::conectar()->prepare(\"INSERT INTO $tabla(nombres,apellidos,tipo_documento,documento,celular,email,profesion,tipo_vinculacion,cvlac,cargo,ficha,fecha_vinculacion,fecha_desvinculacion,estado_vinculacion,contrasena,id_programa,id_rol ) VALUES (:nombres,:apellidos,:tipo_documento,:documento,:celular,:email,:profesion,:tipo_vinculacion,:cvlac,:cargo,:ficha,:fecha_vinculacion,:fecha_desvinculacion,:estado_vinculacion,:contrasena,:id_programa,:id_rol)\");\n\n $p=null;\n if($datos[\"id_programa\"]==\"NULL\"){\n $p=null;\n }else{\n $p=$datos[\"id_programa\"];\n }\n\n $stmt->bindParam(\":nombres\", $datos[\"nombres\"], PDO::PARAM_STR);\n $stmt->bindParam(\":apellidos\", $datos[\"apellidos\"], PDO::PARAM_STR);\n $stmt->bindParam(\":tipo_documento\", $datos[\"tipo_documento\"], PDO::PARAM_STR);\n $stmt->bindParam(\":documento\", $datos[\"documento\"], PDO::PARAM_STR);\n $stmt->bindParam(\":celular\", $datos[\"celular\"], PDO::PARAM_STR);\n $stmt->bindParam(\":email\", $datos[\"email\"], PDO::PARAM_STR);\n $stmt->bindParam(\":profesion\", $datos[\"profesion\"], PDO::PARAM_STR);\n $stmt->bindParam(\":tipo_vinculacion\", $datos[\"tipo_vinculacion\"], PDO::PARAM_STR);\n $stmt->bindParam(\":cvlac\", $datos[\"cvlac\"], PDO::PARAM_STR);\n $stmt->bindParam(\":cargo\", $datos[\"cargo\"], PDO::PARAM_STR);\n $stmt->bindParam(\":ficha\", $datos[\"ficha\"], PDO::PARAM_STR);\n $stmt->bindParam(\":fecha_vinculacion\", $datos[\"fecha_vinculacion\"], PDO::PARAM_STR);\n $stmt->bindParam(\":fecha_desvinculacion\", $datos[\"fecha_desvinculacion\"], PDO::PARAM_STR);\n $stmt->bindParam(\":estado_vinculacion\", $datos[\"estado_vinculacion\"], PDO::PARAM_STR);\n $stmt->bindParam(\":contrasena\", $datos[\"contrasena\"], PDO::PARAM_STR);\n $stmt->bindParam(\":id_programa\", $p, PDO::PARAM_STR);\n $stmt->bindParam(\":id_rol\", $datos[\"id_rol\"], PDO::PARAM_STR);\n \n if($stmt->execute()){\n\n return \"ok\";\n\n }else{\n\n return \"error\";\n\n }\n\n $stmt->close();\n\n $stmt = null;\n\n }", "title": "" }, { "docid": "5dc2623506fc608328691085098ca99a", "score": "0.53875184", "text": "function get_all_user($koneksi){\n\t\t$query = \"SELECT * FROM v_user\";\n\n\t\t$statement = $koneksi->prepare($query);\n\t\t$statement->execute();\n\t\t$result = $statement->fetchAll();\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "362c0547e014af998dad312652dff8f0", "score": "0.53815323", "text": "public function all_user()\n {\n $this->res->SetObject(RCD::SC, RCD::SC, FALSE, $this->db->get('user')->result());\n }", "title": "" }, { "docid": "7f383e8c5272380c9bfff8b2717157ee", "score": "0.5379276", "text": "function getUsers() {\r\n\t\t\t$sql = \"SELECT users.user_id, users.email, users.student_id, 'Click to change password', users.active, societies.society_name FROM `users`, `societies` WHERE societies.society_id=users.society_id\";\r\n\t\t\t$result = $this->query($sql);\r\n\t\t\tif (mysql_num_rows($result) == 0) return false;\r\n\t\t\twhile ($row = mysql_fetch_object($result)) $rows[] = array($row->user_id, $row->email, $row->student_id, \"Click to change\", str_replace(array(1, 0), array(\"Yes\", \"No\"), $row->active), $row->society_name);\r\n\t\t\treturn $rows;\r\n\t\t}", "title": "" }, { "docid": "a5f72d658b1e680ca68e024beb60c22d", "score": "0.5378417", "text": "public function getSeguidoresUser()\n {\n return $this->hasMany(User::className(), ['id' => 'user_id'])->via('seguidores');\n }", "title": "" }, { "docid": "17acbb50d4bd75d234b91e52a9e9b0da", "score": "0.5375473", "text": "public static function showUserTableFromDb() {\n $model = new UserModel();\n $users = $model->getUsers();\n\n echo \"<table id='users'>\n <tr>\n <th></th>\n <th>Utilisateur</th>\n <th>Date de création</th>\n <th>Mail</th>\n <th>Date de naissance</th>\n <th>Note</th>\n <th>Voitures</th>\n <th>Commentaires</th>\n </tr>\";\n for ($i = 0; $i < count($users); $i++ ) {\n\n $user = $users[$i];\n array_push(User::$listOfUsers, $user);\n\n echo \"<tr>\";\n echo \"<td>\";\n $iLink = $i + 1;\n echo \"<a href='users.php?user=$iLink'>Voir</a>\";\n echo \"</td>\";\n echo \"<td>\";\n echo $user['firstName'] . \" \" . $user['lastName'];\n echo \"</td>\";\n echo \"<td>\";\n echo $user['date'];\n echo \"</td>\";\n echo \"<td>\";\n echo $user['email'];\n echo \"</td>\";\n echo \"<td>\";\n echo $user['birthDate'];\n echo \"</td>\";\n echo \"<td>\";\n if($user['rate'] === '0') { echo \"Pas de note\"; }\n echo \"</td>\";\n echo \"<td>\";\n echo $user['listOfCars'];\n echo \"</td>\";\n echo \"<td>\";\n echo $user['listOfComments'];\n echo \"</td>\";\n echo \"</tr>\";\n }\n $_SESSION['listOfUsers'] = User::$listOfUsers;\n\n echo \"</table>\";\n }", "title": "" }, { "docid": "204fdfe12f748618d4b1cba68e61be0c", "score": "0.53665906", "text": "function getUserInfo($id){\n\t\n\t$usr_info = mysql_fetch_object(listAll(\"user\", \"WHERE id = '$id'\"));\n\t$descripcion = getUserData($id, \"2\");\n\t$user_img = getUserData($id, \"1\");\n\t$direccion = getUserData($id, \"3\");\n\t$ciudad = getUserData($id, \"10\");\n\t$cp = getUserData($id, \"4\");\n\t$pais = getUserData($id, \"5\");\n\t$telefono = getUserData($id, \"6\");\n\t$movil =getUserData($id, \"7\");\n\t$exp = getUserData($id, \"14\");\n\t$cam = getUserData($id, \"11\");\n\t$lentes = getUserData($id, \"12\");\n\t$equip = getUserData($id, \"13\");\n\t$cover = getUserData($id, \"16\");\n\t$user_pago = getUserData($id, \"17\");\n $escuelaFotografia = getUserData($id, \"18\");\n $masEducacion = getUserData($id, \"19\");\n $experienciaLaboral = getRecentUserData($id, \"20\");\n $idiomas = getUserData($id, \"22\");\n $habilidades = getUserData($id, \"21\");\n $rut = getUserData($id, \"23\");\n\t\n\tif($usr_info->gender == \"H\"){\n\t\t$gender = \"Hombre\";\n\t}else{\n\t\t$gender = \"Mujer\";\n\t}\n\n\t$paisf = listAll(\"paises\",\"WHERE iso = '$pais->description'\");\n\t$rs_paisf = mysql_fetch_object($paisf);\n\t\n\t$user['id'] = $usr_info->id;\n\t$user['user_type'] = $usr_info->user_type;\n\t$user['email'] = $usr_info->user;\n $user['new_email'] = $usr_info->new_email;\n $user['new_email_code'] = $usr_info->new_email_code;\n\t$user['descripcion'] = $descripcion->description;\n\t$user['user_img']= $user_img->description;\n\t$user[\"name\"] = $usr_info->name;\n\t$user['lastname'] = $usr_info->lastname;\n\t$user['dob']= DateHelper::getLongDate($usr_info->dob);\n $user['user_dob'] = DateHelper::getShortDate($usr_info->dob, 'd/m/Y');\n\t$user['sex']= $gender;\n\t$user['act']= $usr_info->act;\n\t$dob = explode(\"-\",$usr_info->dob);\n\t$user['ano'] = $dob[0];\n\t$user['mes'] = $dob[1];\n\t$user['dia'] = $dob[2];\n\t$user['direccion'] = $direccion->description;\n\t$user['ciudad'] = $ciudad->description;\n\t$user['cp'] = $cp->description;\n\t$user['pais'] = utf8_encode($rs_paisf->nombre);\n\t$user['pais_ab'] = utf8_encode($rs_paisf->iso);\n\t$user['telefono'] = $telefono->description;\n\t$user['movil'] = $movil->description;\n\t$user['exp'] = $exp->description;\n $user['escuela-fotografia'] = $escuelaFotografia->description;\n $user['mas-educacion'] = $masEducacion->description;\n $user['experiencia-laboral'] = json_decode($experienciaLaboral->description);\n $user['idiomas'] = json_decode($idiomas->description);\n $user['habilidades'] = json_decode($habilidades->description);\n $user['rut'] = $rut->description;\n\t$user['cam'] = json_decode($cam->description);\n\t$user['lentes'] = json_decode($lentes->description);\n\t$user['equip'] = json_decode($equip->description);\n\t$user[\"act_code\"] = $usr_info->act_code;\n $user[\"profile_completed\"] = $usr_info->profile_completed;\n $user[\"wizard_completed\"] = $usr_info->wizard_completed;\n $user[\"wizard_contact_creative_completed\"] = $usr_info->wizard_contact_creative_completed;\n\t$user['user_cover'] = $cover->description;\n\t$user['user_pago'] = $user_pago->description;\n\t$user['full_name'] = ucwords($user[\"name\"] . \" \" . $user['lastname']);\n //TODO make it an external function\n //TODO set a default image if file does not exists\n if (file_exists(FConfig::getBasePath().\"/profiles/\".sha1($usr_info->id).\"/profile.jpg\")){\n $user['profile_image_url'] = \"profiles/\".sha1($usr_info->id).\"/profile.jpg\";\n } else {\n if ($user['user_type'] == User::USER_TYPE_PHOTOGRAPHER) {\n $user['profile_image_url'] = \"images/profile_default_photographer.jpg\";\n } else {\n $user['profile_image_url'] = \"images/profile_default_client.jpg\";\n }\n }\n\n if (file_exists(FConfig::getBasePath().\"/profiles/\".sha1($usr_info->id).\"/cover.jpg\")){\n $user['cover_image_url'] = \"profiles/\".sha1($usr_info->id).\"/cover.jpg\";\n } else {\n $user['cover_image_url'] = \"images/cover_default.jpg\";\n }\n\n return $user;\n}", "title": "" }, { "docid": "4c084d5a84e2ef797a720f950adbd5d9", "score": "0.5364039", "text": "private function tbl_guiones_registro_hfc() {\r\n\t\t\t$this->guiones_registro_hfc = $this->esquema->createTable('GUIONES_REGISTRO_HFC');\r\n\t\t\t$this->guiones_registro_hfc->addColumn('ID', 'bigint', array(\r\n\t\t\t\t'notnull' => true,\r\n\t\t\t\t'autoincrement' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del registro del guion HFC'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro_hfc->addColumn('REGISTRO', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del registro [ID de la tabla GUIONES_REGISTRO]'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro_hfc->addColumn('INTERMITENCIA', 'boolean', array(\r\n\t\t\t\t'notnull' => true,\r\n\t\t\t\t'default ' => '0', \r\n\t\t\t\t'comment' => 'Determina la intermitencia del servicio, 0 => NO, 1 => SI'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro_hfc->addColumn('GUION', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID del Guion [ID de la tabla GUIONES]'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro_hfc->addColumn('PRIORIDAD', 'bigint', array(\r\n\t\t\t\t'notnull' => true, \r\n\t\t\t\t'length' => 20,\r\n\t\t\t\t'comment' => 'ID de la prioridad del Guion [ID de la tabla GUIONES_REGISTRO_NODOS]'\r\n\t\t\t));\r\n\t\t\t$this->guiones_registro_hfc->setPrimaryKey(array('ID'));\r\n\t\t\t$this->guiones_registro_hfc->addForeignKeyConstraint($this->guiones_registro, array('REGISTRO'), array('ID'), $this->opcForeign);\r\n\t\t\t$this->guiones_registro_hfc->addForeignKeyConstraint($this->guiones, array('GUION'), array('ID'), $this->opcForeign);\r\n\t\t\t$this->guiones_registro_hfc->addForeignKeyConstraint($this->guiones_prioridades, array('PRIORIDAD'), array('ID'), $this->opcForeign);\r\n\t\t}", "title": "" }, { "docid": "c666630fc1d5f5cb98f9eedbdfb15832", "score": "0.5360913", "text": "public static function createUser($array){\n $db = new model();\n $db->prepare(\"SHOW COLUMNS FROM Users\");\n $usertable = $db->GetAll();\n $usertablenames = [];\n foreach($usertable as $table){\n array_push($usertablenames,$table['Field']);\n }\n $db->prepare(\"SHOW COLUMNS FROM Personal\");\n $personaltable = $db->GetAll();\n $personaltablenames = [];\n foreach($personaltable as $table){\n array_push($personaltablenames,$table['Field']);\n }\n $keynames = array_keys($array);\n $i = 0;\n $userkomma = false;\n $personalkomma = false;\n $userquery1 = \"\";\n $binduser = \"\";\n $personalquery1 = \"\";\n $bindpersonal = \"\";\n $personal = [];\n $uservalue = [];\n $array['username'] = strtolower( $array['username']);\n if($array['username'] == \"dashboard\"){\n echo \"username\";\n die();\n }\n $array['password'] = hash('sha512',$array['password'].$array['username']);\n foreach($array as $item){\n if(in_array($keynames[$i],$personaltablenames)){\n if($personalkomma){\n $personalquery1 = $personalquery1.\",\"; \n $bindpersonal = $bindpersonal.\",\";\n }\n $personalkomma = True;\n $personalquery1 = $personalquery1.$keynames[$i];\n $bindpersonal = $bindpersonal.\":\".$keynames[$i];\n $tempar = [\":\".$keynames[$i],$item];\n array_push($personal,$tempar);\n }else if(in_array($keynames[$i],$usertablenames)){\n if($userkomma){\n $userquery1 = $userquery1.\",\";\n $binduser = $binduser.\",\"; \n }\n $userkomma = True;\n $userquery1 = $userquery1.$keynames[$i];\n $binduser = $binduser.\":\".$keynames[$i];\n $tempar = [\":\".$keynames[$i],$item];\n array_push($uservalue,$tempar);\n }else{\n echo \"Not exist\";\n } \n $i++;\n }\n $db->prepare(\"SELECT * FROM Users WHERE username=:user\");\n $db->bind(\":user\",$array['username']);\n $result = $db->GetAll();\n if(count($result) >=1){\n echo \"username\";\n die();\n }\n $query1 = \"INSERT INTO Personal($personalquery1) VALUES($bindpersonal)\";\n $db->prepare($query1);\n foreach($personal as $bindvalue){\n $db->bind($bindvalue[0],$bindvalue[1]);\n }\n $db->execute();\n $id = $db->dbh->lastInsertId();\n $query1 = \"INSERT INTO Users($userquery1,Personal) VALUES($binduser,:id)\";\n $db->prepare($query1);\n foreach($uservalue as $bindvalue){\n $db->bind($bindvalue[0],$bindvalue[1]);\n }\n $db->bind(\":id\",$id);\n $db->execute();\n $id = $db->dbh->lastInsertId();\n $db->prepare(\"INSERT INTO userRole(user,role) VALUES(:user,2)\");\n $db->bind(\":user\",$id);\n $db->execute();\n echo \"Done\";\n }", "title": "" }, { "docid": "15ba69f324374a2ec72cf5a44d5b6db0", "score": "0.5357618", "text": "static public function mdlIngresarFfiscales($tabla, $datos){\n\n\t\t$stmt = Conexion::conectar()->prepare(\"INSERT INTO $tabla(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\toperador\n , pcontacto\n , area\n , cargo\n , mail\n , telofi\n , ext\n , telextra\n , uuid\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, pcontacto2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, area2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, cargo2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, mail2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, telofi2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, ext2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, telextra2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, perfil\n\n )\n VALUES (\n :operador\n , :pcontacto\n , :area\n , :cargo\n , :mail\n , :telofi\n , :ext\n , :telextra\n , :uuid\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :pcontacto2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :area2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :cargo2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :mail2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :telofi2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :ext2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :telextra2\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, :perfil\n\n\n )\"\n );\n\n\t\t$stmt->bindParam(\":uuid\", $datos[\"uuid\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":operador\", $datos[\"operador\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":pcontacto\", $datos[\"pcontacto\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":area\", $datos[\"area\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":cargo\", $datos[\"cargo\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":mail\", $datos[\"mail\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":telofi\", $datos[\"mail\"], PDO::PARAM_STR);\n $stmt->bindParam(\":ext\", $datos[\"ext\"], PDO::PARAM_STR);\n $stmt->bindParam(\":telextra\", $datos[\"telextra\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":pcontacto2\", $datos[\"pcontacto2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":area2\", $datos[\"area2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":cargo2\", $datos[\"cargo2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":mail2\", $datos[\"mail2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":telofi2\", $datos[\"telofi2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":ext2\", $datos[\"ext2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":telextra2\", $datos[\"telextra2\"], PDO::PARAM_STR);\n\t\t$stmt->bindParam(\":perfil\", $datos[\"perfil\"], PDO::PARAM_STR);\n\n\n\n\n\t\tif($stmt->execute()){\n\n\t\t\treturn \"La información se ha guardado exitosamente\";\n\n\t\t}else{\n\n\t\t\t$arr = $stmt ->errorInfo();\n\t\t\t$arr[3]=\"ERROR\";\n\t\t\treturn $arr[2];\n\n\t\t}\n\n\t\t$stmt->close();\n\n\t\t$stmt = null;\n\n\t}", "title": "" }, { "docid": "ece4f4ab10e79e3622489d53b99f390a", "score": "0.53556126", "text": "public function userList(){\n $this->db->select(\"ui.user_id,\n CONCAT(ui.lname, ', ' ,ui.fname, ' ', ui.mname) name, u.user_type,\n ui.fname f_name,ui.lname l_name, ui.mname m_name , ui.email, \n u.username, u.password, uat.article_type_id, at.type article_type\n \")\n ->from(\"tbl_user_info ui\")\n ->join(\"tbl_user u\",\"ON u.id = ui.user_id\",\"inner\")\n ->join(\"tbl_user_article_type uat\",\"ON uat.user_id = ui.user_id\",\"left\")\n ->join(\"tbl_article_type at\",\"ON at.id = uat.article_type_id\",\"left\");\n $this->db->where(\"u.status\", \"saved\");\n $this->db->order_by(\"ui.lname\");\n $query = $this->db->get();\n \n foreach($query->result() as $each){\n $each->password = $this->encryptpass->pass_crypt($each->password, 'd');\n }\n\n return $query->result();\n }", "title": "" }, { "docid": "5fbabd761bed53f5c3fd0c240ba543a9", "score": "0.53461766", "text": "public function column_users($blog)\n {\n }", "title": "" }, { "docid": "1d54264dfa69f9a989bf4fc3e2be56bb", "score": "0.53448427", "text": "public function fill_with_eingenieer(){\n $query =$this->db->query(\" \n SELECT \n CONCAT(n_name_user, ' ', n_last_name_user) AS nombre, \n n_mail_user AS mail, \n cell_phone AS telefono \n FROM user\n WHERE \n n_role_user = 'ingeniero' AND n_group = 'GESTION OTS ESTANDAR'; \n \");\n return $query->result();\n }", "title": "" }, { "docid": "353f2c8114d71800699fc13f11e70bbc", "score": "0.53334653", "text": "static public function mdlEditarFFiscalesTab2($tabla, $datos){\n\n\t\t\t$stmt = Conexion::conectar()->prepare(\"UPDATE $tabla SET\n\t\t \t ,personal_f1_fisdelminisp_M = :personal_f1_fisdelminisp_M\n\t\t\t\t ,personal_f1_fisdelminisp_H = :personal_f1_fisdelminisp_H\n\t\t\t\t ,personal_f1_fisdelminisp_T = :personal_f1_fisdelminisp_T\n\n\t\t\t \t ,personal_f1_agenminpu_M = :personal_f1_agenminpu_M\n\t\t\t\t ,personal_f1_agenminpu_H = :personal_f1_agenminpu_H\n\t\t\t\t ,personal_f1_agenminpu_T = :personal_f1_agenminpu_T\n\n\t\t\t\t ,personal_f1_secminpu_M = :personal_f1_secminpu_M\n\t\t\t\t ,personal_f1_secminpu_H = :personal_f1_secminpu_H\n\t\t\t\t ,personal_f1_secminpu_T = :personal_f1_secminpu_T\n\n\t\t\t\t ,personal_f1_peri_M = :personal_f1_peri_M\n\t\t\t\t ,personal_f1_peri_H = :personal_f1_peri_H\n\t\t\t\t ,personal_f1_peri_T = :personal_f1_peri_T\n\n\t\t\t\t ,personal_f1_pomininvjud_M = :personal_f1_pomininvjud_M\n\t\t\t\t ,personal_f1_pomininvjud_H = :personal_f1_pomininvjud_H\n\t\t\t\t ,personal_f1_pomininvjud_T = :personal_f1_pomininvjud_T\n\n\t\t\t\t ,personal_f1_otros = :personal_f1_otros\n\t\t\t\t ,personal_f1_otros_M = :personal_f1_otros_M\n\t\t\t\t ,personal_f1_otros_H = :personal_f1_otros_H\n\t\t\t\t ,personal_f1_otros_T = :personal_f1_otros_T\n\n\t\t\t\t ,personal_f1_siningre_M = :personal_f1_siningre_M\n\t\t\t ,personal_f1_siningre_H = :personal_f1_siningre_H\n\t\t\t ,personal_f1_siningre_T = :personal_f1_siningre_T\n\t\t\t\t --------\n\t\t\t \t ,personal_p1_prirespon_H = :personal_p1_prirespon_H\n\t\t\t ,personal_p1_prirespon_T = :personal_p1_prirespon_T\n\n\t\t\t\t , personal_p1_total_M = :personal_p1_total_M\n\t\t\t\t , personal_p1_total_H = :personal_p1_total_H\n\t\t\t\t , personal_p1_total_T = :personal_p1_total_T\n\n\n\n\t\t\t\t , personal_p1_otros = :personal_p1_otros\n\t\t\t , personal_p1_otros_M = :personal_p1_otros_M\n\t\t\t \t , personal_p1_otros_H = :personal_p1_otros_H\n\t\t\t , personal_p1_otros_T = :personal_p1_otros_T\n\t\t\t\t , personal_p1_siningre_M = :personal_p1_siningre_M\n\t\t\t\t , personal_p1_siningre_H = :personal_p1_siningre_H\n\t\t\t\t , personal_p1_siningre_T = :personal_p1_siningre_T\n\t\t\t\t , personal_p1_de1a5000_M = :personal_p1_de1a5000_M\n\t\t\t\t , personal_p1_de1a5000_H = :personal_p1_de1a5000_H\n\t\t\t\t , personal_p1_de1a5000_T = :personal_p1_de1a5000_T\n\t\t\t\t , personal_p1_de5001a10000_M = :personal_p1_de5001a10000_M\n\t\t\t\t , personal_p1_de5001a10000_H = :personal_p1_de5001a10000_H\n\t\t\t\t , personal_p1_de5001a10000_T = :personal_p1_de5001a10000_T\n\t\t\t\t , personal_p1_de10001a15000_M = :personal_p1_de10001a15000_M\n\t\t\t\t , personal_p1_de10001a15000_H = :personal_p1_de10001a15000_H\n\t\t\t\t , personal_p1_de10001a15000_T = :personal_p1_de10001a15000_T\n\t\t\t\t , personal_p1_de15001a20000_M = :personal_p1_de15001a20000_M\n\t\t\t\t , personal_p1_de15001a20000_H = :personal_p1_de15001a20000_H\n\t\t\t\t , personal_p1_de15001a20000_T = :personal_p1_de15001a20000_T\n\t\t\t\t , personal_p1_de20001a25000_M = :personal_p1_de20001a25000_M\n\t\t\t , personal_p1_de20001a25000_H = :personal_p1_de20001a25000_H\n\t\t\t , personal_p1_de20001a25000_T = :personal_p1_de20001a25000_T\n\t\t\t \t , personal_p1_de25001a30000_M = :personal_p1_de25001a30000_M\n\t\t\t , personal_p1_de25001a30000_H = :personal_p1_de25001a30000_H\n\t\t\t\t , personal_p1_de25001a30000_T = :personal_p1_de25001a30000_T\n\t\t\t , personal_p1_de30001a35000_M = :personal_p1_de30001a35000_M\n\t\t\t \t , personal_p1_de30001a35000_H = :personal_p1_de30001a35000_H\n\t\t\t , personal_p1_de30001a35000_T = :personal_p1_de30001a35000_T\n\t\t\t\t , personal_p1_de35001a40000_M = :personal_p1_de35001a40000_M\n\t\t\t\t , personal_p1_de35001a40000_H = :personal_p1_de35001a40000_H\n\t\t\t\t , personal_p1_de35001a40000_T = :personal_p1_de35001a40000_T\n\t\t\t\t , personal_p1_de40001a45000_M = :personal_p1_de40001a45000_M\n\t\t\t\t , personal_p1_de40001a45000_H = :personal_p1_de40001a45000_H\n\t\t\t\t , personal_p1_de40001a45000_T = :personal_p1_de40001a45000_T\n\t\t\t\t , personal_p1_de45001a50000_M = :personal_p1_de45001a50000_M\n\t\t\t\t , personal_p1_de45001a50000_H = :personal_p1_de45001a50000_H\n\t\t\t\t , personal_p1_de45001a50000_T = :personal_p1_de45001a50000_T\n\t\t\t\t , personal_p1_de50001a55000_M = :personal_p1_de50001a55000_M\n\t\t\t\t , personal_p1_de50001a55000_H = :personal_p1_de50001a55000_H\n\t\t\t\t , personal_p1_de50001a55000_T = :personal_p1_de50001a55000_T\n\t\t\t\t , personal_p1_55001a60000_M = :personal_p1_55001a60000_M\n\t\t\t\t , personal_p1_55001a60000_H = :personal_p1_55001a60000_H\n\t\t\t\t , personal_p1_55001a60000_T = :personal_p1_55001a60000_T\n\t\t\t\t , personal_p1_60001a65000_M = :personal_p1_60001a65000_M\n\t\t\t , personal_p1_60001a65000_H = :personal_p1_60001a65000_H\n\t\t\t , personal_p1_60001a65000_T = :personal_p1_60001a65000_T\n\t\t\t \t , personal_p1_65001a70000_M = :personal_p1_65001a70000_M\n\t\t\t , personal_p1_65001a70000_H = :personal_p1_65001a70000_H\n\t\t\t\t , personal_p1_65001a70000_T = :personal_p1_65001a70000_T\n\t\t\t , personal_p1_masde70000_M = :personal_p1_masde70000_M\n\t\t\t \t , personal_p1_masde70000_H = :personal_p1_masde70000_H\n\t\t\t , personal_p1_masde70000_T = :personal_p1_masde70000_T\n\t\t\t\t , personal_p1_masde50000_M = :personal_p1_masde50000_M\n\t\t\t\t , personal_p1_masde50000_H = :personal_p1_masde50000_H\n\t\t\t\t , personal_p1_masde50000_T = :personal_p1_masde50000_T\n\t\t\t\t , personal_p1_2_ning_M = :personal_p1_2_ning_M\n\t\t\t \t , personal_p1_2_ning_H = :personal_p1_2_ning_H\n\t\t\t , personal_p1_2_ning_T = :personal_p1_2_ning_T\n\t\t\t\t , personal_p1_2_prees_M = :personal_p1_2_prees_M\n\t\t\t \t , personal_p1_2_prees_H = :personal_p1_2_prees_H\n\t\t\t , personal_p1_2_prees_T = :personal_p1_2_prees_T\n\t\t\t\t , personal_p1_2_prim_M = :personal_p1_2_prim_M\n\t\t\t \t , personal_p1_2_prim_H = :personal_p1_2_prim_H\n\t\t\t , personal_p1_2_prim_T = :personal_p1_2_prim_T\n\t\t\t\t , personal_p1_2_secu_M = :personal_p1_2_secu_M\n\t\t\t \t , personal_p1_2_secu_H = :personal_p1_2_secu_H\n\t\t\t , personal_p1_2_secu_T = :personal_p1_2_secu_T\n\t\t\t\t , personal_p1_2_ctsect_M = :personal_p1_2_ctsect_M\n\t\t\t \t , personal_p1_2_ctsect_H = :personal_p1_2_ctsect_H\n\t\t\t , personal_p1_2_ctsect_T = :personal_p1_2_ctsect_T\n\t\t\t\t , personal_p1_2_nbasica_M = :personal_p1_2_nbasica_M\n\t\t\t \t , personal_p1_2_nbasica_H = :personal_p1_2_nbasica_H\n\t\t\t , personal_p1_2_nbasica_T = :personal_p1_2_nbasica_T\n\t\t\t\t , personal_p1_2_preobach_M = :personal_p1_2_preobach_M\n\t\t\t \t , personal_p1_2_preobach_H = :personal_p1_2_preobach_H\n\t\t\t , personal_p1_2_preobach_T = :personal_p1_2_preobach_T\n\t\t\t\t , personal_p1_2_ctcpret_M = :personal_p1_2_ctcpret_M\n\t\t\t \t , personal_p1_2_ctcpret_H = :personal_p1_2_ctcpret_H\n\t\t\t , personal_p1_2_ctcpret_T = :personal_p1_2_ctcpret_T\n\t\t\t\t , personal_p1_2_licoprof_M = :personal_p1_2_licoprof_M\n\t\t\t \t , personal_p1_2_licoprof_H = :personal_p1_2_licoprof_H\n\t\t\t , personal_p1_2_licoprof_T = :personal_p1_2_licoprof_T\n\t\t\t\t , personal_p1_2_maesdoc_M = :personal_p1_2_maesdoc_M\n\t\t\t \t , personal_p1_2_maesdoc_H = :personal_p1_2_maesdoc_H\n\t\t\t , personal_p1_2_maesdoc_T = :personal_p1_2_maesdoc_T\n\t\t\t\t , personal_p1_2_total_M = :personal_p1_2_total_M\n\t\t\t\t , personal_p1_2_total_H = :personal_p1_2_total_H\n\t\t\t\t , personal_p1_2_total_T = :personal_p1_2_total_T\n\t\t\t\t , personal_p1_2_nosesabe = :personal_p1_2_nosesabe\n\n\n\n\t\t\t\t , personal_p1_2_nosanore_M = :personal_p1_2_nosanore_M\n\t\t\t\t , personal_p1_2_nosanore_H = :personal_p1_2_nosanore_H\n\t\t\t\t , personal_p1_2_nosanore_T = :personal_p1_2_nosanore_T\n\t\t\t\t , capacitacion_p2 = :capacitacion_p2\n\t\t\t\t , capacitacion_p2_1_nom = :capacitacion_p2_1_nom\n\t\t\t\t , capacitacion_p2_2_aul = :capacitacion_p2_2_aul\n\t\t\t\t , capacitacion_p2_2_comp = :capacitacion_p2_2_comp\n\t\t\t\t , capacitacion_p2_2_juor = :capacitacion_p2_2_juor\n\t\t\t\t , capacitacion_p2_2_come = :capacitacion_p2_2_come\n\t\t\t\t , capacitacion_p2_2_coci = :capacitacion_p2_2_coci\n\t\t\t\t , capacitacion_p2_2_dorm = :capacitacion_p2_2_dorm\n\t\t\t\t , capacitacion_p2_2_pruf = :capacitacion_p2_2_pruf\n\t\t\t\t , capacitacion_p2_2_auvis = :capacitacion_p2_2_auvis\n\t\t\t\t , capacitacion_p2_2_medi = :capacitacion_p2_2_medi\n\t\t\t\t , capacitacion_p2_2_tirof = :capacitacion_p2_2_tirof\n\t\t\t\t , capacitacion_p2_2_tirov = :capacitacion_p2_2_tirov\n\t\t\t\t , capacitacion_p2_2_entre = :capacitacion_p2_2_entre\n\t\t\t\t , capacitacion_p2_2_vehi = :capacitacion_p2_2_vehi\n\t\t\t\t , capacitacion_p2_2_unif = :capacitacion_p2_2_unif\n\t\t\t\t , capacitacion_p2_2_otro = :capacitacion_p2_2_otro\n\t\t\t\t , capacitacion_p2_2_otro_cual = :capacitacion_p2_2_otro_cual\n\t\t\t\t , capacitacion_p2_3_invyanali_M = :capacitacion_p2_3_invyanali_M\n\t\t\t\t , capacitacion_p2_3_invyanali_H = :capacitacion_p2_3_invyanali_H\n\t\t\t\t , capacitacion_p2_3_invyanali_T = :capacitacion_p2_3_invyanali_T\n\t\t\t\t , capacitacion_p2_3_inte_M = :capacitacion_p2_3_inte_M\n\t\t\t\t , capacitacion_p2_3_inte_H = :capacitacion_p2_3_inte_H\n\t\t\t\t , capacitacion_p2_3_inte_T = :capacitacion_p2_3_inte_T\n\t\t\t\t , capacitacion_p2_3_reacc_M = :capacitacion_p2_3_reacc_M\n\t\t\t\t , capacitacion_p2_3_reacc_H = :capacitacion_p2_3_reacc_H\n\t\t\t\t , capacitacion_p2_3_reacc_T = :capacitacion_p2_3_reacc_T\n\t\t\t\t , capacitacion_p2_3_proce_M = :capacitacion_p2_3_proce_M\n\t\t\t\t , capacitacion_p2_3_proce_H = :capacitacion_p2_3_proce_H\n\t\t\t\t , capacitacion_p2_3_proce_T = :capacitacion_p2_3_proce_T\n\t\t\t\t , capacitacion_p2_3_segycuspen_M = :capacitacion_p2_3_segycuspen_M\n\t\t\t\t , capacitacion_p2_3_segycuspen_H = :capacitacion_p2_3_segycuspen_H\n\t\t\t\t , capacitacion_p2_3_segycuspen_T = :capacitacion_p2_3_segycuspen_T\n\t\t\t\t , capacitacion_p2_3_preven_M = :capacitacion_p2_3_preven_M\n\t\t\t\t , capacitacion_p2_3_preven_H = :capacitacion_p2_3_preven_H\n\t\t\t\t , capacitacion_p2_3_preven_T = :capacitacion_p2_3_preven_T\n\t\t\t\t , capacitacion_p2_3_prirespon_M = :capacitacion_p2_3_prirespon_M\n\t\t\t\t , capacitacion_p2_3_prirespon_H = :capacitacion_p2_3_prirespon_H\n\t\t\t\t , capacitacion_p2_3_prirespon_T = :capacitacion_p2_3_prirespon_T\n\t\t\t\t , capacitacion_p2_3_otros = :capacitacion_p2_3_otros\n\t\t\t\t , capacitacion_p2_3_otros_M = :capacitacion_p2_3_otros_M\n\t\t\t\t , capacitacion_p2_3_otros_H = :capacitacion_p2_3_otros_H\n\t\t\t\t , capacitacion_p2_3_otros_T = :capacitacion_p2_3_otros_T\n\t\t\t\t , capacitacion_p2_4_majudlacpo_M = :capacitacion_p2_4_majudlacpo_M\n\t\t\t\t , capacitacion_p2_4_majudlacpo_H = :capacitacion_p2_4_majudlacpo_H\n\t\t\t\t , capacitacion_p2_4_majudlacpo_T = :capacitacion_p2_4_majudlacpo_T\n\t\t\t\t , capacitacion_p2_4_prdedeypaci_M = :capacitacion_p2_4_prdedeypaci_M\n\t\t\t\t , capacitacion_p2_4_prdedeypaci_H = :capacitacion_p2_4_prdedeypaci_H\n\t\t\t\t , capacitacion_p2_4_prdedeypaci_T = :capacitacion_p2_4_prdedeypaci_T\n\t\t\t\t , capacitacion_p2_4_dehuygain_M = :capacitacion_p2_4_dehuygain_M\n\t\t\t\t , capacitacion_p2_4_dehuygain_H = :capacitacion_p2_4_dehuygain_H\n\t\t\t\t , capacitacion_p2_4_dehuygain_T = :capacitacion_p2_4_dehuygain_T\n\t\t\t\t , capacitacion_p2_4_realsipejupeac_M = :capacitacion_p2_4_realsipejupeac_M\n\t\t\t\t , capacitacion_p2_4_realsipejupeac_H = :capacitacion_p2_4_realsipejupeac_H\n\t\t\t\t , capacitacion_p2_4_realsipejupeac_T = :capacitacion_p2_4_realsipejupeac_T\n\t\t\t\t , capacitacion_p2_4_prdeludeloheodeha_M = :capacitacion_p2_4_prdeludeloheodeha_M\n\t\t\t\t , capacitacion_p2_4_prdeludeloheodeha_H = :capacitacion_p2_4_prdeludeloheodeha_H\n\t\t\t\t , capacitacion_p2_4_prdeludeloheodeha_T = :capacitacion_p2_4_prdeludeloheodeha_T\n\t\t\t\t , capacitacion_p2_4_idldlhodhymdeeoddp_M = :capacitacion_p2_4_idldlhodhymdeeoddp_M\n\t\t\t\t , capacitacion_p2_4_idldlhodhymdeeoddp_H = :capacitacion_p2_4_idldlhodhymdeeoddp_H\n\t\t\t\t , capacitacion_p2_4_idldlhodhymdeeoddp_T = :capacitacion_p2_4_idldlhodhymdeeoddp_T\n\t\t\t\t , capacitacion_p2_4_cadecu_M = :capacitacion_p2_4_cadecu_M\n\t\t\t\t , capacitacion_p2_4_cadecu_H = :capacitacion_p2_4_cadecu_H\n\t\t\t\t , capacitacion_p2_4_cadecu_T = :capacitacion_p2_4_cadecu_T\n\t\t\t\t , capacitacion_p2_4_enates_M = :capacitacion_p2_4_enates_M\n\t\t\t\t , capacitacion_p2_4_enates_H = :capacitacion_p2_4_enates_H\n\t\t\t\t , capacitacion_p2_4_enates_T = :capacitacion_p2_4_enates_T\n\t\t\t\t , capacitacion_p2_4_usledelafu_M = :capacitacion_p2_4_usledelafu_M\n\t\t\t\t , capacitacion_p2_4_usledelafu_H = :capacitacion_p2_4_usledelafu_H\n\t\t\t\t , capacitacion_p2_4_usledelafu_T = :capacitacion_p2_4_usledelafu_T\n\t\t\t\t , capacitacion_p2_4_inves_M = :capacitacion_p2_4_inves_M\n\t\t\t\t , capacitacion_p2_4_inves_H = :capacitacion_p2_4_inves_H\n\t\t\t\t , capacitacion_p2_4_inves_T = :capacitacion_p2_4_inves_T\n\t\t\t\t , capacitacion_p2_4_prres_M = :capacitacion_p2_4_prres_M\n\t\t\t\t , capacitacion_p2_4_prres_H = :capacitacion_p2_4_prres_H\n\t\t\t\t , capacitacion_p2_4_prres_T = :capacitacion_p2_4_prres_T\n\t\t\t\t , capacitacion_p2_4_inpoho_M = :capacitacion_p2_4_inpoho_M\n\t\t\t\t , capacitacion_p2_4_inpoho_H = :capacitacion_p2_4_inpoho_H\n\t\t\t\t , capacitacion_p2_4_inpoho_T = :capacitacion_p2_4_inpoho_T\n\t\t\t\t , capacitacion_p2_4_especia_M = :capacitacion_p2_4_especia_M\n\t\t\t\t , capacitacion_p2_4_especia_H = :capacitacion_p2_4_especia_H\n\t\t\t\t , capacitacion_p2_4_especia_T = :capacitacion_p2_4_especia_T\n\t\t\t\t , capacitacion_p2_4_actualiza_M = :capacitacion_p2_4_actualiza_M\n\t\t\t\t , capacitacion_p2_4_actualiza_H = :capacitacion_p2_4_actualiza_H\n\t\t\t\t , capacitacion_p2_4_actualiza_T = :capacitacion_p2_4_actualiza_T\n\t\t\t\t , capacitacion_p2_4_sidejupeacu_M = :capacitacion_p2_4_sidejupeacu_M\n\t\t\t\t , capacitacion_p2_4_sidejupeacu_H = :capacitacion_p2_4_sidejupeacu_H\n\t\t\t\t , capacitacion_p2_4_sidejupeacu_T = :capacitacion_p2_4_sidejupeacu_T\n\t\t\t\t , capacitacion_p2_4_depro_M = :capacitacion_p2_4_depro_M\n\t\t\t\t , capacitacion_p2_4_depro_H = :capacitacion_p2_4_depro_H\n\t\t\t\t , capacitacion_p2_4_depro_T = :capacitacion_p2_4_depro_T\n\t\t\t\t , capacitacion_p2_4_femeni_M = :capacitacion_p2_4_femeni_M\n\t\t\t\t , capacitacion_p2_4_femeni_H = :capacitacion_p2_4_femeni_H\n\t\t\t\t , capacitacion_p2_4_femeni_T = :capacitacion_p2_4_femeni_T\n\t\t\t\t , capacitacion_p2_4_antrdepe_M = :capacitacion_p2_4_antrdepe_M\n\t\t\t\t , capacitacion_p2_4_antrdepe_H = :capacitacion_p2_4_antrdepe_H\n\t\t\t\t , capacitacion_p2_4_antrdepe_T = :capacitacion_p2_4_antrdepe_T\n\t\t\t\t , capacitacion_p2_4_vicolamu_M = :capacitacion_p2_4_vicolamu_M\n\t\t\t\t , capacitacion_p2_4_vicolamu_H = :capacitacion_p2_4_vicolamu_H\n\t\t\t\t , capacitacion_p2_4_vicolamu_T = :capacitacion_p2_4_vicolamu_T\n\t\t\t\t , capacitacion_p2_4_predege_M = :capacitacion_p2_4_predege_M\n\t\t\t\t , capacitacion_p2_4_predege_H = :capacitacion_p2_4_predege_H\n\t\t\t\t , capacitacion_p2_4_predege_T = :capacitacion_p2_4_predege_T\n\t\t\t\t , capacitacion_p2_4_ascoydedeex_M = :capacitacion_p2_4_ascoydedeex_M\n\t\t\t\t , capacitacion_p2_4_ascoydedeex_H = :capacitacion_p2_4_ascoydedeex_H\n\t\t\t\t , capacitacion_p2_4_ascoydedeex_T = :capacitacion_p2_4_ascoydedeex_T\n\t\t\t\t , capacitacion_p2_4_siindejupepaad_M = :capacitacion_p2_4_siindejupepaad_M\n\t\t\t\t , capacitacion_p2_4_siindejupepaad_H = :capacitacion_p2_4_siindejupepaad_H\n\t\t\t\t , capacitacion_p2_4_siindejupepaad_T = :capacitacion_p2_4_siindejupepaad_T\n\t\t\t\t , capacitacion_p2_4_ataperin_M = :capacitacion_p2_4_ataperin_M\n\t\t\t\t , capacitacion_p2_4_ataperin_H = :capacitacion_p2_4_ataperin_H\n\t\t\t\t , capacitacion_p2_4_ataperin_T = :capacitacion_p2_4_ataperin_T\n\t\t\t\t , capacitacion_p2_4_atapercondis_M = :capacitacion_p2_4_atapercondis_M\n\t\t\t\t , capacitacion_p2_4_atapercondis_H = :capacitacion_p2_4_atapercondis_H\n\t\t\t\t , capacitacion_p2_4_atapercondis_T = :capacitacion_p2_4_atapercondis_T\n\t\t\t\t , capacitacion_p2_4_jusalt_M = :capacitacion_p2_4_jusalt_M\n\t\t\t\t , capacitacion_p2_4_jusalt_H = :capacitacion_p2_4_jusalt_H\n\t\t\t\t , capacitacion_p2_4_jusalt_T = :capacitacion_p2_4_jusalt_T\n\t\t\t\t , capacitacion_p2_4_justera_M = :capacitacion_p2_4_justera_M\n\t\t\t\t , capacitacion_p2_4_justera_H = :capacitacion_p2_4_justera_H\n\t\t\t\t , capacitacion_p2_4_justera_T = :capacitacion_p2_4_justera_T\n\t\t\t\t , capacitacion_p2_4_justransi_M = :capacitacion_p2_4_justransi_M\n\t\t\t\t , capacitacion_p2_4_justransi_H = :capacitacion_p2_4_justransi_H\n\t\t\t\t , capacitacion_p2_4_justransi_T = :capacitacion_p2_4_justransi_T\n\t\t\t\t , capacitacion_p2_4_otros = :capacitacion_p2_4_otros\n\t\t\t\t , capacitacion_p2_4_otros_M = :capacitacion_p2_4_otros_M\n\t\t\t\t , capacitacion_p2_4_otros_H = :capacitacion_p2_4_otros_H\n\t\t\t\t , capacitacion_p2_4_otros_T = :capacitacion_p2_4_otros_T\n\t\t\t\t , capacitacion_p2_5_instuprga = :capacitacion_p2_5_instuprga\n\t\t\t\t , capacitacion_p2_6_evconconf_M = :capacitacion_p2_6_evconconf_M\n\t\t\t\t , capacitacion_p2_6_evconconf_H = :capacitacion_p2_6_evconconf_H\n\t\t\t\t , capacitacion_p2_6_evconconf_T = :capacitacion_p2_6_evconconf_T\n\t\t\t\t , presupuesto_p3 = :presupuesto_p3\n\t\t\t\t , presupuestop3_1_anuaeje20 = :presupuestop3_1_anuaeje20\n\t\t\t\t , presupuestop3_2_anuaeje20 = :presupuestop3_2_anuaeje20\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\tWHERE id = :idFormulario\");\n\n\n\t\t\t$stmt -> bindParam(\":idFormulario\", $datos[\"idFormulario\"], PDO::PARAM_STR);\n\t\t$stmt -> bindParam(\":personal_p1_totalp_M\", $datos[\"personal_p1_totalp_M\"], PDO::PARAM_STR);\n\t\t$stmt -> bindParam(\":personal_p1_totalp_H\", $datos[\"personal_p1_totalp_H\"], PDO::PARAM_STR);\n\t\t$stmt -> bindParam(\":personal_p1_totalp_T\", $datos[\"personal_p1_totalp_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_invyanali_M\", $datos[\"personal_p1_invyanali_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_invyanali_H\", $datos[\"personal_p1_invyanali_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_invyanali_T\", $datos[\"personal_p1_invyanali_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_inte_M\", $datos[\"personal_p1_inte_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_inte_H\", $datos[\"personal_p1_inte_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_inte_T\", $datos[\"personal_p1_inte_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_reacc_M\", $datos[\"personal_p1_reacc_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_reacc_H\", $datos[\"personal_p1_reacc_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_reacc_T\", $datos[\"personal_p1_reacc_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_proce_M\", $datos[\"personal_p1_proce_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_proce_H\", $datos[\"personal_p1_proce_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_proce_T\", $datos[\"personal_p1_proce_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_segycuspen_M\", $datos[\"personal_p1_segycuspen_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_segycuspen_H\", $datos[\"personal_p1_segycuspen_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_segycuspen_T\", $datos[\"personal_p1_segycuspen_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_preven_M\", $datos[\"personal_p1_preven_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_preven_H\", $datos[\"personal_p1_preven_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_preven_T\", $datos[\"personal_p1_preven_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_prirespon_M\", $datos[\"personal_p1_prirespon_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_prirespon_H\", $datos[\"personal_p1_prirespon_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_prirespon_T\", $datos[\"personal_p1_prirespon_T\"], PDO::PARAM_STR);\n\n\t\t\t$stmt -> bindParam(\":personal_p1_total_M\", $datos[\"personal_p1_total_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_total_H\", $datos[\"personal_p1_total_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_total_T\", $datos[\"personal_p1_total_T\"], PDO::PARAM_STR);\n\n\n\t\t\t$stmt -> bindParam(\":personal_p1_otros\", $datos[\"personal_p1_otros\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_otros_M\", $datos[\"personal_p1_otros_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_otros_H\", $datos[\"personal_p1_otros_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_otros_T\", $datos[\"personal_p1_otros_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_siningre_M\", $datos[\"personal_p1_siningre_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_siningre_H\", $datos[\"personal_p1_siningre_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_siningre_T\", $datos[\"personal_p1_siningre_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de1a5000_M\", $datos[\"personal_p1_de1a5000_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de1a5000_H\", $datos[\"personal_p1_de1a5000_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de1a5000_T\", $datos[\"personal_p1_de1a5000_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de5001a10000_M\", $datos[\"personal_p1_de5001a10000_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de5001a10000_H\", $datos[\"personal_p1_de5001a10000_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de5001a10000_T\", $datos[\"personal_p1_de5001a10000_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de10001a15000_M\", $datos[\"personal_p1_de10001a15000_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de10001a15000_H\", $datos[\"personal_p1_de10001a15000_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de10001a15000_T\", $datos[\"personal_p1_de10001a15000_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de15001a20000_M\", $datos[\"personal_p1_de15001a20000_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de15001a20000_H\", $datos[\"personal_p1_de15001a20000_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de15001a20000_T\", $datos[\"personal_p1_de15001a20000_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de20001a25000_M\", $datos[\"personal_p1_de20001a25000_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de20001a25000_H\", $datos[\"personal_p1_de20001a25000_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de20001a25000_T\", $datos[\"personal_p1_de20001a25000_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de25001a30000_M\", $datos[\"personal_p1_de25001a30000_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de25001a30000_H\", $datos[\"personal_p1_de25001a30000_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de25001a30000_T\", $datos[\"personal_p1_de25001a30000_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de30001a35000_M\", $datos[\"personal_p1_de30001a35000_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de30001a35000_H\", $datos[\"personal_p1_de30001a35000_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de30001a35000_T\", $datos[\"personal_p1_de30001a35000_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de35001a40000_M\", $datos[\"personal_p1_de35001a40000_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de35001a40000_H\", $datos[\"personal_p1_de35001a40000_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de35001a40000_T\", $datos[\"personal_p1_de35001a40000_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de40001a45000_M\", $datos[\"personal_p1_de40001a45000_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de40001a45000_H\", $datos[\"personal_p1_de40001a45000_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de40001a45000_T\", $datos[\"personal_p1_de40001a45000_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de45001a50000_M\", $datos[\"personal_p1_de45001a50000_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de45001a50000_H\", $datos[\"personal_p1_de45001a50000_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de45001a50000_T\", $datos[\"personal_p1_de45001a50000_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de50001a55000_M\", $datos[\"personal_p1_de50001a55000_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de50001a55000_H\", $datos[\"personal_p1_de50001a55000_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_de50001a55000_T\", $datos[\"personal_p1_de50001a55000_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_55001a60000_M\", $datos[\"personal_p1_55001a60000_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_55001a60000_H\", $datos[\"personal_p1_55001a60000_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_55001a60000_T\", $datos[\"personal_p1_55001a60000_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_60001a65000_M\", $datos[\"personal_p1_60001a65000_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_60001a65000_H\", $datos[\"personal_p1_60001a65000_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_60001a65000_T\", $datos[\"personal_p1_60001a65000_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_65001a70000_M\", $datos[\"personal_p1_65001a70000_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_65001a70000_H\", $datos[\"personal_p1_65001a70000_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_65001a70000_T\", $datos[\"personal_p1_65001a70000_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_masde70000_M\", $datos[\"personal_p1_masde70000_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_masde70000_H\", $datos[\"personal_p1_masde70000_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_masde70000_T\", $datos[\"personal_p1_masde70000_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_masde50000_M\", $datos[\"personal_p1_masde50000_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_masde50000_H\", $datos[\"personal_p1_masde50000_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_masde50000_T\", $datos[\"personal_p1_masde50000_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_ning_M\", $datos[\"personal_p1_2_ning_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_ning_H\", $datos[\"personal_p1_2_ning_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_ning_T\", $datos[\"personal_p1_2_ning_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_prees_M\", $datos[\"personal_p1_2_prees_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_prees_H\", $datos[\"personal_p1_2_prees_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_prees_T\", $datos[\"personal_p1_2_prees_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_prim_M\", $datos[\"personal_p1_2_prim_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_prim_H\", $datos[\"personal_p1_2_prim_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_prim_T\", $datos[\"personal_p1_2_prim_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_secu_M\", $datos[\"personal_p1_2_secu_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_secu_H\", $datos[\"personal_p1_2_secu_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_secu_T\", $datos[\"personal_p1_2_secu_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_ctsect_M\", $datos[\"personal_p1_2_ctsect_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_ctsect_H\", $datos[\"personal_p1_2_ctsect_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_ctsect_T\", $datos[\"personal_p1_2_ctsect_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_nbasica_M\", $datos[\"personal_p1_2_nbasica_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_nbasica_H\", $datos[\"personal_p1_2_nbasica_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_nbasica_T\", $datos[\"personal_p1_2_nbasica_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_preobach_M\", $datos[\"personal_p1_2_preobach_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_preobach_H\", $datos[\"personal_p1_2_preobach_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_preobach_T\", $datos[\"personal_p1_2_preobach_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_ctcpret_M\", $datos[\"personal_p1_2_ctcpret_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_ctcpret_H\", $datos[\"personal_p1_2_ctcpret_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_ctcpret_T\", $datos[\"personal_p1_2_ctcpret_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_licoprof_M\", $datos[\"personal_p1_2_licoprof_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_licoprof_H\", $datos[\"personal_p1_2_licoprof_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_licoprof_T\", $datos[\"personal_p1_2_licoprof_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_maesdoc_M\", $datos[\"personal_p1_2_maesdoc_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_maesdoc_H\", $datos[\"personal_p1_2_maesdoc_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_maesdoc_T\", $datos[\"personal_p1_2_maesdoc_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_total_M\", $datos[\"personal_p1_2_total_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_total_H\", $datos[\"personal_p1_2_total_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_total_T\", $datos[\"personal_p1_2_total_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_nosesabe\", $datos[\"personal_p1_2_nosesabe\"], PDO::PARAM_STR);\n\n\t\t\t$stmt -> bindParam(\":personal_p1_2_nosanore_M\", $datos[\"personal_p1_2_nosanore_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_nosanore_H\", $datos[\"personal_p1_2_nosanore_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":personal_p1_2_nosanore_T\", $datos[\"personal_p1_2_nosanore_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2\", $datos[\"capacitacion_p2\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_1_nom\", $datos[\"capacitacion_p2_1_nom\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_2_aul\", $datos[\"capacitacion_p2_2_aul\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_2_comp\", $datos[\"capacitacion_p2_2_comp\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_2_juor\", $datos[\"capacitacion_p2_2_juor\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_2_come\", $datos[\"capacitacion_p2_2_come\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_2_coci\", $datos[\"capacitacion_p2_2_coci\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_2_dorm\", $datos[\"capacitacion_p2_2_dorm\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_2_pruf\", $datos[\"capacitacion_p2_2_pruf\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_2_auvis\", $datos[\"capacitacion_p2_2_auvis\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_2_medi\", $datos[\"capacitacion_p2_2_medi\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_2_tirof\", $datos[\"capacitacion_p2_2_tirof\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_2_tirov\", $datos[\"capacitacion_p2_2_tirov\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_2_entre\", $datos[\"capacitacion_p2_2_entre\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_2_vehi\", $datos[\"capacitacion_p2_2_vehi\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_2_unif\", $datos[\"capacitacion_p2_2_unif\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_2_otro\", $datos[\"capacitacion_p2_2_otro\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_2_otro_cual\", $datos[\"capacitacion_p2_2_otro_cual\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_invyanali_M\", $datos[\"capacitacion_p2_3_invyanali_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_invyanali_H\", $datos[\"capacitacion_p2_3_invyanali_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_invyanali_T\", $datos[\"capacitacion_p2_3_invyanali_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_inte_M\", $datos[\"capacitacion_p2_3_inte_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_inte_H\", $datos[\"capacitacion_p2_3_inte_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_inte_T\", $datos[\"capacitacion_p2_3_inte_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_reacc_M\", $datos[\"capacitacion_p2_3_reacc_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_reacc_H\", $datos[\"capacitacion_p2_3_reacc_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_reacc_T\", $datos[\"capacitacion_p2_3_reacc_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_proce_M\", $datos[\"capacitacion_p2_3_proce_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_proce_H\", $datos[\"capacitacion_p2_3_proce_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_proce_T\", $datos[\"capacitacion_p2_3_proce_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_segycuspen_M\", $datos[\"capacitacion_p2_3_segycuspen_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_segycuspen_H\", $datos[\"capacitacion_p2_3_segycuspen_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_segycuspen_T\", $datos[\"capacitacion_p2_3_segycuspen_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_preven_M\", $datos[\"capacitacion_p2_3_preven_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_preven_H\", $datos[\"capacitacion_p2_3_preven_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_preven_T\", $datos[\"capacitacion_p2_3_preven_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_prirespon_M\", $datos[\"capacitacion_p2_3_prirespon_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_prirespon_H\", $datos[\"capacitacion_p2_3_prirespon_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_prirespon_T\", $datos[\"capacitacion_p2_3_prirespon_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_otros\", $datos[\"capacitacion_p2_3_otros\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_otros_M\", $datos[\"capacitacion_p2_3_otros_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_otros_H\", $datos[\"capacitacion_p2_3_otros_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_3_otros_T\", $datos[\"capacitacion_p2_3_otros_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_majudlacpo_M\", $datos[\"capacitacion_p2_4_majudlacpo_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_majudlacpo_H\", $datos[\"capacitacion_p2_4_majudlacpo_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_majudlacpo_T\", $datos[\"capacitacion_p2_4_majudlacpo_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_prdedeypaci_M\", $datos[\"capacitacion_p2_4_prdedeypaci_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_prdedeypaci_H\", $datos[\"capacitacion_p2_4_prdedeypaci_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_prdedeypaci_T\", $datos[\"capacitacion_p2_4_prdedeypaci_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_dehuygain_M\", $datos[\"capacitacion_p2_4_dehuygain_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_dehuygain_H\", $datos[\"capacitacion_p2_4_dehuygain_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_dehuygain_T\", $datos[\"capacitacion_p2_4_dehuygain_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_realsipejupeac_M\", $datos[\"capacitacion_p2_4_realsipejupeac_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_realsipejupeac_H\", $datos[\"capacitacion_p2_4_realsipejupeac_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_realsipejupeac_T\", $datos[\"capacitacion_p2_4_realsipejupeac_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_prdeludeloheodeha_M\", $datos[\"capacitacion_p2_4_prdeludeloheodeha_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_prdeludeloheodeha_H\", $datos[\"capacitacion_p2_4_prdeludeloheodeha_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_prdeludeloheodeha_T\", $datos[\"capacitacion_p2_4_prdeludeloheodeha_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_idldlhodhymdeeoddp_M\", $datos[\"capacitacion_p2_4_idldlhodhymdeeoddp_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_idldlhodhymdeeoddp_H\", $datos[\"capacitacion_p2_4_idldlhodhymdeeoddp_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_idldlhodhymdeeoddp_T\", $datos[\"capacitacion_p2_4_idldlhodhymdeeoddp_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_cadecu_M\", $datos[\"capacitacion_p2_4_cadecu_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_cadecu_H\", $datos[\"capacitacion_p2_4_cadecu_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_cadecu_T\", $datos[\"capacitacion_p2_4_cadecu_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_enates_M\", $datos[\"capacitacion_p2_4_enates_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_enates_H\", $datos[\"capacitacion_p2_4_enates_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_enates_T\", $datos[\"capacitacion_p2_4_enates_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_usledelafu_M\", $datos[\"capacitacion_p2_4_usledelafu_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_usledelafu_H\", $datos[\"capacitacion_p2_4_usledelafu_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_usledelafu_T\", $datos[\"capacitacion_p2_4_usledelafu_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_inves_M\", $datos[\"capacitacion_p2_4_inves_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_inves_H\", $datos[\"capacitacion_p2_4_inves_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_inves_T\", $datos[\"capacitacion_p2_4_inves_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_prres_M\", $datos[\"capacitacion_p2_4_prres_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_prres_H\", $datos[\"capacitacion_p2_4_prres_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_prres_T\", $datos[\"capacitacion_p2_4_prres_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_inpoho_M\", $datos[\"capacitacion_p2_4_inpoho_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_inpoho_H\", $datos[\"capacitacion_p2_4_inpoho_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_inpoho_T\", $datos[\"capacitacion_p2_4_inpoho_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_especia_M\", $datos[\"capacitacion_p2_4_especia_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_especia_H\", $datos[\"capacitacion_p2_4_especia_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_especia_T\", $datos[\"capacitacion_p2_4_especia_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_actualiza_M\", $datos[\"capacitacion_p2_4_actualiza_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_actualiza_H\", $datos[\"capacitacion_p2_4_actualiza_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_actualiza_T\", $datos[\"capacitacion_p2_4_actualiza_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_sidejupeacu_M\", $datos[\"capacitacion_p2_4_sidejupeacu_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_sidejupeacu_H\", $datos[\"capacitacion_p2_4_sidejupeacu_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_sidejupeacu_T\", $datos[\"capacitacion_p2_4_sidejupeacu_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_depro_M\", $datos[\"capacitacion_p2_4_depro_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_depro_H\", $datos[\"capacitacion_p2_4_depro_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_depro_T\", $datos[\"capacitacion_p2_4_depro_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_femeni_M\", $datos[\"capacitacion_p2_4_femeni_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_femeni_H\", $datos[\"capacitacion_p2_4_femeni_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_femeni_T\", $datos[\"capacitacion_p2_4_femeni_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_antrdepe_M\", $datos[\"capacitacion_p2_4_antrdepe_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_antrdepe_H\", $datos[\"capacitacion_p2_4_antrdepe_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_antrdepe_T\", $datos[\"capacitacion_p2_4_antrdepe_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_vicolamu_M\", $datos[\"capacitacion_p2_4_vicolamu_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_vicolamu_H\", $datos[\"capacitacion_p2_4_vicolamu_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_vicolamu_T\", $datos[\"capacitacion_p2_4_vicolamu_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_predege_M\", $datos[\"capacitacion_p2_4_predege_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_predege_H\", $datos[\"capacitacion_p2_4_predege_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_predege_T\", $datos[\"capacitacion_p2_4_predege_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_ascoydedeex_M\", $datos[\"capacitacion_p2_4_ascoydedeex_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_ascoydedeex_H\", $datos[\"capacitacion_p2_4_ascoydedeex_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_ascoydedeex_T\", $datos[\"capacitacion_p2_4_ascoydedeex_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_siindejupepaad_M\", $datos[\"capacitacion_p2_4_siindejupepaad_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_siindejupepaad_H\", $datos[\"capacitacion_p2_4_siindejupepaad_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_siindejupepaad_T\", $datos[\"capacitacion_p2_4_siindejupepaad_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_ataperin_M\", $datos[\"capacitacion_p2_4_ataperin_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_ataperin_H\", $datos[\"capacitacion_p2_4_ataperin_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_ataperin_T\", $datos[\"capacitacion_p2_4_ataperin_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_atapercondis_M\", $datos[\"capacitacion_p2_4_atapercondis_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_atapercondis_H\", $datos[\"capacitacion_p2_4_atapercondis_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_atapercondis_T\", $datos[\"capacitacion_p2_4_atapercondis_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_jusalt_M\", $datos[\"capacitacion_p2_4_jusalt_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_jusalt_H\", $datos[\"capacitacion_p2_4_jusalt_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_jusalt_T\", $datos[\"capacitacion_p2_4_jusalt_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_justera_M\", $datos[\"capacitacion_p2_4_justera_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_justera_H\", $datos[\"capacitacion_p2_4_justera_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_justera_T\", $datos[\"capacitacion_p2_4_justera_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_justransi_M\", $datos[\"capacitacion_p2_4_justransi_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_justransi_H\", $datos[\"capacitacion_p2_4_justransi_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_justransi_T\", $datos[\"capacitacion_p2_4_justransi_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_otros\", $datos[\"capacitacion_p2_4_otros\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_otros_M\", $datos[\"capacitacion_p2_4_otros_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_otros_H\", $datos[\"capacitacion_p2_4_otros_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_4_otros_T\", $datos[\"capacitacion_p2_4_otros_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_5_instuprga\", $datos[\"capacitacion_p2_5_instuprga\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_6_evconconf_M\", $datos[\"capacitacion_p2_6_evconconf_M\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_6_evconconf_H\", $datos[\"capacitacion_p2_6_evconconf_H\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":capacitacion_p2_6_evconconf_T\", $datos[\"capacitacion_p2_6_evconconf_T\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":presupuesto_p3\", $datos[\"presupuesto_p3\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":presupuestop3_1_anuaeje20\", $datos[\"presupuestop3_1_anuaeje20\"], PDO::PARAM_STR);\n\t\t\t$stmt -> bindParam(\":presupuestop3_2_anuaeje20\", $datos[\"presupuestop3_2_anuaeje20\"], PDO::PARAM_STR);\n\n\n\n\n\t\t\tif($stmt->execute()){\n\n\t\t\t\treturn \"La información se ha guardado exitosamente\";\n\n\t\t\t}else{\n\n\t\t\t\t$arr = $stmt ->errorInfo();\n\t\t\t\t$arr[3]=\"ERROR\";\n\t\t\t\treturn $arr[2];\n\n\t\t\t}\n\n\t\t\t$stmt -> close();\n\n\t\t\t$stmt = null;\n\n\t\t}", "title": "" }, { "docid": "7e13a9d9881bcbb14d03885b6d876a05", "score": "0.533247", "text": "public static function afficheAllUsers($dbh) {\n $pagesize = 5;\n $allusers = Utilisateur::getAllUsers($dbh);\n $numrows = sizeof($allusers);\n $pages = intval($numrows / $pagesize);\n if ($numrows % $pagesize != 0) {\n $pages++;\n }\n if (isset($_POST['userpagenumber']) && $_POST['userpagenumber'] != \"\") {\n $_SESSION['userpage'] = intval($_POST['userpagenumber']);\n }\n $page = $_SESSION['userpage'];\n $offset = $pagesize * ($page - 1);\n \n //si on demande de supprimer un utilisateur, on le supprime et on reafficher ce tableau\n if (isset($_GET['todo']) && $_GET['todo'] == \"delete\" && isset($_POST['deleteuser'])) {\n $number = $_POST['deleteuser'];\n $userselec = $allusers[$offset + $number];\n Utilisateur::annulerUtilisateur($dbh, $userselec->login);\n Information::deleteUser($dbh, $userselec->login);\n }\n echo <<<CHAINE_DE_FIN\n <h2>Tous les utilisateurs</h2>\nCHAINE_DE_FIN;\n $allusers = Utilisateur::getAllUsers($dbh);\n $numrows = sizeof($allusers);\n $pages = intval($numrows / $pagesize);\n if ($numrows % $pagesize != 0) {\n $pages++;\n }\n if (isset($_POST['userpagenumber']) && $_POST['userpagenumber'] != \"\") {\n $_SESSION['userpage'] = intval($_POST['userpagenumber']);\n }\n $page = $_SESSION['userpage'];\n $offset = $pagesize * ($page - 1);\n\n if ($allusers == null) {\n echo \"<p><span>Il n'y a pas d'utilisateur.</span></p>\";\n } else {\n echo <<<CHAINE_DE_FIN\n <table class=\"table table-hover\">\n <tr>\n <td>Login</td>\n <td>Email</td>\n <td>Type</td>\n <td>Delete</td>\n </tr>\nCHAINE_DE_FIN;\n\n $nb = 0;\n for ($i = 0; $i < 5 && ($offset + $i) < $numrows; $i++) {\n $user = $allusers[$offset + $i];\n $login = $user->login;\n $email = $user->email;\n $type = $user->type;\n echo <<<CHAINE_DE_FIN\n <tr>\n <td>$login</td>\n <td>$email</td>\n <td>$type</td>\n <td>\n <form action=\"index.php?todo=delete&page=compte\" method=\"post\">\n <button name=\"deleteuser\" value=\"$nb\" type=\"submit\" class = \"pagebutton\">\n Delete\n </button>\n </form>\n </td>\n </tr>\nCHAINE_DE_FIN;\n $nb = $nb + 1;\n }\n echo <<<CHAINE_DE_FIN\n </table>\nCHAINE_DE_FIN;\n $first = 1;\n $prev = $page - 1;\n $next = $page + 1;\n $last = $pages;\n echo <<<CHAINE_DE_FIN\n <div align='right'>\n <form action=\"index.php?page=compte\" method=\"post\">\nCHAINE_DE_FIN;\n if ($page > 1) {\n echo <<<CHAINE_DE_FIN\n <button class=\"pagebutton\" name=\"userpagenumber\" value=$first>Premier page</button>\n <button class=\"pagebutton\" name=\"userpagenumber\" value=$prev>Précédent</button>\nCHAINE_DE_FIN;\n }\n\n if ($page < $pages) {\n echo <<<CHAINE_DE_FIN\n <button class=\"pagebutton\" name=\"userpagenumber\" value=$next>Suivant</button> \n <button class=\"pagebutton\" name=\"userpagenumber\" value=$last>Dernier page</button>\nCHAINE_DE_FIN;\n }\n echo \"</form>\";\n echo \"</div>\";\n }\n }", "title": "" }, { "docid": "527f87c59bbff2e721f364e4bdb9e88b", "score": "0.5325023", "text": "public function consultarUsuario(){\n //$conexao = $c->conexao();\n\n $sql = \"SELECT c.*, a.permissao FROM tbusuarios c, tbpermissao a where c.idpermissao = a.idpermissao and permissao <> 'SUPER-ADMIN'order by c.nome\";\n $sql = $this->conexao->query($sql);\n\n $dados = array();\n\n while ($row = $sql->fetch_assoc()) {\n $idusuario = $row[\"idusuario\"];\n $nome = $row[\"nome\"];\n $email = $row[\"email\"];\n $dtnascimento = $row[\"dt_nascimento\"];\n $telefone = $row[\"telefone\"];\n $dtnascimento = $row[\"dt_nascimento\"];\n $habilitado = $row[\"habilitado\"];\n $permissao = $row[\"permissao\"]; \n $idpermissao = $row[\"idpermissao\"]; \n\n $dado = array();\n $dado['idusuario'] = $idusuario;\n $dado['nome'] = $nome;\n $dado['email'] = $email;\n $dado['senha'] = $row['senha'];\n $dado['senha_confirma'] = $row['senha_confirma'];\n $dado['idpermissao'] = $idpermissao;\n $dado['permissao'] = $permissao;\n $dado['telefone'] = $telefone;\n $dado['dtnascimento'] = $dtnascimento;\n $dado['habilitado'] = $habilitado; \n $dados[] = $dado;\n }\n\n return $dados;\n\n }", "title": "" }, { "docid": "194be8f4b2c2c6718c84fa4a20788729", "score": "0.5316508", "text": "public function get_users() {\n // Return key => value pair array\n $query = $this->db->query(\"SELECT $this->_table_name.*, fname, lname, t2.title FROM $this->_table_name\n LEFT JOIN kompetenzm.job_title as t2 on t2.id = $this->_table_name.job_title_id\");\n $users = $query->result_object();\n $array = array('0' => 'Select');\n if (count($users)) {\n foreach ($users as $user) {\n $array[$user->TITLE][$user->ID] = $user->FNAME . \" \" . $user->LNAME;\n }\n }\n\n return $array;\n }", "title": "" }, { "docid": "3c06e7e8bc36259b09f14041f848b02a", "score": "0.53163016", "text": "public function DatosUsuarios() {\n $users = Usuarios::join('Perfiles', 'Usuarios.IdPerfil', '=', 'Perfiles.ID')->get();\n $datos = array();\n foreach ($users->toArray() as $user) {\n $groupDes = Grupos::where('ID', '=', $user['IdGrupo']) ->select('Descripcion')->first();\n $user['Grupo'] = $groupDes->Descripcion;\n if (Session::get('idPeril') == 3) {\n $user['Perfil'] = \"{$user['Perfil']}<a href='#' title='Editar Perfil' class='editar' alt='{$user['IdUsuario']}'>\"\n . \"<span style='color:#FACC2E; padding-left:15px' class='glyphicon glyphicon-edit'></span>\"\n . \"</a>\";\n }\n $datos[] = $user;\n }\n\n return $datos = json_encode($datos);\n }", "title": "" }, { "docid": "70e7047d00841f5ac16a2b6ab77cb509", "score": "0.5312257", "text": "public function listarUsuarios(){\r\n $sql = \"SELECT U.IdUsuario, U.NombreCompleto, U.Usuario, U.Correo, U.Estado, U.IdRol, R.Rol\r\n FROM usuarios AS U\r\n INNER JOIN roles AS R ON U.IdRol = R.IdRol;\";\r\n $tabla = $this->conexion->getTable($sql);\r\n return $tabla;\r\n}", "title": "" }, { "docid": "c4fae6325a14373de10155d8cb271982", "score": "0.531132", "text": "public function allUsers(){\n $all_data = User::all();\n $i = 1;\n\n $content=\"\";\n foreach ($all_data as $data){\n $content .='<tr>';\n $content .='<td>'. $i++ .'</td>';\n $content .='<td>'. $data->name .'</td>';\n $content .='<td>'. $data->role_id .'</td>';\n $content .='<td>'. $data->email .'</td>';\n $content .='<td>'. $data->cell .'</td>';\n $content .='<td>'. $data->uname .'</td>';\n $content .='<td>'. $data->gender .'</td>';\n $content .='<td>'. $data->edu .'</td>';\n $content .='<td> <img style=\"width: 60px;height: 60px\" src=\"media/users/'.$data->photo.'\"></td>';\n $content .= '<td>'.\n '<a href=\"#\" class=\"btn btn-sm btn-warning\" id=\"user_edit_btn\" edit_id=\"'.$data->id.'\">Edit</a> '.\n '<a href=\"#\" class=\"btn btn-sm btn-danger\" id=\"user_delete_btn\" delete_id=\"'.$data->id.'\">Delete</a> '\n .'</td>';\n $content .='</tr>';\n }\n return $content;\n\n }", "title": "" }, { "docid": "18d8dbc967743ef589232847b173aadb", "score": "0.5305444", "text": "public function get_all_accessible_users() {\n global $remotedb, $USER, $CFG;\n $usertable = \"<table style=\\\"float:left;\\\" class=\\\"userstable\\\" id=\\\"userstable\\\">\n <thead>\n <tr class=\\\"tableheader\\\">\n <th class=\\\"tblname\\\">Name</th><th class=\\\"tblrelationship\\\">Relationship</th>\n </tr>\n </thead>\n <tbody>\";\n $myusers = array();\n $admin_mods = array();\n $tutor_mods = array();\n //get all the users in the course you are programme admin for\n if ($mods = enrol_get_users_courses($USER->id, $onlyactive = TRUE)) {\n //get_user_capability_course('report/myfeedback:progadmin', $userid = null, $doanything = false)) {\n foreach ($mods as $mod) {\n if ($mod->visible) {\n $con = context_course::instance($mod->id);\n if (has_capability('report/myfeedback:progadmin', $con, $USER->id, $doanything = false)) {\n $admin_mods[] = $mod->id;\n }\n if (has_capability('moodle/course:changeshortname', $con, $USER->id, $doanything = false)) {\n $tutor_mods[] = $mod->id;\n }\n }\n }\n\n foreach ($admin_mods as $value) {\n $context = context_course::instance($value);\n $query = 'select u.id as id, firstname, lastname, email from mdl_role_assignments as a, '\n . 'mdl_user as u where contextid=' . $context->id . ' and roleid=5 and a.userid=u.id;';\n $users = $remotedb->get_recordset_sql($query);\n foreach ($users as $a) {\n $myusers[$a->id][0] = \"<a href=\\\"\" . $CFG->wwwroot . \"/report/myfeedback/index.php?userid=\" . $a->id . \"\\\" title=\\\"\" .\n $a->email . \"\\\" rel=\\\"tooltip\\\">\" . $a->firstname . \" \" . $a->lastname . \"</a>\";\n $myusers[$a->id][1] = ''; //get_string('othertutee', 'report_myfeedback');\n $myusers[$a->id][2] = 1;\n $myusers[$a->id][3] = '';\n }\n }\n }\n // get all the users in the course you are a tutor for\n if ($tutor_mods) {\n //get_user_capability_course('moodle/course:changeshortname', $userid = null, $doanything = false)) {\n foreach ($tutor_mods as $value) {\n $context = context_course::instance($value);\n $query = 'select u.id as id, firstname, lastname, email from mdl_role_assignments as a, '\n . 'mdl_user as u where contextid=' . $context->id . ' and roleid=5 and a.userid=u.id';\n $users = $remotedb->get_recordset_sql($query);\n foreach ($users as $r) {\n $myusers[$r->id][0] = \"<a href=\\\"\" . $CFG->wwwroot . \"/report/myfeedback/index.php?userid=\" . $r->id . \"\\\" title=\\\"\" .\n $r->email . \"\\\" rel=\\\"tooltip\\\">\" . $r->firstname . \" \" . $r->lastname . \"</a>\";\n $myusers[$r->id][1] = ''; //get_string('othertutee', 'report_myfeedback');\n $myusers[$r->id][2] = 2;\n if ($stmods = enrol_get_users_courses($r->id, $onlyactive = TRUE)) {\n $num = 0;\n foreach ($stmods as $stval) {\n if ($stval->visible) {\n $coursecontext = context_course::instance($stval->id);\n if (has_capability('moodle/course:changeshortname', $coursecontext, $USER->id, $doanything = false)) {\n $myusers[$r->id][1] .= $stval->shortname . \", \";\n }\n }\n }\n $myusers[$r->id][1] = rtrim($myusers[$r->id][1], \", \");\n }\n $myusers[$r->id][3] = $myusers[$r->id][1];\n }\n }\n }\n\n // get all the mentees, i.e. users you have a direct assignment to\n if ($usercontexts = $remotedb->get_records_sql(\"SELECT c.instanceid, c.instanceid, u.id as id, firstname, lastname, email\n FROM {role_assignments} ra, {context} c, {user} u\n WHERE ra.userid = ?\n AND ra.contextid = c.id\n AND c.instanceid = u.id\n AND c.contextlevel = \" . CONTEXT_USER, array($USER->id))) {\n foreach ($usercontexts as $u) {\n $myusers[$u->id][0] = \"<a href=\\\"\" . $CFG->wwwroot . \"/report/myfeedback/index.php?userid=\" . $u->id . \"\\\" title=\\\"\" .\n $u->email . \"\\\" rel=\\\"tooltip\\\">\" . $u->firstname . \" \" . $u->lastname . \"</a>\";\n $myusers[$u->id][1] = get_string('personaltutee', 'report_myfeedback');\n $myusers[$u->id][2] = 3;\n $myusers[$u->id][3] = '';\n }\n }\n\n foreach ($myusers as $result) {\n $usertable.= \"<tr>\";\n $usertable.=\"<td>\" . $result[0] . \"</td>\";\n $usertable.=\"<td class=\\\"ellip\\\" data-sort=$result[2] title=\\\"$result[3]\\\" rel=\\\"tooltip\\\">\" . $result[1] . \"</td>\";\n $usertable.=\"</tr>\";\n }\n $usertable.=\"</tbody><tfoot><tr><td></td><td></td></tr></tfoot></table>\";\n return $usertable;\n }", "title": "" }, { "docid": "a55414d74e85e509fcea8bd838833b11", "score": "0.5302325", "text": "function Viradeco_add_user_columns($column) {\n $column['viraclub'] = __('ViraClub ID','itstar');\n $column['phone'] = __('Phone','itstar');\n $column['email'] = __('Email','itstar');\n \n return $column;\n}", "title": "" }, { "docid": "cc0cb559b2338a11380073bc582977bd", "score": "0.5301804", "text": "function index_usuarios() {\n\t\t$conditions = array('Administrativo.perfil >' => '0'); \n\t\t$order = array('Administrativo.nombre' => 'ASC');\n\t\t$administrativos=$this->Administrativo->find('all', array ('conditions' => $conditions, 'order' => $order));\t\t\n\t\t$perfil=$this->Perfil->find('all');\n\t\tforeach ($perfil as $p){\n\t\t\t$perfiles[$p['Perfil']['id']]=$p['Perfil']['perfil'];\n\t\t}\n\t\t$perfiles[0]='SuperAdministrador';\n\t\t$this->set('perfiles', $perfiles);\n\t\t$this->set('administrativos', $administrativos);\n\t}", "title": "" }, { "docid": "de26d4502b74c6c753e0cef6c1e5b3c3", "score": "0.5296964", "text": "public function listarUser() {\n if(IDUSER) {\n $eval = \"SELECT id,nombre,apellidos,email FROM users\";\n $peticion = $this->db->prepare($eval);\n $peticion->execute();\n $resultado = $peticion->fetchAll(PDO::FETCH_OBJ);\n exit(json_encode($resultado));\n } else {\n http_response_code(401);\n exit(json_encode([\"error\" => \"Fallo de autorizacion\"])); \n }\n }", "title": "" }, { "docid": "5a26279f3715dd53dad64cb063df51a9", "score": "0.5289477", "text": "public function tabel_data()\n {\n $tampil = $this->koneksi()->prepare(\"SELECT id FROM tb_users\");\n $tampil->execute();\n $tampil->setFetchMode(PDO::FETCH_ASSOC);\n if (count($tampil)>0){\n while ($data=$tampil->fetch(PDO::FETCH_ORI_NEXT)){\n $user_id_array [] = $data['id'];\n }\n }\n\n $tampil = $this->koneksi()->prepare(\"SELECT id FROM tb_lbb\");\n $tampil->execute();\n $tampil->setFetchMode(PDO::FETCH_ASSOC);\n if (count($tampil)>0){\n while ($data=$tampil->fetch(PDO::FETCH_ORI_NEXT)){\n $lbb_id_array [] = $data['id'];\n }\n }\n\n foreach ($user_id_array as $user_id){\n foreach ($lbb_id_array as $lbb_id){\n $rating = \"0\";\n $tampil = $this->koneksi()->prepare(\"SELECT rating FROM tb_rating WHERE user_id=:user_id AND lbb_id=:lbb_id\");\n $tampil->bindParam(':user_id', $user_id);\n $tampil->bindParam(':lbb_id', $lbb_id);\n $tampil->execute();\n $tampil->setFetchMode(PDO::FETCH_ASSOC);\n if (count($tampil)>0){\n while ($data=$tampil->fetch(PDO::FETCH_ORI_NEXT)){\n $rating = $data['rating'];\n }\n }\n $tabel_data [$user_id] [$lbb_id] = $rating;\n }\n }\n\n return $tabel_data;\n }", "title": "" }, { "docid": "e35bfa31b1961c5da02e2772fbad86b7", "score": "0.5287609", "text": "public function getLTIUsers();", "title": "" }, { "docid": "862bbb0471efdda40b008b0463af1704", "score": "0.5287088", "text": "public function getListUser()\n {\n $users = User::query()->orderBy('created_at', 'desc');\n\n return Datatables::of($users)\n ->editColumn('name', function($users){\n if (Entrust::can([\"users-detail\"])) {\n return '<a onclick=\"viewUser(' . $users->id . ')\" data-toggle=\"modal\" href=\"#viewUser\">'.$users->name.'\n </a> ';\n }else{\n return $users->name;\n }\n })\n \n ->addColumn('created_at', function($user){\n $time = $user->created_at;\n $time_numb = strtotime($time);\n\n return date(\"H:i | d-m-Y\", $time_numb);\n })\n \n ->addColumn('action', function ($user) {\n\n $string = '';\n if (Entrust::can([\"users-manager\"])) {\n $string = $string . ' <a href=\"users/'. $user->id . '/roles\" class=\"btn green btn-xs\" style=\"text-transform:none;\" data-tooltip=\"tooltip\" title=\"Vai trò\">\n <i class=\"icon-lock ion\" aria-hidden=\"true\"></i> \n </a> ';\n\n $string = $string . ' <a onclick=\"editUser(' . $user->id . ')\" class=\"btn yellow btn-xs btn-withdrawal\" style=\"text-transform:none;\" data-toggle=\"modal\" href=\"#editUser\" data-tooltip=\"tooltip\" title=\"Cập nhật\">\n <i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i> \n </a> ';\n\n $string = $string . ' <a href=\"javascript:;\" data-id=\"'. $user->id .'\" type=\"button\" class=\"btn btn-xs red btn-delete\" style=\"text-transform:none;\" data-tooltip=\"tooltip\" title=\"Xóa\">\n <i class=\"fa fa-trash-o\"></i> \n </a> ';\n }\n\n return $string;\n })\n ->addIndexColumn()\n ->rawColumns(['action', 'name'])\n ->make(true);\n }", "title": "" }, { "docid": "59a96bfb8e983dbb20d1a9fb95739067", "score": "0.52838147", "text": "function usersTable($linkDB, $accountsFile = \"users/accounts.csv\", $imgDir = \"img/\") {\n\t\t$result = '';\n\t\t$result .= '<table id=\"accountsList\">';\n\n\t\t// Column names\n\t\t$result .= '<tr class=\"userHeader\"><th>Username</th><th>Mail</th><th>User level</th>';\n\t\t$result .= '<th>Nombre de posts</th><th colspan=\"4\">Options</th></tr>';\n\n\t\t// We open the file\n\t\tif(($handle = fopen($accountsFile, \"r\")) !== false) {\n\t\t\t// For each line\n\t\t\twhile(($data = fgetcsv($handle, 1000, \":\")) !== false) {\n\t\t\t\tif(count($data) == 5) {\n\n\t\t\t\t\t$postNumber = 0;\n\t\t\t\t\t$postQuery = 'SELECT * FROM `post` WHERE `author` = \"'.$data[0].'\";';\n\t\t\t\t\t$postResult = mysqli_query($linkDB, $postQuery);\n\t\t\t\t\t$postNumber = mysqli_num_rows($postResult);\n\n\t\t\t\t\t// We display the infos\n\t\t\t\t\t$result .= '<tr class=\"userData\"><td>'.$data[0].'</td><td>'.$data[2].'</td>';\n\t\t\t\t\t$result .= '<td>'.$data[3].'</td><td>'.$postNumber.'</td><td class=\"userOption\">';\n\t\t\t\t\tif($data[3]>=2) {\n\t\t\t\t\t\t$result .= '<img src=\"'.$imgDir.'check.png\" alt=\"checkLevel2\" height=\"25\" />';\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$result .= '<a href=\"utils/updateLevel.php?user='.$data[0].'&amp;level=2\"><img src=\"'.$imgDir.'check_empty.png\" alt=\"checkLevel2\" height=\"25\" /></a>';\n\t\t\t\t\t}\n\t\t\t\t\t$result .= '</td><td class=\"userOption\">';\n\t\t\t\t\tif($data[3]>=3) {\n\t\t\t\t\t\t$result .= '<img src=\"'.$imgDir.'check.png\" alt=\"checkLevel3\" height=\"25\" />';\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$result .= '<a href=\"utils/updateLevel.php?user='.$data[0].'&amp;level=3\"><img src=\"'.$imgDir.'check_empty.png\" alt=\"checkLevel2\" height=\"25\" /></a>';\n\t\t\t\t\t}\n\t\t\t\t\t$result .= '</td><td class=\"userOption\"><a href=\"users/user.php?name='.strtolower($data[0]).'\"><img src=\"'.$imgDir.'edit.png\" alt=\"edit\" height=\"25\" /></a></td>';\n\t\t\t\t\t$result .= '<td class=\"userOption\"><a href=\"admin.php?account='.$data[0].'#delAccountModal\"><img src=\"'.$imgDir.'delete.png\" alt=\"delete\" height=\"25\" /></a></td>';\n\t\t\t\t\t$result .= '</tr>';\n\t\t\t\t}\n\t\t\t}\n\t\t\tfclose($handle);\n\t\t}\n\n\t\t// To add a new user\n\t\t$result .= '<tr><td class=\"addUser\" colspan=\"8\" ><a href=\"admin.php#registerModal\"><img src=\"'.$imgDir.'add.png\" alt=\"add\" height=\"25\" />Ajouter</a></td></tr>';\n\t\t$result .= '</table>';\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "22182eb537b9fe2eec8fadb2f7f3d534", "score": "0.5283767", "text": "function usersWith(){\n\t\t\t\t\trequire_once(\"database\\database_connection.php\");\n\t\t\t\t\t$conn=database();\n\t\t\t\t\t//Query the database\n\t\t\t\t\t$resultSet = $conn->query(\"SELECT * FROM users_cs_count_view\");\n\n\t\t\t\t\tif($resultSet->num_rows != 0){\n\t\t\t\t\t\twhile($rows = $resultSet->fetch_assoc()){\n\t\t\t\t\t\t\t$users = $rows['users_with_cs'];\n\n\t\t\t\t\t\t\techo \"<h4 class='heading'>\n\t\t\t\t\t\t\tRegistered users with CS:GO: $users\n\t\t\t\t\t\t\t</h4>\";\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\techo\"ERROR\";\n\t\t\t\t\t}\n\t\t \t\t$conn->close();\n}", "title": "" }, { "docid": "383fb66484c6150f8aa89ccd4445d239", "score": "0.52746016", "text": "function tabelle_user_aendern($HTTP_POST_VARS,$wert){ // Aufarbeitung pers. Angaben fuer Tabelle 'user'\n\t$query = \"update user set \";\n\t$query .= \"user.Name='$HTTP_POST_VARS[name]', \";\n\t$query .= \"user.Vorname='$HTTP_POST_VARS[vorname]', \";\n\t$query .= \"user.Passwort='$HTTP_POST_VARS[passwort]', \";\n\t$query .= \"user.Benutzername='$HTTP_POST_VARS[benutzername]' \";\n\t$query .= \"where user.id=$wert\";\n\treturn $query;\n}", "title": "" }, { "docid": "18e432deeff9ba1860f06229aae05cc4", "score": "0.52745384", "text": "function agregar_campos_personalizados_usuario_backend($user) {\n\t$user_coupon_visible = esc_attr(get_the_author_meta('user_coupon_visible', $user->ID ));\n\t$user_es_regalo = esc_attr(get_the_author_meta('user_es_regalo', $user->ID ));?>\n \n\t<h3>Campos adicionales</h3>\n \n\t<table class=\"form-table\">\n\t\t<th><label for=\"user_coupon_visible\">¿Coupon Visible?</label></th>\n\t <tr>\n\t\t<td><input type=\"text\" name=\"user_coupon_visible\" id=\"user_coupon_visible\" class=\"regular-text\" value=\"<?php echo $user_coupon_visible;?>\" /></td>\n\t </tr>\n\t <th><label for=\"user_regalo_visible\">¿Es un regalo?</label></th>\n\t <tr>\n\t\t<td><input type=\"text\" name=\"user_es_regalo\" id=\"user_es_regalo\" class=\"regular-text\" value=\"<?php echo $user_es_regalo;?>\" /></td>\n\t </tr>\n\t</table>\n \n <?php }", "title": "" }, { "docid": "13e8e9deb64015570b2a5250c23ee54f", "score": "0.52701735", "text": "public function updateAllPrivileges() {\n\t\t$sql = \"delete from user_rights;\";\n\t\t$results = $this->executerRequete($sql, array());\n\t\t//On recupere le tableau USER/ACTION en join user->groups->roles->actions\n $sql = \"SELECT user.id, actions.id, actions.controleur, actions.name FROM user inner join user_groups on user.id = user_groups.idUser inner join groups_roles on groups_roles.idGroups = user_groups.IdGroup inner join roles_actions on roles_actions.idRole=groups_roles.idRoles inner join actions on roles_actions.idAction = actions.id\";\n\t\t$results = $this->executerRequete($sql, array());\n $user_actions = $results->fetchAll();\n\t\t//on prépare le tableau des droits pour insertion\n\t\t$sqlValueInsert = '';\n\t\tforeach ($user_actions as $item):\n\t\t\t$sqlValueInsert = $sqlValueInsert.\"(\".$item[0].\",\".$item[1].\",'\".$item[2].\"','\".$item[3].\"'),\";\n\t\tendforeach;\n\t\t$sqlValueInsert= rtrim($sqlValueInsert, \",\");\n\t\t$sql = \"INSERT INTO `user_rights` (`idUser`, `IdAction`, `controleurName`, `actionName`) VALUES \".$sqlValueInsert.\";\";\n\t\t$insert_actions = $this->executerRequete($sql);\n\t\tif ($insert_actions->rowCount() > 0)\n\t\t\treturn 1; // Accès à la première ligne de résultat\n\t\telse\n\t\t\treturn 0;\t\t\n }", "title": "" }, { "docid": "ad37a8335742aa9c39b3f2d88e577b81", "score": "0.5265558", "text": "function getAllUser_PrivilageByStatus() {\n\t\t$SQL=\"SELECT * FROM user_privilage_tab WHERE status = 'Yes'\";\n\t\t$this->db->executeQuery($SQL);\n\n\t\t$result = array();\n\t\t$count = 0;\n\n\t\twhile($rs = $this->db->nextRecord())\n\t\t{\n\t\t\t$user_privilage = new User_Privilage();\n\t\t\t$user_privilage->setId($rs['id']);\n\t\t\t$user_privilage->setOrder_no($rs['order_no']);\n\t\t\t$user_privilage->setCode($rs['code']);\n\t\t\t$user_privilage->setUser_id($rs['user_id']);\n\t\t\t$user_privilage->setPrivilage_id($rs['privilage_id']);\n\t\t\t$user_privilage->setIs_view($rs['is_view']);\n\t\t\t$user_privilage->setIs_save($rs['is_save']);\n\t\t\t$user_privilage->setIs_edit($rs['is_edit']);\n\t\t\t$user_privilage->setIs_delete($rs['is_delete']);\n\t\t\t$user_privilage->setData_date($rs['data_date']);\n\t\t\t$user_privilage->setStatus($rs['status']);\n\t\t\t$user_privilage->setDate_($rs['date_']);\n\t\t\t$result[$count++] = $user_privilage;\n\t\t}\n\n\t\t$this->db->closeRs();\n\t\treturn $result;\n\n\t}", "title": "" }, { "docid": "8c5ba378f20893c49ccec6b5c97544e0", "score": "0.52647936", "text": "public function getRUser($post)\n\t{\n\t\ttry {\n\t\t\t$condicion = '';\n\t\t\t$aux_ids = array();\n\t\t\t#Si existe el id del personal, buscar los bienes de la persona\n\t\t\tif ( isset($post['servidor_id']) && !empty($post['servidor_id']) ) \n\t\t\t{\n\t\t\t\t$servidor = $post['servidor_id']; \n\n\t\t\t\t$this->sql = \" SELECT bien_id FROM asignacion WHERE personal_id = ? \";\n\t\t\t\t$this->stmt = $this->pdo->prepare( $this->sql );\n\t\t\t\t$this->stmt->bindParam( 1,$servidor );\n\t\t\t\t$this->stmt->execute();\n\t\t\t\t$bienes_ids = $this->stmt->fetchAll( PDO::FETCH_OBJ );\n\t\t\t\tforeach ($bienes_ids as $key => $id) {\n\t\t\t\t\tarray_push($aux_ids,$id->bien_id);\n\t\t\t\t}\n\t\t\t\t/*Conversion a string*/\n\t\t\t\t$aux_ids = implode(',',$aux_ids);\n\t\t\t\t\n\t\t\t\t/*Buscar en la tabla de bienes , las asignaciones registradas*/\n\t\t\t\t$this->sql = \" SELECT \n\t\t\t\t\tb.id,\n\t\t\t\t\tb.descripcion,\n\t\t\t\t\tb.serie,\n\t\t\t\t\tb.status,\n\t\t\t\t\tb.inventario,\n\t\t\t\t\tb.desc_ub,\n\t\t\t\t\tm.nombre AS marca,\n\t\t\t\t\tg.nombre AS grupo,\n\t\t\t\t\tt.nombre AS tipo,\n\t\t\t\t\tmo.nombre AS modelo,\n\t\t\t\t\tb.fecha_reg AS registro,\n\t\t\t\t\tb.fecha_adq AS adquisicion,\n\t\t\t\t\tUPPER(c.nombre) AS color,\n\t\t\t\t\tma.nombre AS material,\n\t\t\t\t\tp.nombre AS proveedor,\n\t\t\t\t\tCONCAT(\n\t\t\t\t\t pe.nombre,\n\t\t\t\t\t ' ',\n\t\t\t\t\t pe.ap_pat,\n\t\t\t\t\t ' ',\n\t\t\t\t\t pe.ap_mat\n\t\t\t\t\t) AS asignadoa\n\t\t\t\t FROM bienes AS b\n\t\t\t\t INNER JOIN marcas AS m\n\t\t\t\t ON\n\t\t\t\t m.id = b.marca_id\n\t\t\t\t INNER JOIN grupos AS g\n\t\t\t\t ON\n\t\t\t\t g.id = b.grupo_id\n\t\t\t\t INNER JOIN t_bienes AS t\n\t\t\t\t ON\n\t\t\t\t t.id = b.tipo_id\n\t\t\t\t INNER JOIN modelos AS mo\n\t\t\t\t ON\n\t\t\t\t mo.id = b.modelo_id\n\t\t\t\t INNER JOIN color AS c\n\t\t\t\t ON\n\t\t\t\t c.id = b.color_id\n\t\t\t\t INNER JOIN materiales AS ma\n\t\t\t\t ON\n\t\t\t\t ma.id = b.material_id\n\t\t\t\t INNER JOIN proveedores AS p\n\t\t\t\t ON\n\t\t\t\t p.id = b.pro_id\n\t\t\t\t INNER JOIN asignacion AS a\n\t\t\t\t ON\n\t\t\t\t a.bien_id = b.id\n\t\t\t\t INNER JOIN personal AS pe\n\t\t\t\t ON\n\t\t\t\t pe.id = a.personal_id WHERE b.id IN ($aux_ids) \";\n\t\t\t\t$this->stmt = $this->pdo->prepare( $this->sql );\n\t\t\t\t$this->stmt->execute();\n\t\t\t\t$bienes = $this->stmt->fetchAll( PDO::FETCH_OBJ );\n\t\t\t\t\n\t\t\t\treturn json_encode($bienes) ;\n\t\t\t} \n\t\t\telseif( isset($post['area']) && !empty($post['area']) )\n\t\t\t{\n\t\t\t\t$area = $post['area'];\n\t\t\t\t#Buscar a los usuarios pertenecientes al area\n\t\t\t\t$this->sql = \"SELECT id FROM personal WHERE area_id = ?\";\n\t\t\t\t$this->stmt = $this->pdo->prepare( $this->sql );\n\t\t\t\t$this->stmt->bindParam(1,$area);\n\t\t\t\t$this->stmt->execute();\n\t\t\t\t$personas = $this->stmt->fetchAll( PDO::FETCH_OBJ );\n\t\t\t\tforeach ($personas as $key => $id) {\n\t\t\t\t\tarray_push($aux_ids,$id->id);\n\t\t\t\t}\n\t\t\t\t$aux_ids = implode(',',$aux_ids);\n\t\t\t\t#ubicar los bienes con las personas (En asignaciones)\n\t\t\t\t$this->sql = \"SELECT bien_id FROM asignacion WHERE personal_id IN (?)\";\n\t\t\t\t$this->stmt = $this->pdo->prepare( $this->sql );\n\t\t\t\t$this->stmt->bindParam(1,$aux_ids);\n\t\t\t\t$this->stmt->execute();\n\t\t\t\t$asignaciones = $this->stmt->fetchAll( PDO::FETCH_OBJ );\n\t\t\t\t#Limpiar arreglo auxiliar\n\t\t\t\tunset($aux_ids);\n\t\t\t\t$aux_ids = array();\n\t\t\t\tforeach ($asignaciones as $key => $id) {\n\t\t\t\t\tarray_push($aux_ids,$id->bien_id);\n\t\t\t\t}\n\t\t\t\t$aux_ids = implode(',',$aux_ids);\n\t\t\t\t#Buscar los bienes (Bienes)\n\t\t\t\t$this->sql = \"SELECT \n\t\t\t\t\tb.id,\n\t\t\t\t\tb.descripcion,\n\t\t\t\t\tb.serie,\n\t\t\t\t\tb.status,\n\t\t\t\t\tb.inventario,\n\t\t\t\t\tb.desc_ub,\n\t\t\t\t\tm.nombre AS marca,\n\t\t\t\t\tg.nombre AS grupo,\n\t\t\t\t\tt.nombre AS tipo,\n\t\t\t\t\tmo.nombre AS modelo,\n\t\t\t\t\tb.fecha_reg AS registro,\n\t\t\t\t\tb.fecha_adq AS adquisicion,\n\t\t\t\t\tUPPER(c.nombre) AS color,\n\t\t\t\t\tma.nombre AS material,\n\t\t\t\t\tp.nombre AS proveedor,\n\t\t\t\t\tCONCAT(\n\t\t\t\t\t pe.nombre,\n\t\t\t\t\t ' ',\n\t\t\t\t\t pe.ap_pat,\n\t\t\t\t\t ' ',\n\t\t\t\t\t pe.ap_mat\n\t\t\t\t\t) AS asignadoa\n\t\t\t\t FROM bienes AS b\n\t\t\t\t INNER JOIN marcas AS m\n\t\t\t\t ON\n\t\t\t\t m.id = b.marca_id\n\t\t\t\t INNER JOIN grupos AS g\n\t\t\t\t ON\n\t\t\t\t g.id = b.grupo_id\n\t\t\t\t INNER JOIN t_bienes AS t\n\t\t\t\t ON\n\t\t\t\t t.id = b.tipo_id\n\t\t\t\t INNER JOIN modelos AS mo\n\t\t\t\t ON\n\t\t\t\t mo.id = b.modelo_id\n\t\t\t\t INNER JOIN color AS c\n\t\t\t\t ON\n\t\t\t\t c.id = b.color_id\n\t\t\t\t INNER JOIN materiales AS ma\n\t\t\t\t ON\n\t\t\t\t ma.id = b.material_id\n\t\t\t\t INNER JOIN proveedores AS p\n\t\t\t\t ON\n\t\t\t\t p.id = b.pro_id\n\t\t\t\t INNER JOIN asignacion AS a\n\t\t\t\t ON\n\t\t\t\t a.bien_id = b.id\n\t\t\t\t INNER JOIN personal AS pe\n\t\t\t\t ON\n\t\t\t\t pe.id = a.personal_id\n\t\t\t\t WHERE b.id IN ($aux_ids)\";\n\t\t\t\t$this->stmt = $this->pdo->prepare( $this->sql );\n\t\t\t\t$this->stmt->execute();\n\t\t\t\t$bienes = $this->stmt->fetchAll( PDO::FETCH_OBJ );\n\t\t\t\treturn json_encode($bienes);\n\t\t\t}else{\n\t\t\t\treturn json_encode( array('message'=>'No selecciono ningún criterio') );\n\t\t\t}\n\t\t} catch (Exception $e) {\n\t\t\t$this->result = array('error' => $e->getMessage() );\n\t\t}\t\n\t}", "title": "" }, { "docid": "f83d74c7f80db2dbeeb70c204e1b3192", "score": "0.5261685", "text": "function show_information_user ( $pseude ) {\n require ('config.php');\n mysql_connect ($db_server, $db_user, $db_pass);\n mysql_select_db($db);\n\n $sql = 'SELECT * FROM `tbl_tmp_user` UNION SELECT * FROM `tbl_user`';\n $result = mysql_query($sql);\n\n $num = mysql_numrows($result);\n //mysql_close();\n\n $i = 0;\n while ($i < $num) {\n $db_pseude = mysql_result ($result, $i, 'pseudo');\n if ($db_pseude == $pseude) {\n //echo '<h2>Logger </h2><br>';\n echo '<font color=\"red\">Bienvenue</font><br>';\n $db_id = mysql_result ($result, $i, 'ID');\n $db_pass = mysql_result ($result, $i, 'mdp');\n $db_prenom = mysql_result ($result, $i, 'prenom');\n $db_nom = mysql_result ($result, $i, 'nom');\n $db_email = mysql_result ($result, $i, 'email');\n $db_valid = mysql_result ($result, $i, 'valid');\n echo '<font color=\"green\">Pseudo : </font>' . $db_pseude;\n //echo '<br>mdp Crypter : ' . $db_pass;\n //echo '<br>ID : ' . $db_id;\n //echo '<br>Prenom : ' . $db_prenom;\n //echo '<br>Nom : ' . $db_nom;\n //echo '<br>Email : ' . $db_email;\n if ($db_valid == '0') {\n echo '<br><font color=\"green\">Validation :</font> Non Activer';\n } else {\n echo '<br><font color=\"green\">Validation :</font> Activer';\n }\n }\n $i++;\n }\n}", "title": "" }, { "docid": "8c4b3ba54de7edb66f67355b87d04f20", "score": "0.5259801", "text": "public function listaUsuarios(){\n\n $respuesta = Datos::mdlListaUsuarios(\"usuarios\");\n $cont =0;\n\n foreach ($respuesta as $row => $item){\n \t$cont ++;\n if ($item[\"rol\"] == 0) $tipoAcceso = \"Administrator\";\n if ($item[\"rol\"] == 1 ) $tipoAcceso = \"Usuario\";\n if ($item[\"rol\"] == 2 ) $tipoAcceso = \"Engineer\";\n if ($item[\"rol\"] == 3 ) $tipoAcceso = \"Accountant\";\n\n\n echo '<tr>\n <td>'.$cont.'</td>\n <td>'.$item[\"nombre\"].'</td>\n <td>'.$tipoAcceso.'</td>\n <td><a href=\"updtUsuario.php?idEditar='.$item[\"id\"].'\"><button class=\"btn btn-warning\">Editar</button></a></td>\n <td><a href=\"listaUsuarios.php?idBorrar='.$item[\"id\"].'\" ><button class=\"btn btn-danger\">Borrar</button></a></td>\n </tr>';\n }\n\n }", "title": "" }, { "docid": "1c36fbfdf9942fde69231cb0ed8e23ac", "score": "0.5253815", "text": "public function listUsersAdmin(){\n $sql=\"SELECT id_people,dni,first_name,last_name,adress,email,is_active FROM people WHERE is_user=1\";\n $rs=$this->con->prepare($sql);\n $rs->execute();\n return $rs->fetchAll(PDO::FETCH_OBJ);\n }", "title": "" }, { "docid": "846fcd4a454e7442a1102098b7660804", "score": "0.52521163", "text": "private function transfer_400_users() {\r\n\r\n\r\n\t\t// Grab all user accounts and insert them into new db\r\n\t\t$res = mysql_query('SELECT * FROM `users` WHERE 1', $this->sql);\r\n\t\twhile ($row = mysql_fetch_array($res)) {\r\n\t\t\t$row = $this->toText($row);\r\n\t\t\tif (!array_search($row['email'], $this->users)) {\r\n\t\t\t\t$data = array(\r\n\t\t\t\t\t'User' => array(\r\n\t\t\t\t\t\t'email' => $row['email'],\r\n\t\t\t\t\t\t'old_salt' => BcryptFormAuthenticate::generateSalt(),\r\n\t\t\t\t\t\t'group_id' => 5, // 5 - User\r\n\t\t\t\t\t\t'created' => $row['register_date'],\r\n\t\t\t\t\t\t'is_active' => $row['status'] == 'active' ? true : false,\r\n\t\t\t\t\t\t'last_login' => $row['last_login'],\r\n\t\t\t\t\t\t'force_reset' => false\r\n\t\t\t\t\t)\r\n\t\t\t\t);\r\n\r\n\t\t\t\t$data['User']['old_hash'] = $this->generateNewHash($row['password'], $data['User']['old_salt']);\r\n\r\n\t\t\t\t$this->User->create();\r\n\t\t\t\t$this->User->save($data);\r\n\r\n\t\t\t\t$data = array(\r\n\t\t\t\t\t'Profile' => array(\r\n\t\t\t\t\t\t'id' => $this->User->getInsertID(),\r\n\t\t\t\t\t\t'first_name' => $row['first_name'],\r\n\t\t\t\t\t\t'last_name' => $row['last_name'],\r\n\t\t\t\t\t\t'phone' => $row['phone'],\r\n\t\t\t\t\t\t'language' => 'eng',\r\n\t\t\t\t\t\t'timezone' => 'America/Montreal'\r\n\r\n\r\n\t\t\t\t\t)\r\n\t\t\t\t);\r\n\r\n\t\t\t\t$this->User->Profile->create();\r\n\t\t\t\t$this->User->Profile->save($data, false);\r\n\t\t\t\t$this->users[] = $row['email'];\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8a60ea072f0e4e5a720e5f5d2d9f53e3", "score": "0.5251122", "text": "private function populate_rows() {\n\t\t\t$this->load->model('users_table');\n\t\t\t$data = $this->users_table->get_entries(); //echo $data[0]->Ime; //echo $data[0]->Prezime;\n\n\t return $data;\n\t\t}", "title": "" }, { "docid": "dfcad6c4d9a1c52ec37ee8d627bb4d95", "score": "0.5235958", "text": "public function modifyUsers() {\n //update la table patient(){\n $modifyUsersQuery = $this->db->prepare(\n 'UPDATE\n `dom20_users`\n SET \n lastname = :lastname\n ,firstname = :firstname\n ,mail = :mail\n WHERE id= :id \n ');\n // On choisi les colonnes que l'on souhaite modifier avec SET, on leur attribue un marqueur nominatif ': ' \n // avec un bindValue on donne des valeurs à nos marqueurs nominatifs puis on execute();\n $modifyUsersQuery->bindValue(':lastname', $this->lastname, PDO::PARAM_STR);\n $modifyUsersQuery->bindValue(':firstname', $this->firstname, PDO::PARAM_STR);\n $modifyUsersQuery->bindValue(':mail', $this->mail, PDO::PARAM_STR);\n $modifyUsersQuery->bindValue(':id', $this->id, PDO::PARAM_STR);\n return $modifyUsersQuery->execute(); \n }", "title": "" }, { "docid": "45be01c213f6ce53d3b88866d6f09fd5", "score": "0.52326137", "text": "function getAllUser_PrivilageByIdDesc() {\n\t\t$SQL=\"SELECT * FROM user_privilage_tab ORDER BY id DESC\";\n\t\t$this->db->executeQuery($SQL);\n\n\t\t$result = array();\n\t\t$count = 0;\n\n\t\twhile($rs = $this->db->nextRecord())\n\t\t{\n\t\t\t$user_privilage = new User_Privilage();\n\t\t\t$user_privilage->setId($rs['id']);\n\t\t\t$user_privilage->setOrder_no($rs['order_no']);\n\t\t\t$user_privilage->setCode($rs['code']);\n\t\t\t$user_privilage->setUser_id($rs['user_id']);\n\t\t\t$user_privilage->setPrivilage_id($rs['privilage_id']);\n\t\t\t$user_privilage->setIs_view($rs['is_view']);\n\t\t\t$user_privilage->setIs_save($rs['is_save']);\n\t\t\t$user_privilage->setIs_edit($rs['is_edit']);\n\t\t\t$user_privilage->setIs_delete($rs['is_delete']);\n\t\t\t$user_privilage->setData_date($rs['data_date']);\n\t\t\t$user_privilage->setStatus($rs['status']);\n\t\t\t$user_privilage->setDate_($rs['date_']);\n\t\t\t$result[$count++] = $user_privilage;\n\t\t}\n\n\t\t$this->db->closeRs();\n\t\treturn $result;\n\n\t}", "title": "" }, { "docid": "eb94c41f34131459c2d4a584bd51d4b2", "score": "0.52311677", "text": "function create_table(){\n\t\t$tables=array();\n\t\t/**\n\t\t* Table structure for table 'user_info'\n\t\t*/\n\t\t\n\t\t$fields = array(\n\t\t\tarray(\"client_identifier\"\t\t,\"unsigned integer\"\t\t\t,\"NOT NULL\"\t,\"auto_increment\", \"key\"),\n\t\t\tarray(\"client_name\"\t\t\t\t,\"varchar(255)\"\t\t\t\t,\"\"\t,\"default ''\"),\n\t\t\tarray(\"client_contact\"\t\t\t,\"unsigned integer\"\t\t\t,\"\"\t,\"default ''\", \"key\"),\n\t\t\tarray(\"client_logo_setting\"\t\t,\"unsigned small integer\"\t,\"\"\t,\"default ''\"),\n\t\t\tarray(\"client_strapline\"\t\t,\"varchar(255)\"\t\t\t\t,\"\"\t,\"default ''\"),\n\t\t\tarray(\"client_logo_alignment\"\t,\"varchar(10)\"\t\t\t\t,\"\"\t,\"default 'LEFT'\"),\n\t\t\tarray(\"client_robot_setting\"\t,\"varchar(50)\"\t\t\t\t,\"\"\t,\"default 'index,follow'\"),\n\t\t\tarray(\"client_revisit_setting\"\t,\"unsigned small integer\"\t,\"\"\t,\"default '29'\"),\n\t\t\tarray(\"client_date_created\"\t\t,\"datetime\"\t\t\t\t\t,\"\" ,\"default ''\")\n\t\t);\n\t\t$primary =\"client_identifier\";\n\t\t$tables[count($tables)] = array(\"client\",$fields,$primary);\n\t\t/**\n\t\t* Table data for table 'client'\n\t\t*/\n//\t\t$this->call_command(\"DB_QUERY\",array(\"INSERT INTO client (client_name) VALUES('admin');\"));\n\t\t/**\n\t\t* Table structure for table 'domains'\n\t\t*/\n\t\t$fields = array(\n\t\tarray(\"domain_identifier\"\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"auto_increment\"),\n\t\tarray(\"domain_client\"\t\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"default '0'\"),\n\t\tarray(\"domain_name\"\t\t\t,\"varchar(255)\"\t\t,\"NULL\"\t\t,\"default ''\")\n\t\t);\n\t\t\n\t\t$primary=\"domain_identifier\";\n\t\t$tables[count($tables)] = array(\"domain\",$fields,$primary);\n\t\t/**\n\t\t* Table structure for table 'site_footer_data'\n\t\t*/\n\t\t$fields = array(\n\t\tarray(\"sfd_identifier\"\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"auto_increment\",\"key\"),\n\t\tarray(\"sfd_client\"\t\t,\"unsigned integer\"\t,\"NOT NULL\"\t,\"default '0'\"),\n\t\tarray(\"sfd_text\"\t\t,\"text\"\t\t\t\t,\"NULL\"\t\t,\"default ''\")\n\t\t);\n\t\t\n\t\t$primary=\"sfd_identifier\";\n\t\t$tables[count($tables)] = array(\"site_footer_data\",$fields,$primary);\n\n\n/*\t\t$sql = \"insert into domain (domain_client,domain_name) values (1,'\".$this->parent->domain.\"')\";\n\t\t$this->parent->db_pointer->database_query($sql);\n\t\t$sql = \"insert into domain (domain_client,domain_name) values (1,'localhost')\";\n\t\t$this->parent->db_pointer->database_query($sql);\n\t\t*/\n\t\treturn $tables;\n\t}", "title": "" }, { "docid": "900fec8f9be5d7ca0851d1505db8456c", "score": "0.52291983", "text": "public function data_user(){\n\t\treturn $this->db->get('registrasi');\n\t}", "title": "" }, { "docid": "43516fb0dab94f05ff4332b7447cc7bb", "score": "0.52271533", "text": "function user_table_data($logged_user_id)\n\t{\n\t\t$select = array('user_file', 'created', 'sex', 'first_name', 'last_name', 'full_name');\n\t\t$this->db->select($select)->from('users')->where('id', $logged_user_id);\n\t $query = $this->db->get();\n\t\tif ($query->num_rows() > 0)\n\t\t{\n\t\t\treturn $query->row_array();\n\t\t}\n\t}", "title": "" } ]
8d4c3e48f58fecebc2de9da1ecbb5212
/STEFAN PEJOVIC akcija kotrolera za pretrazivanje oglasa izvrsava se odgovarajuci model i poziva se odgovarajuci pogled za prikaz rezultata
[ { "docid": "ad84cfe34674973e074783961d675bd4", "score": "0.0", "text": "public function searchAd(){\n if (empty($_POST['marka'])){\n $marka=\"\";\n }\n else {\n $marka=$_POST['marka'];\n }\n if (empty($_POST['model'])){\n $model=\"\";\n }\n else {\n $model=$_POST['model'];\n }\n if (empty($_POST['godiste_od'])){\n $godisteOd=\"\";\n }\n else {\n $godisteOd=$_POST['godiste_od'];\n }\n if (empty($_POST['godiste_do'])){\n $godisteDo=\"\";\n }\n else {\n $godisteDo=$_POST['godiste_od'];\n }\n if (empty($_POST['cena_od'])){\n $cenaOd=\"\";\n }\n else {\n $cenaOd=$_POST['cena_od'];\n }\n if (empty($_POST['cena_do'])){\n $cenaDo=\"\";\n }\n else {\n $cenaDo=$_POST['cena_do'];\n }\n if (empty($_POST['rate'])){\n $rate=\"\";\n }\n else {\n $rate=$_POST['rate'];\n }\n if (empty($_POST['garancija'])){\n $garancija=\"\";\n }\n else {\n $garancija=$_POST['garancija'];\n }\n \n \n $nizOglasi=Ad::searchAd($marka,$model,$godisteOd,$godisteDo,$cenaOd,$cenaDo,$garancija,$rate);\n //$nizOglasiVip=Ad::searchAdVip($marka,$model,$godisteOd,$godisteDo,$cenaOd,$cenaDo,$garancija,$rate);//ovo smo dodali\n //$nizOglasiObican=Ad::searchAdObican($marka,$model,$godisteOd,$godisteDo,$cenaOd,$cenaDo,$garancija,$rate);//ovo smo dodali\n require_once 'views/PretragaOglasaObican/pretragaOglasa.php';\n }", "title": "" } ]
[ { "docid": "c3e3d7eb00a76013481c95c6e8f50bc9", "score": "0.69260347", "text": "public function obradiZahteve()\n {\n $rm = new RadnjaModel();\n $km = new KorisnikModel();\n $kor = $km->pretrazi_tip(3);\n $r = [];\n $k = [];\n foreach ($kor as $ko)\n {\n $k[] = $ko;\n $r[] = $rm->pretraga_idK($ko->idKorisnik)[0];\n }\n $this->show('prihvatanje_odbijanje_zahteva_za_registraciju_predstavnik',[\"radnje\"=>$r,\"predstavnici\"=>$k]);\n }", "title": "" }, { "docid": "aeca9792962e20bea60fddf8fc43acdd", "score": "0.6442394", "text": "public function sortiranje(){ \n if(isset($_GET['sortiraj'])){\n $poruka = $_GET['tipSortiranja'];\n $poruka = explode(\" \", $poruka);\n if($poruka[1] == \"ASC\")\n $poruka[1] = \"rastuce\"; \n else\n $poruka[1] = \"opadajuce\";\n switch ($poruka[0]){\n case \"datum\":\n $poruka[0] = \"Sortirano po datumu, \";\n break;\n case \"ocena\":\n $poruka[0] = \"Sortirano po oceni, \";\n break;\n case \"br_potrebnih_clanova\":\n $poruka[0] = \"Sortirano po broju trazenih ljudi, \";\n break;\n }\n }\n $objavaModel = new ObjavaModel();\n $kriterijum = $this->request->getVar('tipSortiranja');\n $kriterijum = explode(\" \", $kriterijum);\n $kategorija = $_SESSION['kategorija'];\n $objave = $objavaModel->pretragaSort($kriterijum[0], $kriterijum[1], $kategorija);\n $korisnikModel = new KorisnikModel();\n $korisnickoIme = array();\n foreach ($objave as $objava){\n $korisnickoIme += [$objava->idKor => $korisnikModel->dohvatiKorisnickoIme($objava->idKor)];\n }\n $this->prikaz('Objave', ['objave'=>$objave, 'poruka'=>$poruka, 'korIme'=>$korisnickoIme]); \n }", "title": "" }, { "docid": "29e650c507a3c9e50cb78b9e05834c47", "score": "0.643028", "text": "function upisprepravke(){\n\t $ime = $this->input->post('ime');//primi input iz forme u prepravkaview\n\t $zanr = $this->input->post('zanr');\n\t $godina = $this->input->post('godina');\n\t $lokacija = $this->input->post('lokacija');\n\t $link = $this->input->post('link');\n\t $poznati = $this->input->post('poznati');\n\t $id = $this->input->post('id');\n\t $this->db->where('id', $id); // update-uj podatke u bazi po id-ju\n $this->db->update('filmovi', array('ime' => $ime, 'zanr' => $zanr, 'godina' => $godina, 'lokacija' => $lokacija, 'link' => $link, 'poznati' => $poznati)); \n\t \n\t $where = \"id = $id\";//posle upisa novih podataka izvuci iste iz baze da se vrate u kontroler pa u view\n\t $q = $this->db->select('id, lokacija, ime, godina, poznati, link, zanr')\n\t ->from('filmovi')->where($where);\n\t $rez['ispravljen'] = $q->get()->result_array();//vrati nove podatke u kontroler pa dalje u view\n\t return $rez;\n\t}", "title": "" }, { "docid": "b790019180e12288f8278e7cde8c4a87", "score": "0.6427973", "text": "function cl_edu_relatmodel() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"edu_relatmodel\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "49d7b7ee2ed383cda9d348d4f8900365", "score": "0.63983667", "text": "public function actionSeleksiDokumen() {\n //ngeload semua pelamar yang masih dalam proses seleksi ( tahap masih null )\n //search list of lamaran where tahap is null\n //cek jika dia admin dan filter berdasarkan departemenennya\n $modelsL;\n //update filter yang null aja yang tampil\n if (Yii::app()->user->isAdmin()) {\n //cari departemen dan filter by departemen kalo dia admin\n $id = Yii::app()->user->id;\n $modelAdmin = Admin::model()->findByAttributes(array('id_user' => $id));\n $criteria = new CDbCriteria;\n $criteria->with = array('lowongan', 'pelamar');\n $criteria->condition = \"id_lowongan_tahap is null AND lowongan.departemen=:low\";\n $criteria->params = array(':low' => $modelAdmin->departemen);\n\n $count = Lamaran::model()->count($criteria);\n $pages = new CPagination($count);\n // elements per page\n $pages->pageSize = 10;\n $pages->applyLimit($criteria);\n // sorting\n $sort = new CSort('Lamaran');\n $sort->multiSort = true;\n $sort->attributes = array(\n 'pelamarNama' => array(\n 'asc' => 'pelamar.nama',\n 'desc' => 'pelamar.nama DESC',\n 'label' => 'Nama',\n 'default' => 'desc',\n ),\n 'pelamarSex' => array(\n 'asc' => 'pelamar.jenis_kelamin',\n 'desc' => 'pelamar.jenis_kelamin DESC',\n 'label' => 'Gender',\n 'default' => 'desc',\n ),\n 'pelamarEdu' => array(\n 'asc' => 'pelamar.pendidikan',\n 'desc' => 'pelamar.pendidikan DESC',\n 'label' => 'Pendidikan',\n 'default' => 'desc',\n ),\n 'pelamarUmur' => array(\n 'asc' => 'pelamar.umur',\n 'desc' => 'pelamar.umur DESC',\n 'label' => 'Umur',\n 'default' => 'desc',\n ),\n 'pelamarStatus' => array(\n 'asc' => 'pelamar.status',\n 'desc' => 'pelamar.status DESC',\n 'label' => 'Status',\n ),\n 'pelamarKota' => array(\n 'asc' => 'pelamar.kota',\n 'desc' => 'pelamar.kota DESC',\n 'label' => 'Kota',\n ),\n 'pelamarGaji' => array(\n 'asc' => 'pelamar.gaji',\n 'desc' => 'pelamar.gaji DESC',\n 'label' => 'gaji',\n ),\n 'lowonganNama' => array(\n 'asc' => 'lowongan.nama',\n 'desc' => 'lowongan.nama DESC',\n 'label' => 'Lowongan',\n 'default' => 'desc',\n ),\n );\n $sort->applyOrder($criteria);\n $modelsL = Lamaran::model()->with('lowongan')->findAll($criteria);\n } else {\n $criteria = new CDbCriteria;\n $criteria->condition = 'id_lowongan_tahap is null';\n $criteria->with = array('lowongan', 'pelamar');\n\n $count = Lamaran::model()->count($criteria);\n $pages = new CPagination($count);\n // elements per page\n $pages->pageSize = 10;\n $pages->applyLimit($criteria);\n // sorting\n $sort = new CSort('Lamaran');\n $sort->multiSort = true;\n $sort->attributes = array(\n 'pelamarNama' => array(\n 'asc' => 'pelamar.nama',\n 'desc' => 'pelamar.nama DESC',\n 'label' => 'Nama',\n 'default' => 'desc',\n ),\n 'pelamarSex' => array(\n 'asc' => 'pelamar.jenis_kelamin',\n 'desc' => 'pelamar.jenis_kelamin DESC',\n 'label' => 'Gender',\n 'default' => 'desc',\n ),\n 'pelamarEdu' => array(\n 'asc' => 'pelamar.pendidikan',\n 'desc' => 'pelamar.pendidikan DESC',\n 'label' => 'Pendidikan',\n 'default' => 'desc',\n ),\n 'pelamarUmur' => array(\n 'asc' => 'pelamar.umur',\n 'desc' => 'pelamar.umur DESC',\n 'label' => 'Umur',\n 'default' => 'desc',\n ),\n 'pelamarStatus' => array(\n 'asc' => 'pelamar.status',\n 'desc' => 'pelamar.status DESC',\n 'label' => 'Status',\n ),\n 'pelamarKota' => array(\n 'asc' => 'pelamar.kota',\n 'desc' => 'pelamar.kota DESC',\n 'label' => 'Kota',\n ),\n 'pelamarGaji' => array(\n 'asc' => 'pelamar.gaji',\n 'desc' => 'pelamar.gaji DESC',\n 'label' => 'gaji',\n ),\n 'lowonganNama' => array(\n 'asc' => 'lowongan.nama',\n 'desc' => 'lowongan.nama DESC',\n 'label' => 'Lowongan',\n 'default' => 'desc',\n ),\n );\n $sort->applyOrder($criteria);\n $modelsL = Lamaran::model()->findAll($criteria);\n }\n\n //kalo ada post maka simpan update nya\n if (isset($_POST['Lamaran'])) {\n $valid = true;\n foreach ($_POST['Lamaran'] as $j => $modelp) {\n //kalo pengalaman kerja oke\n if (isset($_POST['Lamaran'][$j])) {\n $modelsL[$j]->attributes = $modelp;\n //$valid = $modelsL[$j]->validate() && $valid;\n }\n }\n if ($valid) {\n $i = 0;\n while (isset($modelsL[$i])) {\n if ($modelsL[$i]->id_lowongan_tahap != 0)\n $modelsL[$i]->save(false); // models have already been validated\n $i++;\n }\n }\n }\n //update filter yang null aja yang tampil\n if (Yii::app()->user->isAdmin()) {\n //cari departemen dan filter by departemen kalo dia admin\n $id = Yii::app()->user->id;\n $modelAdmin = Admin::model()->findByAttributes(array('id_user' => $id));\n $criteria = new CDbCriteria;\n $criteria->with = array('lowongan', 'pelamar');\n $criteria->condition = \"id_lowongan_tahap is null AND lowongan.departemen=:low\";\n $criteria->params = array(':low' => $modelAdmin->departemen);\n\n $count = Lamaran::model()->count($criteria);\n $pages = new CPagination($count);\n // elements per page\n $pages->pageSize = 10;\n $pages->applyLimit($criteria);\n // sorting\n $sort = new CSort('Lamaran');\n $sort->multiSort = true;\n $sort->attributes = array(\n 'pelamarNama' => array(\n 'asc' => 'pelamar.nama',\n 'desc' => 'pelamar.nama DESC',\n 'label' => 'Nama',\n 'default' => 'desc',\n ),\n 'pelamarSex' => array(\n 'asc' => 'pelamar.jenis_kelamin',\n 'desc' => 'pelamar.jenis_kelamin DESC',\n 'label' => 'Gender',\n 'default' => 'desc',\n ),\n 'pelamarEdu' => array(\n 'asc' => 'pelamar.pendidikan',\n 'desc' => 'pelamar.pendidikan DESC',\n 'label' => 'Pendidikan',\n 'default' => 'desc',\n ),\n 'pelamarUmur' => array(\n 'asc' => 'pelamar.umur',\n 'desc' => 'pelamar.umur DESC',\n 'label' => 'Umur',\n 'default' => 'desc',\n ),\n 'pelamarStatus' => array(\n 'asc' => 'pelamar.status',\n 'desc' => 'pelamar.status DESC',\n 'label' => 'Status',\n ),\n 'pelamarKota' => array(\n 'asc' => 'pelamar.kota',\n 'desc' => 'pelamar.kota DESC',\n 'label' => 'Kota',\n ),\n 'pelamarGaji' => array(\n 'asc' => 'pelamar.gaji',\n 'desc' => 'pelamar.gaji DESC',\n 'label' => 'gaji',\n ),\n 'lowonganNama' => array(\n 'asc' => 'lowongan.nama',\n 'desc' => 'lowongan.nama DESC',\n 'label' => 'Lowongan',\n 'default' => 'desc',\n ),\n );\n $sort->applyOrder($criteria);\n $modelsL = Lamaran::model()->with('lowongan')->findAll($criteria);\n } else {\n $criteria = new CDbCriteria;\n $criteria->condition = 'id_lowongan_tahap is null';\n $criteria->with = array('lowongan', 'pelamar');\n\n $count = Lamaran::model()->count($criteria);\n $pages = new CPagination($count);\n // elements per page\n $pages->pageSize = 10;\n $pages->applyLimit($criteria);\n // sorting\n $sort = new CSort('Lamaran');\n $sort->multiSort = true;\n $sort->attributes = array(\n 'pelamarNama' => array(\n 'asc' => 'pelamar.nama',\n 'desc' => 'pelamar.nama DESC',\n 'label' => 'Nama',\n 'default' => 'desc',\n ),\n 'pelamarSex' => array(\n 'asc' => 'pelamar.jenis_kelamin',\n 'desc' => 'pelamar.jenis_kelamin DESC',\n 'label' => 'Gender',\n 'default' => 'desc',\n ),\n 'pelamarEdu' => array(\n 'asc' => 'pelamar.pendidikan',\n 'desc' => 'pelamar.pendidikan DESC',\n 'label' => 'Pendidikan',\n 'default' => 'desc',\n ),\n 'pelamarUmur' => array(\n 'asc' => 'pelamar.umur',\n 'desc' => 'pelamar.umur DESC',\n 'label' => 'Umur',\n 'default' => 'desc',\n ),\n 'pelamarStatus' => array(\n 'asc' => 'pelamar.status',\n 'desc' => 'pelamar.status DESC',\n 'label' => 'Status',\n ),\n 'pelamarKota' => array(\n 'asc' => 'pelamar.kota',\n 'desc' => 'pelamar.kota DESC',\n 'label' => 'Kota',\n ),\n 'pelamarGaji' => array(\n 'asc' => 'pelamar.gaji',\n 'desc' => 'pelamar.gaji DESC',\n 'label' => 'gaji',\n ),\n 'lowonganNama' => array(\n 'asc' => 'lowongan.nama',\n 'desc' => 'lowongan.nama DESC',\n 'label' => 'Lowongan',\n 'default' => 'desc',\n ),\n );\n $sort->applyOrder($criteria);\n $modelsL = Lamaran::model()->findAll($criteria);\n }\n $this->render('seleksi1', array(\n 'modelsL' => $modelsL, 'pages' => $pages, 'sort' => $sort, // 'modelsP' => $modelsP,\n ));\n }", "title": "" }, { "docid": "a602d4ad2f9edcbabf2385eb365d4ce3", "score": "0.63852465", "text": "public function modeloEducativo(){\n $datos['preguntas'] = $this->model->selectPreguntasModeloEducativo();\n $datos['opciones'] = $this->model->selectOpcionesModeloEducativo();\n $datos['page_functions_js'] = \"functions_evaluacion_modelo_educativo.js\";\n $this->views->getView($this,\"Home/evaluacion_modelo_educativo\",$datos);\n \n }", "title": "" }, { "docid": "9157fc591a96103909c2aa059f805e9f", "score": "0.6369312", "text": "public function editform($Naprawa){\n \n //d($Naprawa);\n \n $model = $this->getModel('Producent'); \n $producenci = $model->getAllForSelect(); \n $this->set('producenci', $producenci);\n \n $model = $this->getModel('TypMyjki'); \n $myjki = $model->getAllForSelect(); \n $this->set('myjki', $myjki);\n \n $model = $this->getModel('Osprzet'); \n $osprzet = $model->getAllForSelect(); \n $this->set('osprzet', $osprzet);\n \n $model = $this->getModel('Status'); \n $status = $model->getAllForSelect(); \n $this->set('status', $status);\n \n $model = $this->getModel('Opcja'); \n $opcje = $model->getAllForSelect(); \n $this->set('opcje', $opcje);\n\t\t\t\n\t\t\t$this->set('IDNaprawa', $Naprawa['IDNaprawa']); \n $this->set('IDKlient', $Naprawa['IDKlient']);\n $this->set('IDProducent', $Naprawa['IDProducent']);\n $this->set('NazMyjki', $Naprawa['NazMyjki']);\n $this->set('IDTypMyjki', $Naprawa['IDTypMyjki']);\n $this->set('IDOsprzet', $Naprawa['IDOsprzet']);\n $this->set('CzyWycena', $Naprawa['CzyWycena']);\n $this->set('Symptomy', $Naprawa['Symptomy']);\n $this->set('Diagnoza', $Naprawa['Diagnoza']);\n $this->set('OpisNaprawy', $Naprawa['OpisNaprawy']);\n $this->set('Czesci', $Naprawa['Czesci']);\n $this->set('DataDostarczenia', $Naprawa['DataDostarczenia']);\n\t\t\t$this->set('DataOdbioru', $Naprawa['DataOdbioru']);\n\t\t\t$this->set('IDStatus', $Naprawa['IDStatus']);\n\t\t\t$this->set('KwotaNaprawy', $Naprawa['KwotaNaprawy']);\n\t\t\t$this->set('Kartka', $Naprawa['Kartka']);\n\t\t\t$this->set('Kontakt', $Naprawa['Kontakt']);\n $this->set('klienci', $this->getModel('Klient')->getAllForSelect()); \n\n\t\t\tif(isset($data['error']))\n $this->set('error', $data['error']);\n $this->set('customScript', array('Naprawa'));\n\t\t\t$this->render('NaprawaEditForm'); \n }", "title": "" }, { "docid": "f0d618431fd005673b690361f04fd443", "score": "0.6346329", "text": "public function actionUpdate()\n {\n\t\t$session = new Session();\n\t\t$id = $session->get('id_perkara');\n\t\t$model = $this->findModel($id);\n\t\t\n\t\tif($model == null){\n $model = new PdmBA3();\n\t\t}\n\t\t\n\t\t$modelMsSaksi = new PdmMsSaksiAhli();\n\t\n\t\t$modelTersangka = $this->findModelTersangka($id);\n $modelSpdp = $this->findModelSpdp($id);\n\t\t\n\t\t//$model->id_ms_saksi_ahli=$_POST['PdmMsSaksiAhli']['id_ms_saksi_ahli'];\n\t\t\n //Jaksa Penyidik\n $modelpenyidik = PdmJaksaPenerima::findAll(['id_perkara' => $model->id_perkara, 'code_table' => GlobalConstMenuComponent::BA3, 'id_table' => $model->id_ba3]);\n\n if ($modelpenyidik == null) {\n $modelpenyidik = new PdmJaksaPenerima();\n }\n\t\t\n\t\t//Jaksa saksi\n\t\t$modeljaksi = PdmJaksaSaksi::findAll(['id_perkara' => $model->id_perkara, 'code_table' => GlobalConstMenuComponent::BA3, 'id_table' => $model->id_ba3]);\n\n if ($modeljaksi == null) {\n $modeljaksi = new PdmJaksaSaksi();\n }\n\t\t\n\t\t$searchJPU = new VwJaksaPenuntutSearch();\n $dataJPU = $searchJPU->search2(Yii::$app->request->queryParams);\n $dataJPU->pagination->pageSize = 5;\n\t\t\n\t\t$modelMsSaksi = PdmMsSaksiAhli::findOne(['id_saksi_ahli' => $model->id_ms_saksi_ahli]);\n\t\tif ($modelMsSaksi == null) {\n $modelMsSaksi = new PdmMsSaksiAhli();\n }\n\t\t\n\t\tif ($model->load(Yii::$app->request->post())) {\n\t\t$id_ba3 = Pdmba3::findOne(['id_perkara' => $id]);\n\t\t$seq = Yii::$app->db->createCommand(\"select public.generate_pk('pidum.pdm_ba3', 'id_ba3', '\".\\Yii::$app->globalfunc->getSatker()->inst_satkerkd.\"', '\".date('Y').\"')\")->queryOne();\n\t\n\t\t$id_MsSaksiAhli = Yii::$app->db->createCommand(\"select public.generate_pk('pidum.pdm_ms_saksi_ahli', 'id_saksi_ahli', '\" . \\Yii::$app->globalfunc->getSatker()->inst_satkerkd . \"', '\" . date('Y') . \"')\")->queryOne();\n\t\t\t\n\t\t\tif($model->id_perkara != null){\n\t\t\t$model->update();\n\t\t\t\t$modelMsSaksi->flag = '2';\n\t\t\t\t$modelMsSaksi->nama = $_POST['PdmMsSaksiAhli']['nama'];\n\t\t\t\t$modelMsSaksi->tmpt_lahir = $_POST['PdmMsSaksiAhli']['tmpt_lahir'];\n\t\t\t\t$modelMsSaksi->tgl_lahir = $_POST['PdmMsSaksiAhli']['tgl_lahir'];\n\t\t\t\t$modelMsSaksi->id_jkl = $_POST['PdmMsSaksiAhli']['id_jkl'];\n\t\t\t\t$modelMsSaksi->alamat = $_POST['PdmMsSaksiAhli']['alamat'];\n\t\t\t\t$modelMsSaksi->warganegara = $_POST['PdmMsSaksiAhli']['warganegara'];\n\t\t\t\t$modelMsSaksi->id_agama = $_POST['PdmMsSaksiAhli']['id_agama'];\n\t\t\t\t$modelMsSaksi->pekerjaan = $_POST['PdmMsSaksiAhli']['pekerjaan'];\n\t\t\t\t$modelMsSaksi->id_pendidikan = $_POST['PdmMsSaksiAhli']['id_pendidikan'];\n\t\t\t\t$modelMsSaksi->save();\n\t\t\t\n }else{\n\t\t\t\t\n\t\t\t\t$modelMsSaksi = new PdmMsSaksiAhli();\n\t\t\t\t$modelMsSaksi->id_saksi_ahli = $id_MsSaksiAhli['generate_pk'];\n\t\t\t\t$modelMsSaksi->nama = $_POST['PdmMsSaksiAhli']['nama'];\n\t\t\t\t$modelMsSaksi->tmpt_lahir = $_POST['PdmMsSaksiAhli']['tmpt_lahir'];\n\t\t\t\t$modelMsSaksi->tgl_lahir = $_POST['PdmMsSaksiAhli']['tgl_lahir'];\n\t\t\t\t$modelMsSaksi->id_jkl = $_POST['PdmMsSaksiAhli']['id_jkl'];\n\t\t\t\t$modelMsSaksi->alamat = $_POST['PdmMsSaksiAhli']['alamat'];\n\t\t\t\t$modelMsSaksi->warganegara = $_POST['PdmMsSaksiAhli']['warganegara'];\n\t\t\t\t$modelMsSaksi->id_agama = $_POST['PdmMsSaksiAhli']['id_agama'];\n\t\t\t\t$modelMsSaksi->pekerjaan = $_POST['PdmMsSaksiAhli']['pekerjaan'];\n\t\t\t\t$modelMsSaksi->id_pendidikan = $_POST['PdmMsSaksiAhli']['id_pendidikan'];\n\t\t\t\t$modelMsSaksi->save();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$model->id_ms_saksi_ahli = $id_MsSaksiAhli['generate_pk'];\n\t\t\t\t$modelMsSaksi->id_pendidikan = $_POST['PdmMsSaksiAhli']['id_pendidikan'];\n\t\t\t\t$modelMsSaksi = new PdmMsSaksiAhli();\n\t\t\t\t$modelMsSaksi->id_saksi_ahli = $idMsSaksiAhli;\n\t\t\t\t$modelMsSaksi->nama = $_POST['PdmMsSaksiAhli']['nama'];\n\t\t\t\t$modelMsSaksi->tmpt_lahir = $_POST['PdmMsSaksiAhli']['tmpt_lahir'];\n\t\t\t\t$modelMsSaksi->tgl_lahir = $_POST['PdmMsSaksiAhli']['tgl_lahir'];\n\t\t\t\t$modelMsSaksi->id_jkl = $_POST['PdmMsSaksiAhli']['id_jkl'];\n\t\t\t\t$modelMsSaksi->alamat = $_POST['PdmMsSaksiAhli']['alamat'];\n\t\t\t\t$modelMsSaksi->warganegara = $_POST['PdmMsSaksiAhli']['warganegara'];\n\t\t\t\t$modelMsSaksi->id_agama = $_POST['PdmMsSaksiAhli']['id_agama'];\n\t\t\t\t$modelMsSaksi->pekerjaan = $_POST['PdmMsSaksiAhli']['pekerjaan'];\n\t\t\t\t$modelMsSaksi->id_pendidikan = $_POST['PdmMsSaksiAhli']['id_pendidikan'];\n\t\t\t\t$modelMsSaksi->save();\n }\n\t\t\n\t\tif ($model->id_ba3 != null) {\n $model->lokasi = $_POST['PdmBa3']['lokasi'];\n $model->flag ='2';\n $model->update();\n } else {\n $model->id_perkara = $id_perkara;\n $model->id_ba3 = $seq['generate_pk'];\n $model->id_ms_saksi_ahli = $modelMsSaksi->id_saksi_ahli;\n $model->save();\n\n Yii::$app->globalfunc->getSetStatusProcces($model->id_perkara, GlobalConstMenuComponent::BA3);\n }\n\t\t\n\t\t//Jaksa Penyidik\n\t\tPdmJaksaPenerima::deleteAll(['id_perkara' => $model->id_perkara, 'code_table' => GlobalConstMenuComponent::BA3, 'id_table' => $model->id_ba3]);\n if (isset($_POST['nip'])) {\n foreach ($_POST['nip'] as $key) {\n $query = new Query;\n $query->select('*')\n ->from('pidum.vw_jaksa_penuntut')\n ->where(\"peg_instakhir='\" . \\Yii::$app->globalfunc->getSatker()->inst_satkerkd . \"' and peg_nik='\" . $key . \"'\");\n $command = $query->createCommand();\n $data = $command->queryAll();\n $seqjpp = Yii::$app->db->createCommand(\"select public.generate_pk('pidum.pdm_jaksa_penerima', 'id_jpp', '\" . \\Yii::$app->globalfunc->getSatker()->inst_satkerkd . \"', '\" . date('Y') . \"')\")->queryOne();\n\t\t\t\t\t\n\t\t\t\t\t$modelpenyidik = new PdmJaksaPenerima();\n\t\t\t\t $modelpenyidik ->id_jpp = $seqjpp['generate_pk'];\n\t\t\t\t\t$modelpenyidik ->id_perkara = $id;\n $modelpenyidik ->code_table = GlobalConstMenuComponent::BA3;\n\t\t\t\t\t$modelpenyidik ->id_table = $model->id_ba3;\n\t\t\t\t\t$modelpenyidik ->flag = '1';\n $modelpenyidik ->nama = $data[0]['peg_nama'];\n\t\t\t\t\t$modelpenyidik ->nip = $data[0]['peg_nip'];\n $modelpenyidik ->jabatan = $data[0]['jabatan'];\n $modelpenyidik ->pangkat = $data[0]['pangkat'];\n\t\t\t\t\t$modelpenyidik->save();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Jaksa Saksi\n\t\t PdmJaksaSaksi::deleteAll(['id_perkara' => $model->id_perkara, 'code_table' => GlobalConstMenuComponent::BA3, 'id_table' => $model->id_ba3]);\n if (isset($_POST['txtnip'])) {\n foreach ($_POST['txtnip'] as $key) {\n $query = new Query;\n $query->select('*')\n ->from('pidum.vw_jaksa_penuntut')\n ->where(\"peg_instakhir='\" . \\Yii::$app->globalfunc->getSatker()->inst_satkerkd . \"' and peg_nik='\" . $key . \"'\");\n $command = $query->createCommand();\n $data = $command->queryAll();\n $seqjpp = Yii::$app->db->createCommand(\"select public.generate_pk('pidum.pdm_jaksa_saksi', 'id_jpp', '\" . \\Yii::$app->globalfunc->getSatker()->inst_satkerkd . \"', '\" . date('Y') . \"')\")->queryOne();\n\t\t\t\t\t\n $modeljaksi = new PdmJaksaSaksi();\n\t\t\t\t $modeljaksi->id_jpp = $seqjpp['generate_pk'];\n\t\t\t\t\t$modeljaksi->id_perkara = $id;\n $modeljaksi->code_table = GlobalConstMenuComponent::BA3;\n $modeljaksi->id_table = $model->id_ba3;\n $modeljaksi->flag = '1';\n $modeljaksi->nama = $data[0]['peg_nama'];\n $modeljaksi->nip = $data[0]['peg_nip'];\n $modeljaksi->jabatan = $data[0]['jabatan'];\n $modeljaksi->pangkat = $data[0]['pangkat'];\n\t\t\t\t\t\n $modeljaksi->save();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Saksi\t\t\t\n\t\t\tif($modelMsSaksi->id_saksi_ahli == null){\n\t\t\t}else{\n\t\t\t}\n\t\t\t\t\n\t\t\t/* $trxPemroresan = PdmTrxPemrosesan::findOne(['id_perkara' => $id]);\n $trxPemroresan->id_perkara = $id;\n $trxPemroresan->id_sys_menu = \"61\";\n $trxPemroresan->id_user_login = Yii::$app->user->identity->username;\n $trxPemroresan->update(); */\n\t\t\t\n\t\t\t//notifkasi simpan\n\t\t\tYii::$app->getSession()->setFlash('success', [\n 'type' => 'success', //String, can only be set to danger, success, warning, info, and growl\n 'duration' => 5000, //Integer //3000 default. time for growl to fade out.\n 'icon' => 'glyphicon glyphicon-ok-sign', //String\n 'message' => 'Data Berhasil Disimpan', // String\n 'title' => 'Save', //String\n 'positonY' => 'top', //String // defaults to top, allows top or bottom\n 'positonX' => 'center', //String // defaults to right, allows right, center, left\n 'showProgressbar' => true,\n ]);\n\t\t\t\n\t\t\t//return $this->redirect(['update','id'=>$model->id_perkara]);\n\t\t\treturn $this->redirect(['update','id'=>$id]);\n\t\t\t//return $this->redirect(['view', 'id' => $model->id_ba3]);\n\t\t\t\n\t\t\t} else {\n return $this->render('update', [\n 'model' => $model,\n\t\t\t\t'searchJPU' => $searchJPU,\n\t\t\t\t'dataJPU' => $dataJPU,\n\t\t\t\t'modeljaksi' => $modeljaksi, \n\t\t\t\t'modelpenyidik' =>$modelpenyidik,\n\t\t\t\t'modelTersangka' => $modelTersangka,\n\t\t\t\t'modelSpdp' => $modelSpdp,\n\t\t\t\t'modelMsSaksi'=>$modelMsSaksi,\n\t\t\t\t'sysMenu' => $this->sysMenu,\n\t\t\t\t'id' => $id,\n\t\t\t\t]);\n }\n\t\n\t}", "title": "" }, { "docid": "2c0a65f8ce31e1c53043a3de99bc1f91", "score": "0.63177", "text": "public function brisanjeMogRecepta(){\n $this->provera();\n date_default_timezone_set('Europe/Belgrade');\n $idKoktela = $this->request->getPost('idKoktela');\n $koktelModel = new KoktelModel();\n $korisnikId = $koktelModel->find($idKoktela)->idKorisnika;\n if($korisnikId==$this->session->get('korisnik')->idKorisnika){\n $prijavaModel = new PrijavaModel();\n $prijaveOvogrecepta= $prijavaModel->where(\"idKoktela\",$idKoktela)->findall();\n foreach($prijaveOvogrecepta as $prijava){\n $prijavaModel->set(\"obrisanaPrijava\", 1)->where(\"idKoktela\",$idKoktela)->update();\n }\n $koktelModel->set(\"obrisan\",1)->where('idKoktela',$idKoktela)->update();\n }\n \n return redirect()->to(site_url('Korisnik/mojiKokteli'));\n }", "title": "" }, { "docid": "3fbd88b425b680ff49ead731bac65de7", "score": "0.6306437", "text": "public function carregaDefault() {\n $oParametros = Fabrica::FabricarController('STEEL_PCP_ParamVendasItem');\n\n $oParamDados = $oParametros->Persistencia->consultar();\n\n //Passa os dados para o model STEEL_PCP_PedCargaItens\n $this->Model->setPDV_PedidoItemMoeda($oParamDados->getPDV_PedidoItemMoeda());\n $this->Model->setPDV_PedidoItemFreteRateado($oParamDados->getPDV_PedidoItemFreteRateado());\n $this->Model->setPDV_PedidoItemDespesasRateado($oParamDados->getPDV_PedidoItemDespesasRateado());\n $this->Model->setPDV_PedidoItemSeguroRateado($oParamDados->getPDV_PedidoItemSeguroRateado());\n $this->Model->setPDV_PedidoItemAcrescimoRateado($oParamDados->getPDV_PedidoItemAcrescimoRateado());\n $this->Model->setPDV_PedidoItemDescontoPercentu($oParamDados->getPDV_PedidoItemDescontoPercentu());\n $this->Model->setPDV_PedidoItemAcrescimoPercent($oParamDados->getPDV_PedidoItemAcrescimoPercent());\n $this->Model->setPDV_PedidoItemOrdemImpressao($oParamDados->getPDV_PedidoItemOrdemImpressao());\n $this->Model->setPDV_PedidoItemQtdLiberada($oParamDados->getPDV_PedidoItemQtdLiberada());\n $this->Model->setPDV_PedidoItemDescontoValor($oParamDados->getPDV_PedidoItemDescontoValor());\n $this->Model->setPDV_PedidoItemAcrescimoValor($oParamDados->getPDV_PedidoItemAcrescimoValor());\n $this->Model->setPDV_PedidoItemTipoEmiNF($oParamDados->getPDV_PedidoItemTipoEmiNF());\n $this->Model->setPDV_PedidoItemCancelado($oParamDados->getPDV_PedidoItemCancelado());\n $this->Model->setPDV_PedidoItemDiasEntrega($oParamDados->getPDV_PedidoItemDiasEntrega());\n $this->Model->setPDV_PedidoItemVlrFaturado($oParamDados->getPDV_PedidoItemVlrFaturado());\n $this->Model->setPDV_PedidoItemValorCusto($oParamDados->getPDV_PedidoItemValorCusto());\n $this->Model->setPDV_PedidoItemPercentualCusto($oParamDados->getPDV_PedidoItemPercentualCusto());\n $this->Model->setPDV_PedidoItemDimGQtd($oParamDados->getPDV_PedidoItemDimGQtd());\n $this->Model->setPDV_PedidoItemDimGFormula($oParamDados->getPDV_PedidoItemDimGFormula());\n $this->Model->setPDV_PedidoItemDimGExpres($oParamDados->getPDV_PedidoItemDimGExpres());\n $this->Model->setPDV_PedidoItemQtdPecas($oParamDados->getPDV_PedidoItemQtdPecas());\n $this->Model->setPDV_PedidoItemObsOF($oParamDados->getPDV_PedidoItemObsOF());\n $this->Model->setPDV_PedidoItemPercentualPromoc($oParamDados->getPDV_PedidoItemPercentualPromoc());\n $this->Model->setPDV_PedidoItemValorMotagemRate($oParamDados->getPDV_PedidoItemValorMotagemRate());\n $this->Model->setPDV_PedidoItemValorFreteAuxRat($oParamDados->getPDV_PedidoItemValorFreteAuxRat());\n $this->Model->setPDV_PedidoItemConfigSalvaSeq($oParamDados->getPDV_PedidoItemConfigSalvaSeq());\n $this->Model->setPDV_PedidoItemEstruturaNumero($oParamDados->getPDV_PedidoItemEstruturaNumero());\n $this->Model->setPDV_PedidoItemEntregaAntecipad($oParamDados->getPDV_PedidoItemEntregaAntecipad());\n $this->Model->setPDV_PedidoItemProdutoCusto($oParamDados->getPDV_PedidoItemProdutoCusto());\n $this->Model->setPDV_PedidoItemProdutoMarkup($oParamDados->getPDV_PedidoItemProdutoMarkup());\n $this->Model->setPDV_PedidoItemProdutoReferenci($oParamDados->getPDV_PedidoItemProdutoReferenci());\n $this->Model->setPDV_PedidoItemTipoFornecimento($oParamDados->getPDV_PedidoItemTipoFornecimento());\n $this->Model->setPDV_PedidoItemMoedaPadrao($oParamDados->getPDV_PedidoItemMoedaPadrao());\n $this->Model->setPDV_PedidoItemMoedaValorCotaca($oParamDados->getPDV_PedidoItemMoedaValorCotaca());\n $this->Model->setPDV_PedidoItemMoedaValor($oParamDados->getPDV_PedidoItemMoedaValor());\n $this->Model->setPDV_PedidoItemConfigProcessada($oParamDados->getPDV_PedidoItemConfigProcessada());\n $this->Model->setPDV_PedidoItemEspecie($oParamDados->getPDV_PedidoItemEspecie());\n $this->Model->setPDV_PedidoItemVolumes($oParamDados->getPDV_PedidoItemVolumes());\n $this->Model->setPDV_PedidoItemDescFormulaSeq($oParamDados->getPDV_PedidoItemDescFormulaSeq());\n $this->Model->setPDV_AprovacaoAlteraPedido($oParamDados->getPDV_AprovacaoAlteraPedido());\n $this->Model->setPDV_PedidoItemOrigem($oParamDados->getPDV_PedidoItemOrigem());\n $this->Model->setPDV_PedidoItemPedidoVendaCli($oParamDados->getPDV_PedidoItemPedidoVendaCli());\n $this->Model->setPDV_PedidoItemProdObsoleto($oParamDados->getPDV_PedidoItemProdObsoleto());\n $this->Model->setPDV_PedidoItemSerieModelo($oParamDados->getPDV_PedidoItemSerieModelo());\n $this->Model->setPDV_PedidoItemIdenProgramacao($oParamDados->getPDV_PedidoItemIdenProgramacao());\n $this->Model->setPDV_PedidoItemMargemVlrUnitJur($oParamDados->getPDV_PedidoItemMargemVlrUnitJur());\n $this->Model->setPDV_PedidoItemDiasEntregaFinal($oParamDados->getPDV_PedidoItemDiasEntregaFinal());\n $this->Model->setPDV_PedidoItemQtdEncerrada($oParamDados->getPDV_PedidoItemQtdEncerrada());\n $this->Model->setPDV_PedidoItemContratoSeq($oParamDados->getPDV_PedidoItemContratoSeq());\n $this->Model->setPDV_PedidoItemValorTratamento($oParamDados->getPDV_PedidoItemValorTratamento());\n $this->Model->setPDV_PedidoItemProdutoImportado($oParamDados->getPDV_PedidoItemProdutoImportado());\n $this->Model->setPDV_PedidoItemTabelaFreteKM($oParamDados->getPDV_PedidoItemTabelaFreteKM());\n $this->Model->setPDV_PedidoItemFilialDistancia($oParamDados->getPDV_PedidoItemFilialDistancia());\n $this->Model->setPDV_PedidoItemFreteUnitario($oParamDados->getPDV_PedidoItemFreteUnitario());\n $this->Model->setPDV_PedidoItemSeqOptyWay($oParamDados->getPDV_PedidoItemSeqOptyWay());\n $this->Model->setPDV_PedidoItemDataInclusao($oParamDados->getPDV_PedidoItemDataInclusao());\n $this->Model->setPDV_PedidoItemJustificativa($oParamDados->getPDV_PedidoItemJustificativa());\n $this->Model->setPDV_PedidoItemMotivo($oParamDados->getPDV_PedidoItemMotivo());\n $this->Model->setPDV_PedidoItemValorFreteTabela($oParamDados->getPDV_PedidoItemValorFreteTabela());\n $this->Model->setPDV_PedidoItemAlturaComercial($oParamDados->getPDV_PedidoItemAlturaComercial());\n $this->Model->setPDV_PedidoItemLarguraComercial($oParamDados->getPDV_PedidoItemLarguraComercial());\n $this->Model->setPDV_PedidoItemDescProdComercia($oParamDados->getPDV_PedidoItemDescProdComercia());\n }", "title": "" }, { "docid": "469e68d3b62c094792e416fc780f872b", "score": "0.6299371", "text": "public function updateViagemAction() {\r\n\r\n $ModelViagens = new Admin_Model_Viagens();\r\n $data = $this->_request->getPost();\r\n\r\n if ($this->_request->isPost()) {\r\n /* Se existir é pq é atualização de registro se não é inserção */\r\n if (!empty($data['status']) && $data['status'] == '1' || !empty($data['status']) && $data['status'] == '2') {\r\n $data['id'] = $data['id_viagem'];\r\n } else {\r\n unset($data['data_fechamento']);\r\n }\r\n\r\n unset($data['version_app']);\r\n\r\n if (!empty($data['peso_tara'])) {\r\n $data['peso_tara'] = $this->view->LimpaNumero($data['peso_tara']);\r\n } else {\r\n unset($data['peso_tara']);\r\n }\r\n\r\n if (!empty($data['peso_nota'])) {\r\n $data['peso_nota'] = $this->view->LimpaNumero($data['peso_nota']);\r\n } else {\r\n unset($data['peso_nota']);\r\n }\r\n\r\n if (!empty($data['peso_bruto'])) {\r\n $data['peso_bruto'] = $this->view->LimpaNumero($data['peso_bruto']);\r\n } else {\r\n unset($data['peso_bruto']);\r\n }\r\n\r\n if (!empty($data['km_inicial'])) {\r\n $data['km_inicial'] = $this->view->LimpaNumero($data['km_inicial']);\r\n } else {\r\n unset($data['km_inicial']);\r\n }\r\n\r\n if (!empty($data['km_carga'])) {\r\n $data['km_carga'] = $this->view->LimpaNumero($data['km_carga']);\r\n } else {\r\n unset($data['km_carga']);\r\n }\r\n\r\n if (!empty($data['km_descarga'])) {\r\n $data['km_descarga'] = $this->view->LimpaNumero($data['km_descarga']);\r\n } else {\r\n unset($data['km_descarga']);\r\n }\r\n\r\n if (!empty($data['km_final'])) {\r\n $data['km_final'] = $this->view->LimpaNumero($data['km_final']);\r\n } else {\r\n unset($data['km_final']);\r\n }\r\n\r\n\r\n if (empty($data['local_abertura'])) {\r\n unset($data['local_abertura']);\r\n }\r\n\r\n if (empty($data['local_fechamento'])) {\r\n unset($data['local_fechamento']);\r\n }\r\n\r\n if (empty($data['tipo_pesagem_fechamento'])) {\r\n unset($data['tipo_pesagem_fechamento']);\r\n }\r\n\r\n if (empty($data['pesagem_manual_fim'])) {\r\n unset($data['pesagem_manual_fim']);\r\n }\r\n\r\n if (empty($data['status'])) {\r\n unset($data['status']);\r\n }\r\n\r\n\r\n\r\n if (empty($data['quantidade'])) {\r\n unset($data['quantidade']);\r\n }\r\n\r\n\r\n $data['data_atualizacao_servidor'] = date('Y-m-d H:i:s');\r\n\r\n /* Atualizo os registros os registro no banco de dados */\r\n $ultima_viagem = $ModelViagens->insert($data);\r\n\r\n if ($ultima_viagem) {\r\n $resposta['id'] = $ultima_viagem;\r\n $resposta['msg'] = 'A viagem foi atualizada na base de dados do servidor!';\r\n } else {\r\n $resposta['id'] = '';\r\n $resposta['msg'] = 'Falha ao atualizar a viagem, contate o administrador do sistema!';\r\n }\r\n } else {\r\n $resposta['msg'] = 'Ação não permitida!';\r\n }\r\n\r\n $this->_helper->json($resposta);\r\n }", "title": "" }, { "docid": "328c76063575f3b703415a97c8101892", "score": "0.62860423", "text": "public function actionView($id_poa)\n{\n// var_dump($id_poa);die;\n $model = VswPoa::model()->findByAttributes(array('id_poa' => $id_poa));\n $accion = new Acciones;\n \n if(isset($_POST['VswPoa'])){\n $sql = \"select iduser, id_persona from cruge_user where iduser =\" . Yii::app()->user->id;\n $connection = Yii::app()->db;\n $command = $connection->createCommand($sql);\n $row = $command->queryAll();\n $idUser = $row[0][\"iduser\"];\n $fieldvalue = CrugeFieldValue::model()->findByAttributes(array('iduser' => $idUser, 'idfield' => 0));\n \n $estatus_poa = new EstatusPoa;\n $estatus_poa->fk_estatus_poa = 51;\n $estatus_poa->fk_poa = $id_poa;\n $estatus_poa->fk_status = 21;\n $estatus_poa->created_date = 'now()';\n $estatus_poa->created_by = Yii::app()->user->id;\n $estatus_poa->modified_date = 'now()';\n if ($fieldvalue->value == 7 || $fieldvalue->value == 6 || $fieldvalue->value == 3) {\n $entidad = 8;\n } else {\n $entidad = 9;\n }\n $estatus_poa->fk_tipo_entidad = $entidad;\n if ($estatus_poa->save()) {\n $this->redirect(array('index'));\n } else {\n echo \"<pre>\";\n var_dump($estatus_poa->Errors);\n exit;\n }\n }\n \n $this->render('view',array(\n 'model'=>$model,\n 'id_poa' => $id_poa,\n 'accion' => $accion,\n ));\n}", "title": "" }, { "docid": "29a68542acd8f5b176a63c407bca2622", "score": "0.62822783", "text": "public function upravljanjeJelima() {\n $jela = $this->M_Jelo->dohvatiNepregledanaJela();\n $sastojci = NULL;\n $rest = NULL;\n if ($jela != NULL) {\n foreach ($jela as $jelo) {\n $sastojci[$jelo->IdJelo] = $this->M_Sastojak->dohvatiSastojkeJela($jelo->IdJelo);\n $rest[$jelo->IdJelo] = $this->M_Restoran->dohvatiIme($jelo->IdKorisnik);\n }\n }\n $this->load->view('sablon/headerAdmin.php', ['title' => 'Upravljanje Jelima']);\n $this->load->view('stranice/upravljanjeJelima.php', ['jela' => $jela, 'sastojci' => $sastojci, 'restoran' => $rest]);\n $this->load->view('sablon/footer.php');\n }", "title": "" }, { "docid": "3a7924356a45d0c88f9c5460c35c70e9", "score": "0.62788737", "text": "public function pretraga() {\n //uzme podatak \n $search = $this->input->get('searchBox');\n $data = [];\n $data['jela'] = $this->Jelo->dohvatiJeloIme($search);\n $this->prikazi(\"rezultatipretrage.php\", $data);\n // uradi pretragu \n //poziva metodu prikazi za jela sto je dobio.\n // $this->prikazi(\"jelo stranica\",array rezultata);\n }", "title": "" }, { "docid": "7546c2a8baa3ac9848f8c21f6d48d3ca", "score": "0.6269318", "text": "public function actionMaterialHabis()\n {\n $model = new GUInformasistokbarangV; \n $format = new MyFormatter();\n $model->unsetAttributes(); \n /* $model->jns_periode = \"hari\";\n $model->tgl_awal = date('Y-m-d');\n $model->tgl_akhir = date('Y-m-d');\n $model->bln_awal = date('Y-m');\n $model->bln_akhir = date('Y-m');\n $model->thn_awal = date('Y');\n $model->thn_akhir = date('Y');*/\n if (isset($_GET['GUInformasistokbarangV'])) {\n $model->attributes = $_GET['GUInformasistokbarangV'];\n $model->stok = $_GET['GUInformasistokbarangV']['stok'];\n /*$model->jns_periode = $_GET['GUInformasistokbarangV']['jns_periode'];\n $model->tgl_awal = $format->formatDateTimeForDb($_GET['GUInformasistokbarangV']['tgl_awal']);\n $model->tgl_akhir = $format->formatDateTimeForDb($_GET['GUInformasistokbarangV']['tgl_akhir']);\n $model->bln_awal = $format->formatMonthForDb($_GET['GUInformasistokbarangV']['bln_awal']);\n $model->bln_akhir = $format->formatMonthForDb($_GET['GUInformasistokbarangV']['bln_akhir']);\n $model->thn_awal = $_GET['GUInformasistokbarangV']['thn_awal'];\n $model->thn_akhir = $_GET['GUInformasistokbarangV']['thn_akhir'];\n $bln_akhir = $model->bln_akhir.\"-\".date(\"t\",strtotime($model->bln_akhir));\n $thn_akhir = $model->thn_akhir.\"-\".date(\"m-t\",strtotime($model->thn_akhir.\"-12\"));\n switch($model->jns_periode){\n case 'bulan' : $model->tgl_awal = $model->bln_awal.\"-01\"; $model->tgl_akhir = $bln_akhir; break;\n case 'tahun' : $model->tgl_awal = $model->thn_awal.\"-01-01\"; $model->tgl_akhir = $thn_akhir; break;\n default : null;\n }\n $model->tgl_awal = $model->tgl_awal.\" 00:00:00\";\n $model->tgl_akhir = $model->tgl_akhir.\" 23:59:59\";*/\n }\n $searchdata = $model->searchMaterialHabisGrafik();\n $this->render('materialHabis/admin',array(\n 'model'=>$model,'format'=>$format,'searchdata'=>$searchdata\n ));\n }", "title": "" }, { "docid": "1af28a7aadd54aa9469733eda27f973b", "score": "0.6219932", "text": "public function actionCreate()\n\t{\n\t\t$model = new PdokladFz();\n\n\t\t// Faktury zalohove\n\t\t$fz = array();\n\t\t$fz['id'] = Yii::$app->request->get('fz');\n\n\t\t$faktura_zalohova = FakturyZalohove::findOne($fz['id']);\n\n\t\t$fz['cislo'] = $faktura_zalohova->cislo;\n\t\t$fz['zakaznik'] = Zakazniky::getName($faktura_zalohova->zakazniky_id);\n\t\t$fz['celkem_dph'] = $faktura_zalohova->celkem_dph;\n\n\t\tif ($model->load(Yii::$app->request->post()))\n\t\t{\n\t\t\t$model->vystaveno = date('Y-m-d', strtotime($model->vystaveno));\n\n\t\t\t$save = $model->save();\n\t\t\t\n\t\t\tif ($save)\n\t\t\t{\n\t\t\t\t// 211\n\t\t\t\t$u211 = Ucty::find()->where(['name' => '211'])->one(); // 211\n\t\t\t\t$suma211 = $u211->suma;\n\t\t\t\t$castka = $model->castka;\n\t\t\t\t$u211->suma = floatval($suma211 + $castka);\n\t\t\t\t$u211->update();\n\t\t\t\t\n\t\t\t\t// 324\n\t\t\t\t$u324 = Ucty::find()->where(['name' => '324'])->one();\n\t\t\t\t$suma324 = $u324->suma;\n\t\t\t\t$castka = $model->castka;\n\t\t\t\t$u324->suma = floatval($suma324 + $castka);\n\t\t\t\t$u324->update();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// cislo\n\t\t\t\t$cislo = \"PDFZ-\" . $model->id;\n\t\t\t\t$nb = PdokladFz::findOne($model->id);\n\t\t\t\t$nb->cislo = $cislo;\n\t\t\t\t$nb->update();\n\n\t\t\t\t// Log\n\t\t\t\t$addLog = Log::addLog(\"Přidal pokladní doklad\", $model->id);\n\t\t\t\tYii::$app->session->setFlash('success', \"Pokladní doklad přidan úspěšně\");\n\t\t\t}\n\n\t\t\treturn $this->redirect(['index']);\n\t\t} \n\t\telse\n\t\t{\n\t\t\treturn $this->render('create', [\n\t\t\t\t\t'model' => $model,\n\t\t\t\t\t'fz' => $fz,\n\t\t\t]);\n\t\t}\n\t}", "title": "" }, { "docid": "c4a76738579e8dcad499f5ce91c722a1", "score": "0.62197495", "text": "public function prijavi()\n {\n $res=\"\";\n $prijavaModel=new PrijavaModel(); \n $idk=$_SESSION['id'];\n $id=$_GET['id'];\n \n $receptiModel = new ReceptiModel();\n $recept = $receptiModel->dohvati_recept_po_id_recepta($id);\n \n if($recept->autor!=$idk) {\n \n $prijava = ['idK' => $idk, 'idR' => $id];\n\n $provera=null;\n $provera=$prijavaModel->provera_prijavljeno($id, $idk);\n \n \n if($provera==null){\n \n $prijavaModel->insert($prijava);\n } \n else{ \n $response_array='recept je vec prijavljen';\n echo json_encode($response_array);\n $res=\"ok\"; \n }\n }\n else {\n $response_array='ne mozete prijaviti svoj recept';\n echo json_encode($response_array);\n $res=\"ok\"; \n }\n \n \n if($res==\"\"){\n $response_array='recept je prijavljen';\n echo json_encode($response_array);\n }\n \n // $this->prikaz_stranice(); \n }", "title": "" }, { "docid": "c26af7d6cfe9fb4e44dcdacf50f9c582", "score": "0.617484", "text": "public function principal(){\n\t\t$objeto = new modelo();\n\t\t$data[\"titulo\"] = \"Inicio\";\n\t\t$data[\"objeto\"] = $objeto->getDocentes();\n\n\t\t//mandando información del modelo a la vista\n\t\trequire_once \"vista/bienvenidaPrueba.php\";\n\t}", "title": "" }, { "docid": "9ef5f4f9e44c290a7f57d390096897fb", "score": "0.61480445", "text": "private function obj($new = true)\n {\n //$arrayInt = array('raza', 'cliente');\n //$rta = $this->validarArrays($arrayTexto,$arrayInt);\n /*if($rta){\n Session::set('error','Falto digitar o seleccionar <b>'.$rta.'</b>');\n $this->redireccionar($this->_presentRequest->getUrl());\n exit; \n }*/\n\n $this->_model->getInstance()->setFecha(new \\DateTime($this->getFecha($this->getTexto('fecha'))));\n $this->_model->getInstance()->setObservaciones($this->getTexto('observacion'));\n $this->_model->getInstance()->setTipo($this->getInt('tipo'));\n if($this->getInt('tipo') == 2){\n $this->_model->getInstance()->setFrecuencia($this->_frecuencia->get(1)); \n }else{\n $this->_model->getInstance()->setFrecuencia($this->_frecuencia->get($this->getInt('frecuencia')));\n }\n $this->_model->getInstance()->setFrecuencia($this->_frecuencia->get($this->getInt('frecuencia')));\n $this->_model->getInstance()->setRevisor($this->getTexto('revisor'));\n $this->_model->getInstance()->setConductor($this->getTexto('conductor'));\n $this->_model->getInstance()->setVehiculo($this->_vehiculo->get($this->getInt('vehiculo')));\n \n if($this->getInt('tipo') == 2){\n $this->_model->getInstance()->setFalla($this->getTexto('falla'));\n $this->_model->getInstance()->setReparacion($this->getTexto('reparacion'));\n $this->_model->save();\n }else{\n $temp = $this->_itemfrecuencia->findBy(array('frecuencia' => $this->getInt(\"frecuencia\")));\n $this->_model->save();\n foreach ($temp as $key => $value) {\n $this->_itemmantenimientoprev = $this->loadModel('itemmantenimientoprev');\n $this->_itemmantenimientoprev->getInstance()->setMantenimiento($this->_model->getInstance()); \n $this->_itemmantenimientoprev->getInstance()->setItemFrecuencia($this->_itemfrecuencia->get($value->getId())); \n $valor = \"radio\".$value->getId();\n // echo $valor;\n $this->_itemmantenimientoprev->getInstance()->setEstado($this->getPostParam($valor));\n //exit;\n //var_dump($this->_itemmantenimientoprev->getInstance());\n //exit;\n $this->_itemmantenimientoprev->save();\n }\n }\n\n if($new){\n Session::set('mensaje','Registro Creado con Exito.');\n }else{\n $this->_model->update(); \n Session::set('mensaje','Registro Actualizado con Exito.');\n }\n\n $this->redireccionar($this->_presentRequest->getControlador().'/');\n }", "title": "" }, { "docid": "eb09d3fcedf0126499fa8efd2ca3118e", "score": "0.613351", "text": "public function atras_vista_previa() \r\n\t{\r\n\t\t$Usuario = $this->session->userdata('Usuario');\r\n\t\t$usuario['Usuario'] = $Usuario;\r\n\t\t$Negociacion = $_POST['Negociacion'];\r\n\t\t$usuario['Id_Negociacion'] = $_POST['Negociacion'];\r\n\t\t$status = $_POST['Status'];\r\n\t\t$porcentaje = $this->modelNegociacion->PorcentajeNegociacion($Negociacion); \r\n\t\r\n\t\tif(($status == \"Perdida\") || ($status == \"Cerrada\") || ($status == \"Ganada\"))\r\n\t\t{\r\n\t\t\t$usuario['Porcentaje'] = $porcentaje;\r\n\t\t\t$usuario['Status'] = $_POST['Status'];\r\n\t\t\t$usuario['FechaP'] = $this->modelNegociacion->FechaPresupuesto($Negociacion);\r\n\t\t\t$usuario['NumeroODC'] = $this->modelNegociacion->NumeroOrdenDC($Negociacion);\r\n\t\t\t$usuario['FechaODC'] = $this->modelNegociacion->FechaOrdenDC($Negociacion);\r\n\t\t\t$usuario['Banco'] = $this->modelNegociacion->Banco($Negociacion);\r\n\t\t\t$usuario['PagoInicial'] = $this->modelNegociacion->PagoInicial($Negociacion);\r\n\t\t\t$usuario['CondicionesPago'] = $this->modelNegociacion->CondicionesPago($Negociacion);\r\n\t\t\t$usuario['FechaPago'] = $this->modelNegociacion->FechaDePago($Negociacion);\r\n\t\t\t$usuario['NDeposito'] = $this->modelNegociacion->NumeroDeposito($Negociacion);\r\n\t\t\t\t\r\n\t\t\t$usuario['Id'] = $_POST['idcliente'];\r\n\t\t\t$cliente = $_POST['idcliente'];\r\n\t\t\t$usuario['NombreC'] = $this->modelNegociacion->NombreCliente($cliente);\r\n\t\t\t$usuario['ApellidoC'] = $this->modelNegociacion->ApellidoCliente($cliente);\r\n\t\t\t$usuario['EMailC'] = $this->modelNegociacion->MailCliente($cliente);\r\n\t\t\t$usuario['TelefonoC'] = $this->modelNegociacion->TelefonoCliente($cliente);\r\n\t\t\t\t\r\n\t\t\t$usuario['Marca'] = $this->modelProducto->MarcaProducto();\r\n\t\t\t$usuario['Lista'] = $this->modelProducto->ConsultarListaA($Negociacion);\r\n\t\t\t\t\r\n\t\t\t$this->load->view('Vendedor/Cerrada/VConsultaCerrada', $usuario);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$usuario['Porcentaje'] = $porcentaje;\r\n\t\t\t$usuario['Status'] = $_POST['Status'];\r\n\t\t\t$usuario['FechaP'] = $this->modelNegociacion->FechaPresupuesto($Negociacion);\r\n\t\t\t$usuario['NumeroODC'] = $this->modelNegociacion->NumeroOrdenDC($Negociacion);\r\n\t\t\t$usuario['FechaODC'] = $this->modelNegociacion->FechaOrdenDC($Negociacion);\r\n\t\t\t$usuario['Banco'] = $this->modelNegociacion->Banco($Negociacion);\r\n\t\t\t$usuario['PagoInicial'] = $this->modelNegociacion->PagoInicial($Negociacion);\r\n\t\t\t$usuario['CondicionesPago'] = $this->modelNegociacion->CondicionesPago($Negociacion);\r\n\t\t\t$usuario['FechaPago'] = $this->modelNegociacion->FechaDePago($Negociacion);\r\n\t\t\t$usuario['NDeposito'] = $this->modelNegociacion->NumeroDeposito($Negociacion);\r\n\t\t\t\r\n\t\t\t$usuario['Id'] = $_POST['idcliente'];\r\n\t\t\t$cliente = $_POST['idcliente'];\r\n\t\t\t$usuario['NombreC'] = $this->modelNegociacion->NombreCliente($cliente);\r\n\t\t\t$usuario['ApellidoC'] = $this->modelNegociacion->ApellidoCliente($cliente);\r\n\t\t\t$usuario['EMailC'] = $this->modelNegociacion->MailCliente($cliente);\r\n\t\t\t$usuario['TelefonoC'] = $this->modelNegociacion->TelefonoCliente($cliente);\r\n\t\t\t\t\r\n\t\t\t$usuario['Marca'] = $this->modelProducto->MarcaProducto();\r\n\t\t\t$usuario['Lista'] = $this->modelProducto->ConsultarListaA($Negociacion);\r\n\t\t\t\r\n\t\t\t$this->load->view('Despachador/Borrador/DConsultarBorrador', $usuario);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f84850e0868bcfddc2fa4574dcd935fd", "score": "0.6126112", "text": "function __construct(){\n\t\t\t$this->model = new model(); //variabel model merupakan objek baru yang dibuat dari class model\n\t\t}", "title": "" }, { "docid": "03fa9c34ba11d83ea20acc437a210ec1", "score": "0.61254466", "text": "public function actionCreate()\n {\n $model = new DlistPrijaty();\n\t\t\n\t\t// Objednavky\n\t\t$obj = array();\n\t\t$obj['id'] = Yii::$app->request->get('ido');\n\t\t\n\t\tif($obj['id'] > 0)\n\t\t{\n\t\t\t$objednavky = Objednavky::findOne($obj['id']);\n\t\t\t$obj['popis'] = $objednavky->popis;\n\t\t\t$obj['vystaveno'] = $objednavky->vystaveno;\n\t\t\t$obj['platnost'] = $objednavky->platnost;\n\t\t\t$obj['zpusoby_platby_id'] = $objednavky->zpusoby_platby_id;\n\t\t\t$obj['zakazniky_id'] = $objednavky->zakazniky_id;\n\t\t}\n\t\t\n if ($model->load(Yii::$app->request->post())) \n\t\t{\n\t\t\t$model->vystaveno = date('Y-m-d', strtotime($model->vystaveno));\n\t\t\t$model->platnost = date('Y-m-d', strtotime($model->platnost));\n\t\t\t\n\t\t\tif (!$model->objednavky_id)\n\t\t\t{\n\t\t\t\t$model->objednavky_id = 0;\n\t\t\t}\n\t\t\t\n\t\t\t$model->save();\n\t\t\t\n\t\t\t// cislo\n\t\t\t$cislo = \"DLP-\" . $model->id;\n\t\t\t$nb = DlistPrijaty::findOne($model->id);\n\t\t\t$nb->cislo = $cislo;\n\t\t\t$nb->update();\n\t\t\t\n\t\t\t$dlist_prijaty_id = $model->id;\n\t\t\t$count_polozka = Yii::$app->request->post('count_polozka');\t\n\n\t\t\tfor($i=1; $i <= $count_polozka; $i++)\n\t\t\t{\n\t\t\t\t$seznam_id = Yii::$app->request->post('idpolozka' . $i);\n\n\t\t\t\t$pocet = Yii::$app->request->post('pocet' . $i); \n\t\t\t\t$cena = Yii::$app->request->post('cena' . $i); \n\t\t\t\t$typ_ceny = Yii::$app->request->post('typ_ceny' . $i);;\n\t\t\t\t$sazba_dph = Yii::$app->request->post('sazba_dph' . $i);\n\t\t\t\t$sleva = Yii::$app->request->post('sleva' . $i);\n\t\t\t\t$celkem = Yii::$app->request->post('celkem' . $i);\n\t\t\t\t$celkem_dph = Yii::$app->request->post('celkem_dph' . $i);\n\t\t\t\t$vcetne_dph = Yii::$app->request->post('vcetne_dph' . $i);\n\t\t\t\t\n\t\t\t\tif($obj['id'] > 0)\n\t\t\t\t{\n\t\t\t\t\t$prijelo = Yii::$app->request->post('prijelo' . $i);\n\t\t\t\t\n\t\t\t\t\t$objednavka = ObjednavkySeznam::find()->where(['objednavky_id' => $obj['id']])->andWhere(['seznam_id' => $seznam_id])->one();\n\t\t\t\t\t$prijato_old = $objednavka->prijato;\n\t\t\t\t\t\n\t\t\t\t\t$prijato_new = intval($prijato_old + $prijelo);\n\t\t\t\t\t$objednavka->prijato = $prijato_new;\n\t\t\t\t\t$objednavka->update();\n\t\t\t\t\t\n\t\t\t\t\tif (isset($prijelo))\n\t\t\t\t\t{\n\t\t\t\t\t\t$pocet = $prijelo;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ($seznam_id > 0 && $dlist_prijaty_id > 0)\n\t\t\t\t{\n\t\t\t\t\t$dlistPrijatySeznam_id = DlistPrijatySeznam::addDlistPrijatySeznam($dlist_prijaty_id, $seznam_id, $pocet, $cena, $typ_ceny, $sazba_dph, $sleva, $celkem, $celkem_dph, $vcetne_dph);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ($dlistPrijatySeznam_id > 0)\n\t\t\t\t{\n\t\t\t\t\t// Seznam - pocet\n\t\t\t\t\tif ($seznam_id > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$sz = Seznam::findOne($seznam_id);\n\t\t\t\t\t\t$stav_old = $sz['stav'];\n\t\t\t\t\t\t$objednano_old = $sz['objednano'];\n\t\t\t\t\t\t$rezerva_old = $sz['rezerva'];\n\t\t\t\t\t\t//$predpoklad_stav_old = $sz['predpoklad_stav'];\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($prijelo > 0) // s objednavky\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$objednano_new = intval($objednano_old - $pocet);\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$objednano_new = $objednano_old;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$stav_new = intval($stav_old + $pocet);\n\t\t\t\t\t\t$predpoklad_stav_new = intval($stav_new + $objednano_new - $rezerva_old);\n\n\t\t\t\t\t\t$sz->stav = $stav_new;\n\t\t\t\t\t\t$sz->objednano = $objednano_new;\n\t\t\t\t\t\t$sz->predpoklad_stav = $predpoklad_stav_new;\n\t\t\t\t\t\t$sz->update();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Rezervace\n\t\t\t\t/*\n\t\t\t\t$sz = Seznam::findOne($seznam_id);\n\t\t\t\t$stav_old = $sz['stav'];\n\t\t\t\t$predpoklad_stav_old = $sz['predpoklad_stav'];\n\t\t\t\t\n\t\t\t\t$stav_new = intval($stav_old + $pocet);\n\t\t\t\t$predpoklad_stav_new = intval($predpoklad_stav_old + $pocet);\n\t\t\t\t\n\t\t\t\t$seznam = Seznam::findOne($seznam_id);\n\t\t\t\t$seznam->stav = $stav_new;\n\t\t\t\t$seznam->predpoklad_stav = $predpoklad_stav_new;\n\t\t\t\t$seznam->update();\n\t\t\t\t * \n\t\t\t\t */\n\t\t\t}\n\t\t\t\n\t\t\t// Log\n\t\t\t$addLog = Log::addLog(\"Přidal fakturu\", $model->id);\n\t\t\tYii::$app->session->setFlash('success', \"Dodací list přidan úspěšně\");\n\n //return $this->redirect(['view', 'id' => $model->id]);\n\t\t\treturn $this->redirect(['index']);\n } \n\t\telse\n\t\t{\n return $this->render('create', [\n 'model' => $model,\n\t\t\t\t'obj' => $obj,\n ]);\n }\n }", "title": "" }, { "docid": "637baf1b35ed75fa7615dd16a7f62c9f", "score": "0.61217904", "text": "public function antiques() {\n $antiqueModel = new \\App\\Models\\AntiqueModel($this->getDatabaseConnection());\n $antiques = $antiqueModel->getAll(); //naznaciti koji su \"sakriveni\" - dugme za \"OMOGUCI\"\n //ovaj niz se pod istoimenim kljucem asocijativnog niza prosledjuje adekvatnom view-u -> views/Main/home.php, ali preko dispecera index.php\n $this->set('antiques', $antiques); //metod klase Controller.php koji ima implementiranu proveru ispravnosti kljuca pod kojim se upisuju podaci\n }", "title": "" }, { "docid": "515d6a5cee37f632860d32e264174c9d", "score": "0.6111326", "text": "public function insertViagemAction() {\r\n\r\n $ModelViagens = new Admin_Model_Viagens();\r\n $data = $this->_request->getPost();\r\n\r\n if ($this->_request->isPost()) {\r\n if (!empty($data['peso_tara'])) {\r\n $data['peso_tara'] = $this->view->LimpaNumero($data['peso_tara']);\r\n } else {\r\n unset($data['peso_tara']);\r\n }\r\n\r\n if (!empty($data['peso_nota'])) {\r\n $data['peso_nota'] = $this->view->LimpaNumero($data['peso_nota']);\r\n } else {\r\n unset($data['peso_nota']);\r\n }\r\n\r\n if (!empty($data['peso_bruto'])) {\r\n $data['peso_bruto'] = $this->view->LimpaNumero($data['peso_bruto']);\r\n } else {\r\n unset($data['peso_bruto']);\r\n }\r\n\r\n if (!empty($data['km_inicial'])) {\r\n $data['km_inicial'] = $this->view->LimpaNumero($data['km_inicial']);\r\n } else {\r\n unset($data['km_inicial']);\r\n }\r\n\r\n if (!empty($data['km_carga'])) {\r\n $data['km_carga'] = $this->view->LimpaNumero($data['km_carga']);\r\n } else {\r\n unset($data['km_carga']);\r\n }\r\n\r\n if (!empty($data['km_descarga'])) {\r\n $data['km_descarga'] = $this->view->LimpaNumero($data['km_descarga']);\r\n } else {\r\n unset($data['km_descarga']);\r\n }\r\n\r\n\r\n if (!empty($data['km_final'])) {\r\n $data['km_final'] = $this->view->LimpaNumero($data['km_final']);\r\n } else {\r\n unset($data['km_final']);\r\n }\r\n\r\n\r\n if (empty($data['local_abertura'])) {\r\n unset($data['local_abertura']);\r\n }\r\n\r\n if (empty($data['local_fechamento'])) {\r\n unset($data['local_fechamento']);\r\n }\r\n\r\n if (empty($data['tipo_pesagem_fechamento'])) {\r\n unset($data['tipo_pesagem_fechamento']);\r\n }\r\n\r\n if (empty($data['pesagem_manual_fim'])) {\r\n unset($data['pesagem_manual_fim']);\r\n }\r\n\r\n if (empty($data['status'])) {\r\n unset($data['status']);\r\n }\r\n\r\n\r\n\r\n if (empty($data['quantidade'])) {\r\n unset($data['quantidade']);\r\n }\r\n\r\n if (empty($data['data_fechamento'])) {\r\n unset($data['data_fechamento']);\r\n }\r\n\r\n\r\n $data['data_inserido_servidor'] = date('Y-m-d H:i:s');\r\n\r\n\r\n /* insiro os registro no banco de dados */\r\n $ultima_viagem = $ModelViagens->insert($data);\r\n\r\n\r\n if (is_numeric($ultima_viagem)) {\r\n $resposta['id'] = $ultima_viagem;\r\n $resposta['msg'] = 'A viagem foi enviada para a base de dados do servidor!';\r\n } else {\r\n $resposta['msg'] = 'Falha ao inserir a viagem, contate o administrador do sistema!';\r\n }\r\n } else {\r\n $resposta['msg'] = 'Ação não permitida!';\r\n }\r\n\r\n $this->_helper->json($resposta);\r\n }", "title": "" }, { "docid": "ba76c3089710f78ea890d636243e7eb4", "score": "0.6106922", "text": "public function recapmodifvolAction() \r\n {\r\n if (Services_verifAcces('Planning')) {\r\n $this->_helper->actionStack('header', 'index', 'default', array('head' => $this->headStyleScript));\r\n $idVol = $this->_getParam('idVol', null);\r\n\r\n if ($idVol != null) {\r\n $tableVol = new Table_Vol();\r\n $InfosVol = $tableVol->get_InfosVol($idVol);\r\n //Zend_Debug::dump($infosVol);exit;\r\n $modeleAvion = $this->_getParam('modele_avion', null);\r\n $avion = $this->_getParam('avion', null);\r\n $pilote = $this->_getParam('pilote', null);\r\n $copilote = $this->_getParam('copilote', null);\r\n\r\n $dateDepartSQL = $InfosVol['dateHeureDepartPrevueVol'];\r\n $dateArriveeSQL = $InfosVol['dateHeureArriveePrevueVol'];\r\n $InfosVol['dateHeureDepartPrevueVol'] = new Zend_Date($InfosVol['dateHeureDepartPrevueVol']);\r\n $InfosVol['dateHeureArriveePrevueVol'] = new Zend_Date($InfosVol['dateHeureArriveePrevueVol']);\r\n\r\n $tableModele = new Table_ModeleAvion();\r\n $tablePilote = new Table_Pilote();\r\n $tableClasse = new Table_Classe();\r\n\r\n //Vérifications\r\n $LstModeleDepartSQL = $tableModele->get_NomModeles_PourAeroport($InfosVol['trigrammeAeDepart']);\r\n $LstModeleArriveeSQL = $tableModele->get_NomModeles_PourAeroport($InfosVol['trigrammeAeArrivee']);\r\n\r\n foreach ($LstModeleDepartSQL as $val) {\r\n $LstModeleDepart[$val['idModeleAvion']] = $val['libelleModeleAvion'];\r\n }\r\n foreach ($LstModeleArriveeSQL as $val) {\r\n $LstModeleArrivee[$val['idModeleAvion']] = $val['libelleModeleAvion'];\r\n }\r\n\r\n $LstModele = array_uintersect($LstModeleDepart, $LstModeleArrivee, 'strcasecmp');\r\n $LstAvionDispo = $this->lstavionAction($modeleAvion, $dateDepartSQL, $dateArriveeSQL);\r\n $LstPiloteDispo = $this->lstpiloteAction($modeleAvion, $dateDepartSQL, $dateArriveeSQL, -1);\r\n $LstClasses = $tableClasse->get_LstClasses_PourModele($modeleAvion);\r\n\r\n $classesOk = true;\r\n foreach ($LstClasses as $key => $val) {\r\n $LstClasses[$key]['value'] = $value = $this->_getParam('class_'.$val['idClasse'], null);\r\n if ($value == null) {\r\n $classesOk = false;\r\n }\r\n }\r\n if (in_array($modeleAvion, $LstModele) AND in_array($avion, $LstAvionDispo) AND in_array($pilote, $LstPiloteDispo) AND in_array($copilote, $LstPiloteDispo) AND ($pilote != $copilote) AND ($classesOk != false) ) {\r\n header('Location: /planning/planifiervol/idVol/'.$idVol);\r\n }\r\n\r\n //Récapitulatif\r\n $infosModele = $tableModele->get_libelle($modeleAvion);\r\n $infosPilote = $tablePilote->get_NomPrenom($pilote);\r\n $infosCoPilote = $tablePilote->get_NomPrenom($copilote);\r\n\r\n $this->view->InfosVol = $InfosVol;\r\n\r\n $this->view->modeleAvion = $infosModele;\r\n $this->view->avion = $avion;\r\n $this->view->pilote = $infosPilote['nomPilote'].' '.$infosPilote['prenomPilote'];\r\n $this->view->copilote = $infosCoPilote['nomPilote'].' '.$infosCoPilote['prenomPilote'];\r\n\r\n $this->view->idModele = $modeleAvion;\r\n $this->view->idPilote = $pilote;\r\n $this->view->idCoPilote = $copilote;\r\n $this->view->lstClasses = $LstClasses;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "d97273a99c0e0e3df61d0922b7f1a7dc", "score": "0.61059135", "text": "public function prikaz_rezultata() {\n require_once 'views/oglasi/forma_pretraga.php';\n }", "title": "" }, { "docid": "07ae18d3cc17fbf39a35d4d9b4649dac", "score": "0.61015874", "text": "public function getAdd() { \n //NAPOMENA: treba da dopremi VIDLJIVE(NESAKRIVENE) kategorije, kako bi admin mogao da odabere BAR jednu postojecu\n $categoryModel = new \\App\\Models\\CategoryModel($this->getDatabaseConnection());\n $visibleCategories = $categoryModel->getAllVisible();\n $this->set('categories', $visibleCategories);\n //NAPOMENA: treba da dopremi i sve drzave da bi admin mogao da bira jednu\n $countryOfOriginModel = new \\App\\Models\\CountryOfOriginModel($this->getDatabaseConnection());\n $countries = $countryOfOriginModel->getAll();\n $this->set('countries', $countries);\n }", "title": "" }, { "docid": "a02455da0fb112816fe60926fa98eae5", "score": "0.6101416", "text": "public function atras_vista_previa2() \r\n\t{\r\n\t\t$Usuario = $this->session->userdata('Usuario');\r\n\t\t$usuario['Usuario'] = $Usuario;\r\n\t\t$Negociacion = $_POST['Negociacion'];\r\n\t\t$usuario['Id_Negociacion'] = $_POST['Negociacion'];\r\n\t\t$status = $_POST['Status'];\r\n\t\t$porcentaje = $this->modelNegociacion->PorcentajeNegociacion($Negociacion); \r\n\t\r\n\t\tif(($status == \"Perdida\") || ($status == \"Cerrada\") || ($status == \"Ganada\"))\r\n\t\t{\r\n\t\t\t$usuario['Porcentaje'] = $porcentaje;\r\n\t\t\t$usuario['Status'] = $_POST['Status'];\r\n\t\t\t$usuario['FechaP'] = $this->modelNegociacion->FechaPresupuesto($Negociacion);\r\n\t\t\t$usuario['NumeroODC'] = $this->modelNegociacion->NumeroOrdenDC($Negociacion);\r\n\t\t\t$usuario['FechaODC'] = $this->modelNegociacion->FechaOrdenDC($Negociacion);\r\n\t\t\t$usuario['Banco'] = $this->modelNegociacion->Banco($Negociacion);\r\n\t\t\t$usuario['PagoInicial'] = $this->modelNegociacion->PagoInicial($Negociacion);\r\n\t\t\t$usuario['CondicionesPago'] = $this->modelNegociacion->CondicionesPago($Negociacion);\r\n\t\t\t$usuario['FechaPago'] = $this->modelNegociacion->FechaDePago($Negociacion);\r\n\t\t\t$usuario['NDeposito'] = $this->modelNegociacion->NumeroDeposito($Negociacion);\r\n\t\t\t\t\r\n\t\t\t$usuario['Id'] = $_POST['idcliente'];\r\n\t\t\t$cliente = $_POST['idcliente'];\r\n\t\t\t$usuario['NombreC'] = $this->modelNegociacion->NombreCliente($cliente);\r\n\t\t\t$usuario['ApellidoC'] = $this->modelNegociacion->ApellidoCliente($cliente);\r\n\t\t\t$usuario['EMailC'] = $this->modelNegociacion->MailCliente($cliente);\r\n\t\t\t$usuario['TelefonoC'] = $this->modelNegociacion->TelefonoCliente($cliente);\r\n\t\t\t\t\r\n\t\t\t$usuario['Lista2'] = $this->modelProducto->DConsultarAcce();\r\n\t\t\t$usuario['Lista'] = $this->modelProducto->ConsultarListaA($Negociacion);\r\n\t\t\t\t\r\n\t\t\t$this->load->view('Despachador/Cerrada/DConsultaCerrada', $usuario);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$usuario['Porcentaje'] = $porcentaje;\r\n\t\t\t$usuario['Status'] = $_POST['Status'];\r\n\t\t\t$usuario['FechaP'] = $this->modelNegociacion->FechaPresupuesto($Negociacion);\r\n\t\t\t$usuario['NumeroODC'] = $this->modelNegociacion->NumeroOrdenDC($Negociacion);\r\n\t\t\t$usuario['FechaODC'] = $this->modelNegociacion->FechaOrdenDC($Negociacion);\r\n\t\t\t$usuario['Banco'] = $this->modelNegociacion->Banco($Negociacion);\r\n\t\t\t$usuario['PagoInicial'] = $this->modelNegociacion->PagoInicial($Negociacion);\r\n\t\t\t$usuario['CondicionesPago'] = $this->modelNegociacion->CondicionesPago($Negociacion);\r\n\t\t\t$usuario['FechaPago'] = $this->modelNegociacion->FechaDePago($Negociacion);\r\n\t\t\t$usuario['NDeposito'] = $this->modelNegociacion->NumeroDeposito($Negociacion);\r\n\t\t\t\r\n\t\t\t$usuario['Id'] = $_POST['idcliente'];\r\n\t\t\t$cliente = $_POST['idcliente'];\r\n\t\t\t$usuario['NombreC'] = $this->modelNegociacion->NombreCliente($cliente);\r\n\t\t\t$usuario['ApellidoC'] = $this->modelNegociacion->ApellidoCliente($cliente);\r\n\t\t\t$usuario['EMailC'] = $this->modelNegociacion->MailCliente($cliente);\r\n\t\t\t$usuario['TelefonoC'] = $this->modelNegociacion->TelefonoCliente($cliente);\r\n\t\t\t\t\r\n\t\t\t$usuario['Lista'] = $this->modelProducto->ConsultarListaB($Negociacion);\r\n\t\t\t$usuario['Lista2'] = $this->modelProducto->DConsultarAcce();\r\n\t\t\t\r\n\t\t\t$this->load->view('Despachador/Borrador/DConsultarBorrador2', $usuario);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "c095b5fb4dc8f32f0167f353594f9043", "score": "0.6099968", "text": "function miguel_MMain() \r\n {\t\r\n\t\t$this->base_Model();\r\n }", "title": "" }, { "docid": "8b86c6b03ae28b43f03a944ab38b9dcc", "score": "0.60950196", "text": "public function actionAplicar_a ($id)\n {\n\n $model = Rubro::model()->findByPk($id);\n // +++ APLICAR A USUARIO\n $model_asignar_detalle = new Detalle();\n\n if (isset($_POST['Detalle'])) {\n $model_asignar_detalle->attributes = $_POST['Detalle'];\n\n // EN ID_FACTURA .- Es el Codigo de socio\n $socio = $model_asignar_detalle->ID_FACTURA;\n //BUSCAR EL RECIBO DADO EL CODIGO DEL USUARIO\n // $connection = Yii::app()->db;\n if ($model->TIPO == 1) //FACTURA\n { $model_factura = Factura::model()->findAllBySql(\"CALL `buscar_factura_x_socio`(\".$socio.\", 1)\"); }\n else\n { $model_factura = Factura::model()->findAllBySql(\"CALL `buscar_factura_x_socio`(\".$socio.\", 2)\"); };\n foreach ($model_factura as $factura)\n {\n $codigo_recibo = $factura->ID;\n }\n if(isset($codigo_recibo) and $codigo_recibo>0)\n {\n $model_asignar_detalle->ID_FACTURA = $codigo_recibo;\n $model_asignar_detalle->ID_RUBRO = $model->ID;\n if($model_asignar_detalle->CANTIDAD>0)\n {}\n else\n {\n $model_asignar_detalle->CANTIDAD = 1;\n }\n if($model_asignar_detalle->V_UNITARIO>0)\n {}\n else\n {\n $model_asignar_detalle->V_UNITARIO = $model->V_UNITARIO;\n }\n $model_asignar_detalle->V_TOTAL = $model_asignar_detalle->CANTIDAD * $model_asignar_detalle->V_UNITARIO;\n $model_asignar_detalle->ESTADO=0;\n\n if ($model_asignar_detalle->save()) {\n $model_asignar_detalle = new Detalle();\n $this->redirect(array('aplicar_a', 'id' => $id));\n } \n }\n else\n {\n $mensajeError = \"<h2>El usuario no tiene deuda pendiente, comuniquese con el administrador</h2>\";\n Yii::app()->user->setFlash('error',$mensajeError);\n $this->redirect(array('aplicar_a', 'id' => $id)); \n }\n }\n // +++ FIN APLICAR A USUARIO\n\n\n //DETALLES \n $model_detalles = Detalle::model()->findAllBySQL('SELECT *\n FROM `detalle`\n WHERE ID_RUBRO = '.$id.'\n GROUP BY ID_FACTURA');\n\n $this->render('aplicar_a', array(\n 'model' => $model,\n 'model_detalles' => $model_detalles,\n 'model_asignar_detalle' => $model_asignar_detalle\n ));\n\n }", "title": "" }, { "docid": "442fbe65f1e440dd2d7708737f1a2458", "score": "0.6094522", "text": "function __construct() {\n\t //llamo al contructor de Controller.php\n\t parent::__construct();\n\n\t //instancio el modelo\n $this->modelo(array('peliculas','ediciones'));\n\n\n\t}", "title": "" }, { "docid": "d7d6860ad12e2f75e12c2147f6f4589d", "score": "0.60923296", "text": "public function actionMaterialRusak()\n {\n $model = new GUInfoinventarisasibarangV; \n $format = new MyFormatter();\n $model->unsetAttributes();\n $model->jns_periode = \"hari\";\n $model->tgl_awal = date('Y-m-d');\n $model->tgl_akhir = date('Y-m-d');\n $model->bln_awal = date('Y-m');\n $model->bln_akhir = date('Y-m');\n $model->thn_awal = date('Y');\n $model->thn_akhir = date('Y');\n if (isset($_GET['GUInfoinventarisasibarangV'])) {\n $model->attributes = $_GET['GUInfoinventarisasibarangV'];\n $model->jns_periode = $_GET['GUInfoinventarisasibarangV']['jns_periode'];\n $model->tgl_awal = $format->formatDateTimeForDb($_GET['GUInfoinventarisasibarangV']['tgl_awal']);\n $model->tgl_akhir = $format->formatDateTimeForDb($_GET['GUInfoinventarisasibarangV']['tgl_akhir']);\n $model->bln_awal = $format->formatMonthForDb($_GET['GUInfoinventarisasibarangV']['bln_awal']);\n $model->bln_akhir = $format->formatMonthForDb($_GET['GUInfoinventarisasibarangV']['bln_akhir']);\n $model->thn_awal = $_GET['GUInfoinventarisasibarangV']['thn_awal'];\n $model->thn_akhir = $_GET['GUInfoinventarisasibarangV']['thn_akhir'];\n $bln_akhir = $model->bln_akhir.\"-\".date(\"t\",strtotime($model->bln_akhir));\n $thn_akhir = $model->thn_akhir.\"-\".date(\"m-t\",strtotime($model->thn_akhir.\"-12\"));\n switch($model->jns_periode){\n case 'bulan' : $model->tgl_awal = $model->bln_awal.\"-01\"; $model->tgl_akhir = $bln_akhir; break;\n case 'tahun' : $model->tgl_awal = $model->thn_awal.\"-01-01\"; $model->tgl_akhir = $thn_akhir; break;\n default : null;\n }\n $model->tgl_awal = $model->tgl_awal.\" 00:00:00\";\n $model->tgl_akhir = $model->tgl_akhir.\" 23:59:59\";\n }\n $searchdata = $model->searchMaterialRusakGrafik();\n $this->render('materialRusak/admin',array(\n 'model'=>$model,'format'=>$format,'searchdata'=>$searchdata\n ));\n }", "title": "" }, { "docid": "0fb88a2f609068c324a99d80cc51ce4c", "score": "0.6089534", "text": "public function actionOdgovor($id)\n {\n if(Yii::$app->user->can('ucitelj') || Yii::$app->user->can('roditelj')){\n $rola = Yii::$app->user->identity->role;\n $model = new Poruke();\n $ucitelj_id = Ucitelj::find()->select('id_ucitelj')->where(['user_id' => Yii::$app->user->id ])->one();\n $roditelj_id = Roditelj::find()->select('id_roditelj')->where(['user_id' => Yii::$app->user->id ])->one();\n if ($model->load(Yii::$app->request->post())) {\n if($rola == 4){\n $model->roditelj_id = $id;\n $model->ucitelj_id = $ucitelj_id->id_ucitelj;\n $model->od_korisnika = $ucitelj_id->id_ucitelj;\n $model->ka_korisniku = $model->roditelj_id;\n if($model->save()){\n return $this->redirect(['view', 'id'=> $model->roditelj_id]);\n }\n } else if($rola == 8){\n $model->ucitelj_id = $id;\n $model->roditelj_id = $roditelj_id->id_roditelj;\n $model->od_korisnika = $roditelj_id->id_roditelj;\n $model->ka_korisniku = $model->ucitelj_id;\n if($model->save()){\n return $this->redirect(['view', 'id'=> $model->ucitelj_id]);\n }\n }\n }\n return $this->render('odgovor', [\n 'model' => $model,\n ]);\n } else if(Yii::$app->user->isGuest){\n $this->redirect(['../site/login']);\n } else {\n throw new ForbiddenHttpException('Nemate pravo pristupa ovoj stranici');\n }\n }", "title": "" }, { "docid": "fa0cc44184fb8482cff389aee68318be", "score": "0.6064477", "text": "public function modifplanningvolAction()\r\n {\r\n if (Services_verifAcces('Planning')) {\r\n $idVol = $this->_getParam('idVol');\r\n $this->_helper->actionStack('header', 'index', 'default', array('head' => $this->headStyleScript));\r\n $this->view->idVol = $idVol;\r\n\r\n $tableVol = new Table_Vol();\r\n $InfosVol = $tableVol->get_InfosVol($idVol);\r\n //Zend_Debug::dump($InfosVol);exit;\r\n\r\n $dateDepartSQL = $InfosVol['dateHeureDepartPrevueVol'];\r\n $dateArriveeSQL = $InfosVol['dateHeureArriveePrevueVol'];\r\n\r\n $InfosVol['dateHeureDepartPrevueVol'] = new Zend_Date($InfosVol['dateHeureDepartPrevueVol']);\r\n $InfosVol['dateHeureArriveePrevueVol'] = new Zend_Date($InfosVol['dateHeureArriveePrevueVol']);\r\n\r\n $this->view->InfosVol = $InfosVol;\r\n $tableModeleAvion = new Table_ModeleAvion();\r\n\r\n $this->view->dateDepart = $dateDepartSQL;\r\n $this->view->dateArrivee = $dateArriveeSQL;\r\n $LstModeleDepartSQL = $tableModeleAvion->get_NomModeles_PourAeroport($InfosVol['trigrammeAeDepart']);\r\n $LstModeleArriveeSQL = $tableModeleAvion->get_NomModeles_PourAeroport($InfosVol['trigrammeAeArrivee']);\r\n //Zend_Debug::dump($LstModeleArriveeSQL);exit;\r\n\r\n foreach ($LstModeleDepartSQL as $val) {\r\n $LstModeleDepart[$val['idModeleAvion']] = $val['libelleModeleAvion'];\r\n }\r\n foreach ($LstModeleArriveeSQL as $val) {\r\n $LstModeleArrivee[$val['idModeleAvion']] = $val['libelleModeleAvion'];\r\n }\r\n\r\n $LstModele = array_uintersect($LstModeleDepart, $LstModeleArrivee, 'strcasecmp');\r\n $this->view->ListeModele = $LstModele;\r\n //Zend_Debug::dump($LstModele);exit;\r\n reset($LstModele);\r\n $idModele = key($LstModele);\r\n //Zend_Debug::dump($idModele);exit;\r\n $LstAvionDispo = $this->lstavionAction($idModele, $dateDepartSQL, $dateArriveeSQL);\r\n $this->view->ListeAvion = $LstAvionDispo;\r\n\r\n $LstPiloteDispo = $this->lstpiloteAction($idModele, $dateDepartSQL, $dateArriveeSQL);\r\n $this->view->ListePilote = $LstPiloteDispo;\r\n\r\n reset($LstPiloteDispo);\r\n $idPilote = key($LstPiloteDispo);\r\n //$LstCoPiloteDispo = $this->lstpiloteAction($idModele, $dateDepartSQL, $dateArriveeSQL, $idPilote);\r\n $LstCoPiloteDispo = $LstPiloteDispo;\r\n unset($LstCoPiloteDispo[$idPilote]);\r\n $this->view->ListeCoPilote = $LstCoPiloteDispo; \r\n }\r\n }", "title": "" }, { "docid": "4c17781e52d3803c00d2cb607c8710af", "score": "0.6063559", "text": "public function index(){\r\n \t$entidades=new EntidadesModel();\r\n \t$monedas = new MonedasModel();\r\n \t$centro_costos= new CentroCostosModel();\r\n \t$plan_cuentas = new PlanCuentasModel();\r\n\t\t\t\t\t//Conseguimos todos los usuarios\r\n\t\t$resultSet=array();\r\n\t\t\t\t\r\n\t\t$resultEdit = \"\";\r\n\t\t\r\n\t\t//arrays\r\n\t\t$resultMoneda=array();\r\n\t\t$resultEntidad=array();\r\n\t\t$resultCentroC=array();\r\n\t\t$resultCodigo_p_cuentas=array();\r\n\r\n\t\t\r\n\t\tsession_start();\r\n\r\n\t\r\n\t\tif (isset( $_SESSION['usuario_usuarios']) )\r\n\t\t{\r\n\t\t\t//Notificaciones\r\n\t\t\t\r\n\t\t\t$nombre_controladores = \"PlanCuentas\";\r\n\t\t\t$id_rol= $_SESSION['id_rol'];\r\n\t\t\t$resultPer = $entidades->getPermisosVer(\" controladores.nombre_controladores = '$nombre_controladores' AND permisos_rol.id_rol = '$id_rol' \" );\r\n\t\t\t\r\n\t\t\tif (!empty($resultPer))\r\n\t\t\t{\r\n\t\t\t\t$id_usuarios=$_SESSION['id_usuarios'];\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//consultar monedas\r\n\t\t\t\t$resultMoneda = $monedas->getAll(\"nombre_monedas\");\r\n\t\t\t\t//consultar entidad por el usuario\r\n\t\t\t\t$resultEntidad=$entidades->getCondiciones(\"entidades.id_entidades,entidades.nombre_entidades\",\"public.usuarios,public.entidades\",\r\n\t\t\t\t\t\t\"usuarios.id_entidades=entidades.id_entidades AND usuarios.id_usuarios='$id_usuarios'\",\r\n\t\t\t\t\t\t\"entidades.id_entidades\");\r\n\t\t\t\t//consultar centro costos de acuerdo a la entidad y elk usuario\r\n\t\t\t\t$resultCentroC=$centro_costos->getCondiciones(\"centro_costos.id_centro_costos,centro_costos.nombre_centro_costos\",\r\n\t\t\t\t\t\t\"public.centro_costos, public.entidades, public.usuarios\", \r\n\t\t\t\t\t\t\"entidades.id_entidades = centro_costos.id_entidades AND entidades.id_entidades = usuarios.id_entidades AND\r\n\t\t\t\t\t\t usuarios.id_usuarios='$id_usuarios'\", \"centro_costos.id_centro_costos\");\r\n\t\t\t\t\r\n\t\t\t\t$columnas_p_cuentas=\" plan_cuentas.id_plan_cuentas,plan_cuentas.codigo_plan_cuentas, \r\n\t\t\t\t\t\t\t\t\t plan_cuentas.nombre_plan_cuentas,monedas.nombre_monedas, \r\n\t\t\t\t\t\t\t\t\t plan_cuentas.n_plan_cuentas,plan_cuentas.t_plan_cuentas, \r\n\t\t\t\t\t\t\t\t\t centro_costos.nombre_centro_costos,plan_cuentas.nivel_plan_cuentas\";\r\n\t\t\t\t\r\n\t\t\t\t$tablas_p_cuentas=\"public.plan_cuentas,public.usuarios,public.entidades,public.monedas,\r\n\t\t\t\t\t\t\t\t public.centro_costos\";\r\n\t\t\t\t\r\n\t\t\t\t$where_p_cuentas=\"entidades.id_entidades = plan_cuentas.id_entidades AND\r\n\t\t\t\t\t\t\t\t entidades.id_entidades = usuarios.id_entidades AND\r\n\t\t\t\t\t\t\t\t monedas.id_monedas = plan_cuentas.id_modenas AND\r\n\t\t\t\t\t\t\t\t centro_costos.id_centro_costos = plan_cuentas.id_centro_costos AND\r\n\t\t\t\t\t\t\t usuarios.id_usuarios='$id_usuarios'\";\r\n\t\t\t\t\r\n\t\t\t\t$resultSet=$plan_cuentas->getCondiciones($columnas_p_cuentas, $tablas_p_cuentas, $where_p_cuentas, \"plan_cuentas.codigo_plan_cuentas\");\r\n\t\t\t\t\r\n\t\t\t\tif(isset($_POST['Buscar']))\r\n\t\t\t\t{\r\n\t\t\t\t\t$contenido=$_POST['contenido'];\r\n\t\t\t\t\t$criterio=$_POST['criterio'];\r\n\t\t\t\t\t\r\n\t\t\t\t\t$where1=\"\";\r\n\t\t\t\t\t$where2=\"\";\r\n\t\t\t\t\t$where3=\"\";\r\n\t\t\t\t\t$where4=\"\";\r\n\t\t\t\t\t\r\n\t\t\t\t\tswitch ($criterio)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcase \"codigo\":\r\n\t\t\t\t\t\t\t$where1=\" AND plan_cuentas.codigo_plan_cuentas LIKE '$contenido%'\";\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase \"nombre\":\r\n\t\t\t\t\t\t\t$where2=\" AND plan_cuentas.nombre_plan_cuentas = '$contenido'\";\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase \"tipo\":\r\n\t\t\t\t\t\t\t$where3=\" AND plan_cuentas.t_plan_cuentas = '$contenido'\";\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase \"naturaleza\":\r\n\t\t\t\t\t\t\t$where4=\" AND plan_cuentas.n_plan_cuentas = '$contenido'\";\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t$columnas_p_cuentas=\" plan_cuentas.id_plan_cuentas,plan_cuentas.codigo_plan_cuentas,\r\n\t\t\t\t\t\t\t\t\t plan_cuentas.nombre_plan_cuentas,monedas.nombre_monedas,\r\n\t\t\t\t\t\t\t\t\t plan_cuentas.n_plan_cuentas,plan_cuentas.t_plan_cuentas,\r\n\t\t\t\t\t\t\t\t\t centro_costos.nombre_centro_costos,plan_cuentas.nivel_plan_cuentas\";\r\n\t\t\t\t\t\r\n\t\t\t\t\t$tablas_p_cuentas=\"public.plan_cuentas,public.usuarios,public.entidades,public.monedas,\r\n\t\t\t\t\t\t\t\t public.centro_costos\";\r\n\t\t\t\t\t\r\n\t\t\t\t\t$where_p_cuentas=\"entidades.id_entidades = plan_cuentas.id_entidades AND\r\n\t\t\t\t\tentidades.id_entidades = usuarios.id_entidades AND\r\n\t\t\t\t\tmonedas.id_monedas = plan_cuentas.id_modenas AND\r\n\t\t\t\t\tcentro_costos.id_centro_costos = plan_cuentas.id_centro_costos AND\r\n\t\t\t\t\tusuarios.id_usuarios='$id_usuarios'\";\r\n\t\t\t\t\t\r\n\t\t\t\t\t$where_to=$where_p_cuentas.$where1.$where2.$where3;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t$resultSet=$plan_cuentas->getCondiciones($columnas_p_cuentas, $tablas_p_cuentas, $where_to, \"plan_cuentas.codigo_plan_cuentas\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (isset ($_GET[\"id_entidades\"]) )\r\n\t\t\t\t{\r\n if (!empty($resultPer))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t$_id_entidades = $_GET[\"id_entidades\"];\r\n\t\t\t\t\t\t$columnas = \" id_entidades, ruc_entidades, nombre_entidades, telefono_entidades, direccion_entidades, ciudad_entidades \";\r\n\t\t\t\t\t\t$tablas = \"entidades\";\r\n\t\t\t\t\t\t$where = \"id_entidades = '$_id_entidades' \"; \r\n\t\t\t\t\t\t$id = \"ruc_entidades\";\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t$resultEdit = $entidades->getCondiciones($columnas ,$tablas ,$where, $id);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$traza=new TrazasModel();\r\n\t\t\t\t\t\t$_nombre_controlador = \"Entidades\";\r\n\t\t\t\t\t\t$_accion_trazas = \"Editar\";\r\n\t\t\t\t\t\t$_parametros_trazas = $_id_entidades;\r\n\t\t\t\t\t\t$resultado = $traza->AuditoriaControladores($_accion_trazas, $_parametros_trazas, $_nombre_controlador);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->view(\"Error\",array(\r\n\t\t\t\t\t\t\t\t\"resultado\"=>\"No tiene Permisos de Editar Plan de Cuentas\"\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t));\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\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\t\t\t\t\r\n\t\t\t\t//array con codigo y subcodigo \r\n\t\t\t\tif(!empty($resultSet)){foreach ($resultSet as $linea=>$val ){\r\n\t\t\t\t\t\r\n\t\t\t\t\t$subcodigo=0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif($val->nivel_plan_cuentas=='2'){\r\n\t\t\t\t\t\t$subcodigo=substr($val->codigo_plan_cuentas,2,1);}\r\n\t\t\t\t\tif($val->nivel_plan_cuentas=='3'){\r\n\t\t\t\t\t\t$subcodigo=substr($val->codigo_plan_cuentas,4,1);}\r\n\t\t\t\t\t\r\n\t\t\t\t\t$resultCodigo_p_cuentas[$linea]['id_p_cuentas']=$val->id_plan_cuentas;\r\n\t\t\t\t\t$resultCodigo_p_cuentas[$linea]['codigo_p_cuentas']=$val->codigo_plan_cuentas;\r\n\t\t\t\t\t$resultCodigo_p_cuentas[$linea]['nivel_p_cuentas']=$val->nivel_plan_cuentas;\r\n\t\t\t\t\t$resultCodigo_p_cuentas[$linea]['subcodigo_p_cuentas']=$subcodigo;\r\n\t\t\t\t}}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t$this->view(\"PlanCuentas\",array(\r\n\t\t\t\t\t\t\"resultSet\"=>$resultSet, \"resultEdit\" =>$resultEdit,\"resultMoneda\"=>$resultMoneda,\r\n\t\t\t\t\t\t\"resultEntidad\"=>$resultEntidad,\"resultCentroC\"=>$resultCentroC,\r\n\t\t\t\t\t\t\"resultCodigo_p_cuentas\"=>$resultCodigo_p_cuentas\r\n\t\t\t\r\n\t\t\t\t));\r\n\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this->view(\"Error\",array(\r\n\t\t\t\t\t\t\"resultado\"=>\"No tiene Permisos de Acceso a Plan de Cuentas\"\r\n\t\t\t\t\r\n\t\t\t\t));\r\n\t\t\t\t\r\n\t\t\t\texit();\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t\t$this->view(\"ErrorSesion\",array(\r\n\t\t\t\t\t\t\"resultSet\"=>\"\"\r\n\t\t\t\r\n\t\t\t\t));\r\n\t\t\r\n\t\t}\r\n\t\r\n\t}", "title": "" }, { "docid": "937b4d81dd7def6222c379aec0fe2adb", "score": "0.60556656", "text": "public function change()\r\n\t{\r\n\t\t$vazby = $this->fetchAll(\r\n\t\t\t'SELECT\n\t\t\t\t pp.id, p.platba_id, f.`klient_id`, f.`om_id`, f.`vystaveno`, f.`cis`, f.`preplatek`, f.`uhrazeno`, p.`platba`\n\t\t\t\tFROM\n\t\t\t\t tx_pv_par_fz AS pp, tx_platby AS p, tx_faktury AS f\n\t\t\t\tWHERE pp.`platba_id` = p.`platba_id`\n\t\t\t\t AND pp.`faktura_id` = f.`id`\n\t\t\t\t AND pp.`zaloha_id` IS NULL\n\t\t\t\tORDER BY cis DESC');\r\n\r\n\t\t$items = collection($vazby)->groupBy('platba_id')->toArray();\r\n\r\n\t\t$ins = [];\r\n\t\tforeach($items as $platbaId => $i){\r\n\t\t\tif(count($i) == 1){\r\n\t\t\t\t$ins[] = [\r\n\t\t\t\t\t'platba_id' => $i[0]['platba_id'],\r\n\t\t\t\t\t'klient_id' => $i[0]['klient_id'],\r\n\t\t\t\t\t'om_id' => $i[0]['om_id']\r\n\t\t\t\t];\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t$ic = collection($i);\r\n\t\t\t$klis = array_unique($ic->extract('klient_id')->toList());\r\n\t\t\t$oms = array_unique($ic->extract('om_id')->toList());\r\n\r\n\t\t\tif(count($klis) > 1){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tif(count($oms) > 1){\r\n\t\t\t\t$ins[] = [\r\n\t\t\t\t\t'platba_id' => $platbaId,\r\n\t\t\t\t\t'klient_id' => $i[0]['klient_id'],\r\n\t\t\t\t\t'om_id' => null\r\n\t\t\t\t];\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t$ins[] = [\r\n\t\t\t\t'platba_id' => $platbaId,\r\n\t\t\t\t'klient_id' => reset($klis),\r\n\t\t\t\t'om_id' => reset($oms)\r\n\t\t\t];\r\n\t\t}\r\n\r\n\t\tforeach($ins as $i){\r\n\t\t\t$this->execute('DELETE FROM tx_pv_par_fz WHERE platba_id = ' . $i['platba_id'] . ';');\r\n\t\t\t$this->execute('UPDATE tx_platby SET type = \\'f\\' WHERE platba_id = ' . $i['platba_id'] . ';');\r\n\t\t}\r\n\r\n\t\t$this->table('platby_zarazeni')\r\n\t\t\t->insert($ins)\r\n\t\t\t->save();\r\n\t}", "title": "" }, { "docid": "2ecb3e6c5b82ffd5295dd6182ab85609", "score": "0.6049272", "text": "public function get_objmodel()\n\t{\n\t\t//@todo\n\t}", "title": "" }, { "docid": "b284e68d4f01d08e1dc75ed7fdb3d3fd", "score": "0.6047079", "text": "public function actionLaporanHarianPoliklinik()\r\n\t{\r\n\t\t$model = new Rekammedik();\r\n\t\t$criteria = new CDbCriteria;\r\n\t\t$criteria->select='*';\r\n\t\t$criteria->condition='YEAR(REM_TGLKUNJUNGAN)=YEAR(NOW()) and MONTH(REM_TGLKUNJUNGAN)=MONTH(NOW()) and DAY(REM_TGLKUNJUNGAN)=DAY(NOW()) AND REM_STATUSMASUK=\\'Telah Ditangani\\'';\r\n\t\t$criteria->order='REM_TGLKUNJUNGAN ASC';\r\n\t\t$model = new CActiveDataProvider('Rekammedik', array(\r\n\t\t'criteria'=>$criteria,\r\n\t\t\t));\r\n\t\t\r\n\t\t$this->render('laporanHarianPoliklinik',array('model'=>$model));\r\n\t\t\r\n\t\r\n\t}", "title": "" }, { "docid": "9a569d0a776ddc261e18ab75cb01864a", "score": "0.60400885", "text": "public function actionIndex($id_fmt,$id_conj_prta,$id_cnj_rpta,$migadepan,$estado,$capitulo,$provincia,$cantones,$parroquias,$periodos,$antvista)\n {\n \n if (empty(Yii::$app->user->identity->usuario)) {\n return $this->redirect(['site/index']);\n } else {\n $m_permisos = new FdAdmEstadoSearch();\n $_login = Yii::$app->user->identity->usuario;\n $_permisos = $m_permisos->buscar($id_fmt, $id_cnj_rpta, $_login);\n if (empty($_permisos)) {\n return $this->redirect(['site/index']);\n } elseif ($_permisos['p_actualizar'] == 'S') {\n $_boton = false;\n } elseif ($_permisos['p_actualizar'] == 'N') {\n $_boton = true;\n }\n }\n $facade = new JuntasgadControllerFachada;\n //$dataAndModel= $facade->actionIndex(Yii::$app->request->queryParams);\n \n $_busquedap = ['JuntasgadSearch' => [\n 'id_conjunto_respuesta' => $id_cnj_rpta,\n ]];\n\n //$dataAndModel= $facade->actionIndex(Yii::$app->request->queryParams);\n $dataAndModel = $facade->actionIndex($_busquedap);\n \n //Contando total de registros en el dataprovider\n $_conteodata = $dataAndModel['dataProvider']->getTotalCount();\n \n $_respuesta_juntas = \\common\\models\\Juntasgad::find()->where(['id_conjunto_respuesta'=>$id_cnj_rpta])->count();\n $_respuesta_informacion_pres = \\common\\models\\Informacionprestadores::find()->where(['id_conjunto_respuesta'=>$id_cnj_rpta])->one();\n $num_pres = $_respuesta_informacion_pres->numero_prestadores;\n \n if(!empty($num_pres) and $num_pres>0){\n //Aqui vamos a comprar la cantidad de datos recibos para la pregunta actual en el boton, con las habilitadas\n //Esto es tipo 5 asi que debe estar en entero...vamos a ver si no nos toca consultar la tabla\n if($num_pres>0 and $num_pres<=$_respuesta_juntas){\n \n $_btnadd = FALSE;\n \n //Aqui va la alerta =========================================================\n Yii::$app->getSession()->setFlash('error', [\n 'type' => 'error',\n 'message' => 'No es posible agregar más Prestadores',\n ]);\n \n }else{\n \n $_btnadd = TRUE;\n }\n }else{\n \n //Aqui vamos a crear nuestra primera respuesta, si esa pregunta no se ha contestado entonces\n //debemos sacar una alerta diciendo que primero se responsa esta pregunta\n $_btnadd = FALSE;\n \n Yii::$app->getSession()->setFlash('error', [\n 'type' => 'error',\n 'message' => 'Por favor primero ingrese el número de prestadores ',\n ]);\n \n \n }\n\n return $this->render('index', [\n 'searchModel' => $dataAndModel['searchModel'],\n 'dataProvider' => $dataAndModel['dataProvider'],\n 'id_fmt' => $id_fmt, \n 'id_conj_prta' => $id_conj_prta,\n 'id_cnj_rpta' => $id_cnj_rpta, \n 'migadepan'=>$migadepan,\n 'estado' => $estado,\n 'capitulo' => $capitulo,\n 'cantones' => $cantones,\n 'parroquias' => $parroquias,\n 'periodos' => $periodos,\n 'provincia' => $provincia, \n 'antvista' => $antvista,\n 'btnadd' => $_btnadd,\n ]);\n }", "title": "" }, { "docid": "da721b372acb7f3851c7f8225839a236", "score": "0.6034682", "text": "public function mojaPretraga($kategorija){\n $objavaModel = new ObjavaModel();\n $this->session->set('kategorija', $kategorija);\n $objave = $objavaModel->pretraga($kategorija);\n $korisnikModel = new KorisnikModel();\n $korisnickoIme = array();\n foreach ($objave as $objava){\n $korisnickoIme += [$objava->idKor => $korisnikModel->dohvatiKorisnickoIme($objava->idKor)];\n }\n $this->prikaz('Objave', ['objave'=>$objave, 'korIme'=>$korisnickoIme]); \n }", "title": "" }, { "docid": "3b3841b402fee18184ef6c3b493f2255", "score": "0.6025482", "text": "public function actionCreate()\n {\n if(Yii::$app->user->can('ucitelj') || Yii::$app->user->can('roditelj')){\n $rola = Yii::$app->user->identity->role;\n $ucitelj_id = Ucitelj::find()->select('id_ucitelj')->where(['user_id' => Yii::$app->user->id ])->one();\n $roditelj_id = Roditelj::find()->select('id_roditelj')->where(['user_id' => Yii::$app->user->id ])->one();\n\n if($rola == 8){\n /*$query= Yii::$app->db->createCommand('SELECT `ucenik`.`id_odeljenje`, `odeljenje`.`ucitelj_id` FROM `roditelj`\n JOIN `ucenik` ON `roditelj`.`id_ucenik`=`ucenik`.`id_ucenik`\n JOIN `odeljenje` ON `ucenik`.`id_odeljenje`=`odeljenje`.`id_odeljenje`\n WHERE `ucenik`.`id_roditelj` = '.$roditelj_id->id_roditelj.'.');\n $ucenik_odeljenje = $query->queryAll();*/\n $roditelj_ucitelj_id = Roditelj::find()->select('ucitelj_id')->where(['id_roditelj' => $roditelj_id->id_roditelj])->one();\n }\n $model = new Poruke();\n\n if ($model->load(Yii::$app->request->post())) {\n if($rola == 4){\n $model->ucitelj_id = $ucitelj_id->id_ucitelj;\n $model->od_korisnika = $ucitelj_id->id_ucitelj;\n $model->ka_korisniku = $model->roditelj_id;\n if($model->save()){\n return $this->redirect(['view', 'id' => $model->roditelj_id]);\n }\n } else if($rola == 8) {\n $model->roditelj_id = $roditelj_id->id_roditelj;\n $model->ucitelj_id = $roditelj_ucitelj_id->ucitelj_id;\n $model->od_korisnika = $roditelj_id->id_roditelj;\n $model->ka_korisniku = $model->ucitelj_id;\n if($model->save()){\n return $this->redirect(['view', 'id' => $model->ucitelj_id]);\n }\n }\n }\n if($rola == 8){\n return $this->render('create', [\n 'model' => $model,\n ]);\n } else if($rola == 4){\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n } else if(Yii::$app->user->isGuest){\n $this->redirect(['../site/login']);\n } else {\n throw new ForbiddenHttpException('Nemate pravo pristupa ovoj stranici');\n }\n }", "title": "" }, { "docid": "2bf86e1701d5702be13b00a4720dae48", "score": "0.60200906", "text": "public function receptSubmit() {\n $this->provera();\n \n $poruka=\"\";\n \n // proverava da li je unet naslov \n $naziv = $this->request->getPost('naziv');\n if(!$this->validate(['naziv'=>'required'])){\n $poruka.=\"Niste uneli naziv recepta.<br>\";\n }\n \n // proverava da li je unet opis\n $opis = $this->request->getPost('opis');\n if(strlen($opis)==0){\n $poruka.=\"Niste uneli opis recepta.<br>\";\n }\n \n $sastojakModel = new SastojakModel();\n $sastojciBaza = $sastojakModel->dohvatiImenaSastojaka();\n $kolicine = $this->request->getPost('kolicine'); // sastojci iz forme\n $neobavezniForma = $this->request->getPost('neobavezni'); \n $flagObavezni=0; // oznacen bar 1 obavezan sastojak\n\n \n // proverava da li je korisnik uneo recept bez obaveznog sastojka\n foreach($sastojciBaza as $sastojak) { \n if($kolicine[$sastojak]!=\"\" && ($neobavezniForma==0 || !in_array($sastojak, $neobavezniForma))) { \n $flagObavezni = 1;\n break; \n }\n } \n if($flagObavezni==0) {\n $poruka.=\"Niste uneli nijedan obavezan sastojak.\";\n }\n \n if($poruka!=\"\") {\n return $this->postaviRecept($poruka, $naziv, $opis);\n }\n \n $slika = $this->request->getFile('fotografija');\n $video = $this->request->getFile('video');\n \n // nema gresaka => napravi novi koktel \n $idKorisnika = $this->session->get('korisnik')->idKorisnika; \n $koktelData = [\n 'idKorisnika' => $idKorisnika,\n 'naziv' => $naziv,\n 'opis' => $opis,\n 'slika' => $slika->getName()!==\"\" ? $slika->getName(): NULL,\n 'video' => $video->getName()!==\"\" ? $video->getName() : NULL,\n 'obrisan' => 0,\n 'datum' => date('Y-m-d')\n ];\n\n $koktelModel = new KoktelModel();\n $idKoktela = $koktelModel->napraviNoviKoktel($koktelData);\n \n if($slika->getName()!==\"\") $slika->move(ROOTPATH.'/public/uploads/'.$idKoktela.'/');\n if ($video->getName()!==\"\") $video->move(ROOTPATH.'/public/uploads/'.$idKoktela.'/');\n \n $obavezniModel = new ObavezniModel();\n $neobavezniModel = new NeobavezniModel();\n \n foreach($sastojciBaza as $sastojak) { \n if($kolicine[$sastojak]!==\"\") {\n $data = [\n 'idKoktela' => $idKoktela,\n 'idSastojka' => $sastojakModel->dohvatiIdPoNazivu($sastojak),\n 'kolicina' => $kolicine[$sastojak]\n ];\n if($neobavezniForma!=0 && in_array($sastojak, $neobavezniForma)) {\n $neobavezniModel->insert($data);\n }\n else {\n $obavezniModel->insert($data);\n }\n }\n }\n \n return redirect()->to(site_url('Korisnik'));\n }", "title": "" }, { "docid": "b78a0143f79aae71cc2d67ca37b7aae6", "score": "0.60137707", "text": "public function actionCreate()\n {\n $sysMenu = PdmSysMenu::findOne(['kd_berkas' => GlobalConstMenuComponent::CekBerkas ]);\n $session = new Session();\n\n $id = $session->get('id_perkara');\n\n $model = $this->findModel($id);\n $model = new PdmBerkas();\n $modelp24 = new Pdmp24(); \n//var_dump ($model);exit;\n\n $modelSpdp = PdmSpdp::findOne(['id_perkara' => $id]);\n // $modelTersangka = MsTersangka::find()\n // ->where('id_perkara=:id_perkara AND flag <>:flag order by no_urut', [':id_perkara' => $id, ':flag' => '3'])\n // ->all();\n $modelTersangka = MsTersangka::find()\n\t\t\t\t ->select('a.id_tersangka as id, a.nama as nama,a.id_perkara')\n ->from('pidum.ms_tersangka a')\n\t\t\t\t\t->join ('left join','pidum.pdm_tahanan_penyidik b','a.id_perkara = b.id_perkara AND a.id_tersangka = b.id_tersangka')\n ->where(\" a.id_perkara = '\".$id.\"' AND b.id is null \")\n ->all();\n\t\t\t\t\t\n\t\t//print_r($modelTersangka);exit;\n $modelPasal = '';\n $modelRp9 = PdmRp9::findOne(['id_perkara' => $id]);\n $modelTahananPenyidik = $this->findModelTahananPenyidik($id);\n\n $searchModelTersangka = new \\app\\modules\\pidum\\models\\MsTersangkaSearch();\n $dataProviderTersangka = $searchModelTersangka->searchTersangka($id);\n\t\t//var_dump($dataProviderTersangka);\n $dataProviderTersangka->pagination = ['defaultPageSize' => 10];\n\n if ($model->load(Yii::$app->request->post())) {\n\n $transaction = Yii::$app->db->beginTransaction();\n\t\t\t\n\t\t\t // Danar Wido 27-07-2016 SPDP 86\n\t\t\t\t\t$UpdateTempatKejadian = Yii::$app->db->createCommand(\"UPDATE pidum.pdm_spdp SET tempat_kejadian = '\".$_POST['PdmSpdp']['tempat_kejadian'].\"' WHERE id_perkara = '\".$model->id_perkara.\"' \");\n $UpdateTempatKejadian->execute();\n\t\t\t // END Danar Wido 27-07-2016\n\t\t\t \n\t\t\t\n\t\t\t$jml_is_akhir = Yii::$app->db->createCommand(\" select count(*) from pidum.pdm_status_surat where id_sys_menu = 'CekBerkas' and id_perkara='\".$id.\"' \")->queryScalar();\n\t\t\tif($jml_is_akhir < 1){\n\t\t\t\tYii::$app->globalfunc->getSetStatusProcces($id, GlobalConstMenuComponent::CekBerkas);\n\t\t\t\tYii::$app->db->createCommand(\"UPDATE pidum.pdm_status_surat SET is_akhir='0' WHERE (id_sys_menu = 'SPDP' OR id_sys_menu = 'P-16' OR id_sys_menu = 'T-4' OR id_sys_menu = 'T-5' OR id_sys_menu = 'P-17' ) AND id_perkara=:id\")\n\t\t\t\t\t->bindValue(':id', $id)\n\t\t\t\t\t->execute();\n\t\t\t}\n \n $seq2 = Yii::$app->db->createCommand(\"select public.generate_pk('pidum.pdm_berkas', 'id_berkas', '\".\\Yii::$app->globalfunc->getSatker()->inst_satkerkd.\"', '\".date('Y').\"')\")->queryOne();\n\t\t\t\t\n\t\t\t\n $model->id_perkara = $id;\n\t\t\t $model->id_berkas = $seq2['generate_pk'];\n\t\t\t\t\t\n\t\t\n\t\t\t\t\t//print_r($model);\n\t\t\t\t\t//print_r($modelp24);exit;\n\t\t\t\t\t\n\t\t\t\tif(!$model->save()){\n\t\t\t\t\tvar_dump($model->getErrors());exit;\n\t\t\t\t\t $alert_script = \"<script>alert('tanggal terima sudah ada pada berkas ini') \n\t\t\t\t\t window.location= '/pidum/pdm-berkas/create'\n\t\t\t\t\t </script>\";\n\t\t\t\t\t//print_r ($model->getErrors());\n\t\t\t\t\tECHO $alert_script;\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$modelSpdpUpdate = Yii::$app->request->post('PdmSpdp');\n $modelSpdp->no_reg = $modelSpdpUpdate[\"no_reg\"];\n $modelSpdp->save();\n\n\t\n \n\t\n //var_dump($model);exit;\n $NextProcces = array(ConstSysMenuComponent::CekBerkas);\n Yii::$app->globalfunc->getNextProcces($model->id_perkara,$NextProcces); \n \n\n $undang = $_POST['undang'];\n\n if(isset($undang)){\n for($i=0;$i<count($undang);$i++){\n\n $pdmPasal1 = new PdmPasal();\n\n $seqPasal = Yii::$app->db->createCommand(\"select public.generate_pk('pidum.pdm_pasal', 'id_pasal', '\".\\Yii::$app->globalfunc->getSatker()->inst_satkerkd.\"', '\".date('Y').\"')\")->queryOne();\n\n $pdmPasal1->id_pasal = $seqPasal['generate_pk'];\n $pdmPasal1->id_perkara = $id;\n $pdmPasal1->undang = $_POST['undang'][$i];\n $pdmPasal1->pasal = $_POST['pasal'][$i];\n $pdmPasal1->save();\n\t\t\t\t\t\t//var_dump($pdmPasal1);exit;\n }\n }\n\t\t\t\t$tahanan =$_POST['id_tersangka'];\n\t\t\t\t$test = $_POST['loktah'];\n\t\t\t\t\t\t$test2 = $_POST['lokasi'];\n\t\t\t\t\t\t$test3 = $_POST['tglmulai'];\n\t\t\t\t\t\t$test4 = $_POST['tglselesai'];\n\t\t\t\t\t\t if(!empty($tahanan)){\n PdmTahananPenyidik::deleteAll(['id_perkara' => $model->id_perkara,'id_tersangka' => $modelTahananPenyidik->id_tersangka]);\n $seq = Yii::$app->db->createCommand(\"select public.generate_pk('pidum.pdm_tahanan_penyidik', 'id', '\".\\Yii::$app->globalfunc->getSatker()->inst_satkerkd.\"', '\".date('Y').\"')\")->queryOne();\n\n \n for ($i = 0; $i < count($tahanan); $i++) {\n $modelTahananPenyidik1 = new PdmTahananPenyidik();\n\t//print_r($model);\n//var_dump($seq2);exit;\n $seqTahananPenyidik = Yii::$app->db->createCommand(\"select public.generate_pk('pidum.pdm_tahanan_penyidik', 'id', '\".\\Yii::$app->globalfunc->getSatker()->inst_satkerkd.\"', '\".date('Y').\"')\")->queryOne();\n//var_dump($seqTahananPenyidik);exit;\n $modelTahananPenyidik1->id = $seqTahananPenyidik['generate_pk'];\n $modelTahananPenyidik1->id_perkara = $id;\n $modelTahananPenyidik1->id_tersangka = $tahanan[$i];\n\t\t\t\t\t\t $modelTahananPenyidik1->id_berkas = $seq2['generate_pk'];;\n $modelTahananPenyidik1->id_msloktahanan = $test[$i];\n $modelTahananPenyidik1->tgl_mulai = $test3[$i];\n $modelTahananPenyidik1->tgl_selesai = $test4[$i];\n $modelTahananPenyidik1->lokasi_rutan = !empty($test2[$i]) ? $test2[$i]: NULL ;\n $modelTahananPenyidik1->save();\n\t\t\t\t\t //var_dump($seq2);exit;\n\t\t\t\t\t\t//print_r($modelTahananPenyidik1);exit;\n\n\t\t\t\t\n\t\t\t\t\t}\t\n }\n\t\t\t\t $hapusPasal = $_POST['hapus_undang_pasal'];\n \n if(isset($hapusPasal)){\n \tfor($a=0;$a<count($hapusPasal);$a++){\n \t\t//\\app\\modules\\pidum\\models\\PdmPasal::deleteAll(['id_pasal' => $hapusPasal[$a]]);\n \t\t$pasal = Yii::$app->db->createCommand(\"DELETE FROM pidum.pdm_pasal WHERE id_pasal='$hapusPasal[$a]'\");\n \t\t$pasal->execute();\n \t\t\n \t}\n }\n\n $transaction->commit();\n\n Yii::$app->getSession()->setFlash('success', [\n 'type' => 'success',\n 'duration' => 3000,\n 'icon' => 'fa fa-users',\n 'message' => 'Data Berhasil di Simpan',\n 'title' => 'Simpan Data',\n 'positonY' => 'top',\n 'positonX' => 'center',\n 'showProgressbar' => true,\n ]);\n\n return $this->redirect(['index']);\n\t\t\t}\n\t \n // print_r($model);\n//print_r($seq2);exit;\n // var_dump($seq2);exit;\n // $modelTahananPenyidik = Yii::$app->request->post('PdmTahananPenyidik');\n\t\t//\tvar_dump($modelTahananPenyidik);exit;\n\n//var_dump($tahanan);exit;\n \n\n /* $trxPemroresan = PdmTrxPemrosesan::findOne(['id_perkara' => $id]);\n $trxPemroresan->id_perkara = $id;\n $trxPemroresan->id_sys_menu = \"29\";\n $trxPemroresan->id_user_login = Yii::$app->user->identity->username;\n $trxPemroresan->update(); */\n \n \n /*catch (Exception $e){\n $transaction->rollBack();\n Yii::$app->getSession()->setFlash('success', [\n 'type' => 'danger',\n 'duration' => 3000,\n 'icon' => 'glyphicon glyphicon-ok-sign', //String\n 'message' => 'Terjadi Kesalahan',\n 'title' => 'Error',\n 'positonY' => 'top',\n 'positonX' => 'center',\n 'showProgressbar' => true,\n ]);\n return $this->redirect(['index']);\n }*/\n } else {\n return $this->render('update', [\n 'model' => $model,\n 'modelSpdp' => $modelSpdp,\n 'modelRp9' => $modelRp9,\n 'modelTersangka' => $modelTersangka,\n 'dataProviderTersangka' => $dataProviderTersangka,\n 'modelTahananPenyidik' => $modelTahananPenyidik,\n 'modelPasal' => $modelPasal,\n 'sysMenu' => $sysMenu\n ]);\n }\n }", "title": "" }, { "docid": "84222ce305189b6a5f17ccdd76c00d73", "score": "0.60040313", "text": "abstract protected function model();", "title": "" }, { "docid": "84222ce305189b6a5f17ccdd76c00d73", "score": "0.60040313", "text": "abstract protected function model();", "title": "" }, { "docid": "84222ce305189b6a5f17ccdd76c00d73", "score": "0.60040313", "text": "abstract protected function model();", "title": "" }, { "docid": "9be1370a562630e7e5ecbd03964abb0f", "score": "0.599675", "text": "public function prikaz_stranice(){\n \n // $image = \\Config\\Services::image() ->withFile('/image/patka.jpg');\n if(isset($_GET['izbor'])){\n $izbor=$_GET['izbor'];\n }\n else if(isset($_SESSION['izbor']))\n $izbor=$_SESSION['izbor'];\n else \n $izbor='svi_recepti';\n $_SESSION['izbor']=$izbor;\n \n if(isset($_GET['meni'])){\n $meni=$_GET['meni'];\n }\n else if(isset($_SESSION['meni']))\n $meni=$_SESSION['meni'];\n else\n $meni='meni_pocetna';\n $_SESSION['meni']=$meni;\n \n $recepti=array();\n \n $receptiModel=new ReceptiModel();\n $svi_recepti=$receptiModel->dohvati_sve_recepte();\n \n switch ($izbor){\n \n \n case 'slatko_cose':\n $i=0;\n $recepti_kategorija=$receptiModel->dohvati_recepte_slatko();\n foreach($recepti_kategorija as $recept)\n {\n \n $recepti[$i]=$recept;\n $i++;\n \n }\n $body='body';\n break;\n \n case 'za_mesojede':\n $i=0;\n $recepti_kategorija=$receptiModel->dohvati_recepte_meso();\n foreach($recepti_kategorija as $recept)\n {\n \n $recepti[$i]=$recept;\n $i++;\n \n }\n $body='body';\n break; \n \n case 'svakojaka_testa':\n $i=0;\n $recepti_kategorija=$receptiModel->dohvati_recepte_testo();\n foreach($recepti_kategorija as $recept)\n {\n \n $recepti[$i]=$recept;\n $i++;\n \n }\n $body='body';\n break; \n \n case 'izvrsni_kuvar':\n $i=0;\n \n $korisnikModel=new KorisnikModelOperacije(); \n $kuvar= $korisnikModel->dohvati_sve_korisnike();\n\n foreach($kuvar as $k)\n {\n \n if($k->ocena>4){\n \n $recept=$receptiModel->dohvati_po_id_autora($k->id);\n //$uslov=['autor'=>$k->id];\n // $recept=$receptiModel->getWhere($uslov);\n // $recept = $recept->getResultObject(); \n \n foreach ($recept as $r){\n \n $recepti[$i]=$r;\n $i++;\n }\n }\n }\n \n $body='body';\n break; \n\n \n case 'odlicni_kuvar':\n $i=0;\n \n $korisnikModel=new KorisnikModelOperacije(); \n $kuvar= $korisnikModel->dohvati_sve_korisnike();\n\n foreach($kuvar as $k)\n {\n \n if($k->ocena>2.1 && $k->ocena<=4){\n \n $recept=$receptiModel->dohvati_po_id_autora($k->id);\n \n // $uslov=['autor'=>$k->id];\n // $recept=$receptiModel->getWhere($uslov);\n //$recept = $recept->getResultObject(); \n \n foreach ($recept as $r){\n \n $recepti[$i]=$r;\n $i++;\n }\n }\n }\n \n \n $body='body';\n break; \n \n case 'solidni_kuvar':\n $i=0;\n \n $korisnikModel=new KorisnikModelOperacije(); \n $kuvar= $korisnikModel->dohvati_sve_korisnike();\n\n foreach($kuvar as $k)\n {\n \n if($k->ocena<=2 ){\n \n $recept=$receptiModel->dohvati_po_id_autora($k->id);\n // $uslov=['autor'=>$k->id];\n // $recept=$receptiModel->getWhere($uslov);\n //$recept = $recept->getResultObject(); \n \n foreach ($recept as $r){\n \n $recepti[$i]=$r;\n $i++;\n }\n }\n }\n \n $body='body';\n break; \n \n case 'moja_jela':\n $i=0;\n $id=$_SESSION['id'];\n $recepti_autor=$receptiModel->dohvati_po_id_autora($id);\n foreach($recepti_autor as $recept)\n {\n \n $recepti[$i]=$recept;\n $i++;\n \n }\n $body='body_B'; //\n break; \n \n case 'sacuvana_jela': //za ovo treba da popunim tabelu sa receptima koje cuvam da bih mogla da uzmem recepte\n $i=0;\n $id=$_SESSION['id'];\n \n // $sacuvano = ['idK' => $id];\n $sacuvanoModel=new SacuvanoModel();\n // $sacuvani= $sacuvanoModel->getWhere($sacuvano);\n // $sacuvani = $sacuvani->getResultObject();\n $sacuvani=$sacuvanoModel->dohvati_sacuvano_po_id_korisnika($id);\n \n foreach($sacuvani as $s)\n {\n //$recept=$receptiModel->find($s->idR);\n $recept=$receptiModel->dohvati_recept_po_id_recepta($s->idR);\n $recepti[$i]=$recept;\n $i++;\n \n }\n $body='body_sacuvano'; //\n break; \n \n case 'moj_nalog': //treba mi tabela recepara koje cuvam jer se tu listaju svi recepti i moji i sacuvani\n $i=0;\n $id=$_SESSION['id'];\n \n \n\n $sacuvanoModel=new SacuvanoModel();\n $sacuvani=$sacuvanoModel->dohvati_sacuvano_po_id_korisnika($id); \n \n foreach($sacuvani as $s)\n {\n $recept=$receptiModel->dohvati_recept_po_id_recepta($s->idR);\n $recepti[$i]=$recept;\n $i++;\n \n }\n $recepti_autor=$receptiModel->dohvati_po_id_autora($id);\n foreach($recepti_autor as $recept)\n {\n \n $recepti[$i]=$recept;\n $i++;\n \n }\n \n $body='body_B'; \n break; \n \n \n default :\n $body='body';\n $recepti=$svi_recepti;\n break;\n }\n \n\n \n $data=['recepti'=>$recepti];\n echo view(\"stranice/headers/header\");\n echo view(\"stranice/meni_stranice/\".$meni);\n echo view(\"stranice/body/\".$body,$data); //nisam sigurna kako ovo da napravim.\n \n \n }", "title": "" }, { "docid": "148c76219bdc6e0cfc487654edefbe86", "score": "0.59905386", "text": "public function actionCrearOrdenPreventiva(){\n\t\t$actividades=Yii::app()->db->createCommand('select * from sgu_actividades where idestatus=2')->queryAll();\n\t\t$tot=count($actividades);\n\t\tfor($i=0;$i<$tot;$i++){\n\t\t\tif($this->getActividadAtraso($actividades[$i][\"id\"])<>$actividades[$i][\"atraso\"]){\n\t\t\t\tYii::app()->db->createCommand(\"update `tsg`.`sgu_actividades` set `atraso` = \".$this->getActividadAtraso($actividades[$i][\"id\"]).\" where `sgu_actividades`.`id` = \".$actividades[$i][\"id\"].\"\")->query();\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t$modeloOrdenMtto=new Ordenmtto;\n\t\t$dataProvider=new CActiveDataProvider('Actividades',array('criteria' => array(\n\t\t\t//'condition' =>'idestatus=2 and atraso >=-5',\n\t\t\t'condition' =>'idestatus=2',\n\t\t\t'order'=>'proximoFecha'\n\t\t\t),\n\t\t\t'pagination'=>array(\n \t\t'pageSize'=>10,\n \t\t),\n\t\t));\n\t\t//$dataProvider->setPagination(false);\n\t\t$this->render('crearOrdenPreventiva',array(\n\t\t\t'dataProvider'=>$dataProvider,\n\t\t\t'mi'=>$this->getIniciales(),\n\t\t\t'color'=>$this->getColor($this->getIniciales()),\n\t\t\t'abiertas'=>$this->getOrdenesAbiertas(),\n\t\t\t'Colorabi'=>$this->getColor($this->getOrdenesAbiertas()),\n\t\t\t'Colorli'=>$this->getColor($this->getOrdenesListas()),\n\t\t\t'listas'=>$this->getOrdenesListas(),\n\t\t\t\n\t\t));\n\t}", "title": "" }, { "docid": "ccfe54670033323739f89152f400c7af", "score": "0.5989474", "text": "public function getRoditelji(){\n\t\t//primalac_id je u ovom slučaju id djaka na koga se poruka odnosi a ne na roditelja\n\t\t$poruke['poslate']=Poruke::join('roditelji as r','r.id','=','poruke.primalac_id')\n\t\t->where('poruke.posiljalac_id',Session::get('id'))\n\t\t->orderby('poruke.created_at','DESC')\n\t\t->get(['poruke.id','poruke.poruka','poruke.created_at as datum','poruke.posiljalac_id','r.ime','poruke.procitano'])->toArray();\n\t\t\n\t\t$djaciroditelji=Djaci::join('roditelji as rod','rod.id','=','djaci.id_roditelji')\n\t\t->whereIn('djaci.id',function($query){\n\t\t\t\t$query->select('p.primalac_id')->from('poruke as p')->where('p.posiljalac_id','=',Session::get('id'));\n\t\t})\n\t\t->get(['rod.ime as imeroditelja','rod.prezime as prezimeroditelja','rod.id as idroditelja','djaci.ime as imedjaka'])->toArray();\n\n\t\t$poruke['primljene']=Poruke::join('roditelji as r','r.id','=','poruke.posiljalac_id')\n\t\t->where('poruke.primalac_id',Session::get('id'))\n\t\t->orderby('poruke.created_at','DESC')\n\t\t->get(['poruke.id','poruke.poruka','poruke.created_at as datum','poruke.primalac_id','r.ime','poruke.procitano'])->toArray();\n\n\t\treturn Security::autentifikacija('roditelj.poruke',compact('poruke'),2);\n\t\t\n\t}", "title": "" }, { "docid": "f3c353134ed9d28cd6bb9d177052fc83", "score": "0.5987339", "text": "public function proveraIzmena(){\n\n $kompanija = $this->session->get('kompanija');\n\n if (!$this->validate(['adresa' => 'required'])) {\n return $this->prikaz(\"profil_kompanija\", ['kompanija' => $kompanija, 'greskaizmena' => 'Adresa mora biti uneta.', 'rezimizmena' => true]);\n }else if (!$this->validate(['telefon' => 'required'])) {\n return $this->prikaz(\"profil_kompanija\", ['kompanija' => $kompanija, 'greskaizmena' => 'Telefon mora biti unet.', 'rezimizmena' => true]);\n } else if (!$this->validate(['telefon' => 'integer'])) {\n return $this->prikaz(\"profil_kompanija\", ['kompanija' => $kompanija, 'greskaizmena' => 'Telefon mora da ima samo cifre .', 'rezimizmena' => true]);\n }\n\n \n $kompanijamodel = new KompanijaModel();\n\n $data = [\n 'adresa' => $this->request->getVar('adresa'),\n 'telefon' => $this->request->getVar('telefon')\n ];\n $kompanijamodel->update($kompanija['PIB'], $data);\n $kompanija = $kompanijamodel->find($kompanija['PIB']);\n $this->session->set('kompanija',$kompanija);\n\n $this->prikaz(\"profil_kompanija\", ['kompanija' => $kompanija]);\n }", "title": "" }, { "docid": "3efa87374b1d261e054fa7e3f443852c", "score": "0.59749174", "text": "public function index(){\r\n \t$etapas_juicios = new EtapasJuiciosModel(); \r\n\t\t\r\n\t //Conseguimos todos los usuarios\r\n\t\t$resultSet=$etapas_juicios->getAll(\"id_etapas_juicios\");\r\n\t\t\t\t\r\n\t\t$resultEdit = \"\";\r\n\r\n\t\t\r\n\t\tsession_start();\r\n\t\t\r\n\r\n\t\r\n\t\tif (isset( $_SESSION['usuario_usuarios']) )\r\n\t\t{\r\n\r\n\t\t\t$nombre_controladores = \"EtapasJuicios\";\r\n\t\t\t$id_rol= $_SESSION['id_rol'];\r\n\t\t\t$resultPer = $etapas_juicios->getPermisosVer(\" controladores.nombre_controladores = '$nombre_controladores' AND permisos_rol.id_rol = '$id_rol' \" );\r\n\t\t\t\r\n\t\t\tif (!empty($resultPer))\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif (isset ($_GET[\"id_etapas_juicios\"]) )\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\t$nombre_controladores = \"EtapasJuicios\";\r\n\t\t\t\t\t$id_rol= $_SESSION['id_rol'];\r\n\t\t\t\t\t$resultPer = $etapas_juicios->getPermisosEditar(\" controladores.nombre_controladores = '$nombre_controladores' AND permisos_rol.id_rol = '$id_rol' \" );\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif (!empty($resultPer))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t$_id_etapas_juicios = $_GET[\"id_etapas_juicios\"];\r\n\t\t\t\t\t\t$columnas = \" id_etapas_juicios, nombre_etapas\";\r\n\t\t\t\t\t\t$tablas = \"etapas_juicios\";\r\n\t\t\t\t\t\t$where = \"id_etapas_juicios = '$_id_etapas_juicios' \"; \r\n\t\t\t\t\t\t$id = \"nombre_etapas\";\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$resultEdit = $etapas_juicios->getCondiciones($columnas ,$tablas ,$where, $id);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$traza=new TrazasModel();\r\n\t\t\t\t\t\t$_nombre_controlador = \"Etapas Juicios\";\r\n\t\t\t\t\t\t$_accion_trazas = \"Editar\";\r\n\t\t\t\t\t\t$_parametros_trazas = $_id_etapas_juicios;\r\n\t\t\t\t\t\t$resultado = $traza->AuditoriaControladores($_accion_trazas, $_parametros_trazas, $_nombre_controlador);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->view(\"Error\",array(\r\n\t\t\t\t\t\t\t\t\"resultado\"=>\"No tiene Permisos de Editar Etapas Juicios\"\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t));\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\t\r\n\t\t\t\t$this->view(\"EtapasJuicios\",array(\r\n\t\t\t\t\t\t\"resultSet\"=>$resultSet, \"resultEdit\" =>$resultEdit\r\n\t\t\t\r\n\t\t\t\t));\r\n\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this->view(\"Error\",array(\r\n\t\t\t\t\t\t\"resultado\"=>\"No tiene Permisos de Acceso a Etapas Juicios\"\r\n\t\t\t\t\r\n\t\t\t\t));\r\n\t\t\t\t\r\n\t\t\t\texit();\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t\t$this->view(\"ErrorSesion\",array(\r\n\t\t\t\t\t\t\"resultSet\"=>\"\"\r\n\t\t\t\r\n\t\t\t\t));\r\n\t\t\r\n\t\t}\r\n\t\r\n\t}", "title": "" }, { "docid": "2013442beddf1c3afea578f10f1b4534", "score": "0.59696513", "text": "public function vista_previa($Id_Negociacion, $Id) \r\n\t{\r\n\t\t$Usuario = $this->session->userdata('Usuario');\r\n\t\t$usuario['Usuario'] = $Usuario; // Id Usuario //\r\n\t\t$usuario['Id_Negociacion'] = $Id_Negociacion; // Id Negociacion //\r\n\t\t$usuario['idcliente'] = $Id; // Id Cliente\r\n\t\t\r\n\t\t$usuario['Permiso'] = $this->modelNegociacion->ConsultarPermiso($Id_Negociacion); \r\n\t\t\r\n\t\t$status = $this->modelNegociacion->StatusNegociacion($Id_Negociacion); \r\n\t\t$usuario['Status'] = $status;\r\n\t\t\r\n\t\t$usuario['DatosCliente'] = $this->modelCliente->DatosCliente($Id_Negociacion, $Id); \r\n\t\t$cedula = $this->modelCliente->BuscarId($Usuario); \r\n\t\t$usuario['DatosVendedor'] = $this->modelCliente->DatosVendedor($Id_Negociacion, $cedula); \r\n\t\t$usuario['Lista'] = $this->modelProducto->ConsultarLista($Id_Negociacion);\r\n\t\t$usuario['Lista2'] = $this->modelProducto->ConsultarLista2($Id_Negociacion);\r\n\t\t\r\n\t\t$usuario['Descuento'] = $this->modelProducto->ConsultarDescuento($Id_Negociacion);\r\n\t\t$Neto = $this->modelProducto->Neto($Id_Negociacion);\r\n\t\t$Neto2 = $this->modelProducto->Neto2($Id_Negociacion);\r\n\t\t$Neto3 = $Neto+$Neto2;\r\n\t\t$usuario['Neto'] = $Neto3;\r\n\t\t$usuario['Iva'] = $Neto3*0.12;\r\n\t\t$Iva = $Neto3*0.12;\r\n\t\t$usuario['Total'] = $Neto3 + $Iva;\r\n\t\t\r\n\t\t$this->load->view('Despachador/Borrador/DVistaPreviaPrueba', $usuario);\r\n\t}", "title": "" }, { "docid": "e363018a3654186e5ea7e247e5c48580", "score": "0.5968401", "text": "public function actionPenerimaanPersediaan()\n {\n $model = new GULaporanPenerimaanpersediaanT;\n $format = new MyFormatter();\n $model->unsetAttributes();\n $model->jns_periode = \"hari\";\n $model->tgl_awal = date('Y-m-d', strtotime('first day of this month'));\n $model->tgl_akhir = date('Y-m-d');\n $model->bln_awal = date('Y-m', strtotime('first day of january'));\n $model->bln_akhir = date('Y-m');\n $model->thn_awal = date('Y');\n $model->thn_akhir = date('Y');\n if (isset($_GET['GULaporanPenerimaanpersediaanT'])) {\n $model->attributes = $_GET['GULaporanPenerimaanpersediaanT'];\n $model->jns_periode = $_GET['GULaporanPenerimaanpersediaanT']['jns_periode'];\n $model->tgl_awal = $format->formatDateTimeForDb($_GET['GULaporanPenerimaanpersediaanT']['tgl_awal']);\n $model->tgl_akhir = $format->formatDateTimeForDb($_GET['GULaporanPenerimaanpersediaanT']['tgl_akhir']);\n $model->bln_awal = $format->formatMonthForDb($_GET['GULaporanPenerimaanpersediaanT']['bln_awal']);\n $model->bln_akhir = $format->formatMonthForDb($_GET['GULaporanPenerimaanpersediaanT']['bln_akhir']);\n $model->thn_awal = $_GET['GULaporanPenerimaanpersediaanT']['thn_awal'];\n $model->thn_akhir = $_GET['GULaporanPenerimaanpersediaanT']['thn_akhir'];\n $bln_akhir = $model->bln_akhir.\"-\".date(\"t\",strtotime($model->bln_akhir));\n $thn_akhir = $model->thn_akhir.\"-\".date(\"m-t\",strtotime($model->thn_akhir.\"-12\"));\n switch($model->jns_periode){\n case 'bulan' : $model->tgl_awal = $model->bln_awal.\"-01\"; $model->tgl_akhir = $bln_akhir; break;\n case 'tahun' : $model->tgl_awal = $model->thn_awal.\"-01-01\"; $model->tgl_akhir = $thn_akhir; break;\n default : null;\n }\n $model->tgl_awal = $model->tgl_awal.\" 00:00:00\";\n $model->tgl_akhir = $model->tgl_akhir.\" 23:59:59\";\n }\n $this->render('penerimaanPersediaan/penerimaanPersediaan',array(\n 'model'=>$model,'format'=>$format\n ));\n }", "title": "" }, { "docid": "23e7a2b0104150b1547098ec6250a5f9", "score": "0.59435815", "text": "public function actionSeleksiLanjut() {\n //search list of lamaran where tahap is null\n //untuk pagination\n $pages;\n //ngeload semua pelamar yang masih dalam proses seleksi ( tahap masih null )\n //search list of lamaran where tahap is null\n if (Yii::app()->user->isAdmin()) {\n //cari departemen dan filter by departemen kalo dia admin\n $id = Yii::app()->user->id;\n $modelAdmin = Admin::model()->findByAttributes(array('id_user' => $id));\n $criteria = new CDbCriteria;\n $criteria->with = array('lowongan', 'pelamar');\n $criteria->condition = \"id_lowongan_tahap is not null AND lowongan.departemen=:low\";\n $criteria->params = array(':low' => $modelAdmin->departemen);\n\n $count = Lamaran::model()->count($criteria);\n $pages = new CPagination($count);\n // elements per page\n $pages->pageSize = 10;\n $pages->applyLimit($criteria);\n // sorting\n $sort = new CSort('Lamaran');\n $sort->multiSort = true;\n $sort->attributes = array(\n 'pelamarNama' => array(\n 'asc' => 'pelamar.nama',\n 'desc' => 'pelamar.nama DESC',\n 'label' => 'Nama',\n 'default' => 'desc',\n ),\n 'lowonganNama' => array(\n 'asc' => 'lowongan.nama',\n 'desc' => 'lowongan.nama DESC',\n 'label' => 'Lowongan',\n 'default' => 'desc',\n ),\n );\n $sort->applyOrder($criteria);\n $modelsL = Lamaran::model()->with('lowongan')->findAll($criteria);\n } else {\n $criteria = new CDbCriteria;\n $criteria->condition = 'id_lowongan_tahap is not null';\n $criteria->with = array('lowongan', 'pelamar');\n\n $count = Lamaran::model()->count($criteria);\n $pages = new CPagination($count);\n // elements per page\n $pages->pageSize = 10;\n $pages->applyLimit($criteria);\n // sorting\n $sort = new CSort('Lamaran');\n $sort->multiSort = true;\n $sort->attributes = array(\n 'pelamarNama' => array(\n 'asc' => 'pelamar.nama',\n 'desc' => 'pelamar.nama DESC',\n 'label' => 'Nama',\n 'default' => 'desc',\n ),\n 'lowonganNama' => array(\n 'asc' => 'lowongan.nama',\n 'desc' => 'lowongan.nama DESC',\n 'label' => 'Lowongan',\n 'default' => 'desc',\n ),\n );\n $sort->applyOrder($criteria);\n $modelsL = Lamaran::model()->findAll($criteria);\n }\n //cari semua tahap untuk membuat header\n $modelsT = Tahap::model()->findAll();\n\n //kalo ada post maka simpan update nya\n if (isset($_POST['Lamaran'])) {\n $valid = true;\n foreach ($_POST['Lamaran'] as $j => $modelp) {\n //kalo ada lamaran index j\n if (isset($_POST['Lamaran'][$j])) {\n //ambil id_lowongan_tahap array dari checklist\n $id_low_taps = $_POST['Lamaran'][$j]['id_lowongan_tahap'];\n $tahapClicked = 0;\n //cari lowongan_tahap yang dicek paling akhir\n foreach ($id_low_taps as $low_tahap) {\n if ($low_tahap != 0) {\n $tahapClicked = $low_tahap;\n }\n }\n //set attribut dengan yang baru\n $modelsL[$j]->attributes = $modelp;\n $modelsL[$j]->id_lowongan_tahap = $tahapClicked;\n //$valid = $modelsL[$j]->validate() && $valid;\n }\n }\n //save lamaran \n if ($valid) {\n $i = 0;\n while (isset($modelsL[$i])) {\n if ($modelsL[$i]->id_lowongan_tahap != 0)\n $modelsL[$i]->save(false); // models have already been validated\n $i++;\n }\n }\n }\n //untuk pagination\n $pages;\n //ngeload semua pelamar yang masih dalam proses seleksi ( tahap masih null )\n //search list of lamaran where tahap is null\n if (Yii::app()->user->isAdmin()) {\n //cari departemen dan filter by departemen kalo dia admin\n $id = Yii::app()->user->id;\n $modelAdmin = Admin::model()->findByAttributes(array('id_user' => $id));\n $criteria = new CDbCriteria;\n $criteria->with = array('lowongan', 'pelamar');\n $criteria->condition = \"id_lowongan_tahap is not null AND lowongan.departemen=:low\";\n $criteria->params = array(':low' => $modelAdmin->departemen);\n\n $count = Lamaran::model()->count($criteria);\n $pages = new CPagination($count);\n // elements per page\n $pages->pageSize = 10;\n $pages->applyLimit($criteria);\n // sorting\n $sort = new CSort('Lamaran');\n $sort->multiSort = true;\n $sort->attributes = array(\n 'pelamarNama' => array(\n 'asc' => 'pelamar.nama',\n 'desc' => 'pelamar.nama DESC',\n 'label' => 'Nama',\n 'default' => 'desc',\n ),\n 'lowonganNama' => array(\n 'asc' => 'lowongan.nama',\n 'desc' => 'lowongan.nama DESC',\n 'label' => 'Lowongan',\n 'default' => 'desc',\n ),\n );\n $sort->applyOrder($criteria);\n $modelsL = Lamaran::model()->with('lowongan')->findAll($criteria);\n } else {\n $criteria = new CDbCriteria;\n $criteria->condition = 'id_lowongan_tahap is not null';\n $criteria->with = array('lowongan', 'pelamar');\n\n $count = Lamaran::model()->count($criteria);\n $pages = new CPagination($count);\n // elements per page\n $pages->pageSize = 10;\n $pages->applyLimit($criteria);\n // sorting\n $sort = new CSort('Lamaran');\n $sort->multiSort = true;\n $sort->attributes = array(\n 'pelamarNama' => array(\n 'asc' => 'pelamar.nama',\n 'desc' => 'pelamar.nama DESC',\n 'label' => 'Nama',\n 'default' => 'desc',\n ),\n 'lowonganNama' => array(\n 'asc' => 'lowongan.nama',\n 'desc' => 'lowongan.nama DESC',\n 'label' => 'Lowongan',\n 'default' => 'desc',\n ),\n );\n $sort->applyOrder($criteria);\n $modelsL = Lamaran::model()->findAll($criteria);\n }\n //temukan semua tahap untuk di jadikan header\n $modelsT = Tahap::model()->findAll();\n\n $this->render('seleksi2', array(\n 'modelsL' => $modelsL, 'modelsT' => $modelsT, 'pages' => $pages, 'sort' => $sort,\n ));\n }", "title": "" }, { "docid": "290fc1e745aec8231f803ea5e23f252e", "score": "0.5942353", "text": "public function getFuncionalidadeModel()\n {\n // [Lab09] Fazendo CRUD de Funcionalidades\n }", "title": "" }, { "docid": "afae8be263d439e5c4c664bf9e8d40f4", "score": "0.59331954", "text": "public function actionCreate($tipo) {\n $model= new VswPersonal;\n $poa = new Poa;\n $maestro = new MaestroPoa;\n \n $sql = \"select iduser, id_persona from cruge_user where iduser =\" . Yii::app()->user->id;\n $connection = Yii::app()->db;\n $command = $connection->createCommand($sql);\n $row = $command->queryAll();\n $idUser = $row[0][\"iduser\"];\n $idP = $row[0][\"id_persona\"];\n \n //Consulta de la Dependencia segun el Cruge\n $field = CrugeField::model()->findByAttributes(array('idfield' => 1));\n $arOpt = CrugeUtil::explodeOptions($field->predetvalue);\n \n $responsable = VswPersonal::model()->findByAttributes(array('id_persona' => $idP));\n $model->dependencia = $responsable['dependencia'];\n $model->nombres = $responsable['nombres'];\n $model->apellidos = $responsable['apellidos'];\n $model->nacionalidad = $responsable['nacionalidad'];\n $model->cedula = $responsable['cedula'];\n $model->descripcion_cargo = $responsable['descripcion_cargo'];\n \n $cruge_dependencia = CrugeFieldValue::model()->findByAttributes(array('iduser' => $idUser, 'idfield' => 1));\n $criteria=new CDbCriteria;\n $criteria->select='MIN(cargo) AS cargo';\n $criteria->condition = 'dependencia = :dependencia';\n $criteria->params = array(':dependencia' => $cruge_dependencia->value);\n $crugefield_director = VswCrugeFieldvalues::model()->find($criteria);\n// var_dump($crugefield_director->cargo);die;\n $idUser_director = VswCrugeFieldvalues::model()->findByAttributes(array('cargo' => $crugefield_director->cargo, 'dependencia' => $cruge_dependencia->value));\n $cruge_director = CrugeStoredUser::model()->findByPk($idUser_director->iduser);\n// $cruge_director = CrugeFieldValue::model()->findBySql(\"SELECT iduser FROM cruge_fieldvalue WHERE value = '\" . 5 . \"' OR value = '\" . $cruge_dependencia->value . \"' GROUP BY iduser having count(iduser) >= 2\");\n\n// $sql_director = \"select iduser, id_persona from cruge_user where iduser =\" . $cruge_director->iduser;\n// $connection_director = Yii::app()->db;\n// $command_director = $connection_director->createCommand($sql_director);\n// $row_director = $command_director->queryAll();\n// $idUser_director = $row_director[0][\"iduser\"];\n// $idP_director = $row_director[0][\"id_persona\"];\n \n $model_dir = new VswPersonal;\n $responsable_dir = VswPersonal::model()->findByAttributes(array('id_persona' => $cruge_director->id_persona));\n $model_dir->dependencia = $responsable_dir['dependencia'];\n $model_dir->nombres = $responsable_dir['nombres'];\n $model_dir->apellidos = $responsable_dir['apellidos'];\n $model_dir->nacionalidad = $responsable_dir['nacionalidad'];\n $model_dir->cedula = $responsable_dir['cedula'];\n $model_dir->descripcion_cargo = $responsable_dir['descripcion_cargo'];\n\n if ($tipo == 70) {\n $tipo_poa = MaestroPoa::model()->findByPk(70);\n } else {\n $tipo_poa = MaestroPoa::model()->findByPk(71);\n }\n \n $criteria=new CDbCriteria;\n $criteria->order='id_poa DESC';\n $verificacion_acc = VswPoa::model()->findByAttributes(array('codigo_dependencia' => $cruge_dependencia->value, 'fk_tipo_poa' => 71), $criteria);\n if($verificacion_acc) {\n $anio_acc = $verificacion_acc->anio + 1; \n } else {\n $anio_acc = date('Y');\n }\n \n $verificacion_pro = VswPoa::model()->findByAttributes(array('codigo_dependencia' => $cruge_dependencia->value, 'fk_tipo_poa' => 70), $criteria);\n if($verificacion_pro){\n $anio_pro = $verificacion_pro->anio + 1; \n } else {\n $anio_pro = date('Y');\n }\n\n if (isset($_POST['VswPersonal']) && isset($_POST['Poa'])) {\n// var_dump($_POST);die;\n $poa = new Poa;\n $poa->nombre = $_POST['Poa']['nombre'];\n $poa->descripcion = $_POST['Poa']['descripcion'];\n $poa->created_by = Yii::app()->user->id;\n $poa->fk_status = 24;\n $poa->created_date = 'now()';\n $poa->modified_date = 'now()';\n if($tipo == 70){\n $tipo_poa = 70;\n $poa->fecha_inicio = $_POST['Poa']['fecha_inicio'];\n $poa->fecha_final = $_POST['Poa']['fecha_final'];\n $poa->fk_historico = $_POST['Poa']['fk_historico'];\n $poa->fk_nacional = $_POST['Poa']['fk_nacional'];\n $poa->fk_estrategico = $_POST['Poa']['fk_estrategico'];\n $poa->fk_general = $_POST['Poa']['fk_general'];\n $poa->fk_estrategico_mr = $_POST['Poa']['fk_estrategico_mr'];\n $poa->fk_institucional = $_POST['Poa']['fk_institucional'];\n $poa->fk_unidad_medida = $_POST['Poa']['fk_unidad_medida'];\n $poa->cantidad = $_POST['Poa']['cantidad'];\n }else{\n $tipo_poa = 71;\n $poa->fecha_inicio = $anio_acc . '-01-01';\n $poa->fecha_final = $anio_acc . '-12-31';\n }\n $poa->fk_tipo_poa = $tipo_poa;\n \n if($poa->save()){\n $id_Poa = $poa->id_poa;\n $responsable = new Responsable;\n $responsable->fk_dir_responsable = $idUser_director->iduser;\n $responsable->fk_persona_registro = $idUser;\n $responsable->fk_poa = $id_Poa;\n $responsable->created_by = Yii::app()->user->id;\n $responsable->fk_estatus = 30; \n $responsable->created_date = 'now()';\n $responsable->modified_date = 'now()';\n $responsable->cod_dependencia_cruge = $cruge_dependencia->value;\n $responsable->dependencia_cruge = $arOpt[$cruge_dependencia->value];\n if($responsable->save()){\n $fieldvalue = CrugeFieldValue::model()->findByAttributes(array('iduser' => $idUser, 'idfield' => 0));\n \n $estatus_poa = new EstatusPoa;\n $estatus_poa->fk_estatus_poa = 50;\n $estatus_poa->fk_poa = $id_Poa;\n $estatus_poa->fk_status = 21;\n $estatus_poa->created_date = 'now()';\n $estatus_poa->created_by = Yii::app()->user->id;\n $estatus_poa->modified_date = 'now()';\n if ($fieldvalue->value == 7 || $fieldvalue->value == 6 || $fieldvalue->value == 3) {\n $entidad = 8;\n } else {\n $entidad = 9;\n }\n $estatus_poa->fk_tipo_entidad = $entidad;\n if ($estatus_poa->save()) {\n// $poa = new Poa;\n $this->redirect(array('create_accion', 'id_poa' => $id_Poa, 'tipo' => $tipo));\n } else {\n echo \"<pre>\";\n var_dump($estatus_poa->Errors);\n exit;\n }\n } else {\n echo \"<pre>Responsable\";\n var_dump($responsable->Errors);\n exit;\n }\n } else {\n \n echo \"<pre>Poa\";\n var_dump($poa->Errors);\n exit;\n \n }\n }\n\n $this->render('create', array(\n 'model' => $model,\n 'model_dir' => $model_dir,\n 'poa' => $poa,\n 'tipo_poa' => $tipo_poa,\n 'anio_pro' => $anio_pro,\n 'maestro' => $maestro,\n \n ));\n }", "title": "" }, { "docid": "b2e79e9403532d003cc4859b79efc29b", "score": "0.59244686", "text": "public function movimientos(){\n require_once $_SERVER['DOCUMENT_ROOT'].\"/bienestarYnuevaImagen/models/consultorioModels.php\";\n $fecha = date(\"Ymd\");\n $get = Validacion::validarNumero($_GET[\"idCtr\"]);\n $regisro = new Consultorio();\n $regisro->setIdConsultorio($get);\n $regisro->setFechaConsulta($fecha);\n $historia = $regisro->getRegistroDatos();\n $paciente = (is_object($historia)) ? $historia->totalPaciente : 0 ;\n $efectivo = (is_object($historia)) ? $historia->sumaEfectivo : 0 ;\n $tarjeta = (is_object($historia)) ? $historia->sumaTarjeta : 0 ;\n $meso = (is_object($historia)) ? $historia->meso : 0 ;\n $con = (is_object($historia)) ? $historia->concentrado : 0 ;\n \n $regisro = new Consultorio();\n $regisro->setIdConsultorio($get);\n $regisro->setFechaConsulta($fecha);\n $dineroQueda = $regisro->getMoneyTotal();\n $totalDinero = (is_object($dineroQueda) && !is_null($dineroQueda->suma)) ? $dineroQueda->suma : 0 ;\n $totalGasto = (is_object($dineroQueda) && !is_null($dineroQueda->gastos)) ? $dineroQueda->gastos : 0 ;\n $totalQuedaDinero = (is_object($dineroQueda) && !is_null($dineroQueda->restaGastos)) ? $dineroQueda->restaGastos : 0 ;\n \n $name = new ModeloBase();\n $nameConsultorio = $name->getAllWhere('consultorio','WHERE consultorio.id_consultorio ='.$get);\n $nombre = $nameConsultorio->fetch_object();\n\n // if($historia>'0'){\n require_once 'views/avanzado/consultorio/movimientosXconsultorio.php';\n // }else{\n // require_once 'views/error/error404.php';\n // }\n }", "title": "" }, { "docid": "87a70e404a65ef0b66c80561caee116a", "score": "0.591366", "text": "public function __construct() {\n parent::__construct();\n $this->load->model(\"korisnik_m\");\n $this->load->model(\"privilegija_m\");\n $this->load->model(\"drzava_m\");\n $this->load->model('korisnik_kontakt_m');\n $this->load->model('grad_m');\n }", "title": "" }, { "docid": "4a98531ae09ecbdab4953497915d3441", "score": "0.59117776", "text": "public function vistaLugaresController(){\n\t\t//Se ejecuta un modelo que obtiene todos los pagos almacenados en la base de datos\n\t\t$respuesta = Datos::vistaPagosModel();\n\t\t//Si el modelo se ejecuta correctamente se imprime cada registro en forma de fila de una tabla\n\t\tif($respuesta){\n\t\t\t//Ciclo que recorre cada registro e imprime su informacion\n\t\t\tforeach ($respuesta as $fila) {\n\t\t\t\t//Modelo que busca la informacion de un grupo en particular\n\t\t\t\t$grupo = Datos::buscarGrupoModel($fila[\"id_grupo\"]);\n\t\t\t\t//Modelo que busca la informacion de una alumna en particular\n\t\t\t\t$alumna = Datos::buscarAlumnaModel($fila[\"id_alumna\"]);\n\t\t\t\t//Se imprimen los datos en forma de fila\n\t\t\t\techo '<tr>\n\t\t\t\t\t\t<td>'.$fila[\"id_pago\"].'</td>\n\t\t\t\t\t\t<td>'.$fila[\"folio\"].'</td>\n\t\t\t\t\t\t<td>'.$alumna[\"nombre_alumna\"].' ' . $alumna[\"apellidos_alumna\"].'</td>\n\t\t\t\t\t\t<td>'.$grupo[\"nombre_grupo\"].'</td>\n\t\t\t\t\t\t<td>'.$fila[\"nom_mama\"]. ' ' . $fila[\"ape_mama\"].'</td>\n\t\t\t\t\t\t<td>'.$fila[\"fecha_pago\"].'</td>\n\t\t\t\t\t\t<td>'.$fila[\"fecha_envio\"].'</td>\n\t\t\t\t\t</tr>';\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "df5de5240e6f4e79658b27dc4afffeba", "score": "0.5911145", "text": "public function upravljanjeRecenzijama() {\n $recenzije = $this->M_Recenzija->dohvatiNepregledaneRecenzije();\n $this->load->view('sablon/headerAdmin.php', ['title' => 'Upravljanje Recenzijama']);\n $this->load->view('stranice/upravljanjeRecenzijama.php', ['recenzije' => $recenzije]);\n $this->load->view('sablon/footer.php');\n }", "title": "" }, { "docid": "b9d80fe6748677c46f55deefa559fc27", "score": "0.5908308", "text": "public function actionReturPenerimaan()\n {\n $model = new GULaporanReturPenerimaanT;\n $format = new MyFormatter();\n $model->unsetAttributes();\n $model->jns_periode = \"hari\";\n $model->tgl_awal = date('Y-m-d', strtotime('first day of this month'));\n $model->tgl_akhir = date('Y-m-d');\n $model->bln_awal = date('Y-m', strtotime('first day of january'));\n $model->bln_akhir = date('Y-m');\n $model->thn_awal = date('Y');\n $model->thn_akhir = date('Y');\n if (isset($_GET['GULaporanReturPenerimaanT'])) {\n $model->attributes = $_GET['GULaporanReturPenerimaanT'];\n $model->jns_periode = $_GET['GULaporanReturPenerimaanT']['jns_periode'];\n $model->tgl_awal = $format->formatDateTimeForDb($_GET['GULaporanReturPenerimaanT']['tgl_awal']);\n $model->tgl_akhir = $format->formatDateTimeForDb($_GET['GULaporanReturPenerimaanT']['tgl_akhir']);\n $model->bln_awal = $format->formatMonthForDb($_GET['GULaporanReturPenerimaanT']['bln_awal']);\n $model->bln_akhir = $format->formatMonthForDb($_GET['GULaporanReturPenerimaanT']['bln_akhir']);\n $model->thn_awal = $_GET['GULaporanReturPenerimaanT']['thn_awal'];\n $model->thn_akhir = $_GET['GULaporanReturPenerimaanT']['thn_akhir'];\n $bln_akhir = $model->bln_akhir.\"-\".date(\"t\",strtotime($model->bln_akhir));\n $thn_akhir = $model->thn_akhir.\"-\".date(\"m-t\",strtotime($model->thn_akhir.\"-12\"));\n switch($model->jns_periode){\n case 'bulan' : $model->tgl_awal = $model->bln_awal.\"-01\"; $model->tgl_akhir = $bln_akhir; break;\n case 'tahun' : $model->tgl_awal = $model->thn_awal.\"-01-01\"; $model->tgl_akhir = $thn_akhir; break;\n default : null;\n }\n $model->tgl_awal = $model->tgl_awal.\" 00:00:00\";\n $model->tgl_akhir = $model->tgl_akhir.\" 23:59:59\";\n }\n $this->render('returPenerimaan/returPenerimaan',array(\n 'model'=>$model,'format'=>$format\n ));\n }", "title": "" }, { "docid": "5a43980a692dda238f8cce26f41c210c", "score": "0.5905098", "text": "public function actionUbahStatusPeriksaRJ()\n {\n $pendaftaran_id = Yii::app()->session['pendaftaran_id'];\n $format = new MyFormatter();\n $model = PPPendaftaranT::model()->findByPk($pendaftaran_id);\n $model->statusperiksa = Params::STATUSPERIKSA_BATAL_PERIKSA;\n $modBatalPeriksa = new PasienbatalperiksaR;\n $model->tglselesaiperiksa = date('Y-m-d h:i:s'); \n if(isset($_POST['PPPendaftaranT']))\n {\n $update = PPPendaftaranT::model()->updateByPk($pendaftaran_id,array('statusperiksa'=>$_POST['PPPendaftaranT']['statusperiksa'],'tglselesaiperiksa'=>($_POST['PPPendaftaranT']['tglselesaiperiksa'])));\n if(isset($_POST['PendaftaranT']['statusperiksa']) == \"BATAL PERIKSA\"){\n $modBatalPeriksa = new PasienbatalperiksaR;\n $modBatalPeriksa->pendaftaran_id = $pendaftaran_id;\n $modBatalPeriksa->pasien_id = $model->pasien_id;\n $modBatalPeriksa->tglbatal = $format->formatDateTimeForDb($_POST['PasienbatalperiksaR']['tglbatal']);\n $modBatalPeriksa->keterangan_batal = $_POST['PasienbatalperiksaR']['keterangan_batal'];\n $modBatalPeriksa->create_time = date('Y-m-d');\n $modBatalPeriksa->update_time = date('Y-m-d');\n $modBatalPeriksa->create_loginpemakai_id = Yii::app()->user->id;\n $modBatalPeriksa->update_loginpemakai_id = Yii::app()->user->id;\n $modBatalPeriksa->create_ruangan = Yii::app()->user->getState('ruangan_id');\n\n if($modBatalPeriksa->validate()){\n if($modBatalPeriksa->save()){\n PPPendaftaranT::model()->updateByPk($pendaftaran_id,array('pasienbatalperiksa_id'=>$modBatalPeriksa->pasienbatalperiksa_id));\n\n }\n }\n if (Yii::app()->request->isAjaxRequest)\n {\n echo CJSON::encode(array(\n 'status'=>'proses_form', \n 'div'=>\"<div class='flash-success'>Data Pasien <b></b> berhasil disimpan </div>\",\n ));\n exit; \n }\n }\n\n if($update)\n {\n if (Yii::app()->request->isAjaxRequest)\n {\n echo CJSON::encode(array(\n 'status'=>'proses_form', \n 'div'=>\"<div class='flash-success'>Data Pasien <b></b> berhasil disimpan </div>\",\n ));\n exit; \n }\n }\n else\n {\n\n if (Yii::app()->request->isAjaxRequest)\n {\n echo CJSON::encode(array(\n 'status'=>'proses_form', \n 'div'=>\"<div class='flash-error'>Data Pasien <b></b> gagal disimpan </div>\",\n ));\n exit; \n }\n }\n }\n\n if (Yii::app()->request->isAjaxRequest)\n { \n echo CJSON::encode(array(\n 'status'=>'create_form', \n 'div'=>$this->renderPartial('_ubahStatusPeriksa', array('model'=>$model,'modBatalPeriksa'=>$modBatalPeriksa),true)));\n exit; \n }\n }", "title": "" }, { "docid": "b64d47b221bf9a2aa8ce3ed32fa822b3", "score": "0.5901217", "text": "public function reportovanjeTudjegRecepta(){\n $this->provera();\n date_default_timezone_set (\"Europe/Belgrade\");\n $datum = date('Y-m-d H:i:s');\n $idKoktela = $this->request->getPost('idKoktela');\n $idRegistrovanog = $this->session->get(\"korisnik\")->idKorisnika;\n \n $razlogModel = new RazlogModel();\n $prijavaModel = new PrijavaModel();\n $razlozi = $razlogModel->findall();\n $razloziprijave = array();\n $razlog_duplikat = 0;\n $duplikat = $this->request->getPost('original');\n foreach($razlozi as $razlog){\n $ponuda = NULL;\n $ponuda = $this->request->getPost('r['.$razlog->opisRazloga.']');\n if(isset($ponuda)){\n $razloziprijave[]=$razlog->idRazloga;\n if($razlog->idRazloga==3) $razlog_duplikat = 1;\n }\n } \n $razloziPrijaveModel = new RazloziPrijaveModel();\n $prijavaModel->save(['idKoktela' => $idKoktela, 'idRegistrovanog' => $idRegistrovanog, 'datum' => $datum, 'obrisanaPrijava'=>0]);\n foreach($razloziprijave as $razlogprijave){\n if($razlogprijave==3){\n $razloziPrijaveModel->save(['datum'=> $datum, 'idKoktela' => $idKoktela, 'idRegistrovanog' => $idRegistrovanog, 'idRazloga' => $razlogprijave, 'duplikat'=> $duplikat]);\n }\n else{\n $razloziPrijaveModel->save(['datum'=> $datum, 'idKoktela' => $idKoktela, 'idRegistrovanog' => $idRegistrovanog, 'idRazloga' => $razlogprijave]);\n }\n }\n return redirect()->to(site_url('Pretraga/koktel/'.$idKoktela));\n }", "title": "" }, { "docid": "8979942bb22e135e2e2bd50b78609618", "score": "0.5900118", "text": "function __construct() {\n //LLamar al constructor del Modelo\n parent::__construct();\n\t\n }", "title": "" }, { "docid": "b65fb3ccb008e64007b2faf2490af810", "score": "0.58984387", "text": "public function ukloniArtikal()\n {\n $am = new ArtikalModel();\n $artikli = $am->findAll();\n $this->show('uklanjanje_artikla_iz_sistema',[\"artikli\"=>$artikli]);\n }", "title": "" }, { "docid": "8f097936954e0dddb8cb2d209873401e", "score": "0.58967507", "text": "function unos(){\n\t $novifilm = array( // prikupi podatke koje je korisnik uneo u formu\n\t 'ime' => $this->input->post('ime'),\n\t\t'zanr' => $this->input->post('zanr'),\n\t\t'godina' => $this->input->post('godina'),\n\t\t'lokacija' => $this->input->post('lokacija'),\n\t\t'link' => $this->input->post('link'),\n\t\t'poznati' => $this->input->post('poznati')\n\t );\n\t $ime = $this->db->escape_str($novifilm['ime']);//prvo se radi provera u bazi da li je film vec unet ranije po kolonama ime i godina\n\t $godina = $novifilm['godina'];\n\t $where = \"ime = '$ime' AND godina = '$godina'\";\n\t $this->db->select('ime, godina');\n\t $this->db->from('filmovi');\n\t $this->db->where($where);\n\t $query = $this->db->get();\n\t if($query->num_rows() > 0){ // ako vrati neki red tj vec ima film tog imena iz te godine\n\t // podesi rez['vecunet'] da bi kontroler znao da film postoji u bazi i poslao tu poruku u view unos.php\n\t $rez['vecunet'] = 'Film je vec unet!'; \n\t }else{ // ako nema tog filma u bazi, unesi ga i vrati kontroleru ime zanr i godinu da posalje u view unos.php za prikaz\n\t $insert = $this->db->insert('filmovi', $novifilm);\n\t\t$rez['unetfilm'] = $novifilm;\n\t\t$rez['unetoime'] = $novifilm['ime'];\n\t\t$rez['unetagodina'] = $novifilm['godina'];\n\t\t$rez['unetizanr'] = $novifilm['zanr'];\n\t }\n\t return $rez; // vrati u kontroler $rez array\n\t}", "title": "" }, { "docid": "f854f4809fb98fddbd3bfee0704bab12", "score": "0.58914757", "text": "public function actionCreate()\n {\n\t\t $session = new Session();\n\t\t $id_perkara = $session->get('id_perkara');\n\t\t $model = new PdmBa3();\n\t\t $modelMsSaksi = new PdmMsSaksiAhli();\n\t\t \n\t\t $modelTersangka = $this->findModelTersangka($id_perkara);\n\t\t $modelSpdp = $this->findModelSpdp($id_perkara);\n\t\t $modelpenyidik = PdmJaksaPenerima::findAll(['id_perkara' => $model->id_perkara, 'code_table' => GlobalConstMenuComponent::BA3, 'id_table' => $model->id_ba3]);\n\t\t \n\t\t if ($modelpenyidik == null) {\n $modelpenyidik = new PdmJaksaPenerima();\n }\n\t\t\n\t\t$modeljaksi = PdmJaksaSaksi::findAll(['id_perkara' => $model->id_perkara, 'code_table' => GlobalConstMenuComponent::BA3, 'id_table' => $model->id_ba3]);\n\t\t\n\t\t if ($modeljaksi == null) {\n $modeljaksi = new PdmJaksaSaksi();\n }\n\t\t$searchJPU = new VwJaksaPenuntutSearch();\n $dataJPU = $searchJPU->search2(Yii::$app->request->queryParams);\n $dataJPU->pagination->pageSize = 5;\n\t\t\n\t\t$modelMsSaksi = PdmMsSaksiAhli::findOne(['id_saksi_ahli' => $model->id_ms_saksi_ahli]);\n if ($modelMsSaksi == null) {\n $modelMsSaksi = new PdmMsSaksiAhli();\n }\n\t\t\n\t\tif ($model->load(Yii::$app->request->post())) {\n\t\t\t\n\t\t\t$seq = Yii::$app->db->createCommand(\"select public.generate_pk('pidum.pdm_ba3', 'id_ba3', '\" . \\Yii::$app->globalfunc->getSatker()->inst_satkerkd . \"', '\" . date('Y') . \"')\")->queryOne();\n\t\t\t\n\t\t\tif ($modelMsSaksi->id_saksi_ahli == null) {\n $id_perkara_MsSaksiAhli = Yii::$app->db->createCommand(\"select public.generate_pk('pidum.pdm_ms_saksi_ahli', 'id_saksi_ahli', '\" . \\Yii::$app->globalfunc->getSatker()->inst_satkerkd . \"', '\" . date('Y') . \"')\")->queryOne();\n $modelMsSaksi = new PdmMsSaksiAhli();\n $modelMsSaksi->id_saksi_ahli = $id_perkara_MsSaksiAhli['generate_pk'];\n $modelMsSaksi->nama = $_POST['PdmMsSaksiAhli']['nama'];\n $modelMsSaksi->tmpt_lahir = $_POST['PdmMsSaksiAhli']['tmpt_lahir'];\n $modelMsSaksi->tgl_lahir = $_POST['PdmMsSaksiAhli']['tgl_lahir'];\n $modelMsSaksi->id_jkl = $_POST['PdmMsSaksiAhli']['id_jkl'];\n $modelMsSaksi->alamat = $_POST['PdmMsSaksiAhli']['alamat'];\n $modelMsSaksi->warganegara = $_POST['PdmMsSaksiAhli']['warganegara'];\n $modelMsSaksi->id_agama = $_POST['PdmMsSaksiAhli']['id_agama'];\n $modelMsSaksi->pekerjaan = $_POST['PdmMsSaksiAhli']['pekerjaan'];\n $modelMsSaksi->id_pendidikan = $_POST['PdmMsSaksiAhli']['id_pendidikan'];\n $modelMsSaksi->save();\n } else {\n\t\t\t\t$modelMsSaksi = PdmMsSaksiAhli::findOne(['id_saksi_ahli' => $model->id_ms_saksi_ahli]);\n $modelMsSaksi->flag = '2';\n $modelMsSaksi->nama = $_POST['PdmMsSaksiAhli']['nama'];\n $modelMsSaksi->tmpt_lahir = $_POST['PdmMsSaksiAhli']['tmpt_lahir'];\n $modelMsSaksi->tgl_lahir = $_POST['PdmMsSaksiAhli']['tgl_lahir'];\n $modelMsSaksi->id_jkl = $_POST['PdmMsSaksiAhli']['id_jkl'];\n $modelMsSaksi->alamat = $_POST['PdmMsSaksiAhli']['alamat'];\n $modelMsSaksi->warganegara = $_POST['PdmMsSaksiAhli']['warganegara'];\n $modelMsSaksi->id_agama = $_POST['PdmMsSaksiAhli']['id_agama'];\n $modelMsSaksi->pekerjaan = $_POST['PdmMsSaksiAhli']['pekerjaan'];\n $modelMsSaksi->id_pendidikan = $_POST['PdmMsSaksiAhli']['id_pendidikan'];\n $modelMsSaksi->update();\n }\n\t\t\t\n\t\t\tif ($model->id_ba3 != null) {\n $model->lokasi = $_POST['PdmBa3']['lokasi'];\n $model->flag ='2';\n $model->save();\n } else {\n $model->id_perkara = $id_perkara;\n $model->id_ba3 = $seq['generate_pk'];\n\t\t\t\t$model->lokasi = $_POST['PdmBa3']['lokasi'];\n $model->id_ms_saksi_ahli = $modelMsSaksi->id_saksi_ahli;\n $model->save();\n\n Yii::$app->globalfunc->getSetStatusProcces($model->id_perkara, GlobalConstMenuComponent::BA3);\n }\n\t\t\t\n\t\t\t//Jaksa Penyidik\n PdmJaksaPenerima::deleteAll(['id_perkara' => $model->id_perkara, 'code_table' => GlobalConstMenuComponent::BA3, 'id_table' => $model->id_ba3]);\n if (isset($_POST['nip'])) {\n foreach ($_POST['nip'] as $key) {\n $query = new Query;\n $query->select('*')\n ->from('pidum.vw_jaksa_penuntut')\n ->where(\"peg_instakhir='\" . \\Yii::$app->globalfunc->getSatker()->inst_satkerkd . \"' and peg_nik='\" . $key . \"'\");\n $command = $query->createCommand();\n $data = $command->queryAll();\n $seqjpp = Yii::$app->db->createCommand(\"select public.generate_pk('pidum.pdm_jaksa_penerima', 'id_jpp', '\" . \\Yii::$app->globalfunc->getSatker()->inst_satkerkd . \"', '\" . date('Y') . \"')\")->queryOne();\n\n $modelpenyidik = new PdmJaksaPenerima();\n $modelpenyidik->id_jpp = $seqjpp['generate_pk'];\n $modelpenyidik->id_perkara = $id_perkara;\n $modelpenyidik->code_table = GlobalConstMenuComponent::BA3;\n $modelpenyidik->id_table = $model->id_ba3;\n $modelpenyidik->flag = '1';\n $modelpenyidik->nama = $data[0]['peg_nama'];\n $modelpenyidik->nip = $data[0]['peg_nip'];\n $modelpenyidik->jabatan = $data[0]['jabatan'];\n $modelpenyidik->pangkat = $data[0]['pangkat'];\n\n $modelpenyidik->save();\n }\n }\n\t\t\t\n\t\t\t//Jaksa Saksi\n PdmJaksaSaksi::deleteAll(['id_perkara' => $model->id_perkara, 'code_table' => GlobalConstMenuComponent::BA3, 'id_table' => $model->id_ba3]);\n if (isset($_POST['txtnip'])) {\n foreach ($_POST['txtnip'] as $key) {\n $query = new Query;\n $query->select('*')\n ->from('pidum.vw_jaksa_penuntut')\n ->where(\"peg_instakhir='\" . \\Yii::$app->globalfunc->getSatker()->inst_satkerkd . \"' and peg_nik='\" . $key . \"'\");\n $command = $query->createCommand();\n $data = $command->queryAll();\n $seqjpp = Yii::$app->db->createCommand(\"select public.generate_pk('pidum.pdm_jaksa_saksi', 'id_jpp', '\" . \\Yii::$app->globalfunc->getSatker()->inst_satkerkd . \"', '\" . date('Y') . \"')\")->queryOne();\n\n $modeljaksi = new PdmJaksaSaksi();\n $modeljaksi->id_jpp = $seqjpp['generate_pk'];\n $modeljaksi->id_perkara = $id_perkara;\n $modeljaksi->code_table = GlobalConstMenuComponent::BA3;\n $modeljaksi->id_table = $model->id_ba3;\n $modeljaksi->flag = '1';\n $modeljaksi->nama = $data[0]['peg_nama'];\n $modeljaksi->nip = $data[0]['peg_nip'];\n $modeljaksi->jabatan = $data[0]['jabatan'];\n $modeljaksi->pangkat = $data[0]['pangkat'];\n\n $modeljaksi->save();\n }\n }\n\t\t\t\n\t\t\t//notifkasi simpan\n Yii::$app->getSession()->setFlash('success', [\n 'type' => 'success', //String, can only be set to danger, success, warning, info, and growl\n 'duration' => 5000, //Integer //3000 default. time for growl to fade out.\n 'icon' => 'glyphicon glyphicon-ok-sign', //String\n 'message' => 'Data Berhasil Disimpan', // String\n 'title' => 'Save', //String\n 'positonY' => 'top', //String // defaults to top, allows top or bottom\n 'positonX' => 'center', //String // defaults to right, allows right, center, left\n 'showProgressbar' => true,\n ]);\n return $this->redirect('index');\n } else {\n return $this->render('update', [\n 'model' => $model,\n\t\t\t\t\t\t'searchJPU' => $searchJPU,\n\t\t\t\t\t\t'dataJPU' => $dataJPU,\n\t\t\t\t\t\t'modeljaksi' => $modeljaksi, \n\t\t\t\t\t\t'modelpenyidik' =>$modelpenyidik,\n\t\t\t\t\t\t'modelTersangka' => $modelTersangka,\n\t\t\t\t\t\t'modelSpdp' => $modelSpdp,\n\t\t\t\t\t\t'modelMsSaksi'=>$modelMsSaksi,\n\t\t\t\t\t\t'sysMenu' => $this->sysMenu,\n 'id' => $model->id_ba3,\n ]);\n }\n\t\t\t\n\t\n\t}", "title": "" }, { "docid": "6fa22818eed136abce9b2ce0b3af39d3", "score": "0.58897656", "text": "public function soal_view()\n {\n $id = $_GET['url'];\n $id = explode('/',$_GET['url']);\n $id = end($id);\n\n /**\n * mata pelajaran\n * \n */\n $result = $this->model('PaketSoalModel')->show('soalsiswa',$id);\n if(!is_null($result)){\n $key = array_keys($result);\n\n $count = count($key);\n $num = NULL;\n\n for ($i=0; $i < $count ; $i++) { \n if(is_numeric($key[$i])) $num = true;\n }\n\n // foreach ($resultkey as $key) {\n // if(!is_numeric($key)) $num = false;\n // }\n if(!$num):\n $data['matapelajaran'][] = $result;\n else:\n $data['matapelajaran'] = $result;\n endif;\n // var_dump($data['matapelajaran']);\n // die();\n }else{\n $data['matapelajaran']=NULL;\n }\n\n /**\n * data soal\n */\n $result = $this->model('PaketSoalModel')->show('soalview',$id);\n if(!is_null($result)){\n $key = array_keys($result);\n\n $count = count($key);\n $num = NULL;\n\n for ($i=0; $i < $count ; $i++) { \n if(is_numeric($key[$i])) $num = true;\n }\n\n // foreach ($resultkey as $key) {\n // if(!is_numeric($key)) $num = false;\n // }\n if(!$num):\n $data['soal'][] = $result;\n else:\n $data['soal'] = $result;\n endif;\n // var_dump($data['soal']);\n // die();\n }else{\n $data['soal']=NULL;\n }\n\n $this->view('admin/soalView',$data,'self');\n }", "title": "" }, { "docid": "2ddea445b9d1ea308b8afdcde580c7d6", "score": "0.58891284", "text": "public function muestraAsistencias(){\n\t\t$objeto = new modelo();\n\t\t$data[\"titulo\"] = \"Asistencias\";\n\t\t$data[\"objeto\"] = $objeto->getAsistencias();\n\t\t$data[\"pagina\"] = $objeto->getPaginacionAsistencias();\n\n\t\t//mandando información del modelo a la vista\n\t\trequire_once \"vista/admin/asistencias.php\";\n\t}", "title": "" }, { "docid": "230be46dbb90d45475dd0f98c6ec1688", "score": "0.58788", "text": "public function suchen($a = null){\n\t\t//Erstellt model mit anbindung zur Tabelle lied\n\t\t$mysql = MySQL::getInstance(array('localhost', 'root', '', 'amdb'));\n\t\t$this->model = new Model($mysql, 'lied');\n\t\tif($a!=null){\n\t\t$this->titel = $a['titel'];\n\t\t$this->bewertung = $a['bewertung'];\n\t\t$this->views = $a['views'];\n\t\t$this->genre = $a['genre'];\n\t\t$this->dauer = $a['dauer'];\n\t\tif($this->views[0]!=\"\" and $this->views[1]==\"\"){\n\t\t\t$this->views[1] = \"1000000\";\n\t\t}\n\t\tif($this->views[0]==\"\" and $this->views[1]==\"\"){\n\t\t\t$this->views = null;\n\t\t}\n\t\t}\n\t\t//schreibt alle ids in ein das array ergebnisse\n\t\t$this->ergebnisse = $this->getID_Lied($this->model->fetchAll());\n\t\t//führt die Titelsuche durch\n\t\tif($this->titel!=null){\n\t\t\t$tmp = array();\n\t\t\tforeach ($this->ergebnisse as $e){\n\t\t\t\t$this->model->db->query('Select * from lied where Titel like \"%'.$this->titel.'%\" and ID_Lied = '.$e.';');\n\t\t\t\tif ($this->model->db->countRows()!=0){\n\t\t\t\t\tarray_push($tmp, $e);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//schreibt die ergebnisse in das $this->ergebnisse array\n\t\t\t$this->ergebnisse = $tmp;\n\t\t}\n\t\t//führt die Bewertungssuche durch\n\t\tif ($this->bewertung !=null) {\n\t\t\t\n\t\t\t$tmp = array(); \n\t\t\tforeach ($this->ergebnisse as $e){\n\t\t\t\t//es werden nur die ids geprüft, welche noch im $this->ergebnisse sind\n\t\t\t\t$this->model->db->query('Select AVG(Bewertung) as be from bewertung where Lied_ID = '.$e.';');\n\t\t\t\t$test = $this->model->fetch()->be;\n\t\t\t\tif($test != null){\n\t\t\t\t\t$this->model->db->query('Select * from lied where '.round($test).'='.$this->bewertung.' and ID_Lied = '.$e.';');\n\t\t\t\t\tif ($this->model->db->countRows()!=0){\n\t\t\t\t\t\tarray_push($tmp, $e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//schreibt die ergebnisse in das $this->ergebnisse array\n\t\t\t$this->ergebnisse = $tmp;\n\t\t}\n\t\t//führt die genresuche durch\n\t\tif($this->genre != null){\n\t\t\t$tmp = array();\n\t\t\tforeach ($this->ergebnisse as $e){\n\t\t\t\t//es werden nur die ids geprüft, welche noch im $this->ergebnisse sind\n\t\t\t\t$this->model->db->query('Select * from lied where Genre_ID = (Select ID_Genre from genre where Genrename = \"'.$this->genre.'\") and ID_Lied = '.$e.';');\n\t\t\t\tif ($this->model->db->countRows()!=0){\n\t\t\t\t\tarray_push($tmp, $e);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//schreibt die ergebnisse in das $this->ergebnisse array\n\t\t\t$this->ergebnisse = $tmp;\n\t\t}\n\t\t//führt die dauersuche durch\n\t\tif($this->dauer != null){\n\t\t\t$tmp = array();\n\t\t\tforeach ($this->ergebnisse as $e){\n\t\t\t\t//es werden nur die ids geprüft, welche noch im $this->ergebnisse sind\n\t\t\t\t$this->model->db->query('Select * from lied where Dauer between '.$this->dauer[0].' and '.$this->dauer[1].' and ID_Lied = '.$e.';');\n\t\t\t\tif ($this->model->db->countRows()!=0){\n\t\t\t\t\tarray_push($tmp, $e);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//schreibt die ergebnisse in das $this->ergebnisse array\n\t\t\t$this->ergebnisse = $tmp;\n\t\t}\n\t\t//führt die viewssuche durch\n\t\tif ($this->views != null) {\n\t\t\t$tmp = array();\n\t\t\t$youtube = new youtube();\n\t\t\tforeach ($this->ergebnisse as $e){\n\t\t\t\t//es werden nur die ids geprüft, welche noch im $this->ergebnisse sind\n\t\t\t\t//dabei muss es aber die youtube api verwenden\n\t\t\t\t$this->model->db->query('Select * from lied where ID_Lied = '.$e.';');\n\t\t\t\t$video = $this->model->fetch();\n\t\t\t\t$params = $youtube->getParams($video);\n\t\t\t\t$params['views'] = str_replace(\"'\",\"\", $params['views']);\n\t\t\t\tif (($params['views'] > $this->views[0]) && ($params['views'] < $this->views[1])) {\n\t\t\t\t\tarray_push($tmp, $e);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//schreibt die ergebnisse in das $this->ergebnisse array\n\t\t\t$this->ergebnisse = $tmp;\n\t\t}\n\t\treturn $this->ergebnisse;\n\t}", "title": "" }, { "docid": "48776951f7a25396a78b393dca853380", "score": "0.5876828", "text": "public function vista_perfil()\n {\n\n $correo_usuario = $_SESSION['correo'];\n\n //consulta directa de los planes disponibles para que el suscriptor pueda elegir directamente\n $query = $this->db->query('SELECT * FROM PLAN_NUTRICIONAL');\n $results_pn = $query->result();\n\n\n //obtener tipo de actitud fisica que tine el suscriptor para grabar en la tabla de afiliacion\n\n $query = $this->db->query('SELECT * FROM PLAN_NUTRICIONAL_ACT_FISICA');\n $results_af = $query->result();\n\n //obtener si existe alguna aptitud especial en el usuario\n $query = $this->db->query('SELECT * FROM PLAN_NUTRICIONAL_CONDICION_ESPECIAL');\n $results_ce = $query->result();\n\n //consulta para verificar si existe suscripcion para este usuario\n $num_registro = $_SESSION['num_registro'];\n\t\t$suscrito = $this->db->query(\"SELECT * FROM AFILIADOS WHERE num_registro = '$num_registro'\");\n\t\t$results_na = $suscrito->row();\n\n //definicion de variables que se eniaran a la vista para los select de los planes\n $data['actitud_fisica'] = $results_af;\n $data['condicion_especial'] = $results_ce;\n\n\n //envio del correo a la vista de perfil del uusario\n $data['correo'] = $correo_usuario;\n\n //consulta de datos del usuario para referencia del usuario al momento de actualizar sus datos\n $consulta_datos_afiliado = $this->db->query(\"SELECT af.correo, af.phone, af.id_afiliacion, af.apellido, af.nombre, af.edad, af.sexo, af.peso, af.estatura,pna.descripcion as act_fisica, pnc.descripcion as condicion_esp, pa.pais, es.estado, ciu.ciudad, sec.Sector, af.address, af.zipcode FROM AFILIADOS af INNER JOIN PAIS pa ON af.pais = pa.id_pais INNER JOIN ESTADOS es ON af.state = es.id_estado INNER JOIN CIUDADES ciu ON af.city = id_ciudad INNER JOIN SECTORES sec ON af.sector = sec.id INNER JOIN PLAN_NUTRICIONAL_ACT_FISICA pna ON af.act_fisica = pna.act_fisica INNER JOIN PLAN_NUTRICIONAL_CONDICION_ESPECIAL pnc ON af.condicion_esp = pnc.condicion_esp WHERE correo = '$correo_usuario'\");\n\n $respuesta_datos_afiliado = $consulta_datos_afiliado->row();\n\n //obtener los paises\n $query = $this->db->query(\"SELECT * FROM PAIS\");\n $results_pais= $query->result();\n\n //obtener los paises\n $query = $this->db->query(\"SELECT * FROM ESTADOS WHERE id_estado = '24'\");\n $results_estados= $query->result();\n\n //obtener los paises\n $query = $this->db->query(\"SELECT * FROM CIUDADES WHERE id_ciudad = '149'\");\n $results_ciudades= $query->result();\n\n //obtener los paises\n $query = $this->db->query(\"SELECT * FROM SECTORES\");\n $results_sectores= $query->result();\n\n $data['pais'] = $results_pais;\n $data['estado'] = $results_estados;\n $data['ciudades'] = $results_ciudades;\n $data['sectores'] = $results_sectores;\n\n //datos enviados a la vista para referencia del usuario\n $data['id_afiliado'] = $respuesta_datos_afiliado->id_afiliacion;\n $data['nombre'] = $respuesta_datos_afiliado->nombre;\n $data['apellido'] = $respuesta_datos_afiliado->apellido;\n $data['edad'] = $respuesta_datos_afiliado->edad;\n $data['estatura'] = $respuesta_datos_afiliado->estatura;\n $data['sexo'] = $respuesta_datos_afiliado->sexo;\n $data['peso'] = $respuesta_datos_afiliado->peso;\n $data['act_fisica'] = $respuesta_datos_afiliado->act_fisica;\n $data['condicion_esp'] = $respuesta_datos_afiliado->condicion_esp;\n $data['phone_afiliado'] = $respuesta_datos_afiliado->phone;\n\n //------------------------------------\n $data['address_afiliado'] = $respuesta_datos_afiliado->address;\n $data['pais_afiliado'] = $respuesta_datos_afiliado->pais;\n $data['estado_afliado'] = $respuesta_datos_afiliado->estado;\n $data['ciudad_afiliado'] = $respuesta_datos_afiliado->ciudad;\n $data['sector_afiliado'] = $respuesta_datos_afiliado->Sector;\n $data['zipcode_afiliado'] = $respuesta_datos_afiliado->zipcode;\n\n\n $this->load->view('headers/header_loged');\n $this->load->view('perfil_usuario', $data);\n $this->load->view('footer/footer');\n\n }", "title": "" }, { "docid": "80da15f7744b90c53d9fe8f08ab90128", "score": "0.58681375", "text": "public function action_index()\n {\n\n //->and_where('show_' . $this->language, '=', 1)->and_where('published', '=', 1)->find_all();\n\n /*$search_string='Новый заголовок для супер точности';\n $search_string= Security::xss_clean(mysql_real_escape_string($search_string));\n\n $sql=\"SELECT books.*,\n MATCH (title, author, description) AGAINST ('$search_string') AS relevance\n FROM books\n WHERE MATCH (title, author, description) AGAINST ('$search_string')\n AND show_$this->language = '1'\n AND published = '1'\n ORDER BY relevance DESC\";\n\n $result=DB::query(Database::SELECT,$sql)->as_object()->execute();\n\n foreach ($result as $item){\n var_dump($item->title.' '.$item->relevance);\n }*/\n //exit;\n if ($this->request->post()){\n $name_ru=arr::get($_POST,'name_ru');\n\n $chronologies_lvl1=ORM::factory('Chronology')->where('parent_id','=',$name_ru)->find_all();\n $i=0;\n\n foreach ($chronologies_lvl1 as $item){\n $po=ORM::factory('Chronology_Line')->where('period_id','=',$item->id)->and_where('title_ru','<>','')->find_all();\n if ($po->count()!=0){\n $i=$i+$po->count();\n }\n }\n\n echo('ru '.$i.'<br>');\n\n $chronologies_lvl1=ORM::factory('Chronology')->where('parent_id','=',$name_ru)->find_all();\n $i=0;\n\n foreach ($chronologies_lvl1 as $item){\n $po=ORM::factory('Chronology_Line')->where('period_id','=',$item->id)->and_where('title_kz','<>','')->find_all();\n if ($po->count()!=0){\n $i=$i+$po->count();\n }\n }\n\n echo('kz '.$i.'<br>');\n\n $chronologies_lvl1=ORM::factory('Chronology')->where('parent_id','=',$name_ru)->find_all();\n $i=0;\n\n foreach ($chronologies_lvl1 as $item){\n $po=ORM::factory('Chronology_Line')->where('period_id','=',$item->id)->and_where('title_en','<>','')->find_all();\n if ($po->count()!=0){\n $i=$i+$po->count();\n }\n }\n\n echo('en '.$i.'<br>');\n\n /* $type=arr::get($_POST,'type');\n\n if (isset($type)){\n $name=ORM::factory('Page')->where('name_ru','=',$name_ru)->find();\n }else{\n $name=ORM::factory('Page')->where('name_ru','LIKE','%'.$name_ru.'%')->find();\n }\n\n //$name=ORM::factory('Page')->where('name_ru','LIKE','%'.$name_ru.'%')->find();\n $id=$name->id;\n echo('Название: '.$name->name_ru.'<br>');\n echo('ID: '.$id.'<br>'.'<br>');\n\n //$sql=\"SELECT * FROM `pages_contents` WHERE `date`<'2014-02-28 00:00:00' AND `page_id`='$id' AND `title_ru`<>'';\";\n $result=ORM::factory('Pages_Content')->where('date','<=','2014-02-28 23:59:59')->and_where('page_id','=',$id)->and_where('title_ru','<>','')->find_all();\n echo (\"ru =\".$result->count().'<br>');\n\n //$sql=\"SELECT * FROM `pages_contents` WHERE `date`<'2014-02-28 00:00:00' AND `page_id`='$id' AND `title_kz`<>'';\";\n $result=ORM::factory('Pages_Content')->where('date','<=','2014-02-28 23:59:59')->and_where('page_id','=',$id)->and_where('title_kz','<>','')->find_all();\n echo (\"kz =\".$result->count().'<br>');\n\n //$sql=\"SELECT * FROM `pages_contents` WHERE `date`<'2014-02-28 00:00:00' AND `page_id`='$id' AND `title_en`<>'';\";\n $result=ORM::factory('Pages_Content')->where('date','<=','2014-02-28 23:59:59')->and_where('page_id','=',$id)->and_where('title_en','<>','')->find_all();\n echo (\"en =\".$result->count().'<br>'.'<br>');\n\n //$sql=\"SELECT * FROM `pages_contents` WHERE `date`<'2014-02-28 00:00:00' AND `page_id`='$id' AND `title_ru`<>'' AND `published`='1';\";\n $result=ORM::factory('Pages_Content')->where('date','<=','2014-02-28 23:59:59')->and_where('page_id','=',$id)->and_where('title_ru','<>','')->and_where('published','=','1')->find_all();\n echo (\"ru published =\".$result->count().'<br>');\n\n //$sql=\"SELECT * FROM `pages_contents` WHERE `date`<'2014-02-28 00:00:00' AND `page_id`='$id' AND `title_kz`<>'' AND `published`='1';\";\n $result=ORM::factory('Pages_Content')->where('date','<=','2014-02-28 23:59:59')->and_where('page_id','=',$id)->and_where('title_kz','<>','')->and_where('published','=','1')->find_all();\n echo (\"kz published =\".$result->count().'<br>');\n\n //$sql=\"SELECT * FROM `pages_contents` WHERE `date`<'2014-02-28 00:00:00' AND `page_id`='$id' AND `title_en`<>'' AND `published`='1';\";\n $result=ORM::factory('Pages_Content')->where('date','<=','2014-02-28 23:59:59')->and_where('page_id','=',$id)->and_where('title_en','<>','')->and_where('published','=','1')->find_all();\n echo (\"en published =\".$result->count().'<br>'.'<br>');*/\n }\n\n //$id= $this->request->param('id',0);\n\n\n\n }", "title": "" }, { "docid": "a8466d6f2645d31d6669bff3a46e1b71", "score": "0.58658904", "text": "public function takeModel();", "title": "" }, { "docid": "9dc85b8926f8ed53cd6b4f4d525ba0de", "score": "0.58643496", "text": "public function actionUpdate($id)\n {\t\n $sysMenu = PdmSysMenu::findOne(['kd_berkas' => GlobalConstMenuComponent::CekBerkas ]);\n $id2 = Yii::$app->session->get('id_perkara');\n\t\t\n $model = PdmBerkas::findOne(['id_perkara' => $id2 ,'id_berkas' => $id]);\n\n //var_dump($id2);exit;\n if($model == null){\n $model = new PdmBerkas();\n }\n\n\n $modelSpdp = PdmSpdp::findOne(['id_perkara' => $model->id_perkara]);\n // $modelTersangka = MsTersangka::find()\n // ->where('id_perkara=:id_perkara AND flag <>:flag order by no_urut', [':id_perkara' => $id, ':flag' => '3'])\n // ->all();\n $modelTersangka = MsTersangka::find()->select('tsk.id as id,tersangka.id_tersangka as id_tersangka, tersangka.nama as nama,tsk.id_perkara,tsk.id_berkas as id_berkas')\n ->from('pidum.pdm_tahanan_penyidik tsk,pidum.ms_tersangka tersangka')\n ->where(\"tsk.id_tersangka = tersangka.id_tersangka and tsk.id_perkara = '\".$id2.\"' and tsk.id_berkas='\".$id.\"' and tsk.flag != '3' order by tsk.id \")\n ->all();\n//var_dump($modelTersangka->id_tersangka);exit;\n \n\t\t\n\t $modelPasal = PdmPasal::findAll(['id_perkara' => $id2]);\n $modelRp9 = PdmRp9::findOne(['id_perkara' => $id2]);\n //$modelTahananPenyidik2 = $this->findModelTahananPenyidik($id,$id2);\n\t\t $modelTahananPenyidik2 = PdmTahananPenyidik::findOne(['id_perkara' => $id2 ,'id_berkas' => $id]);\n\t\t\t $id3=$modelTahananPenyidik2->id;\n\t\t //$modelTahananPenyidik = PdmTahananPenyidik::findAll(['id'=>$modelTahananPenyidik2->id]);\n\t\t\t \n\t\t\t $modelTahananPenyidik = PdmTahananPenyidik::find()\n\t\t\t\t ->select('tsk.id as id,\n tersangka.id_tersangka AS id_tersangka,\n tersangka.nama AS nama,\n tsk.id_perkara,\n tsk.id_berkas AS id_berkas,\n tsk.id_msloktahanan AS id_msloktahanan,\n tsk.tgl_mulai,\n tsk.tgl_selesai,\n tsk.lokasi_rutan')\n ->from('pidum.pdm_tahanan_penyidik tsk,\n pidum.ms_tersangka tersangka')\n ->where(\"tsk.id_tersangka = tersangka.id_tersangka and tsk.id_perkara='\".$id2.\"' and tsk.id_berkas='\".$id.\"' order by tsk.id\")\n ->all();\n\t\t\t\t\t\t//echo count($modelTahananPenyidik);exit;\n\t\t\t\t \t//var_dump($modelTahananPenyidik);exit; \n\t\t\t\t\t $modelTahananPenyidikBks = PdmTahananPenyidik::find()\n\t\t\t\t\t\t\t\t\t\t->select('tersangka.id_tersangka as id_tersangka, tersangka.nama as nama,tsk.id_perkara,tsk.id_berkas as id_berkas,tsk.id_msloktahanan\n\t\t\t\t\t\t\t\t\t\t,tsk.tgl_mulai,tsk.tgl_selesai,tsk.lokasi_rutan')\n\t\t\t\t\t\t\t\t\t\t->from('pidum.ms_tersangka tersangka, pidum.pdm_tahanan_penyidik tsk')\n\t\t\t\t\t\t\t\t\t\t->where(\"tsk.id_tersangka = tersangka.id_tersangka and tsk.id_perkara = '\".$id2.\"' and tsk.id_berkas='\".$id.\"'\")\n\t\t\t\t\t\t\t\t\t\t->all();\n\t\t\t\t\t// $modelTahananPenyidik1 = PdmTahananPenyidik::findOne(['id_perkara' => $id]);\n\t\t\t\t// var_dump($modelTahananPenyidik1);exit;\n//print_r($modelSpdp);\n//var_dump($modelTahananPenyidikBks);exit;\n \n\t $searchModelTersangka = new \\app\\modules\\pidum\\models\\MsTersangkaSearch();\n $dataProviderTersangka = $searchModelTersangka->searchTersangka($id2);\n $dataProviderTersangka->pagination = ['defaultPageSize' => 10];\n\n if ($model->load(Yii::$app->request->post())) {\n\t\t\n $transaction = Yii::$app->db->beginTransaction();\n try{\n\t\t\t\t\n\t\t\t\n $seq = Yii::$app->db->createCommand(\"select public.generate_pk('pidum.pdm_berkas', 'id_berkas', '\".\\Yii::$app->globalfunc->getSatker()->inst_satkerkd.\"', '\".date('Y').\"')\")->queryOne();\n \n // $modelSpdpUpdate = Yii::$app->request->post('PdmSpdp');\n // $modelSpdp->no_reg = $modelSpdpUpdate[\"no_reg\"];\n // $modelSpdp->update();\n\n $idkirim=$_POST['PdmBerkas'];\n\t\t\t // Danar Wido 27-07-2016 SPDP 86\n\t\t\t\t\t$UpdateTempatKejadian = Yii::$app->db->createCommand(\"UPDATE pidum.pdm_spdp SET tempat_kejadian = '\".$_POST['PdmSpdp']['tempat_kejadian'].\"' WHERE id_perkara = '\".$model->id_perkara.\"' \");\n $UpdateTempatKejadian->execute();\n\t\t\t // END Danar Wido 27-07-2016\n\t\t\t \n\t\t\t $model->no_pengiriman = $idkirim['no_pengiriman'];\n\t\t\t $model->tgl_terima = $idkirim['tgl_terima'];\n\t\t\t $model->tgl_pengiriman = $idkirim['tgl_pengiriman'];\n // $model->id_perkara = $id;\n // $model->id_berkas = $seq['generate_pk'];\n $model->update();\n // print_r ($model);exit;\n $NextProcces = array(ConstSysMenuComponent::P24);\n Yii::$app->globalfunc->getNextProcces($model->id_perkara,$NextProcces); \n \n\t\t\t\t $tsk = $_POST['id_tersangka'];\n\t\t\t\t$nama = $_POST['nama_tersangka'];\n \n\t\t\t\n\n $undang = $_POST['undang'];\n\n if(isset($undang)){\n for($i=0;$i<count($undang);$i++){\n\n $pdmPasal1 = new PdmPasal();\n\n $seqPasal = Yii::$app->db->createCommand(\"select public.generate_pk('pidum.pdm_pasal', 'id_pasal', '\".\\Yii::$app->globalfunc->getSatker()->inst_satkerkd.\"', '\".date('Y').\"')\")->queryOne();\n\n $pdmPasal1->id_pasal = $seqPasal['generate_pk'];\n $pdmPasal1->id_perkara = $id2;\n $pdmPasal1->undang = $_POST['undang'][$i];\n $pdmPasal1->pasal = $_POST['pasal'][$i];\n $pdmPasal1->update();\n }\n }\n \t$idtsk=$_POST['id_tersangka'];\n\t\t\t\t$test = $_POST['loktah'];\n\t\t\t\t\t\t$test2 = $_POST['lokasi'];\n\t\t\t\t\t\t$test3 = $_POST['tglmulai'];\n\t\t\t\t\t\t$test4 = $_POST['tglselesai'];\n//\tvar_dump($idtsk);\t\t\n//var_dump($test2);\n//var_dump($test);exit;\n\n\t\t\t\t//\techo count($idtsk);\n\t\t\t//\t\tvar_dump ($idtsk[1]);exit;\n // $modelTahananPenyidik1 = PdmTahananPenyidik::findall(['id_berkas'=>$id,'id_perkara'=>$id2,'id_tersangka'=>$idtsk]);\n\t\t\t\t\t\t\t$idhapus = $_POST['nama_update'];\n//var_dump($idhapus);exit;\n\t\t\tif(!empty($idhapus)){\n \n for($a=0;$a<count($idhapus);$a++){\n $tersangka = Yii::$app->db->createCommand(\"UPDATE pidum.pdm_tahanan_penyidik SET id_berkas = '' WHERE id_tersangka = '$idhapus[$a]'\");\n $tersangka->execute();\n\t\t\t\t//\tvar_dump($tersangka);exit;\n\t\t\t\t\n\t\t\t\n }\n }\nif(!empty($idtsk)){\n PdmTahananPenyidik::deleteAll(['id_perkara' => $model->id_perkara,'id_tersangka'=>$modelTahananPenyidik->id_tersangka]);\n\n \n\t\t\t\t // $modelTahananPenyidik->id_tersangka = $modelTahananPenyidikupdate[\"id_tersangka\"];\n\n $seq = Yii::$app->db->createCommand(\"select public.generate_pk('pidum.pdm_perpanjangan_tahanan', 'id', '\".\\Yii::$app->globalfunc->getSatker()->inst_satkerkd.\"', '\".date('Y').\"')\")->queryOne();\n\t\t\t\t\t\n\t\t\t\t\t\n$modelTahananPenyidikupdate = Yii::$app->request->post('PdmTahananPenyidik');\n\n for ($i = 0; $i < count($idtsk); $i++) {\n\n\t\t\t\t\t\t$modelTahananPenyidik1 = new PdmTahananPenyidik();\n$modelTahananPenyidik2 = PdmTahananPenyidik::find()\n ->where(\"id_perkara='\".$id2.\"' and id_berkas='\".$id.\"' and id_tersangka='\".$idtsk[$i].\"' order by id\")\n ->one();\n//echo $i;\n//var_dump($modelTahananPenyidik2->id_tersangka);//exit;\t\n//print_r($modelTahananPenyidikupdate[0]);\techo '<br>';\n//print_r($modelTahananPenyidikupdate[1]);\techo '<br>';\n//print_r($modelTahananPenyidikupdate[2]);\techo '<br>';exit;\n\n\tif($idtsk[$i]!=$modelTahananPenyidik2->id_tersangka){ \n \t$seqTahananPenyidik = Yii::$app->db->createCommand(\"select public.generate_pk('pidum.pdm_tahanan_penyidik', 'id', '\".\\Yii::$app->globalfunc->getSatker()->inst_satkerkd.\"', '\".date('Y').\"')\")->queryOne();\n\n $modelTahananPenyidik1->id = $seqTahananPenyidik['generate_pk'];\n $modelTahananPenyidik1->id_perkara = $id2;\n $modelTahananPenyidik1->id_tersangka = $idtsk[$i];\n\t\t\t\t \t\t $modelTahananPenyidik1->id_berkas = $id;\n $modelTahananPenyidik1->id_msloktahanan = $test[$i];\n $modelTahananPenyidik1->tgl_mulai = $test3[$i];\n $modelTahananPenyidik1->tgl_selesai = $test4[$i];\n\t\t\t\t $modelTahananPenyidik1->flag = '1';\n $modelTahananPenyidik1->lokasi_rutan = !empty($test2[$i]) ? $test2[$i] : NULL ;\n $modelTahananPenyidik1->save();\n\t\t\t\t\t\n\t\t\t\t\t//print_r ($modelTahananPenyidik1);exit;\n\t\t\t\t\t}else{ $seqTahananPenyidik = Yii::$app->db->createCommand(\"select public.generate_pk('pidum.pdm_tahanan_penyidik', 'id', '\".\\Yii::$app->globalfunc->getSatker()->inst_satkerkd.\"', '\".date('Y').\"')\")->queryOne();\n//var_dump($seqTahananPenyidik);exit;\n\n // print_r ($modelTahananPenyidikupdate[3]['id_msloktahanan']);echo '<br>';\n // $modelTahananPenyidik1->id = $seqTahananPenyidik['generate_pk'];\n // $modelTahananPenyidik1->id_perkara = $id2;\n // $modelTahananPenyidik1->id_tersangka = $idtsk[$i];\n\t\t\t\t //\t\t $modelTahananPenyidik1->id_berkas = $id;\n $modelTahananPenyidik2->id_msloktahanan = $modelTahananPenyidikupdate[$i]['id_msloktahanan'];\n $modelTahananPenyidik2->tgl_mulai = $modelTahananPenyidikupdate[$i]['tgl_mulai'];\n $modelTahananPenyidik2->tgl_selesai = $modelTahananPenyidikupdate[$i]['tgl_selesai'];\n\t\t\t\t\t \t\t $modelTahananPenyidik2->flag = '1';\n $modelTahananPenyidik2->lokasi_rutan = !empty($modelTahananPenyidikupdate[$i]['lokasi_rutan']) ? $modelTahananPenyidikupdate[$i]['lokasi_rutan'] : NULL ;\n $modelTahananPenyidik2->update();\n\t\t\t\t\t}\n\t\t\t\t\t\n;\n\t\t\n\t\t\t\t//print_r ($modelTahananPenyidik1);echo '<br>';\n // print_r ($modelTahananPenyidik2->id_msloktahanan);echo '<br>';\n\t\t\t\t\t}//exit;\n }\n\n /* $trxPemroresan = PdmTrxPemrosesan::findOne(['id_perkara' => $id]);\n $trxPemroresan->id_perkara = $id;\n $trxPemroresan->id_sys_menu = \"29\";\n $trxPemroresan->id_user_login = Yii::$app->user->identity->username;\n $trxPemroresan->update(); */\n \n $hapusPasal = $_POST['hapus_undang_pasal'];\n \n if(isset($hapusPasal)){\n \tfor($a=0;$a<count($hapusPasal);$a++){\n \t\t//\\app\\modules\\pidum\\models\\PdmPasal::deleteAll(['id_pasal' => $hapusPasal[$a]]);\n \t\t$pasal = Yii::$app->db->createCommand(\"DELETE FROM pidum.pdm_pasal WHERE id_pasal='$hapusPasal[$a]'\");\n \t\t$pasal->execute();\n \t\t\n \t}\n }\n\n $transaction->commit();\n\n Yii::$app->getSession()->setFlash('success', [\n 'type' => 'success',\n 'duration' => 3000,\n 'icon' => 'fa fa-users',\n 'message' => 'Data Berhasil di Simpan',\n 'title' => 'Simpan Data',\n 'positonY' => 'top',\n 'positonX' => 'center',\n 'showProgressbar' => true,\n ]);\n\n return $this->redirect(['index']);\n }catch (Exception $e){\n $transaction->rollBack();\n Yii::$app->getSession()->setFlash('success', [\n 'type' => 'danger',\n 'duration' => 3000,\n 'icon' => 'glyphicon glyphicon-ok-sign', //String\n 'message' => 'Terjadi Kesalahan',\n 'title' => 'Error',\n 'positonY' => 'top',\n 'positonX' => 'center',\n 'showProgressbar' => true,\n ]);\n return $this->redirect(['update']);\n }\n } else {\n return $this->render('update', [\n 'model' => $model,\n 'modelSpdp' => $modelSpdp,\n 'modelRp9' => $modelRp9,\n 'modelTersangka' => $modelTersangka,\n 'dataProviderTersangka' => $dataProviderTersangka,\n 'modelTahananPenyidik' => $modelTahananPenyidik,\n 'modelPasal' => $modelPasal,\n 'sysMenu' => $sysMenu\n ]);\n }\n }", "title": "" }, { "docid": "93e49c8f14b6ed984420a26f2dc00295", "score": "0.5863091", "text": "public function postaviKomPre(){\n $idOglasa=$_POST['idOglasa'];\n $oglas= Ad::getAdWithId($idOglasa);\n require_once './views/RecenzijeObican/recenzija.php'; \n \n \n \n }", "title": "" }, { "docid": "67caef1e62d9d1fb7ccb5e6579fbd15f", "score": "0.58622366", "text": "function Votemodel()\r\n {\r\n parent::Model();\r\n }", "title": "" }, { "docid": "6267d938a257f7a62f376a23966a3685", "score": "0.58616686", "text": "public function muestraApartados(){\n\t\t$objeto = new modelo();\n\t\t$data[\"titulo\"] = \"Apartar Aulas\";\n\t\t$data[\"objeto\"] = $objeto->getApartados();\n\t\t$data[\"pagina\"] = $objeto->getPaginacionApartados();\n\t\n\t\t//mandando información del modelo a la vista\n\t\trequire_once \"vista/admin/adm_apartados.php\";\n\t}", "title": "" }, { "docid": "78e11ce09237e55676ec701c5b6b2a99", "score": "0.5860537", "text": "function tampil_pemaparan(){\n \n $data['data_krenova']=$this->M_admin->tampil_data_pemaparan($data); \n $this->load->view('admin/data_pemaparan',$data);\n }", "title": "" }, { "docid": "1bc0da08cc48fadbaa2356ffa26f7324", "score": "0.58550566", "text": "public function objava($idObj){\n $objavaModel=new ObjavaModel();\n $objava=$objavaModel->find($idObj);\n $komentarModel = new KomentarModel();\n $komentari = $komentarModel->dohvatiKomentare($idObj);\n $this->prikaz('pojedinacnaObjava', ['objava'=>$objava, 'komentari'=>$komentari]);\n }", "title": "" }, { "docid": "6c9932ec506ba9d55ca4e482f34e8f66", "score": "0.5854413", "text": "public function sacuvaj()\n {\n $res=\"\";\n $sacuvanoModel=new SacuvanoModel(); \n $idk=$_SESSION['id'];\n $id=$_GET['id'];\n\n \n $sacuvano = ['idK' => $idk, 'idR' => $id];\n\n \n // $provera = $sacuvanoModel->getWhere($sacuvano);\n // $provera = $provera->getResultObject();\n $provera=$sacuvanoModel->provera_sacuvano($id, $idk);\n\n \n\n if($provera==null){\n \n $sacuvanoModel->insert($sacuvano);\n } \n else {\n $response_array='recept je već sačuvan';\n echo json_encode($response_array);\n $res=\"ok\"; \n }\n \n if($res==\"\"){\n $response_array='recept je sačuvan';\n echo json_encode($response_array);\n }\n \n\n //$this->prikaz_stranice(); \n \n\n }", "title": "" }, { "docid": "d745bced338ed36ec7027cdd72de9ca9", "score": "0.5843855", "text": "public function proveraizbor()\n {\n\n $fondacijaModel = new FondacijaModel();\n $fondacije = $fondacijaModel->findAll();\n $kompanija = $this->session->get('kompanija');\n\n if (!isset($_POST['radio'])) {\n\n return $this->prikaz(\"biranje_fondacije\", ['greskabiranje' => 'Morate izabrati fondaciju.', 'kompanija' => $kompanija, 'fondacije' => $fondacije]);\n }\n\n\n $fondacija = $fondacijaModel->where('naziv', $_POST['radio'])->first();\n $this->session->set(\"fondacija\", $fondacija);\n $this->prikaz(\"uplata\", ['kompanija' => $kompanija, \"fondacija\" => $fondacija]);\n }", "title": "" }, { "docid": "f56b73a1621738bf2725b6acc1de4e64", "score": "0.5841637", "text": "public function getPreu()\n{\nreturn $this->preu;\n}", "title": "" }, { "docid": "83d0e8b024334763062dafb43e8a0779", "score": "0.5838801", "text": "public function __CONSTRUCT(){\n $this->model = new Tipomovimiento();\n }", "title": "" }, { "docid": "69238f24304767912de4702afb564f61", "score": "0.5837186", "text": "public function vistaMaestrosController(){\n //llamada la metodo del modelo para recuperar los datos que seran mostrados\n $respuesta = Datos::vistaMaestrosModel(\"maestros\");\n //Se llenan las filas de la tabla con los datos recuperados\n foreach($respuesta as $row => $item){\n $item[\"nivel\"]=$item[\"nivel\"]==1?\"SuperAdmin\":\"Maestro\";\n echo'<tr>\n <td>'.$item[\"num_empleado\"].'</td>\n <td>'.$item[\"nombre\"].'</td>\n <td>'.$item[\"email\"].'</td>\n <td>'.$item[\"carrera\"].'</td>\n <td>'.$item[\"nivel\"].'</td>\n <td>\n <a href=\"index.php?action=maestros&id='.$item[\"num_empleado\"].'\" class=\"edit\" title=\"Editar\" data-toggle=\"tooltip\"><i class=\"fa fa-edit\"></i></a>\n <a href=\"index.php?action=maestros&idBorrar='.$item[\"num_empleado\"].'\" class=\"danger\" title=\"Editar\" data-toggle=\"tooltip\"><i class=\"fa fa-trash\"></i></a> \n </td>\n </tr>';\n\n }\n\n }", "title": "" }, { "docid": "ba1559cc2e5511ab2454b99a10b53730", "score": "0.5836954", "text": "function vip() {\n\t\tmysql_query(\"SET names utf8\");\n \n $this->paginate = array('conditions'=>array('Product.status'=>1,'Product.sptieubieu'=>1),'order'=>'Product.id DESC','limit'=>18);\n \t $this->set('products', $this->paginate('Product',array()));\t\n \t\t $this->set('cat','Sản phẩm trung & cao cấp'); \n \n\t}", "title": "" }, { "docid": "03a2e55e88ca0cb5854c9252c95e885a", "score": "0.5832897", "text": "function view(){\n $product=new product_model();\n\n //Uso metodo del modelo de productos\n $datos=$product->get_product();\n\n //LLamo a la funcion para que me muestre\n // el Carrousel\n $promotion=new product_model();\n\n $ofertas=$promotion->get_Promotion();\n\n //LLamo a la funcion para que me muestre las\n //categorias .\n $category=new category_model();\n\n $verCategorias=$category->get_ViewCategory();\n //LLamo a la funcion para que me muestre las\n //subcategorias\n $subCategory=new category_model();\n\n $verSubcategorias= $subCategory->get_ViewSubcategory();\n\n //LLamada a la vista: mostrar la pantalla\n require_once(\"views/product_views.phtml\");\n }", "title": "" }, { "docid": "a36f93db572fc4eae02bb93155168736", "score": "0.58280575", "text": "public function index(){\n\t\t//$this->session->id_pesquisa_session = \"\"; // EXCLUIR\n\n\n\n\t\tif($this->session->id_respondente_session > 0 && $this->session->id_pesquisa_session > 0){\n\n\t\t\t$this->load->model('pesquisa_model');\n\t\t\t$this->load->model('cargo_model');\n\t\t\t$this->load->model('pesquisa_cargo_model');\n\t\t\t$this->load->model('pesquisa_beneficio_model');\n\t\t\t$this->load->model('beneficio_model');\n\n\t\t\t$dados['obj'] = $this->pesquisa_model->get_pesquisa();\n\n\t\t\t$dados['objC'] = $this->cargo_model->get_cargos(2020);\n\t\t\t$dados['objB'] = $this->beneficio_model->get_beneficios(2020);\n\n\t\t\t$objPC \t\t = $this->pesquisa_cargo_model->get_cargos();\n\t\t\t$objPB \t\t = $this->pesquisa_beneficio_model->get_beneficios();\n\n\t\t\t//ps($objPB[0]->id_beneficio);\n\n\t\t\tfor ($i=0; $i < count($objPB); $i++) { \n\t\t\t\t$dados['objPB'][$objPB[$i]->tp_cargo][] = $objPB[$i]->id_beneficio;\n\t\t\t}\n\n\t\t\t//ps($dados['objPB']);\n\n\n\t\t\tfor ($i=0; $i < count($objPC); $i++) { \n\t\t\t\t$dados['objPC'][] = $objPC[$i]->id_cargo;\n\t\t\t\t$dados['objPCV'][$objPC[$i]->id_cargo] = $objPC[$i];\n\n\t\t\t\t$objTipoCargo[] = $objPC[$i]->tp_cargo;\n\n\t\t\t}\n\n\t\t\t$dados['objTipoCargo'] = array_unique($objTipoCargo);\n\n\n\t\t\t$dados['obj']->vr_faturamento_2018 = number_format($dados['obj']->vr_faturamento_2018, 0, \",\", \".\");\n\t\t\t$dados['obj']->vr_faturamento_2019 = number_format($dados['obj']->vr_faturamento_2019, 0, \",\", \".\");\n\n\t\t\t$this->load->view($this->router->fetch_class(), $dados);\n\n\t\t}else{\n\n\t\t\tredirect('./login');\n\n\t\t}\t\t\n\n\t}", "title": "" }, { "docid": "b0cddb5a128afdbdd6b74ec66bf257c0", "score": "0.58280283", "text": "public function index(){\r\n \t$tipo_identificacion= new TipoIdentificacionModel(); \r\n\t\t\r\n\t //Conseguimos todos los usuarios\r\n\t\t$resultSet=$tipo_identificacion->getAll(\"id_tipo_identificacion\");\r\n\t\t\t\t\r\n\t\t$resultEdit = \"\";\r\n\r\n\t\t\r\n\t\tsession_start();\r\n\r\n\t\r\n\t\tif (isset( $_SESSION['usuario_usuarios']) )\r\n\t\t{\r\n\t\t\t$permisos_rol = new PermisosRolesModel();\r\n\t\t\t$nombre_controladores = \"TipoIdentificacion\";\r\n\t\t\t$id_rol= $_SESSION['id_rol'];\r\n\t\t\t$resultPer = $tipo_identificacion->getPermisosVer(\" controladores.nombre_controladores = '$nombre_controladores' AND permisos_rol.id_rol = '$id_rol' \" );\r\n\t\t\t\r\n\t\t\tif (!empty($resultPer))\r\n\t\t\t{\r\n\t\t\t\tif (isset ($_GET[\"id_tipo_identificacion\"]) )\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\t$nombre_controladores = \"TipoIdentificacion\";\r\n\t\t\t\t\t$id_rol= $_SESSION['id_rol'];\r\n\t\t\t\t\t$resultPer = $tipo_identificacion->getPermisosEditar(\" controladores.nombre_controladores = '$nombre_controladores' AND permisos_rol.id_rol = '$id_rol' \" );\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif (!empty($resultPer))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t$_id_tipo_identificacion = $_GET[\"id_tipo_identificacion\"];\r\n\t\t\t\t\t\t$columnas = \" id_tipo_identificacion, nombre_tipo_identificacion\";\r\n\t\t\t\t\t\t$tablas = \"tipo_identificacion\";\r\n\t\t\t\t\t\t$where = \"id_tipo_identificacion = '$_id_tipo_identificacion' \"; \r\n\t\t\t\t\t\t$id = \"nombre_tipo_identificacion\";\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t$resultEdit = $tipo_identificacion->getCondiciones($columnas ,$tablas ,$where, $id);\r\n\r\n\t\t\t\t\t\t$traza=new TrazasModel();\r\n\t\t\t\t\t\t$_nombre_controlador = \"Tipo Identificacion\";\r\n\t\t\t\t\t\t$_accion_trazas = \"Editar\";\r\n\t\t\t\t\t\t$_parametros_trazas = $_id_tipo_identificacion;\r\n\t\t\t\t\t\t$resultado = $traza->AuditoriaControladores($_accion_trazas, $_parametros_trazas, $_nombre_controlador);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->view(\"Error\",array(\r\n\t\t\t\t\t\t\t\t\"resultado\"=>\"No tiene Permisos de Editar Tipos de Identificaciones\"\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t));\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\t\r\n\t\t\t\t$this->view(\"TipoIdentificacion\",array(\r\n\t\t\t\t\t\t\"resultSet\"=>$resultSet, \"resultEdit\" =>$resultEdit\r\n\t\t\t\r\n\t\t\t\t));\r\n\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this->view(\"Error\",array(\r\n\t\t\t\t\t\t\"resultado\"=>\"No tiene Permisos de Acceso a Tipos de Identificaciones\"\r\n\t\t\t\t\r\n\t\t\t\t));\r\n\t\t\t\t\r\n\t\t\t\texit();\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t\t$this->view(\"ErrorSesion\",array(\r\n\t\t\t\t\t\t\"resultSet\"=>\"\"\r\n\t\t\t\r\n\t\t\t\t));\r\n\t\t\r\n\t\t}\r\n\t\r\n\t}", "title": "" }, { "docid": "b8acc48ae8c0676ab491bf19d3337544", "score": "0.5827971", "text": "public function __construct()\n {\n //ottengo le informazioni ereditate.\n if($this->rif_preventivo>0){\n $this->setidPrev($this->rif_preventivo);\n }\n \n // Call the Model constructor\n parent::__construct();\n \n \n \n }", "title": "" }, { "docid": "a926b1368289785215724ce4618a3c06", "score": "0.5825233", "text": "public function actionIndex()\n {\n\n if(Yii::$app->user->can('ucitelj') || Yii::$app->user->can('roditelj')){\n $rola = Yii::$app->user->identity->role;\n $ucitelj_id = Ucitelj::find()->select('id_ucitelj')->where(['user_id' => Yii::$app->user->id ])->one();\n $roditelj_id = Roditelj::find()->select('id_roditelj')->where(['user_id' => Yii::$app->user->id ])->one();\n\n if($rola == 4){\n $svePorukeUcitelj = Poruke::findBySql('SELECT DISTINCT `roditelj_id` FROM `poruke` WHERE `ucitelj_id` = '.$ucitelj_id->id_ucitelj.';')->all();\n\n return $this->render('index', [\n 'svePorukeUcitelj' => $svePorukeUcitelj,\n ]);\n } else if($rola == 8){\n\n $svePorukeRoditelj = Poruke::findBySql('SELECT DISTINCT `ucitelj_id` FROM `poruke` WHERE `roditelj_id` = '.$roditelj_id->id_roditelj.';')->all();\n\n return $this->render('index', [\n 'svePorukeRoditelj' => $svePorukeRoditelj\n ]);\n }\n } else if(Yii::$app->user->isGuest){\n $this->redirect(['../site/login']);\n } else {\n throw new ForbiddenHttpException('Nemate pravo pristupa ovoj stranici');\n } \t\n\t\t\n }", "title": "" }, { "docid": "82691b3582e9932f12d786df1503226f", "score": "0.5820175", "text": "function __construct()\r\n {\r\n\t\t\t/*$this->idOffre = null;\r\n\t\t\t$this->numOffre = null;\r\n\t\t\t$this->posteOffre = null;\r\n\t\t\t$this->profilrechercheOffre = null;\r\n\t\t\t$this->nombrePostesOffre = null;\r\n\t\t\t$this->DomaineDEtude_idDomaineDEtude= null;\r\n\t\t\t$this->DomaineEmploi_idDomaineEmploi= null;\r\n\t\t\t$this->experienceProfessionnelleOffre = null;\r\n\t\t\t$this->nbreAnExperienceProOffre = null;\r\n\t\t\t$this->age = null;\r\n\t\t\t$this->sexe = null;\r\n\t\t\t$this->idPaysTravail = null;\r\n\t\t\t$this->lieuTravailOffre = null;\r\n\t\t\t$this->TypeContrat_idTypeContrat = null;\r\n\t\t\t$this->NiveauDetudes_idNiveauDetudes = null;\r\n\t\t\t$this->emailRepresentantEmployeur = null;\r\n\t\t\t$this->autreConditionsOffre = null;\r\n\t\t\t$this->piecesOffre = null;\r\n\t\t\t$this->dateClotureOffre = null;\r\n\t\t\t$this->cree_par = null;\r\n\t\t\t$this->idEmployeur = null;\r\n\t\t*/\r\n\t\t// Call the Model constructor\r\n parent::__construct();\r\n\t\t\r\n }", "title": "" }, { "docid": "201bcd49c32a3cdeba5e0e3aa907c197", "score": "0.5813288", "text": "public function model();", "title": "" }, { "docid": "201bcd49c32a3cdeba5e0e3aa907c197", "score": "0.5813288", "text": "public function model();", "title": "" }, { "docid": "201bcd49c32a3cdeba5e0e3aa907c197", "score": "0.5813288", "text": "public function model();", "title": "" }, { "docid": "201bcd49c32a3cdeba5e0e3aa907c197", "score": "0.5813288", "text": "public function model();", "title": "" }, { "docid": "f328caaec75d29c9077ec522b6894b6c", "score": "0.58095765", "text": "function tampil_krenova(){ \n $data['data_krenova']=$this->M_admin->tampil_data_k($data); \n $this->load->view('admin/data_krenova',$data);\n }", "title": "" }, { "docid": "d6f495973b3037ce6208aa243ba6cbdf", "score": "0.5808318", "text": "public function execute() {\n\t\t$userLogin = null;\n\t\t$userIsAuth = false;\n\t\t$userLogin = $this->_session->userLogin;\n\t\t$userIsAuth = $this->_session->userIsAuth;\n\t\tif(empty($userLogin) || ($userIsAuth == false)) {\n\t\t\tthrow new ControllerException('Brak dostepu');\n\t\t}\t\t\n\t\t\n\t\t$baseUrl = $this->_request->getBaseUrl();\n\t\t$userId = (int)$this->_request->get('id');\t\t\n\t\tif(($userId == '') || ($userId == null)) {\n\t\t\tthrow new ControllerException('Brak identyfikatora uzytkownika');\n\t\t}\n\t\t\n\t\t//pobieranie danych z modelu\n\t\t$userFieldsNames = $this->_userMapper->getFieldsNames();\n\t\t$userRelationsNames = $this->_userMapper->getRelationsNames();\n\t\t$groupFieldsNames = $this->_groupMapper->getFieldsNames();\n\t\t\n\t\t//pobieranie danych z modelu, praca z modelem\n\t\t$usersCollection = $this->_userMapper->getById($userId);\n\t\tif(count($usersCollection) != 1) {\n\t\t\tthrow new ControllerException('Uzytkownik nie istnieje w bazie danych');\n\t\t}\n\t\t$userObject = $usersCollection[0];\n\t\t$userToView = $userObject->toArray($userFieldsNames);\n\t\t$groupsCollection = $userObject->groups->getCollection();\n\t\t$groupsToView = array();\n\t\tforeach($groupsCollection AS $groupObject) {\n\t\t\t$group = array();\n\t\t\t$group = $groupObject->toArray($groupFieldsNames);\n\t\t\t$group['info'] = $this->_i18n->translate($group['info']);\n\t\t\t$groupsToView[] = $group;\n\t\t}\n\t\t$userToView['groups'] = $groupsToView;\n\t\t\n\t\t//przygotowanie dodatkowych danych dla widoku\n\t\t$links = array('edit'=>array($this->_i18n->translate('edit'), $baseUrl.'/admin/user/editForm/'), 'delete'=>array($this->_i18n->translate('delete'), $baseUrl.'/admin/user/delete/'));\n\t\t$userTableHeadersNames = array_map(array($this->_i18n, 'translate'), $userFieldsNames);\n\t\t\n\t\t//dolaczenie danych do widoku\n\t\t$this->_view->assign('user', $userToView);\n\t\t$this->_view->assign('links', $links);\n\t\t$this->_view->assign('userTableHeadersNames', $userTableHeadersNames);\n\t\t$this->_view->assign('groupsString', $this->_i18n->translate($userRelationsNames['groups']));\t\t\n\t\t$this->_view->assign('userViewTitle', $this->_i18n->translate('User view'));\n\t\t$this->_view->assign('noGroupMessage', $this->_i18n->translate('User has no group'));\n\t\t\n\t}", "title": "" }, { "docid": "d199b7033e2615592744b8b72ae82c5d", "score": "0.58063465", "text": "public function actionIndexs()\n\t{\n\t\tif(!WebUser::isGuest() && WebUser::isAdmin())\n\t\t\t$this->render('index');\n\t\telseif(!WebUser::isGuest() && WebUser::isKasir()) {\n\t\t\t//inisialisasi model Order\n\t\t\t$order = new Order('search');\n\t $order->unsetAttributes(); // clear any default values\n\t if (isset($_GET['Order']))\n\t $order->attributes = $_GET['Order'];\n\n\t $orderbaru = new Order('baru');\n\t $orderbaru->RESEP = 1;\n\t $orderbaru->orderdetail = new OrderDetail('baru');\n\t\t\t//inisialisasi model OrderDetail\n\t\t\t$order_detail=new OrderDetail;\n\n\t\t\t//inisialisasi model Pelanggan\n\t\t\t$pelanggan = new Pasien('search');\n\t $pelanggan->unsetAttributes(); // clear any default values\n\t if (isset($_GET['Pasien']))\n\t $pelanggan->attributes = $_GET['Pasien'];\n\n\t\t\t$newpl = new Pasien('baru');\n\t if (isset($_POST['Pasien'])) {\n\t $newpl->attributes = $_POST['Pasien'];\n\t $newpl->BIAYA_REGISTRASI = 5000;\n\t $newpl->TANGGAL_REGISTRASI = date('Y-m-d H:i:s');\n\t if ($newpl->save()) {\n\t \tYii::app()->user->setFlash('info', MyFormatter::alertSuccess('<strong>Selamat!</strong> Data telah berhasil disimpan.'));\n\t $this->redirect(array('/site'));\n\t }\n\t }\n\n\t if (isset($_POST['Order'])) {\n\t $orderbaru->attributes = $_POST['Order'];\n\t $orderbaru->TANGGAL_ORDER = date('Y-m-d H:i:s');\n \t$orderbaru->USER_PEMBUAT = Yii::app()->user->nama;\n\t if ($orderbaru->validate()) {\n\t $transaction = Yii::app()->db->beginTransaction();\n\t try {\n\t if (!$orderbaru->save())\n\t throw new Exception;\n\n\t $subtotal = 0;\n\t foreach ($_POST['OrderDetail'] as $kd => $detail) {\n\t if (!empty($detail['JUMLAH'])) {\n\t $od = new OrderDetail('baru');\n\t\t $od->ID_ITEM = $kd;\n\t\t $od->KODE_ORDER = $orderbaru->KODE_ORDER;\n\t\t //proses harga by resep\n\t\t $od->HARGA = Item::getHargaByResep($kd, $orderbaru->RESEP);\n\t\t $od->JUMLAH = $detail['JUMLAH'];\n\t\t $od->DISKON = $detail['DISKON'];\n\t\t //$od->DISKON = Barang::getDiskonById($kd);\n\t\t //update stok barang\n\t\t Item::updateStokItem($kd, $detail['JUMLAH']);\n\t\t $subtotal += $od->JUMLAH * $od->HARGA;\n\t if (!$od->save())\n\t throw new Exception;\n\t }\n\t }\n\t \n\t $transaction->commit();\n\t Yii::app()->user->setFlash('info', MyFormatter::alertSuccess('<strong>Selamat!</strong> Data telah berhasil disimpan.'));\n\t $this->redirect(array('/order/view', 'id' => $orderbaru->KODE_ORDER));\n\t } catch (Exception $ex) {\n\t $transaction->rollback();\n\t echo $ex->getMessage(); exit();\n\t }\n\t }\n\t }\n\n\t\t\t$dataProvider=new CActiveDataProvider('Pasien',array(\n\t\t\t\t'pagination'=>false,\n\t\t\t));\n\n\t\t\t$pasien_today = Pasien::listRegisterToday();\n\t\t\t$this->render('index',array(\n\t\t\t\t'dataProvider'=>$dataProvider,\n\t\t\t\t'order'=>$order,\n\t\t\t\t'order_detail'=>$order_detail,\n\t\t\t\t'pelanggan'=>$pelanggan,\n\t\t\t\t'pelanggan_baru'=>$newpl,\n\t\t\t\t'orderbaru' => $orderbaru,\n\t\t\t\t'pasien_today' => $pasien_today,\n\t\t\t));\n\t\t}\n\t\t\t\n\t\telse\n\t\t\t$this->redirect(array('login'));\n\t}", "title": "" }, { "docid": "7062ea80c3518900f009a5b089aa9fdf", "score": "0.5804547", "text": "public function postaviKom(){\n \n if (empty($_POST['komentar']) || empty($_POST['ocena']) )\n return call('prvi','greska');\n \n \n Ad::postaviKomentar($_POST['komentar'], $_POST['ocena'],$_POST['idOglasa']);\n $idOglasa=$_POST['idOglasa'];\n $oglas= Ad::getAdWithId($idOglasa);\n require_once 'views/RecenzijeObican/recenzija.php';\n \n //$nizRecenzija= Recenzija::dohvatiSveKomentare($idOglasa);\n // require_once 'views/oglasi/prikaz_recenzija.php';\n }", "title": "" }, { "docid": "654587a8f8bf5953debba10aad462085", "score": "0.58040845", "text": "function obat_keluar()\n\t{\n\t\t$data_obat_keluar = $this->model->get_join('tbl_obat_keluar', 'tbl_obat', 'id_obat', 'id_obat');\n\n\t\t# 2. load barang_masuk view\n\t\t$this->view->load_index('transaksi/obat_keluar', array('obat_keluar' => $data_obat_keluar));\t\n\t}", "title": "" }, { "docid": "331e65058956fa4579c6811b204ed6f2", "score": "0.5803927", "text": "public function prikaziPrijave() {\n $korisnici = $this->doctrine->em->getRepository(Entities\\User::class)->findBy(['status'=>'reported']);\n $this->prikaz('Zahtevi', ['korisnici'=>$korisnici, 'zahtev'=>'Reports']);\n }", "title": "" } ]
96b1710b44b391bfc90f46d5ba53d13e
Public access to $_server property.
[ { "docid": "6fcb1d24b321db2cf96ee3e05175a8df", "score": "0.8727932", "text": "function server() { return $this->_server; }", "title": "" } ]
[ { "docid": "5855221c334e9559ed31b6d13afe4803", "score": "0.82600796", "text": "public function getServer()\n {\n return $this->_server;\n }", "title": "" }, { "docid": "e530dfae58bc531e43770a3426091dfa", "score": "0.8257032", "text": "public function server()\n {\n return $this->server;\n }", "title": "" }, { "docid": "9538c633bcf39508b6cf8c4414ac8c42", "score": "0.81888163", "text": "public function getSERVER()\r\n {\r\n return $this->SERVER;\r\n }", "title": "" }, { "docid": "5b4c2bf73dee6f29af654b42b64ed1fe", "score": "0.81833136", "text": "public function server()\n {\n return $this->instance->server;\n }", "title": "" }, { "docid": "82892914190d5871007ca3f444887093", "score": "0.81532454", "text": "public function getServer()\n {\n return $this->server;\n }", "title": "" }, { "docid": "3ed3f227979f16747c811b64780d5a88", "score": "0.8091185", "text": "public function getServer()\n {\n return $this->server;\n }", "title": "" }, { "docid": "3ed3f227979f16747c811b64780d5a88", "score": "0.8091185", "text": "public function getServer()\n {\n return $this->server;\n }", "title": "" }, { "docid": "aaf262c9415d58dd1ef6165ce9affe30", "score": "0.79062414", "text": "public function getServer()\n {\n\n return $this->server;\n }", "title": "" }, { "docid": "f407e7a82b178cb2528da98eb5b9af8f", "score": "0.76876587", "text": "public function __construct(){\n\t\tself::$server = $_SERVER;\n\t}", "title": "" }, { "docid": "11e7a94fd39c897b5a9e30f86cb6c667", "score": "0.7591749", "text": "public function getServer()\n {\n return isset($this->data['server']) ? $this->data['server'] : null;\n }", "title": "" }, { "docid": "19f50fb2f232d955abae74fdcda7d164", "score": "0.7399538", "text": "public function getServer()\n {\n return $this->server;\n /*** CEF ***/\n/*\n\tmongoc_host_list_t *host;\n*/\n /*** CEF ***/\n /*** CIMPL ***/\n/*\n\thost = (mongoc_host_list_t *) emalloc(sizeof(mongoc_host_list_t));\n\tmongoc_cursor_get_host(intern->result.cursor, host);\n\tphongo_server_init(return_value, intern->result.hint, host TSRMLS_CC);\n*/\n /*** CIMPL ***/\n }", "title": "" }, { "docid": "99dbbc035cfc4defdd0be77ba3309739", "score": "0.73046327", "text": "final public function getServer() {}", "title": "" }, { "docid": "8e0d1fcf870a2e5cf8ef0e78b44f1673", "score": "0.72327876", "text": "final public function getServer(): \\MongoDB\\Driver\\Server {}", "title": "" }, { "docid": "8e0d1fcf870a2e5cf8ef0e78b44f1673", "score": "0.72327876", "text": "final public function getServer(): \\MongoDB\\Driver\\Server {}", "title": "" }, { "docid": "8e0d1fcf870a2e5cf8ef0e78b44f1673", "score": "0.72327876", "text": "final public function getServer(): \\MongoDB\\Driver\\Server {}", "title": "" }, { "docid": "8e0d1fcf870a2e5cf8ef0e78b44f1673", "score": "0.72327876", "text": "final public function getServer(): \\MongoDB\\Driver\\Server {}", "title": "" }, { "docid": "8e0d1fcf870a2e5cf8ef0e78b44f1673", "score": "0.72327876", "text": "final public function getServer(): \\MongoDB\\Driver\\Server {}", "title": "" }, { "docid": "f34d8365f0d5191d4a18172ffafb16c2", "score": "0.71915597", "text": "public static function getServerName() {\r\n return $_SERVER['SERVER_NAME'];\r\n }", "title": "" }, { "docid": "5c25f2921939b7e5d79f4a203b74bc13", "score": "0.70535254", "text": "public static function GetServer()\n {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\n return self::$server_instance;\n }", "title": "" }, { "docid": "489c308ef53abf4348a48dd966cdf40b", "score": "0.6989021", "text": "public function getServerUrl()\n {\n return $this->server_url;\n }", "title": "" }, { "docid": "1097e3fe52868dbf74f1a9d995ce5fe9", "score": "0.6975077", "text": "public function getServerName();", "title": "" }, { "docid": "51e4a47869751ad189656967eb3a73f3", "score": "0.69695675", "text": "public function getServerVars()\n {\n if (null === $this->serverVars) {\n return $_SERVER;\n } else {\n return $this->serverVars;\n }\n }", "title": "" }, { "docid": "49fe6a217a48e62a833b38997e87d799", "score": "0.69414383", "text": "public function getServer(): EventServer\n {\n return $this->server;\n }", "title": "" }, { "docid": "10b18eade4b8bdd627afd2b1cde5ccb1", "score": "0.6899069", "text": "protected function usePublicServer() {\n $this->server = $this->serverPublic;\n }", "title": "" }, { "docid": "4ae67dd438e69f45f932543121f79608", "score": "0.68646353", "text": "public function server_info() {\n return $this->client->getServerInfo();\n }", "title": "" }, { "docid": "dd546752145aeb16a39f8e6fa78d2a67", "score": "0.68067443", "text": "protected function getServer()\n\t{\n\t\t// if (is_null($this->protocol) and $this->protocol != 'none') {\n\t\t// \tswitch ($this->port) {\n\t\t// \t\tcase 25:\n\t\t// \t\t\t$this->protocol = 'tcp';\n\t\t// \t\tbreak;\n\t\t// \t\tcase 587:\n\t\t// \t\tcase 465:\n\t\t// \t\tcase 2525:\n\t\t// \t\t\t$this->protocol = 'ssl';\n\t\t// \t\tbreak;\n\t\t// \t\tdefault:\n\t\t// \t\t\t$this->protocol = 'tcp';\n\t\t// \t}\n\t\t// }\n\t\t\n\t\t#return ($this->protocol != 'none') ? $this->protocol . '://' . $this->server : $this->server;\n\t\treturn $this->server;\n\t}", "title": "" }, { "docid": "0a3c3b7a718d17ed55114ab268ded2d2", "score": "0.67917025", "text": "public function getRemoteServer()\n {\n return $this->remoteServer;\n }", "title": "" }, { "docid": "6cd42972ad0af879f6c0c9cd3303715c", "score": "0.6787923", "text": "abstract public function getServer(): \\MongoDB\\Driver\\Server;", "title": "" }, { "docid": "ba465efce950ef1d81800eaaa53568be", "score": "0.67703557", "text": "public function getServerAddress()\n {\n return $this->_serverAddress;\n }", "title": "" }, { "docid": "7106fc7d6b3c47982f1c65c4f2637ff9", "score": "0.6761", "text": "public function server(): ?Server\n {\n return $this->server;\n }", "title": "" }, { "docid": "c93bea48c44da38ae068107c19ebfbc2", "score": "0.67485905", "text": "private function get_serverId()\n\t{\n\t\treturn $this->m_serverId;\n\t}", "title": "" }, { "docid": "f134a333a2930b6014fc32e09493d906", "score": "0.6704617", "text": "public function getTheServerName()\n\t{\n\t\treturn $this->header_info[2];\n\t}", "title": "" }, { "docid": "454968a03bc98a8a76245f10f09e0e59", "score": "0.66980344", "text": "public function getServerID ()\n {\n return $this->serverID;\n }", "title": "" }, { "docid": "bf2cef46263100e5bf7d7a3d19ae336a", "score": "0.66923517", "text": "public function serverVariables()\n {\n return $this->serverVariables;\n }", "title": "" }, { "docid": "3b84d2dde29a840a63cb83ca99f9dc06", "score": "0.66908956", "text": "public function getMailserver()\n {\n return $this->mailserver;\n }", "title": "" }, { "docid": "b691bb5792609486c4d4c01555ff7922", "score": "0.6676229", "text": "protected static function serverHost(): string\n {\n return static::$serverHost;\n }", "title": "" }, { "docid": "893ea8d5b78d7236343884afc4b4e730", "score": "0.66718125", "text": "public function getServerContext()\n {\n return $this->serverContext;\n }", "title": "" }, { "docid": "893ea8d5b78d7236343884afc4b4e730", "score": "0.66718125", "text": "public function getServerContext()\n {\n return $this->serverContext;\n }", "title": "" }, { "docid": "ebaa7e2e40b52ac296e7395b53cd9239", "score": "0.6641086", "text": "public function getServerArray ()\n {\n return $this->serverArray;\n }", "title": "" }, { "docid": "d1ba8fa102d8ae04756fe354c4742c6c", "score": "0.6624184", "text": "public function __construct($serverData = null) {\n\n if ($serverData) $this->_SERVER = $serverData;\n else $this->_SERVER =& $_SERVER;\n\n }", "title": "" }, { "docid": "d792ecb9d35a5fae265c76f4b6b3f719", "score": "0.6622258", "text": "protected function getServerProp($key)\n {\n return (isset($_SERVER[$key])) ? $_SERVER[$key] : null;\n }", "title": "" }, { "docid": "1df127ab270769a0f7279543c89ad83c", "score": "0.6613068", "text": "public function GetAuthServer() {\n return $this->authServer;\n }", "title": "" }, { "docid": "7eb5b9865605b296d586d397176d89ac", "score": "0.6611985", "text": "public static function parseServer()\n {\n self::$method = trim(strtoupper($_SERVER['REQUEST_METHOD']));\n /* Lets save the host aswell */\n self::$host = $_SERVER['HTTP_HOST'];\n /* Maybe this can come in handy :) */\n self::$client_ip = $_SERVER['REMOTE_ADDR'];\n /* Always good to know when you started */\n self::$start_time = $_SERVER['REQUEST_TIME'];\n /* Also save the flaot value */\n self::$start_time_float = $_SERVER['REQUEST_TIME_FLOAT'];\n }", "title": "" }, { "docid": "019b2337f4a8c570d7109b0a1eeb46bd", "score": "0.65391356", "text": "public static function setServer($server)\n\t{\n\t\tstatic::$server = $server;\n\t}", "title": "" }, { "docid": "625382279af014c981097615a9d7bae3", "score": "0.65342075", "text": "function getServerIdentification()\n {\n return $this->server_identifier;\n }", "title": "" }, { "docid": "95bebd2e3b3b68b26d860502e6b4d226", "score": "0.6515838", "text": "public function getServerName()\n\t{\n\t\treturn $this->string('SERVER_NAME');\n\t}", "title": "" }, { "docid": "3bd411d82ef991e037e1a010e96656c2", "score": "0.6509217", "text": "public function asArray()\n {\n return $this->server;\n }", "title": "" }, { "docid": "2657df13ed9541c9daf6e1778386d170", "score": "0.648484", "text": "public function getServerPath() : string\n {\n global $server;\n return $server['host_address'].$this->folder.'/'.$this->data['server_name']; \n }", "title": "" }, { "docid": "12fd21e7ef1c29b272b369caba1e30d6", "score": "0.6478143", "text": "protected function setServerName()\n {\n $this->serverName = $_SERVER['SERVER_NAME'];\n \n return $this;\n }", "title": "" }, { "docid": "10d188e7eb4017644b1e336db3055358", "score": "0.64740604", "text": "public function getAllServer(): array\n {\n return $_SERVER;\n }", "title": "" }, { "docid": "5e997cf16f7eed3aed94cc7a47dc3f68", "score": "0.64700943", "text": "public function Test()\n {\n \treturn var_export($_SERVER,true);\n }", "title": "" }, { "docid": "bd3d587389ccecc9e15e780a6ed735e4", "score": "0.6461693", "text": "public function getServers()\n {\n return $this->_servers;\n }", "title": "" }, { "docid": "c318d0f7dd0537173c3b7c162fe981bf", "score": "0.64616126", "text": "public function getServerName () {\n\t\t$data = $this->getServerData();\n\t\treturn $data['hostname'];\n\t}", "title": "" }, { "docid": "9bb6b5d9e664ff6ccb4aed31bf8a586c", "score": "0.64607406", "text": "public function setServer($server)\n {\n $this->server=$server;\n }", "title": "" }, { "docid": "d57e4945cda49be0d43fe63bbed14261", "score": "0.6428905", "text": "public function __construct($server)\n\t{\n\t\t$this->server = $server;\n\t}", "title": "" }, { "docid": "5fc934a6d0035eecddff7734f73660b1", "score": "0.6417058", "text": "private function setServer($server)\n\t{\n\t\t$this->server = (string) $server;\n\t}", "title": "" }, { "docid": "987117407579ae09264aadfeef10673c", "score": "0.64092106", "text": "public function getServerName()\n {\n return $this->getFirstAttribute($this->schema->serverName());\n }", "title": "" }, { "docid": "ae8be51b38340929cb9c54cb16a39702", "score": "0.6407781", "text": "public function setSERVER($SERVER)\r\n {\r\n $this->SERVER = $SERVER;\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "355fa3723c1771ee6efcdd722b48d3bd", "score": "0.6401413", "text": "protected function get_server(): string\n {\n if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') {\n $url = 'https://';\n } else {\n $url = 'http://';\n }\n // Append the host(domain name, ip) to the URL.\n $url .= $_SERVER['HTTP_HOST'];\n\n // Append the requested resource location to the URL\n /* $url .= $_SERVER['REQUEST_URI']; */\n\n return $url . '/';\n }", "title": "" }, { "docid": "3e05e1e753fde498241256214e2267c7", "score": "0.6385539", "text": "public function server(){\n return \\Wukka\\ShortCircuit::server();\n }", "title": "" }, { "docid": "ed17fd99cfc34a329ed9c1437e01832d", "score": "0.6380553", "text": "public function getServer(string $key)\n {\n return $this->get('_SERVER', $key);\n }", "title": "" }, { "docid": "d6e5f981fa80ae69b4a64d3040c4f22a", "score": "0.6369079", "text": "public function getServerParams() {\n \n \treturn $this->server_params;\n \n }", "title": "" }, { "docid": "583d9bf5140349ba53f3325d76726f0c", "score": "0.6365222", "text": "public function GetDefaultServer() {\n return $this->defaultServer;\n }", "title": "" }, { "docid": "e74f8c2f9f9a452cd8cbd16ea583630b", "score": "0.6350687", "text": "public function setServer($server) {\n\t\t$this->server = $server;\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bd049a21e624f83f1d210260d255039b", "score": "0.63469005", "text": "protected function getServerIp()\n {\n return $this->request->server->get('SERVER_ADDR');\n }", "title": "" }, { "docid": "1a99deaeec43c18bb0f2b85e5702d9f1", "score": "0.6329213", "text": "public function getServerRequest()\n\t\t{\n\t\t \n\t\t}", "title": "" }, { "docid": "67fd518d91a1f1edbb533ac8b8c79452", "score": "0.6326116", "text": "protected function getServer()\n {\n //Built the server URL\n return sprintf('%s?REQUEST=%s&SERVICE=%s&QUERY_LAYERS=%s&VERSION=%s&INFO_FORMAT=%s&LAYERS=%s&SRS=%s&CRS=%s&BBOX=%s&WIDTH=%s&HEIGHT=%s&FORMAT=%s&STYLES=DEFAULT&TRANSPARENT=FALSE&X=%s&Y=%s&FEATURE_COUNT=1&EXCEPTIONS=XML',\n $this->server,\n $this->request,\n $this->service,\n $this->layers,\n $this->version,\n $this->format,\n $this->layers,\n $this->crs,\n $this->crs,\n $this->bbox,\n $this->width,\n $this->height,\n $this->imageFormat,\n $this->pointX,\n $this->pointY\n );\n }", "title": "" }, { "docid": "cd39df4115ca8b93c01afd6c481584ae", "score": "0.63198125", "text": "public function getServers()\n {\n return $this->servers;\n }", "title": "" }, { "docid": "ddf3e186f2e0d1fc5876eb1a811a339e", "score": "0.63160855", "text": "public function getServerVersion()\r\n {\r\n return $this->getVersion(\"server\");\r\n }", "title": "" }, { "docid": "e7da9a0c00e6844db973e5e1ecf6503c", "score": "0.6273926", "text": "public function setServer($server)\n {\n $this->server = $server;\n\n return $this;\n }", "title": "" }, { "docid": "2a1ce6ef56e89bb20702872c5e3d942a", "score": "0.6273805", "text": "protected function useBuildServer() {\n $this->server = $this->serverBuild;\n }", "title": "" }, { "docid": "9eb3dd2bb653377dcb534c470d4cf2d7", "score": "0.6268025", "text": "public static function getServerPort() {\r\n return $_SERVER['SERVER_PORT'];\r\n }", "title": "" }, { "docid": "fe23254a79a5a0fb537361fb43c27033", "score": "0.62631565", "text": "function get_mysql_server() { return $this->mysql_server ; }", "title": "" }, { "docid": "d9b294d0ee363f4e90a93ee1828d7154", "score": "0.62550104", "text": "public function setServer($server)\n {\n $this->_server = 'http://' . $server;\n }", "title": "" }, { "docid": "1a878948e0fae9ca4a7ed1d590cdba4f", "score": "0.625373", "text": "public function get_http_server_name(): string\n {\n return $this->http_server_name;\n }", "title": "" }, { "docid": "ddeeb31425caa8e9afa27381e84e8e47", "score": "0.62412673", "text": "function server_info()\r\n\t{\r\n\t\treturn mysql_get_server_info(): \r\n\t}", "title": "" }, { "docid": "05defa8e50c19586d3d38d01e357b6e1", "score": "0.6224658", "text": "public function getServerType()\n {\n return $this->serverType;\n }", "title": "" }, { "docid": "4ffa8cb9097cf152ab0252c4847e6034", "score": "0.6222653", "text": "public function getServerName(): ?string;", "title": "" }, { "docid": "23318eacb405b643a8d0b806212abf6d", "score": "0.62213945", "text": "protected static function serverPort(): int\n {\n return static::$serverPort;\n }", "title": "" }, { "docid": "43678b359b4364253a853f13ab1210ab", "score": "0.6213458", "text": "private static function getServerHost() {\n\t\tif (array_key_exists('HTTP_HOST', $_SERVER)) {\n\t\t\t$currenthost = $_SERVER['HTTP_HOST'];\n\t\t} elseif (array_key_exists('SERVER_NAME', $_SERVER)) {\n\t\t\t$currenthost = $_SERVER['SERVER_NAME'];\n\t\t} else {\n\t\t\t/* Almost certainly not what you want, but ... */\n\t\t\t$currenthost = 'localhost';\n\t\t}\n\t\tif(strstr($currenthost, \":\")) {\n\t\t\t\t$currenthostdecomposed = explode(\":\", $currenthost);\n\t\t\t\t$port = array_pop($currenthostdecomposed);\n\t\t\t\tif (!is_numeric($port)) {\n\t\t\t\t\tarray_push($currenthostdecomposed, $port);\n }\n $currenthost = implode($currenthostdecomposed, \":\");\n\t\t}\n\t\treturn $currenthost;\n\t}", "title": "" }, { "docid": "8c27f96a3e4ff1c508c601fd52244fb7", "score": "0.6212885", "text": "protected function usePreviewServer() {\n $this->server = $this->serverPreview;\n }", "title": "" }, { "docid": "a8b7fbe5eae7997fcf37380980213076", "score": "0.6211506", "text": "public static function getHost(){\t\t\n\t\treturn $_SERVER['SERVER_NAME'];\n\t}", "title": "" }, { "docid": "c878a8400bf498f1ce9f96bd49fcb0ed", "score": "0.6180812", "text": "public function getServerAddress()\n\t{\n\t\treturn $this->string('SERVER_ADDR');\n\t}", "title": "" }, { "docid": "ba3f47e1fba486ab8e0d3b9c77e91563", "score": "0.61693156", "text": "public function getServerName() {\n\t\tif( isset($_SERVER['HTTP_HOST'])) {\n\t\t\treturn $_SERVER['HTTP_HOST'];\n\t\t}\n\t\treturn 'Unknown'; // probably testing\n\t}", "title": "" }, { "docid": "8973cf0d868dfe7a8b8e1d0a9b3c5eaa", "score": "0.6162648", "text": "public function serverIP(): string {\n\t\treturn $this->serverIP;\n\t}", "title": "" }, { "docid": "a059a6ad6e97ec1e48e279e0b9f44f7f", "score": "0.61609465", "text": "public function in($server);", "title": "" }, { "docid": "7142bbdf9dc87acb4a89105da8898873", "score": "0.6149631", "text": "public function getServidor () {\n\t return $this->oServidor; \n\t}", "title": "" }, { "docid": "a20615a1387b838bc8af25e48e7523ea", "score": "0.61354", "text": "public function server(): string\n {\n return Server::class;\n }", "title": "" }, { "docid": "dc081259a7f02eb7d92b9be51807f656", "score": "0.61250407", "text": "function Gserver() {\n return \\gserver\\core\\Gserver::getInstance();\n}", "title": "" }, { "docid": "454ff762bc4480fa685e09eade51ed05", "score": "0.61150956", "text": "public function initialize_server() {\n\n\t}", "title": "" }, { "docid": "48b1b94c4d5b1c2559818158342274ea", "score": "0.60823476", "text": "public function server($selector = NULL) {\n if ($selector === null) return $_SERVER;\n else return $_SERVER[$selector] ?? null;\n }", "title": "" }, { "docid": "7e138ddd596021aec2fe0bcde5e3c8e4", "score": "0.6068463", "text": "public function setServer($server)\n {\n $this->server = $server;\n return $this;\n }", "title": "" }, { "docid": "0f97b67f21d4db1876ad3af008458bb7", "score": "0.6053604", "text": "public static function servers()\n {\n return static::foundation()->server->all();\n }", "title": "" }, { "docid": "17405b0ea0d23dd69726bf64d39b6924", "score": "0.6053108", "text": "public function __construct( $server ) {\n\t\t$server = trim($server);\n\n\t\t//\n\t\t$parts = explode(\"://\", $server);\n\t\tswitch ( count($parts) ) {\n\t\t\tcase 1:\n\t\t\t\t$this->server = $parts[0];\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$this->protocol = $parts[0];\n\t\t\t\t$this->server = $parts[1];\n\t\t\t\tbreak;\n\t\t}\n\n\t\t//\n\t\t$parts = explode(\":\", $this->server);\n\t\tswitch ( count($parts) ) {\n\t\t\tcase 2:\n\t\t\t\t$this->server = $parts[0];\n\t\t\t\t$this->port = $parts[1];\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "6675106e50acf7c3800e3de32df36694", "score": "0.6043393", "text": "public static function toServer() {\n // Services\n $services = App::services();\n\n // Framework name\n $_SERVER['FRAMEWORK_NAME'] = $services->framework_name;\n\n // Framework name\n $_SERVER['FRAMEWORK_VERSION'] = $services->framework_version;\n\n // Script file name\n $_SERVER['SCRIPT_FILE_NAME'] = $services->script_filename;\n\n // Script Folder\n $_SERVER['SCRIPT_FOLDER'] = $services->script_folder;\n }", "title": "" }, { "docid": "5f270518ebf8aa3d78f0794ac24f5f7d", "score": "0.6031489", "text": "function getEndpoint()\n {\n return $this->_auth_request->endpoint->server_url;\n }", "title": "" }, { "docid": "0a58540c38ac1551165b1f1e0b988e88", "score": "0.6024084", "text": "public function __construct(Server $server)\n {\n $this->server = $server;\n }", "title": "" }, { "docid": "e5e636e3d0603b325caa410ec5cc557d", "score": "0.6018364", "text": "public function getServerMethod() \n\t{\n\t\treturn $this->server_method; \n\t}", "title": "" }, { "docid": "5f667f74de05aa62c1d779a95ade510e", "score": "0.60076654", "text": "public function server(string $server): self\n {\n $this->server = $server;\n return $this;\n }", "title": "" }, { "docid": "1f940054edce3ff028ca2de7757769d8", "score": "0.59981936", "text": "public function getServerProfile()\r\n {\r\n return $this->_serverProfile;\r\n }", "title": "" } ]
f512e79e54605f3cf5861d8a50ed6477
Method called to associate a UsuarioComissionamento object to this object through the UsuarioComissionamento foreign key attribute.
[ { "docid": "2a4fdee34b75931e1983008853b359ab", "score": "0.6976644", "text": "public function addUsuarioComissionamento(UsuarioComissionamento $l)\n\t{\n\t\tif ($this->collUsuarioComissionamentos === null) {\n\t\t\t$this->initUsuarioComissionamentos();\n\t\t}\n\t\tif (!in_array($l, $this->collUsuarioComissionamentos, true)) { // only add it if the **same** object is not already associated\n\t\t\tarray_push($this->collUsuarioComissionamentos, $l);\n\t\t\t$l->setUsuario($this);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "5b3e8e3333110b126aa7b3411dac3233", "score": "0.63483584", "text": "public function initUsuarioComissionamentos()\n\t{\n\t\t$this->collUsuarioComissionamentos = array();\n\t}", "title": "" }, { "docid": "cfb6bdc83723a475a03e97a53e5ce917", "score": "0.5525372", "text": "public function getSesionesUsuariosId()\n {\n return $this->sesionesUsuariosId;\n }", "title": "" }, { "docid": "0818292a6b0050c5426783ce052c0b31", "score": "0.55179846", "text": "public function clearUsuarioComissionamentos()\n\t{\n\t\t$this->collUsuarioComissionamentos = null; // important to set this to NULL since that means it is uninitialized\n\t}", "title": "" }, { "docid": "568025ec3d948c4cea6c7d26e7c87aa5", "score": "0.5447448", "text": "public function cadastro_comprador(){\n\t\tif (!empty($this->request->data)) {\n\t\t\tdebug($this->data);\n\t\t\t#validação de usuário comum\n\t\t\t$this->User->set($this->data);\n\t\t\tif($this->User->validates()){\n\t\t\t\n\t\t\t\tif($this->data['User']['pessoa_fisica_juridica'] == 0){\n\t\t\t\t\t\n\t\t\t\t\t// debug($this->data);\t\t\t\n\t\t\t\t\t#validação de pessoa fisica\n\t\t\t\t\t$this->LoadModel('PessoaFisica');\n\t\t\t\t\t$this->PessoaFisica->set($this->data);\n\t\t\t\t\tif($this->PessoaFisica->validates()){\n\t\t\t\t\t\t// $this->User->hasOne = \"PessoaFisica\";\n\t\t\t\t\t\t// $this->PessoaFisica->hasOne = \"User\";\n\t\t\t\t\t\t\t$this->request->data['User']['comprador'] = 1;\n\t\t\t\t\t\t\tif($this->User->save($this->data)){\n\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t#atribui o id do usuário cadastrado para fazer o relacionamento na tabela pessoa_fisica\n\t\t\t\t\t\t\t\t$this->request->data['PessoaFisica']['usuarios_id'] = $this->User->id;\n\n\t\t\t\t\t\t\t\tif($this->PessoaFisica->save($this->data)){\n\t\t\t\t\t\t\t\t\techo \"salvou\";\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tdebug($this->User->PessoaFisica->validationErrors);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t// echo \"Não Salvou!\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\t#printa os erros de validação na tela, SEMPRE DEIXAR COMENTADO QUANDO NÂO ESTIVER EM USO!!\n\t\t\t\t\t\tdebug($this->PessoaFisica->validationErrors);\n\t\t\t\t\t}\t\n\t\t\t\t}else{\n\t\n\t\t\t\t\t#validação pessoa juridica\n\t\t\t\t\t$this->LoadModel('PessoaJuridica');\n\t\t\t\t\t$this->PessoaJuridica->set($this->data);\n\t\t\t\t\tif($this->PessoaJuridica->validates()){\n\t\t\t\t\t\tif($this->User->save($this->data)){\n\n\t\t\t\t\t\t\t#atribui o id do usuário cadastrado para fazer o relacionamento na tabela pessoa_juridica\n\t\t\t\t\t\t\t$this->request->data['PessoaJuridica']['usuarios_id'] = $this->User->id;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif($this->PessoaJuridica->save($this->data)){\n\t\t\t\t\t\t\t\techo \"Salvou2!\";\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tdebug($this->User->PessoaJuridica->validationErrors);\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t// echo \"Não Salvou2!\";\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\t#printa os erros de validação na tela, SEMPRE DEIXAR COMENTADO QUANDO NÂO ESTIVER EM USO!!\n\t\t\t\t\t\tdebug($this->PessoaJuridica->validationErrors);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t#printa os erros de validação na tela, SEMPRE DEIXAR COMENTADO QUANDO NÂO ESTIVER EM USO!!\n\t\t\t\tdebug($this->User->validationErrors);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7078d9c927a7c9317788669b7255b420", "score": "0.53179955", "text": "public function addCiUsuariosRelatedByIdUsuario(ChildCiUsuarios $l)\n {\n if ($this->collCiUsuariossRelatedByIdUsuario === null) {\n $this->initCiUsuariossRelatedByIdUsuario();\n $this->collCiUsuariossRelatedByIdUsuarioPartial = true;\n }\n\n if (!$this->collCiUsuariossRelatedByIdUsuario->contains($l)) {\n $this->doAddCiUsuariosRelatedByIdUsuario($l);\n\n if ($this->ciUsuariossRelatedByIdUsuarioScheduledForDeletion and $this->ciUsuariossRelatedByIdUsuarioScheduledForDeletion->contains($l)) {\n $this->ciUsuariossRelatedByIdUsuarioScheduledForDeletion->remove($this->ciUsuariossRelatedByIdUsuarioScheduledForDeletion->search($l));\n }\n }\n\n return $this;\n }", "title": "" }, { "docid": "ec30636b415e0c760db7ea592ec1b0d5", "score": "0.5288344", "text": "public function inserir(){\r\n \t\tif(!$this->_validarCampos())\r\n \t\t\t// levantando a excessao CamposObrigatorios //\r\n \t\t\tthrow new CamposObrigatorios();\r\n \t\t// recuperando a instancia da classe de acesso a dados //\r\n \t\t$instancia = ComentarioDAO::getInstancia();\r\n \t\t// executando o metodo //\r\n \t\t// retornando o Usuario //\r\n \t\treturn $instancia->inserir($this);\r\n \t}", "title": "" }, { "docid": "9d072bc2050c547dd275a64bf17ddbce", "score": "0.52634794", "text": "public function addCertificadoRelatedByUsuarioId(Certificado $l)\n\t{\n\t\tif ($this->collCertificadosRelatedByUsuarioId === null) {\n\t\t\t$this->initCertificadosRelatedByUsuarioId();\n\t\t}\n\t\tif (!in_array($l, $this->collCertificadosRelatedByUsuarioId, true)) { // only add it if the **same** object is not already associated\n\t\t\tarray_push($this->collCertificadosRelatedByUsuarioId, $l);\n\t\t\t$l->setUsuarioRelatedByUsuarioId($this);\n\t\t}\n\t}", "title": "" }, { "docid": "fb195ddea85096dbd0811aefe779b045", "score": "0.52633744", "text": "public function getUsuarios_usuario_id() {\n return $this->usuarios_usuario_id;\n }", "title": "" }, { "docid": "61b02b7481257ae7d397d3e54c6f7252", "score": "0.5201365", "text": "public function addContadorComissionamento(ContadorComissionamento $l)\n\t{\n\t\tif ($this->collContadorComissionamentos === null) {\n\t\t\t$this->initContadorComissionamentos();\n\t\t}\n\t\tif (!in_array($l, $this->collContadorComissionamentos, true)) { // only add it if the **same** object is not already associated\n\t\t\tarray_push($this->collContadorComissionamentos, $l);\n\t\t\t$l->setContador($this);\n\t\t}\n\t}", "title": "" }, { "docid": "9e17d99a2b0a3bdde907796cc8e9ad0f", "score": "0.5174415", "text": "public function usuarioCoordinador(){\r\n try {\r\n if($this->verificarSession()){\r\n $this->vista->set('titulo', 'Usuario Coordiandor');\r\n $idPersona = $_SESSION['idUsuario'];\r\n $persona = new Persona();\r\n $coordinador = $persona->leerPorId($idPersona);\r\n $this->vista->set('coordinador', $coordinador);\r\n $ruta = 'utiles/imagenes/fotos/';\r\n if (file_exists($ruta.$idPersona.'.jpg')) {\r\n $img= '<a href=\"/colegio/acudiente/usuarioAcudiente\"><img height=\"150px\" width=\"150px\" src=\"../utiles/imagenes/fotos/'.$idPersona.'.jpg\"></a>';\r\n }elseif (file_exists($ruta.$idPersona.'.png')) {\r\n $img= '<a href=\"/colegio/acudiente/usuarioAcudiente\"><img height=\"150px\" width=\"150px\" src=\"../utiles/imagenes/fotos/'.$idPersona.'.png\"></a>';\r\n }elseif (file_exists($ruta.$idPersona.'.jpeg')) {\r\n $img= '<a href=\"/colegio/acudiente/usuarioAcudiente\"><img height=\"150px\" width=\"150px\" src=\"../utiles/imagenes/fotos/'.$idPersona.'.jpeg\"></a>';\r\n }else{\r\n $img= '<a href=\"/colegio/acudiente/usuarioAcudiente\"><img height=\"150px\" width=\"150px\" src=\"../utiles/imagenes/avatarDefaul.png\"></a>';\r\n }\r\n $this->vista->set('img', $img);\r\n return $this->vista->imprimir();\r\n }\r\n } catch (Exception $exc) {\r\n echo 'Error de aplicacion: ' . $exc->getMessage();\r\n }\r\n \r\n }", "title": "" }, { "docid": "e77c7a0977713cea1b6e0fe2824158b4", "score": "0.5161657", "text": "public function getUsuario()\n {\n return $this->hasOne(Usuarios::className(), ['id' => 'usuario_id'])->inverseOf('seguidores');\n }", "title": "" }, { "docid": "ee3c4e89a293f7e4d971fcc0269bb036", "score": "0.5147343", "text": "public function crear_usuario()\n {\n $data = compobarSesion();\n //alertas y notificaciones\n $data['notificaciones'] = $this->Notificaciones_model->listar_notificaciones($data['user_id']);\n $data['notificaciones_supervisor'] = $this->Notificaciones_model->listar_notificaciones_supervisor($data['rol']);\n $data['alertas'] = $this->Notificaciones_model->listar_alertas($data['user_id']);\n $data['alertas_supervisor'] = $this->Notificaciones_model->listar_alertas_supervisor($data['rol']);\n //proyectos\n $data['proyectos'] = $this->Admin_model->get_proyectos();\n $data['title'] = 'Crear usuario';\n echo $this->templates->render('crear_usuario', $data);\n }", "title": "" }, { "docid": "17d69b46b2686814d516b3018a32e5ea", "score": "0.5133454", "text": "public function addCertificadoRelatedByUsuarioValidouId(Certificado $l)\n\t{\n\t\tif ($this->collCertificadosRelatedByUsuarioValidouId === null) {\n\t\t\t$this->initCertificadosRelatedByUsuarioValidouId();\n\t\t}\n\t\tif (!in_array($l, $this->collCertificadosRelatedByUsuarioValidouId, true)) { // only add it if the **same** object is not already associated\n\t\t\tarray_push($this->collCertificadosRelatedByUsuarioValidouId, $l);\n\t\t\t$l->setUsuarioRelatedByUsuarioValidouId($this);\n\t\t}\n\t}", "title": "" }, { "docid": "632e2a9f6afd5c5f1b8ee4bb6ff22a17", "score": "0.5125846", "text": "public function initCertificadosRelatedByUsuarioValidouId()\n\t{\n\t\t$this->collCertificadosRelatedByUsuarioValidouId = array();\n\t}", "title": "" }, { "docid": "f208d7e60c44b2c01766cfaab0bd57a2", "score": "0.5116052", "text": "public function createAction(Request $request) {\n\n $entity = new Solicitud();\n $Usuarioentity = new UsuarioSolicitud();\n $form = $this->createCreateForm($entity);\n $form->handleRequest($request);\n\n if ($form->isValid()) {\n $date = new DateTime('now', new \\DateTimeZone('America/Bogota'));\n $date->format('yyyy-MM-dd HH:i');\n $entity->setFecha($date);\n $entity->setFechaupdate($date);\n $entity->setEstado('Pendiente');\n $em = $this->getDoctrine()->getManager();\n //guardamos en bd\n $em->persist($entity);\n $em->flush();\n //verificamos que usuario se encuentra logeado\n $user = $this->get('security.context')->getToken()->getUser();\n //si es super administrador no genere el registro\n if ($this->get('security.context')->isGranted('ROLE_SUPER_ADMIN')) {\n \n } else {\n //verificamos que usuario se encuentra logeado\n $security_context = $this->get('security.context');\n $security_token = $security_context->getToken();\n //definimos el usuario, con rol diferentea cordinador, administrador,suberadmin,usuario\n $user = $security_token->getUser();\n\n $Usuarioentity->setIdUsuario($user);\n $Usuarioentity->setIdSolicitud($entity);\n //guardamos en base de datos\n $em->persist($Usuarioentity);\n $em->flush();\n }\n\n ///procedemos a notificar a los coordinadores\n $em = $this->getDoctrine()->getManager();\n //creamos query de consulta, para buscar todos los coordinadores activos en la base de datos\n $query = $em->createQuery(\n 'SELECT u\n FROM AdminAdminBundle:User u\n WHERE u.roles LIKE :roles'\n )->setParameter('roles', '%\"ROLE_CORDI\"%');\n if ($query->getResult()) {\n ///procedemos a notificar a los coordinadores enviando email\n $coordinadores = $query->getResult();\n foreach ($coordinadores as $coordinador) {\n $names = $coordinador->getNombre() . ' ' . $coordinador->getApellidos();\n $email = $coordinador->getEmail();\n $Subject = 'Mainevent Informa';\n $Body = 'Llego trabajo, Es hora de laborar!!.';\n $correo = 'maineventltda@gmail.com';\n $nombregraba = $entity->getNombre();\n $detalle = $entity->getObservaciones();\n $message = \\Swift_Message::newInstance()\n ->setSubject($Subject)\n ->setFrom($correo)\n ->setTo($email)\n ->setBody(\n <<<EOF\n Nombres: $names\n Asunto: $Subject\n Nombre: $nombregraba\n Detalle: $detalle\n $Body\nEOF\n )\n ;\n $this->get('mailer')->send($message);\n }\n ///notificamos al usuario que ha sido activado, enviandole un correo electronico\n return $this->redirect($this->generateUrl('solicitud_show', array('id' => $entity->getIdSolicitud())));\n } else {\n return $this->redirect($this->generateUrl('solicitud_show', array('id' => $entity->getIdSolicitud())));\n }\n }\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "title": "" }, { "docid": "2d49c95fc79c204de4bacba831e366bc", "score": "0.51050967", "text": "public function initCertificadosRelatedByUsuarioId()\n\t{\n\t\t$this->collCertificadosRelatedByUsuarioId = array();\n\t}", "title": "" }, { "docid": "e8fe3bafd868137cdba4726a67fcfa9c", "score": "0.5079856", "text": "public function store(UserRequest $request){\n\n $usuario = new User();\n\n if($request->id_oficina != 'null'){\n \n $oficina_num = Oficina::find($request->id_oficina);\n $usuario->username = $request->username;\n $usuario->password = bcrypt($request->password);\n if($request->tipo == 1){\n $usuario->tipo = \"admin\";\n }elseif($request->tipo == 2){\n $usuario->tipo = \"tecnicoHS\";\n }elseif($request->tipo == 2){\n $usuario->tipo =\"tecnicoRI\";\n }else{\n $usuario->tipo = \"miembro\";\n }\n $usuario->name = $request->name;\n $usuario->apellido = $request->apellido;\n $usuario->email = $request->email;\n $usuario->oficina()->associate($oficina_num);\n \n $usuario->save();\n $usuario_rol = User::find($usuario->id);\n $usuario_rol->attachRole($request->tipo);\n\n flash('El usuario \"'.$usuario->apellido.', '.$usuario->name.' se ha registrado de forma correcta!','success');\n\n return redirect()->route('usuario.listar');\n\n }else{\n $usuario->username = $request->username;\n $usuario->password = bcrypt($request->password);\n if($request->tipo == 1){\n $usuario->tipo = \"admin\";\n }elseif($request->tipo == 2){\n $usuario->tipo = \"tecnicoHS\";\n }elseif($request->tipo == 2){\n $usuario->tipo =\"tecnicoRI\";\n }else{\n $usuario->tipo = \"miembro\";\n }\n $usuario->name = $request->name;\n $usuario->apellido = $request->apellido;\n $usuario->email = $request->email;\n $usuario->oficina_id = $request->oficina_id;\n\n $usuario->save();\n $usuario_rol = User::find($usuario->id);\n $usuario_rol->attachRole($request->tipo);\n\n flash('El usuario \"'.$usuario->apellido.', '.$usuario->name.' se ha registrado de forma correcta!','success');\n\n return redirect()->route('usuario.listar');\n }\n\n }", "title": "" }, { "docid": "73acb5b41394a40d35efde8730dab028", "score": "0.50783396", "text": "public function store(ContratoinscripcionRequest $request)\n {\n if ($this->verificar($request->estado)) {\n flash(\"El contrato no pudo ser almacenado porque ya existe otro contrato definido como ACTUAL.\")->error();\n return redirect()->route('contratoinscripcion.index');\n }\n $contrato = new Contratoinscripcion($request->all());\n $u = Auth::user();\n $contrato->user_change = $u->identificacion;\n $result = $contrato->save();\n if ($result) {\n $aud = new Auditoriaadmision();\n $aud->usuario = \"ID: \" . $u->identificacion . \", USUARIO: \" . $u->nombres . \" \" . $u->apellidos;\n $aud->operacion = \"INSERTAR\";\n $str = \"CREACIÓN DE CONTRATOS DE INSCRIPCIÓN. DATOS: \";\n foreach ($contrato->attributesToArray() as $key => $value) {\n $str = $str . \", \" . $key . \": \" . $value;\n }\n $aud->detalles = $str;\n $aud->save();\n flash(\"El contrato fue almacenado de forma exitosa!\")->success();\n return redirect()->route('contratoinscripcion.index');\n } else {\n flash(\"El contrato no pudo ser almacenado. Error: \" . $result)->error();\n return redirect()->route('contratoinscripcion.index');\n }\n }", "title": "" }, { "docid": "c5cf6d45e15d1527b4baf87692c3ef41", "score": "0.50491786", "text": "public function getUsuarioComissionamentos($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UsuarioPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\t{\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($this->collUsuarioComissionamentos === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t $this->collUsuarioComissionamentos = array();\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(UsuarioComissionamentoPeer::USUARIO_ID, $this->id);\n\n\t\t\t\tUsuarioComissionamentoPeer::addSelectColumns($criteria);\n\t\t\t\t$this->collUsuarioComissionamentos = UsuarioComissionamentoPeer::doSelect($criteria, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return the collection.\n\n\n\t\t\t\t$criteria->add(UsuarioComissionamentoPeer::USUARIO_ID, $this->id);\n\n\t\t\t\tUsuarioComissionamentoPeer::addSelectColumns($criteria);\n\t\t\t\tif (!isset($this->lastUsuarioComissionamentoCriteria) || !$this->lastUsuarioComissionamentoCriteria->equals($criteria)) {\n\t\t\t\t\t$this->collUsuarioComissionamentos = UsuarioComissionamentoPeer::doSelect($criteria, $con);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->lastUsuarioComissionamentoCriteria = $criteria;\n\t\treturn $this->collUsuarioComissionamentos;\n\t}", "title": "" }, { "docid": "16d04d3cc2765c7792dab299081e7a2c", "score": "0.5046051", "text": "public function tutorProyecto()\n {\n return $this->belongsTo(User::class, 'user_id');\n }", "title": "" }, { "docid": "8a01407060e2689785d463748c3df2c8", "score": "0.50316584", "text": "public function addCuponsDescontoCertificadoRelatedByUsuarioAutorizacaoId(CuponsDescontoCertificado $l)\n\t{\n\t\tif ($this->collCuponsDescontoCertificadosRelatedByUsuarioAutorizacaoId === null) {\n\t\t\t$this->initCuponsDescontoCertificadosRelatedByUsuarioAutorizacaoId();\n\t\t}\n\t\tif (!in_array($l, $this->collCuponsDescontoCertificadosRelatedByUsuarioAutorizacaoId, true)) { // only add it if the **same** object is not already associated\n\t\t\tarray_push($this->collCuponsDescontoCertificadosRelatedByUsuarioAutorizacaoId, $l);\n\t\t\t$l->setUsuarioRelatedByUsuarioAutorizacaoId($this);\n\t\t}\n\t}", "title": "" }, { "docid": "318322cb474e427e98e6bc852de2c568", "score": "0.50174206", "text": "public function guardarUsuario($identificacion, $nombre, $apellido, $pass, $telefono, $celular, $direccion, $email, $usarAgenda, $idioma, $estado, $licencia){\n\t\t\n\t\t$idGuardado = \"\";\n\t\t\n\t\t\n\t\t$identificacion \t\t\t= parent::escaparQueryBDCliente($identificacion); \n\t\t$nombre \t\t\t\t\t= parent::escaparQueryBDCliente($nombre); \n\t\t$apellido \t\t\t\t= parent::escaparQueryBDCliente($apellido); \n\t\t$pass \t\t\t\t\t= parent::escaparQueryBDCliente($pass); \n\t\t$telefono \t\t\t\t= parent::escaparQueryBDCliente($telefono); \n\t\t$celular \t\t\t\t\t= parent::escaparQueryBDCliente($celular); \n\t\t$direccion \t\t\t\t= parent::escaparQueryBDCliente($direccion); \n\t\t$email \t\t\t\t\t= parent::escaparQueryBDCliente($email); \n\t\t$usarAgenda \t\t\t\t= parent::escaparQueryBDCliente($usarAgenda); \n\t\t$idioma \t\t\t\t\t= parent::escaparQueryBDCliente($idioma); \n\t\t$estado \t\t\t\t\t= parent::escaparQueryBDCliente($estado); \n\t\t$licencia \t\t\t\t= parent::escaparQueryBDCliente($licencia); \n\t\t\n\t\t\n\t\t\n\t\t$query = \"INSERT INTO tb_usuarios\n\t\t\t\t\t(tipoIdentificacion,identificacion,nombre,apellido,pass,telefono,celular,direccion,email,\n\t\t\t\t\tagenda,idIdioma,estado,idLicencia)\n\t\t\t\t VALUES\n\t\t\t\t\t('CC', '$identificacion', '$nombre', '$apellido', '$pass', '$telefono', '$celular', '$direccion', '$email',\n\t\t\t\t\t\t'$usarAgenda', '$idioma', '$estado', '$licencia' );\";\n\t\t\n\n\t\t\n\t\t$conexion = parent::conexionCliente();\t\n\t \t\n\t\t$res = $conexion->query($query);\n\t\t\n\t\t$query2 = \"SELECT max(idUsuario) AS ultimoId FROM tb_usuarios \";\n\t\t\n\t\tif($res2 = $conexion->query($query2)){\n \n /* obtener un array asociativo */\n while ($filas2 = $res2->fetch_assoc()) {\n $idGuardado = $filas2['ultimoId'];\n } \n \n }//fin if\n\t\t\n return $idGuardado;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "6b3c8eaa66479c3b823a70ce45feda9a", "score": "0.50150794", "text": "public function storeComentario(Request $request){\n if(!$request->has('seguimiento_id') or !$request->has('comentario') or !$request->has('autor_id'))\n return response()->json([\n 'message' => 'Faltan datos',\n 'data' => $request->toArray(),\n 'status' => 'error'\n ], 200);\n\n $seguimiento = Seguimiento::where(['id' => $request->get('seguimiento_id')]);\n\n if(!$seguimiento->exists())\n return response()->json([\n 'message' => 'No existen registros de ese seguimiento',\n 'data' => [],\n 'status' => 'error'\n ], 200);\n\n $autor = Usuario::where(['id' => $request->get('autor_id')])->exists();\n\n if(!$autor)\n return response()->json([\n 'message' => 'No existen registros de ese usuario',\n 'data' => [],\n 'status' => 'error'\n ], 200);\n\n $comentario = new Comentarios([\n 'seguimiento_id' => $request->get('seguimiento_id'), \n 'observacion' => $request->get('comentario'), \n 'autor_id' => $request->get('autor_id')\n ]);\n \n if (!$comentario->save())\n return response()->json([\n 'message' => 'Ha ocurido un error',\n 'data' => [],\n 'status' => 'error'\n ], 200);\n \n $seguimiento->update(['fecha_seguimiento' => date('Y-m-d')]);\n\n return response()->json([\n 'message' => 'Comentario registrado',\n 'data' => $comentario->id,\n 'status' => 'ok'\n ], 201);\n }", "title": "" }, { "docid": "d7c36a9cc9ac159e20fd02ade3cb2235", "score": "0.50046927", "text": "public function getId_usuarioPropietari(){\n\t\treturn $this->id_usuario;\n\t}", "title": "" }, { "docid": "08a5eb14ed516d6b8a5e9c0984a8b4f8", "score": "0.49960977", "text": "public function getRelacionUsuario(){\n\t\treturn $this->relacionUsuario;\n\t}", "title": "" }, { "docid": "8e849907318acb180ba9891f6adeece3", "score": "0.4994008", "text": "public function setOrdenCompra($id_remitente, $opcion, $proveedor='', $rut_proveedor='', $giro_proveedor='', $cotizacion='',$usuario=array()){\n\t\t$query = \"select * from usuarios where id=\".$usuario['id'];\n\t\t$data = NotaHelper::getMssqlQuery($query);\n\t\tif (!sizeof($data)){ // si no existe se inserta\n\t\t\t$nombre = explode(' ',$usuario['nombre_usuario']);\n\t\t\t$query = \"insert into usuarios(id,nombre,apellido,pass,nivel,id_depto) \n\t\t\t\t\t\tvalues(\".$usuario['id'].\",'\".$nombre[0].\"','\".$nombre[1].\"','\".$usuario['username'].\"', \".$usuario['id_nivel'].\",\".$usuario['id_depto'].\")\";\n\t\t\tNotaHelper::getMssqlQuery($query);\n\t\t}\n\n\t\t$query = \"select count(*) as cantidad from orden_compra where id_nota=\".$id_remitente.\" and opcion_oc=\".$opcion;\n\t\t$data = NotaHelper::getMssqlQuery($query);\n\t\tif (sizeof($data)){\n\t\t\tprint_r($data);\n\t\t\tprint_r('//');\n\t\t\tif (!$data[0]['cantidad']){ // no existe registro -> se inserta por única vez\n\t\t\t\t$query = \"insert into orden_compra(id_nota,id_usuario,opcion_oc,fecha,proveedor,activo,cotizacion) \n\t\t\t\t\t\tvalues(\".$id_remitente.\",\".$usuario['id'].\",\".$opcion.\",getdate(),'\".$proveedor.\"_\".$rut_proveedor.\"_\".$giro_proveedor.\"',1,'\".$cotizacion.\"')\";\n\t\t\t\tNotaHelper::getMssqlQuery($query);\n\t\t\t}else\n\t\t\t\t$query = \"sin insercion\";\n\t\t}\n\t\tprint_r($query);\n\t}", "title": "" }, { "docid": "409d15193bf52beff9bab58f8705cc38", "score": "0.4975465", "text": "function setDepartamentoCargoComissionado( $idDepartamento, $idCargoComissionado, $idProfessor ) {\r\n\t\t$conexao = Conexao::con();\r\n\r\n\t\t$sql[] = \"SELECT COUNT(*) AS count FROM deptocargocomissionado d\";\r\n\t\t$sql[] = \"WHERE d.id_cargocomissionado = {$idCargoComissionado}\";\r\n\t\t$sql[] = \"AND d.id_departamento = {$idDepartamento}\";\r\n\t\t$query = mysqli_query( $conexao, join( ' ', $sql ) );\r\n\t\tunset( $sql );\r\n\r\n\t\t$count = mysqli_fetch_array( $query, MYSQL_ASSOC );\r\n\t\tif ( $count['count'] == 1 ) {\r\n\t\t\t$sql[] = \"UPDATE deptocargocomissionado\";\r\n\t\t\t$sql[] = \"SET id_professor = '{$idProfessor}'\";\r\n\t\t\t$sql[] = \"WHERE id_cargocomissionado = {$idCargoComissionado}\";\r\n\t\t\t$sql[] = \"AND id_departamento = {$idDepartamento}\";\r\n\t\t\t$sql[] = \"LIMIT 1\";\r\n\t\t} else {\r\n\t\t\t$sql[] = \"INSERT INTO deptocargocomissionado\";\r\n\t\t\t$sql[] = \"(id_cargocomissionado, id_professor, id_departamento)\";\r\n\t\t\t$sql[] = \"VALUES\";\r\n\t\t\t$sql[] = \"('{$idCargoComissionado}', '{$idProfessor}', '{$idDepartamento}')\";\r\n\t\t}\r\n\r\n\t\tif ( mysqli_query( $conexao, join( ' ', $sql ) ) ) {\r\n\t\t\t$return->result = 1;\r\n\t\t\t$return->msg = 'Atualizacao realizada com sucesso';\r\n\t\t} else {\r\n\t\t\t$return->result = 0;\r\n\t\t\t$return->msg = 'Erro ao realizar atualizacao';\r\n\t\t\t$return->error = mysqli_error( $conexao );\r\n\t\t}\r\n\t\treturn $return;\r\n\t}", "title": "" }, { "docid": "8a3e90ad58c034852b327f92d10ab714", "score": "0.49736324", "text": "function crear_usuarios() {\n $menu_activo = 'active';\n $data['menu_activo_administracion'] = $menu_activo;\n //mandando el estilo del item activo\n $item_activo = 'enlace_activo';\n $data['item_activo_administracion_usuarios'] = $item_activo;\n //obtener usuarios administradores existentes\n $obtenerUsuarios = $this->Administracion_modelo->obtenerAdministradores();\n $data['obtenerUsuarios'] = $obtenerUsuarios;\n //obtener total de registros en tabla administracion\n $obtenerTotalUsuarios = $this->Administracion_modelo->obtenerTotalAdministradores();\n $data['obtenerTotalUsuarios'] = $obtenerTotalUsuarios;\n //cargando la vista y enviando datos\n $data [\"contenido_principal\"] = \"administracion/crear_usuarios\";\n $data [\"titulo\"] = \"Creación de Usuarios Administradores\";\n $this->load->view(\"includes/template_administradores\", $data);\n }", "title": "" }, { "docid": "969db3b3c178a3984e31b2c749484f03", "score": "0.49691027", "text": "public function registrar(){\n\t\t\t\n\t\t\t$oficina = $this->userModel->query(\"SELECT personal.* From personal LEFT OUTER JOIN\n\t\t\t\t\t\t\t\t\t\t\t\tpersonal_usuario ON personal.id = personal_usuario.personal_id \n\t\t\t\t\t\t\t\t\t\t\t\tWHERE personal_usuario.personal_id IS null AND personal.estatus != 0\");\n\n\t\t\t$medico = $this->userModel->query(\"SELECT medicos.* From medicos LEFT OUTER JOIN medico_usuario ON \n\t\t\t\t\t\t\t\t\t\t\t\tmedicos.id = medico_usuario.medico_id \n\t\t\t\t\t\t\t\t\t\t\t\tWHERE medico_usuario.medico_id IS null AND medicos.estatus != 0\");\n\t\t\t$personal = [\n\t\t\t\t\t\"medico\" => $medico,\n\t\t\t\t\t\"oficina\" => $oficina\n\t\t\t];\n\t\t\t\n\t\t\t$this->view(\"usuarios/registrar\",$personal);\n\t\t\t\n\t\t}", "title": "" }, { "docid": "5d72e0d175f2840b386bb694bf00d62c", "score": "0.49501038", "text": "public function getUsuarioCreacionActividad( ){\n\t\t\treturn $this->usuarioCreacionActividad;\n\t\t}", "title": "" }, { "docid": "74f6f843ed3c5ce312614ce0e5cd3d83", "score": "0.49415532", "text": "public static function autoAssign( $usuario, $accion ){\n\t\t\t//Obtenemos lista de posibles logros a dar\n\t\t\t$list = self::getList([\n\t\t\t\t'accion' => $accion,\n\t\t\t\t'order' => 'accion ASC',\n\t\t\t\t'columns' => ['id']\n\t\t\t]);\n\t\t\t$logrosids = array();\n\t\t\tforeach( $list as $v ) $logrosids[] = $v['id'];\n\n\t\t\tif( count($logrosids) ){\n\t\t\t\t//Verficiamos que no se hayan dado ya\n\t\t\t\t$registros = self::getRegistro( $usuario, $logrosids );\n\n\t\t\t\tif( $registros ){\n\t\t\t\t\t//Descartamos los logros que ya se registraron\n\t\t\t\t\tforeach( $logrosids as $k => $v ){\n\t\t\t\t\t\tif( in_array($v, $registros) )\n\t\t\t\t\t\t\tunset($logrosids[$k]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Registramos los logros que aun no se registran\n\t\t\t\tif( $logrosids )\n\t\t\t\t\tself::setRegistroMultiple( $usuario, $logrosids );\n\t\t\t\t\n\t\t\t}\n\t\t\treturn $logrosids;\n\t\t}", "title": "" }, { "docid": "ebbc3dd356c5215049a2a2ec655731e0", "score": "0.49253297", "text": "public function Usuario($cedulaUsuario, $tipoUsuario,$estado){\n \n $this->cedulaUsuario = $cedulaUsuario;\n $this->tipoUsuario = $tipoUsuario;\n $this->estado = $estado; \n }", "title": "" }, { "docid": "43bc0925380c587c1aa63950e8351af8", "score": "0.492274", "text": "public function usuarios()\n {\n return $this->belongsToMany('App\\Usuario','cod_rol','cod_rol');\n }", "title": "" }, { "docid": "a52a70af0b16577167e974834092dd61", "score": "0.49201006", "text": "public function getIdUsuario()\n {\n return $this->id_usuario;\n }", "title": "" }, { "docid": "01a683c9804c2771cf3d77a56ae17c1b", "score": "0.49183074", "text": "public function getPerfilUsuarioUsuarios()\n {\n return $this->hasMany(PerfilUsuarioUsuario::className(), ['id_perfil_usuario', 'id_perfil_usuario']);\n }", "title": "" }, { "docid": "471216cb75d36cbba14c7d5ae2039b4d", "score": "0.49175218", "text": "public function get_questao_usuario_prova()\n {\n \n // loads the associated object\n if (empty($this->questao_usuario_prova))\n $this->questao_usuario_prova = new QuestaoUsuarioProva($this->questao_usuario_prova_id);\n \n // returns the associated object\n return $this->questao_usuario_prova;\n }", "title": "" }, { "docid": "43e4029355bbca1e64be6133d9b9ab29", "score": "0.49127278", "text": "public function setId_usuario($id_usuario){\n $this->id_usuario_sistema=$id_usuario;}", "title": "" }, { "docid": "0baed39e6609bbae9746083d5d06cbba", "score": "0.49124488", "text": "public function BuscarUserUej($accion)\n {\n\n $ace = ProyectoAccionEspecifica::find()\n ->select([\"user_accounts.id\", \"user_accounts.username as name\"])\n ->innerjoin('proyecto_usuario_asignar', 'proyecto_usuario_asignar.accion_especifica_id=proyecto_accion_especifica.id')\n ->innerjoin('user_accounts', 'user_accounts.id=proyecto_usuario_asignar.usuario_id')\n ->where(['proyecto_accion_especifica.id_unidad_ejecutora' => $accion['proyectovariables-unidad_ejecutora'], 'proyecto_accion_especifica.id' => $accion['proyectovariables-accion_especifica']])\n ->asArray()\n ->all();\n\n return $ace;\n }", "title": "" }, { "docid": "53b2d91b865c66065373e99e15ec2f02", "score": "0.4905654", "text": "public function initCuponsDescontoCertificadosRelatedByUsuarioAutorizacaoId()\n\t{\n\t\t$this->collCuponsDescontoCertificadosRelatedByUsuarioAutorizacaoId = array();\n\t}", "title": "" }, { "docid": "c6a561e3496da194eae282059c412de5", "score": "0.48962426", "text": "public function getFkEconomicoUtilizacao()\n {\n return $this->fkEconomicoUtilizacao;\n }", "title": "" }, { "docid": "f3bf6bee2f330a80ef627a36786a88d1", "score": "0.48959866", "text": "public function configuracionUsuario(){\r\n try {\r\n if($this->verificarSession()){\r\n $this->vista->set('titulo', 'configuracion de Usuario');\r\n $idPersona = $_SESSION['idUsuario'];\r\n $pers = new Persona();\r\n $user = new Usuario();\r\n $persona = $pers->leerPorId($idPersona);\r\n $usuario = $user->leerPorId($idPersona);\r\n $this->vista->set('usuario', $usuario);\r\n $this->vista->set('persona', $persona);\r\n return $this->vista->imprimir();\r\n }\r\n } catch (Exception $exc) {\r\n echo 'Error de aplicacion: ' . $exc->getMessage();\r\n }\r\n }", "title": "" }, { "docid": "f3bf6bee2f330a80ef627a36786a88d1", "score": "0.48959866", "text": "public function configuracionUsuario(){\r\n try {\r\n if($this->verificarSession()){\r\n $this->vista->set('titulo', 'configuracion de Usuario');\r\n $idPersona = $_SESSION['idUsuario'];\r\n $pers = new Persona();\r\n $user = new Usuario();\r\n $persona = $pers->leerPorId($idPersona);\r\n $usuario = $user->leerPorId($idPersona);\r\n $this->vista->set('usuario', $usuario);\r\n $this->vista->set('persona', $persona);\r\n return $this->vista->imprimir();\r\n }\r\n } catch (Exception $exc) {\r\n echo 'Error de aplicacion: ' . $exc->getMessage();\r\n }\r\n }", "title": "" }, { "docid": "f3bf6bee2f330a80ef627a36786a88d1", "score": "0.48959866", "text": "public function configuracionUsuario(){\r\n try {\r\n if($this->verificarSession()){\r\n $this->vista->set('titulo', 'configuracion de Usuario');\r\n $idPersona = $_SESSION['idUsuario'];\r\n $pers = new Persona();\r\n $user = new Usuario();\r\n $persona = $pers->leerPorId($idPersona);\r\n $usuario = $user->leerPorId($idPersona);\r\n $this->vista->set('usuario', $usuario);\r\n $this->vista->set('persona', $persona);\r\n return $this->vista->imprimir();\r\n }\r\n } catch (Exception $exc) {\r\n echo 'Error de aplicacion: ' . $exc->getMessage();\r\n }\r\n }", "title": "" }, { "docid": "934cdef2183a61db1f729ed1c2ba1668", "score": "0.48945656", "text": "public function setUsuarioId($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->usuario_id !== $v) {\n\t\t\t$this->usuario_id = $v;\n\t\t\t$this->modifiedColumns[] = ContadorPeer::USUARIO_ID;\n\t\t}\n\n\t\tif ($this->aUsuario !== null && $this->aUsuario->getId() !== $v) {\n\t\t\t$this->aUsuario = null;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "ed163d2785191b40dedb9e93811b7537", "score": "0.48936146", "text": "public function addCuponsDescontoCertificadoRelatedByUsuarioId(CuponsDescontoCertificado $l)\n\t{\n\t\tif ($this->collCuponsDescontoCertificadosRelatedByUsuarioId === null) {\n\t\t\t$this->initCuponsDescontoCertificadosRelatedByUsuarioId();\n\t\t}\n\t\tif (!in_array($l, $this->collCuponsDescontoCertificadosRelatedByUsuarioId, true)) { // only add it if the **same** object is not already associated\n\t\t\tarray_push($this->collCuponsDescontoCertificadosRelatedByUsuarioId, $l);\n\t\t\t$l->setUsuarioRelatedByUsuarioId($this);\n\t\t}\n\t}", "title": "" }, { "docid": "82120169302b28ff8d39d0f443ae872e", "score": "0.48921064", "text": "public function setUsuarioModificacionActividad( $usuarioModificacionActividad ){\n\t\t\t$this->usuarioModificacionActividad = $usuarioModificacionActividad;\n\t\t}", "title": "" }, { "docid": "862dc3d1d838f10a4f2b67cab6ef0ba4", "score": "0.48749897", "text": "public function setIdUsuario($v)\n {\n if ($v !== null) {\n $v = (int) $v;\n }\n\n if ($this->id_usuario !== $v) {\n $this->id_usuario = $v;\n $this->modifiedColumns[CiUsuariosTableMap::COL_ID_USUARIO] = true;\n }\n\n return $this;\n }", "title": "" }, { "docid": "98f2a862dd30bb85632bfad0aacbdc2c", "score": "0.48721653", "text": "public function getUsuario()\n {\n return $this->hasOne(Usuarios::className(), ['id' => 'usuario_id'])->inverseOf('profesionales');\n }", "title": "" }, { "docid": "a4b8c3a7902a22dadd03df581919150a", "score": "0.4866897", "text": "function setUsuario($usuario_id) { $this->usuario_id = $usuario_id; }", "title": "" }, { "docid": "56b0502e1b0896e7704672fdf047a012", "score": "0.48633808", "text": "public function createAction(Request $request)\n {\n $entity = new AdUser();\n $form = $this->createCreateForm($entity);\n $form->handleRequest($request);\n \n if ($form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $username = $entity->getUsername();\n $email = $entity->getEmail();\n \n $entusr = $em->getRepository('FocalAppBundle:AdUser')->findBy( array('username' => $username));\n \n if ($entusr) {\n throw $this->createNotFoundException('FOCAL: Usuario ya existe.');\n }\n \n /*$entusr = $em->getRepository('FocalAppBundle:AdUser')->findBy(array('email' => $email));\n \n if ($entusr) {\n throw $this->createNotFoundException('FOCAL: Usuario con ese correo ya existe.');\n }*/\n \n $this->setSecurePassword($entity);\n \n /* Guarda los valores por defecto */\n $usr= $this->get('security.context')->getToken()->getUser();\n $usuario = $usr->getUsername();\n $fecha = new \\DateTime(\"now\");\n $entity->setUsuarioCreacion($usuario);\n $entity->setUsuarioUltimaModificacion($usuario);\n $entity->setFechaCreacion($fecha);\n $entity->setFechaUltimaModificacion($fecha);\n $entity->setIdEstado(AppConst::ESTADO_GENERAL_ACTIVO);\n \n $session = $request->getSession();\n $codMuni = $session->get('_cod_municipio');\n $codDept = $session->get('_cod_departamento');\n $menu = $session->get('_menu');\n //$idComu = $session->get('_cod_comunidad');\n \n $entity->setAcceso($entity->getAcceso()->getIdRol());\n /* verifica si el usuario tiene privilegios para cambiar el departamento y municipio*/\n if ($this->get('security.authorization_checker')->isGranted('ROLE_ADMIN')){\n $entity->setCodDepartamento($entity->getCodDepartamento()->getCodDepartamento());\n $entity->setCodMunicipio($request->get('codmunicipio'));\n } else {\n $entity->setcodMunicipio($codMuni);\n $entity->setCodDepartamento($codDept);\n //$entity->setidComunidad($idComu);\n /* La asigna rol de usuario */\n //$entity->setUserRoles(1);\n }\n \n $em->persist($entity);\n $em->flush();\n\n return $this->redirect($this->generateUrl('aduser'));\n }\n\n return $this->render('FocalAppBundle:AdUser:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'menu' => $menu\n ));\n }", "title": "" }, { "docid": "752fd804d698530bd86c4bbd35ed7fb0", "score": "0.48500425", "text": "public function getUsuario()\n {\n return $this->hasOne(Usuarios::className(), ['id' => 'usuario_id']);\n }", "title": "" }, { "docid": "702dbf270b2eff85287effaea9f43502", "score": "0.48491886", "text": "public function setRelacionUsuario($relacionUsuario){\n\t\t$this->relacionUsuario = $relacionUsuario;\n\t}", "title": "" }, { "docid": "4d89b1c71e961bbaabca2a8b574bdc25", "score": "0.48479328", "text": "public function procesar(){\n $incidencias = self::actualizar();\n for($i=0;$i<count($incidencias);$i++){\n $userId =$incidencias[$i]->user;\n $user = User::where('id',$userId)->first()->name;\n $incidencias[$i]->user = $user;\n }\n return view('adminAuth.incidencias',['incidencias' => $incidencias]);\n }", "title": "" }, { "docid": "2795a202ee85073f043850de397411cb", "score": "0.484755", "text": "public function usuario()\n {\n return $this->belongsToMany('App\\Usuario', 'usuariorol', 'rol_id', 'usuario_id');\n }", "title": "" }, { "docid": "3df58996bd74968480574adb9734704d", "score": "0.4840598", "text": "public function initCuponsDescontoCertificadosRelatedByUsuarioId()\n\t{\n\t\t$this->collCuponsDescontoCertificadosRelatedByUsuarioId = array();\n\t}", "title": "" }, { "docid": "cb99b0e444fa44cf49478e66ebb35102", "score": "0.48404446", "text": "public function countUsuarioComissionamentos(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(UsuarioPeer::DATABASE_NAME);\n\t\t} else {\n\t\t\t$criteria = clone $criteria;\n\t\t}\n\n\t\tif ($distinct) {\n\t\t\t$criteria->setDistinct();\n\t\t}\n\n\t\t$count = null;\n\n\t\tif ($this->collUsuarioComissionamentos === null) {\n\t\t\tif ($this->isNew()) {\n\t\t\t\t$count = 0;\n\t\t\t} else {\n\n\t\t\t\t$criteria->add(UsuarioComissionamentoPeer::USUARIO_ID, $this->id);\n\n\t\t\t\t$count = UsuarioComissionamentoPeer::doCount($criteria, false, $con);\n\t\t\t}\n\t\t} else {\n\t\t\t// criteria has no effect for a new object\n\t\t\tif (!$this->isNew()) {\n\t\t\t\t// the following code is to determine if a new query is\n\t\t\t\t// called for. If the criteria is the same as the last\n\t\t\t\t// one, just return count of the collection.\n\n\n\t\t\t\t$criteria->add(UsuarioComissionamentoPeer::USUARIO_ID, $this->id);\n\n\t\t\t\tif (!isset($this->lastUsuarioComissionamentoCriteria) || !$this->lastUsuarioComissionamentoCriteria->equals($criteria)) {\n\t\t\t\t\t$count = UsuarioComissionamentoPeer::doCount($criteria, false, $con);\n\t\t\t\t} else {\n\t\t\t\t\t$count = count($this->collUsuarioComissionamentos);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$count = count($this->collUsuarioComissionamentos);\n\t\t\t}\n\t\t}\n\t\treturn $count;\n\t}", "title": "" }, { "docid": "e0daf24eb87123c7810c8205b0edd18f", "score": "0.4837846", "text": "public function getId_usuario()\n {\n return $this->id_usuario;\n }", "title": "" }, { "docid": "e0daf24eb87123c7810c8205b0edd18f", "score": "0.4837846", "text": "public function getId_usuario()\n {\n return $this->id_usuario;\n }", "title": "" }, { "docid": "412b7c23cd1e1b16c900ea478bd18776", "score": "0.48324516", "text": "function getIdUsuario() {\n return $this->idUsuario;\n }", "title": "" }, { "docid": "9bd4539d41eb586119db6ba80ce74880", "score": "0.4831062", "text": "public function registerNewUser($user_name, $user_email, $id_empresa, $user_complete_name, $id_fornecedor, $id_cliente, $role_id, $is_id_existente, $user_id, $is_validar_adm_gestor, $opcao_identificador, $user_active, $user_activation_hash, $isInserirContagemAuditoria) {\n /*\n * array de retorno para tela de insercao\n */\n $arrJson = [];\n /*\n * pega os dados da empresa\n */\n $empresa = new Empresa ();\n $sigla = $empresa->getSigla($id_empresa);\n $atualizado_por = $_SESSION ['user_email'];\n $ultima_atualizacao = date('Y/m/d H:i:s');\n /*\n * variaveis do email\n */\n global $objEmail;\n /*\n * criptografia\n */\n global $converter;\n /*\n * check provided data validity\n * TODO: check for \"return true\" case early, so put this first\n */\n if (empty($user_name)) {\n $this->errors [] = MESSAGE_USERNAME_EMPTY;\n } elseif (strlen($user_name) < 2 || strlen($user_name) > 64) {\n $this->errors [] = MESSAGE_USERNAME_BAD_LENGTH;\n } elseif ($opcao_identificador && !preg_match('/^[a-z._\\d]{2,64}$/i', $user_name)) {\n $this->errors [] = MESSAGE_USERNAME_INVALID;\n } elseif (!$opcao_identificador && !preg_match(\"/^[0-9]{11}$/\", $user_name) && !validaCPF($user_name)) {\n $this->errors [] = MESSAGE_CPF_INVALID;\n } elseif (empty($user_email)) {\n $this->errors [] = MESSAGE_EMAIL_EMPTY;\n } elseif (strlen($user_email) > 255) {\n $this->errors [] = MESSAGE_EMAIL_TOO_LONG;\n } elseif (!filter_var($user_email, FILTER_VALIDATE_EMAIL)) {\n $this->errors [] = MESSAGE_EMAIL_INVALID;\n // finally if all the above checks are ok\n } else if ($this->databaseConnection()) {\n /*\n * faz um select e verifica se ja existe um usuario com a chave primaria na tabela empresa (id_empresa, id_fornecedor, id_cliente\n */\n $query_existe_empresa = $this->db_connection->prepare(\"\" . \"SELECT id FROM users_empresa WHERE \" . \"id_empresa = '$id_empresa' AND \" . \"id_fornecedor = '$id_fornecedor' AND \" . \"id_cliente = '$id_cliente' AND \" . \"user_email = '$user_email'\");\n $query_existe_empresa->execute();\n if ($query_existe_empresa->rowCount() > 0) {\n $this->errors [] = MESSAGE_IS_EXISTENTE;\n } else {\n /*\n * se nao houver um id existente cria um usuario na tabela users\n */\n if (!($is_id_existente)) {\n $query_new_user_insert = $this->db_connection->prepare('' . 'INSERT INTO users (' . 'user_name, ' . 'user_registration_ip, ' . 'user_registration_datetime, ' . 'user_registration_email, ' . 'user_complete_name) ' . 'VALUES(' . ':user_name, ' . ':user_registration_ip, ' . 'now(), ' . ':user_registration_email, ' . ':user_complete_name)');\n $query_new_user_insert->bindValue(':user_name', $user_name, PDO::PARAM_STR);\n $query_new_user_insert->bindValue(':user_registration_ip', getRemoteAddr(), PDO::PARAM_STR);\n $query_new_user_insert->bindValue(':user_registration_email', getEmailUsuarioLogado(), PDO::PARAM_STR);\n $query_new_user_insert->bindValue(':user_complete_name', $user_complete_name, PDO::PARAM_STR);\n $query_new_user_insert->execute();\n /*\n * id of new user\n */\n $user_id = $this->db_connection->lastInsertId();\n /*\n * atualiza a tabela com o hash que sera gerado a partir do ID e do Email\n */\n $user_activation_hash = $converter->encode($user_id . ';' . $user_email);\n $query_update_hash = $this->db_connection->prepare(\"UPDATE users SET user_activation_hash = :user_activation_hash WHERE user_id = :user_id\");\n $query_update_hash->bindValue(':user_activation_hash', $user_activation_hash, PDO::PARAM_STR);\n $query_update_hash->bindValue(':user_id', $user_id, PDO::PARAM_INT);\n $query_update_hash->execute();\n /*\n * insere um registro limpo na tabela user_detail para preenchimento posterior apenas se o id nao existir\n */\n $query_new_user_detail = $this->db_connection->prepare(\"INSERT INTO users_detail (id, \" . ($opcao_identificador ? \"\" : \"cpf, \") . \"atualizado_por, \" . \"ultima_atualizacao) VALUES (\" . \":userId, \" . ($opcao_identificador ? \"\" : \":cpf, \") . \":atualizadoPor, \" . \":ultimaAtualizacao)\");\n $query_new_user_detail->bindValue(':userId', $user_id, PDO::PARAM_INT);\n $opcao_identificador ? NULL : $query_new_user_detail->bindValue(':cpf', $user_name, PDO::PARAM_STR);\n $query_new_user_detail->bindValue(':atualizadoPor', $atualizado_por);\n $query_new_user_detail->bindValue(':ultimaAtualizacao', $ultima_atualizacao);\n $query_new_user_detail->execute();\n /*\n * realiza outras operacoes\n */\n } else {\n if (PRODUCAO) {\n $subject = \"Dimension :: Cadastro de perfil de usu&aacute;rio\";\n $mensagem = \"\" . \"Prezado(a) Sr(a). $user_complete_name,<br /><br />A Empresa $sigla o(a) inseriu como um usu&aacute;rio no sistema de contagem de pontos de fun&ccedil;&atilde;o Dimension&reg;.<br />\" . \"Para acess&aacute;-lo basta ir ao link <a href='\" . SITE_URL . \"'>Dimension</a> e digitar seu login e senha.<br />\" . \"Notamos que voc&ecirc; j&aacute; &eacute; um usu&aacute;rio do sistema, por isso suas informa&ccedil;&otilde;es permanecem as mesmas.\" . (!($user_active) ? \"Entretanto, percebemos tamb&eacute;m que voc&eacute; ainda n&atilde;o ativou seu usu&aacute;rio, fa&ccedil;a isso clicando \" . \"<a href='\" . EMAIL_VERIFICATION_URL . '&i=' . $converter->encode($user_id . ';' . $user_email) . \"'>AQUI</a>\" : \"\") . \"<br /><br />\";\n $verificationLink = sha1($mensagem . date('Ymdhis'));\n /*\n * envia o email\n */\n $objEmail->setEmail(array(\n 'emails' => array(\n $user_email\n ),\n 'subject' => $subject,\n 'mensagem' => $mensagem,\n 'verificationLink' => $verificationLink\n ));\n\n $objEmail->enviar();\n }\n }\n /*\n * insert into empresa (associa este usuario a esta empresa) agora coloca o fornecedor tambem\n */\n $query_new_user_empresa = $this->db_connection->prepare(\"INSERT INTO users_empresa (\" . \"id_empresa, \" . \"id_fornecedor, \" . \"id_cliente, \" . \"id_user, \" . \"is_validar_adm_gestor, \" . \"is_inserir_contagem_auditoria, \" . \"user_email, \" . \"ultima_atualizacao, \" . \"atualizado_por) VALUES (\" . \":id_empresa, \" . \":id_fornecedor, \" . \":id_cliente, \" . \":id_user, \" . \":is_validar_adm_gestor, \" . \":is_inserir_contagem_auditoria, \" . \":user_email, \" . \"'$ultima_atualizacao', \" . \"'$atualizado_por')\");\n $query_new_user_empresa->bindValue(':id_empresa', $id_empresa, PDO::PARAM_INT);\n $query_new_user_empresa->bindValue(':id_fornecedor', $id_fornecedor, PDO::PARAM_INT);\n $query_new_user_empresa->bindValue(':id_cliente', $id_cliente, PDO::PARAM_INT);\n $query_new_user_empresa->bindValue(':id_user', $user_id, PDO::PARAM_INT);\n $query_new_user_empresa->bindValue(':is_validar_adm_gestor', $is_validar_adm_gestor, PDO::PARAM_INT);\n $query_new_user_empresa->bindValue(':is_inserir_contagem_auditoria', $isInserirContagemAuditoria, PDO::PARAM_INT);\n $query_new_user_empresa->bindValue(':user_email', $user_email);\n $query_new_user_empresa->execute();\n /*\n * inserir na tabela rbac_userroles para que o usuario possa logar no sistema\n */\n $query_new_user_role = $this->db_connection->prepare('INSERT INTO rbac_userroles (' . 'UserId, ' . 'RoleId, ' . 'AssignmentDate, ' . 'id_empresa, ' . 'id_fornecedor, ' . 'id_cliente, ' . 'ultima_atualizacao, ' . 'atualizado_por) VALUES (' . ':user_id, ' . ':role_id, ' . 'now(), ' . ':id_empresa, ' . ':id_fornecedor, ' . ':id_cliente, ' . ':ultimaAtualizacao, ' . ':atualizadoPor)');\n $query_new_user_role->bindValue(':user_id', $user_id, PDO::PARAM_INT);\n $query_new_user_role->bindValue(':role_id', $role_id, PDO::PARAM_INT);\n $query_new_user_role->bindValue(':id_empresa', $id_empresa, PDO::PARAM_INT);\n $query_new_user_role->bindValue(':id_fornecedor', $id_fornecedor, PDO::PARAM_INT);\n $query_new_user_role->bindValue(':id_cliente', $id_cliente, PDO::PARAM_INT);\n $query_new_user_role->bindValue(':ultimaAtualizacao', $ultima_atualizacao);\n $query_new_user_role->bindValue(':atualizadoPor', $atualizado_por, PDO::PARAM_STR);\n $query_new_user_role->execute();\n /*\n * inserir um registro na tabela usuario_historico\n */\n $query_new_user_historico = $this->db_connection->prepare(\"INSERT INTO usuario_historico (\" . \"user_id, \" . \"id_empresa, \" . \"id_fornecedor, \" . \"id_cliente, \" . \"operacao, \" . \"atualizado_por, \" . \"ultima_atualizacao) VALUES (\" . \":userId, \" . \":idEmpresa, \" . \":idFornecedor, \" . \":idCliente, \" . \":operacao, \" . \":atualizadoPor, \" . \":ultimaAtualizacao)\");\n $query_new_user_historico->bindValue(':userId', $user_id, PDO::PARAM_INT);\n $query_new_user_historico->bindValue(':idEmpresa', $id_empresa, PDO::PARAM_INT);\n $query_new_user_historico->bindValue(':idFornecedor', $id_fornecedor, PDO::PARAM_INT);\n $query_new_user_historico->bindValue(':idCliente', $id_cliente, PDO::PARAM_INT);\n $query_new_user_historico->bindValue(':operacao', 'inserir', PDO::PARAM_STR);\n $query_new_user_historico->bindValue(':atualizadoPor', $atualizado_por, pdo::PARAM_STR);\n $query_new_user_historico->bindValue(':ultimaAtualizacao', $ultima_atualizacao);\n $query_new_user_historico->execute();\n /*\n * TODO: !IMPORTANT! configurar o email do Dimension no ambiente de desenvolvimento\n */\n $link = EMAIL_VERIFICATION_URL . '&i=' . $converter->encode($user_id . ';' . $user_email);\n /*\n * manda apenas se for producao\n */\n if (PRODUCAO) {\n if ($query_new_user_insert) {\n $subject = \"Dimension :: Cadastro de perfil de usu&iacute;rio\";\n $mensagem = \"\" . \"Prezado(a) Sr(a). $user_complete_name,<br /><br />A Empresa $sigla o(a) inseriu como um usu&aacute;rio no sistema de contagem de pontos de fun&ccedil;&atilde;o Dimension&reg;.<br />\" . \"Como &eacute; o cadastro inicial, voc&ecirc; precisa ativar o seu usu&aacute;rio, para isto clique <a href=\\\"$link\\\"><strong>AQUI</strong></a> e inicie o processo.<br />\" . \"<strong>Informa&ccedil;&atilde;o importante</strong>:<br />\" . \"&nbsp;&nbsp;&nbsp;-&nbsp;ID do Usu&aacute;rio ou CPF: $user_name;<br/>\" . \"&nbsp;&nbsp;&nbsp;-&nbsp;Email: $user_email.<br />\" . \"Utilize-os para se identificar/ativar seu usu&aacute;rio no sistema.\";\n $verificationLink = sha1($mensagem . date('Ymdhis'));\n /*\n * envia email\n */\n $objEmail->setEmail(array(\n 'emails' => array(\n $user_email\n ),\n 'subject' => $subject,\n 'mensagem' => $mensagem,\n 'verificationLink' => $verificationLink\n ));\n if ($objEmail->enviar()) {\n /*\n * when mail has been send successfully\n */\n $this->messages [] = MESSAGE_VERIFICATION_MAIL_SENT;\n $this->registration_successful = true;\n } else {\n // By Dimension - nao deletar o usuario - entrar com suporte para habilitar novamente\n // delete this users account immediately, as we could not send a verification email\n // $query_delete_user = $this->db_connection->prepare('DELETE FROM users WHERE user_id=:user_id');\n // $query_delete_user->bindValue(':user_id', $user_id, PDO::PARAM_INT);\n // $query_delete_user->execute();\n $this->errors [] = MESSAGE_VERIFICATION_MAIL_ERROR;\n }\n } else {\n $this->errors [] = MESSAGE_REGISTRATION_FAILED;\n }\n }\n /*\n * confere tudo e envia mensagem de sucesso\n */\n if ($user_id) {\n $arrJson [] = array(\n 'msg' => 'sucesso',\n 'user_id' => $user_id,\n 'user_name' => $user_name,\n 'link' => (PRODUCAO ? '' : $link)\n );\n } else {\n $arrJson [] = $this->errors;\n }\n }\n }\n return $arrJson;\n }", "title": "" }, { "docid": "7f38757315df5934a5a256666d55d31e", "score": "0.48179594", "text": "public function Usuarios()\n {\n return $this->belongsTo(User::class, 'user_id', 'id');\n }", "title": "" }, { "docid": "7fd765bc7e15f7ffee3d9d8d9cb89bd4", "score": "0.48151532", "text": "public function __construct(CadUsuario $usuarios, PerfilAcesso $perfilAcesso)\n {\n $this->middleware('auth');\n $this->usuarios = $usuarios;\n\n /** Verifica as permissões **/\n $this->middleware('can:AcessarUsuários')->except(['alterarMeusDados', 'updateDados']);\n $this->middleware('can:CriarUsuario', ['only' => ['create', 'store']])->except(['alterarMeusDados', 'updateDados']);\n $this->middleware('can:VisualizarUsuario', ['only' => ['show']])->except(['alterarMeusDados', 'updateDados']);\n $this->middleware('can:EditarUsuario', ['only' => ['edit', 'update']])->except(['alterarMeusDados', 'updateDados']);\n $this->middleware('can:ExcluirUsuario', ['only' => ['destroy']])->except(['alterarMeusDados', 'updateDados']);\n\n // Menus para o form disponível em todas as views\n FacadesView::share('perfisAcesso', $perfilAcesso->where('flg_ativo', Biblioteca::FLG_ATIVO)->get());\n }", "title": "" }, { "docid": "d647e4c33a1de1afd5905209495da126", "score": "0.48031813", "text": "public function agregar() {\n\n\t\t//si la solicitud es de un post\n\t\tif($this->request->is('post')) {\n\t\t\t$this->Usuario->create(); //Se crea el usuario\n\t\t\t\t//Se guarda el usuario con los valores del request data\t\t\t\t\t\t\t\t\n\t\t\t\tif ($this->Usuario->save($this->request->data)) {\n\t\t\t\t\t//se imprime un mensaje que dice que se creo el usuario\n\t\t\t\t\t$this->Session->setFlash('El usuario ha sido creado satisfactoriamente','flash_custom');\n\t\t\t\t\t//se redirige al index\n\t\t\t\t\t$this->redirect(array('action' => 'index'));\n\t\t\t\t} else {\n\t\t\t\t\t//en caso de que no se manda un mensaje de que fue error\n\t\t\t\t\t$this->Session->setFlash('El Usuario no pudo ser creado Intente nuevamente', 'flash_error');\n\t\t\t\t}\n\t\t}\n\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "197754de601bb4d9b86197595e2de603", "score": "0.47995272", "text": "function agregar_usuario(){\n\t\t$login=$this->session->userdata('autenticado');\n\t\t\n\t\t$this->form_validation->set_rules('username', 'Ingrese un username', 'required');\n\t\t$this->form_validation->set_rules('nombre', 'Ingrese un nombre', 'required');\n\t\t$this->form_validation->set_rules('apellidopat', 'Apellido Paterno', 'required');\n\t\t$this->form_validation->set_rules('apellidoma', 'Apellido Materno', 'required');\n\t\t$this->form_validation->set_rules('email', 'Correo Electronico', 'required');\n\t\t$this->form_validation->set_rules('password', 'Contraseña', 'required');\n\t\t$this->form_validation->set_rules('user', 'Grupo de Usuario', 'required');\n\t\t\n\t\tif ($this->form_validation->run()){\n\t\t\t//$email = $this->input->post(\"email\");\n\t\t\t\t\t\n\t\t\t$password= $this->input->post(\"password\");\n\t\t\t$contra=md5($password);\n\n\t\t\t$datos['usuario']=$this->input->post(\"username\");\n\t\t\t$datos['nombre']=$this->input->post(\"nombre\");\n\t\t\t$datos['apellido_paterno']=$this->input->post(\"apellidopat\");\n\t\t\t$datos['apellido_materno']=$this->input->post(\"apellidoma\");\n\t\t\t$datos['email']=$this->input->post(\"email\");\n\t\t\t$datos['rut']=$this->input->post('rut');\n\t\t\t$datos['contrasena']=$contra;\n\t\t\t$datos['id_grupo']=$this->input->post(\"user\");\n\t\t\t$datos['fecha_creacion']=date(\"Y-m-d\");\n\t\t\t$datos['activo'] = 1;\n\t\t\t$datos['id_clinica'] = $login['id_clinica'];\n\t\t\n\t\t\t$this->usuario_model->insert_user($datos);\n\t\t\tredirect(base_url());\n\t\t\t\n\n\t\t}\n\t\t\n\t\t$data['grupos']=$this->usuario_model->get_grupos();\n\t\t$data['titulo'] = 'login';\n\t\t$this->load->view('usuario/usuarios/agregar_usuario', $data);\n\t\t\n\t}", "title": "" }, { "docid": "b7ff81e9cb4ba137a394df9dc9f03fc8", "score": "0.47918615", "text": "public function usuario(){\n //return $this->hasOne('App\\Usuarios', 'id_usuario', 'id_usuario_sistema');\n return $this->belongsTo('App\\Usuarios', 'id_usuario_sistema', 'id_usuario');\n }", "title": "" }, { "docid": "3b81a9b44e22b7bde31385fa624548d1", "score": "0.4789172", "text": "public function usuario()\r\n\t{\r\n\t\t\r\n\t\t$Permitido = array('Gerencia' => '', 'Plani' => '', 'Sistemas' => '', 'Ventas' => '');\r\n\t\t$this->ver_sesion_m->acceso($Permitido);\r\n\t\t\r\n\t\t$this->ver_sesion_m->no_clientes();\r\n\t\t\r\n\t\t//Limpieza de variables\r\n\t\t$Usuario = $this->seguridad_m->mysql_seguro(\r\n\t\t\t$this->input->post('usuario')\r\n\t\t);\r\n\t\t$Password = $this->seguridad_m->mysql_seguro(\r\n\t\t\t$this->input->post('password')\r\n\t\t);\r\n\t\t$Cod_empleado = $this->seguridad_m->mysql_seguro(\r\n\t\t\t$this->input->post('cod_empleado')\r\n\t\t);\r\n\t\t$Nombre = $this->seguridad_m->mysql_seguro(\r\n\t\t\t$this->input->post('nombre')\r\n\t\t);\r\n\t\t$Puesto = $this->seguridad_m->mysql_seguro(\r\n\t\t\t$this->input->post('puesto')\r\n\t\t);\r\n\t\t$Departamento = $this->seguridad_m->mysql_seguro(\r\n\t\t\t$this->input->post('departamento')\r\n\t\t);\r\n\t\t$Email = $this->seguridad_m->mysql_seguro(\r\n\t\t\t$this->input->post('email')\r\n\t\t);\r\n\t\t$Pais = $this->seguridad_m->mysql_seguro(\r\n\t\t\t$this->input->post('upais')\r\n\t\t);\r\n\t\t\r\n\t\t//Carga del modelo que da ingreso al menu\r\n\t\t$this->load->model('usuarios/crear_m', 'crear');\r\n\t\t\r\n\t\t$Ingreso = $this->crear->usuario(\r\n\t\t\t$Usuario,\r\n\t\t\t$Password,\r\n\t\t\t$Cod_empleado,\r\n\t\t\t$Nombre,\r\n\t\t\t$Puesto,\r\n\t\t\t$Departamento,\r\n\t\t\t$Email,\r\n\t\t\t$this->session->userdata('id_grupo'),\r\n\t\t\tfalse,\r\n\t\t\t$Pais\r\n\t\t);\r\n\t\t\r\n\t\tif('ok' == $Ingreso)\r\n\t\t{\r\n\t\t\theader('location: /usuarios/crear/index/ok');\r\n\t\t\texit();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\theader('location: /usuarios/crear/index/error');\r\n\t\t\texit();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "104982b2cdee6ffd7e9839db14625c5d", "score": "0.4780329", "text": "public function insertar_datosUsuario($txtNombres, $txtPaterno, $txtMaterno, $txtUsuario, $txtClave, $cboEstablecimiento, $cboRol, $default, $detaccion, $hid_Persona) {\n $usuario = $this->insertar_usuario($hid_Persona, $txtUsuario, $txtClave);\n\n if (is_array($cboEstablecimiento)) {\n foreach ($cboEstablecimiento as $indice => $valor) {\n if ($detaccion[$indice] != 'e') {\n $filter = new stdClass();\n $filter->USUA_Codigo = $usuario;\n $filter->COMPP_Codigo = $valor;\n $filter->ROL_Codigo = $cboRol[$indice];\n $filter->USUCOMC_Default = ($default == $indice) ? 1 : 0;\n $this->usuario_compania_model->insertar($filter);\n }\n }\n }\n }", "title": "" }, { "docid": "f111214c44097c7ab389896c5d6ef7cd", "score": "0.4777288", "text": "public function marcarSesionComoIniciada($usuario)\n {\n $_SESSION[\"id\"] = $usuario->getId();\n $_SESSION[\"identificador\"] = $usuario->getIdentificador();\n $_SESSION[\"codigoCookie\"] = $usuario->getCodigoCookie();\n $_SESSION[\"contrasenna\"] = $usuario->getContrasenna();\n $_SESSION[\"nombre\"] = $usuario->getNombre();\n $_SESSION[\"apellidos\"] = $usuario->getApellidos();\n }", "title": "" }, { "docid": "66c59fbf47790d1b039139235ce862d7", "score": "0.47698507", "text": "public function usuarios()\n {\n session_start();\n\n //Si no existe ninguna de estas sessiones se devuelve a la vista error.\n if (!isset($_SESSION[\"Administrador\"]) and !isset($_SESSION[\"Super_admin\"])) {\n\n header(\"Location:\" . RUTA_URL . \"/inicio\");\n \n //Si existe alguna session\n } else {\n\n if ($_SERVER[\"REQUEST_METHOD\"] == \"POST\") {\n\n $datos = [ \n \"documento\" => $_POST[\"documento\"],\n \"estado\" => $_POST[\"id_estado\"],\n ];\n $this->buscarModelo->actualizarUsuario($datos);\n\n }\n\n //Se llama al metodo que busca los usuarios\n $resul = $this->buscarModelo->devuelveUser();\n //Se guarda lo que devuelve en el array \"datos\"\n $datos = ['datos' => $resul];\n //Se retorna a la vista\n $this->vista('busquedas/usuario', $datos);\n }\n }", "title": "" }, { "docid": "79b9d7e7fe7bb14725aaab1cb91553bc", "score": "0.47664675", "text": "public function createUsuario(Request $request)\n {\n \n /*\n idElemento:this.idElemento,\n diasVacaciones:this.diasVacaciones,\n fechaInicioVacaciones:this.fechaInicioVacaciones,\n fechaSolicitudVacaciones:this.fechaSolicitudVacaciones,\n oficioVacaciones:this.oficioVacaciones,\n fechaTerminoVacaciones:this.fechaTerminoVacaciones,\n fechaReincorporacionVacaciones:this.fechaReincorporacionVacaciones\n\n */\n\n\n\n\n // \\Log::info($request->all());\n $permisoLocal=new PermisoLocal;\n $permisoLocal->elemento_policial_id=$request['idElemento'];\n $permisoLocal->num_dias=$request['diasVacaciones'];\n $permisoLocal->fecha_inicial=$request['fechaInicioVacaciones'];\n $permisoLocal->fecha_solicitud=$request['fechaSolicitudVacaciones'];\n $permisoLocal->oficio=$request['oficioVacaciones'];\n $permisoLocal->fecha_final=$request['fechaTerminoVacaciones'];\n $permisoLocal->fecha_reincorporacion=$request['fechaReincorporacionVacaciones'];\n $permisoLocal->tipo='vacaciones';\n $permisoLocal->fecha_registro=$request['fechaInicioVacaciones'];\n \n $permisoLocal->usuario_registro_id=Auth::user()->id;\n $permisoLocal->activo=true;\n $permisoLocal->version=0;\n $permisoLocal->save();\n\n\n\n\n $this->historial($permisoLocal->id);\n\n return $permisoLocal->id;\n /*\n $usuario=DB::select(\"select * from usuario where username='\".Auth::user()->username.\"'\");\n \\Log::info($usuario);\n $id=DB::select(\"select id from permiso order by id desc limit 1\");\n\n\n $permiso=new Permiso;\n //$permiso->id=$id[0]->id+1;\n $permiso->elemento_policial_id=$request['idElemento'];\n $permiso->num_dias=$request['diasVacaciones'];\n $permiso->fecha_inicial=$request['fechaInicioVacaciones'];\n $permiso->fecha_solicitud=$request['fechaSolicitudVacaciones'];\n $permiso->oficio=$request['oficioVacaciones'];\n $permiso->fecha_final=$request['fechaTerminoVacaciones'];\n $permiso->fecha_reincorporacion=$request['fechaReincorporacionVacaciones'];\n $permiso->tipo='vacaciones';\n $permiso->fecha_registro=$request['fechaInicioVacaciones'];\n \n $permiso->usuario_registro_id=$usuario[0]->id;\n $permiso->activo=true;\n $permiso->version=0;\n $permiso->save();\n*/\n \n }", "title": "" }, { "docid": "4ccceebaaaee3a3c521b587c20e4caaf", "score": "0.47585842", "text": "public function initContadorComissionamentos()\n\t{\n\t\t$this->collContadorComissionamentos = array();\n\t}", "title": "" }, { "docid": "c5048e7ab1c48105fe3c037e508c2542", "score": "0.47557947", "text": "public function getUsuarios()\n {\n return $this->hasMany(User::className(), ['id_pais' => 'id']);\n }", "title": "" }, { "docid": "9d5cd20c32291142ea2f820d6cba4c5a", "score": "0.47531646", "text": "public function usuario()\n {\n return $this->hasOne('App\\Users', 'id', 'idUsuario');\n }", "title": "" }, { "docid": "03d088bbe68e0b08feb81a1062a7964e", "score": "0.4750762", "text": "public function usuarios($idusuarios, $nome, $senha) {\n\t\t$this->basicaUsuarios = new BasicaUsuarios($idusuarios, $nome, $senha);\n\t}", "title": "" }, { "docid": "a5760872bfcf2e255fc2295fe3da768a", "score": "0.47475287", "text": "public function usuarioAcudiente(){\r\n try {\r\n if($this->verificarSession()){\r\n $this->vista->set('titulo', 'Usuario Coordiandor');\r\n $idPersona = $_SESSION['idUsuario'];\r\n $acudiente = new Acudiente();\r\n $acu = $acudiente->leerPorId($idPersona);\r\n $this->vista->set('acu', $acu);\r\n $persona = new Persona();\r\n $acudido = $persona->leerPorAcudiente($acu->getId_Acudiente());\r\n $this->vista->set('acudido', $acudido);\r\n $ruta = 'utiles/imagenes/fotos/';\r\n if (file_exists($ruta.$idPersona.'.jpg')) {\r\n $img= '<a href=\"/colegio/acudiente/usuarioAcudiente\"><img height=\"150px\" width=\"150px\" src=\"../utiles/imagenes/fotos/'.$idPersona.'.jpg\"></a>';\r\n }elseif (file_exists($ruta.$idPersona.'.png')) {\r\n $img= '<a href=\"/colegio/acudiente/usuarioAcudiente\"><img height=\"150px\" width=\"150px\" src=\"../utiles/imagenes/fotos/'.$idPersona.'.png\"></a>';\r\n }elseif (file_exists($ruta.$idPersona.'.jpeg')) {\r\n $img= '<a href=\"/colegio/acudiente/usuarioAcudiente\"><img height=\"150px\" width=\"150px\" src=\"../utiles/imagenes/fotos/'.$idPersona.'.jpeg\"></a>';\r\n }else{\r\n $img= '<a href=\"/colegio/acudiente/usuarioAcudiente\"><img height=\"150px\" width=\"150px\" src=\"../utiles/imagenes/avatarDefaul.png\"></a>';\r\n }\r\n $this->vista->set('img', $img);\r\n return $this->vista->imprimir();\r\n }\r\n } catch (Exception $exc) {\r\n echo 'Error de aplicacion: ' . $exc->getMessage();\r\n }\r\n \r\n }", "title": "" }, { "docid": "aa7f807aaba4a462552d4cbdcddcbd6a", "score": "0.4737388", "text": "public function __construct($rol_usuario, $identificacion, $conexion ) \r\n\t{ \r\n $this->rol_usuario= $rol_usuario;\r\n\t $this->identificacion=$identificacion;\r\n\t $this->conexion=$conexion;\r\n \r\n }", "title": "" }, { "docid": "230cd828d27eebaf75bfafeb3f065504", "score": "0.47358155", "text": "public function setCiUsuariosRelatedByInvitadoPor(ChildCiUsuarios $v = null)\n {\n if ($v === null) {\n $this->setInvitadoPor(NULL);\n } else {\n $this->setInvitadoPor($v->getIdUsuario());\n }\n\n $this->aCiUsuariosRelatedByInvitadoPor = $v;\n\n // Add binding for other direction of this n:n relationship.\n // If this object has already been added to the ChildCiUsuarios object, it will not be re-added.\n if ($v !== null) {\n $v->addCiUsuariosRelatedByIdUsuario($this);\n }\n\n\n return $this;\n }", "title": "" }, { "docid": "da7b6b0335729d728647238f59826da3", "score": "0.4730001", "text": "public function actionCreate() {\n $model = new Empleado;\n $modelUs = new Usuario;\n $this->performAjaxValidation(array($model, $modelUs));\n\n if (isset($_POST['Usuario']['dni'])) {\n $datosOk=true;\n if(($_POST['Usuario']['dni']=== '') || ($_POST['Empleado']['idbiblioteca']=== '')){\n $datosOk=false;\n $model->idbiblioteca=$_POST['Empleado']['idbiblioteca'];\n $model->save();\n }\n $usrOk=Usuario::model()->findByAttributes(array('dni' => $_POST['Usuario']['dni']));\n if ($usrOk) {\n $modelUs = Usuario::model()->findByAttributes(array('dni' => $_POST['Usuario']['dni']));\n $model->idbiblioteca = $_POST['Empleado']['idbiblioteca'];\n $model->idusuario = $modelUs->id;\n if (!Empleado::model()->findByAttributes(array('idbiblioteca' => $model->idbiblioteca, 'idusuario' => $model->idusuario))) {\n if ($model->save())\n Yii::app()->user->setFlash('exito', 'Se registró el DNI ' . $modelUs->dni . ' como empleado de la biblioteca ' . $model->idbiblioteca0->nombre);\n } else {\n Yii::app()->user->setFlash('exito', 'El DNI ' . $modelUs->dni . ' ya se encuentra registrado como empleado de la biblioteca ' . $model->idbiblioteca0->nombre);\n }\n } \n if(!$usrOk && $datosOk){\n Yii::app()->user->setFlash('nuevoRegistro', 'El usuario no se encuentra registrado en el sistema.');\n $modelUs->dni = $_POST['Usuario']['dni'];\n $modelUs->usuario = $_POST['Usuario']['dni'];\n $modelUs->pass = $_POST['Usuario']['dni'];\n $modelUs->admin = 0;\n $modelUs->estado = 1;\n $modelUs->attributes = $_POST['Usuario'];\n $model->idbiblioteca = $_POST['Empleado']['idbiblioteca'];\n if (isset($_POST['Usuario']['nombre'])) {\n if ($modelUs->save()) {\n $model->idusuario = $modelUs->id;\n if ($model->save()) {\n \t$email = new EnviarEmail;\n \t$subject =\"Se ha registrado con exito, como empleado \";\n \t$subject .= Yii::app()->name;\n \t$message = \"<h2>Bienvenid@</h2> <br/>\". \"<b>Usuario: </b>\".$modelUs->usuario .\"<br><b> Su password es: </b>\".$modelUs->pass .\"\";\n\t\t\t \t \t \n \t$message .=\"<br/><br/>\";\n \t$message .=\"<a href='http://meta.fi.uncoma.edu.ar/lybo/'>Regresar a web</a>\";\n \t \n \t$email->Enviar_Email(\n \t\t\tarray(Yii::app()->params['adminEmail'], Yii::app()->name),\n \t\t\tarray($modelUs->email, $modelUs->nombre),\n \t\t\t$subject,\n \t\t\t$message\n \t);\n Yii::app()->user->setFlash('exito', 'Se registró el DNI ' . $modelUs->dni . ' como empleado de la biblioteca ' . $model->idbiblioteca0->nombre);\n Yii::app()->user->getFlash('nuevoRegistro');\n $this->redirect(array('create'));\n }\n }\n }\n }\n }\n $this->render('create', array(\n 'model' => $model,\n 'modelUs' => $modelUs,\n ));\n }", "title": "" }, { "docid": "4fa45a97361f3a3169cd1be080fd8eb6", "score": "0.47281003", "text": "public function getIdUtilisateur()\n {\n return $this->id_utilisateur;\n }", "title": "" }, { "docid": "eafd7f002646ec1b4b7b6a98192b4a3b", "score": "0.472392", "text": "public function getCodigoUsuario()\n {\n return $this->codigoUsuario;\n }", "title": "" }, { "docid": "ea0a654aab000dd3fbbbf7eba38b223e", "score": "0.4711911", "text": "public function getUsuarioId()\n {\n return $this->usuarioId;\n }", "title": "" }, { "docid": "5c98dbd7cfad39004a50ca291a5c7d71", "score": "0.471072", "text": "public function addParceiroComissionamento(ParceiroComissionamento $l)\n\t{\n\t\tif ($this->collParceiroComissionamentos === null) {\n\t\t\t$this->initParceiroComissionamentos();\n\t\t}\n\t\tif (!in_array($l, $this->collParceiroComissionamentos, true)) { // only add it if the **same** object is not already associated\n\t\t\tarray_push($this->collParceiroComissionamentos, $l);\n\t\t\t$l->setParceiro($this);\n\t\t}\n\t}", "title": "" }, { "docid": "5eb9b9fc1df65096ea1c332da7357c28", "score": "0.47105625", "text": "function agregar() {\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\n\t\tif ($mdb2->only_read) {\n\t\t\tthrow new Exception('Por el momento esta trabajando solo en modo lectura.');\n\t\t}\n\n\t\tValidador::campoVacio($this->email, \"E-Mail\");\n\t\tValidador::campoVacio($this->nombre, \"Nombre\");\n\t\tValidador::campoVacio($this->clave, \"Clave\");\n\t\tValidador::campoEmail($this->email, \"E-Mail\");\n\t\tValidador::existeEmailUsuario(true, $this->email);\n\t\tValidador::existeNombreUsuario(true, $this->nombre);\n\n\t\t$sql = \"SELECT * FROM public.cliente_usuario_agrega(\".\n\t\t\t\tpg_escape_string($current_usuario_id).\", LOWER(TRIM('\".\n\t\t\t\tpg_escape_string($this->email).\"')), '\".\n\t\t\t\tpg_escape_string($this->clave).\"', TRIM('\".\n\t\t\t\tpg_escape_string($this->nombre).\"'), TRIM('\".\n\t\t\t\tpg_escape_string($this->telefono).\"'), TRIM('\".\n\t\t\t\tpg_escape_string($this->cargo).\"'), \".\n\t\t\t\tpg_escape_string($this->zona_horaria_id).\", \".\n\t\t\t\tpg_escape_string($this->idioma_id).\", \".\n\t\t\t\tpg_escape_string($this->perfil_id).\")\";\n//\t\tprint($sql);\n\t\t$res =& $mdb2->query($sql);\n\t\tif (MDB2::isError($res)) {\n\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\texit();\n\t\t}\n\t\t$log->setChange(\"AGREGO USUARIO\", $this->toString());\n\n\t\tif ($row = $res->fetchRow()) {\n\t\t\t$this->usuario_id = $row[\"cliente_usuario_agrega\"];\n\t\t}\n\t}", "title": "" }, { "docid": "4e8da3d0e3107190a9155e3b46cb67ce", "score": "0.4709908", "text": "public function getUsuarios()\n {\n return $this->hasOne(Usuarios::className(), ['id' => 'usuariosid'])->inverseOf('bloqueos');\n }", "title": "" }, { "docid": "78163c929b1db79fa7ba3d91d632af8b", "score": "0.47091463", "text": "public function getUsuarioId()\n {\n return $this->usuario_id;\n }", "title": "" }, { "docid": "6629aed7d5e0c967f1739c6337c7fe6c", "score": "0.4708719", "text": "public function addParceiroUsuario(ParceiroUsuario $l)\n\t{\n\t\tif ($this->collParceiroUsuarios === null) {\n\t\t\t$this->initParceiroUsuarios();\n\t\t}\n\t\tif (!in_array($l, $this->collParceiroUsuarios, true)) { // only add it if the **same** object is not already associated\n\t\t\tarray_push($this->collParceiroUsuarios, $l);\n\t\t\t$l->setParceiro($this);\n\t\t}\n\t}", "title": "" }, { "docid": "27474b4d14a87f1309f2833fd7dfc6b6", "score": "0.47042832", "text": "public function setFkEconomicoUtilizacao(\\Urbem\\CoreBundle\\Entity\\Economico\\Utilizacao $fkEconomicoUtilizacao)\n {\n $this->codUtilizacao = $fkEconomicoUtilizacao->getCodUtilizacao();\n $this->fkEconomicoUtilizacao = $fkEconomicoUtilizacao;\n \n return $this;\n }", "title": "" }, { "docid": "fb7c5c188cf193dec68b379c3b8b7bf3", "score": "0.47033876", "text": "public function asignarpersonaAction(Request $request)\n {\n $session = $request->getSession();\n $idCampana = $session->get('_id_campana');\n $idUsuario = $session->get('_id_usuario');\n $menu = $session->get('_menu');\n \n $em = $this->getDoctrine()->getManager();\n $idcomision = $request->get('idcomision');\n $idpersona = $request->get('persona');\n $idestructuracv = $request->get('idestructuracv');\n\n $entity = new DatosComisionesAsignadas();\n\n $entity->setIdPersona($idpersona);\n $entity->setIdComision($idcomision); \n $em->persist($entity);\n $em->flush();\n \n return $this->redirect($this->generateUrl('datoscentrosvotacion_cantidad', array('id' => $idestructuracv)));\n }", "title": "" }, { "docid": "8115a1ee94b5bd0fc3af78f90c8f583e", "score": "0.46857563", "text": "public function crearCorreoInstitucional(){\n $nom0 = $this->attributes['nombre'];\n //tomo el/los apellido/s del preinscripto\n $ape0 = $this->attributes['apellido'];\n //defino el dominio que tendrá cada mail creado\n $dominio = \"@udc.edu.ar\";\n \n $nom = $this->inicialesDeNombres($nom0);\n $nom1 = $this->sanear_string($nom);\n \n $ape = $this->apellidosCompletos($ape0);\n $ape1 = $this->sanear_string($ape);\n \n $correo_institucional = $nom1.$ape1.$dominio; \n $this->attributes['email_institucional'] = $correo_institucional;\n $this->save();\n }", "title": "" }, { "docid": "a5026f7b234a4c264ab8d4a2bc26bfc9", "score": "0.4683754", "text": "public function borar_usuario()\n {\n $data = compobarSesion();\n //alertas y notificaciones\n $data['notificaciones'] = $this->Notificaciones_model->listar_notificaciones($data['user_id']);\n $data['notificaciones_supervisor'] = $this->Notificaciones_model->listar_notificaciones_supervisor($data['rol']);\n $data['alertas'] = $this->Notificaciones_model->listar_alertas($data['user_id']);\n $data['alertas_supervisor'] = $this->Notificaciones_model->listar_alertas_supervisor($data['rol']);\n //proyectos\n //datos del prospecto\n $user_id = $this->uri->segment(3);\n\n $data['title'] = 'Crear usuario';\n echo $this->templates->render('crear_usuario', $data);\n }", "title": "" }, { "docid": "d811c8443a1d7b685d42e4a6f3e880ac", "score": "0.46786404", "text": "public function getId_utilisateur()\n {\n return $this->id_utilisateur;\n }", "title": "" }, { "docid": "e3a93b5d3cae1cc2419288a23bfd31bf", "score": "0.4678526", "text": "public function suscribir($idUsuario, $idCorriente) {\n\t\t$corrientesUsuarioDAO= new EntityDAO(\"corrientesusuarios\");\n\t\t$values =\n\t \tarray(\n\t \t'idCorriente' => $idCorriente,\n\t \t'idUsuario'=> $idUsuario,\n\t\t\t);\n\t\t\t$corrientesUsuarioDAO->insert($values);\n\n\t}", "title": "" }, { "docid": "da6c384c6d1828bb07a62799e13e37e3", "score": "0.46767935", "text": "public function setCargoId($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->cargo_id !== $v) {\n\t\t\t$this->cargo_id = $v;\n\t\t\t$this->modifiedColumns[] = UsuarioPeer::CARGO_ID;\n\t\t}\n\n\t\tif ($this->aCargo !== null && $this->aCargo->getId() !== $v) {\n\t\t\t$this->aCargo = null;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "ea13703bbcc3dab74fd88e5e608de532", "score": "0.46766794", "text": "public function getIdUsuario0()\n {\n return $this->hasOne(Usuario::className(), ['idUsuario' => 'idUsuario']);\n }", "title": "" }, { "docid": "657185bc9678a2e6cea81af84944956a", "score": "0.46728683", "text": "public function setUsuario(Usuario $v = null)\n\t{\n\t\tif ($v === null) {\n\t\t\t$this->setUsuarioId(NULL);\n\t\t} else {\n\t\t\t$this->setUsuarioId($v->getId());\n\t\t}\n\n\t\t$this->aUsuario = $v;\n\n\t\t// Add binding for other direction of this n:n relationship.\n\t\t// If this object has already been added to the Usuario object, it will not be re-added.\n\t\tif ($v !== null) {\n\t\t\t$v->addContador($this);\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "bfad3bd00d7d6922d35c3cd695b50209", "score": "0.46724424", "text": "public function usuario()\n {\n return $this->hasOne(Usuario::class, 'responsable_id', 'id');\n }", "title": "" }, { "docid": "bc797275031254785d4a0e5c47dfac80", "score": "0.4669513", "text": "public static function formularioUsuarios()\n {\n //se declara una variable que contendra los usuarios dependiendo de la opcion de busqueda\n $datos_usuarios = null;\n\n //se declaran las variables para usarse cuando se modifique un registro.\n $nombres = null;\n $apellidos = null; \n $celular = null;\n $fijo = null;\n $dui = null;\n $direccion = null;\n $email = null;\n $usuario = null;\n $tipo = null;\n $estado = null;\n\n //Variables para añadir clase active\n $active1;\n $active2;\n\n //Verifica si se ha seleccionado un usuario a modificar\n if(!empty($_GET[\"id_usuario\"]))\n {\n //variables para añadir la clase active\n $active1 = null;\n $active2 = \"active\";\n\n //variable con los datos de un usuario\n $datos_usuario = Sentencias::Seleccionar(\"usuarios\", \"id\", array($_GET[\"id_usuario\"]), 0, null);\n\n $nombres = $datos_usuario[\"nombres\"];\n $apellidos = $datos_usuario[\"apellidos\"]; \n $celular = $datos_usuario[\"celular\"];\n $fijo = $datos_usuario[\"fijo\"];\n $dui = $datos_usuario[\"dui\"];\n $direccion = $datos_usuario[\"direccion\"];\n $email = $datos_usuario[\"email\"];\n $usuario = $datos_usuario[\"usuario\"];\n $tipo = $datos_usuarios[\"id_tipo\"];\n $estado = $datos_usuarios[\"estado\"];\n }\n\n else\n {\n //variables para añadir la clase active\n $active1 = \"active\";\n $active2 = null;\n }\n\n //variable con todos los tipos de usuario\n $datos_tipos_usuarios = Sentencias::Seleccionar(\"tipos_usuarios\", null, null, 0, null);\n\n //aqui se renderizan las opciones dependiendo de los permisos del usuario\n $dato_tipo = Sentencias::Seleccionar(\"tipos_usuarios\", \"id\", array($_SESSION[\"tipo\"]), 0, null);\n\n //Se valida que el formulario ya tenga datos\n if(!empty($_POST))\n { \n //Se llenan las variables con los datos del formulario\n $nombres = $_POST[\"nombres\"];\n $apellidos = $_POST[\"apellidos\"]; \n $celular = $_POST[\"celular\"];\n $fijo = $_POST[\"fijo\"];\n $dui = $_POST[\"dui\"];\n $direccion = $_POST[\"direccion\"];\n $email = $_POST[\"email\"];\n $usuario = $_POST[\"usuario\"];\n $tipo = $_POST[\"tipo\"];\n $estado = $_POST[\"estado\"];\n $clave1 = $_POST[\"clave1\"];\n $clave2 = $_POST[\"clave2\"];\n $img = $usuario.time().\".jpg\";\n $intentos = 0;\n $token = 0;\n\n //Se valida que ninguno este vacio\n if($nombres != \"\" && $apellidos != \"\" && $celular != \"\" && $fijo != \"\" && $dui != \"\" && $direccion != \"\" && $email != \"\" && $usuario != \"\")\n {\n //Se valida el nombre del usuario\n if(Validaciones::nombre($nombres) && Validaciones::longitud($nombres, 30))\n {\n //Se validan los apellidos\n if(Validaciones::nombre($apellidos) && Validaciones::longitud($apellidos, 30))\n {\n //Se valida el numero celular\n if(Validaciones::numero($celular))\n {\n //Se valida el numero fijo\n if(Validaciones::numero($fijo))\n {\n //Se valida el dui\n if(Validaciones::dui($dui))\n {\n //Se valida la direccion\n if(Validaciones::alfanumerico($direccion))\n {\n //Se valida la direccion de correo\n if(filter_var($email, FILTER_VALIDATE_EMAIL))\n {\n //Se valida el nombre de usuario\n if(Validaciones::alfanumerico($usuario) && Validaciones::longitud($usuario, 25))\n {\n //Aqui se divide entre si es agregar o modificar\n //Aqui se modifca\n if(!empty($_GET[\"id_usuario\"]))\n {\n //Se valida si es un numero\n if(is_numeric($_GET[\"id_usuario\"]))\n {\n $campos_valores = array\n (\n 'nombres' => $nombres,\n 'apellidos' => $apellidos,\n 'celular' => $celular,\n 'fijo' => $fijo,\n 'dui' => $dui,\n 'direccion' => $direccion,\n 'email' => $email,\n 'usuario' => $usuario,\n 'id_tipo' => $tipo,\n 'estado' => 1,\n );\n\n $condiciones_parametros = array\n (\n 'id' => $_GET[\"id_usuario\"]\n );\n\n Sentencias::Actualizar(\"usuarios\", $campos_valores, $condiciones_parametros, 1, \"ver_usuarios.php\");\n }\n\n else\n {\n Ventanas::Mensaje(2, \"El parametro no es valido\", null);\n }\n }\n\n //Aqui inicia para agregar un nuevo usuario\n else\n {\n //Comprueba que no haya espacios vacios antes de agregar\n if($clave1 != \"\" && $clave2 != \"\" && !empty($_FILES[\"archivo\"]))\n {\n //Valida la imagen\n if(Validaciones::imagen($_FILES[\"archivo\"]))\n {\n if(strlen($clave1) > 7)\n {\n if($clave1 != 12345678)\n {\n if($clave1 != $usuario)\n {\n if($clave1 == $clave2)\n {\n $clave = password_hash($clave1, PASSWORD_DEFAULT);\n\n $campos_valores = array\n (\n 'nombres' => $nombres,\n 'apellidos' => $apellidos,\n 'celular' => $celular,\n 'fijo' => $fijo,\n 'dui' => $dui,\n 'direccion' => $direccion,\n 'email' => $email,\n 'usuario' => $usuario,\n 'clave' => $clave,\n 'foto' => $img,\n 'id_tipo' => $tipo,\n 'estado' => 2,\n 'intentos' => 0,\n 'token' => 0,\n );\n\n Sentencias::Insertar('usuarios', $campos_valores, 1, 'usuarios.php');\n\n move_uploaded_file($_FILES['archivo']['tmp_name'], \"../img/usuarios/$img\");\n }\n\n else\n {\n Ventanas::Mensaje(2, \"Las claves deben ser iguales\", null);\n }\n }\n\n else\n {\n Ventanas::Mensaje(2, \"La clave no debe ser igual al nombre de usuario\", null);\n }\n }\n\n else\n {\n Ventanas::Mensaje(2, \"La clave no es segura\", null);\n }\n }\n\n else\n {\n Ventanas::Mensaje(2, \"La clave debe tener como minimo 8 caracteres\", null);\n }\n }\n\n else\n {\n Ventanas::Mensaje(2, \"La imagen no es valida\", null);\n }\n }\n\n else\n {\n Ventanas::Mensaje(2, \"No deje espacios vacios\", null);\n }\n }\n }\n\n else\n {\n Ventanas::Mensaje(2, \"El nombre de usuario no es valido\", null); \n }\n }\n\n else\n {\n Ventanas::Mensaje(2, \"El correo electronico no es valido\", null); \n }\n }\n\n else\n {\n Ventanas::Mensaje(2, \"La direccion no es valida\", null); \n }\n }\n\n else\n {\n Ventanas::Mensaje(2, \"El dui no es valido\", null);\n }\n } \n\n else\n {\n Ventanas::Mensaje(2, \"El fijo celular no es valido\", null);\n } \n } \n\n else\n {\n Ventanas::Mensaje(2, \"El numero celular no es valido\", null);\n }\n }\n\n else\n {\n Ventanas::Mensaje(2, \"Los apellidos no son validos\", null);\n }\n }\n\n else\n {\n Ventanas::Mensaje(2, \"Los nombres no son validos\", null);\n }\n }\n\n else\n {\n Ventanas::Mensaje(2, \"No deje espacios vacios\", null);\n }\n }\n\n //Aqui empieza el formulario de usuarios\n echo\n (\"\n <form method='post' enctype='multipart/form-data' id='registro'>\n <div class='row'>\n <div class='container'>\n <div class='col s12 l10 offset-l1 center-align'>\n <h4>Formulario de usuarios</h4>\n </div>\n <div class='input-field col s10 offset-s1 l6'>\n <input id='nombres' value='$nombres' name='nombres' type='text' class='validate' data-length='30'>\n <label for='nombres' class='blue-text text-darken-4'>Nombres</label>\n </div>\n <div class='input-field col s10 offset-s1 l6'>\n <input id='apellidos' value='$apellidos' name='apellidos' type='text' class='validate' data-length='30'>\n <label for='apellidos' class='blue-text text-darken-4'>Apellidos</label>\n </div>\n <div class='input-field col s10 offset-s1 l6'>\n <input id='celular' value='$celular' name='celular' type='text' data-length='8'>\n <label for='celular' class='blue-text text-darken-4'>Numero Celular</label>\n </div>\n <div class='input-field col s10 offset-s1 l6'>\n <input id='fijo' value='$fijo' name='fijo' type='text' data-length='8'>\n <label for='fijo' class='blue-text text-darken-4'>Numero Fijo</label>\n </div>\n <div class='input-field col s10 offset-s1 l6'>\n <input id='direccion' value='$direccion' name='direccion' type='text' data-length='100'>\n <label for='direccion' class='blue-text text-darken-4'>Direccion</label>\n </div>\n <div class='input-field col s10 offset-s1 l6'>\n <input id='dui'value='$dui' name='dui' type='text' data-length='9'>\n <label for='dui' class='blue-text text-darken-4'>Dui</label>\n </div>\n <div class='input-field col s10 offset-s1 l6'>\n <input id='usuario' value='$usuario' name='usuario' type='text' class='validate' data-length='25'>\n <label for='usuario' class='blue-text text-darken-4'>Usuario</label>\n </div>\n <div class='input-field col s10 offset-s1 l6'>\n <input id='email' value='$email' name='email' type='email' class='validate' data-length='50'>\n <label for='email' class='blue-text text-darken-4'>Email</label>\n </div>\n \");\n\n //Aqui verifica si ya se ha seleccionado un usuario para usar esos datos\n if(!empty($_GET[\"id_usuario\"]))\n {\n echo\n (\"\n <div class='input-field col s10 offset-s1 l6 blue-text text-darken-4'>\n <select name='tipo'>\n \");\n\n //Aqui se colocara el combobox de los tipos\n foreach($datos_tipos_usuarios as $row_tipos_usuarios)\n {\n if($tipo == $row_tipos_usuarios[\"id\"])\n {\n echo\n (\"\n <option value='$row_tipos_usuarios[id]' selected>\".$row_tipos_usuarios['tipo'].\"</option>\n \"); \n }\n\n else\n {\n echo\n (\"\n <option value='$row_tipos_usuarios[id]'>\".$row_tipos_usuarios['tipo'].\"</option>\n \"); \n }\n }\n\n echo\n (\"\n </select>\n </div>\n <div class='input-field col s10 offset-s1 l6 blue-text text-darken-4'>\n <select name='estado'>\n \");\n\n //Aqui se coloca el combobox de estado de usuario\n if($estado == 1)\n {\n echo\n (\"\n <option value='1' selected>Activar</option>\n <option value='0'>Desactivar</option>\n \");\n }\n\n else if($estado == 0)\n {\n echo\n (\"\n <option value='1'>Activar</option>\n <option value='0' selected>Desactivar</option>\n \");\n }\n\n echo\n (\"\n </select>\n </div>\n \");\n\n //Aqui se valida si tiene permisos para modificar\n if($dato_tipo[\"usuarios\"] == 3 || $dato_tipo[\"usuarios\"] == 5 || $dato_tipo[\"usuarios\"] > 6)\n {\n echo\n (\"\n <div class='col s4 offset-s1 l4'>\n <button class='waves-effect waves-light btn blue darken-4'>Modificar usuario</button>\n </div>\n \");\n }\n\n echo\n (\"\n <div class='col s4 offset-s1 l4'>\n <a href='usuarios.php' class='waves-effect waves-light btn blue darken-4'>Limpiar</a>\n </div>\n \");\n }\n\n //Aqui uso los valores por defecto para los combobox\n else\n {\n echo\n (\"\n <div class='input-field col s10 offset-s1 l6 blue-text text-darken-4'>\n <select name='tipo'>\n \");\n\n //Aqui se colocara el combobox de los tipos\n foreach($datos_tipos_usuarios as $row_tipos_usuarios)\n {\n echo\n (\"\n <option value='$row_tipos_usuarios[id]'>\".$row_tipos_usuarios['tipo'].\"</option>\n \"); \n }\n\n //Aqui se coloca el combobox de estado de usuario\n echo\n (\"\n </select>\n </div>\n <div class='input-field col s10 offset-s1 l6 blue-text text-darken-4'>\n <select name='estado'>\n <option value='1' selected>Activar</option>\n <option value='0'>Desactivar</option>\n </select>\n </div>\n <div class='input-field col s10 offset-s1 l6'>\n <input id='clave1' name='clave1' type='password' class='validate'>\n <label for='clave1'' class='blue-text text-darken-4'>Nueva contraseña</label>\n </div>\n <div class='input-field col s10 offset-s1 l6'>\n <input id='clave2' name='clave2' type='password' class='validate'>\n <label for='clave2' class='blue-text text-darken-4'>Repite contraseña</label>\n </div>\n <div class='file-field input-field col s10 offset-s1 l12'>\n <div class='btn blue darken-4'>\n <span>Imagen</span>\n <input type='file' name='archivo'>\n </div>\n <div class='file-path-wrapper'>\n <input class='file-path validate' type='text' placeholder='Seleccione una imagen para el usuario'>\n </div>\n </div>\n \");\n\n //Se valida si tiene los permisos para agregar usuarios\n if($dato_tipo[\"usuarios\"] == 2 || $dato_tipo[\"usuarios\"] == 5 || $dato_tipo[\"usuarios\"] == 6 || $dato_tipo[\"usuarios\"] == 9)\n {\n echo\n (\"\n <div class='col s4 offset-s1 l4'>\n <button class='waves-effect waves-light btn blue darken-4'>Agregar usuario</button>\n </div>\n \");\n }\n }\n\n echo\n (\"\n </div>\n </div>\n </form>\n \");\n //Aqui termina el formulario de usuarios\n }", "title": "" }, { "docid": "609a38672d5781a47c1251798b5f8926", "score": "0.46666878", "text": "public function addParceiroUsuario(ParceiroUsuario $l)\n\t{\n\t\tif ($this->collParceiroUsuarios === null) {\n\t\t\t$this->initParceiroUsuarios();\n\t\t}\n\t\tif (!in_array($l, $this->collParceiroUsuarios, true)) { // only add it if the **same** object is not already associated\n\t\t\tarray_push($this->collParceiroUsuarios, $l);\n\t\t\t$l->setUsuario($this);\n\t\t}\n\t}", "title": "" }, { "docid": "80d781c37b4391f07c94306966253d6e", "score": "0.4658882", "text": "public function addCurso(Curso $curso){\n\t\t\t$iu = new InfoUsuario;\n\t\t\t$iu->id_usuario = $this->id;\n\t\t\t$iu->id_curso = $curso->id;\n\t\t}", "title": "" }, { "docid": "4ef09f416700d98d0a128033c65550c4", "score": "0.46568164", "text": "public function registroUsuarioController(){ //registro de usuario (maestro o encargado)\n\t\tif(isset($_POST['btn_agregar'])){//verificar clic en el boton\n\t\t\t//crear array con los datos a registrar tomados de los controles\n\t\t\t$data = array('codigo'=> $_POST['codigo'],\n\t\t\t\t\t\t'nombre'=> $_POST['nombre'],\n\t\t\t\t\t\t'apellidos'=> $_POST['apellidos'],\n\t\t\t\t\t\t'email'=> $_POST['email'],\n\t\t\t\t\t\t'password'=> $_POST['password'],\n\t\t\t\t\t\t'tipo'=> $_POST['tipo']\n\t\t\t\t\t);\n\t\t\t//peticion al modelo del reigstro del producto mandando como param la informacion de este\n\t\t\t$registro = Crud::registroUsuarioModel($data);\n\t\t\tif($registro == \"success\"){ //verificar la respuesta del modelo\n echo \"<script>swal('Exito!','Usuario registrado!','success');\n window.location='index.php?action=usuarios';</script>\";\n\t\t\t}else{\n\t\t\t\techo \"<script>swal('Error','El codigo ingresado ya fue usado!. Por favor, ingresa otro','error');</script>\";\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
536f2887c19172c0faa040454f19cb45
really optional. var $custom_fields; var $comments; // array don't need it but adding it just in case var $comment_count; var $comment_status; constructor
[ { "docid": "a22724f5d5033480042d67d3d14f1460", "score": "0.0", "text": "function JSON_API_Post($wp_post = null, $fancy = true) {\n if (!empty($wp_post) && $fancy == true) {\n $this->import_wp_object($wp_post);\n } else {\n \t// for trending geo data\n $this->quick_import_wp_object($wp_post);\n }\n //do_action(\"json_api_{$this->type}_constructor\", $this);\n }", "title": "" } ]
[ { "docid": "27e86dd97e37d572cebb005ff94d7ea8", "score": "0.6453841", "text": "function darkgritty_comment_form_fields( $fields ) {\n\t$authorfield = '<p><input type=\"text\" name=\"author\" id=\"author\" value=\"Name\" onfocus=\"if (this.value == \\'Name\\') {this.value = \\'\\';}\" onblur=\"if (this.value == \\'\\') {this.value = \\'Name\\';}\" /></p>';\n\t$emailfield = '<p><input type=\"text\" name=\"email\" id=\"email\" value=\"Email\" onfocus=\"if (this.value == \\'Email\\') {this.value = \\'\\';}\" onblur=\"if (this.value == \\'\\') {this.value = \\'Email\\';}\" /></p>';\n\t$urlfield = '<p><input type=\"text\" name=\"url\" id=\"url\" value=\"Website\" onfocus=\"if (this.value == \\'Website\\') {this.value = \\'\\';}\" onblur=\"if (this.value == \\'\\') {this.value = \\'Website\\';}\" /></p>';\n\t$darkgritty_fields = array(\n\t\t'author' => $authorfield,\n\t\t'email' => $emailfield,\n\t\t'url' => $urlfield\n\t);\n\treturn $darkgritty_fields;\n}", "title": "" }, { "docid": "c6abda7eb9794f93a9bbf7d0a71b66b5", "score": "0.63455105", "text": "function Comment() {\n\n $title = new TextField('Title', 'title', '', 1);\n $title->setIsTitle();\n $body = new TextAreaField('Body', 'body', '', 1);\n $body->showType('B');\n $identificador = new HiddenField('identificador', 'id', $id, 1);\n $padre = new HiddenField('Comentario Padre', 'parent', $parent, 0);\n\n $fields[] = $title;\n $fields[] = $body;\n $fields[] = $identificador;\n $fields[] = $padre;\n\n }", "title": "" }, { "docid": "6ec5f4a5099623868829df5b442745b0", "score": "0.6247639", "text": "function alpha_comments_defaults( $defaults ) {\n $defaults['id_form'] = '';\n $defaults['id_submit'] = '';\n $defaults['comment_field'] = '<div class=\"subscribe-box-1 mt-4\">' .\n '<textarea name=\"comment\" class=\"for-textarea form-control\" placeholder=\"Comment *\"></textarea></div><div class=\"clear\"></div><div class=\"clear\"></div>';\n return $defaults;\n}", "title": "" }, { "docid": "3eaa8f4a6851bc4073996a8ee5fc2bbb", "score": "0.6164279", "text": "function housico_comment_form_fields($fields) {\n\t\t\t$comment_field = $fields['comment'];\n\t\t\tunset( $fields['comment'] );\n\t\t\t$fields['comment'] = $comment_field;\n\t\t\treturn $fields;\n\t\t}", "title": "" }, { "docid": "66ee6f63d296b43357f8c7fdef110c1e", "score": "0.6116242", "text": "function coment_arg(){\n\t$comments_args = array(\n\t 'label_submit'=>'Submit',\n\t 'class_submit'=>'btn waves-effect waves-light extmar',\n\t 'title_reply'=>'<blockquote><div class=\"light\">Leave a Comment</div></blockquote>',\n\t 'comment_notes_after' => '',\n\t 'comment_field' => ' \n\t <div class=\"input-field col s12\"><textarea class=\"materialize-textarea\" placeholder=\"Comments\" rows=\"10\" id=\"comment\" name=\"comment\" aria-required=\"true\"></textarea></div>',\n\t 'fields' => apply_filters( 'comment_form_default_fields', array(\n\t\t\t'author' =>\n\t\t\t '<div class=\"input-field col s6\">' .\n\t\t\t '<input class=\"form-control floating-label\" placeholder=\"Name\" id=\"author\" name=\"author\" type=\"text\" size=\"30\" aria-required=\"true\" /></div>',\n\n\t\t\t'email' =>\n\t\t\t '<div class=\"input-field col s6\">' .\n\t\t\t '<input class=\"validate\" placeholder=\"Email\" id=\"email\" name=\"email\" type=\"text\" size=\"30\" aria-required=\"true\"/></div>',\n\n\t\t\t'url' =>\n\t\t\t '<div class=\"input-field col s12\">'.\n\t\t\t '<input class=\"form-control floating-label\" placeholder=\"Website\" id=\"url\" name=\"url\" type=\"text\" size=\"30\" /></div>'\n\t\t\t)\n\t\t),\n\t);\n\n\treturn $comments_args;\n}", "title": "" }, { "docid": "4fe5475261f96d89e1e35c01fc1abb60", "score": "0.6083585", "text": "function mo_comment_fields_custom_html( $fields ) {\n\tunset( $fields['comment'] );\n\tunset( $fields['author'] );\n\tunset( $fields['email'] );\n\tunset( $fields['url'] );\n\t// then re-define them as needed:\n\t$fields = [\n\t\t'comment_field' => '<p class=\"comment-form-comment\"><label for=\"comment\">' . _x( 'A CUSTOM COMMENT LABEL', 'noun', 'textdomain' ) . '</label> ' .\n\t\t\t'<textarea id=\"comment\" name=\"comment\" cols=\"45\" rows=\"8\" maxlength=\"65525\" aria-required=\"true\" required=\"required\"></textarea></p>',\n\t\t'author' => '<p class=\"comment-form-author\">' . '<label for=\"author\">' . __( 'A CUSTOM NAME LABEL', 'textdomain' ) . ( $req ? ' <span class=\"required\">*</span>' : '' ) . '</label> ' .\n\t\t\t'<input id=\"author\" name=\"author\" type=\"text\" value=\"' . esc_attr( $commenter['comment_author'] ) . '\" size=\"30\" maxlength=\"245\"' . $aria_req . $html_req . ' /></p>',\n\t\t'email' => '<p class=\"comment-form-email\"><label for=\"email\">' . __( 'A CUSTOM EMAIL LABEL', 'textdomain' ) . ( $req ? ' <span class=\"required\">*</span>' : '' ) . '</label> ' .\n\t\t\t'<input id=\"email\" name=\"email\" ' . ( $html5 ? 'type=\"email\"' : 'type=\"text\"' ) . ' value=\"' . esc_attr( $commenter['comment_author_email'] ) . '\" size=\"30\" maxlength=\"100\" aria-describedby=\"email-notes\"' . $aria_req . $html_req . ' /></p>',\n\t\t'url' => '<p class=\"comment-form-url\"><label for=\"url\">' . __( 'A CUSTOM WEBSITE LABEL', 'textdomain' ) . '</label> ' .\n\t\t\t'<input id=\"url\" name=\"url\" ' . ( $html5 ? 'type=\"url\"' : 'type=\"text\"' ) . ' value=\"' . esc_attr( $commenter['comment_author_url'] ) . '\" size=\"30\" maxlength=\"200\" /></p>',\n\t];\n\t// done customizing, now return the fields:\n\treturn $fields;\n}", "title": "" }, { "docid": "330f0886abbb7fbb1c63244253cc4574", "score": "0.604881", "text": "function oof_comment_form_fields( $fields ) {\n\n\t$commenter = wp_get_current_commenter();\n\t$req = get_option( 'require_name_email' );\n\t$aria_req = ( $req ? \" aria-required='true'\" : '' );\n\n\t$fields['author'] = '<div class=\"row\"><div class=\"form-group col-md-4 comment-form-author\"><label for=\"author\">' . __( 'Name (required)', 'gomedia' ) . '</label><input class=\"form-control\" id=\"author\" name=\"author\" type=\"text\" value=\"' . esc_attr( $commenter['comment_author'] ) . '\" size=\"30\"' . $aria_req . ' /></div>';\n\n\t$fields['email'] = '<div class=\"form-group col-md-4 comment-form-email\"><label for=\"email\">' . __( 'Email (required)', 'gomedia' ) . '</label><input class=\"form-control\" id=\"email\" name=\"email\" type=\"text\" value=\"' . esc_attr( $commenter['comment_author_email'] ) . '\" size=\"30\"' . $aria_req . ' /></div>';\n\n\t$fields['url'] = '<div class=\"form-group col-md-4 comment-form-url\"><label for=\"url\">' . __( 'Website (optional)', 'gomedia' ) . '</label><input class=\"form-control\" id=\"url\" name=\"url\" type=\"text\" value=\"' . esc_attr( $commenter['comment_author_url'] ) . '\" size=\"30\" /></div></div><!-- .row -->';\n\n\n\treturn $fields;\n\n}", "title": "" }, { "docid": "5aad403456147e984561d1fb5fa23ac3", "score": "0.5992841", "text": "public function init(){\t\t\t$this->comments = $this->pdc->get('pdh_comments_table');\n\t\t\tif($this->comments !== NULL){\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t$this->comments = array();\n\t\t\t$sql = \"SELECT com.*, u.username FROM __comments com, __users u WHERE com.userid = u.user_id ORDER BY com.date DESC;\";\n\t\t\t$result = $this->db->query($sql);\n\t\t\twhile( $row = $this->db->fetch_record($result)){\n\t\t\t\t$this->comments[$row['id']] = $row;\n\t\t\t}\n\t\t\t$this->db->free_result($result);\n\t\t\t$this->pdc->put('pdh_comments_table', $this->comments, null);\n\t\t}", "title": "" }, { "docid": "1058f9bd9bf37e593cff15f29cc21dd0", "score": "0.59901136", "text": "function ology_comment_before_fields() {\n\n\techo ology_open_markup( 'ology_comment_fields_wrap', 'div', array( 'class' => 'uk-width-medium-1-1' ) );\n\n\t\techo ology_open_markup( 'ology_comment_fields_inner_wrap', 'div', array(\n\t\t\t'class' => 'uk-grid uk-grid-small',\n\t\t\t'data-uk-grid-margin' => ''\n\t\t) );\n\n}", "title": "" }, { "docid": "8fdbbb52cf7591ff203323d8f5af3da1", "score": "0.59188324", "text": "protected function initComments() {\n\t\tif ($this->comments === NULL) {\n\t\t\t$this->commentRepository = $this->objectManager->get(\"Tx_T3extblog_Domain_Repository_CommentRepository\");\n\t\t\t$this->rawComments = $this->commentRepository->findValidByPost($this);\n\n\t\t\t$this->comments = new Tx_Extbase_Persistence_ObjectStorage();\n\t\t\tforeach($this->rawComments as $comment) {\n\t\t\t\t$this->comments->attach($comment);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3ab2aa7019d0082a49be6ecdc2804bba", "score": "0.5913857", "text": "function mbdmaster_comment_form($fields) {\n\n\t$commenter = wp_get_current_commenter();\n\t$req = get_option( 'require_name_email' );\n\t$aria_req = ( $req ? \" aria-required='true'\" : '' );\n\n\t$fields['author'] = \n '<p class=\"username field\"> \n\t\t\t\t\t\t\t <label for=\"usernamesignup\" class=\"uname\" data-icon=\"u\">Your name</label>\n <input required placeholder=\"Your Name\" id=\"author\" name=\"author\" type=\"text\" value=\"\" aria-required=\"true\"></p>';\n \n $fields['email'] = \n ' <p class=\"emailaddress field\"> \n\t\t\t\t\t\t\t <label for=\"emailsignup\" class=\"youmail\" data-icon=\"e\" >Your email</label>\n <input required placeholder=\"Your Email\" id=\"email\" name=\"email\" type=\"email\" value=\"' . esc_attr( $commenter['comment_author_email'] ) .\n '\" size=\"30\"' . $aria_req . ' />\n </p>';\n \n $fields['url'] = \n '<p class=\"url field\"> \n\t\t\t\t\t\t\t <label for=\"emailsignup\" class=\"youmail\" data-icon=\"e\" >Your website</label>\n <input placeholder=\"Your Website\" id=\"url\" name=\"url\" type=\"url\" value=\"' . esc_attr( $commenter['comment_author_url'] ) .\n '\" size=\"30\" />\n </p>';\n \n return $fields;\n}", "title": "" }, { "docid": "80652fef9943c16d69642a478d0cf40d", "score": "0.5856019", "text": "function chrisbauer3_preprocess_comment(&$vars) {\n $vars['submitted'] = $vars['author'].'<span class=\"pipe\">|</span><span class=\"date\">'.$vars['created'].'</span>';\n if($vars['id']%2 == 0) $vars['comment_stripe'] = 'comment-even';\n else $vars['comment_stripe'] = 'comment-odd';\n}", "title": "" }, { "docid": "8260b0614754c40e9102c531ec29c428", "score": "0.58451134", "text": "function db_create_field_comment($field = array(), $fieldname = ' ', $model_name = '') {\n\n $f = $field[$fieldname];\n $buf = \"/**\n * field info:\n * name: \" . $field['name '] . \"\n * type: \" . $field['\n\n type'] . \"\n * null: \" . $field['null'] . \"\n * default: \" . $field['default'] . \"\n * extra: \" . $field['extra'] . \"\n * generated: \" . date(\"Y-m-d h:i:s a\") . \"\n * @param \\${FIELDNAME} {TYPE} {MODELNAME} iin {FIELDNAME}\n * @return object\n */\\n\";\n $type = 'string';\n\n //field iin turliig jijig useg bolgoh\n $f['type'] = strtolower($field['type']);\n\n $type = db_field_type_to_model($f['type']);\n\n $buf = str_replace('{TYPE}', $type, $buf);\n $buf = str_replace('{FIELDNAME}', $fieldname, $buf);\n $buf = str_replace('{MODELNAME}', $model_name, $buf);\n\n return $buf;\n}", "title": "" }, { "docid": "73a963ccbfa211b1c827402918620aac", "score": "0.58407986", "text": "function custom_comments($comment, $args, $depth) {\n\t $GLOBALS['comment'] = $comment;\n\t $GLOBALS['comment_depth'] = $depth;\n\t ?>\n\t <li id=\"comment-<?php comment_ID() ?>\" <?php comment_class('clearfix') ?>>\n\t <div class=\"comment-wrap clearfix\">\n\t <div class=\"comment-avatar\">\n\t \t<?php if(function_exists('get_avatar')) { echo get_avatar($comment, '100'); } ?>\n\t \t<?php if ($comment->comment_author_email == get_the_author_meta('email')) { ?>\n\t \t<span class=\"tooltip\"><?php _e(\"Author\", \"swiftframework\"); ?><span class=\"arrow\"></span></span>\n\t \t<?php } ?>\n\t </div>\n\t \t\t<div class=\"comment-content\">\n\t \t<div class=\"comment-meta\">\n\t \t\t\t<?php\n\t \t\t\t\tprintf('<span class=\"comment-author\">%1$s</span> <span class=\"comment-date\">%2$s</span>',\n\t \t\t\t\t\tget_comment_author_link(),\n\t \t\t\t\t\tget_comment_date()\n\t \t\t\t\t);\n\t \tedit_comment_link(__('Edit', 'swiftframework'), '<span class=\"edit-link\">', '</span><span class=\"meta-sep\"> |</span>');\n\t ?>\n\t <?php if($args['type'] == 'all' || get_comment_type() == 'comment') :\n\t \tcomment_reply_link(array_merge($args, array(\n\t \t'reply_text' => __('Reply','swiftframework'),\n\t \t'login_text' => __('Log in to reply.','swiftframework'),\n\t \t'depth' => $depth,\n\t \t'before' => '<span class=\"comment-reply\">',\n\t \t'after' => '</span>'\n\t \t)));\n\t endif; ?>\n\t \t\t\t</div>\n\t \t\t\t<?php if ($comment->comment_approved == '0') _e(\"\\t\\t\\t\\t\\t<span class='unapproved'>Your comment is awaiting moderation.</span>\\n\", 'swiftframework') ?>\n\t \t<div class=\"comment-body\">\n\t \t<?php comment_text() ?>\n\t \t</div>\n\t \t\t</div>\n\t </div>\n\t<?php }", "title": "" }, { "docid": "e4a69d1838a87cb88bd4ab5210111328", "score": "0.5839674", "text": "function capri_comment_placeholders( $fields ) {\n\t$fields['author'] = str_replace(\n\t\t'<input',\n\t\t'<input placeholder=\"' . esc_attr__( 'Name', 'capri' ) . '\"',\n\t\t$fields['author']\n\t);\n\t$fields['email'] = str_replace(\n\t\t'<input',\n\t\t'<input placeholder=\"' . esc_attr__( 'Email', 'capri' ) . '\"',\n\t\t$fields['email']\n\t);\n\t$fields['url'] = str_replace(\n\t\t'<input',\n\t\t'<input placeholder=\"' . esc_attr__( 'Website', 'capri' ) . '\"',\n\t\t$fields['url']\n\t);\n\treturn $fields;\n}", "title": "" }, { "docid": "e7d390690244a201491eb85eb431f050", "score": "0.5833601", "text": "public function Comment($comment) {\r\n// PrimaryKeyField as sectionId, FieldName as fieldname, PrimaryKeyValue as commentObjectId FROM CommentsTracking\";\r\n $this->content = $comment['content'];\r\n $this->commenter = $comment['commenter'];\r\n $this->date = $comment['date'];\r\n $this->fieldname = $comment['fieldname'];\r\n $this->sectionId = $comment['sectionId'];\r\n $this->commentObjectId = $comment['commentObjectId'];\r\n $this->commentObjectType = $comment['commentObjectType'];\r\n session_start();\r\n $this->user = $_SESSION['user'];\r\n }", "title": "" }, { "docid": "a3dfcf4996428de440dcb962d88dd019", "score": "0.5822054", "text": "function futbolia_add_comment_form_fields($fields) {\n $fields['name'] = '<input name=\"name\" id=\"name\" type=\"text\" />';\n return $fields;\n}", "title": "" }, { "docid": "0447e2067aded01abbb18f808fe54472", "score": "0.5807743", "text": "function _comment_hook($comment_id){\n \t\r\n\t global $post;\n\t \n\t $meta = get_post_meta($post->ID, '_wppm_project_meta', true);//get meta\n\t \n\t if($meta){\n\t \t\r\n\t\t foreach($meta['_wppm_project_meta_users'] as $user){\n\t\t \t\r\n\t\t \t$data = get_userdata($user);\r\n\t\t\t\t$this->_notice_mail($data->user_email, $data->display_name, $post->post_title, $post->ID, date(DATE_RFC822), 'Updated (comment)');\n\t\t\t\t\r\n\t\t }//foreach\n\t \n\t }//if\n\t \r\n\t}", "title": "" }, { "docid": "6dfbb9f9a9affb46047c47b997a82f05", "score": "0.57962483", "text": "public function initialize_fields() {\n // set the fields to be filled in \n $this->fields = array(\"title\" => \"\",\n \"keywords\" => array(),\n \"filename\" => \"\",\n // advisor, committee and department will no longer be populated;\n // leaving empty arrays to avoid potential errors if any code is missed\n // that still expects these values\n \"department\" => \"\",\n \"advisor\" => array(), \n \"committee\" => array(), \n // table of contents will no longer be populated, since detection \n // and formatting is often incomplete and unreliable\n \"toc\" => \"\",\n // NOTE: abstract detection will be attempted since it abstract text\n // is used to clean the title, but abstract text may be incomplete or unreliable\n \"abstract\" => \"\",\n \"distribution_agreement\" => false);\n }", "title": "" }, { "docid": "de8342e550c8b8260aa652137d17f0ea", "score": "0.5786197", "text": "public function getComments()\n \t\t{\n\t\t}", "title": "" }, { "docid": "8fea163b7bbeea40065039652be06d5a", "score": "0.57705325", "text": "function _cpmu_test() {\n\n\tglobal $commentpress_obj;\n\t//print_r( $commentpress_obj ); die();\n\t\n}", "title": "" }, { "docid": "0edaecf5021ab63ca57c53068782411a", "score": "0.572681", "text": "public function __construct($comment)\n {\n $this->comment = $comment;\n }", "title": "" }, { "docid": "d170b0c05da022eedd40f111a62e61b4", "score": "0.5717904", "text": "public function _construct()\n {\n $this->_init('comment/comment', 'comment_id');\n }", "title": "" }, { "docid": "98854962061f97764a811592cb94fb92", "score": "0.57063663", "text": "public function initMwgfComments()\n\t{\n\t\t$this->collMwgfComments = array();\n\t}", "title": "" }, { "docid": "23bcfb5648656b04eda878f7d25e21f0", "score": "0.57003695", "text": "public function fs_comment( $array ) { \n\n\n \n\n\t\t\t\t\t\t# initialized\n\t\t\t\t\t\t \t$cno \t = ( !empty($array['cno']) ) \t ? $array['cno'] : null ; \n\t\t\t\t\t\t\t$table_name \t = ( !empty($array['table_name']) ) \t? $array['table_name']\t : null ; \n\t\t\t\t\t\t\t$table_id \t\t = ( !empty($array['table_id']) ) \t ? $array['table_id'] \t\t\t: null ; \n\t\t\t\t\t\t\t$date = ( !empty($array['date']) ) \t\t\t? $array['date'] \t\t: $this->date_time ; \n\n\n\n\n\n\t\t\t\t\t\t#select\n\t\t\t\t\t\t\t$keySearch = ( !empty($array['keySearch']) ) ? $array['keySearch'] : null ; \n\t\t\t\t\t\t\t$where = ( !empty($array['where']) ) ? $array['where'] : 'msgno > 0' ; \n\t\t\t\t\t\t\t$orderby = ( !empty($array['orderby']) ) ? $array['orderby'] : 'msgno desc' ; \n\t\t\t\t\t\t\t$limit_start = ( !empty($array['limit_start']) ) ? $array['limit_start'] : 0 ; \n\t\t\t\t\t\t\t$limit_end = ( !empty($array['limit_end']) ) ? $array['limit_end'] : 1 ; \n\t\t\t\t\t\t\t$type = ( !empty($array['type']) ) ? $array['type'] : 1 ; \n\n \t\t\t\t\t\t# uodate \n\t\t\t\t\t\t\t$idname = ( !empty($array['idname']) ) ? $array['idname'] : 'msgno' ; \n\t\t\t\t\t\t\t$idval = ( !empty($array['idval']) ) ? $array['idval'] : 0 ; \n \n\t\t\t\t\t\t# response \n\t\t\t\t\t\t\t$response = '';\n\t\t\t\t\t\t\t$tdb = 'fs_comment'; \n\n \t\t\t\t\t\t// $this->print_r1( $array );\n\t\t\t\t\t\tswitch ( $type ) { \n\t\t\t\t\t\t\tcase 'delete': \n\t\t\t\t\t\t\t\t \t$response = mysql_query( \" DELETE FROM $tdb WHERE table_name = '$table_name' and table_id = $table_id \" ); \n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 'select': \n\t\t\t\t\t\t\t\t\t$response = select_v3( \n\t\t\t\t\t\t\t\t\t\t$tdb, \n\t\t\t\t\t\t\t\t\t\t'*',\n\t\t\t\t\t\t\t\t\t\t\" $where order by $orderby limit $limit_start , $limit_end\"\n\t\t\t\t\t\t\t\t\t); \n\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\tbreak;\n\t\t\t\t\t\t} \n\t\t\t\t\t\treturn $response; \n\t\t\t\t}", "title": "" }, { "docid": "93bc4de9d9c34f1c491a7e07e0c5fbd8", "score": "0.569646", "text": "function ldm_comment_form_modifications( $fields ) {\n $fields['comment_notes_after'] = '';\n\n return $fields;\n}", "title": "" }, { "docid": "89ce1744e5db137e395b42484280d86c", "score": "0.56852484", "text": "function pmg_comment_tut_insert_comment( $comment_id )\r\n{\r\n if( isset( $_POST['_diagnosa'] ) )\r\n update_comment_meta( $comment_id, '_diagnosa', esc_attr( $_POST['_diagnosa'] ) );\r\n if( isset( $_POST['_terapi'] ) )\r\n update_comment_meta( $comment_id, '_terapi', esc_attr( $_POST['_terapi'] ) );\r\n}", "title": "" }, { "docid": "6f45c7a1d0bf4336a4b9ff74363aecb5", "score": "0.5680527", "text": "function theme_comment_wrapper() {\n // This function is never used; see the corresponding template file instead.\n}", "title": "" }, { "docid": "697687022876102666c1047e4b5f4efd", "score": "0.567802", "text": "function ology_comment_form_fields( $fields ) {\n\n\t$commenter = wp_get_current_commenter();\n\t$grid = count( (array) $fields );\n\n\t// Author.\n\tif ( isset( $fields['author'] ) ) {\n\n\t\t$author = ology_open_markup( 'ology_comment_form[_name]', 'div', array( 'class' => \"uk-width-medium-1-$grid\" ) );\n\n\t\t\t/**\n\t\t\t * Filter whether the comment form name legend should load or not.\n\t\t\t *\n\t\t\t * @since 1.0.0\n\t\t\t */\n\t\t\tif ( ology_apply_filters( 'ology_comment_form_legend[_name]', true ) ) {\n\n\t\t\t\t$author .= ology_open_markup( 'ology_comment_form_legend[_name]', 'legend' );\n\n\t\t\t\t\t$author .= ology_output( 'ology_comment_form_legend_text[_name]', esc_html__( 'Name', 'ology' ) );\n\n\t\t\t\t$author .= ology_close_markup( 'ology_comment_form_legend[_name]', 'legend' );\n\n\t\t\t}\n\n\t\t\t$author .= ology_selfclose_markup( 'ology_comment_form_field[_name]', 'input', array(\n\t\t\t\t'id' => 'author',\n\t\t\t\t'class' => 'uk-width-1-1',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'value' => $commenter['comment_author'], // Automatically escaped.\n\t\t\t\t'name' => 'author'\n\t\t\t) );\n\n\t\t$author .= ology_close_markup( 'ology_comment_form[_name]', 'div' );\n\n\t\t$fields['author'] = $author;\n\n\t}\n\n\t// Email.\n\tif ( isset( $fields['email'] ) ) {\n\n\t\t$email = ology_open_markup( 'ology_comment_form[_email]', 'div', array( 'class' => \"uk-width-medium-1-$grid\" ) );\n\n\t\t\t/**\n\t\t\t * Filter whether the comment form email legend should load or not.\n\t\t\t *\n\t\t\t * @since 1.0.0\n\t\t\t */\n\t\t\tif ( ology_apply_filters( 'ology_comment_form_legend[_email]', true ) ) {\n\n\t\t\t\t$email .= ology_open_markup( 'ology_comment_form_legend[_email]', 'legend' );\n\n\t\t\t\t\t$email .= ology_output( 'ology_comment_form_legend_text[_email]', sprintf( esc_html__( 'Email %s', 'ology' ), ( get_option( 'require_name_email' ) ? ' *' : '' ) ) );\n\n\t\t\t\t$email .= ology_close_markup( 'ology_comment_form_legend[_email]', 'legend' );\n\n\t\t\t}\n\n\t\t\t$email .= ology_selfclose_markup( 'ology_comment_form_field[_email]', 'input', array(\n\t\t\t\t'id' => 'email',\n\t\t\t\t'class' => 'uk-width-1-1',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'value' => $commenter['comment_author_email'], // Automatically escaped.\n\t\t\t\t'name' => 'email',\n\t\t\t\t'required' => get_option( 'require_name_email' ) ? '' : null\n\t\t\t) );\n\n\t\t$email .= ology_close_markup( 'ology_comment_form[_email]', 'div' );\n\n\t\t$fields['email'] = $email;\n\n\t}\n\n\t// Url.\n\tif ( isset( $fields['url'] ) ) {\n\n\t\t$url = ology_open_markup( 'ology_comment_form[_website]', 'div', array( 'class' => \"uk-width-medium-1-$grid\" ) );\n\n\t\t\t/**\n\t\t\t * Filter whether the comment form url legend should load or not.\n\t\t\t *\n\t\t\t * @since 1.0.0\n\t\t\t */\n\t\t\tif ( ology_apply_filters( 'ology_comment_form_legend[_url]', true ) ) {\n\n\t\t\t\t$url .= ology_open_markup( 'ology_comment_form_legend', 'legend' );\n\n\t\t\t\t\t$url .= ology_output( 'ology_comment_form_legend_text[_url]', esc_html__( 'Website', 'ology' ) );\n\n\t\t\t\t$url .= ology_close_markup( 'ology_comment_form_legend[_url]', 'legend' );\n\n\t\t\t}\n\n\t\t\t$url .= ology_selfclose_markup( 'ology_comment_form_field[_url]', 'input', array(\n\t\t\t\t'id' => 'url',\n\t\t\t\t'class' => 'uk-width-1-1',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'value' => $commenter['comment_author_url'], // Automatically escaped.\n\t\t\t\t'name' => 'url'\n\t\t\t) );\n\n\t\t$url .= ology_close_markup( 'ology_comment_form[_website]', 'div' );\n\n\t\t$fields['url'] = $url;\n\n\t}\n\n\treturn $fields;\n}", "title": "" }, { "docid": "67689c8ff65813f499f3f677962e91d0", "score": "0.5674536", "text": "public function __construct($id, $field, $var, $ptime, $pdate, $admin, $nested = true) {\n\t\t/*\n\t\t/\tThe constructor\n\t\t*/\n\t\t\n\t\tglobal $jakdb;\n\t\t$getID = $jakdata = array();\n\t\tif ($admin) {\n\t\t\t$result = $jakdb->select(\"blogcomments\", [\"[>]user\" => [\"operatorid\" => \"id\"], \"[>]clients\" => [\"clientid\" => \"id\"]], [\"blogcomments.id\", \"blogcomments.commentid\", \"blogcomments.message\", \"blogcomments.votes\", \"blogcomments.approve\", \"blogcomments.time\", \"blogcomments.session\", \"user.id(oid)\", \"user.name(oname)\", \"user.picture(opicture)\", \"clients.id(cid)\", \"clients.name(cname)\", \"clients.picture(cpicture)\"], [\"blogcomments.\".$field => $id]);\n\t\t} else {\n\t\t\t$result = $jakdb->select(\"blogcomments\", [\"[>]user\" => [\"operatorid\" => \"id\"], \"[>]clients\" => [\"clientid\" => \"id\"]], [\"blogcomments.id\", \"blogcomments.commentid\", \"blogcomments.message\", \"blogcomments.votes\", \"blogcomments.approve\", \"blogcomments.time\", \"blogcomments.session\", \"user.id(oid)\", \"user.name(oname)\", \"user.picture(opicture)\", \"clients.id(cid)\", \"clients.name(cname)\", \"clients.picture(cpicture)\"], [\"AND\" => [\"OR\" => [\"blogcomments.session\" => session_id(), \"blogcomments.approve\" => 1], \"blogcomments.\".$field => $id]]);\n\t\t}\n\n\t\tif (isset($result) && !empty($result)) foreach ($result as $row) {\n\n\t\t\tif ($row['oid'] && $row['opicture'] && $row['opicture'] != \"/standard.jpg\") {\n\t\t\t\t$row['avatar'] = BASE_URL.JAK_FILES_DIRECTORY.$row['opicture'];\n\t\t\t} elseif ($row['cid'] && $row['cpicture'] && $row['cpicture'] != \"/standard.jpg\") { \n\t\t\t\t$row['avatar'] = BASE_URL.JAK_FILES_DIRECTORY.'/'.$row['cpicture'];\n\t\t\t} else {\n\t\t\t\t$row['avatar'] = BASE_URL.JAK_FILES_DIRECTORY.'/standard.jpg';\n\t\t\t}\n\n\t\t\t$row['username'] = ($row['oname'] ? $row['oname'] : $row['cname']);\n\t\t\t\t\n\t\t\t$row['created'] = JAK_base::jakTimesince($row['time'], $ptime, $pdate);\n\n\t\t\t// Sanitize the message\n\t\t\t$row[\"message\"] = jak_secure_site($row['message']);\n\t\t\t\t\n\t\t\t// There should be always a varname in categories and check if seo is valid\n\t\t\t$row[\"parseurl1\"] = JAK_rewrite::jakParseurl($var, 'del', $row['id']);\n\t\t\t$row[\"parseurl2\"] = JAK_rewrite::jakParseurl($var, 'report', $row['id']);\n\t\t\t\t\n\t\t // collect each record into $jakdata\n\t\t $jakdata[] = $row;\n\t\t \n\t\t // Do we have nested comments\n\t\t if ($nested) $getID = $row[\"id\"];\n\t\t \n\t\t }\n\t\t \n\t\t// now we go nested because we have a reply\n\t\tif ($nested && !empty($getID)) {\n\n\t\t\tif ($admin) {\n\t\t\t\t$resnes = $jakdb->select(\"blogcomments\", [\"[>]user\" => [\"operatorid\" => \"id\"], \"[>]clients\" => [\"clientid\" => \"id\"]], [\"blogcomments.id\", \"blogcomments.commentid\", \"blogcomments.message\", \"blogcomments.votes\", \"blogcomments.approve\", \"blogcomments.time\", \"blogcomments.session\", \"user.id(oid)\", \"user.name(oname)\", \"user.picture(opicture)\", \"clients.id(cid)\", \"clients.name(cname)\", \"clients.picture(cpicture)\"], [\"blogcomments.commentid\" => [$getID]]);\n\t\t\t} else {\n\t\t\t\t$resnes = $jakdb->select(\"blogcomments\", [\"[>]user\" => [\"operatorid\" => \"id\"], \"[>]clients\" => [\"clientid\" => \"id\"]], [\"blogcomments.id\", \"blogcomments.commentid\", \"blogcomments.message\", \"blogcomments.votes\", \"blogcomments.approve\", \"blogcomments.time\", \"blogcomments.session\", \"user.id(oid)\", \"user.name(oname)\", \"user.picture(opicture)\", \"clients.id(cid)\", \"clients.name(cname)\", \"clients.picture(cpicture)\"], [\"AND\" => [\"blogcomments.commentid\" => [$getID], \"blogcomments.approve\" => 1]]);\n\t\t\t}\n\n\t\t\tif (isset($resnes) && !empty($resnes)) foreach ($resnes as $nes) {\n\n\t\t\t\tif ($nes['oid'] && $nes['opicture'] && $nes['opicture'] != \"/standard.jpg\") {\n\t\t\t\t\t$nes['avatar'] = BASE_URL.JAK_FILES_DIRECTORY.$nes['opicture'];\n\t\t\t\t} elseif ($row['cid'] && $nes['cpicture'] && $nes['cpicture'] != \"/standard.jpg\") { \n\t\t\t\t\t$nes['avatar'] = BASE_URL.JAK_FILES_DIRECTORY.'/'.$nes['cpicture'];\n\t\t\t\t} else {\n\t\t\t\t\t$nes['avatar'] = BASE_URL.JAK_FILES_DIRECTORY.'/standard.jpg';\n\t\t\t\t}\n\n\t\t\t\t$nes['username'] = ($nes['oname'] ? $nes['oname'] : $nes['cname']);\n\t\t\t\n\t\t\t\t$nes['created'] = JAK_base::jakTimesince($nes['time'], $ptime, $pdate, $timeago);\n\t\t\t\t\t\n\t\t\t\t// Sanitize the message\n\t\t\t\t$nes[\"message\"] = jak_secure_site($nes['message']);\n\t\t\t\t\t\n\t\t\t\t// There should be always a varname in categories and check if seo is valid\n\t\t\t\t$nes[\"parseurl1\"] = JAK_rewrite::jakParseurl($var, 'del', $nes['id']);\n\t\t\t\t$nes[\"parseurl2\"] = JAK_rewrite::jakParseurl($var, 'report', $nes['id']);\n\t\t\t\t\t\n\t\t\t // collect each record into $jakdata\n\t\t\t $jakdata[] = $nes;\n\t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->data = $jakdata;\n\t}", "title": "" }, { "docid": "281da3dde28b1015600f7b147b87eb98", "score": "0.56729835", "text": "function bootstrap4_comment_form_fields() {\n $commenter = wp_get_current_commenter();\n\n $req = get_option( 'require_name_email' );\n $aria_req = ( $req ? \" aria-required='true'\" : '' );\n $html5 = current_theme_supports( 'html5', 'comment-form' ) ? 1 : 0;\n\n $fields = array(\n\t'author' => '<div class=\"form-group\"><label for=\"author\">' . __( 'Name' ) . ( $req ? ' <span class=\"required\">*</span>' : '' ) . '</label> ' .\n\t\t '<input class=\"form-control\" id=\"author\" name=\"author\" required=\"required\" type=\"text\" value=\"' . esc_attr( $commenter['comment_author'] ) . '\" size=\"300\"' . $aria_req . ' /></div>',\n\t'email' => '<div class=\"form-group\"><label for=\"email\">' . __( 'Email' ) . ( $req ? ' <span class=\"required\">*</span>' : '' ) . '</label> ' .\n\t\t '<input class=\"form-control\" required=\"required\" id=\"email\" name=\"email\" ' . ( $html5 ? 'type=\"email\"' : 'type=\"text\"' ) . ' value=\"' . esc_attr( $commenter['comment_author_email'] ) . '\" size=\"30\"' . $aria_req . ' /></div>');\n\n $defaults = array($fields);\n return $fields;\n}", "title": "" }, { "docid": "e8062f947d1e4ec88bdd08819f1c992f", "score": "0.5672733", "text": "function filter_comment_list( $default ) {\n return null;\n}", "title": "" }, { "docid": "ee62cf01af081d4364a4f6b7c0f02f2c", "score": "0.56604016", "text": "public function __construct($comment)\n {\n $this->comment = $comment;\n }", "title": "" }, { "docid": "ee62cf01af081d4364a4f6b7c0f02f2c", "score": "0.56604016", "text": "public function __construct($comment)\n {\n $this->comment = $comment;\n }", "title": "" }, { "docid": "ee62cf01af081d4364a4f6b7c0f02f2c", "score": "0.56604016", "text": "public function __construct($comment)\n {\n $this->comment = $comment;\n }", "title": "" }, { "docid": "2e3cd308959e9b8ea502a3de9bcc65f9", "score": "0.56581664", "text": "function genesis_extender_comment_elements_array() {\r\n\t\r\n\t$genesis_extender_comment_elements_array = array(\r\n\t\t'-- Comments --' => array(\r\n\t\t\t'Comments' => '/* Comments */' . \"\\n\" . '#comments',\r\n\t\t\t'Comments Title' => '/* Comments Title */' . \"\\n\" . '#comments h3',\r\n\t\t\t'Comment List' => '/* Comment List */' . \"\\n\" . '.comment-list',\r\n\t\t\t'Comment Author' => '/* Comment Author */' . \"\\n\" . '.comment-author',\r\n\t\t\t'Comment Meta' => '/* Comment Meta */' . \"\\n\" . '.comment-meta',\r\n\t\t\t'Comment Meta Link' => '/* Comment Meta Link */' . \"\\n\" . '.comment-meta a, .comment-meta a:visited',\r\n\t\t\t'Comment Meta Link Hover' => '/* Comment Meta Link Hover */' . \"\\n\" . '.comment-meta a:hover, .comment-meta a:focus',\r\n\t\t\t'Comment Thread Even' => '/* Comment Thread Even */' . \"\\n\" . '.thread-even',\r\n\t\t\t'Comment Thread Alt' => '/* Comment Thread Alt */' . \"\\n\" . '.thread-alt',\r\n\t\t\t'Comments Nav' => '/* Comments Nav */' . \"\\n\" . '#comments .pagination',\r\n\t\t\t'No Comments Text' => '/* No Comments Text */' . \"\\n\" . '.nocomments'\r\n\t\t)\r\n\t);\r\n\t\r\n\treturn $genesis_extender_comment_elements_array;\r\n\t\r\n}", "title": "" }, { "docid": "4486b8c1872c03a303811b34a95f3b68", "score": "0.5650295", "text": "function __construct() {\n\t?>\n\t\t<section class=\"comments-list\">\n\t<?php }", "title": "" }, { "docid": "774e352051e82374a860eaa489eb3762", "score": "0.56444705", "text": "public static function hookData() {\n return array_merge_recursive( array (\n 'postContainer' => \n array (\n 1 => \n array (\n 'selector' => 'article[itemtype=\\'http://schema.org/Answer\\'] > aside.ipsComment_author.cAuthorPane.ipsColumn.ipsColumn_medium > h3.ipsType_sectionHead.cAuthorPane_author.ipsType_blendLinks.ipsType_break[itemprop=\\'creator\\'][itemtype=\\'http://schema.org/Person\\']',\n 'type' => 'add_inside_start',\n 'content' => '{{if member.member_id}}\n\t{{if $comment->author()->isOnline()}}\n\t\t<i class=\"fa fa-circle ipsOnlineStatus_online\" data-ipsTooltip title=\"{lang=\"online_now\" sprintf=\"$comment->author()->name\"}\"> </i>\n\t{{else}} \n\t\t<i class=\"fa fa-circle ipsOnlineStatus_offline\" data-ipsTooltip title=\"\"> </i>\n\t{{endif}}\n{{endif}}',\n ),\n ),\n), parent::hookData() );\n}", "title": "" }, { "docid": "985dc08b91741180b8460066e0e61d43", "score": "0.5626958", "text": "protected function defineFields() {}", "title": "" }, { "docid": "d298238beb921c753bfb3df211756c9b", "score": "0.5624755", "text": "public function _construct()\n\t{\n\t\t$this->msg_id=null;\n\t\t$this->fields=array('category_id'=>'',\n\t\t 'title'=>'',\n\t\t\t\t\t\t\t 'keywords'=>'',\n\t\t\t\t\t\t\t 'auther'=>'',\n\t\t\t\t\t\t\t 'content'=>'',\n\t\t 'is_top'=>false,\n\t\t\t\t\t\t\t);\n\t}", "title": "" }, { "docid": "91a9f838ae653525d7c7aae295cd9f89", "score": "0.56214905", "text": "function get_e_comment()\n\t\t{\n\t\t\t$data = getcachedvars('e_comment');\n\t\t\tif ($data !== FALSE)\n\t\t\t{\n\t\t\t\treturn $data;\n\t\t\t}\n\n\t\t\t$files = e107::getPref('e_comment_list');\n\n\t\t\tforeach ($files as $file=>$perms)\n\t\t\t{\n\t\t\t\tunset($e_comment, $key);\n\t\t\t\tinclude (e_PLUGIN.$file.\"/e_comment.php\");\n\t\t\t\tif ($e_comment && is_array($e_comment))\n\t\t\t\t{\n\t\t\t\t\t$key = $e_comment['eplug_comment_ids'];\n\t\t\t\t\tif (isset($key) && $key != '')\n\t\t\t\t\t{\n\t\t\t\t\t\t$data[$key] = $e_comment;\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//convert old method variables into the same array method\n\t\t\t\t\t$key = $e_plug_table;\n\t\t\t\t\tif (isset($key) && $key != '')\n\t\t\t\t\t{\n\t\t\t\t\t\t$e_comment['eplug_comment_ids'] = $e_plug_table;\n\t\t\t\t\t\t$e_comment['plugin_name'] = $plugin_name;\n\t\t\t\t\t\t$e_comment['plugin_path'] = $plugin_path;\n\t\t\t\t\t\t$e_comment['reply_location'] = $reply_location;\n\t\t\t\t\t\t$e_comment['db_title'] = $link_name;\n\t\t\t\t\t\t$e_comment['db_id'] = $db_id;\n\t\t\t\t\t\t$e_comment['db_table'] = $db_table;\n\t\t\t\t\t\t$e_comment['qry'] = '';\n\t\t\t\t\t\t$data[$key] = $e_comment;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcachevars('e_comment', $data);\n\t\t\treturn $data;\n\t\t}", "title": "" }, { "docid": "c1a165f10b5102fd1f011e3a35fa3797", "score": "0.561433", "text": "function __construct() {\r\n\t\t\tparent::__construct(\r\n\t\t\t\t'wtrwidgetrecentcomm', // Base ID\r\n\t\t\t\tWTR_THEME_NAME . ' ' . __( 'recent comments', 'wtr_framework' ),\r\n\t\t\t\tarray( 'description' => __( 'This section shows last comments', 'wtr_framework' ), )\r\n\t\t\t);\r\n\t\t}", "title": "" }, { "docid": "1c6ba77ff7324d4d4bbbfd3049b86ab1", "score": "0.56061804", "text": "function custom_comments($comment, $args, $depth)\n{\n $GLOBALS['comment'] = $comment;\n //global $commentcount;\n //if (!$commentcount) {\n // $commentcount = 0;\n //}\n //$commentcount++;\n $intval_depth = intval($depth) - 1;\n if($intval_depth > 5) $intval_depth = 5;\n global $commentalt;\n ($commentalt == 'alt') ? $commentalt = '' : $commentalt = 'alt';\n ?>\n\n <li <?php comment_class( $depth == '1' ? 'parent' : 'children'); ?> id=\"comment-<?php comment_ID(); ?>\">\n <div class=\"list\" style=\"margin-left:<?php echo 5 * $intval_depth; ?>%\">\n <?php if ($comment->comment_approved == '0') { ?>\n <span style=\"color:#F60; padding-left:5px;\">Your comment is awaiting moderation.</span>\n <?php } else if ($comment->comment_author_email == get_the_author_email()) { ?>\n <!--master's reply-->\n <div class=\"master\">\n <div class=\"master-layout\" >\n <?php if (function_exists('get_avatar')) { ?>\n <div class=\"gravatar2\"><?php echo get_avatar($comment, 32);?></div>\n <?php } ?>\n\n <cite><?php comment_author_link() ?></cite>\n\n <span class='tstamp'><?php comment_date() ?> <?php comment_time('H:i:s'); ?></span>\n\n <span class=\"masterinfo\"><?php to_reply(); ?>&nbsp;&nbsp;<?php edit_comment_link('Edit'); ?></span>\n\n <div class=\"mastertext\"><?php comment_text() ?></div>\n\n </div> <!-- .master-layout end-->\n </div> <!--.master end-->\n <?php } else { ?>\n <!--customer's reply-->\n <div class=\"customer\">\n <div class=\"customer-layout\" >\n\n <?php if (function_exists('get_avatar')) { ?>\n <div class=\"gravatar\"><?php echo get_avatar($comment, 32); ?></div>\n <?php } ?>\n\n <cite><?php comment_author_link() ?></cite>\n\n <span class='tstamp'><?php comment_date() ?> <?php comment_time('H:i:s'); ?></span>\n\n <span class=\"customerinfo\"><?php to_reply(); ?>&nbsp;&nbsp;<?php edit_comment_link('Edit'); ?></span>\n\n <div class=\"customertext\"><?php comment_text() ?></div>\n\n </div> <!-- .customer-layout end-->\n </div> <!--.customer end-->\n <?php } ?>\n\n </div> <!-- list end -->\n </li>\n<?php\n}", "title": "" }, { "docid": "aaa11e73eac5fb5e2fc7e84d7fda2eb1", "score": "0.55930436", "text": "function as_adapt_comment_form( $arg ) {\n $arg['class_submit'] = 'btn black waves-effect waves-light white-text';\n $arg['comment_field'] = '\n <div class=\"comment-form-comment input-field col s12\">\n <textarea id=\"comment\" class=\"materialize-textarea\" name=\"comment\" aria-required=\"true\"></textarea>\n <label for=\"comment\">' . _x( 'Yorumunuz', 'noun' ) . '</label>\n </div>';\n\n return $arg;\n}", "title": "" }, { "docid": "760974f7581e60a34a4a82cf6a95fdbb", "score": "0.5586295", "text": "function withComments($withComments);", "title": "" }, { "docid": "d0e3d5757ca22966015217e8696529fe", "score": "0.55860925", "text": "function custom_pings($comment, $args, $depth) {\n\t $GLOBALS['comment'] = $comment;\n\t ?>\n\t <li id=\"comment-<?php comment_ID() ?>\" <?php comment_class() ?>>\n\t <div class=\"comment-author\"><?php printf(__('By %1$s on %2$s at %3$s', 'swiftframework'),\n\t get_comment_author_link(),\n\t get_comment_date(),\n\t get_comment_time() );\n\t edit_comment_link(__('Edit', 'swiftframework'), ' <span class=\"meta-sep\">|</span> <span class=\"edit-link\">', '</span>'); ?></div>\n\t <?php if ($comment->comment_approved == '0') _e('\\t\\t\\t\\t\\t<span class=\"unapproved\">Your trackback is awaiting moderation.</span>\\n', 'swiftframework') ?>\n\t <div class=\"comment-content\">\n\t <?php comment_text() ?>\n\t </div>\n\t<?php }", "title": "" }, { "docid": "8a0b465ba6029fc008742922aad77a78", "score": "0.55854654", "text": "public function getComments() {\n }", "title": "" }, { "docid": "36985f4a65dc6a994aace4a15cad9d5f", "score": "0.5574929", "text": "function bones_comments($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment; ?>\n\t<li <?php comment_class(); ?>>\n\t\t<article id=\"comment-<?php comment_ID(); ?>\" class=\"clearfix\">\n\t\t\t<div class=\"comment-author vcard row-fluid clearfix\">\n\t\t\t\t<div class=\"avatar span2\">\n\t\t\t\t\t<?php echo get_avatar($comment,$size='75',$default='<path_to_url>' ); ?>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"span10 comment-text\">\n\t\t\t\t\t<?php printf(__('<h4>%s</h4>','bonestheme'), get_comment_author_link()) ?>\n\t\t\t\t\t<?php edit_comment_link(__('Edit','bonestheme'),'<span class=\"edit-comment btn btn-small btn-info\"><i class=\"icon-white icon-pencil\"></i>','</span>') ?>\n \n <?php if ($comment->comment_approved == '0') : ?>\n \t\t\t\t\t<div class=\"alert-message success\">\n \t\t\t\t<p><?php _e('Your comment is awaiting moderation.','bonestheme') ?></p>\n \t\t\t\t</div>\n\t\t\t\t\t<?php endif; ?>\n \n <?php comment_text() ?>\n \n <time datetime=\"<?php echo comment_time('Y-m-j'); ?>\"><a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php comment_time('F jS, Y'); ?> </a></time>\n \n\t\t\t\t\t<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n </div>\n\t\t\t</div>\n\t\t</article>\n <!-- </li> is added by wordpress automatically -->\n<?php\n}", "title": "" }, { "docid": "c649f310aaec1d76b80303751918857b", "score": "0.5564353", "text": "function custom_pings($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment;\n ?>\n <li id=\"comment-<?php comment_ID() ?>\" <?php comment_class() ?>>\n <div class=\"comment-author\"><?php printf(__('By %1$s on %2$s at %3$s', 'tuscan'),\n get_comment_author_link(),\n get_comment_date(),\n get_comment_time() );\n edit_comment_link(__('Edit', 'tuscan'), ' <span class=\"meta-sep\">|</span> <span class=\"edit-link\">', '</span>'); ?></div>\n <?php if ($comment->comment_approved == '0') _e('\\t\\t\\t\\t\\t<span class=\"unapproved\">Your trackback is awaiting moderation.</span>\\n', 'tuscan') ?>\n <div class=\"comment-content\">\n <?php comment_text() ?>\n </div>\n<?php }", "title": "" }, { "docid": "63c7b4e84023e341a3e2f1cc87e43daf", "score": "0.55528456", "text": "function getFormFields() \r\n{\r\n\tglobal $cfg_company;\r\n\tglobal $cfg_company_nit;\r\n\tglobal $cfg_address;\r\n\tglobal $cfg_phone;\r\n\tglobal $cfg_email;\t\r\n\tglobal $cfg_fax;\r\n\tglobal $cfg_website;\r\n\tglobal $cfg_other;\r\n\tglobal $cfg_default_tax_rate;\r\n\tglobal $cfg_currency_symbol;\r\n\tglobal $cfg_theme;\r\n\tglobal $cfg_language;\r\n\tglobal $cfg_numberForBarcode;\r\n global $cfg_res_fact;\r\n\tglobal $cfg_fact_desde;\r\n\tglobal $cfg_fac_hasta;\r\n global $cfg_pref_fac;\r\n\tglobal $cfg_start_balance;\r\n\tglobal $cfg_turnjournal;\r\n\tglobal $cfg_sucursal;\r\n\tglobal $cfg_companycomments;\r\n\tglobal $cfg_companynitcomments;\r\n\tglobal $cfg_sucursalcomments;\r\n\tglobal $cfg_companyAddresscomments;\r\n global $cfg_companyPhonecomments;\r\n\tglobal $cfg_companyEmailcomments;\r\n\tglobal $cfg_companyFaxcomments;\r\n\tglobal $cfg_companyWebsitecomments;\r\n\tglobal $cfg_companyOthercomments;\r\n\tglobal $cfg_themeSelectedcomments;\t\r\n\tglobal $cfg_taxRatecomments;\t\r\n\tglobal $cfg_currencySymbolcomments;\r\n\tglobal $cfg_numberForBarcodecomments;\t\r\n\tglobal $cfg_languagecomments;\t\r\n\tglobal $cfg_res_factcomments;\t\r\n\tglobal $cfg_fact_desdecomments;\t\r\n\tglobal $cfg_fac_hastacomments;\t\r\n\tglobal $cfg_pref_faccomments;\t\r\n\tglobal $cfg_start_balancecomments;\t\r\n\tglobal $cfg_turnjournalcomments;\t\r\n\tglobal $cfg_tckcodetype;\r\n\tglobal $cfg_commentsttckcodetype;\r\n\tglobal $cfg_footer1;\r\n\tglobal $cfg_commentsfooter1;\r\n\tglobal $cfg_footer2;\r\n\tglobal $cfg_commentsfooter2;\r\n\tglobal $cfg_footer3;\r\n\tglobal $cfg_commentsfooter3;\r\n\tglobal $cfg_header1;\r\n\tglobal $cfg_commentsheader1;\r\n\tglobal $cfg_header2;\r\n\tglobal $cfg_commentsheader2;\r\n\tglobal $cfg_header3;\r\n\tglobal $cfg_commentsheader3;\r\n\tglobal $cfg_promomgnt;\r\n\tglobal $cfg_commentspromomgnt;\r\n\tglobal $cfg_dsctoprod;\r\n\tglobal $cfg_commentsdsctoprod;\r\n\tglobal $cfg_dsctoglo;\r\n\tglobal $cfg_commentsdsctoglo;\r\n\tglobal $cfg_dsctovol;\r\n\tglobal $cfg_commentsdsctovol;\r\n\tglobal $cfg_aproxprice;\r\n\tglobal $cfg_commentsaproxprice;\r\n\tglobal $cfg_aproxpay;\r\n\tglobal $cfg_commentsaproxpay;\r\n\tglobal $cfg_especialmov;\r\n\tglobal $cfg_commentsespecialmov;\r\n\tglobal $cfg_creditsales;\r\n\tglobal $cfg_commentscreditsales;\r\n\tglobal $cfg_prepaysales;\r\n\tglobal $cfg_commentsprepaysales;\r\n\tglobal $cfg_quotesales;\r\n\tglobal $cfg_commentsquotesales;\r\n\tglobal $cfg_fracprod;\r\n\tglobal $cfg_commentsfracprod;\r\n\tglobal $cfg_domisales;\r\n\tglobal $cfg_commentsdomisales;\r\n\tglobal $cfg_salesman;\r\n\tglobal $cfg_commentssalesman;\r\n\tglobal $cfg_opencero;\r\n\tglobal $cfg_commentsopencero;\r\n\tglobal $cfg_supervisorkey;\r\n\tglobal $cfg_commentssupervisorkey;\r\n\tglobal $cfg_changeprice;\r\n\tglobal $cfg_commentschangeprice;\r\n\tglobal $cfg_validatecmt;\r\n\tglobal $cfg_commentsvalidatecmt;\r\n\tglobal $cfg_admonprinter;\r\n\tglobal $cfg_commentsadmonprinter;\r\n\tglobal $cfg_limitrecordview;\r\n\tglobal $cfg_commentslimitrecordview;\r\n\tglobal $cfg_ciiu;\r\n\tglobal $cfg_commentsciiu;\r\n\tglobal $cfg_tarifa_ciiu;\r\n\tglobal $cfg_commentstarifa_ciiu;\r\n\tglobal $cfg_tip_contrib;\r\n\tglobal $cfg_commentstip_contrib;\r\n\tglobal $cfg_autoretenedor;\r\n\tglobal $cfg_commentsautoretenedor;\r\n\tglobal $cfg_regnoventa;\r\n\tglobal $cfg_commentsregnoventa;\r\n\tglobal $cfg_searchproductcombo;\r\n\tglobal $cfg_commentssearchproductcombo;\r\n\t\r\n\t$formFields[0]=$cfg_company;\r\n\t$formFields[1]=$cfg_address;\r\n\t$formFields[2]=$cfg_phone;\r\n\t$formFields[3]=$cfg_email;\r\n\t$formFields[4]=$cfg_fax;\r\n\t$formFields[5]=$cfg_website;\r\n\t$formFields[6]=$cfg_other;\r\n\t$formFields[7]=$cfg_default_tax_rate;\r\n\t$formFields[8]=$cfg_currency_symbol;\r\n\t$formFields[9]=$cfg_numberForBarcode;\r\n\t$formFields[10]=$cfg_language;\r\n\t$formFields[11]=$cfg_res_fact;\r\n\t$formFields[12]=$cfg_company_nit;\r\n\t$formFields[13]=$cfg_fact_desde;\r\n\t$formFields[14]=$cfg_fac_hasta;\r\n\t$formFields[15]=$cfg_pref_fac;\r\n\t$formFields[16]=$cfg_start_balance;\r\n\t$formFields[17]=$cfg_turnjournal;\r\n\t$formFields[18]=$cfg_sucursal; \r\n\t$formFields[19]=$cfg_companycomments; \r\n\t$formFields[20]=$cfg_companynitcomments; \r\n\t$formFields[21]=$cfg_sucursalcomments; \r\n\t$formFields[22]=$cfg_companyAddresscomments;\r\n\t$formFields[23]=$cfg_companyPhonecomments; \r\n\t$formFields[24]=$cfg_companyEmailcomments; \r\n\t$formFields[25]=$cfg_companyFaxcomments; \r\n\t$formFields[26]=$cfg_companyWebsitecomments; \r\n\t$formFields[27]=$cfg_companyOthercomments; \r\n\t$formFields[28]=$cfg_themeSelectedcomments; \r\n\t$formFields[29]=$cfg_taxRatecomments; \r\n\t$formFields[30]=$cfg_currencySymbolcomments;\r\n\t$formFields[31]=$cfg_numberForBarcodecomments;\r\n\t$formFields[32]=$cfg_languagecomments;\r\n\t$formFields[33]=$cfg_res_factcomments;\r\n\t$formFields[34]=$cfg_fact_desdecomments;\r\n\t$formFields[35]=$cfg_fac_hastacomments;\r\n\t$formFields[36]=$cfg_pref_faccomments;\r\n\t$formFields[37]=$cfg_start_balancecomments;\r\n\t$formFields[38]=$cfg_turnjournalcomments;\r\n\t$formFields[39]=$cfg_tckcodetype;\r\n\t$formFields[40]=$cfg_commentsttckcodetype;\r\n\t$formFields[41]=$cfg_footer1;\r\n\t$formFields[42]=$cfg_commentsfooter1;\r\n\t$formFields[43]=$cfg_footer2;\r\n\t$formFields[44]=$cfg_commentsfooter2;\r\n\t$formFields[45]=$cfg_footer3;\r\n\t$formFields[46]=$cfg_commentsfooter3;\r\n\t$formFields[47]=$cfg_header1;\r\n\t$formFields[48]=$cfg_commentsheader1;\r\n\t$formFields[49]=$cfg_header2;\r\n\t$formFields[50]=$cfg_commentsheader2;\r\n\t$formFields[51]=$cfg_header3;\r\n\t$formFields[52]=$cfg_commentsheader3;\r\n\t$formFields[53]=$cfg_promomgnt;\r\n\t$formFields[54]=$cfg_commentspromomgnt;\r\n\t$formFields[55]=$cfg_dsctoprod;\r\n\t$formFields[56]=$cfg_commentsdsctoprod;\r\n\t$formFields[57]=$cfg_dsctoglo;\r\n\t$formFields[58]=$cfg_commentsdsctoglo;\r\n\t$formFields[59]=$cfg_dsctovol;\r\n\t$formFields[60]=$cfg_commentsdsctovol;\r\n\t$formFields[61]=$cfg_aproxprice;\r\n\t$formFields[62]=$cfg_commentsaproxprice;\r\n\t$formFields[63]=$cfg_aproxpay;\r\n\t$formFields[64]=$cfg_commentsaproxpay;\r\n\t$formFields[65]=$cfg_especialmov;\r\n\t$formFields[66]=$cfg_commentsespecialmov;\r\n\t$formFields[67]=$cfg_creditsales;\r\n\t$formFields[68]=$cfg_commentscreditsales;\r\n\t$formFields[69]=$cfg_prepaysales;\r\n\t$formFields[70]=$cfg_commentsprepaysales;\r\n\t$formFields[71]=$cfg_quotesales;\r\n\t$formFields[72]=$cfg_commentsquotesales;\r\n\t$formFields[73]=$cfg_fracprod;\r\n\t$formFields[74]=$cfg_commentsfracprod;\r\n\t$formFields[75]=$cfg_domisales;\r\n\t$formFields[76]=$cfg_commentsdomisales;\r\n\t$formFields[77]=$cfg_salesman;\r\n\t$formFields[78]=$cfg_commentssalesman;\r\n\t$formFields[79]=$cfg_opencero;\r\n\t$formFields[80]=$cfg_commentsopencero;\r\n\t$formFields[81]=$cfg_supervisorkey;\r\n\t$formFields[82]=$cfg_commentssupervisorkey;\r\n\t$formFields[83]=$cfg_changeprice;\r\n\t$formFields[84]=$cfg_commentschangeprice;\r\n\t$formFields[85]=$cfg_validatecmt;\r\n\t$formFields[86]=$cfg_commentsvalidatecmt;\r\n\t$formFields[87]=$cfg_admonprinter;\r\n\t$formFields[88]=$cfg_commentsadmonprinter;\r\n\t$formFields[89]=$cfg_limitrecordview;\r\n\t$formFields[90]=$cfg_commentslimitrecordview;\r\n\t$formFields[91]=$cfg_ciiu;\r\n\t$formFields[92]=$cfg_commentsciiu;\r\n\t$formFields[93]=$cfg_tarifa_ciiu;\r\n\t$formFields[94]=$cfg_commentstarifa_ciiu;\r\n\t$formFields[95]=$cfg_tip_contrib;\r\n\t$formFields[96]=$cfg_commentstip_contrib;\r\n\t$formFields[97]=$cfg_autoretenedor;\r\n\t$formFields[98]=$cfg_commentsautoretenedor;\r\n\t$formFields[99]=$cfg_regnoventa;\r\n\t$formFields[100]=$cfg_commentsregnoventa;\r\n\t$formFields[101]=$cfg_searchproductcombo;\r\n $formFields[102]=$cfg_commentssearchproductcombo;\r\n\treturn $formFields;\r\n}", "title": "" }, { "docid": "0c63b6341aaec2e66001e4de558cee63", "score": "0.55516183", "text": "public function __construct() {\r\n parent::__construct( 'ticket_comments' );\r\n\r\n // We want to make sure they match\r\n if ( isset( $this->ticket_comment_id ) )\r\n $this->id = $this->ticket_comment_id;\r\n }", "title": "" }, { "docid": "f316a8bf6e39cb95d0b3961967ec6f65", "score": "0.5532571", "text": "public function __construct() {\n\t\t$this->widget_args = array(\n\t\t\t'description' => esc_html__('Advanced recent comments widget. With excerpt & without avatar', 'dfd-native')\n\t\t);\n\t\t\n\t\t$this->options = array(\n\t\t\tarray(\n\t\t\t\t'title', 'text', '',\n\t\t\t\t'label'\t\t=> esc_html__('Title', 'dfd-native'),\n\t\t\t\t'input'\t\t=> 'text',\n\t\t\t\t'filters'\t=> 'widget_title',\n\t\t\t\t'on_update'\t=> 'esc_attr'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'limit', 'int', 3,\n\t\t\t\t'label'\t\t=> esc_html__('Limit', 'dfd-native'),\n\t\t\t\t'input'\t\t=> 'select',\n\t\t\t\t'values'\t=> array('range', 'from'=>1, 'to'=>20),\n\t\t\t\t'on_update'\t=> 'esc_attr'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'date', 'text', '',\n\t\t\t\t'label'\t\t=> esc_html__('Display date', 'dfd-native'),\n\t\t\t\t'input'\t\t=> 'checkbox',\n\t\t\t\t'on_update'\t=> 'esc_attr'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'load_more', 'text', '',\n\t\t\t\t'label'\t\t=> esc_html__('Display load more button', 'dfd-native'),\n\t\t\t\t'input'\t\t=> 'checkbox'\n\t\t\t),\n\t\t);\n\t\t\n\t\t\n\t\tadd_action('wp_ajax_comment_noavatar_dfd_load_more', array($this, 'dfd_widgets_load_more_comment_nothumb'));\n\t\tadd_action('wp_ajax_nopriv_comment_noavatar_dfd_load_more', array($this, 'dfd_widgets_load_more_comment_nothumb'));\n\t\t\n parent::__construct();\n }", "title": "" }, { "docid": "640d21cb898c6fa347e062855fde857e", "score": "0.5525277", "text": "function custom_pings($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment;\n ?>\n <li id=\"comment-<?php comment_ID() ?>\" <?php comment_class() ?>>\n <div class=\"comment-author\"><?php printf(__('By %1$s on %2$s at %3$s', 'your-theme'),\n get_comment_author_link(),\n get_comment_date(),\n get_comment_time() );\n edit_comment_link(__('Edit', 'your-theme'), ' <span class=\"meta-sep\">|</span> <span class=\"edit-link\">', '</span>'); ?></div>\n <?php if ($comment->comment_approved == '0') _e('\\t\\t\\t\\t\\t<span class=\"unapproved\">Your trackback is awaiting moderation.</span>\\n', 'your-theme') ?>\n <div class=\"comment-content \">\n <?php comment_text() ?>\n </div>\n<?php }", "title": "" }, { "docid": "7dc468f38ee91216df34f68ec82a488d", "score": "0.5523328", "text": "function gsc_comment_form_args( $args ){\n $commenter = wp_get_current_commenter();\n\t$req = get_option( 'require_name_email' );\n\t$aria_req = ( $req && gsc_get_option('genesis_comment_form_args_fields_aria_display') ? ' aria-required=\"true\"' : '' );\n\n\t$args = array(\n\t\t'fields' => array(\n\t\t\t'author' =>\t'<p class=\"comment-form-author\">' .\n\t\t\t\t\t\t'<input id=\"author\" name=\"author\" type=\"text\" value=\"' . esc_attr( $commenter['comment_author'] ) . '\" size=\"30\" tabindex=\"1\"' . $aria_req . ' />' .\n\t\t\t\t\t\t'<label for=\"author\">' . esc_attr( gsc_get_option('genesis_comment_form_args_fields_author_label') ) . '</label> ' .\n\t\t\t\t\t\t( $req ? '<span class=\"required\">*</span>' : '' ) .\n\t\t\t\t\t\t'</p><!-- #form-section-author .form-section -->',\n\n\t\t\t'email' =>\t'<p class=\"comment-form-email\">' .\n\t\t\t\t\t\t'<input id=\"email\" name=\"email\" type=\"text\" value=\"' . esc_attr( $commenter['comment_author_email'] ) . '\" size=\"30\" tabindex=\"2\"' . $aria_req . ' />' .\n\t\t\t\t\t\t'<label for=\"email\">' . esc_attr( gsc_get_option('genesis_comment_form_args_fields_email_label') ) . '</label> ' .\n\t\t\t\t\t\t( $req ? '<span class=\"required\">*</span>' : '' ) .\n\t\t\t\t\t\t'</p><!-- #form-section-email .form-section -->',\n\n\t\t\t'url' =>\t\t'<p class=\"comment-form-url\">' .\n\t\t\t\t\t\t\t'<input id=\"url\" name=\"url\" type=\"text\" value=\"' . esc_attr( $commenter['comment_author_url'] ) . '\" size=\"30\" tabindex=\"3\" />' .\n\t\t\t\t\t\t\t'<label for=\"url\">' . esc_attr( gsc_get_option('genesis_comment_form_args_fields_url_label') ) . '</label>' .\n\t\t\t\t\t\t\t'</p><!-- #form-section-url .form-section -->'\n\t\t),\n\n\t\t'comment_field' =>\t'<p class=\"comment-form-comment\">' .\n\t\t\t\t\t\t\t'<textarea id=\"comment\" name=\"comment\" cols=\"45\" rows=\"8\" tabindex=\"4\" aria-required=\"true\"></textarea>' .\n\t\t\t\t\t\t\t'</p><!-- #form-section-comment .form-section -->',\n\n\t\t'title_reply' => esc_attr( gsc_get_option('genesis_comment_form_args_title_reply') ),\n\t\t'comment_notes_before' => esc_attr( gsc_get_option('genesis_comment_form_args_comment_notes_before') ),\n\t\t'comment_notes_after' => esc_attr( gsc_get_option('genesis_comment_form_args_comment_notes_after') ),\n 'label_submit' => esc_attr( gsc_get_option('genesis_comment_form_args_label_submit') )\n\t);\n\n $args['fields']['author'] = gsc_get_option('genesis_comment_form_args_fields_author_display') ? $args['fields']['author'] : '';\n $args['fields']['email'] = gsc_get_option('genesis_comment_form_args_fields_email_display') ? $args['fields']['email'] : '';\n $args['fields']['url'] = gsc_get_option('genesis_comment_form_args_fields_url_display') ? $args['fields']['url'] : '';\n\n return $args;\n}", "title": "" }, { "docid": "4a8945146ca3c1ab37a46000f463216d", "score": "0.55073345", "text": "function jrblog_custom_contact() {\n\t/**\n\t * Format in the following way:\n\t *\n\t * \"type\" => array(\n\t * \"name\" => \"Type\", // Full name of contact type\n\t * \"url\" => \"http://\", // URL location to personal profile\n\t * \"url\" => \"\", // Don't set to disable follow options in theme options\n\t * \"share\" => true, // Enable sharing options in theme options\n\t * \"share\" => false, // Disable sharing options in theme options\n\t * ),\n\t *\n\t *\n\t * To disable existing fields:\n\t *\n\t * \"type\" => false, // Set full array to \"false\" to remove it entirely.\n\t */\n\n\t// Return Array of Contact Fields\n\t$fields = array(\n\t\t\"aim\" => false,\n\t\t\"yim\" => false,\n\t\t\"jabber\" => false,\n\t\t\"skype\" => array(\n\t\t\t\"name\" => \"Skype\",\n\t\t\t\"url\" => \"\",\n\t\t\t\"share\" => false\n\t\t),\n\t\t\"facebook\" => array(\n\t\t\t\"name\" => \"Facebook\",\n\t\t\t\"url\" => \"http://www.facebook.com/\",\n\t\t\t\"share\" => true\n\t\t),\n\t\t\"twitter\" => array(\n\t\t\t\"name\" => \"Twitter\",\n\t\t\t\"url\" => \"http://www.twitter.com/\",\n\t\t\t\"share\" => true\n\t\t),\n\t\t\"googleplus\" => array(\n\t\t\t\"name\" => \"Google+\",\n\t\t\t\"url\" => \"http://plus.google.com/\",\n\t\t\t\"share\" => true\n\t\t),\n\t\t\"linkedin\" => array(\n\t\t\t\"name\" => \"LinkedIn\",\n\t\t\t\"url\" => \"http://www.linkedin.com/pub/\",\n\t\t\t\"share\" => true\n\t\t),\n\t\t\"tumblr\" => array(\n\t\t\t\"name\" => \"Tumblr\",\n\t\t\t\"url\" => \"http://www.tumblr.com\",\n\t\t\t\"share\" => false,\n\t\t\t\"sub\" => true\n\t\t)\n\t);\n\n\t// Return Contact Fields\n\treturn $fields;\n}", "title": "" }, { "docid": "bc7976511b8eecbcf4eae5a32a1f2f10", "score": "0.5495701", "text": "function custom_comments($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment;\n $GLOBALS['comment_depth'] = $depth;\n ?>\n <li id=\"comment-<?php comment_ID() ?>\" <?php comment_class() ?>>\n <div class=\"comment-meta\"><?php\n printf(__('Posted %1$s at %2$s <span class=\"meta-sep\">|</span> <a href=\"%3$s\" title=\"Permalink to this comment\">Permalink</a>', 'tuscan') ,\n get_comment_date(),\n get_comment_time(),\n '#comment-' . get_comment_ID() );\n\n edit_comment_link(__('Edit', 'tuscan'), ' <span class=\"meta-sep\">|</span> <span class=\"edit-link\">', '</span>'); ?>\n </div>\n\n <?php if ($comment->comment_approved == '0') {\n echo \"\\t\\t\\t\\t\\t<span class='unapproved'>\"; _e('Your comment is awaiting moderation.', 'tuscan'); echo '</span>\\n'; } ?>\n \t\t\n <?php // echo the comment reply link\n if($args['type'] == 'all' || get_comment_type() == 'comment') :\n comment_reply_link(array_merge($args, array(\n 'reply_text' => _('Reply', 'tuscan'), \n 'login_text' => __('Log in to reply.', 'tuscan'),\n 'depth' => $depth,\n 'before' => '<div class=\"comment-reply-link\">', \n 'after' => '</div>'\n )));\n endif; ?>\n\n <div class=\"comment-content\">\n <?php comment_text() ?>\n </div>\n<?php }", "title": "" }, { "docid": "ffe3ff514aab81199053599fef2ff3da", "score": "0.54895884", "text": "public function comment_form_fields( $fields ) {\n\t\t/*\n\t\t * Capturing groups\n\t\t * 1: Start `p` tag. E.g,: <p class=\"comment-form-email\">\n\t\t * 2: Element class\n\t\t * 3: `<label `\n\t\t * 4: `for` attribute with close label tag. E.g.: for=\"email\">\n\t\t * 5: Label content. E.g: E-mail <span class=\"required\">*</span>\n\t\t * 6: Label name + space. E.g: `E-mail `\n\t\t * 7: Asterisk\n\t\t * 8: Label name (if not required)\n\t\t * 9: </label>\n\t\t * 10: `input` tag without close. E.g: <input [...] required='required'\n\t\t * 11: ` />`\n\t\t * 12: Comment `textarea` without close\n\t\t * 13: ></textarea>\n\t\t * 14: `</p>`\n\t\t */\n\t\t$fields = preg_replace(\n\t\t\t'/\n\t\t\t\t(<p.*class=\"(.*)\".*?>)\n\t\t\t\t\t(<label\\s)((?>.*?>))\n\t\t\t\t\t\t(\n\t\t\t\t\t\t\t((?>.*?\\s))<span\\sclass=\"required\">(\\*)<\\/span>\n\t\t\t\t\t\t\t|\n\t\t\t\t\t\t\t(.*)\n\t\t\t\t\t\t)\n\t\t\t\t\t(<\\/label>).*\n\t\t\t\t\t(?:\n\t\t\t\t\t\t(<input.*)(\\s\\/>)\n\t\t\t\t\t\t|\n\t\t\t\t\t\t(<textarea.*)(><\\/textarea>)\n\t\t\t\t\t)\n\t\t\t\t(<\\/p>)\n\t\t\t/x',\n\t\t\t'<div class=\"$2\">$3class=\"screen-reader-text\" $4$5$9$10$12 placeholder=\"$6$7$8\"$11$13</div>',\n\t\t\t$fields\n\t\t);\n\t\t\n\t\treturn array(\n\t\t\t'author' => $fields['author'],\n\t\t\t'email' => $fields['email'],\n\t\t\t'url' => $fields['url'],\n\t\t\t'comment' => $fields['comment'],\n\t\t);\n\t}", "title": "" }, { "docid": "8f9ae90143f081641e0d6d83306124dd", "score": "0.5484959", "text": "function wpsh_comment_id_fields( $id = 0 ) {\n\techo wpsh_get_comment_id_fields( $id );\n}", "title": "" }, { "docid": "8c8728a46b7f040cbf634c09e176c69e", "score": "0.54835784", "text": "function list_pings($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment;\n?>\n <li id=\"comment-<?php comment_ID(); ?>\"><i class=\"icon icon-share-alt\"></i>&nbsp;<?php comment_author_link(); ?>\n<?php \n\n}", "title": "" }, { "docid": "f921623c493de53c667e1a29dfba0442", "score": "0.5482325", "text": "function theone_move_comment( $fields ) {\n $comment_field = $fields[ 'comment' ];\n unset( $fields[ 'comment' ] );\n $fields[ 'comment' ] = $comment_field;\n return $fields;\n}", "title": "" }, { "docid": "e17b6fabfbfdd3053aa59b34e0e123d1", "score": "0.54719377", "text": "function zp_custom_comment_number( ){\n\tglobal $post;\n\t\t$num_comments = get_comments_number();\n\t\tif ( $num_comments == 0 ) {\n\t\t\t$comments = __('No Comments', 'eshop');\n\t\t} elseif ( $num_comments > 1 ) {\n\t\t\t$comments = $num_comments . __(' Comments','eshop' );\n\t\t} else {\n\t\t\t$comments = __('1 Comment','eshop' );\n\t\t}\n\treturn $comments;\n}", "title": "" }, { "docid": "88946dd049d52d450a13bc3b85bfcf0a", "score": "0.5470859", "text": "public function populateWpGlobals(){\n global $comment;\n $comment = $this->getWpComment();\n }", "title": "" }, { "docid": "7f5e2bcfaaabe7447bca237640b81c08", "score": "0.5460516", "text": "function spackler_comment_class( $print = true ) {\n global $comment, $post, $sandbox_comment_alt;\n\n // Collects the comment type (comment, trackback),\n $c = array( $comment->comment_type );\n\n // Counts trackbacks (t[n]) or comments (c[n])\n if ( $comment->comment_type == 'comment' ) {\n $c[] = \"c$sandbox_comment_alt\";\n } else {\n $c[] = \"t$sandbox_comment_alt\";\n }\n\n // If the comment author has an id (registered), then print the log in name\n if ( $comment->user_id > 0 ) {\n $user = get_userdata($comment->user_id);\n // For all registered users, 'byuser'; to specificy the registered user, 'commentauthor+[log in name]'\n $c[] = 'byuser comment-author-' . sanitize_title_with_dashes(strtolower( $user->user_login ));\n // For comment authors who are the author of the post\n if ( $comment->user_id === $post->post_author )\n $c[] = 'bypostauthor';\n }\n\n // If it's the other to the every, then add 'alt' class; collects time- and date-based classes\n spackler_date_classes( mysql2date( 'U', $comment->comment_date ), $c, 'c-' );\n if ( ++$sandbox_comment_alt % 2 )\n $c[] = 'alt';\n\n // Separates classes with a single space, collates classes for comment LI\n $c = join( ' ', apply_filters( 'comment_class', $c ) ); // Available filter: comment_class\n\n // Tada again!\n return $print ? print($c) : $c;\n}", "title": "" }, { "docid": "5a208245d73174da835cd99ad571d522", "score": "0.54589283", "text": "function bones_comments($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment; ?>\n <li <?php comment_class(); ?>>\n <article id=\"comment-<?php comment_ID(); ?>\" class=\"clearfix\">\n <header class=\"comment-author vcard\">\n <?php /*\n this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call:\n echo get_avatar($comment,$size='32',$default='<path_to_url>' );\n */ ?>\n <!-- custom gravatar call -->\n <img data-gravatar=\"http://www.gravatar.com/avatar/<?php echo md5($bgauthemail); ?>&s=32\" class=\"load-gravatar avatar avatar-48 photo\" height=\"32\" width=\"32\" src=\"<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif\" />\n <!-- end custom gravatar call -->\n <?php printf(__('<cite class=\"fn\">%s</cite>'), get_comment_author_link()) ?>\n <time datetime=\"<?php echo comment_time('Y-m-j'); ?>\"><a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php comment_time('F jS, Y'); ?> </a></time>\n <?php edit_comment_link(__('(Edit)', 'bonestheme'),' ','') ?>\n </header>\n <?php if ($comment->comment_approved == '0') : ?>\n <div class=\"alert info\">\n <p><?php _e('Your comment is awaiting moderation.', 'bonestheme') ?></p>\n </div>\n <?php endif; ?>\n <section class=\"comment_content clearfix\">\n <?php comment_text() ?>\n </section>\n <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n </article>\n <!-- </li> is added by wordpress automatically -->\n<?php\n}", "title": "" }, { "docid": "d68691f90bb76fe37de750f7cc12f7bc", "score": "0.5446598", "text": "function luna_comment($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment;\n global $defaultoptions;\n global $options;\n\n switch ($comment->comment_type) :\n case '' :\n ?>\n <li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n <div id=\"comment-<?php comment_ID(); ?>\">\n\n <div class=\"comment-details\">\n <span class=\"comment-author vcard\">\n <?php printf(__('%s <span class=\"says\">says on</span>', 'luna'), sprintf('<cite class=\"fn\">%s</cite>', get_comment_author_link())); ?>\n </span><!-- .comment-author .vcard -->\n\n <?php if ($comment->comment_approved == '0') : ?>\n <em><?php _e('Comment is waiting for moderation.', 'luna'); ?></em>\n <br />\n <?php endif; ?>\n\n <span class=\"comment-meta\">\n <a href=\"<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>\">\n <?php\n /* translators: 1: date, 2: time */\n printf(__('%1$s at %2$s', 'luna'), get_comment_date(), get_comment_time());\n ?></a> folgendes:<?php edit_comment_link(__('Edit', 'luna'), ' ');\n ?>\n </span><!-- .comment-meta .commentmetadata -->\n </div>\n\n <div class=\"comment-body\"><?php comment_text(); ?></div>\n <?php if ($options['aktiv-commentreplylink']) { ?>\n <div class=\"reply\">\n <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?>\n </div> <!-- .reply -->\n <?php } ?>\n\n </div><!-- #comment-## -->\n\n <?php\n break;\n case 'pingback' :\n case 'trackback' :\n ?>\n <li class=\"post pingback\">\n <p><?php _e('Pingback:', 'luna'); ?> <?php comment_author_link(); ?><?php edit_comment_link(__('(Edit)', 'luna'), ' '); ?></p>\n <?php\n break;\n endswitch;\n }", "title": "" }, { "docid": "0a6135d62acb39d01c34fa518a2bd642", "score": "0.5441743", "text": "function gsc_comment_list_args( $args ){\n\n $args['avatar_size'] = intval( gsc_get_option('genesis_comment_list_args_avatar_size') );\n\n return $args;\n}", "title": "" }, { "docid": "597403f1c97b6c896560d3f72bb9be0c", "score": "0.5438615", "text": "public function __construct($myfields){\n$this->myfields=$myfields;\n}", "title": "" }, { "docid": "484a9c0a93c671b596cf0c12466ec045", "score": "0.54350334", "text": "function custom_comments($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment;\n $GLOBALS['comment_depth'] = $depth;\n ?>\n <li id=\"comment-<?php comment_ID() ?>\" <?php comment_class() ?>>\n <div class=\"comment-author vcard\"><?php commenter_link() ?></div>\n <div class=\"comment-meta\"><?php printf(__('Posted %1$s at %2$s <span class=\"meta-sep\">|</span> <a href=\"%3$s\" title=\"Permalink to this comment\">Permalink</a>', 'your-theme'),\n get_comment_date(),\n get_comment_time(),\n '#comment-' . get_comment_ID() );\n edit_comment_link(__('Edit', 'your-theme'), ' <span class=\"meta-sep\">|</span> <span class=\"edit-link\">', '</span>'); ?></div>\n <?php if ($comment->comment_approved == '0') _e(\"\\t\\t\\t\\t\\t<span class='unapproved'>Komentar anda sedang menunggu moderasi.</span>\\n\", 'your-theme') ?>\n <div class=\"comment-content\">\n <?php comment_text() ?>\n </div>\n <?php // echo the comment reply link\n if($args['type'] == 'all' || get_comment_type() == 'comment') :\n comment_reply_link(array_merge($args, array(\n 'reply_text' => __('Reply','your-theme'),\n 'login_text' => __('Log in to reply.','your-theme'),\n 'depth' => $depth,\n 'before' => '<div class=\"comment-reply-link\">',\n 'after' => '</div>'\n )));\n endif;\n ?>\n<?php }", "title": "" }, { "docid": "979b6ea6a9182cfe45b3b5dddcf2b439", "score": "0.54316914", "text": "function alba_theme_comment($comment, $args, $depth) {\n //echo 's';\n $GLOBALS['comment'] = $comment; ?>\n <li class=\"media\">\n <?php echo get_avatar($comment,$size='45' ); ?>\n\n <div class=\"media-body\">\n <h5 class=\"my-0\"><?php printf( esc_html__('%s','alba'), get_comment_author_link()) ?></h5><span><?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> </span>\n <time class=\"small\" datetime=\"<?php $d = \"F d , Y\"; printf(get_comment_date($d)) ?>\"><?php $d = \"F d , Y\"; printf(get_comment_date($d)) ?></time>\n<div class=\"comment_right\">\n <p> <?php comment_text() ?></p>\n </div>\n </div>\n </li>\n<?php\n}", "title": "" }, { "docid": "31fcec9ea32b607bd1397a652ef95259", "score": "0.54263526", "text": "function get_user_comments_from_db() {\r\n\t$user_comment_array = array();\r\n\t\r\n\tappend_user_comment_from_db($user_comment_array,\r\n\t\tnull, \r\n\t\t\"This looks great!!! I haven't made it yet, but I'm sure it's amazing!!!!!!!! Five stars!!!!!!!!!!!!!!!!!\",\r\n\t\t1611205200);\r\n\r\n\tappend_user_comment_from_db($user_comment_array,\r\n\t\t\"Chris Smith\",\r\n\t\t\"This recipe is terrible. I substituted rice flour for the spelt, oat milk for the water and baking soda for the yeast and it didn't turn out at all. Don't make this!\",\r\n\t\t1613106000);\r\n\t\r\n\treturn $user_comment_array;\r\n}", "title": "" }, { "docid": "9d81588eece4a5f4fcf373c41b510d63", "score": "0.54254526", "text": "function comments($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment; ?>\n\t<li <?php comment_class(); ?>>\n\t\t<article id=\"comment__<?php comment_ID(); ?>\" class=\"clearfix\">\n\t\t\t<header class=\"comment__author vcard\">\n\t\t\t <!-- custom gravatar call -->\n\t\t\t <?php\n\t\t\t \t// create variable\n\t\t\t \t$bgauthemail = get_comment_author_email();\n\t\t\t ?>\n\t\t\t <img data-gravatar=\"http://www.gravatar.com/avatar/<?php echo md5($bgauthemail); ?>?s=32\" class=\"load__gravatar avatar avatar__48 photo\" height=\"32\" width=\"32\" src=\"<?php echo get_template_directory_uri(); ?>/assets/img/nothing.gif\" />\n\t\t\t <!-- end custom gravatar call -->\n\t\t\t\t<?php printf(__('<cite class=\"custom__gravatar\">%s</cite>'), get_comment_author_link()) ?>\n\t\t\t\t<time datetime=\"<?php echo comment_time('Y-m-j'); ?>\"><a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php comment_time('F jS, Y'); ?> </a></time>\n\t\t\t\t<?php edit_comment_link(__('(Edit)', 'penrosetheme'),' ','') ?>\n\t\t\t</header>\n\t\t\t<?php if ($comment->comment_approved == '0') : ?>\n \t\t\t<div class=\"alert alert__info\">\n \t\t\t<p><?php _e('Your comment is awaiting moderation.', 'penrosetheme') ?></p>\n \t\t</div>\n\t\t\t<?php endif; ?>\n\t\t\t<section class=\"comment__content clearfix\">\n\t\t\t\t<?php comment_text() ?>\n\t\t\t</section>\n\t\t\t<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n\t\t</article>\n <!-- </li> is added by WordPress automatically -->\n<?php\n}", "title": "" }, { "docid": "629f7ebd42a6139b8f78ce9a68978160", "score": "0.54253507", "text": "function AddOptionsToPost($post){\r\n\r\n\r\n//get the Comments controller\r\n$comments_c=Helpers::get_controller(COMMENTS);\r\n\r\n$post->post_options=$this->GetPostOptions($post->id);\r\n\r\n$post->total_votes=$this->total_votes;\r\n\r\n$post->likes=empty($post->likes)?array():json_decode($post->likes,true);\r\n\r\n$post->comments=$comments_c->GetComments($post->id);\r\n\r\n$post->post_votes=$this->user_ids;\r\n\r\n$post->total_comments=$comments_c->TotalCount($post->id);\r\n\r\nreturn $post;\r\n\r\n}", "title": "" }, { "docid": "bfc436ffaf8e3884c90a7d7f46fc4284", "score": "0.5420827", "text": "function qb_comments( $comment, $args, $depth ) {\r\n\t$GLOBALS['comment'] = $comment;\r\n\t//$avatar \t\t\t= get_avatar( $comment, 48 );\r\n\t$comment_author_id\t= get_comment( get_comment_ID() )->user_id;\r\n\t$comment_author_url\t= get_comment_author_url();\r\n\r\n\tif ( has_wp_user_avatar( $comment_author_id ) ) {\r\n\t\t//$avatar\t= get_wp_user_avatar_src( $comment_author_id, 48 );\r\n\t\t$avatar = get_wp_user_avatar( $comment_author_id, 48 );\r\n\t} else {\r\n\t\t//$avatar = get_bloginfo( 'template_url' ) . '/images/default/48.png';\r\n\t\t// temporary: this is the same for now, for testing; eventually, it should fall back to default image or Facebook image or smt else\r\n\t\t//$avatar\t= get_wp_user_avatar_src( $comment_author_id, 48 );\r\n\t\t$avatar = get_wp_user_avatar( $comment_author_id, 48 );\r\n\t}\r\n\t?>\r\n\r\n\t<li <?php get_comment_class(); ?>><?php\r\n\r\n\t\tif ( $comment_author_url ) {\r\n\t\t\techo '<a href=\"' . $comment_author_url . '\">' . $avatar . get_comment_author() . '</a>';\r\n\t\t} else {\r\n\t\t\techo $avatar . get_comment_author();\r\n\t\t}\r\n\r\n\t\techo '<time class=\"timeago\" datetime=\"' . get_comment_date( 'c' ) . '\">' . get_comment_date( 'F j, Y' ) . '</time>';\r\n\r\n\t\tcomment_text();\r\n\r\n\t\t//edit_comment_link( 'Edit', '<span class=\"edit\">', '</span>' );\r\n\t\tif ( $comment->comment_approved == '0' ) {\r\n\t\t\techo '<em class=\"moderate\">Your comment is awaiting moderation.</em>';\r\n\t\t}\r\n\r\n\t\t/*comment_reply_link(\r\n\t\t\tarray_merge(\r\n\t\t\t\t$args,\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'reply_text'\t=> 'Reply',\r\n\t\t\t\t\t'depth' \t\t=> $depth,\r\n\t\t\t\t\t'max_depth' \t=> $args['max_depth']\r\n\t\t\t\t)\r\n\t\t\t)\r\n\t\t);*/\r\n\techo '</li>';\r\n}", "title": "" }, { "docid": "e3c2040bbe60c31c0ad693d92c183b3a", "score": "0.5420644", "text": "private function Add_Comment()\n\t{\n\t\trequire_once(SERVER_CODE_DIR . 'comment.class.php');\n\n\t\tif(trim($this->request->comment) != '')\n\t\t{\n\t\t\t// Set the type of comment\n\t\t\t// REQUIRED\n\t\t\tswitch( $this->request->action )\n\t\t\t{\n\t\t\tcase 'add_follow_up':\n\t\t\t\t$this->request->comment_type = 'followup';\n\t\t\t\tbreak;\n\t\t\tcase 'change_status':\n\t\t\t\tswitch( $this->request->submit_button )\n\t\t\t\t{\n\t\t\t\tcase 'Deny':\n\t\t\t\t\t$this->request->comment_type = 'deny';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Withdraw':\n\t\t\t\t\t$this->request->comment_type = 'withdraw';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Reverify':\n\t\t\t\t\t$this->request->comment_type = 'reverify';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Watch':\n\t\t\t\t\t$this->request->comment_type = 'watch';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->request->comment_type = 'standard';\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'add_comment':\n\t\t\tdefault:\n\t\t\t\t$this->request->comment_type = 'standard';\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t$comment = new Comment();\n\t\t\t$comment->Add_Comment($this->server->company_id, $this->request->application_id, $this->server->agent_id,\n\t\t\t\t $this->request->comment, $this->request->comment_type);\n\t\t}\n\t}", "title": "" }, { "docid": "c2fd92b62471b073d074d50f656ae4da", "score": "0.5420062", "text": "function bones_comments( $comment, $args, $depth ) {\n $GLOBALS['comment'] = $comment; ?>\n <div id=\"comment-<?php comment_ID(); ?>\" <?php comment_class('cf'); ?>>\n <article class=\"cf\">\n <header class=\"comment-author vcard\">\n <?php\n /*\n this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call:\n echo get_avatar($comment,$size='32',$default='<path_to_url>' );\n */\n ?>\n <?php // custom gravatar call ?>\n <?php\n // create variable\n $bgauthemail = get_comment_author_email();\n ?>\n <img data-gravatar=\"http://www.gravatar.com/avatar/<?php echo md5( $bgauthemail ); ?>?s=40\" class=\"load-gravatar avatar avatar-48 photo\" height=\"40\" width=\"40\" src=\"<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif\" />\n <?php // end custom gravatar call ?>\n <?php printf(__( '<cite class=\"fn\">%1$s</cite> %2$s', 'ip' ), get_comment_author_link(), edit_comment_link(__( '(Edit)', 'ip' ),' ','') ) ?>\n <time datetime=\"<?php echo comment_time('Y-m-j'); ?>\"><a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php comment_time(__( 'F jS, Y', 'ip' )); ?> </a></time>\n\n </header>\n <?php if ($comment->comment_approved == '0') : ?>\n <div class=\"alert alert-info\">\n <p><?php _e( 'Your comment is awaiting moderation.', 'ip' ) ?></p>\n </div>\n <?php endif; ?>\n <section class=\"comment_content cf\">\n <?php comment_text() ?>\n </section>\n <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n </article>\n <?php // </li> is added by WordPress automatically ?>\n<?php\n}", "title": "" }, { "docid": "115b8d15bb8044d9336191068d8cc677", "score": "0.54186857", "text": "function recursive_comment_wizard($comments, $results) {\n\t\t\t\n\t\t\tglobal $commentcount, $modhash, $username;\n\t\t\t\n\t\t\t\tif (is_array($comments)) {\n\t\t\t\t\n\t\t\t\t\tforeach($comments as $c) {\n\t\t\t\t\t\n\t\t\t\t\t\t$hasChildren=false;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t/* Look inside [children] */\t\n\t\t\t\t\t\tif ( sizeof( $c->data->children ) > 0 ) {\n\t\t\t\t\t\t\t$results = recursive_comment_wizard($c->data->children, $results);\t\t\n\t\t\t\t\t\t\t$hasChildren=true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t/* [replies] holds another ->data->children, fooof! */\n\t\t\t\t\t\tif ( sizeof( $c->data->replies->data->children ) > 0 ) {\t\n\t\t\t\t\t\t\t$results = recursive_comment_wizard($c->data->replies->data->children, $results);\t\n\t\t\t\t\t\t\t$hasChildren=true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t/* Has body (comment), no children and isn't the bot */\n\t\t\t\t\t\tif ( ($c->data->body != \"\") && (!$hasChildren) && ( $c->data->author != $username ) && (strlen($c->data->body)<250) ) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$commentcount++;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/* Record enough data to reply */\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$new=[\"name\"=> $c->data->name,\n\t\t\t\t\t\t\t\t \"comment\"=>$c->data->body,\n\t\t\t\t\t\t\t\t \"subreddit\"=>$c->data->subreddit];\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t$results[]=$new;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn $results;\n\t\t\t\n\t\t\t}", "title": "" }, { "docid": "8451add77ba5cf6f922c7e50f7756d37", "score": "0.5418248", "text": "function commentsHere($opt = []){\n global $db,$settings,$user,$us_url_root;\n\n /** Get Comment Page info **/\n if(isset($opt['location'])){\n $id = 0;\n $com_location = $opt['location'];\n $com_location_id = $opt['location_id'];\n }else{\n if(!isset($opt['id'])){\n $id = getPageForComments();\n }else{\n $id = $opt['id'];\n }\n if($id == 0){\n echo \"This page id is not in the database\";\n exit();\n }\n $com_location = 0;\n $com_location_id = 0;\n }\n\n /** Get Current Page for Redirect **/\n $cur_page = currentPage();\n\n /** Get user permissions **/\n if(isset($user) && $user->isLoggedIn()){ $user_loggedin = true; }else{ $user_loggedin = false; }\n\n /** Check if Public Comments are Alllowed **/\n if($settings->cmntpub == 1){ $allow_comments = true; }else{ $allow_comments = false; }\n\n /** Check if Comments require Moderation **/\n if($settings->cmntapprvd == 1){\n $require_mod = true;\n $com_approved = 0;\n }else{\n $require_mod = false;\n $com_approved = 1;\n }\n\n /** Check to see if Users Must be logged in to post comments **/\n if($allow_comments == false){\n /** Make sure user is logged in **/\n if($user_loggedin == true){\n $ok_post = true;\n }else{\n $ok_post = false;\n }\n }else{\n /** Public Comments allowed **/\n $ok_post = true;\n }\n\n /** Check to see if user is submitting a comment **/\n if(!empty($_POST['submitComment']) && $ok_post == true){\n global $user;\n if(!$user || !$user->isLoggedIn()){\n $commentsUserId = 0;\n }else{\n $commentsUserId = $user->data()->id;\n }\n\n $com_content = Input::get('comment');\n if(empty($com_content)){\n $errors[]='Comment is Blank';\n }else{\n $fields = array(\n 'page'=>$id,\n 'location'=>$com_location,\n 'location_id'=>$com_location_id,\n 'user'=>$commentsUserId,\n 'comment'=>$com_content,\n 'approved'=>$com_approved\n );\n $db->insert('us_comments_plugin',$fields);\n if($require_mod == true){\n $successes[]='Comment Submitted and Waiting for Moderator Approval';\n }else{\n $successes[]='Comment Posted';\n }\n }\n }\n\n /** Check to see if user or mod is deleting a comment **/\n if(!empty($_POST['deleteComment']) && $ok_post == true){\n $token = $_POST['csrf'];\n if(!Token::check($token)){\n Redirect::to($abs_us_root.$us_url_root.'usersc/scripts/token_error.php');\n }\n $com_id = Input::get('com_id');\n $db->update('us_comments_plugin',$com_id,['deleted'=>1]);\n $successes[]='Comment Deleted';\n }\n\n /** Check to see if user is a Moderator **/\n if(isset($user) && $user->isLoggedIn()){\n $specQ = $db->query(\"SELECT id FROM users WHERE commentmod = 1 AND id = ? \", array($user->data()->id));\n $specC = $specQ->count();\n $user_mod_check = $specQ->results();\n}else{\n $specC = 0;\n}\n if(!empty($user_mod_check)){ $user_is_mod = true; }else{ $user_is_mod = false; }\n\n /** Check to see if mod is approving a comment **/\n if(!empty($_POST['approveComment']) && $ok_post == true && $user_is_mod == true){\n $token = $_POST['csrf'];\n if(!Token::check($token)){\n Redirect::to($abs_us_root.$us_url_root.'usersc/scripts/token_error.php');\n }\n $com_id = Input::get('com_id');\n $db->update('us_comments_plugin',$com_id,['approved'=>1]);\n $successes[]='Comment Approved';\n }\n\n /** Get csrf token for security **/\n $token = Token::generate();\n getPageForComments();\n?>\n<!-- Comments Display Body -->\n<style type=\"text/css\">\n.comment {\n\twhite-space: pre-line;\n\tdisplay: block;\n\tunicode-bidi: embed;\n}\n.comment-box {\n margin-top: 10px !important;\n}\n.comment-box img {\n width: 50px;\n height: 50px;\n}\n.comment-box .media-left {\n padding-right: 4px;\n width: 65px;\n}\n.comment-box .media-body p {\n padding: 2px;\n}\n.comment-box .media-body .media p {\n margin-bottom: 0;\n}\n.comment-box .media-heading {\n padding: 7px 10px;\n position: relative;\n margin-bottom: -1px;\n}\n.comment-box .media-body p {\n border: 1px solid;\n padding: 2px;\n}\n.comment-box .media-content {\n border: 1px solid;\n padding: 2px;\n}\n.comment-box .media-heading {\n border: 1px solid;\n}\n.media-content .comment {\n padding: 4px;\n}\n\n</style>\n<?php if(isset($errors) && !$errors=='') {?><?=display_errors($errors);?><?php } ?>\n<?php if(isset($successes) && !$successes=='') {?><?=display_successes($successes);?><?php } ?>\n<?php\n/** Check to see if user is logged in, and if public comments are allowed **/\nif($ok_post == true){\n?>\n<form class=\"\" action=\"\" method=\"post\">\n <input type=\"hidden\" value=\"<?=$token;?>\" name=\"csrf\">\n <textarea name=\"comment\" rows=\"4\" class=\"form-control\" placeholder=\"Leave a Comment\"></textarea><br>\n <input type=\"submit\" class='btn btn-success btn-sm' name=\"submitComment\" value=\"Post Comment\">\n</form>\n<?php\n}else{\n?>\n<a href=\"../users/login.php\">Login</a> to post comments.\n<?php\n}\n/** Get Comments **/\n/** Display all comments if user is mod **/\nif($user_is_mod == true){\n /** Get all comments **/\n if($com_location != '0'){\n $commentsQ = $db->query(\"SELECT * FROM us_comments_plugin WHERE location = ? AND location_id = ? AND deleted = 0 ORDER BY id DESC LIMIT 100\",array($com_location, $com_location_id));\n $commentsC = $commentsQ->count();\n $comments = $commentsQ->results();\n }else{\n $commentsQ = $db->query(\"SELECT * FROM us_comments_plugin WHERE page = ? AND deleted = 0 ORDER BY id DESC LIMIT 100\",array($id));\n $commentsC = $commentsQ->count();\n $comments = $commentsQ->results();\n }\n}else{\n if($com_location != 0){\n $commentsQ = $db->query(\"SELECT * FROM us_comments_plugin WHERE location = ? AND location_id = ? AND approved = 1 AND deleted = 0 ORDER BY id DESC LIMIT 100\",array($com_location, $com_location_id));\n $commentsC = $commentsQ->count();\n $comments = $commentsQ->results();\n }else{\n /** Get approved Comments **/\n $commentsQ = $db->query(\"SELECT * FROM us_comments_plugin WHERE page = ? AND approved = 1 AND deleted = 0 ORDER BY id DESC LIMIT 100\",array($id));\n $commentsC = $commentsQ->count();\n $comments = $commentsQ->results();\n }\n}\n\n/** Display Comments **/\nif($commentsC < 1){\n echo \"There are no comments. Leave one!\";\n}else{\n ?>\n <h3 align=\"center\">Comments</h3>\n\n <?php foreach($comments as $c){\n /** Check to see if comment is approved - if not then if Mod display approval/delete buttons **/\n if($c->approved == 0){\n $com_not_approved = true; $com_mod_style = 'bg-danger';\n }else{\n $com_not_approved = false; $com_mod_style = '';\n }\n ?>\n <div class='media comment-box'>\n <?php\n $thatUserQ = $db->query(\"SELECT * FROM users WHERE id = ?\",array($c->user));\n $thatUserC = $thatUserQ->count();\n if($thatUserC > 0){\n $thatUser = $thatUserQ->first();\n $grav = get_gravatar(strtolower(trim($thatUser->email)));\n \t$useravatar = '<img src=\"'.$grav.'\" class=\"img img-thumbnail img-fluid rounded\">';\n }\n ?>\n <div class='media-left'>\n <?php\n if($thatUserC > 0){\n if(pluginActive('profile_pic',true) && $thatUser->profile_pic != ''){ ?>\n <img src=\"<?=$us_url_root?>usersc/plugins/profile_pic/files/<?=$thatUser->profile_pic?>\" class=\"img-thumbnail\">\n <?php }else{\n echo $useravatar;\n }\n }\n ?>\n </div>\n <div class='media-body text-break'>\n <div class='media-heading bg-dark'>\n <a href=\"#\"><strong><?php echouser($c->user);?></strong></a>\n <font class='text-muted' size='1'><?php echo time2str($c->timestamp); ?></font>\n </div>\n <div class='media-content <?=$com_mod_style?>'>\n <div class='comment'><?=$c->comment?></div>\n <?php\n /** Display Approve Button if Mod and not approved **/\n if($user_is_mod == true && $com_not_approved == true){\n echo \"\n <strong><font color='red'>Comment Waiting for Approval!</font></strong><Br>\n <form class='' action='' method='post' style='display:inline'>\n <input type='hidden' value='$token' name='csrf'>\n <input type='hidden' value='$c->id' name='com_id'>\n <input type='submit' class='btn btn-sm btn-link' name='approveComment' value='Approve'>\n </form>\n \";\n }\n /** Display Delete Button if Mod or Owner **/\n if($user_loggedin == true && ($user_is_mod == true || $c->user == $user->data()->id)){\n echo \"\n <form class='' action='' method='post' style='display:inline'>\n <input type='hidden' value='$token' name='csrf'>\n <input type='hidden' value='$c->id' name='com_id'>\n <input type='submit' class='btn btn-sm btn-link' name='deleteComment' value='Delete'>\n </form>\n \";\n }\n ?>\n </div>\n </div>\n </div>\n <?php } ?>\n\n <?php\n}\n}", "title": "" }, { "docid": "d6ee0b5e5f6d5b9fd575809d6a8029cd", "score": "0.54176", "text": "function bones_comments( $comment, $args, $depth ) {\n $GLOBALS['comment'] = $comment; ?>\n <div id=\"comment-<?php comment_ID(); ?>\" <?php comment_class('cf'); ?>>\n <article class=\"cf\">\n <header class=\"comment-author vcard\">\n <?php\n /*\n this is the new responsive optimized comment image. It used the new HTML5 data-attribute to display comment gravatars on larger screens only. What this means is that on larger posts, mobile sites don't have a ton of requests for comment images. This makes load time incredibly fast! If you'd like to change it back, just replace it with the regular wordpress gravatar call:\n echo get_avatar($comment,$size='32',$default='<path_to_url>' );\n */\n ?>\n <?php // custom gravatar call ?>\n <?php\n // create variable\n $bgauthemail = get_comment_author_email();\n ?>\n <img data-gravatar=\"http://www.gravatar.com/avatar/<?php echo md5( $bgauthemail ); ?>?s=40\" class=\"load-gravatar avatar avatar-48 photo\" height=\"40\" width=\"40\" src=\"<?php echo get_template_directory_uri(); ?>/library/images/nothing.gif\" />\n <?php // end custom gravatar call ?>\n <?php printf(__( '<cite class=\"fn\">%1$s</cite> %2$s', 'bonestheme' ), get_comment_author_link(), edit_comment_link(__( '(Edit)', 'bonestheme' ),' ','') ) ?>\n <time datetime=\"<?php echo comment_time('Y-m-j'); ?>\"><a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php comment_time(__( 'F jS, Y', 'bonestheme' )); ?> </a></time>\n\n </header>\n <?php if ($comment->comment_approved == '0') : ?>\n <div class=\"alert alert-info\">\n <p><?php _e( 'Your comment is awaiting moderation.', 'bonestheme' ) ?></p>\n </div>\n <?php endif; ?>\n <section class=\"comment_content cf\">\n <?php comment_text() ?>\n </section>\n <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>\n </article>\n <?php // </li> is added by WordPress automatically ?>\n<?php\n}", "title": "" }, { "docid": "f0e4ccd28cef3d2aa7d93142e5e2152d", "score": "0.54050475", "text": "function _elgg_comments_test($hook, $type, $value, $params) {\n\t$value[] = Paths::elgg() . \"engine/tests/ElggCommentTest.php\";\n\treturn $value;\n}", "title": "" }, { "docid": "a8aae028249122f232d87a6e068d758b", "score": "0.54049927", "text": "function garland_preprocess_comment_wrapper(&$vars) {\n if ($vars['content'] && $vars['node']->type != 'forum') {\n $vars['content'] = '<h2 class=\"comments\">'. t('Comments') .'</h2>'. $vars['content'];\n }\n}", "title": "" }, { "docid": "deae6cdefe08907c4265fbedb15df653", "score": "0.5402437", "text": "function __construct()\n\t{\n\t\t$this->model = new Model_Comments();\n\t\tparent::__construct();\n\t}", "title": "" }, { "docid": "dd09211b3e2d868727223d72545a291b", "score": "0.540224", "text": "function html5boilerplate_comment($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment; ?>\n <dt <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>-author\">\n <?php /* echo get_avatar($comment,$size='54');*/ ?>\n <?php comment_author_link(); ?> <time datetime=\"\">on <?php comment_date() ?> at <?php comment_time() ?></time> \n <a href=\"#comment-<?php comment_ID() ?>\" title=\"Permanent Link for this comment\">#permalink</a>\n </dt>\n <dd <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>-body\">\n\t<?php if ($comment->comment_approved == '0') : ?>\n\t\t<p><strong>Your comment is awaiting moderation.</strong></p>\n\t<?php endif; ?>\n\t<?php comment_text(); ?>\n\t<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> <?php edit_comment_link('Edit this comment', ' ', ''); ?>\n\t</dd>\n\t<?php \n}", "title": "" }, { "docid": "7c3748758f81fbf4b903360f754c2132", "score": "0.5393368", "text": "public function generate(): void {\n\t\t$id = (int) wp_insert_comment( array_merge( $this->defaults(), $this->properties ) );\n\n\t\tif ( $id && isset( $this->properties['comment_meta'] ) && is_array( $this->properties['comment_meta'] ) ) {\n\t\t\tforeach ( $this->properties['comment_meta'] as $key => $value ) {\n\t\t\t\tadd_comment_meta( $id, $key, $value );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7dc007337e762b8d7eedba69ff13f6f2", "score": "0.53923506", "text": "public function __construct(Comment $comment)\n {\n //\n $this->comment = $comment;\n }", "title": "" }, { "docid": "cec611d90d776a851ff4cf6ebe2eab64", "score": "0.5391649", "text": "public function getComments();", "title": "" }, { "docid": "c61c3257e2e543d3726dea59fc2b2352", "score": "0.53905314", "text": "public function createFields(){\n\t\t//Create the FieldSet looks to Boring\n\t\t$this->_form->addFieldset(new \\Ip\\Form\\Fieldset(\"Leave a Reply\"));\n\t\t$name=new \\Ip\\Form\\Field\\Text(\n\t\t\t array(\n\t\t\t'name'=>'author',\n\t\t\t 'label'=>'Name'\n\n\t\t)\n\t\t);\n\t\t$name->addValidator(\"Required\");\n\n\t\t$this->_form->addField($name);\n\n\t\t$email=new \\Ip\\Form\\Field\\Email(\n\t\t\tarray(\n\t\t\t'name'=>'email',\n\t\t\t'label'=>'Email'\n\t\t)\n\t\t);\n\t\t$email->AddValidator(\"Required\");\n\t\t$email->addValidator(\"Email\");\n\n\t\t$this->_form->addField($email);\n\n\t\t$website=new \\Ip\\Form\\Field\\Text(\n\t\t\tarray(\n\t\t\t\"name\"=>\"url\",\n\t\t\t\"label\"=>\"Website\"\n\t\t)\n\t\t);\n\n\t\t$this->_form->addField($website);\n\n\t\t$message=new \\Ip\\Form\\Field\\Textarea(\n\t\t\tarray(\n\t\t\t\"name\"=>'content',\n\t\t\t'label'=>\"Comment\"\n\t\t)\n\t\t);\n\n\t\t$message->addValidator(\"Required\");\n\n\t\t$this->_form->addField($message);\n\n\t\t//PostID\n\t\t$hidden=new \\Ip\\Form\\Field\\Hidden(array(\"name\"=>\"post_id\"));\n\t\t$this->_form->addField($hidden);\n\n\n\t\t$this->_form->addField(new \\Ip\\Form\\Field\\Submit(\n\t\t\t\tarray(\n\t\t\t\t\t\t'value' => 'Submit',\n\t\t\t\t\t\t'css'=>\"btn btn-primary\"\n\t\t\t\t)\n\t\t));\n\n\t\t$this->_form->addField(new \\Ip\\Form\\Field\\Hidden(array(\n\t\t\t\t'name' => 'sa',\n\t\t\t\t'value' => 'Diary.CommentSave',\n\t\t)));\n\t\t$this->_form->setEnvironment(\\Ip\\Form::ENVIRONMENT_PUBLIC);\n\t\t$this->_form->setMethod(\\Ip\\Form::METHOD_POST);\n\t\t$this->_form->setAjaxSubmit(true);\n\n\n\n\t}", "title": "" }, { "docid": "0a82f78aba9d941c79c5510a8da6a1ea", "score": "0.53903943", "text": "function jcul_agora_comment ($comment, $args, $depth)\n {\n $GLOBALS['comment'] = $comment;\n switch($comment->comment_type) :\n case 'pingback' :\n case 'trackback' :\n ?>\n<li <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>\">\n<div class=\"comment-text\"><?php _e('Pingback:'); ?> <?php comment_author_link(); ?> <?php edit_comment_link(__('(Edit)', 'twentytwelve'), '<span class=\"edit-link\">', '</span>'); ?></div></li>\n <?php\n break;\n default :\n global $post;\n ?>\n<li <?php comment_class(); ?>>\n<div class=\"comment\" id=\"comment-<?php comment_ID(); ?>\">\n<div class=\"comment-author\">\n<?php echo ( $comment->user_id === $post->post_author ) ? admin_avatar($avatar, get_the_author_meta('ID'), 44) : get_avatar($comment, 44) ?>\n<div class=\"authormeta\">\n<?php\nprintf('<h3 class=\"fn\">%1$s %2$s</h3>', get_comment_author_link(),\n// If current post author is also comment author, make it known visually.\n( $comment->user_id === $post->post_author ) ? '<em>author</em>' : ''\n);\nprintf(' <span class=\"datetime\"><a href=\"%1$s\"><time datetime=\"%2$s\">%3$s</time></a></span>', esc_url(get_comment_link($comment->comment_ID)), get_comment_time('c'), sprintf(__('%2$s'), get_comment_date(), human_time_diff(get_comment_time('U'), current_time('timestamp')).' ago'));\n?>\n</div>\n</div>\n<div class=\"comment-text\">\n<?php if('0' == $comment->comment_approved) : ?>\n<p class=\"comment-awaiting-moderation\">komentar anda menunggu di moderasi.</p>\n<?php endif; ?>\n<?php comment_text(); ?>\n<?php edit_comment_link(__('di Edit'), '<p class=\"edit-link\">', '</p>'); ?>\n</div>\n<div class=\"commentmeta\">\n<div class=\"reply\">\n<?php comment_reply_link(array_merge($args, array ('reply_text' => __('Reply'), 'respond_id' => 'komen_respond', 'after' => ' <span>&darr;</span>', 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?>\n</div>\n</div>\n</div>\n</li>\n <?php\n break;\n endswitch;\n }", "title": "" }, { "docid": "37be639561fc4778467e401713ace840", "score": "0.53890234", "text": "public function __construct(\\Stripe\\Charge $charge,$comments)\n {\n //\n $this->charge = $charge;\n $this->comments = $comments;\n }", "title": "" }, { "docid": "253d2f32f51dc4b5d9d4357f289eabb3", "score": "0.5381882", "text": "function setup_checkout_fields( $fields ) {\r\n unset($fields['order']['order_comments']);\r\n return $fields;\r\n}", "title": "" }, { "docid": "a957c148925ae2be4113a3c2728442d5", "score": "0.53813857", "text": "protected function init_skip_fields() {\n\t\t$this->skip_fields = array( 'captcha', 'html', 'end_divider', 'password', 'credit_card' );\n\n\t\tif ( $this->format == 'array' ) {\n\t\t\t$this->skip_fields[] = 'break';\n\t\t}\n\t}", "title": "" }, { "docid": "bfe90f49706bb07f14881230402c795b", "score": "0.5376984", "text": "public function comment();", "title": "" }, { "docid": "eb73427705dba6f71e553f1e9acd8ba9", "score": "0.53765535", "text": "function __construct($class)\n {\n if ($class instanceof ReflectionClass)\n $reflection = $class;\n else\n $reflection = new ReflectionClass($class);\n \n // Get our comments\n $comments = $reflection->getDocComment();\n \n // Explode the comments into an array via the linefeed\n $lines = explode(\"\\n\", $comments);\n\n // Setup our value array and set the first few entries based upon hard line format values\n $this->values = array();\n $this->values['name'] = trim(ltrim($lines[1], ' * '));\n $this->values['desc'] = trim(ltrim($lines[3], ' * '));\n\n // Loop through the lines and parse out the key/value pairs\n foreach ( $lines as $line )\n {\n // Get the output of a parsed line\n $x = $this->parseLine($line);\n // If the output is an array, merge the arrays\n if ( is_array($x) ) $this->values = array_merge($this->values, $x);\n }\n }", "title": "" }, { "docid": "bcf8aa5f18c0ed4ce8392a4342d7d42b", "score": "0.5373122", "text": "function genesis_extender_comment_respond_elements_array() {\r\n\t\r\n\t$genesis_extender_comment_respond_elements_array = array(\r\n\t\t'-- Comments Respond --' => array(\r\n\t\t\t'Comments Respond' => '/* Comments Respond */' . \"\\n\" . '#respond',\r\n\t\t\t'Reply Title' => '/* Reply Title */' . \"\\n\" . '#respond h3',\r\n\t\t\t'Author/Email/URL/Comment' => '/* Author/Email/URL/Comment */' . \"\\n\" . '#author, #comment, #email, #url',\r\n\t\t\t'Comment Form' => '/* Comment Form */' . \"\\n\" . '#comment',\r\n\t\t\t'Comment Submit Button' => '/* Comment Submit Button */' . \"\\n\" . '#commentform #submit',\r\n\t\t\t'Comment Submit Button Hover' => '/* Comment Submit Button Hover */' . \"\\n\" . '#commentform #submit:hover, #commentform #submit:focus'\r\n\t\t)\r\n\t);\r\n\t\r\n\treturn $genesis_extender_comment_respond_elements_array;\r\n\t\r\n}", "title": "" }, { "docid": "0dfa97d8a18b16084d56432cccd33847", "score": "0.53701633", "text": "private function _setupCommentsFlagFiltering( )\n\t{\n\t\t//\tprint \"Hello from _setupCommentsFlagFiltering<br />\\n\";\n\t\t$app = JFactory::getApplication();\n\t\t$option = JRequest::getCmd('option');\n\n\t\t//\n\t\t// build the form control (select list)\n\t\t//\n\t\t$filter_comments = $app->getUserStateFromRequest( $option.'filter_comments', 'filter_comments' );\n\t\t$js = \"onchange=\\\"if (this.options[selectedIndex].value!=''){document.adminForm.submit();}\\\"\";\n\t\t$options[] = JHTML::_('select.option', '-1', '- '.JText::_('Select Comment Flag').' -' );\n\t\t$options[] = JHTML::_('select.option', '0', ''.JText::_('Comments Disabled').'' );\n\t\t$options[] = JHTML::_('select.option', '1', ''.JText::_('Comments Enabled').'' );\n\t\t$this->_lists['comments'] = JHTML::_('select.genericlist',\n\t\t $options,\n\t\t 'filter_comments',\n\t\t 'class=\"inputbox\" size=\"1\" '.$js,\n\t\t 'value', 'text', $filter_comments);\n\t\treturn $this->_lists;\n\t}", "title": "" }, { "docid": "361e9232c4c069849902248441af00a3", "score": "0.5361642", "text": "function wubc_get_options() {\n $wubc_check_options = get_option('wu_block_comments_options');\n // if no values have been set, revert to the defaults\n if (!$wubc_check_options) {\n \t// Set default values\n \t$wubc_check_options['counter'] = 0;\n }\n return $wubc_check_options;\n}", "title": "" }, { "docid": "8335e26cf247ed8d7344a88f326ea52f", "score": "0.53598887", "text": "function vntd_comment($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment; \n global $post;\n ?>\n \n\t<li <?php comment_class(); ?> id=\"comment-<?php comment_ID() ?>\">\n\t\n\t\t<!-- Comment -->\n\t\t<div class=\"comment\">\n\t\t\t<!-- Image -->\n\t\t\t<div class=\"comment-author-avatar\">\n\t\t\t\t<?php echo get_avatar($comment,$size='100'); ?>\n\t\t\t</div>\n\t\t\t<!-- Description -->\n\t\t\t<div class=\"comment-text\">\n\t\t\t\t<!-- Reply Button -->\n\t\t\t\t\n\t\t\t\t<div class=\"comment-mini-heading\">\n\t\t\t\t\t\t\t\n\t\t\t\t\t<!-- Name -->\n\t\t\t\t\t<h6 class=\"comment-name\">\n\t\t\t\t\t\t<?php echo get_comment_author(); ?>\n\t\t\t\t\t</h6>\n\t\t\t\t\t<!-- Date -->\n\t\t\t\t\t<div class=\"comment-date\">\n\t\t\t\t\t\t<?php echo get_comment_date('F d, Y'); ?>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<!-- Description -->\n\t\t\t\t<?php comment_text(); ?>\n\t\t\t\t<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth'],'reply_text' => __('Reply','vntd_qaro')))); ?>\n\t\t\t</div>\n\t\t\t<!-- End Description -->\n\t\t</div>\n\t\t<!-- End Comment -->\n\t\t\n\t</li>\n\t\n<?php\n}", "title": "" }, { "docid": "2c413841ba32c772f158edb16c818e9b", "score": "0.5358566", "text": "public static function initialize(Jelly_Meta $meta)\n\t{\n\t\t$meta->table('comments')\n\t\t\t->fields(array(\n\t\t\t\t'id' => Jelly::field('Primary'),\n\n\t\t\t\t'type' => Jelly::field('BelongsTo', array(\n\t\t\t\t\t'foreign' => 'comment_type'\n\t\t\t\t)),\n\t\t\t\t'author' => Jelly::field('BelongsTo', array(\n\t\t\t\t\t'foreign' => 'user',\n\t\t\t\t\t'default' => NULL,\n\t\t\t\t\t'allow_null' => TRUE,\n\t\t\t\t)),\n\t\t\t\t'lang' => Jelly::field('BelongsTo', array(\n\t\t\t\t\t'foreign' => 'system_lang',\n\t\t\t\t\t'model' => 'system_lang'\n\t\t\t\t)),\n\n\t\t\t\t'object_id' => Jelly::field('Integer'),\n\n\t\t\t\t'date_create' => Jelly::field('Timestamp', array(\n\t\t\t\t\t'auto_now_create' => TRUE,\n\t\t\t\t)),\n\t\t\t\t'date_update' => Jelly::field('Timestamp', array(\n\t\t\t\t\t'auto_now_update' => TRUE,\n\t\t\t\t\t'default' => NULL,\n\t\t\t\t\t'null' => TRUE,\n\t\t\t\t)),\n\n\t\t\t\t'text' => Jelly::field('Text', array(\n\t\t\t\t\t'empty' => FALSE,\n\t\t\t\t\t'rules' => array(\n\t\t\t\t\t\tarray('not_empty')\n\t\t\t\t\t),\n\t\t\t\t)),\n\n\t\t\t\t'is_active' => Jelly::field('Boolean', array(\n\t\t\t\t\t'default' => TRUE\n\t\t\t\t)),\n\t\t\t))\n\t\t->load_with(array('type', 'author'));\n\n\t\tparent::initialize($meta);\n\t}", "title": "" }, { "docid": "56f4102c03f3dfbcf4b153993e4f206f", "score": "0.5347225", "text": "function myMemCustomFields() { $this->__construct(); }", "title": "" }, { "docid": "88f9dc9566f7cf605eae4e72e33a7f58", "score": "0.53468335", "text": "function usersWhoCommentedThisPost($post_id)\n{\n\t/*\n\t\"commenters\": [\n\t\t\t{\n\t\t\t\t\"id\": \"3\",\n\t\t\t\t\"firstName\": \"John\",\n\t\t\t\t\"lastName\": \"Smith\",\n\t\t\t\t\"avatar\": \"member-default.jpg\",\n\t\t\t\t\"position\": \"Creative Director\",\n\t\t\t\t\"companyName\": \"Wendy Skelton\",\n\t\t\t\t\"userName\": \"John\"\n\t\t\t}\n\t\t]\n\t\t*/\n\n //the defaults starts\n\tglobal $myStaticVars;\n\textract($myStaticVars); // make static vars local\n\t$member_default_avatar \t\t= $member_default_avatar;\n\t$member_default_cover\t\t= $member_default_cover;\n\t$member_default\t\t\t\t= $member_default;\n\t$company_default_cover\t\t= $company_default_cover;\n\t$company_default_avatar\t\t= $company_default_avatar;\n\t$events_default\t\t\t\t= $events_default;\n\t$event_default_poster\t\t= $event_default_poster;\n\t//the defaults ends\n\t\t\n\t$data0= array();\n\t$data= array();\n\t\n\t//SELECT commented_by FROM entrp_user_timeline_post_comments WHERE post_id=1\n\t$qry0=\"SELECT DISTINCT commented_by FROM entrp_user_timeline_post_comments \n\t\t\tWHERE post_id=\".$post_id.\" \";\n\t$res0=getData($qry0);\n $count_res0=mysqli_num_rows($res0);\n\tif($count_res0>0)\n\t{\n\t\twhile($row0=mysqli_fetch_array($res0))\n\t\t{\n\t\t\t$data0[]\t\t=\t$row0['commented_by']; \n\t\t\t\t\t\t\t\n\t\t}\n\t\t$commenters_array = implode(\",\", $data0);\n\t\t\n\t\t$qry=\"SELECT entrp_login.clientid,entrp_login.firstname,entrp_login.lastname,entrp_login.username,\n\t\t\t \t\t client_profile.avatar,client_profile.designation,client_profile.company_name \n\t\t\tFROM entrp_login\n\t\t\tLEFT JOIN client_profile ON entrp_login.clientid=client_profile.clientid\n\t\t\tWHERE entrp_login.clientid IN(\".$commenters_array.\")\n\t \";\n\t\t$res=getData($qry);\n\t $count_res=mysqli_num_rows($res);\n\t if($count_res>0)\n\t {\n\t \t$i=0;\n\t \twhile($row=mysqli_fetch_array($res))\n\t \t{\n\t \t\t$data[$i]['id']\t\t\t=\t$row['clientid'];\n\t \t\t\n\t \t\tif($row['avatar']!='')\n\t\t\t\t{\n\t\t\t\t\t$data[$i]['avatar']\t\t\t\t=\t$row['avatar'];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data[$i]['avatar']\t\t\t\t=\t$member_default_avatar;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($row['firstname']!='')\n\t\t\t\t{\n\t\t\t\t\t$data[$i]['firstName']\t\t\t=\t$row['firstname'];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data[$i]['firstName']\t\t\t=\t'';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($row['lastname']!='')\n\t\t\t\t{\n\t\t\t\t\t$data[$i]['lastName']\t\t\t=\t$row['lastname'];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data[$i]['lastName']\t\t\t=\t'';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($row['username']!='')\n\t\t\t\t{\n\t\t\t\t\t$data[$i]['userName']\t\t\t=\t$row['username'];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data[$i]['userName']\t\t\t=\t'';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($row['designation']!='')\n\t\t\t\t{\n\t\t\t\t\t$data[$i]['position']\t\t\t=\t$row['designation'];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data[$i]['position']\t\t\t=\t'';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$companyId\t\t\t\t\t\t\t\t=\tgetCompanyIDfromUserID($data[$i]['id']);\n\t\t\t\t$data[$i]['companyName'] \t\t\t= getCompanyNameUsingCompUserRelation($companyId);\n\t\t\t\t/*\n\t\t\t\tif($row['company_name']!='')\n\t\t\t\t{\n\t\t\t\t\t$data[$i]['companyName']\t\t=\t$row['company_name'];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$data[$i]['companyName']\t\t=\t'';\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\t$i++;\n\t \t}\t\t \t \n\t }\n\t else\n\t {\n\t\t\t\t$data['id']\t\t\t\t\t=\t'';\n\t\t\t\t$data['firstName']\t\t=\t'';\n\t\t\t\t$data['lastName']\t\t\t=\t'';\n\t\t\t\t$data['avatar']\t\t\t=\t'';\n\t\t\t\t$data['position']\t\t\t=\t'';\n\t\t\t\t$data['companyName']\t\t=\t'';\n\t\t\t\t$data['userName']\t\t\t=\t'';\t\t \n\t }\t\t\n\t}\n\treturn $data;\n}", "title": "" }, { "docid": "659924bb968512e457295d8d856f0383", "score": "0.5338668", "text": "public function jsonSerialize() : array {\n\t\t$fields = get_object_vars($this);\n\n\t\t$fields[\"commentId\"] = $this->commentId->toString();\n\t\t$fields[\"commentAnimalId\"] = $this->commentAnimalId->toString();\n\t\t$fields[\"commentProfileId\"] = $this->commentProfileId->toString();\n\n\t\t//format the date so that the front end can consume it\n\t\t$fields[\"commentDate\"] = round(floatval($this->commentDate->format(\"U.u\")) * 1000);\n\t\treturn($fields);\n\t}", "title": "" }, { "docid": "1861c9689a7f3ea87aea539f900ff184", "score": "0.53341365", "text": "function visum_comments($comment, $args, $depth) {\n\n $GLOBALS['comment'] = $comment;\n\n if (get_comment_type() == 'pingback' || get_comment_type() == 'trackback') : ?>\n\n <?php elseif (get_comment_type() == 'comment') : ?>\n\n <li id=\"comment-<?php comment_ID(); ?>\" <?php comment_class('media') ?>>\n <a class=\"media-left\" href=\"#\">\n <?php \n $avatar_size = 64;\n if ($comment->comment_parent != 0) {\n $avatar_size = 50;\n }\n\n echo get_avatar($comment, $avatar_size);\n ?>\n </a>\n <div class=\"media-body\">\n <h4 class=\"media-heading\"><?php comment_author_link(); ?></h4>\n <p><span><?php comment_date(); ?>, klo <?php comment_time(); ?> - </span><?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?></p>\n <?php if ($comment->comment_approved == '0') : ?>\n <p class=\"awaiting-moderation\">Kommenttisi odottaa hyväksyntää.</p>\n <?php endif; ?>\n <?php comment_text(); ?>\n </div>\n </li>\n\n <?php endif; \n\n }", "title": "" } ]
2e57715875d4ca06c0dddce83f34cd9b
Determine church fund list.
[ { "docid": "68ac144f6e7cafcbbe80c5aab78f2506", "score": "0.6242705", "text": "public static function churchFundList(Request $request){\n $churchfundDetailObj = new \\App\\ChurchFund;\n $input = $request->all();\n $churchfund = $churchfundDetailObj->church_fund_detail($input['churchid']);\n return $churchfund;\n }", "title": "" } ]
[ { "docid": "9c02bcadd1728942db5c1b28713e448f", "score": "0.53328085", "text": "public function getCoupFrancs()\n {\n return $this->coupFrancs;\n }", "title": "" }, { "docid": "0f4984f001e5d8507e3bb8f156aabb99", "score": "0.51088196", "text": "function churchDisplayadd() {\n require 'config.php';\n $SQL_Query_Church = 'SELECT ChurchID, ChurchName, Address, Pastor, Coordinator, MainEmail, CoordEmail, Phone, CoordPhone, ChurchWeb, ChurchStatus FROM church ORDER BY ChurchStatus, ChurchName';\n $display_church = mysqli_query($db, $SQL_Query_Church);\n\n return $display_church;\n }", "title": "" }, { "docid": "a18f7b95c7ef6e3a8717a6a2673e1b1b", "score": "0.49934778", "text": "public function show(Church $church)\n {\n //\n }", "title": "" }, { "docid": "49ba0813d24cf64668f1e7fa0c7d7186", "score": "0.49814114", "text": "function filecabinet_drawers_list() {\n $output = '';\n $sql = \"SELECT w.nid, w.wnid, w.ouid, w.drawer, w.drawerstatus, w.drawerperm FROM {node} n JOIN {org_drawers} w ON w.nid = n.nid WHERE w.vid = n.vid ORDER BY w.ouid, w.drawer\";\n $result = db_query(db_rewrite_sql($sql));\n $ouid = 0;\n while ($drawer = db_fetch_object($result)) {\n if ($drawer->ouid <> $ouid) {\n if ($ouid) {\n $output .= '</ul>';\n }\n // Extract the owner's name\n $sql = \"SELECT u.name FROM {users} u WHERE u.uid = %d\";\n $owner = db_result(db_query($sql, $drawer->ouid));\n $output .= '<p class=\"filecabinet-list\">Drawers owned by ' . $owner . '</p><ul>';\n $ouid = $drawer->ouid;\n }\n // Extract the parent drawer name (if any)\n if ($drawer->wnid) {\n $sql = \"SELECT w.drawer FROM {node} n JOIN {org_drawers} w ON w.nid = n.nid WHERE w.vid = n.vid AND w.nid = %d\";\n $parent = db_result(db_query($sql, $drawer->wnid));\n }\n // Generate a line of listing for this drawer\n $drawer_output = '';\n $drawer_output .= l($drawer->drawer, 'node/' . $drawer->nid) . ' ';\n $drawer_output .= l('[edit]', 'node/' . $drawer->nid . '/edit');\n if ($drawer->wnid) {\n $drawer_output .= ' within drawer ' . l($parent, 'node/' . $drawer->wnid);\n }\n $drawer_output .= ', ' . strtolower($drawer->drawerstatus);\n $drawer_output .= ', ' . strtolower($drawer->drawerperm);\n $output .= '<li>' . $drawer_output . '</li>';\n }\n if ($ouid) {\n $output .= '</ul>';\n }\n // Set page breadcrumb\n orgright_breadcrumb(array(t('Filing cabinet') => 'filecabinet'));\n return $output;\n}", "title": "" }, { "docid": "23cd70515c7e2da5bf8542eb55051199", "score": "0.49595025", "text": "public function getIdChurch()\n {\n return $this->idChurch;\n }", "title": "" }, { "docid": "e58fa420754d9c7a87db31648a6ef667", "score": "0.49359894", "text": "function _fetchFundedBy()\n {\n $this->_fetchProperty(XML_FOAF_NS, 'fundedBy', 'uri');\n }", "title": "" }, { "docid": "59363b20079a06c870ba62ca38342609", "score": "0.48685807", "text": "abstract public function hasFunds();", "title": "" }, { "docid": "bef689f6ef761cc231eb9394605ff7f0", "score": "0.48198792", "text": "public function getTutorrewardsList(){\n return $this->_get(3);\n }", "title": "" }, { "docid": "7b8eaef7ba2ceb8a2414a2ce7ee629a6", "score": "0.47273123", "text": "public function church()\n {\n if ($this->expression == '')\n return [];\n\n return $this->separatePath($this->separateCollection(0));\n }", "title": "" }, { "docid": "3caf44bf34bc7fd57447f658f4ae306e", "score": "0.46974206", "text": "public function getListAffiliation()\n\t{\n\t\t$sql = 'SELECT p FROM MyAppMobileBundle:Affiliations p ORDER BY p.nom_fr ASC';\n\t\t$query = $this->getEntityManager()->createQuery($sql);\n\t\treturn $query->getResult();\n\t}", "title": "" }, { "docid": "4a8292033863c198bdd444ff2670b358", "score": "0.46690565", "text": "public function chair_with_affiliation() {\n $chairs = array();\n foreach ($this->mods->chair as $c) {\n if (isset($c->affiliation))\n $chairs[$c->full] = $c->affiliation;\n else\n $chairs[$c->full] = \"\";\n }\n return $chairs;\n }", "title": "" }, { "docid": "c87d78347cdf9ae34e58b8201f758845", "score": "0.4666447", "text": "function filecabinet_drawers_list_array() {\n // Generate a drawers list\n $output = array();\n $sql = \"SELECT w.nid, w.wnid, w.ouid, w.drawer, w.drawerstatus, w.drawerperm FROM {node} n JOIN {org_drawers} w ON w.nid = n.nid WHERE w.vid = n.vid ORDER BY w.ouid, w.drawer\";\n $result = db_query(db_rewrite_sql($sql));\n $ouid = 0;\n while ($drawer = db_fetch_object($result)) {\n $this_ouid = $drawer->ouid;\n $this_owners_drawers = $output[$this_ouid];\n if (!isset($this_owners_drawers)) {\n $this_owners_drawers = array();\n\n // Extract the owner's name\n $sql = \"SELECT u.name FROM {users} u WHERE u.uid = %d\";\n $owner = db_result(db_query($sql, $drawer->ouid));\n $this_owners_drawers['owner'] = $owner;\n $ouid = $this_ouid;\n\n $this_owners_drawers['drawers'] = array();\n $output[$this_ouid] = $this_owners_drawers;\n }\n $output[$this_ouid]['drawers'][$drawer->drawer] = array();\n\n // Extract the parent drawer name (if any)\n if ($drawer->wnid) {\n $sql = \"SELECT w.drawer FROM {node} n JOIN {org_drawers} w ON w.nid = n.nid WHERE w.vid = n.vid AND w.nid = %d\";\n $parent = db_result(db_query($sql, $drawer->wnid));\n $output[$this_ouid]['drawers'][$drawer->drawer]['parent'] = $parent;\n $output[$this_ouid]['drawers'][$drawer->drawer]['parentId'] = $drawer->wnid;\n }\n $output[$this_ouid]['drawers'][$drawer->drawer]['name'] = $drawer->drawer;\n $output[$this_ouid]['drawers'][$drawer->drawer]['id'] = $drawer->nid;\n\n }\n return $output;\n}", "title": "" }, { "docid": "f3cbc77a60cce4692fc3caab93c9e2ad", "score": "0.4648614", "text": "private static function get_affiliate_referrals( $affiliate_id ) {\n\t\tglobal $wpdb;\n\t\t$referrals_table = _affiliates_get_tablename( 'referrals' );\n\t\t$totals = array();\n\t\t$results = $wpdb->get_results( $wpdb->prepare(\n\t\t\t\"\n\t\t\tSELECT SUM(amount) as total, currency_id\n\t\t\tFROM $referrals_table\n\t\t\tWHERE YEAR(datetime) = YEAR(CURRENT_DATE - INTERVAL 1 MONTH)\n\t\t\tAND MONTH(datetime) = MONTH(CURRENT_DATE - INTERVAL 1 MONTH)\n\t\t\tAND affiliate_id = %d\n\t\t\tAND status = 'accepted'\n\t\t\tGROUP BY currency_id\n\t\t\t\",\n\t\t\t$affiliate_id\n\t\t) );\n\t\tif ( count( $results ) > 0 ) {\n\t\t\tforeach ( $results as $result ) {\n\t\t\t\t$totals[] = array(\n\t\t\t\t\t$result->currency_id => esc_html( affiliates_format_referral_amount( $result->total, 'display' ) )\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\treturn $totals;\n\t}", "title": "" }, { "docid": "37153644bf39061d99ce88fe9df3cb9d", "score": "0.46466282", "text": "function publish_obituary_funeral_for($religion) {\n $raw_for = publish_obituary_funeral_for_at($religion);\n $rel_for_list = array();\n foreach ($raw_for as $rf_key => $rf_value) {\n $rel_for_list[$rf_value['for']] = $rf_value['for'];\n }\n return $rel_for_list;\n}", "title": "" }, { "docid": "f134199e7f5ffb29e91824a3210726a1", "score": "0.4602697", "text": "public function churches()\n { return $this->belongsToMany(Church::class, 'church_user'); }", "title": "" }, { "docid": "d76628e920a89af19dc9ad4d0704cdf4", "score": "0.4565024", "text": "private function scrapeChurch($church_url) {\n\t\t$url = $this->url . $church_url;\n\t\t$response = $this->get($url);\n\t\t$this->church_html = HtmlDomParser::str_get_html($response);\n\t\t$this->saveChurch();\n\t}", "title": "" }, { "docid": "29e2a22ace0d80b0d5ae9a122c3ad436", "score": "0.4554512", "text": "private function format_sort_af($form, $rcpt_acct_af, $date_start, $date_end, $fund=null) {\n // $existing_rcpt = Serial::where('serial_current', '<>', 0)\n // ->where('acctble_form_id', '=', $form)\n // ->where('acct_cat_id', '=', $fund)\n // ->get();\n\n if($fund == 1) {\n // combine BTS and Gen. Fund\n // in Gen. Fund report\n $existing_rcpt = Serial::where('acctble_form_id', '=', $form)\n ->where(function($q) {\n $q->where('acct_cat_id', '=', 1)\n ->orWhere('acct_cat_id', '=', 2);\n })\n ->get();\n } else {\n $existing_rcpt = Serial::where('acctble_form_id', '=', $form)\n ->where('acct_cat_id', '=', $fund)\n ->get();\n }\n\n # list of accountable forms unused\n $rcpt_list = array();\n foreach($existing_rcpt as $er) {\n $after_zero_currnt = Receipt::where('serial_no', $er->serial_end)\n ->where('col_serial_id', $er->id)\n ->first();\n $checkCurrent = Receipt::where('serial_no', $er->serial_current)->first();\n\n if(($er->serial_current == 0 && is_null($after_zero_currnt)) || ($er->serial_current == $er->serial_end && count($after_zero_currnt) > 1) || ($er->serial_current == $er->serial_end && count($checkCurrent) > 0)) {\n continue;\n }\n\n // if($er->serial_current <> 0) {\n if($er->serial_current <> 0 || ($er->serial_current == 0 && Carbon::parse($after_zero_currnt->date_of_entry)->format('Y-m-d') > Carbon::parse($date_end)->format('Y-m-d'))) {\n\n // if(!empty($after_zero_currnt)) {\n // if(($er->serial_current == 0 && Carbon::parse($after_zero_currnt->date_of_entry)->format('Y-m-d') > Carbon::parse($date_end)->format('Y-m-d'))) {\n // continue;\n // }\n // } else if(empty($after_zero_currnt)) {\n // continue;\n // } else if($er->serial_current <> 0) {\n // continue;\n // } else {\n // break;\n // }\n\n if (!array_key_exists($er->id, $rcpt_acct_af)) {\n //last receipt\n // $last_receipt = Receipt::where('report_date','<', $date_start)\n // ->where('col_serial_id','=', $er->id)\n // ->where('is_printed', '=', 1)\n // // ->where('af_type', $rcpt_acct_af)\n // ->orderBy('id','DESC')\n // ->first();\n\n $receipt_before = Receipt::select(db::raw('MAX(serial_no) as last_mnth_issued'))\n // ->whereMonth('report_date','<', Carbon::parse($date_start)->format('m'))\n ->where('report_date','<', Carbon::parse($date_start))\n ->where('col_serial_id','=', $er->id)\n ->where('is_printed', '=', 1)\n ->where('af_type', $form)\n ->orderBy('serial_no', 'ASC')\n ->first();\n\n // $serial_end = $last_receipt ? $last_receipt->serial_no + 1 : $er->serial_current;\n\n // old\n // $beginning_qty = $ending_qty = ($er->serial_end - $serial_end) + 1;\n // $beginning_first = $ending_first = $serial_end;\n // $beginning_last = $ending_last = $er->serial_end;\n\n $beginning_first = $ending_first = count($receipt_before) > 0 && $receipt_before->last_mnth_issued !== null ? $receipt_before->last_mnth_issued + 1 : $er->serial_begin;\n // $beginning_first = $ending_first = $er->serial_begin; \n $beginning_last = $ending_last = $er->serial_end;\n // $beginning_qty = $ending_qty = count($receipt_before) > 0 && $receipt_before->last_mnth_issued != null ? ($er->serial_end - $receipt_before->last_mnth_issued) + 1 : ($er->serial_end - $er->serial_begin) + 1;\n $beginning_qty = ($beginning_last - $beginning_first) + 1;\n $ending_qty = ($ending_last - $ending_first) + 1;\n\n $receipt_qty = '';\n $receipt_first = '';\n $receipt_last = '';\n\n $idx = $er->serial_begin;\n\n\n if (strtotime($er->date_added) == strtotime($date_end)) {\n $receipt_qty = ($er->serial_end - $er->serial_begin) + 1;\n $receipt_first = $er->serial_begin;\n $receipt_last = $er->serial_end;\n\n // $beginning_qty = '';\n // $beginning_first = '';\n // $beginning_last = '';\n }\n\n $issued_qty = '';\n $issued_first = $issued_last = '';\n $src = (isset($er->municipality)) ? $er->municipality->name : '';\n $match = preg_replace('/[0-9]+/', '', $idx);\n\n if($src == $match) {\n $rcpt_acct[$idx] = array(\n 'src' => $src,\n 'beg_qty' => $beginning_qty,\n 'beg_from' => $beginning_first,\n 'beg_to' => $beginning_last,\n 'rec_qty' => $receipt_qty,\n 'rec_from' => $receipt_first,\n 'rec_to' => $receipt_last,\n 'iss_qty' => $issued_qty,\n 'iss_from' => $issued_first,\n 'iss_to' => $issued_last,\n // 'end_qty' => $ending_qty,\n // 'end_from' => $ending_first,\n // 'end_to' => $ending_last,\n 'end_qty' => $ending_qty,\n 'end_from' => $issued_qty > 0 && $issued_qty != '' ? $issued_last + 1 : $ending_first,\n 'end_to' => $ending_last,\n );\n }\n }\n }\n }\n\n # list of accountable forms used\n foreach($rcpt_acct_af as $i => $rcpt) {\n $serial = Serial::whereId($i)->first();\n\n $checkCurrent = Receipt::where('serial_no', $serial->serial_current)->first();\n if($serial->serial_current == $serial->serial_end && count($checkCurrent) > 0) {\n continue;\n }\n\n $src = (isset($serial->municipality)) ? $serial->municipality->name : '';\n sort($rcpt['serials']);\n\n $receipt_first = '';\n $receipt_last = '';\n $receipt_qty = '';\n\n $receipt_before = Receipt::select(db::raw('MAX(serial_no) as last_mnth_issued'))\n // ->whereMonth('report_date','<', Carbon::parse($date_start)->format('m'))\n ->where('report_date','<', Carbon::parse($date_start))\n ->where('col_serial_id','=', $serial->id)\n ->where('is_printed', '=', 1)\n ->where('af_type', $form)\n ->orderBy('serial_no', 'ASC')\n ->first();\n\n $receipts_min = Receipt::select(db::raw('MIN(serial_no) as min_serial_no'))\n ->where('report_date','>=', $date_start)\n ->where('report_date','<=', $date_end)\n ->where('col_serial_id','=', $serial->id)\n ->where('is_printed', '=', 1)\n ->where('af_type', $form)\n ->orderBy('serial_no', 'ASC')\n ->get();\n\n $receipts_max = Receipt::select(db::raw('MAX(serial_no) as max_serial_no'))\n ->where('report_date','>=', $date_start)\n ->where('report_date','<=', $date_end)\n ->where('col_serial_id','=', $serial->id)\n ->where('is_printed', '=', 1)\n ->where('af_type', $form)\n ->orderBy('serial_no', 'ASC')\n ->get();\n\n $issued_first = $receipts_min[0]->min_serial_no;\n $issued_last = $receipts_max[0]->max_serial_no;\n $issued_qty = ($issued_last - $issued_first) + 1 ;\n\n $gt_et_start = true;\n $lt_et_end = (strtotime($serial->date_added) == strtotime($date_end));\n if ($form == 2) {\n # For Form 56\n $idx = $serial->municipality->name . $serial->serial_begin;\n } else {\n # Form 51\n $idx = $serial->serial_begin;\n }\n\n // $beginning_first = $issued_first;\n // $beginning_last = $serial->serial_end;\n // $beginning_qty = ($beginning_last - $beginning_first) + 1;\n\n $beginning_first = $ending_first = count($receipt_before) > 0 && $receipt_before->last_mnth_issued !== null ? $receipt_before->last_mnth_issued + 1 : $serial->serial_begin;\n // $beginning_first = $ending_first = $serial->serial_begin; \n $beginning_last = $ending_last = $serial->serial_end;\n $beginning_qty = ($beginning_last - $beginning_first) + 1;\n\n if ($gt_et_start && $lt_et_end) {\n $receipt_first = $serial->serial_begin;\n $receipt_last = $serial->serial_end;\n $receipt_qty = ($receipt_last - $receipt_first) + 1;\n\n // $beginning_first = '';\n // $beginning_last = '';\n // $beginning_qty = '';\n }\n\n // $ending_first = '';\n // $ending_last = '';\n // $ending_qty = '';\n\n // if ($serial->serial_current != 0 || ($serial->serial_current == 0 && $serial->updated_at <= $date_start && $serial->updated_at <= $date_end)) {\n if ($serial->serial_current != 0 || $issued_last != 0) { // 5996650\n // old\n // $ending_first = $issued_last == $serial->serial_end ? $issued_last : $issued_last + 1;\n // $ending_last = $serial->serial_end;\n // $ending_qty = $issued_last == $serial->serial_end ? '0' : ($ending_last - $ending_first) + 1;\n\n $beginning_first = count($receipt_before) > 0 && $receipt_before->last_mnth_issued !== null ? intval($receipt_before->last_mnth_issued) + 1 : $serial->serial_begin;\n $beginning_qty = (intval($beginning_last) - intval($beginning_first)) + 1;\n // $issued_last = $serial->serial_end == $issued_last ? $issued_last : intval($issued_last) + 1;\n $ending_last = $serial->serial_end;\n // $ending_first = $issued_qty > 0 && $issued_qty != '' ? ($issued_last == $serial->serial_end ? $issued_last : $issued_last + 1) : (count($receipt_before) > 0 && $receipt_before->last_mnth_issued !== null ? $receipt_before->last_mnth_issued + 1 : $serial->serial_begin);\n $ending_first = $issued_last == $serial->serial_end ? $issued_last : $issued_last + 1;\n } \n $ending_qty = $ending_last == $issued_last ? 0 : ($ending_last - $ending_first) + 1;\n\n $rcpt_acct[$idx] = array(\n 'src' => $src,\n 'beg_qty' => $beginning_qty,\n 'beg_from' => $beginning_first,\n 'beg_to' => $beginning_last,\n 'rec_qty' => $receipt_qty,\n 'rec_from' => $receipt_first,\n 'rec_to' => $receipt_last,\n 'iss_qty' => $issued_qty,\n 'iss_from' => $issued_first,\n 'iss_to' => $issued_last,\n 'end_qty' => $ending_qty,\n 'end_from' => $ending_first,\n 'end_to' => $ending_last,\n );\n }\n ksort($rcpt_acct);\n return $rcpt_acct;\n }", "title": "" }, { "docid": "4aa20e02c5c9740f1939908f7eb59d47", "score": "0.45362943", "text": "function hrb_get_transfer_funds_url() {\n\treturn get_permalink( HRB_Escrow_Transfer::get_id() );\n}", "title": "" }, { "docid": "ebc9d780df8568860d1ded2e1d7be228", "score": "0.45206818", "text": "public function setDebut_affichage($debut_affichage)\n {\n $this->debut_affichage = $debut_affichage;\n\n return $this;\n }", "title": "" }, { "docid": "cdc8f983bc60d0ee2e2855e597548ee3", "score": "0.45028815", "text": "function publish_obituary_funeral_for_user($religion) {\n $raw_for = publish_obituary_funeral_for_at($religion);\n $rel_for_list = array();\n foreach ($raw_for as $rf_key => $rf_value) {\n $rel_for_list[strtolower($rf_value['for'])] = $rf_value['for'];\n }\n return $rel_for_list;\n}", "title": "" }, { "docid": "5bf1380a2427fe9f002bd897840026ca", "score": "0.45021075", "text": "public function fourni_list()\n {\n $data[\"fournisseurs\"]=$this->fournisseur->fourniList();\n $this->templates->display('fourni_list', $data);\n }", "title": "" }, { "docid": "e60a64b8cecde593a05cfa8ba6c2383e", "score": "0.44955665", "text": "static function showCentral() {\n global $DB,$CFG_GLPI;\n\n if (!Contract::canView()) {\n return;\n }\n\n // No recursive contract, not in local management\n // contrats echus depuis moins de 30j\n $table = self::getTable();\n $result = $DB->request([\n 'COUNT' => 'cpt',\n 'FROM' => $table,\n 'WHERE' => [\n 'is_deleted' => 0,\n new \\QueryExpression('DATEDIFF(ADDDATE(' . $DB->quoteName(\"begin_date\") . ', INTERVAL ' . $DB->quoteName(\"duration\").' MONTH),CURDATE())>-30'),\n new \\QueryExpression('DATEDIFF(ADDDATE(' . $DB->quoteName(\"begin_date\") . ', INTERVAL ' . $DB->quoteName(\"duration\").' MONTH),CURDATE())<0')\n ] + getEntitiesRestrictCriteria($table)\n ])->next();\n $contract0 = $result['cpt'];\n\n // contrats echeance j-7\n $result = $DB->request([\n 'COUNT' => 'cpt',\n 'FROM' => $table,\n 'WHERE' => [\n 'is_deleted' => 0,\n new \\QueryExpression('DATEDIFF(ADDDATE(' . $DB->quoteName(\"begin_date\") . ', INTERVAL ' . $DB->quoteName(\"duration\").' MONTH),CURDATE())>0'),\n new \\QueryExpression('DATEDIFF(ADDDATE(' . $DB->quoteName(\"begin_date\") . ', INTERVAL ' . $DB->quoteName(\"duration\").' MONTH),CURDATE())<=7')\n ] + getEntitiesRestrictCriteria($table)\n ])->next();\n $contract7 = $result['cpt'];\n\n // contrats echeance j -30\n $result = $DB->request([\n 'COUNT' => 'cpt',\n 'FROM' => $table,\n 'WHERE' => [\n 'is_deleted' => 0,\n new \\QueryExpression('DATEDIFF(ADDDATE(' . $DB->quoteName(\"begin_date\") . ', INTERVAL ' . $DB->quoteName(\"duration\").' MONTH),CURDATE())>7'),\n new \\QueryExpression('DATEDIFF(ADDDATE(' . $DB->quoteName(\"begin_date\") . ', INTERVAL ' . $DB->quoteName(\"duration\").' MONTH),CURDATE())<30')\n ] + getEntitiesRestrictCriteria($table)\n ])->next();\n $contract30 = $result['cpt'];\n\n // contrats avec pr??avis echeance j-7\n $result = $DB->request([\n 'COUNT' => 'cpt',\n 'FROM' => $table,\n 'WHERE' => [\n 'is_deleted' => 0,\n 'notice' => ['<>', 0],\n new \\QueryExpression('DATEDIFF(ADDDATE(' . $DB->quoteName(\"begin_date\") . ', INTERVAL (' . $DB->quoteName(\"duration\").'-' . $DB->quoteName('notice') . ') MONTH),CURDATE())>0'),\n new \\QueryExpression('DATEDIFF(ADDDATE(' . $DB->quoteName(\"begin_date\") . ', INTERVAL (' . $DB->quoteName(\"duration\").'-' . $DB->quoteName('notice') . ') MONTH),CURDATE())<=7')\n ] + getEntitiesRestrictCriteria($table)\n ])->next();\n $contractpre7 = $result['cpt'];\n\n // contrats avec pr??avis echeance j -30\n $result = $DB->request([\n 'COUNT' => 'cpt',\n 'FROM' => $table,\n 'WHERE' => [\n 'is_deleted' => 0,\n 'notice' => ['<>', 0],\n new \\QueryExpression('DATEDIFF(ADDDATE(' . $DB->quoteName(\"begin_date\") . ', INTERVAL (' . $DB->quoteName(\"duration\").'-' . $DB->quoteName('notice') . ') MONTH),CURDATE())>7'),\n new \\QueryExpression('DATEDIFF(ADDDATE(' . $DB->quoteName(\"begin_date\") . ', INTERVAL (' . $DB->quoteName(\"duration\").'-' . $DB->quoteName('notice') . ') MONTH),CURDATE())<30')\n ] + getEntitiesRestrictCriteria($table)\n ])->next();\n $contractpre30 = $result['cpt'];\n\n echo \"<table class='tab_cadrehov'>\";\n echo \"<tr class='noHover'><th colspan='2'>\";\n echo \"<a href=\\\"\".$CFG_GLPI[\"root_doc\"].\"/front/contract.php?reset=reset\\\">\".\n self::getTypeName(1).\"</a></th></tr>\";\n\n echo \"<tr class='tab_bg_2'>\";\n $options = [\n 'reset' => 'reset',\n 'sort' => 12,\n 'order' => 'DESC',\n 'start' => 0,\n 'criteria' => [\n [\n 'field' => 12,\n 'value' => '<0',\n 'searchtype' => 'contains',\n ],\n [\n 'field' => 12,\n 'link' => 'AND',\n 'value' => '>-30',\n 'searchtype' => 'contains',\n ]\n ]\n ];\n echo \"<td><a href=\\\"\".$CFG_GLPI[\"root_doc\"].\"/front/contract.php?\".\n Toolbox::append_params($options, '&amp;').\"\\\">\".\n __('Contracts expired in the last 30 days').\"</a> </td>\";\n echo \"<td class='numeric'>\".$contract0.\"</td></tr>\";\n\n echo \"<tr class='tab_bg_2'>\";\n $options['criteria'][0]['value'] = '>0';\n $options['criteria'][1]['value'] = '<7';\n echo \"<td><a href=\\\"\".$CFG_GLPI[\"root_doc\"].\"/front/contract.php?\".\n Toolbox::append_params($options, '&amp;').\"\\\">\".\n __('Contracts expiring in less than 7 days').\"</a></td>\";\n echo \"<td class='numeric'>\".$contract7.\"</td></tr>\";\n\n echo \"<tr class='tab_bg_2'>\";\n $options['criteria'][0]['value'] = '>6';\n $options['criteria'][1]['value'] = '<30';\n echo \"<td><a href=\\\"\".$CFG_GLPI[\"root_doc\"].\"/front/contract.php?\".\n Toolbox::append_params($options, '&amp;').\"\\\">\".\n __('Contracts expiring in less than 30 days').\"</a></td>\";\n echo \"<td class='numeric'>\".$contract30.\"</td></tr>\";\n\n echo \"<tr class='tab_bg_2'>\";\n $options['criteria'][0]['field'] = 13;\n $options['criteria'][0]['value'] = '>0';\n $options['criteria'][1]['field'] = 13;\n $options['criteria'][1]['value'] = '<7';\n\n echo \"<td><a href=\\\"\".$CFG_GLPI[\"root_doc\"].\"/front/contract.php?\".\n Toolbox::append_params($options, '&amp;').\"\\\">\".\n __('Contracts where notice begins in less than 7 days').\"</a></td>\";\n echo \"<td class='numeric'>\".$contractpre7.\"</td></tr>\";\n\n echo \"<tr class='tab_bg_2'>\";\n $options['criteria'][0]['value'] = '>6';\n $options['criteria'][1]['value'] = '<30';\n echo \"<td><a href=\\\"\".$CFG_GLPI[\"root_doc\"].\"/front/contract.php?\".\n Toolbox::append_params($options, '&amp;').\"\\\">\".\n __('Contracts where notice begins in less than 30 days').\"</a></td>\";\n echo \"<td class='numeric'>\".$contractpre30.\"</td></tr>\";\n echo \"</table>\";\n }", "title": "" }, { "docid": "c8fbd293dc95f8cb8822612023ab8ddb", "score": "0.44950953", "text": "function get_signups($district, $bronto, $conn)\n{\n // * the senator's personal list:\n //\n // list.id=senator.list_id\n //\n // * committee lists for committies the senator is a chair of:\n //\n // LEFT JOIN committee ON senator.nid=committee.chair_nid\n // list.id=committee.list_id\n //\n // * the general New York Senate Updates list when the person is in district\n //\n // list.title='New York Senate Updates'\n // person.district=senator.district\n //\n // All fields are custom-named, since reflection is used on the result\n // to generate the worksheet headers.\n\n $sql = \"SELECT 'FALSE' AS `In Bluebird`,\n person.first_name AS `First Name`,\n person.last_name AS `Last Name`,\n person.email AS `Email Address`,\n person.address1 AS `Street Address`,\n person.address2 AS `Supplemental Address`,\n person.city AS `City`,\n person.state AS `State`,\n person.zip AS `Postal Code`,\n person.phone AS `Phone`,\n GROUP_CONCAT(DISTINCT issue.name ORDER BY issue.name ASC SEPARATOR '|') as `Issues`,\n list.title as `Source List`,\n person.district as `District`,\n '' AS `In District`,\n person.nid AS ID,\n person.created AS `Signup Date`\n FROM person\n JOIN signup ON signup.person_id=person.id\n JOIN list ON list.id=signup.list_id\n JOIN senator ON senator.district=$district\n LEFT JOIN committee ON senator.nid=committee.chair_nid\n LEFT JOIN subscription ON subscription.person_id=person.id\n LEFT JOIN issue ON issue.id=subscription.issue_id\n WHERE (list.id=senator.list_id OR list.id=committee.list_id OR (list.title='New York Senate Updates' AND person.district=senator.district))\n AND signup.reported=0\n AND senator.active=1\n AND ( committee.active=1 OR committee.active is NULL )\n AND person.bronto=\".(($bronto)?'1':'0').\"\n GROUP BY person.id\n ORDER BY `Signup Date` asc\";\n\n if (!$result = mysql_query($sql, $conn)) {\n die(mysql_error($conn).\"\\n\".$sql.\"\\n\");\n }\n\n return $result;\n}", "title": "" }, { "docid": "8f196535106ad4fbd6f4be9376a3374e", "score": "0.44932973", "text": "public function getUnicefFundDetailsData($unicef_fund_id = null){\n\t\tif($unicef_fund_id) {\n\t\t\t$sql = \"\n\t\t\t\tSELECT\n\t\t\t\t\tuncef_fund_details.id,\n\t\t\t\t\tuncef_fund_details.acc_id,\n\t\t\t\t\tuncef_fund_details.acc_code,\n\t\t\t\t\tuncef_fund_details.unicef_fund_id,\n\t\t\t\t\tuncef_fund_details.qty,\n\t\t\t\t\tuncef_fund_details.no_of_month,\n\t\t\t\t\tacc_head.acc_head,\n\t\t\t\t\tacc_head.unit,\n\t\t\t\t\tbudget_details.unit_cost\n\t\t\t\tFROM\n\t\t\t\t\t`uncef_fund_details`\n\t\t\t\tLEFT JOIN acc_head ON acc_head.id = uncef_fund_details.acc_id\n\t\t\t\tLEFT JOIN budget_details ON budget_details.acc_id = uncef_fund_details.acc_id\n\t\t\t\tWHERE\n\t\t\t\t\tuncef_fund_details.unicef_fund_id = ? AND budget_details.budget_id =(\n\t\t\t\t\tSELECT\n\t\t\t\t\t\tbudget_master.budget_id\n\t\t\t\t\tFROM\n\t\t\t\t\t\tbudget_master\n\t\t\t\t\tWHERE\n\t\t\t\t\t\tbudget_master.status = 0\n\t\t\t\t)\n\t\t\t\";\n\t\t\t$query = $this->db->query($sql, array($unicef_fund_id));\n\t\t\treturn $query->result_array();\n\t\t}\n\n\t\t\n\t}", "title": "" }, { "docid": "2490b5d7e2c3351624afd9dfa57d4db0", "score": "0.44642565", "text": "function authorList($ref,$user,$cv_item,$fa_field,$co_field,$role=1,$target='report'){\r\n global $db;\r\n if(($role==1 || $role==4 || $role==6 || $role==7) && ($cv_item[$fa_field]=='' || $cv_item[$fa_field]=='|' )) //First listed Author or presenter or moderator\r\n //Then we ignore the first listed author field and use the username\r\n $ref['firstauthor']=$user['last_name'] . ', '. getInitials($user['first_name']);\r\n else { // Must be a co_author or something else - use the field\r\n if($cv_item[$fa_field]=='' && $target=='screen') $ref['firstauthor']=\"<font color='red'>FIRST AUTHOR</font>\";\r\n\r\n else $ref['firstauthor'] = formatName($cv_item[$fa_field],true);\r\n //$firstauth=explode('|',$cv_item[$fa_field]);\r\n //if(!isset($firstauth[0])) $ref['firstauthor']=''; // nothing there\r\n //elseif(!isset($firstauth[1])) $ref['firstauthor']=$firstauth[0]; // no first name\r\n //else $ref['firstauthor']=$firstauth[0] . ', '. getInitials($firstauth[1]);\r\n }\r\n $sql=\"SELECT * FROM `cas_sub_coauthors` WHERE `cv_item_id`='$cv_item[cv_item_id]' AND `fieldname`='$co_field' ORDER BY `order`\";\r\n $authors=$db->getAll($sql);\r\n if(count($authors) > 0){\r\n foreach($authors as $author){\r\n\r\n $ref['authors'][]=($author['firstname']!='') ? $author['lastname'] . ', '. getInitials($author['firstname']) : $author['lastname'];\r\n }\r\n }//count\r\n return $ref;\r\n }", "title": "" }, { "docid": "41876cc329c1a16861638f497bca336f", "score": "0.4445791", "text": "public function getFeeList()\n {\n if ($this->_fields['FeeList']['FieldValue'] == null)\n {\n $this->_fields['FeeList']['FieldValue'] = array();\n }\n return $this->_fields['FeeList']['FieldValue'];\n }", "title": "" }, { "docid": "4e375ad37c8e09f9bbf8fa18e7fd491e", "score": "0.44456816", "text": "public function getRefundedSurcharges(): ?array\n {\n if (count($this->refundedSurcharges) == 0) {\n return null;\n }\n return $this->refundedSurcharges['value'];\n }", "title": "" }, { "docid": "f0d90460f91c83e5a464684ecaaa9cb1", "score": "0.44366077", "text": "function isco88com_occupations_list_F_fr_FR() {\r\n return array(\r\n \"i73121\" => \"Accordeuse d'instruments de musique\",\r\n \"i34160\" => \"Acheteuse\",\r\n \"i34742\" => \"Acrobate\",\r\n \"i24552\" => \"Actrice\",\r\n \"i72242\" => \"Affûteuse\",\r\n \"i34311\" => \"Agente administrative\",\r\n \"i34290\" => \"Agente commerciale\",\r\n \"i34220\" => \"Agente concessionnaire\",\r\n \"i42221\" => \"Agente d'accueil\",\r\n \"i51110\" => \"Agente d'accueil de voyage et steward\",\r\n \"i34120\" => \"Agente d'assurance\",\r\n \"i91620\" => \"Agente d'entretien\",\r\n \"i34230\" => \"Agente d'établissement de contrats d'emploi et de recrutement de main-d'œuvre\",\r\n \"i83122\" => \"Agente de manoeuvre\",\r\n \"i91320\" => \"Agente de nettoyage (bureaux, hôtels et autres établissement)\",\r\n \"i51430\" => \"Agente de pompes funèbres\",\r\n \"i91410\" => \"Agente de service d'immeuble\",\r\n \"i51690\" => \"Agente de sécurité\",\r\n \"i34140\" => \"Agente de voyages\",\r\n \"i34440\" => \"Agente des services publics des permis et des licences\",\r\n \"i34430\" => \"Agente des services sociaux publics\",\r\n \"i34130\" => \"Agente immobilière\",\r\n \"i34151\" => \"Agente technicocommerciale\",\r\n \"i61110\" => \"Agricultrice (cultures de plein champ et maraîchères)\",\r\n \"i61140\" => \"Agricultrice (cultures mixtes)\",\r\n \"i61300\" => \"Agricultrice (polyculture et élevage destinés aux marchés)\",\r\n \"i22130\" => \"Agronome\",\r\n \"i51320\" => \"Aide-soignante en institution\",\r\n \"i51330\" => \"Aide-soignante à domicile\",\r\n \"i83121\" => \"Aiguilleuse\",\r\n \"i72420\" => \"Ajusteuse d'appareils électroniques\",\r\n \"i21312\" => \"Analyste de systèmes informatiques\",\r\n \"i24421\" => \"Anthropologue\",\r\n \"i61230\" => \"Apicultrice\",\r\n \"i61510\" => \"Aquacultrice\",\r\n \"i61120\" => \"Arboricultrice\",\r\n \"i21490\" => \"Architecte\",\r\n \"i24310\" => \"Archiviste paléographe\",\r\n \"i73310\" => \"Artisane sur bois et materiaux similaires\",\r\n \"i73321\" => \"Artisane sur cuir\",\r\n \"i73320\" => \"Artisane sur textile\",\r\n \"i82901\" => \"Assembleuse\",\r\n \"i82850\" => \"Assembleuse d'articles en bois et en matières similaires\",\r\n \"i82860\" => \"Assembleuse d'articles en carton, en textile et en matières similaires\",\r\n \"i82840\" => \"Assembleuse d'articles en métal, en caoutchouc et en matières plastiques\",\r\n \"i72451\" => \"Assembleuse de câbles\",\r\n \"i32280\" => \"Assistante / préparatrice en pharmacie\",\r\n \"i32251\" => \"Assistante dentaire\",\r\n \"i34341\" => \"Assistante du secteur des mathématiques\",\r\n \"i34340\" => \"Assistante du secteur des statistiques\",\r\n \"i34190\" => \"Assistante du secteur finances et ventes\",\r\n \"i31210\" => \"Assistante informaticienne\",\r\n \"i34320\" => \"Assistante juridique\",\r\n \"i34800\" => \"Assistante laïque des cultes\",\r\n \"i32210\" => \"Assistante médical\",\r\n \"i32270\" => \"Assistante vétérinaire\",\r\n \"i51510\" => \"Astrologue\",\r\n \"i21111\" => \"Astronome\",\r\n \"i34750\" => \"Athlète\",\r\n \"i24510\" => \"Auteure\",\r\n \"i33400\" => \"Auxiliaire d'éducation\",\r\n \"i33100\" => \"Auxiliaire d'éducation (enseignement primaire)\",\r\n \"i33200\" => \"Auxiliaire d'éducation (enseignement préprimaire)\",\r\n \"i33300\" => \"Auxiliaire d'éducation des handicapés\",\r\n \"i61220\" => \"Avicultrice\",\r\n \"i24210\" => \"Avocate\",\r\n \"i42141\" => \"Bailleuse de fonds\",\r\n \"i51231\" => \"Barmaid\",\r\n \"i24320\" => \"Bibiliothécaire\",\r\n \"i42111\" => \"Billetiste\",\r\n \"i22110\" => \"Biologiste\",\r\n \"i91330\" => \"Blanchisseuse et repasseuse de linge à la main\",\r\n \"i42130\" => \"Bookmaker\",\r\n \"i22111\" => \"Botaniste\",\r\n \"i74110\" => \"Bouchère\",\r\n \"i74120\" => \"Boulangère\",\r\n \"i71120\" => \"Boutefeu\",\r\n \"i74361\" => \"Brodeuse\",\r\n \"i74241\" => \"Brossière\",\r\n \"i24110\" => \"Cadre comptable\",\r\n \"i12390\" => \"Cadre de direction\",\r\n \"i12351\" => \"Cadre de direction, achats\",\r\n \"i12350\" => \"Cadre de direction, achats et distribution\",\r\n \"i12210\" => \"Cadre de direction, agriculture\",\r\n \"i12215\" => \"Cadre de direction, bâtiment et travaux publics\",\r\n \"i12211\" => \"Cadre de direction, chasse\",\r\n \"i12241\" => \"Cadre de direction, commerce de détail\",\r\n \"i12262\" => \"Cadre de direction, communications\",\r\n \"i12352\" => \"Cadre de direction, distribution\",\r\n \"i12261\" => \"Cadre de direction, entreposage\",\r\n \"i12263\" => \"Cadre de direction, entreprises d'intermédiation et de service aux entreprises\",\r\n \"i12251\" => \"Cadre de direction, hôtellerie\",\r\n \"i12214\" => \"Cadre de direction, industries manufacturières\",\r\n \"i12332\" => \"Cadre de direction, marketing\",\r\n \"i12320\" => \"Cadre de direction, personnel\",\r\n \"i12341\" => \"Cadre de direction, publicité\",\r\n \"i12213\" => \"Cadre de direction, pêche\",\r\n \"i12370\" => \"Cadre de direction, recherche et développement\",\r\n \"i12321\" => \"Cadre de direction, relations professionnelles\",\r\n \"i12342\" => \"Cadre de direction, relations publiques\",\r\n \"i12250\" => \"Cadre de direction, restauration\",\r\n \"i12310\" => \"Cadre de direction, services administratifs et financiers\",\r\n \"i12281\" => \"Cadre de direction, services de nettoyage\",\r\n \"i12280\" => \"Cadre de direction, services de soins personnels\",\r\n \"i12311\" => \"Cadre de direction, services financiers\",\r\n \"i12360\" => \"Cadre de direction, services informatiques\",\r\n \"i12212\" => \"Cadre de direction, sylviculture\",\r\n \"i12260\" => \"Cadre de direction, transports, entreposage et communications\",\r\n \"i12331\" => \"Cadre de direction, ventes\",\r\n \"i12330\" => \"Cadre de direction, ventes et commercialisation\",\r\n \"i12240\" => \"Cadre de direction. commerce de gros\",\r\n \"i22300\" => \"Cadre infirmière\",\r\n \"i22301\" => \"Cadre sage-femme\",\r\n \"i11200\" => \"Cadre supérieur de l'administration publique\",\r\n \"i12340\" => \"Cadres de direction, publicité et relations publiques\",\r\n \"i42110\" => \"Caissière\",\r\n \"i34111\" => \"Cambiste\",\r\n \"i71321\" => \"Carreleuse\",\r\n \"i71111\" => \"Carrière\",\r\n \"i21480\" => \"Cartographe\",\r\n \"i34731\" => \"Chanteuse\",\r\n \"i74332\" => \"Chapelière\",\r\n \"i61420\" => \"Charbonnière en charbon de bois\",\r\n \"i72140\" => \"Charpentière métallière\",\r\n \"i71240\" => \"Charpentière sur bois\",\r\n \"i61540\" => \"Chasseuse\",\r\n \"i83220\" => \"Chauffeuse\",\r\n \"i81620\" => \"Chauffeuse de machines à vapeur et de chaudières\",\r\n \"i83221\" => \"Chauffeuse de taxi\",\r\n \"i21130\" => \"Chimiste\",\r\n \"i51521\" => \"Chiromancienne\",\r\n \"i24540\" => \"Chorégraphe\",\r\n \"i91200\" => \"Cireuse de chaussures\",\r\n \"i71132\" => \"Ciseleuse de pierre\",\r\n \"i41411\" => \"Classeuse-archiviste\",\r\n \"i73421\" => \"Clicheuse-galvanoplaste\",\r\n \"i34740\" => \"Clown\",\r\n \"i41430\" => \"Codeuse\",\r\n \"i51410\" => \"Coiffeuse\",\r\n \"i51411\" => \"Coiffeuse pour hommes\",\r\n \"i24530\" => \"Compositrice\",\r\n \"i73410\" => \"Compositrice typographe\",\r\n \"i34330\" => \"Comptable\",\r\n \"i21311\" => \"Conceptrice de systèmes informatiques\",\r\n \"i21310\" => \"Conceptrice et analyste de systèmes informatiques\",\r\n \"i82780\" => \"Conducteur de machines de brasserie et de machines pour la fabrication du vin et d'autres boissons\",\r\n \"i81540\" => \"Conductrice d'appareils de distillation\",\r\n \"i81530\" => \"Conductrice d'appareils de filtrage et de séparation chimiques\",\r\n \"i81520\" => \"Conductrice d'appareils de traitement thermique de la chimie\",\r\n \"i83230\" => \"Conductrice d'autobus\",\r\n \"i83320\" => \"Conductrice d'engins de terrassement\",\r\n \"i81630\" => \"Conductrice d'incinérateur\",\r\n \"i81510\" => \"Conductrice d'installations de fragmentation et de broyage\",\r\n \"i81511\" => \"Conductrice d'installations de malaxage chimique\",\r\n \"i81110\" => \"Conductrice d'installations de mine\",\r\n \"i81610\" => \"Conductrice d'installations de production d'énergie\",\r\n \"i81120\" => \"Conductrice d'installations de préparation des minerais et de la roche\",\r\n \"i81551\" => \"Conductrice d'installations de raffinage de gaz naturel\",\r\n \"i81550\" => \"Conductrice d'installations de raffinage de pétrole\",\r\n \"i81590\" => \"Conductrice d'installations de traitement chimique\",\r\n \"i81631\" => \"Conductrice d'installations de traitement de l'eau\",\r\n \"i81230\" => \"Conductrice d'installations de traitement thermique des métaux\",\r\n \"i81390\" => \"Conductrice d'installations de verrerie et de céramique\",\r\n \"i81420\" => \"Conductrice d'installations pour la fabrication de la pâte à papier\",\r\n \"i81430\" => \"Conductrice d'installations pour la fabrication du papier\",\r\n \"i81410\" => \"Conductrice d'installations pour le travail du bois\",\r\n \"i83222\" => \"Conductrice de camionnette\",\r\n \"i83241\" => \"Conductrice de camions\",\r\n \"i83340\" => \"Conductrice de chariots élévateurs\",\r\n \"i81710\" => \"Conductrice de chaînes de montage automatiques\",\r\n \"i81220\" => \"Conductrice de fours de deuxième fusion des métaux\",\r\n \"i81211\" => \"Conductrice de fours de première fusion des métaux\",\r\n \"i81310\" => \"Conductrice de fours de verrerie et de céramique\",\r\n \"i81210\" => \"Conductrice de fours à minerais\",\r\n \"i83331\" => \"Conductrice de grues, d'engins de levage divers et de matériels similaires\",\r\n \"i81222\" => \"Conductrice de laminoirs\",\r\n \"i83110\" => \"Conductrice de locomotive\",\r\n \"i82900\" => \"Conductrice de machines\",\r\n \"i82640\" => \"Conductrice de machines a blanchir, à teindre et à nettoyer\",\r\n \"i82510\" => \"Conductrice de machines d'imprimerie\",\r\n \"i82530\" => \"Conductrice de machines de papeterie\",\r\n \"i82110\" => \"Conductrice de machines outils\",\r\n \"i82691\" => \"Conductrice de machines pour la fabrication d'articles en fourrure et en cuir\",\r\n \"i82221\" => \"Conductrice de machines pour la fabrication d'explosifs\",\r\n \"i82220\" => \"Conductrice de machines pour la fabrication de munitions\",\r\n \"i82211\" => \"Conductrice de machines pour la fabrication de produits cosmétiques\",\r\n \"i82210\" => \"Conductrice de machines pour la fabrication de produits pharmaceutiques\",\r\n \"i82240\" => \"Conductrice de machines pour la fabrication de produits photographiques\",\r\n \"i82690\" => \"Conductrice de machines pour la fabrication de produits textiles\",\r\n \"i82660\" => \"Conductrice de machines pour la fabrication des chaussures et assimilés\",\r\n \"i82290\" => \"Conductrice de machines pour la fabrication des produits chimiques\",\r\n \"i82310\" => \"Conductrice de machines pour la fabrication des produits en caoutchouc\",\r\n \"i82320\" => \"Conductrice de machines pour la fabrication des produits en matières plastiques\",\r\n \"i82720\" => \"Conductrice de machines pour la fabrication des produits laitiers\",\r\n \"i82740\" => \"Conductrice de machines pour la production d'articles de boulangerie-pâtisserie et de chocolaterie\",\r\n \"i82760\" => \"Conductrice de machines pour la production du sucre\",\r\n \"i82790\" => \"Conductrice de machines pour la production du tabac\",\r\n \"i82710\" => \"Conductrice de machines pour la préparation des viandes et du poisson\",\r\n \"i82750\" => \"Conductrice de machines pour le traitement des fruits, des légumes, des noix et des amandes\",\r\n \"i82770\" => \"Conductrice de machines pour le traitement du thé, du café et du cacao\",\r\n \"i82612\" => \"Conductrice de machines à bobiner\",\r\n \"i82400\" => \"Conductrice de machines à bois\",\r\n \"i82121\" => \"Conductrice de machines à fabriquer des produits minéraux\",\r\n \"i82120\" => \"Conductrice de machines à fabriquer du ciment\",\r\n \"i82611\" => \"Conductrice de machines à filer\",\r\n \"i82730\" => \"Conductrice de machines à moudre les céréales et les épices\",\r\n \"i82630\" => \"Conductrice de machines à piquer\",\r\n \"i82610\" => \"Conductrice de machines à préparer les fibres\",\r\n \"i82650\" => \"Conductrice de machines à préparer les fourrures et le cuir\",\r\n \"i82520\" => \"Conductrice de machines à relier\",\r\n \"i83310\" => \"Conductrice de matériels motorisés agricoles\",\r\n \"i83311\" => \"Conductrice de matériels motorisés forestiers\",\r\n \"i83210\" => \"Conductrice de motocycles\",\r\n \"i82620\" => \"Conductrice de métiers mécaniques à tisser et à tricoter\",\r\n \"i83240\" => \"Conductrice de poids lourds\",\r\n \"i72212\" => \"Conductrice de presse à forger\",\r\n \"i81720\" => \"Conductrice de robots industriels\",\r\n \"i81541\" => \"Conductrice de réacteurs chimiques\",\r\n \"i83231\" => \"Conductrice de tramway\",\r\n \"i93320\" => \"Conductrice de véhicules et de machines à traction animale\",\r\n \"i93310\" => \"Conductrice de véhicules à bras ou à pédales\",\r\n \"i74122\" => \"Confiseuse\",\r\n \"i32130\" => \"Conseillère agricole et forestier\",\r\n \"i32131\" => \"Conseillère agricole et forestière\",\r\n \"i24311\" => \"Conservatrice de musée\",\r\n \"i71210\" => \"Constructrice (techniques et matériaux traditionnels)\",\r\n \"i71230\" => \"Constructrice en béton armé\",\r\n \"i31440\" => \"Contrôleuse de la circulation aérienne\",\r\n \"i31521\" => \"Contrôleuse de qualité\",\r\n \"i34420\" => \"Contrôleuse des impôts\",\r\n \"i51120\" => \"Contrôleuse et receveuse de transports publics\",\r\n \"i74420\" => \"Cordonnière\",\r\n \"i41431\" => \"Correctrice d'épreuves\",\r\n \"i81221\" => \"Couleuse de fonderie\",\r\n \"i74351\" => \"Coupeuse du textile, du cuir\",\r\n \"i34210\" => \"Courtière en marchandises\",\r\n \"i34110\" => \"Courtière en valeur\",\r\n \"i74360\" => \"Couseuse\",\r\n \"i74331\" => \"Couturière\",\r\n \"i71310\" => \"Couvreuse zingueuse\",\r\n \"i42131\" => \"Croupière\",\r\n \"i51220\" => \"Cuisinière\",\r\n \"i34732\" => \"Danseuse\",\r\n \"i22220\" => \"Dentiste\",\r\n \"i31180\" => \"Dessinatrice industrielle\",\r\n \"i34711\" => \"Dessinatrice modéliste de produits industriels et commerciaux\",\r\n \"i11431\" => \"Directrice d'organisation specialisée\",\r\n \"i13190\" => \"Dirigeante\",\r\n \"i13170\" => \"Dirigeante d'entreprise de services\",\r\n \"i13150\" => \"Dirigeante dans la restauration et l'hôtellerie\",\r\n \"i11430\" => \"Dirigeante et cadre supérieur d'organisation humanitaire\",\r\n \"i11410\" => \"Dirigeante et cadre supérieur de partis politiques\",\r\n \"i11420\" => \"Dirigeante et cadre supérieure d'organisation d'employeurs\",\r\n \"i11421\" => \"Dirigeante et cadre supérieure d'organisation de travailleurs\",\r\n \"i13110\" => \"Dirigeante, agriculture\",\r\n \"i13130\" => \"Dirigeante, bâtiment et travaux publics\",\r\n \"i13111\" => \"Dirigeante, chasse\",\r\n \"i13141\" => \"Dirigeante, commerce de détail\",\r\n \"i13140\" => \"Dirigeante, commerce de gros\",\r\n \"i13152\" => \"Dirigeante, hôtellerie\",\r\n \"i13120\" => \"Dirigeante, industrie manufacturière\",\r\n \"i13113\" => \"Dirigeante, pêche\",\r\n \"i13151\" => \"Dirigeante, restauration\",\r\n \"i13161\" => \"Dirigeante, secteur de l'entreposage\",\r\n \"i13162\" => \"Dirigeante, secteur des communications\",\r\n \"i13160\" => \"Dirigeante, secteur des transports\",\r\n \"i13181\" => \"Dirigeante, services de nettoyage\",\r\n \"i13180\" => \"Dirigeante, services de soins aux personnes\",\r\n \"i13112\" => \"Dirigeante, sylviculture\",\r\n \"i51520\" => \"Diseuse de bonne aventure\",\r\n \"i32230\" => \"Diététicienne\",\r\n \"i24321\" => \"Documentaliste\",\r\n \"i34710\" => \"Décoratrice\",\r\n \"i74150\" => \"Dégustatrice et classeuse de denrées alimentaires et de boissons\",\r\n \"i52201\" => \"Démonstratrice\",\r\n \"i34501\" => \"Détective\",\r\n \"i41440\" => \"Ecrivain public\",\r\n \"i71370\" => \"Electricienne du bâtiment\",\r\n \"i61240\" => \"Eleveuse (élevage diversifié)\",\r\n \"i61211\" => \"Eleveuse de bétail et d'autres animaux domestiques\",\r\n \"i93220\" => \"Emballeuse à la main\",\r\n \"i51431\" => \"Embaumeuse\",\r\n \"i42210\" => \"Employée d'agence de voyages\",\r\n \"i41410\" => \"Employée de bibliothèque\",\r\n \"i41900\" => \"Employée de bureau\",\r\n \"i91310\" => \"Employée de maison\",\r\n \"i41420\" => \"Employée de service du courrier\",\r\n \"i41220\" => \"Employée de service statistique ou financier\",\r\n \"i41320\" => \"Employée du service d'ordonnancement de la production\",\r\n \"i41310\" => \"Employée du service des stocks\",\r\n \"i41330\" => \"Employée du service des transports\",\r\n \"i42150\" => \"Encaisseuse\",\r\n \"i91530\" => \"Encaisseuse de distributeurs automatiques à prépaiement\",\r\n \"i23100\" => \"Enseignante d'institut supérieur / d'université\",\r\n \"i23400\" => \"Enseignante spécialisée dans l'éducation des handicapés\",\r\n \"i72211\" => \"Estampeuse\",\r\n \"i51412\" => \"Esthéticienne\",\r\n \"i34170\" => \"Estimatrice\",\r\n \"i61410\" => \"Exploitante forestière\",\r\n \"i73120\" => \"Factrice d'instruments de musique\",\r\n \"i51420\" => \"Femme de compagnie\",\r\n \"i71130\" => \"Fendeuse de pierre\",\r\n \"i81130\" => \"Foreuse, sondeuse de puits\",\r\n \"i72210\" => \"Forgeronne\",\r\n \"i74340\" => \"Fourreuse\",\r\n \"i51310\" => \"Garde d'enfants\",\r\n \"i91521\" => \"Gardienne\",\r\n \"i51630\" => \"Gardienne de prison\",\r\n \"i73430\" => \"Graveuse d'imprimerie\",\r\n \"i73230\" => \"Graveuse sur verre\",\r\n \"i72150\" => \"Gréeuse de câbles\",\r\n \"i42121\" => \"Guichetière\",\r\n \"i42120\" => \"Guichetière de banque\",\r\n \"i51130\" => \"Guide\",\r\n \"i32420\" => \"Guérisseuse\",\r\n \"i21140\" => \"Géologue\",\r\n \"i21481\" => \"Géomètre\",\r\n \"i21141\" => \"Géophysicienne\",\r\n \"i24431\" => \"Historienne\",\r\n \"i61130\" => \"Horticultrice péniniériste\",\r\n \"i32220\" => \"Hygiéniste\",\r\n \"i73460\" => \"Imprimeuse sérigraphe, à la planche et sur textile\",\r\n \"i32310\" => \"Infirmière\",\r\n \"i21491\" => \"Ingénieure\",\r\n \"i21460\" => \"Ingénieure chimiste\",\r\n \"i21420\" => \"Ingénieure civil\",\r\n \"i21412\" => \"Ingénieure de la circulation routière\",\r\n \"i21470\" => \"Ingénieure des mines\",\r\n \"i21441\" => \"Ingénieure en télécommunications\",\r\n \"i21450\" => \"Ingénieure mécanicienne\",\r\n \"i21471\" => \"Ingénieure métallurgiste\",\r\n \"i21430\" => \"Ingénieure électricienne\",\r\n \"i21440\" => \"Ingénieure électronicienne\",\r\n \"i31511\" => \"Inspectrice d'immeubles\",\r\n \"i23520\" => \"Inspectrice de l'enseignement\",\r\n \"i34500\" => \"Inspectrice de la police judiciaire\",\r\n \"i31510\" => \"Inspectrice de sécurité incendie\",\r\n \"i34410\" => \"Inspectrice des douanes et des frontières\",\r\n \"i31520\" => \"Inspectrice hygiène et sécurité\",\r\n \"i23310\" => \"Institutrice de l'enseignement primaire\",\r\n \"i23320\" => \"Institutrice de l'enseignement pré primaire\",\r\n \"i51210\" => \"Intendante\",\r\n \"i24442\" => \"Interprète\",\r\n \"i73130\" => \"Joaillière\",\r\n \"i24511\" => \"Journaliste\",\r\n \"i24290\" => \"Juriste\",\r\n \"i32260\" => \"Kinésithérapeute\",\r\n \"i71420\" => \"Laqueuse vernisseuse\",\r\n \"i91421\" => \"Laveuse de vitres\",\r\n \"i91420\" => \"Laveuse de véhicules\",\r\n \"i24440\" => \"Linguiste\",\r\n \"i91512\" => \"Livreuse\",\r\n \"i34741\" => \"Magicienne\",\r\n \"i24220\" => \"Magistrate\",\r\n \"i52100\" => \"Mannequin de mode\",\r\n \"i93330\" => \"Manutentionnaire\",\r\n \"i92131\" => \"Manœuvre chasseuse\",\r\n \"i93120\" => \"Manœuvre de chantier de travaux publics et d'entretien: routes, barrages et ouvrages similaires\",\r\n \"i93210\" => \"Manœuvre de l'assemblage\",\r\n \"i93221\" => \"Manœuvre de l'industrie manufacturière\",\r\n \"i93110\" => \"Manœuvre des mines et des carrières\",\r\n \"i93130\" => \"Manœuvre du bâtiment\",\r\n \"i92130\" => \"Manœuvre pêcheuse\",\r\n \"i92132\" => \"Manœuvre trappeuse\",\r\n \"i83400\" => \"Matelote de pont\",\r\n \"i21210\" => \"Mathématicienne\",\r\n \"i71220\" => \"Maçonne\",\r\n \"i71231\" => \"Maçonne ragréeuse\",\r\n \"i11100\" => \"Membre de l'exécutif et des corps législatifs\",\r\n \"i24600\" => \"Membre du clergé\",\r\n \"i71241\" => \"Menuisière du bâtiment\",\r\n \"i74220\" => \"Menuisière ébéniste\",\r\n \"i91510\" => \"Messagère\",\r\n \"i24550\" => \"Metteuse en scène de cinéma\",\r\n \"i24551\" => \"Metteuse en scène de théâtre\",\r\n \"i72240\" => \"Meuleuse\",\r\n \"i73222\" => \"Meuleuse de verre\",\r\n \"i71110\" => \"Mineuse\",\r\n \"i52101\" => \"Modèle\",\r\n \"i82830\" => \"Monteuse d'appareils électroniques\",\r\n \"i72441\" => \"Monteuse d'installations télégraphiques et téléphoniques\",\r\n \"i72141\" => \"Monteuse de charpentes métalliques\",\r\n \"i82820\" => \"Monteuse en appareillages électriques\",\r\n \"i82810\" => \"Monteuse en construction mécanique\",\r\n \"i71340\" => \"Monteuse en isolation thermique et acoustique\",\r\n \"i72450\" => \"Monteuse et réparatrice de lignes électriques\",\r\n \"i72440\" => \"Monteuse réparateuse d'installations télégraphiques et téléphoniques\",\r\n \"i72110\" => \"Mouleuse de fonderie\",\r\n \"i34730\" => \"Musicienne\",\r\n \"i72410\" => \"Mécanicienne ajusteuse d'appareils électriques\",\r\n \"i72330\" => \"Mécanicienne ajusteuse de machines agricoles\",\r\n \"i72331\" => \"Mécanicienne ajusteuse de machines industrielles\",\r\n \"i72320\" => \"Mécanicienne ajusteuse de moteurs d'avion\",\r\n \"i72310\" => \"Mécanicienne ajusteuse de véhicules à moteur\",\r\n \"i72430\" => \"Mécanicienne réparatrice d'appareils électroniques\",\r\n \"i73110\" => \"Mécanicienne réparatrice d'instruments de précision\",\r\n \"i22210\" => \"Médecin\",\r\n \"i74412\" => \"Mégissière\",\r\n \"i21120\" => \"Météorologue\",\r\n \"i72111\" => \"Noyauteuse de fonderie\",\r\n \"i32231\" => \"Nutritionniste\",\r\n \"i31420\" => \"Officière de pont\",\r\n \"i31410\" => \"Officière mécanicienne de navires\",\r\n \"i32241\" => \"Opticienne\",\r\n \"i32240\" => \"Optométricienne\",\r\n \"i41130\" => \"Opératrice de saisie de données\",\r\n \"i41120\" => \"Opératrice de traitement de texte\",\r\n \"i41140\" => \"Opératrice sur machines à calculer\",\r\n \"i73131\" => \"Orfèvre\",\r\n \"i34141\" => \"Organisatrice de voyages\",\r\n \"i72220\" => \"Outilleuse\",\r\n \"i92110\" => \"Ouvrière agricole\",\r\n \"i62100\" => \"Ouvrière de l'agriculture et de la pêche de subsistance\",\r\n \"i74140\" => \"Ouvrière de la conserverie de fruits, de légumes\",\r\n \"i74130\" => \"Ouvrière de la fabrication des produits laitiers\",\r\n \"i74160\" => \"Ouvrière de la préparation du tabac et de la fabrication des produits du tabac\",\r\n \"i71290\" => \"Ouvrière du bâtiment (gros œuvre)\",\r\n \"i74210\" => \"Ouvrière du traitement du bois\",\r\n \"i92120\" => \"Ouvrière forestière\",\r\n \"i61301\" => \"Ouvrière qualifiée (polyculture et élevage destinés aux marchés)\",\r\n \"i72121\" => \"Oxycoupeuse\",\r\n \"i22121\" => \"Pathologiste\",\r\n \"i74350\" => \"Patronnière du textile, du cuir\",\r\n \"i74410\" => \"Peaussière\",\r\n \"i24521\" => \"Peintre\",\r\n \"i71410\" => \"Peintre en bâtiment\",\r\n \"i73240\" => \"Peintre-décoratrice sur verre et céramique\",\r\n \"i01100\" => \"Personnel des forces armées\",\r\n \"i22240\" => \"Pharmacienne\",\r\n \"i22120\" => \"Pharmacologue\",\r\n \"i24430\" => \"Philosophe\",\r\n \"i31310\" => \"Photographe\",\r\n \"i73431\" => \"Photograveuse\",\r\n \"i21110\" => \"Physicienne\",\r\n \"i31421\" => \"Pilote\",\r\n \"i31430\" => \"Pilote d'avion\",\r\n \"i71360\" => \"Plombière\",\r\n \"i71330\" => \"Plâtrière\",\r\n \"i74111\" => \"Poissonnière\",\r\n \"i51620\" => \"Policière\",\r\n \"i73210\" => \"Polisseuse\",\r\n \"i73223\" => \"Polisseuse de verre\",\r\n \"i51610\" => \"Pompière\",\r\n \"i91511\" => \"Porteuse de colis ou de bagages\",\r\n \"i91520\" => \"Portière\",\r\n \"i71411\" => \"Poseuse de papiers peints\",\r\n \"i71320\" => \"Poseuse de revêtements de sol\",\r\n \"i73211\" => \"Potière\",\r\n \"i32410\" => \"Praticienne de la médecine traditionnelle\",\r\n \"i61210\" => \"Productrice de lait\",\r\n \"i23200\" => \"Professeure de l'enseignement secondaire\",\r\n \"i23101\" => \"Professeure en établissement d'enseignement supérieur\",\r\n \"i34600\" => \"Profession intermédiaire du travail social\",\r\n \"i21320\" => \"Programmeuse\",\r\n \"i74242\" => \"Préparatrice de fibres\",\r\n \"i34720\" => \"Présentatrice de radio, de télévision et de spectacles\",\r\n \"i42140\" => \"Prêteuse sur gages\",\r\n \"i24450\" => \"Psychologue\",\r\n \"i74121\" => \"Pâtissière\",\r\n \"i61521\" => \"Pêcheuse côtière\",\r\n \"i61530\" => \"Pêcheuse de haute mer\",\r\n \"i61520\" => \"Pêcheuse en eaux intérieures\",\r\n \"i71431\" => \"Ramoneuse\",\r\n \"i71430\" => \"Ravaleuse de façades\",\r\n \"i91531\" => \"Releveuse de compteurs\",\r\n \"i73450\" => \"Relieuse\",\r\n \"i42220\" => \"Réceptionniste\",\r\n \"i74230\" => \"Régleuse de machines à bois\",\r\n \"i72230\" => \"Régleuse de machines-outils\",\r\n \"i72231\" => \"Régleuse-conductrice de machines-outils\",\r\n \"i74231\" => \"Régleuse-conductrice machines à bois\",\r\n \"i72442\" => \"Réparatrice d'installations télégraphiques et téléphoniques\",\r\n \"i32320\" => \"Sage-femme\",\r\n \"i72160\" => \"Scaphandrière plongeuse\",\r\n \"i24520\" => \"Sculptrice\",\r\n \"i41150\" => \"Secrétaire\",\r\n \"i34310\" => \"Secrétaire administrative\",\r\n \"i83120\" => \"Serre-freins\",\r\n \"i51230\" => \"Serveuse\",\r\n \"i24420\" => \"Sociologue\",\r\n \"i72120\" => \"Soudeuse\",\r\n \"i73220\" => \"Souffleuse de verre\",\r\n \"i23590\" => \"Spécialiste de l'enseignement\",\r\n \"i21390\" => \"Spécialiste de l'informatique\",\r\n \"i24190\" => \"Spécialiste des fonctions administratives et commerciales des entreprises\",\r\n \"i23510\" => \"Spécialiste des méthodes d'enseignement\",\r\n \"i24432\" => \"Spécialiste des sciences politiques\",\r\n \"i24121\" => \"Spécialiste des services de développement de carrière\",\r\n \"i24120\" => \"Spécialiste des services de personnel\",\r\n \"i24460\" => \"Spécialiste du travail social\",\r\n \"i21220\" => \"Statisticienne\",\r\n \"i41110\" => \"Sténographe / dactylographe\",\r\n \"i73420\" => \"Stéréotypeuse\",\r\n \"i61232\" => \"Séricicultrice\",\r\n \"i74330\" => \"Tailleuse\",\r\n \"i71131\" => \"Tailleuse de pierre\",\r\n \"i73221\" => \"Tailleuse de verre\",\r\n \"i74411\" => \"Tanneuse\",\r\n \"i74370\" => \"Tapissière\",\r\n \"i32120\" => \"Technicienne agronome\",\r\n \"i31311\" => \"Technicienne d'appareils enregistreurs d'images\",\r\n \"i31312\" => \"Technicienne d'appareils enregistreurs de son\",\r\n \"i31390\" => \"Technicienne d'appareils optiques\",\r\n \"i31330\" => \"Technicienne d'appareils électromédicaux\",\r\n \"i31391\" => \"Technicienne d'appareils électroniques\",\r\n \"i73440\" => \"Technicienne de la photographie\",\r\n \"i31450\" => \"Technicienne de la sécurité aérienne\",\r\n \"i31320\" => \"Technicienne de matériels d'émissions de radio et de télévision\",\r\n \"i31321\" => \"Technicienne de matériels de télécommunications\",\r\n \"i31170\" => \"Technicienne des mines\",\r\n \"i31110\" => \"Technicienne des sciences chimiques\",\r\n \"i32110\" => \"Technicienne des sciences de la vie\",\r\n \"i31111\" => \"Technicienne des sciences physiques\",\r\n \"i31120\" => \"Technicienne du génie civil\",\r\n \"i31160\" => \"Technicienne en chimie industrielle\",\r\n \"i31150\" => \"Technicienne en construction mécanique\",\r\n \"i31220\" => \"Technicienne en matériels informatique\",\r\n \"i31230\" => \"Technicienne en robotique industrielle\",\r\n \"i31190\" => \"Technicienne en sciences physiques\",\r\n \"i31191\" => \"Technicienne en sciences techniques\",\r\n \"i31141\" => \"Technicienne en télécommunications\",\r\n \"i31130\" => \"Technicienne en électricité\",\r\n \"i31140\" => \"Technicienne en électronique\",\r\n \"i32121\" => \"Technicienne forestière\",\r\n \"i31171\" => \"Technicienne métallurgiste\",\r\n \"i41210\" => \"Teneuse de livres\",\r\n \"i74320\" => \"Tisserande\",\r\n \"i72130\" => \"Tolière-chaudronnière\",\r\n \"i24441\" => \"Traductrice\",\r\n \"i74112\" => \"Traiteuse\",\r\n \"i61541\" => \"Trappeuse\",\r\n \"i74321\" => \"Tricoteuse\",\r\n \"i81240\" => \"Tréfileuse\",\r\n \"i71361\" => \"Tuyauteuse\",\r\n \"i42230\" => \"Téléphoniste-standardiste\",\r\n \"i21411\" => \"Urbaniste\",\r\n \"i74240\" => \"Vannière\",\r\n \"i91120\" => \"Vendeuse ambulante (produits non alimentaires)\",\r\n \"i91110\" => \"Vendeuse ambulante de comestibles\",\r\n \"i34172\" => \"Vendeuse aux enchères\",\r\n \"i91130\" => \"Vendeuse de porte à porte\",\r\n \"i91131\" => \"Vendeuse de télévente\",\r\n \"i52301\" => \"Vendeuse sur les marchés\",\r\n \"i52300\" => \"Vendeuse à l'étal\",\r\n \"i52200\" => \"Venseuse en magasin\",\r\n \"i71350\" => \"Vitrière\",\r\n \"i22230\" => \"Vétérinaire\",\r\n \"i22112\" => \"Zoologiste\",\r\n \"i51111\" => \"stewardesse\",\r\n \"i91610\" => \"Éboueuse\",\r\n \"i24410\" => \"Économiste\",\r\n \"i24512\" => \"Écrivain\",\r\n \"i72151\" => \"Épisseuse de câbles\",\r\n \"i81241\" => \"Étireuse de métaux\",\r\n\t);\r\n}", "title": "" }, { "docid": "de792e7bdebf4e12fdd5984069e2c8a0", "score": "0.4423704", "text": "function get_franchise_details($franchise_id) {\r\n return $this->db->query(\"select franchise_id,franchise_name,territory_name,town_name \r\n from pnh_m_franchise_info a \r\n join pnh_m_territory_info b on a.territory_id = b.id \r\n join pnh_towns c on c.id = a.town_id\r\n where franchise_id = ? \",$franchise_id)->row_array();\r\n }", "title": "" }, { "docid": "c372077d57294fa5f64f564d73de3cdb", "score": "0.4410152", "text": "public function getCountriesList(){\n\t\treturn array (\n\t\t 'AD' => 'Andorra',\n\t\t 'AE' => 'United Arab Emirates',\n\t\t 'AF' => 'Afghanistan',\n\t\t 'AG' => 'Antigua and Barbuda',\n\t\t 'AI' => 'Anguilla',\n\t\t 'AL' => 'Albania',\n\t\t 'AM' => 'Armenia',\n\t\t 'AN' => 'Netherlands Antilles',\n\t\t 'AO' => 'Angola',\n\t\t 'AQ' => 'Antarctica',\n\t\t 'AR' => 'Argentina',\n\t\t 'AS' => 'American Samoa',\n\t\t 'AT' => 'Austria',\n\t\t 'AU' => 'Australia',\n\t\t 'AW' => 'Aruba',\n\t\t 'AX' => 'Åland Islands',\n\t\t 'AZ' => 'Azerbaijan',\n\t\t 'BA' => 'Bosnia and Herzegovina',\n\t\t 'BB' => 'Barbados',\n\t\t 'BD' => 'Bangladesh',\n\t\t 'BE' => 'Belgium',\n\t\t 'BF' => 'Burkina Faso',\n\t\t 'BG' => 'Bulgaria',\n\t\t 'BH' => 'Bahrain',\n\t\t 'BI' => 'Burundi',\n\t\t 'BJ' => 'Benin',\n\t\t 'BL' => 'Saint Barthélemy',\n\t\t 'BM' => 'Bermuda',\n\t\t 'BN' => 'Brunei',\n\t\t 'BO' => 'Bolivia',\n\t\t 'BQ' => 'British Antarctic Territory',\n\t\t 'BR' => 'Brazil',\n\t\t 'BS' => 'Bahamas',\n\t\t 'BT' => 'Bhutan',\n\t\t 'BV' => 'Bouvet Island',\n\t\t 'BW' => 'Botswana',\n\t\t 'BY' => 'Belarus',\n\t\t 'BZ' => 'Belize',\n\t\t 'CA' => 'Canada',\n\t\t 'CC' => 'Cocos [Keeling] Islands',\n\t\t 'CD' => 'Congo - Kinshasa',\n\t\t 'CF' => 'Central African Republic',\n\t\t 'CG' => 'Congo - Brazzaville',\n\t\t 'CH' => 'Switzerland',\n\t\t 'CI' => 'Côte d`Ivoire',\n\t\t 'CK' => 'Cook Islands',\n\t\t 'CL' => 'Chile',\n\t\t 'CM' => 'Cameroon',\n\t\t 'CN' => 'China',\n\t\t 'CO' => 'Colombia',\n\t\t 'CR' => 'Costa Rica',\n\t\t 'CS' => 'Serbia and Montenegro',\n\t\t 'CT' => 'Canton and Enderbury Islands',\n\t\t 'CU' => 'Cuba',\n\t\t 'CV' => 'Cape Verde',\n\t\t 'CX' => 'Christmas Island',\n\t\t 'CY' => 'Cyprus',\n\t\t 'CZ' => 'Czech Republic',\n\t\t 'DD' => 'East Germany',\n\t\t 'DE' => 'Germany',\n\t\t 'DJ' => 'Djibouti',\n\t\t 'DK' => 'Denmark',\n\t\t 'DM' => 'Dominica',\n\t\t 'DO' => 'Dominican Republic',\n\t\t 'DZ' => 'Algeria',\n\t\t 'EC' => 'Ecuador',\n\t\t 'EE' => 'Estonia',\n\t\t 'EG' => 'Egypt',\n\t\t 'EH' => 'Western Sahara',\n\t\t 'ER' => 'Eritrea',\n\t\t 'ES' => 'Spain',\n\t\t 'ET' => 'Ethiopia',\n\t\t 'FI' => 'Finland',\n\t\t 'FJ' => 'Fiji',\n\t\t 'FK' => 'Falkland Islands',\n\t\t 'FM' => 'Micronesia',\n\t\t 'FO' => 'Faroe Islands',\n\t\t 'FQ' => 'French Southern and Antarctic Territories',\n\t\t 'FR' => 'France',\n\t\t 'FX' => 'Metropolitan France',\n\t\t 'GA' => 'Gabon',\n\t\t 'GB' => 'United Kingdom',\n\t\t 'GD' => 'Grenada',\n\t\t 'GE' => 'Georgia',\n\t\t 'GF' => 'French Guiana',\n\t\t 'GG' => 'Guernsey',\n\t\t 'GH' => 'Ghana',\n\t\t 'GI' => 'Gibraltar',\n\t\t 'GL' => 'Greenland',\n\t\t 'GM' => 'Gambia',\n\t\t 'GN' => 'Guinea',\n\t\t 'GP' => 'Guadeloupe',\n\t\t 'GQ' => 'Equatorial Guinea',\n\t\t 'GR' => 'Greece',\n\t\t 'GS' => 'South Georgia and the South Sandwich Islands',\n\t\t 'GT' => 'Guatemala',\n\t\t 'GU' => 'Guam',\n\t\t 'GW' => 'Guinea-Bissau',\n\t\t 'GY' => 'Guyana',\n\t\t 'HK' => 'Hong Kong SAR China',\n\t\t 'HM' => 'Heard Island and McDonald Islands',\n\t\t 'HN' => 'Honduras',\n\t\t 'HR' => 'Croatia',\n\t\t 'HT' => 'Haiti',\n\t\t 'HU' => 'Hungary',\n\t\t 'ID' => 'Indonesia',\n\t\t 'IE' => 'Ireland',\n\t\t 'IL' => 'Israel',\n\t\t 'IM' => 'Isle of Man',\n\t\t 'IN' => 'India',\n\t\t 'IO' => 'British Indian Ocean Territory',\n\t\t 'IQ' => 'Iraq',\n\t\t 'IR' => 'Iran',\n\t\t 'IS' => 'Iceland',\n\t\t 'IT' => 'Italy',\n\t\t 'JE' => 'Jersey',\n\t\t 'JM' => 'Jamaica',\n\t\t 'JO' => 'Jordan',\n\t\t 'JP' => 'Japan',\n\t\t 'JT' => 'Johnston Island',\n\t\t 'KE' => 'Kenya',\n\t\t 'KG' => 'Kyrgyzstan',\n\t\t 'KH' => 'Cambodia',\n\t\t 'KI' => 'Kiribati',\n\t\t 'KM' => 'Comoros',\n\t\t 'KN' => 'Saint Kitts and Nevis',\n\t\t 'KP' => 'North Korea',\n\t\t 'KR' => 'South Korea',\n\t\t 'KW' => 'Kuwait',\n\t\t 'KY' => 'Cayman Islands',\n\t\t 'KZ' => 'Kazakhstan',\n\t\t 'LA' => 'Laos',\n\t\t 'LB' => 'Lebanon',\n\t\t 'LC' => 'Saint Lucia',\n\t\t 'LI' => 'Liechtenstein',\n\t\t 'LK' => 'Sri Lanka',\n\t\t 'LR' => 'Liberia',\n\t\t 'LS' => 'Lesotho',\n\t\t 'LT' => 'Lithuania',\n\t\t 'LU' => 'Luxembourg',\n\t\t 'LV' => 'Latvia',\n\t\t 'LY' => 'Libya',\n\t\t 'MA' => 'Morocco',\n\t\t 'MC' => 'Monaco',\n\t\t 'MD' => 'Moldova',\n\t\t 'ME' => 'Montenegro',\n\t\t 'MF' => 'Saint Martin',\n\t\t 'MG' => 'Madagascar',\n\t\t 'MH' => 'Marshall Islands',\n\t\t 'MI' => 'Midway Islands',\n\t\t 'MK' => 'Macedonia',\n\t\t 'ML' => 'Mali',\n\t\t 'MM' => 'Myanmar [Burma]',\n\t\t 'MN' => 'Mongolia',\n\t\t 'MO' => 'Macau SAR China',\n\t\t 'MP' => 'Northern Mariana Islands',\n\t\t 'MQ' => 'Martinique',\n\t\t 'MR' => 'Mauritania',\n\t\t 'MS' => 'Montserrat',\n\t\t 'MT' => 'Malta',\n\t\t 'MU' => 'Mauritius',\n\t\t 'MV' => 'Maldives',\n\t\t 'MW' => 'Malawi',\n\t\t 'MX' => 'Mexico',\n\t\t 'MY' => 'Malaysia',\n\t\t 'MZ' => 'Mozambique',\n\t\t 'NA' => 'Namibia',\n\t\t 'NC' => 'New Caledonia',\n\t\t 'NE' => 'Niger',\n\t\t 'NF' => 'Norfolk Island',\n\t\t 'NG' => 'Nigeria',\n\t\t 'NI' => 'Nicaragua',\n\t\t 'NL' => 'Netherlands',\n\t\t 'NO' => 'Norway',\n\t\t 'NP' => 'Nepal',\n\t\t 'NQ' => 'Dronning Maud Land',\n\t\t 'NR' => 'Nauru',\n\t\t 'NT' => 'Neutral Zone',\n\t\t 'NU' => 'Niue',\n\t\t 'NZ' => 'New Zealand',\n\t\t 'OM' => 'Oman',\n\t\t 'PA' => 'Panama',\n\t\t 'PC' => 'Pacific Islands Trust Territory',\n\t\t 'PE' => 'Peru',\n\t\t 'PF' => 'French Polynesia',\n\t\t 'PG' => 'Papua New Guinea',\n\t\t 'PH' => 'Philippines',\n\t\t 'PK' => 'Pakistan',\n\t\t 'PL' => 'Poland',\n\t\t 'PM' => 'Saint Pierre and Miquelon',\n\t\t 'PN' => 'Pitcairn Islands',\n\t\t 'PR' => 'Puerto Rico',\n\t\t 'PS' => 'Palestinian Territories',\n\t\t 'PT' => 'Portugal',\n\t\t 'PU' => 'U.S. Miscellaneous Pacific Islands',\n\t\t 'PW' => 'Palau',\n\t\t 'PY' => 'Paraguay',\n\t\t 'PZ' => 'Panama Canal Zone',\n\t\t 'QA' => 'Qatar',\n\t\t 'RE' => 'Réunion',\n\t\t 'RO' => 'Romania',\n\t\t 'RS' => 'Serbia',\n\t\t 'RU' => 'Russia',\n\t\t 'RW' => 'Rwanda',\n\t\t 'SA' => 'Saudi Arabia',\n\t\t 'SB' => 'Solomon Islands',\n\t\t 'SC' => 'Seychelles',\n\t\t 'SD' => 'Sudan',\n\t\t 'SE' => 'Sweden',\n\t\t 'SG' => 'Singapore',\n\t\t 'SH' => 'Saint Helena',\n\t\t 'SI' => 'Slovenia',\n\t\t 'SJ' => 'Svalbard and Jan Mayen',\n\t\t 'SK' => 'Slovakia',\n\t\t 'SL' => 'Sierra Leone',\n\t\t 'SM' => 'San Marino',\n\t\t 'SN' => 'Senegal',\n\t\t 'SO' => 'Somalia',\n\t\t 'SR' => 'Suriname',\n\t\t 'ST' => 'São Tomé and Príncipe',\n\t\t 'SU' => 'Union of Soviet Socialist Republics',\n\t\t 'SV' => 'El Salvador',\n\t\t 'SY' => 'Syria',\n\t\t 'SZ' => 'Swaziland',\n\t\t 'TC' => 'Turks and Caicos Islands',\n\t\t 'TD' => 'Chad',\n\t\t 'TF' => 'French Southern Territories',\n\t\t 'TG' => 'Togo',\n\t\t 'TH' => 'Thailand',\n\t\t 'TJ' => 'Tajikistan',\n\t\t 'TK' => 'Tokelau',\n\t\t 'TL' => 'Timor-Leste',\n\t\t 'TM' => 'Turkmenistan',\n\t\t 'TN' => 'Tunisia',\n\t\t 'TO' => 'Tonga',\n\t\t 'TR' => 'Turkey',\n\t\t 'TT' => 'Trinidad and Tobago',\n\t\t 'TV' => 'Tuvalu',\n\t\t 'TW' => 'Taiwan',\n\t\t 'TZ' => 'Tanzania',\n\t\t 'UA' => 'Ukraine',\n\t\t 'UG' => 'Uganda',\n\t\t 'UM' => 'U.S. Minor Outlying Islands',\n\t\t 'US' => 'United States',\n\t\t 'UY' => 'Uruguay',\n\t\t 'UZ' => 'Uzbekistan',\n\t\t 'VA' => 'Vatican City',\n\t\t 'VC' => 'Saint Vincent and the Grenadines',\n\t\t 'VD' => 'North Vietnam',\n\t\t 'VE' => 'Venezuela',\n\t\t 'VG' => 'British Virgin Islands',\n\t\t 'VI' => 'U.S. Virgin Islands',\n\t\t 'VN' => 'Vietnam',\n\t\t 'VU' => 'Vanuatu',\n\t\t 'WF' => 'Wallis and Futuna',\n\t\t 'WK' => 'Wake Island',\n\t\t 'WS' => 'Samoa',\n\t\t 'YD' => 'People\\'s Democratic Republic of Yemen',\n\t\t 'YE' => 'Yemen',\n\n\t\t 'YT' => 'Mayotte',\n\t\t 'ZA' => 'South Africa',\n\t\t 'ZM' => 'Zambia',\n\t\t 'ZW' => 'Zimbabwe',\n\t\t 'ZZ' => 'Unknown or Invalid Region',\n\t\t);\n\t}", "title": "" }, { "docid": "05808ab5b8fd282d629bb618f52c4b34", "score": "0.44019893", "text": "function action_spiplistes_liste_des_abonnes_dist () {\n\n\tinclude_spip('inc/autoriser');\n\tinclude_spip('inc/spiplistes_api');\n\t\n\t$securiser_action = charger_fonction('securiser_action', 'inc');\n\t$arg = $securiser_action();\n\n\tif(!preg_match(\",^(\\d+) (\\d+) (\\S+)$,\", $arg, $r)) {\n\t\tspiplistes_log(\"action_spiplistes_liste_des_abonnes_dist $arg pas compris\");\n\t\treturn;\n\t}\n\t$id_liste = intval($r[1]);\n\t$debut = intval($r[2]);\n\t$tri = $r[3];\n\t$redirect = rawurldecode(_request('redirect'));\n\t\n\t$statut_liste = ($id_liste > 0)\n\t\t? sql_getfetsel('statut', 'spip_listes', \"id_liste=\".sql_quote($id_liste), '', '', 1)\n\t\t: false\n\t\t;\n\techo(spiplistes_listes_boite_abonnes ($id_liste, $statut_liste, $tri, $debut, $redirect));\n\t\n\texit(0);\n\n}", "title": "" }, { "docid": "87ee6e1a3b93ad1748e7760c22cbec24", "score": "0.43930113", "text": "public function accounts_list( $args = array() )\n\t{\n\t\tglobal $vca_asm_finances;\n\n\t\t$default_args = array(\n\t\t\t'account_type' => 'donations',\n\t\t\t'messages' => array(),\n\t\t\t'page' => 'vca-asm-finances-accounts-donations'\n\t\t);\n\t\t$args = wp_parse_args( $args, $default_args );\n\t\textract( $args );\n\n\t\tif ( 'donations' === $account_type ) {\n\t\t\t$title = _x( 'Finances', 'Admin Menu', 'vca-asm' ) . ' | ' . _x( 'Donation Accounts', ' Admin Menu', 'vca-asm' );\n\t\t} else {\n\t\t\t$title = _x( 'Finances', 'Admin Menu', 'vca-asm' ) . ' | ' . _x( 'Economical Accounts', ' Admin Menu', 'vca-asm' );\n\t\t}\n\n\t\t$nation_id = 'global' === $this->cap_lvl ? 0 : $this->admin_nation;\n\t\t$accounts = $vca_asm_finances->get_accounts( $account_type, $nation_id, true, true );\n\n\t\t$adminpage = new VCA_ASM_Admin_Page( array(\n\t\t\t'icon' => 'icon-finances',\n\t\t\t'title' => $title,\n\t\t\t'messages' => $messages,\n\t\t\t'url' => '?page=' . $page\n\t\t));\n\n\t\t$i = 0;\n\t\t$rows = array();\n\t\tforeach ( $accounts as $account ) {\n\t\t\t$the_city_finances = new VCA_ASM_City_Finances( $account['city_id'] );\n\t\t\t$rows[$i] = $account;\n\t\t\t$rows[$i]['balanced_month'] = $the_city_finances->{'balanced_month_' . ( 'donations' === $account_type ? 'don' : 'econ' ) . '_name'};\n\t\t\t$rows[$i]['annual_out'] = 'donations' === $account_type ? 0 : $the_city_finances->econ_annual_expenses_formatted;\n\t\t\t$rows[$i]['annual_in'] = 'donations' === $account_type ? $the_city_finances->donations_current_year_formatted : $the_city_finances->econ_annual_revenue_formatted;\n\t\t\t$rows[$i]['annual_in_last'] = 'donations' === $account_type ? $the_city_finances->donations_last_year_formatted : 0;\n\t\t\t$i++;\n\t\t}\n\n\t\t$columns = array(\n\t\t\tarray(\n\t\t\t\t'id' => 'name',\n\t\t\t\t'title' => __( 'City', 'vca-asm' ),\n\t\t\t\t'sortable' => false,//true,\n\t\t\t\t'link' => array(\n\t\t\t\t\t'title' => __( 'View %s', 'vca-asm' ),\n\t\t\t\t\t'title_row_data' => 'name',\n\t\t\t\t\t'url' => '?page=' . $page . '&cid=%d',\n\t\t\t\t\t'url_row_data' => 'city_id'\n\t\t\t\t),\n\t\t\t\t'actions' => array( 'view_account' ),\n\t\t\t\t'cap' => 'view_finances'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'id' => 'balance',\n\t\t\t\t'title' => __( 'Balance', 'vca-asm' ),\n\t\t\t\t'sortable' => false,//true,\n\t\t\t\t'conversion' => 'balance'\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'id' => 'balanced_month',\n\t\t\t\t'title' => __( 'Balanced until', 'vca-asm' ),\n\t\t\t\t'sortable' => false//true\n\t\t\t)\n\t\t);\n\n\t\tif ( 'donations' === $account_type ) {\n\t\t\t$columns[] = array(\n\t\t\t\t'id' => 'annual_in',\n\t\t\t\t'title' => sprintf( __( 'Donations', 'vca-asm' ) . ' %d', date( 'Y' ) ),\n\t\t\t\t'sortable' => false//true\n\t\t\t);\n\t\t\t$columns[] = array(\n\t\t\t\t'id' => 'annual_in_last',\n\t\t\t\t'title' => sprintf( __( 'Donations', 'vca-asm' ) . ' %d', date( 'Y' ) - 1 ),\n\t\t\t\t'sortable' => false//true\n\t\t\t);\n\t\t} else {\n\t\t\t$columns[] = array(\n\t\t\t\t'id' => 'annual_in',\n\t\t\t\t'title' => sprintf( __( 'Revenues', 'vca-asm' ) . ' %d', date( 'Y' ) ),\n\t\t\t\t'sortable' => false//true\n\t\t\t);\n\t\t\t$columns[] = array(\n\t\t\t\t'id' => 'annual_out',\n\t\t\t\t'title' => sprintf( __( 'Expenditures', 'vca-asm' ) . ' %d', date( 'Y' ) ),\n\t\t\t\t'sortable' => false//true\n\t\t\t);\n\t\t}\n\n\t\t$the_table = new VCA_ASM_Admin_Table(\n\t\t\tarray(\n\t\t\t\t'echo' => false,\n\t\t\t\t'orderby' => 'name',\n\t\t\t\t'order' => 'ASC',\n\t\t\t\t'toggle_order' => 'DESC',\n\t\t\t\t'page_slug' => $page,\n\t\t\t\t'base_url' => '',\n\t\t\t\t'sort_url' => '',\n\t\t\t\t'show_empty_message' => true,\n\t\t\t\t'empty_message' => ''\n\t\t\t),\n\t\t\t$columns,\n\t\t\t$rows\n\t\t);\n\n\t\t$output = $adminpage->top();\n\n\t\t$output .= $the_table->output();\n\n\t\t$output .= $adminpage->bottom();\n\n\t\techo $output;\n\t}", "title": "" }, { "docid": "85ec6eff320b900170afa9a8ffdf9acf", "score": "0.4391553", "text": "function frr_get_carp_list() {\n\t$list = array();\n\t$list[] = PKG_FRR_LIST_NONE_VALUE;\n\t$carplist = get_configured_vip_list(\"all\", VIP_CARP);\n\tforeach ($carplist as $vid => $vaddr) {\n\t\t$vip = get_configured_vip($vid);\n\t\t$list[] = array(\"name\" => \"$vaddr (vhid: {$vip['vhid']})\", \"value\" => $vid);\n\t}\n\treturn ($list);\n}", "title": "" }, { "docid": "d3b6967080dde998ec0487ffbb7e5f51", "score": "0.43900555", "text": "public function getFinanceEntries()\n\t{\n\t\t// get input\n\t\t$jinput = JFactory::getApplication ()->input;\n\t\t$memid = $jinput->get ( 'memid', 0 );\n\t\t\n\t\t// get information\n\t\t// get all distinct memberids in finances\n\t\t// cycle through all finance entries by memberid\n\t\t// add a \"total\" field to the array\n\t\t// return array\n\t\t\n\t}", "title": "" }, { "docid": "a4434665094d03e106cf3040431acd0f", "score": "0.43786055", "text": "function getReferrers() {\r\n\r\n\t\t//Poll the DB for coupons\r\n\t\t$sql = $this->dbh->prepare(\"SELECT referrer AS referrer FROM bs_referrers\");\r\n\t\t$sql->execute();\r\n\r\n\t\t//Loop through and return coupons\r\n\t\twhile ($row = $sql->fetch(PDO::FETCH_ASSOC)) {\r\n\t\t\t$referrer[] = $row['referrer'];\r\n\t\t}\r\n\r\n\t\treturn $referrer;\r\n\t}", "title": "" }, { "docid": "200ee19d2aeabbf503828ad69294c6d6", "score": "0.4373826", "text": "public function affCabinet()\n {\n global $bdd;\n $selectCabinet = $bdd->prepare(\"select * from cabinets order by cabinets.id\");\n $selectCabinet->execute();\n $affCabinet = $selectCabinet->fetchAll();\n return $affCabinet;\n }", "title": "" }, { "docid": "1cdbb0026ad0a288a7f7b37a12412c9b", "score": "0.43693215", "text": "public function lists()\r\n {\r\n return $this->financialEntities;\r\n }", "title": "" }, { "docid": "e24a74b085430c644324f2d53b66d395", "score": "0.43691915", "text": "function getFranquicia($cardNum){\r\n $franquicia = \"\";\r\n $num = substr($cardNum,2,-13);\r\n\r\n switch ($num) {\r\n case '41':\r\n $franquicia = \"Visa\";\r\n break;\r\n\r\n case '51':\r\n $franquicia = \"Master Card\";\r\n break;\r\n\r\n case '52':\r\n $franquicia = \"Master Card\";\r\n break;\r\n\r\n case '53':\r\n $franquicia = \"Master Card\";\r\n break;\r\n\r\n case '54':\r\n $franquicia = \"Master Card\";\r\n break;\r\n\r\n case '55':\r\n $franquicia = \"Master Card\";\r\n break; \r\n \r\n case '61':\r\n $franquicia = \"Discovery\";\r\n break; \r\n \r\n case '30':\r\n $franquicia = \"American Express\";\r\n break;\r\n \r\n case '34':\r\n $franquicia = \"Amex\";\r\n break;\r\n\r\n case '37':\r\n $franquicia = \"Amex\";\r\n break;\r\n \r\n default:\r\n $franquicia = \"Uknown\";\r\n break;\r\n }\r\n return $franquicia;\r\n }", "title": "" }, { "docid": "6ab2d44e558b7bec88673f34e6faedae", "score": "0.43670535", "text": "function fr_get_chapters()\n{\n\tglobal $fr_available_chapters, $fr_next_chapter;\n\t$fr_next_chapter = 0;\n\treturn $fr_available_chapters = fr_fetch_chapters(fr_selected_comic());\n}", "title": "" }, { "docid": "3ee8ba0ddd656e72e88e401ebb334144", "score": "0.4363939", "text": "function __pulldownLists()\n {\n //profiling\n $this->data['controller_profiling'][] = __function__;\n\t\t\n //[all_branch]\n\t\t$current_partner = $this->session->userdata['partner'];\n $data = $this->settings_faktura_model->getPartnerBranches($current_partner);\n $this->data['debug'][] = $this->settings_faktura_model->debug_data;\n $this->data['lists']['all_branch'] = create_pulldown_list($data, 'branch', 'name');\n $this->data['lists']['all_branch_id'] = create_pulldown_list($data, 'branch', 'id');\n }", "title": "" }, { "docid": "a3816af1be66d3eef8e1f81441d4d548", "score": "0.43599865", "text": "public function getSurcharges()\r\n {\r\n return $this->_surcharges;\r\n }", "title": "" }, { "docid": "43463b209b144aedae02970668ef277a", "score": "0.43541083", "text": "function getCountryList() {\n\t\t\n\t\t$countries = array(\n\t\t\t'Afghanistan',\n\t\t\t'Albania',\n\t\t\t'Algeria',\n\t\t\t'American Samoa',\n\t\t\t'Andorra',\n\t\t\t'Angola',\n\t\t\t'Anguilla',\n\t\t\t'Antarctica',\n\t\t\t'Antigua and Barbuda',\n\t\t\t'Argentina',\n\t\t\t'Armenia',\n\t\t\t'Aruba',\n\t\t\t'Australia',\n\t\t\t'Austria',\n\t\t\t'Azerbaijan',\n\t\t\t'Bahamas',\n\t\t\t'Bahrain',\n\t\t\t'Bangladesh',\n\t\t\t'Barbados',\n\t\t\t'Belarus',\n\t\t\t'Belgium',\n\t\t\t'Belize',\n\t\t\t'Benin',\n\t\t\t'Bermuda',\n\t\t\t'Bhutan',\n\t\t\t'Bolivia',\n\t\t\t'Bosnia and Herzegovina',\n\t\t\t'Botswana',\n\t\t\t'Bouvet Island',\n\t\t\t'Brazil',\n\t\t\t'British Indian Ocean Territory',\n\t\t\t'British Virgin Islands',\n\t\t\t'Brunei Darussalam',\n\t\t\t'Bulgaria',\n\t\t\t'Burkina Faso',\n\t\t\t'Burundi',\n\t\t\t'Cambodia',\n\t\t\t'Cameroon',\n\t\t\t'Canada',\n\t\t\t'Cape Verde',\n\t\t\t'Cayman Islands',\n\t\t\t'Central African Republic',\n\t\t\t'Chad',\n\t\t\t'Chile',\n\t\t\t'China',\n\t\t\t'Christmas Island',\n\t\t\t'Cocos Keeling Islands',\n\t\t\t'Colombia',\n\t\t\t'Comoros',\n\t\t\t'Congo',\n\t\t\t'Congo',\n\t\t\t'Cook Islands',\n\t\t\t'Costa Rica',\n\t\t\t'Croatia',\n\t\t\t'Cuba',\n\t\t\t'Cyprus',\n\t\t\t'Czech Republic',\n\t\t\t'Denmark',\n\t\t\t'Djibouti',\n\t\t\t'Dominica',\n\t\t\t'Dominican Republic',\n\t\t\t'Ecuador',\n\t\t\t'Egypt',\n\t\t\t'El Salvador',\n\t\t\t'Equatorial Guinea',\n\t\t\t'Eritrea',\n\t\t\t'Estonia',\n\t\t\t'Ethiopia',\n\t\t\t'Falkland Islands Malvinas',\n\t\t\t'Faroe Islands',\n\t\t\t'Fiji',\n\t\t\t'Finland',\n\t\t\t'France',\n\t\t\t'French Guiana',\n\t\t\t'French Polynesia',\n\t\t\t'French Southern Territories',\n\t\t\t'Gabon',\n\t\t\t'Gambia',\n\t\t\t'Georgia',\n\t\t\t'Germany',\n\t\t\t'Ghana',\n\t\t\t'Gibraltar',\n\t\t\t'Greece',\n\t\t\t'Greenland',\n\t\t\t'Grenada',\n\t\t\t'Guadeloupe',\n\t\t\t'Guam',\n\t\t\t'Guatemala',\n\t\t\t'Guernsey',\n\t\t\t'Guinea',\n\t\t\t'Guinea-Bissau',\n\t\t\t'Guyana',\n\t\t\t'Haiti',\n\t\t\t'Heard Island and Mcdonald Islands',\n\t\t\t'Honduras',\n\t\t\t'Hong Kong',\n\t\t\t'Hungary',\n\t\t\t'Iceland',\n\t\t\t'India',\n\t\t\t'Indonesia',\n\t\t\t'Iran',\n\t\t\t'Iraq',\n\t\t\t'Ireland',\n\t\t\t'Isle of Man',\n\t\t\t'Israel',\n\t\t\t'Italy',\n\t\t\t'Jamaica',\n\t\t\t'Japan',\n\t\t\t'Jersey',\n\t\t\t'Jordan',\n\t\t\t'Kazakhstan',\n\t\t\t'Kenya',\n\t\t\t'Kiribati',\n\t\t\t'Korea',\n\t\t\t'Korea',\n\t\t\t'Kuwait',\n\t\t\t'Kyrgyzstan',\n\t\t\t'Laos',\n\t\t\t'Latvia',\n\t\t\t'Lebanon',\n\t\t\t'Lesotho',\n\t\t\t'Liberia',\n\t\t\t'Libya',\n\t\t\t'Liechtenstein',\n\t\t\t'Lithuania',\n\t\t\t'Luxembourg',\n\t\t\t'Macao',\n\t\t\t'Macedonia',\n\t\t\t'Madagascar',\n\t\t\t'Malawi',\n\t\t\t'Malaysia',\n\t\t\t'Maldives',\n\t\t\t'Mali',\n\t\t\t'Malta',\n\t\t\t'Marshall Islands',\n\t\t\t'Martinique',\n\t\t\t'Mauritania',\n\t\t\t'Mauritius',\n\t\t\t'Mayotte',\n\t\t\t'Mexico',\n\t\t\t'Micronesia',\n\t\t\t'Moldova',\n\t\t\t'Monaco',\n\t\t\t'Mongolia',\n\t\t\t'Montenegro',\n\t\t\t'Montserrat',\n\t\t\t'Morocco',\n\t\t\t'Mozambique',\n\t\t\t'Myanmar',\n\t\t\t'Namibia',\n\t\t\t'Nauru',\n\t\t\t'Nepal',\n\t\t\t'Netherlands',\n\t\t\t'Netherlands Antilles',\n\t\t\t'New Caledonia',\n\t\t\t'New Zealand',\n\t\t\t'Nicaragua',\n\t\t\t'Niger',\n\t\t\t'Nigeria',\n\t\t\t'Niue',\n\t\t\t'Norfolk Island',\n\t\t\t'Northern Mariana Islands',\n\t\t\t'Norway',\n\t\t\t'Oman',\n\t\t\t'Pakistan',\n\t\t\t'Palau',\n\t\t\t'Palestinian Territory',\n\t\t\t'Panama',\n\t\t\t'Papua New Guinea',\n\t\t\t'Paraguay',\n\t\t\t'Peru',\n\t\t\t'Philippines',\n\t\t\t'Pitcairn',\n\t\t\t'Poland',\n\t\t\t'Portugal',\n\t\t\t'Puerto Rico',\n\t\t\t'Qatar',\n\t\t\t'Reunion',\n\t\t\t'Romania',\n\t\t\t'Russian Federation',\n\t\t\t'Rwanda',\n\t\t\t'Saint Barth Lemy',\n\t\t\t'Saint Helena',\n\t\t\t'Saint Kitts and Nevis',\n\t\t\t'Saint Lucia',\n\t\t\t'Saint Martin',\n\t\t\t'Saint Pierre and Miquelon',\n\t\t\t'Saint Vincent and the Grenadines',\n\t\t\t'Samoa',\n\t\t\t'San Marino',\n\t\t\t'Sao Tome and Principe',\n\t\t\t'Saudi Arabia',\n\t\t\t'Senegal',\n\t\t\t'Serbia',\n\t\t\t'Seychelles',\n\t\t\t'Sierra Leone',\n\t\t\t'Singapore',\n\t\t\t'Slovakia',\n\t\t\t'Slovenia',\n\t\t\t'Solomon Islands',\n\t\t\t'Somalia',\n\t\t\t'South Africa',\n\t\t\t'South Georgia and the South Sandwich Islands',\n\t\t\t'South Sudan',\n\t\t\t'Spain',\n\t\t\t'Sri Lanka',\n\t\t\t'Sudan',\n\t\t\t'Suriname',\n\t\t\t'Svalbard and Jan Mayen',\n\t\t\t'Swaziland',\n\t\t\t'Sweden',\n\t\t\t'Switzerland',\n\t\t\t'Syrian Arab Republic',\n\t\t\t'Taiwan',\n\t\t\t'Tajikistan',\n\t\t\t'Tanzania',\n\t\t\t'Thailand',\n\t\t\t'Timor-Leste',\n\t\t\t'Togo',\n\t\t\t'Tokelau',\n\t\t\t'Tonga',\n\t\t\t'Trinidad and Tobago',\n\t\t\t'Tunisia',\n\t\t\t'Turkey',\n\t\t\t'Turkmenistan',\n\t\t\t'Turks and Caicos Islands',\n\t\t\t'Tuvalu',\n\t\t\t'Uganda',\n\t\t\t'Ukraine',\n\t\t\t'United Arab Emirates',\n\t\t\t'United Kingdom',\n\t\t\t'United States',\n\t\t\t'United States Minor Outlying Islands',\n\t\t\t'Uruguay',\n\t\t\t'Uzbekistan',\n\t\t\t'Vatican City',\n\t\t\t'Vanuatu',\n\t\t\t'Venezuela',\n\t\t\t'Viet Nam',\n\t\t\t'U.S. Virgin Islands',\n\t\t\t'Wallis and Futuna',\n\t\t\t'Western Sahara',\n\t\t\t'Yemen',\n\t\t\t'Zambia',\n\t\t\t'Zimbabwe'\n\t\t);\n\t\t\n\t\treturn $countries;\n\t}", "title": "" }, { "docid": "9a0aa7db08b5371a1ffe274d2c458608", "score": "0.43527868", "text": "public function __construct(Fund $fund)\n {\n $this->fund = $fund;\n }", "title": "" }, { "docid": "8e6968087db010f22fdd09180a3e05ca", "score": "0.43505207", "text": "function trader_strat_load_fracs($strat) {\n $fracs = array();\n //$frac_candles = array();\n foreach ($strat->field_entry_criteria as $fck => $fc) {\n //$criteria = field_collection_item_load($fc['value']);\n //$criterias[$fck] = $criteria;\n //if (empty($criteria->field_fractal)) {\n //continue;\n //}\n $frac = $fc->field_fractal->value();\n $fracs[$frac] = $frac;\n //$frac_candles[$frac] = $start + (60 * $frac);\n }\n\n return $fracs;\n}", "title": "" }, { "docid": "230a1af9dab85af1996d4cdc23d8116a", "score": "0.43373898", "text": "function fr_available_chapters()\n{\n\tglobal $fr_available_chapters;\n\treturn $fr_available_chapters;\n}", "title": "" }, { "docid": "91564c6fe469a45ba1f753fdd934914b", "score": "0.43336686", "text": "function wcorg_get_countries() {\n\trequire_once( WP_PLUGIN_DIR . '/wordcamp-payments/includes/wordcamp-budgets.php' );\n\n\treturn WordCamp_Budgets::get_valid_countries_iso3166();\n}", "title": "" }, { "docid": "5d4bd2adf5c409dfa18d835262698777", "score": "0.4319978", "text": "public function getDebut_affichage()\n {\n return $this->debut_affichage;\n }", "title": "" }, { "docid": "141936b3a4ce9f05821e392cc3c99082", "score": "0.43082717", "text": "public function getSchemeCountries();", "title": "" }, { "docid": "eb72963ee4cc29ef17ac293cadde35a1", "score": "0.43013003", "text": "function liste_contact($statut = -1, $source = 'external', $list = 0) {\n global $conf;\n\n $tab = array();\n\n $sql = \"SELECT ec.rowid, ec.statut, ec.fk_socpeople as id\";\n if ($source == 'internal')\n $sql.=\", '-1' as socid\";\n if ($source == 'external' || $source == 'thirdparty')\n $sql.=\", t.fk_soc as socid\";\n $sql.= \", t.civilite as civility, t.name as lastname, t.firstname, t.email\";\n $sql.= \", tc.source, tc.element, tc.code, tc.libelle\";\n $sql.= \" FROM \" . MAIN_DB_PREFIX . \"c_type_contact tc\";\n $sql.= \", \" . MAIN_DB_PREFIX . \"element_contact ec\";\n if ($source == 'internal')\n $sql.=\" LEFT JOIN \" . MAIN_DB_PREFIX . \"user t on ec.fk_socpeople = t.rowid\";\n if ($source == 'external' || $source == 'thirdparty')\n $sql.=\" LEFT JOIN \" . MAIN_DB_PREFIX . \"socpeople t on ec.fk_socpeople = t.rowid\";\n $sql.= \" WHERE ec.element_id =\" . $this->rowid;\n $sql.= \" AND tc.entity = \".$conf->entity;\n $sql.= \" AND ec.entity = \".$conf->entity;\n if ($source == 'internal') $sql.= \" AND t.entity = \".$conf->entity;\n if ($source == 'external' || $source == 'thirdparty') $sql.= \" AND t.entity = \".$conf->entity;\n $sql.= \" AND ec.fk_c_type_contact=tc.rowid\";\n $sql.= \" AND tc.element='\" . $this->element . \"'\";\n if ($source == 'internal')\n $sql.= \" AND tc.source = 'internal'\";\n if ($source == 'external' || $source == 'thirdparty')\n $sql.= \" AND tc.source = 'external'\";\n $sql.= \" AND tc.active=1\";\n if ($statut >= 0)\n $sql.= \" AND ec.statut = '\" . $statut . \"'\";\n $sql.=\" ORDER BY t.name ASC\";\n\n Syslog::log(\"CommonObject::liste_contact sql=\" . $sql);\n $resql = $this->db->query($sql);\n if ($resql) {\n $num = $this->db->num_rows($resql);\n $i = 0;\n while ($i < $num) {\n $obj = $this->db->fetch_object($resql);\n\n if (!$list) {\n $transkey = \"TypeContact_\" . $obj->element . \"_\" . $obj->source . \"_\" . $obj->code;\n $libelle_type = (Translate::trans($transkey) != $transkey ? Translate::trans($transkey) : $obj->libelle);\n $tab[$i] = array('source' => $obj->source, 'socid' => $obj->socid, 'id' => $obj->id,\n 'nom' => $obj->lastname, // For backward compatibility\n 'civility' => $obj->civility, 'lastname' => $obj->lastname, 'firstname' => $obj->firstname, 'email' => $obj->email,\n 'rowid' => $obj->rowid, 'code' => $obj->code, 'libelle' => $libelle_type, 'status' => $obj->statut);\n } else {\n $tab[$i] = $obj->id;\n }\n\n $i++;\n }\n\n return $tab;\n } else {\n $this->error = $this->db->error();\n CommonObject::printError($this->db);\n return -1;\n }\n }", "title": "" }, { "docid": "6b35c907af98eb689efbb0896365626a", "score": "0.42960462", "text": "public function fees();", "title": "" }, { "docid": "48f8ee8756cd17177aee26b6fcbe77c4", "score": "0.42921674", "text": "function get_list_abbr($ls){\r\n\r\nswitch($ls)\r\n{\r\ncase\"friend\":return \"fr\";break;\r\ncase\"colleague\":return \"col\";break;\r\ncase\"aquantaince\":return \"aqu\";break;\r\ncase\"aquantaince\":return \"aqu\";break;\r\ncase\"No prior aquaintance\":return \"npa\";break;\r\ncase\"family\":return \"fam\";break;\r\n}\r\n\r\n}", "title": "" }, { "docid": "b98ef898f7cf2278d52d74f13a300859", "score": "0.4283589", "text": "public function recent_franchiseaccounts() {\n $facc = array();\n $this->db->select('accounts.id,franchise_ac.id,franchise_ac.sys_franchise_name,accounts.name AS company_name,accounts.create_date,packages.name,packages.item_limit');\n $this->db->where('accounts.account_type', 2);\n\n $this->db->from('franchise_ac');\n $this->db->join('accounts', 'franchise_ac.id=accounts.account_id');\n $this->db->join('packages', 'accounts.package_id=packages.id');\n\n $this->db->order_by('accounts.id desc');\n $result_franchise = $this->db->get()->result();\n\n $franchise_account = array();\n foreach ($result_franchise as $record) {\n\n $franchise_account[] = array(\n 'id' => $record->id,\n 'sys_admin_name' => $record->sys_franchise_name,\n 'type' => 'franchise',\n 'company' => $record->company_name,\n 'created' => $record->create_date,\n 'package' => $record->name . '/' . $record->item_limit\n );\n }\n return $franchise_account;\n }", "title": "" }, { "docid": "6c8480e3f2752cad4bf8b3d99f561a49", "score": "0.42825148", "text": "function getAppreciationOfFund($fund, $date, $dbh)\n{\t\n\t$currFundCash = getFundTotalCash($fund, $date, $dbh);\n\t$fundStartValue = getFundStartValue($fund, $dbh);\n\n\t// Subtract shares still owned by others.\n\t$sql = \"SELECT shares FROM individual_fund WHERE fund = :fund\";\n\t$query = $dbh->prepare($sql);\n\t$query->bindValue(':fund', $fund);\n\t$query->execute();\n\n\t$appreciation = $currFundCash;\n\n\twhile ($rs = $query->fetch(PDO::FETCH_OBJ))\n\t{\n\t\t$share = $rs->shares/$fundStartValue;\n\t\t$appreciation = $appreciation - ($share*$currFundCash);\n\t}\n\n\t$appreciation = $appreciation/$fundStartValue;\n\treturn $appreciation;\n}", "title": "" }, { "docid": "92b38a1e1642abcc31f46ce4e1635302", "score": "0.42789042", "text": "public function getFondamentauxFamily()\n {\n\n $nids = QueryUtils::getNodesFromType(OffreConstante::TABLE_FAMILY);\n $nodes = Node::loadMultiple($nids);\n $ids = [];\n $icons = [];\n $descriptions = [];\n $fondamentaux= [];\n\n foreach ($nodes as $node) {\n foreach($node->get('field_les_fondamentaux_de_l_offr') as $option_n){\n $ids[] = @$option_n->target_id;\n }\n }\n\n for ($i=0; $i < count($ids) ; $i++) {\n if(!empty($ids[$i])){\n $node = Node::load($ids[$i]);\n $descriptions[] = $node->get('field_detail_de_l_offre')->value;\n $icons[] = $node->get('field_icone_offre')->entity->getFileUri();\n }\n }\n\n\n return $fondamentaux[] = [\n OffreConstante::DESC_FOND => $descriptions,\n OffreConstante::ICONS_FOND => $icons\n ];\n\n }", "title": "" }, { "docid": "4b82855f2002ff70c28aa09422cca586", "score": "0.42770287", "text": "function Factures_chercher($args)\n{\n\t$tab_result = array();\n\n\t$sql = \" SELECT * \n\t\t\t\tFROM \".$GLOBALS['prefix'].\"factures\n\t\t\t\tWHERE 1\";\n\n\tif (!isset($args['id_facture']) && !isset($args['id_pere']) && \n\t\t!isset($args['type_pere']) && !isset($args['etat']) && \n\t\t!isset($args['date_facture_debut']) && !isset($args['date_facture_fin']) && \n\t\t!isset($args['date_facture']) && !isset($args['num_facture']) && \n\t\t!isset($args['order_by']) && !isset($args['tab_ids_factures']))\n\t\treturn $tab_result;\n\n\t$condition=\"\";\n\n\tif (isset($args['id_facture']) && $args['id_facture'] != \"*\")\n\t\t$condition .= \" AND id_facture = '\".$args['id_facture'].\"' \";\n\tif (isset($args['id_pere']) && $args['id_pere'] != \"*\")\n\t\t$condition .= \" AND id_pere = \".$args['id_pere'].\" \";\n\tif (isset($args['type_pere']) && $args['type_pere'] != \"*\")\n\t\t$condition .= \" AND type_pere LIKE '\".$args['type_pere'].\"' \";\n\tif (isset($args['etat']) && $args['etat'] != \"*\")\n\t\t$condition .= \" AND etat = '\".$args['etat'].\"' \";\n\tif (isset($args['date_facture']) && $args['date_facture'] != \"*\")\n\t\t$condition .= \" AND date_facture = '\".Lib_frToEn($args['date_facture']).\"' \";\n\tif (isset($args['date_facture_debut']) && $args['date_facture_debut'] != \"*\")\n\t\t$condition .= \" AND date_facture >= '\".Lib_frToEn($args['date_facture_debut']).\"' \";\n\tif (isset($args['date_facture_fin']) && $args['date_facture_fin'] != \"*\")\n\t\t$condition .= \" AND date_facture <= '\".Lib_frToEn($args['date_facture_fin']).\"' \";\n\tif (isset($args['num_facture']) && $args['num_facture'] != \"*\")\n\t\t$condition .= \" AND num_facture LIKE '\".$args['num_facture'].\"' \";\n\n\tif (isset($args['tab_ids_factures']) && $args['tab_ids_factures'] != \"*\") {\n\t\t$ids = implode(\",\", $args['tab_ids_factures']);\n\t\t$condition .= \" AND id_facture IN (0\".$ids.\") \";\n\t}\n\n\t$sql .= $condition;\n\n\tif (isset($args['order_by']) && !isset($args['asc_desc']))\n\t\t$sql .= \" ORDER BY \".$args['order_by'].\" ASC\";\n\tif (isset($args['order_by']) && isset($args['asc_desc']))\n\t\t$sql .= \" ORDER BY \".$args['order_by'].\" \".$args['asc_desc'];\n\n\tif (isset($args['limit']) && !isset($args['start']))\n\t\t$sql .= \" LIMIT \".$args['limit'];\n\n\tif (isset($args['limit']) && isset($args['start']))\n\t\t$sql .= \" LIMIT \".$args['start'].\",\".$args['limit'];\n\n\t/*=============*/ Lib_myLog(\"SQL: $sql\");\n\t$result = mysql_query($sql);\n\n\tif ($result) {\n\t\twhile($row = mysql_fetch_array($result)) {\n\t\t\t$id = $row['id_facture'];\n\t\t\t$tab_result[$id][\"id_facture\"]\t\t\t= $id;\n\t\t\t$tab_result[$id][\"id_pere\"]\t\t\t\t= $row['id_pere'];\n\t\t\t$tab_result[$id][\"type_pere\"]\t\t\t\t= $row['type_pere'];\n\t\t\t$tab_result[$id][\"montant_ttc\"]\t\t\t= $row['montant_ttc'];\n\t\t\t$tab_result[$id][\"etat\"]\t\t\t\t\t= $row['etat'];\n\t\t\t$tab_result[$id][\"date_facture\"]\t\t\t= Lib_enToFr($row['date_facture']);\n\t\t\t$tab_result[$id][\"num_facture\"]\t\t\t= $row['num_facture'];\n\t\t\t$tab_result[$id][\"message\"]\t\t\t\t= Lib_prepareTexteAffichage($row['message']);\n\t\t\t$tab_result[$id][\"produit\"]\t\t\t\t= Lib_prepareTexteAffichage($row['produit']);\n\t\t\t$tab_result[$id][\"id_mode_reglement\"]\t= $row['id_mode_reglement'];\n\t\t\t$tab_result[$id][\"id_delai_reglement\"]\t= $row['id_delai_reglement'];\n\t\t\t$tab_result[$id][\"code_client\"]\t\t\t= $row['code_client'];\n\t\t\t$tab_result[$id][\"nom_fact\"]\t\t\t\t= Lib_prepareTexteAffichage($row['nom_fact']);\n\t\t\t$tab_result[$id][\"ligne1_fact\"]\t\t\t= Lib_prepareTexteAffichage($row['ligne1_fact']);\n\t\t\t$tab_result[$id][\"ligne2_fact\"]\t\t\t= Lib_prepareTexteAffichage($row['ligne2_fact']);\n\t\t\t$tab_result[$id][\"ligne3_fact\"]\t\t\t= Lib_prepareTexteAffichage($row['ligne3_fact']);\n\t\t\t$tab_result[$id][\"cp_fact\"]\t\t\t\t= $row['cp_fact'];\n\t\t\t$tab_result[$id][\"ville_fact\"]\t\t\t= Lib_prepareTexteAffichage($row['ville_fact']);\n\t\t\t$tab_result[$id][\"tel1_fact\"]\t\t\t\t= $row['tel1_fact'];\n\t\t\t$tab_result[$id][\"tel2_fact\"]\t\t\t\t= $row['tel2_fact'];\n\t\t\t$tab_result[$id][\"fax_fact\"]\t\t\t\t= $row['fax_fact'];\n\t\t\t$tab_result[$id][\"email_fact\"]\t\t\t= $row['email_fact'];\n\t\t\t$tab_result[$id][\"date_add\"]\t\t\t\t= $row['date_add'];\n\t\t\t$tab_result[$id][\"date_upd\"]\t\t\t\t= $row['date_upd'];\n\t\t\t$tab_result[$id][\"info_facture\"]\t\t\t= $row['info_facture'];\n\t\t}\n\t}\n\n\tif (count($tab_result) == 1 && ($args['id_facture'] != '' && $args['id_facture'] != '*'))\n\t\t$tab_result = array_pop($tab_result);\n\n\treturn $tab_result;\n}", "title": "" }, { "docid": "ee0e3117646475da09d63eb61e1c9aec", "score": "0.42758948", "text": "public function getForts()\n {\n return $this->forts;\n }", "title": "" }, { "docid": "fa47120fe4d6e030e78f1d8a892604bf", "score": "0.42730084", "text": "function get_cg_countries() { \r\n\r\n $counter = 1;\r\n $countries = array();\r\n\r\n while(is_array($this->settings['countries'.$counter])) {\r\n $countries = array_merge($countries, $this->settings['countries'.$counter]);\r\n\r\n $counter++;\r\n }\r\n \r\n $allowed_countries = get_option( 'woocommerce_specific_allowed_countries' );\r\n\r\n if (is_array($allowed_countries)) $countries = array_merge($countries, $allowed_countries);\r\n $countries = array_unique($countries);\r\n return $countries;\r\n }", "title": "" }, { "docid": "2a2fc44771dac60010cce66986c90d6d", "score": "0.42617127", "text": "public static function getCountryList()\n {\n return [\n 'AF' => 'Afghanistan',\n 'AX' => 'Åland Islands',\n 'AL' => 'Albania',\n 'DZ' => 'Algeria',\n 'AS' => 'American Samoa',\n 'AD' => 'Andorra',\n 'AO' => 'Angola',\n 'AI' => 'Anguilla',\n 'AQ' => 'Antarctica',\n 'AG' => 'Antigua & Barbuda',\n 'AR' => 'Argentina',\n 'AM' => 'Armenia',\n 'AW' => 'Aruba',\n 'AC' => 'Ascension Island',\n 'AU' => 'Australia',\n 'AT' => 'Austria',\n 'AZ' => 'Azerbaijan',\n 'BS' => 'Bahamas',\n 'BH' => 'Bahrain',\n 'BD' => 'Bangladesh',\n 'BB' => 'Barbados',\n 'BY' => 'Belarus',\n 'BE' => 'Belgium',\n 'BZ' => 'Belize',\n 'BJ' => 'Benin',\n 'BM' => 'Bermuda',\n 'BT' => 'Bhutan',\n 'BO' => 'Bolivia',\n 'BA' => 'Bosnia & Herzegovina',\n 'BW' => 'Botswana',\n 'BR' => 'Brazil',\n 'IO' => 'British Indian Ocean Territory',\n 'VG' => 'British Virgin Islands',\n 'BN' => 'Brunei',\n 'BG' => 'Bulgaria',\n 'BF' => 'Burkina Faso',\n 'BI' => 'Burundi',\n 'KH' => 'Cambodia',\n 'CM' => 'Cameroon',\n 'CA' => 'Canada',\n 'IC' => 'Canary Islands',\n 'CV' => 'Cape Verde',\n 'BQ' => 'Caribbean Netherlands',\n 'KY' => 'Cayman Islands',\n 'CF' => 'Central African Republic',\n 'EA' => 'Ceuta & Melilla',\n 'TD' => 'Chad',\n 'CL' => 'Chile',\n 'CN' => 'China',\n 'CX' => 'Christmas Island',\n 'CC' => 'Cocos (Keeling) Islands',\n 'CO' => 'Colombia',\n 'KM' => 'Comoros',\n 'CG' => 'Congo - Brazzaville',\n 'CD' => 'Congo - Kinshasa',\n 'CK' => 'Cook Islands',\n 'CR' => 'Costa Rica',\n 'CI' => 'Côte d’Ivoire',\n 'HR' => 'Croatia',\n 'CU' => 'Cuba',\n 'CW' => 'Curaçao',\n 'CY' => 'Cyprus',\n 'CZ' => 'Czech Republic',\n 'DK' => 'Denmark',\n 'DG' => 'Diego Garcia',\n 'DJ' => 'Djibouti',\n 'DM' => 'Dominica',\n 'DO' => 'Dominican Republic',\n 'EC' => 'Ecuador',\n 'EG' => 'Egypt',\n 'SV' => 'El Salvador',\n 'GQ' => 'Equatorial Guinea',\n 'ER' => 'Eritrea',\n 'EE' => 'Estonia',\n 'ET' => 'Ethiopia',\n 'FK' => 'Falkland Islands',\n 'FO' => 'Faroe Islands',\n 'FJ' => 'Fiji',\n 'FI' => 'Finland',\n 'FR' => 'France',\n 'GF' => 'French Guiana',\n 'PF' => 'French Polynesia',\n 'TF' => 'French Southern Territories',\n 'GA' => 'Gabon',\n 'GM' => 'Gambia',\n 'GE' => 'Georgia',\n 'DE' => 'Germany',\n 'GH' => 'Ghana',\n 'GI' => 'Gibraltar',\n 'GR' => 'Greece',\n 'GL' => 'Greenland',\n 'GD' => 'Grenada',\n 'GP' => 'Guadeloupe',\n 'GU' => 'Guam',\n 'GT' => 'Guatemala',\n 'GG' => 'Guernsey',\n 'GN' => 'Guinea',\n 'GW' => 'Guinea-Bissau',\n 'GY' => 'Guyana',\n 'HT' => 'Haiti',\n 'HN' => 'Honduras',\n 'HK' => 'Hong Kong SAR China',\n 'HU' => 'Hungary',\n 'IS' => 'Iceland',\n 'IN' => 'India',\n 'ID' => 'Indonesia',\n 'IR' => 'Iran',\n 'IQ' => 'Iraq',\n 'IE' => 'Ireland',\n 'IM' => 'Isle of Man',\n 'IL' => 'Israel',\n 'IT' => 'Italy',\n 'JM' => 'Jamaica',\n 'JP' => 'Japan',\n 'JE' => 'Jersey',\n 'JO' => 'Jordan',\n 'KZ' => 'Kazakhstan',\n 'KE' => 'Kenya',\n 'KI' => 'Kiribati',\n 'XK' => 'Kosovo',\n 'KW' => 'Kuwait',\n 'KG' => 'Kyrgyzstan',\n 'LA' => 'Laos',\n 'LV' => 'Latvia',\n 'LB' => 'Lebanon',\n 'LS' => 'Lesotho',\n 'LR' => 'Liberia',\n 'LY' => 'Libya',\n 'LI' => 'Liechtenstein',\n 'LT' => 'Lithuania',\n 'LU' => 'Luxembourg',\n 'MO' => 'Macau SAR China',\n 'MK' => 'Macedonia',\n 'MG' => 'Madagascar',\n 'MW' => 'Malawi',\n 'MY' => 'Malaysia',\n 'MV' => 'Maldives',\n 'ML' => 'Mali',\n 'MT' => 'Malta',\n 'MH' => 'Marshall Islands',\n 'MQ' => 'Martinique',\n 'MR' => 'Mauritania',\n 'MU' => 'Mauritius',\n 'YT' => 'Mayotte',\n 'MX' => 'Mexico',\n 'FM' => 'Micronesia',\n 'MD' => 'Moldova',\n 'MC' => 'Monaco',\n 'MN' => 'Mongolia',\n 'ME' => 'Montenegro',\n 'MS' => 'Montserrat',\n 'MA' => 'Morocco',\n 'MZ' => 'Mozambique',\n 'MM' => 'Myanmar (Burma)',\n 'NA' => 'Namibia',\n 'NR' => 'Nauru',\n 'NP' => 'Nepal',\n 'NL' => 'Netherlands',\n 'NC' => 'New Caledonia',\n 'NZ' => 'New Zealand',\n 'NI' => 'Nicaragua',\n 'NE' => 'Niger',\n 'NG' => 'Nigeria',\n 'NU' => 'Niue',\n 'NF' => 'Norfolk Island',\n 'KP' => 'North Korea',\n 'MP' => 'Northern Mariana Islands',\n 'NO' => 'Norway',\n 'OM' => 'Oman',\n 'PK' => 'Pakistan',\n 'PW' => 'Palau',\n 'PS' => 'Palestinian Territories',\n 'PA' => 'Panama',\n 'PG' => 'Papua New Guinea',\n 'PY' => 'Paraguay',\n 'PE' => 'Peru',\n 'PH' => 'Philippines',\n 'PN' => 'Pitcairn Islands',\n 'PL' => 'Poland',\n 'PT' => 'Portugal',\n 'PR' => 'Puerto Rico',\n 'QA' => 'Qatar',\n 'RE' => 'Réunion',\n 'RO' => 'Romania',\n 'RU' => 'Russia',\n 'RW' => 'Rwanda',\n 'WS' => 'Samoa',\n 'SM' => 'San Marino',\n 'ST' => 'São Tomé & Príncipe',\n 'SA' => 'Saudi Arabia',\n 'SN' => 'Senegal',\n 'RS' => 'Serbia',\n 'SC' => 'Seychelles',\n 'SL' => 'Sierra Leone',\n 'SG' => 'Singapore',\n 'SX' => 'Sint Maarten',\n 'SK' => 'Slovakia',\n 'SI' => 'Slovenia',\n 'SB' => 'Solomon Islands',\n 'SO' => 'Somalia',\n 'ZA' => 'South Africa',\n 'GS' => 'South Georgia & South Sandwich Islands',\n 'KR' => 'South Korea',\n 'SS' => 'South Sudan',\n 'ES' => 'Spain',\n 'LK' => 'Sri Lanka',\n 'BL' => 'St. Barthélemy',\n 'SH' => 'St. Helena',\n 'KN' => 'St. Kitts & Nevis',\n 'LC' => 'St. Lucia',\n 'MF' => 'St. Martin',\n 'PM' => 'St. Pierre & Miquelon',\n 'VC' => 'St. Vincent & Grenadines',\n 'SD' => 'Sudan',\n 'SR' => 'Suriname',\n 'SJ' => 'Svalbard & Jan Mayen',\n 'SZ' => 'Swaziland',\n 'SE' => 'Sweden',\n 'CH' => 'Switzerland',\n 'SY' => 'Syria',\n 'TW' => 'Taiwan',\n 'TJ' => 'Tajikistan',\n 'TZ' => 'Tanzania',\n 'TH' => 'Thailand',\n 'TL' => 'Timor-Leste',\n 'TG' => 'Togo',\n 'TK' => 'Tokelau',\n 'TO' => 'Tonga',\n 'TT' => 'Trinidad & Tobago',\n 'TA' => 'Tristan da Cunha',\n 'TN' => 'Tunisia',\n 'TR' => 'Turkey',\n 'TM' => 'Turkmenistan',\n 'TC' => 'Turks & Caicos Islands',\n 'TV' => 'Tuvalu',\n 'UM' => 'U.S. Outlying Islands',\n 'VI' => 'U.S. Virgin Islands',\n 'UG' => 'Uganda',\n 'UA' => 'Ukraine',\n 'AE' => 'United Arab Emirates',\n 'GB' => 'United Kingdom',\n 'US' => 'United States',\n 'UY' => 'Uruguay',\n 'UZ' => 'Uzbekistan',\n 'VU' => 'Vanuatu',\n 'VA' => 'Vatican City',\n 'VE' => 'Venezuela',\n 'VN' => 'Vietnam',\n 'WF' => 'Wallis & Futuna',\n 'EH' => 'Western Sahara',\n 'YE' => 'Yemen',\n 'ZM' => 'Zambia',\n 'ZW' => 'Zimbabwe',\n ];\n }", "title": "" }, { "docid": "ad51baf3ec11e49d3060e01381c50522", "score": "0.425762", "text": "public function getRefineComposeList(){\n return $this->_get(4);\n }", "title": "" }, { "docid": "23f0843936ff76fb6ffdb2251f9c0976", "score": "0.42567742", "text": "function get_funding_source_list()\n{\n $ci=& get_instance();\n $ci->load->model('procurement_type_m');\n return $ci->procurement_type_m->get_fundingsource_list();\n}", "title": "" }, { "docid": "43e080183dccd5f03e93179db64a219e", "score": "0.4246364", "text": "function GCGC_G_listTranslate( $kfr )\r\n/************************************\r\n */\r\n{\r\n $ra['M_firstname'] = mbr_makeName(array(\"firstname\" =>$kfr->Value(\"M_firstname\"),\r\n \"lastname\" =>$kfr->Value(\"M_lastname\"),\r\n \"firstname2\"=>$kfr->Value(\"M_firstname2\"),\r\n \"lastname2\" =>$kfr->Value(\"M_lastname2\"),\r\n \"company\" =>$kfr->Value(\"M_company\"),\r\n \"dept\" =>$kfr->Value(\"M_dept\") ) );\r\n\r\n /* Show the membership expiry in colour to indicate whether current\r\n */\r\n if( intval(substr($kfr->Value(\"M_expires\"),0,4)) < date(\"Y\") ) {\r\n $ra['M_expires'] = \"<FONT color='red'>\".$kfr->Value(\"M_expires\").\"</FONT>\";\r\n }\r\n\r\n return( $ra );\r\n}", "title": "" }, { "docid": "4e165ecf97a11accc995925198f1cf12", "score": "0.42383865", "text": "public function getFurnitures()\n {\n return $this->Furnitures;\n }", "title": "" }, { "docid": "d7ac78b01d0f7ee23029574387577de0", "score": "0.42345676", "text": "function get_departments() {\n $dept = array(\"AGST\" => \"Agricultural Studies\",\n \"ANTH\" => \"Anthropology\",\n \"ARKY\" => \"Archaeology\",\n \"ART\" => \"Art\",\n \"AHMS\" => \"Art History/Museum Studies\",\n \"ASCI\" => \"Arts and Science\",\n \"ASTR\" => \"Astronomy\",\n \"BCHM\" => \"Biochemistry\",\n \"BIOL\" => \"Biology\",\n \"BKFT\" => \"Blackfoot\",\n \"CAAP\" => \"Campus Alberta\",\n \"CDEV\" => \"Career Development\",\n \"CHEM\" => \"Chemistry\",\n \"CPSC\" => \"Computer Science\",\n \"DRAM\" => \"Drama\",\n \"ECON\" => \"Economics\",\n \"EDUC\" => \"Education\",\n \"ENGG\" => \"Engineering\",\n \"ENGL\" => \"English\",\n \"ENVS\" => \"Environmental Science\",\n \"FREN\" => \"French\",\n \"GEOG\" => \"Geography\",\n \"GEOL\" => \"Geology\",\n \"GERM\" => \"German\",\n \"HLSC\" => \"Health Sciences\",\n \"HIST\" => \"History\",\n \"IDST\" => \"Interdisciplinary Studies\",\n \"JPNS\" => \"Japanese\",\n \"KNES\" => \"Kinesiology\",\n \"LATI\" => \"Latin\",\n \"LBED\" => \"Liberal Education\",\n \"LBSC\" => \"Library Science\",\n \"LING\" => \"Linguistics\",\n \"LOGI\" => \"Logic\",\n \"MATH\" => \"Mathematics\",\n \"MUSI\" => \"Music\",\n \"MUSE\" => \"Music Ensemble Activity\",\n \"NAS\" => \"Native American Studies\",\n \"NEUR\" => \"Neuroscience\",\n \"NMED\" => \"New Media\",\n \"NURS\" => \"Nursing\",\n \"PHIL\" => \"Philosophy\",\n \"PHAC\" => \"Physical Activity\",\n \"PHYS\" => \"Physics\",\n \"POLI\" => \"Political Science\",\n \"PSYC\" => \"Psychology\",\n \"PUBH\" => \"Public Health\",\n \"RELS\" => \"Religious Studies\",\n \"SSCI\" => \"Social Sciences\",\n \"SOCI\" => \"Sociology\",\n \"SPAN\" => \"Spanish\",\n \"STAT\" => \"Statistics\",\n \"WMST\" => \"Women's Studies\",\n \"WRIT\" => \"Writing\");\n\n return $dept;\n}", "title": "" }, { "docid": "87e3bbc53e6d832b6d6daa3bb5f22db1", "score": "0.42336917", "text": "function adminglobalcountrieslist(){\n$collection = $GLOBALS['db']->countries;\n\nif($collection->count(array()) < 5){\n$country = array(\"us\"=>\"United States\",\"af\" =>\"Afghanistan\",\"ax\"=>\"Aland Islands\",\"al\"=>\"Albania\",\"dz\"=>\"Algeria\",\"as\"=>\"American Samoa\",\"ad\"=>\"Andorra\",\"ao\"=>\"Angola\",\"ai\"=>\"Anguilla\",\"aq\"=>\"Antarctica\",\"ag\"=>\"Antigua and Barbuda\",\"ar\"=>\"Argentina\",\"am\"=>\"Armenia\",\"aw\"=>\"Aruba\",\"au\"=>\"Australia\",\"at\"=>\"Austria\",\"az\"=>\"Azerbaijan\",\"bs\"=>\"Bahamas\",\"bh\"=>\"Bahrain\",\"bd\"=>\"Bangladesh\",\"bb\"=>\"Barbados\",\"by\"=>\"Belarus\",\"be\"=>\"Belgium\",\"bz\"=>\"Belize\",\"bj\"=>\"Benin\",\"bm\"=>\"Bermuda\",\"bt\"=>\"Bhutan\",\"bo\"=>\"Bolivia\",\"ba\"=>\"Bosnia and Herzegovina\",\"bw\"=>\"Botswana\",\"bv\"=>\"Bouvet Island\",\"br\"=>\"Brazil\",\"io\"=>\"British Indian Ocean Territory\",\"bn\"=>\"Brunei Darussalam\",\"bg\"=>\"Bulgaria\",\"bf\"=>\"Burkina Faso\",\"bi\"=>\"Burundi\",\"kh\"=>\"Cambodia\",\"cm\"=>\"Cameroon\",\"ca\"=>\"Canada\",\"cv\"=>\"Cape Verde\",\"cb\"=>\"Caribbean Nations\",\"ky\"=>\"Cayman Islands\",\"cf\"=>\"Central African Republic\",\"td\"=>\"Chad\",\"cl\"=>\"Chile\",\"cn\"=>\"China\",\"cx\"=>\"Christmas Island\",\"cc\"=>\"Cocos (Keeling) Islands\",\"co\"=>\"Colombia\",\"km\"=>\"Comoros\",\"cg\"=>\"Congo\",\"ck\"=>\"Cook Islands\",\"cr\"=>\"Costa Rica\",\"ci\"=>\"Cote D'Ivoire (Ivory Coast)\",\"hr\"=>\"Croatia\",\"cu\"=>\"Cuba\",\"cy\"=>\"Cyprus\",\"cz\"=>\"Czech Republic\",\"cd\"=>\"Democratic Republic of the Congo\",\"dk\"=>\"Denmark\",\"dj\"=>\"Djibouti\",\"dm\"=>\"Dominica\",\"do\"=>\"Dominican Republic\",\"tp\"=>\"East Timor\",\"ec\"=>\"Ecuador\",\"eg\"=>\"Egypt\",\"sv\"=>\"El Salvador\",\"gq\"=>\"Equatorial Guinea\",\"er\"=>\"Eritrea\",\"ee\"=>\"Estonia\",\"et\"=>\"Ethiopia\",\"fk\"=>\"Falkland Islands (Malvinas)\",\"fo\"=>\"Faroe Islands\",\"fm\"=>\"Federated States of Micronesia\",\"fj\"=>\"Fiji\",\"fi\"=>\"Finland\",\"fr\"=>\"France\",\"gf\"=>\"French Guiana\",\"pf\"=>\"French Polynesia\",\"tf\"=>\"French Southern Territories\",\"ga\"=>\"Gabon\",\"gm\"=>\"Gambia\",\"ge\"=>\"Georgia\",\"de\"=>\"Germany\",\"gh\"=>\"Ghana\",\"gi\"=>\"Gibraltar\",\"gr\"=>\"Greece\",\"gl\"=>\"Greenland\",\"gd\"=>\"Grenada\",\"gp\"=>\"Guadeloupe\",\"gu\"=>\"Guam\",\"gt\"=>\"Guatemala\",\"gg\"=>\"Guernsey\",\"gn\"=>\"Guinea\",\"gw\"=>\"Guinea-Bissau\",\"gy\"=>\"Guyana\",\"ht\"=>\"Haiti\",\"hm\"=>\"Heard Island and McDonald Islands\",\"hn\"=>\"Honduras\",\"hk\"=>\"Hong Kong\",\"hu\"=>\"Hungary\",\"is\"=>\"Iceland\",\"in\"=>\"India\",\"id\"=>\"Indonesia\",\"ir\"=>\"Iran\",\"iq\"=>\"Iraq\",\"ie\"=>\"Ireland\",\"im\"=>\"Isle of Man\",\"il\"=>\"Israel\",\"it\"=>\"Italy\",\"jm\"=>\"Jamaica\",\"jp\"=>\"Japan\",\"je\"=>\"Jersey\",\"jo\"=>\"Jordan\",\"kz\"=>\"Kazakhstan\",\"ke\"=>\"Kenya\",\"ki\"=>\"Kiribati\",\"kr\"=>\"Korea\",\"kp\"=>\"Korea (North)\",\"ko\"=>\"Kosovo\",\"kw\"=>\"Kuwait\",\"kg\"=>\"Kyrgyzstan\",\"la\"=>\"Laos\",\"lv\"=>\"Latvia\",\"lb\"=>\"Lebanon\",\"ls\"=>\"Lesotho\",\"lr\"=>\"Liberia\",\"ly\"=>\"Libya\",\"li\"=>\"Liechtenstein\",\"lt\"=>\"Lithuania\",\"lu\"=>\"Luxembourg\",\"mo\"=>\"Macao\",\"mk\"=>\"Macedonia\",\"mg\"=>\"Madagascar\",\"mw\"=>\"Malawi\",\"my\"=>\"Malaysia\",\"mv\"=>\"Maldives\",\"ml\"=>\"Mali\",\"mt\"=>\"Malta\",\"mh\"=>\"Marshall Islands\",\"mq\"=>\"Martinique\",\"mr\"=>\"Mauritania\",\"mu\"=>\"Mauritius\",\"yt\"=>\"Mayotte\",\"mx\"=>\"Mexico\",\"md\"=>\"Moldova\",\"mc\"=>\"Monaco\",\"mn\"=>\"Mongolia\",\"me\"=>\"Montenegro\",\"ms\"=>\"Montserrat\",\"ma\"=>\"Morocco\",\"mz\"=>\"Mozambique\",\"mm\"=>\"Myanmar\",\"na\"=>\"Namibia\",\"nr\"=>\"Nauru\",\"np\"=>\"Nepal\",\"nl\"=>\"Netherlands\",\"an\"=>\"Netherlands Antilles\",\"nc\"=>\"New Caledonia\",\"nz\"=>\"New Zealand\",\"ni\"=>\"Nicaragua\",\"ne\"=>\"Niger\",\"ng\"=>\"Nigeria\",\"nu\"=>\"Niue\",\"nf\"=>\"Norfolk Island\",\"mp\"=>\"Northern Mariana Islands\",\"no\"=>\"Norway\",\"pk\"=>\"Pakistan\",\"pw\"=>\"Palau\",\"ps\"=>\"Palestinian Territory\",\"pa\"=>\"Panama\",\"pg\"=>\"Papua New Guinea\",\"py\"=>\"Paraguay\",\"pe\"=>\"Peru\",\"ph\"=>\"Philippines\",\"pn\"=>\"Pitcairn\",\"pl\"=>\"Poland\",\"pt\"=>\"Portugal\",\"pr\"=>\"Puerto Rico\",\"qa\"=>\"Qatar\",\"re\"=>\"Reunion\",\"ro\"=>\"Romania\",\"ru\"=>\"Russian Federation\",\"rw\"=>\"Rwanda\",\"gs\"=>\"S. Georgia and S. Sandwich Islands\",\"sh\"=>\"Saint Helena\",\"kn\"=>\"Saint Kitts and Nevis\",\"lc\"=>\"Saint Lucia\",\"pm\"=>\"Saint Pierre and Miquelon\",\"vc\"=>\"Saint Vincent and the Grenadines\",\"ws\"=>\"Samoa\",\"sm\"=>\"San Marino\",\"st\"=>\"Sao Tome and Principe\",\"sa\"=>\"Saudi Arabia\",\"sn\"=>\"Senegal\",\"rs\"=>\"Serbia\",\"cs\"=>\"Serbia and Montenegro\",\"sc\"=>\"Seychelles\",\"sl\"=>\"Sierra Leone\",\"sg\"=>\"Singapore\",\"sk\"=>\"Slovak Republic\",\"si\"=>\"Slovenia\",\"sb\"=>\"Solomon Islands\",\"so\"=>\"Somalia\",\"za\"=>\"South Africa\",\"ss\"=>\"South Sudan\",\"es\"=>\"Spain\",\"lk\"=>\"Sri Lanka\",\"sd\"=>\"Sudan\",\"om\"=>\"Sultanate of Oman\",\"sr\"=>\"Suriname\",\"sj\"=>\"Svalbard and Jan Mayen\",\"sz\"=>\"Swaziland\",\"se\"=>\"Sweden\",\"ch\"=>\"Switzerland\",\"sy\"=>\"Syria\",\"tw\"=>\"Taiwan\",\"tj\"=>\"Tajikistan\",\"tz\"=>\"Tanzania\",\"th\"=>\"Thailand\",\"tl\"=>\"Timor-Leste\",\"tg\"=>\"Togo\",\"tk\"=>\"Tokelau\",\"to\"=>\"Tonga\",\"tt\"=>\"Trinidad and Tobago\",\"tn\"=>\"Tunisia\",\"tr\"=>\"Turkey\",\"tm\"=>\"Turkmenistan\",\"tc\"=>\"Turks and Caicos Islands\",\"tv\"=>\"Tuvalu\",\"ug\"=>\"Uganda\",\"ua\"=>\"Ukraine\",\"ae\"=>\"United Arab Emirates\",\"gb\"=>\"United Kingdom\",\"uy\"=>\"Uruguay\",\"uz\"=>\"Uzbekistan\",\"vu\"=>\"Vanuatu\",\"va\"=>\"Vatican City State (Holy See)\",\"ve\"=>\"Venezuela\",\"vn\"=>\"Vietnam\",\"vg\"=>\"Virgin Islands (British)\",\"vi\"=>\"Virgin Islands (U.S.)\",\"wf\"=>\"Wallis and Futuna\",\"eh\"=>\"Western Sahara\",\"ye\"=>\"Yemen\",\"zm\"=>\"Zambia\",\"zw\"=>\"Zimbabwe\",\"oo\"=>\"Other\");\nforeach($country as $title){\n//echo $title;\n$data = array(\n \"title\" => $title,\n \"status\" => \"1\",\n \"created\" => time(),\n \"updated\" => time()\n);\n$collection->insert($data);\n}\n\n}\n\n$query = array();\nreturn $collection->find($query);\n\n}", "title": "" }, { "docid": "41d162549580a4f2629fcc4db7d55237", "score": "0.42327502", "text": "function fetchAllFranchise() {\n global $mysqli, $db_table_prefix;\n $stmt = $mysqli->prepare(\"SELECT \n\t\tid,\n\t\tfname,\n\t\tlname,\n\t\tssefin,\n\t\tcity_state_zip,\n\t\tphone,\n\t\temail,\n\t\tdate,\n\t\tactive,\n\t\tdate_modified\n\t\tFROM \" . $db_table_prefix . \"franchise\");\n $stmt->execute();\n $stmt->bind_result(\n $id, $fname, $lname, $ssefin, $city_state_zip, $phone, $email, $date, $active, $date_modified);\n\n while ($stmt->fetch()) {\n $row[] = array('id' => $id, 'fname' => $fname, 'lname' => $lname, 'ssefin' => $ssefin, 'city_state_zip' => $city_state_zip, 'phone' => $phone, 'email' => $email, 'date' => $date, 'active' => $active, 'date_modified' => $date_modified);\n }\n $stmt->close();\n return ($row);\n}", "title": "" }, { "docid": "84137961d51e7ccb9513166233b76b35", "score": "0.4227288", "text": "function get_child_list($fid)\n{\n\tstatic $forums_by_parent;\n\n\t$forums = array();\n\tif(!is_array($forums_by_parent))\n\t{\n\t\t$forum_cache = cache_forums();\n\t\tforeach($forum_cache as $forum)\n\t\t{\n\t\t\tif($forum['active'] != 0)\n\t\t\t{\n\t\t\t\t$forums_by_parent[$forum['pid']][$forum['fid']] = $forum;\n\t\t\t}\n\t\t}\n\t}\n\tif(!is_array($forums_by_parent[$fid]))\n\t{\n\t\treturn $forums;\n\t}\n\n\tforeach($forums_by_parent[$fid] as $forum)\n\t{\n\t\t$forums[] = $forum['fid'];\n\t\t$children = get_child_list($forum['fid']);\n\t\tif(is_array($children))\n\t\t{\n\t\t\t$forums = array_merge($forums, $children);\n\t\t}\n\t}\n\treturn $forums;\n}", "title": "" }, { "docid": "162b2e6b582c29f2454fb3cadc6d8480", "score": "0.42263657", "text": "function publish_obituary_funeral_at($religion, $f_for) {\n $raw_at = publish_obituary_funeral_for_at($religion);\n $rel_at_list = array();\n foreach ($raw_at as $ra_key => $ra_value) {\n if ($ra_value['for']==$f_for) {\n $rel_at_list[$ra_value['at']] = $ra_value['at'];\n }\n }\n return $rel_at_list;\n}", "title": "" }, { "docid": "790afb049d1c8995c35ef339f510f212", "score": "0.42201704", "text": "function getDrumkitList(){\n\treturn array(\n\t\t1 => 'Dry',\n\t\t9 => 'Room',\n\t\t19 => 'Power',\n\t\t25 => 'Electronic',\n\t\t33 => 'Jazz',\n\t\t41 => 'Brush',\n\t\t57 => 'SFX',\n\t\t128 => 'Default'\n\t);\n}", "title": "" }, { "docid": "a691cc326a47018ad681225ce8e37eb2", "score": "0.42177752", "text": "public function getConList(){\n return $this->_get(4);\n }", "title": "" }, { "docid": "fd0a05607f0bc2d8580c4668ddf0fe90", "score": "0.42140865", "text": "public function listCountries() {\r\n\t\t// Get the google data from the feed.\r\n\t\t$xml = $this->_listCountriesXml;\r\n\r\n\t\t// Loop through google data and find all valid entries.\r\n\t\t$regionclean = array();\r\n\t\tforeach($xml->entry as $region) {\r\n\t\t\t$pos = strpos($region->content, 'geocoding:') + 11;\r\n\t\t\t$geocoding = substr($region->content, $pos, strpos($region->content, ',', $pos) - $pos);\r\n\t\t\tif (strpos($geocoding, \"Yes\") !== FALSE) {\r\n\t\t\t\t$regionclean[] = htmlentities($region->title);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Get the countries list and clean it up so that names will match to google.\r\n\t\t// The regex removes parenthetical items so that both of the \"Congo\" entries\r\n\t\t// and the \"Coco Islands\" work.\r\n\t\t// The $countriesfixes overwrites values in the Drupal API countries list\r\n\t\t// with values that will match to google's entries.\r\n\t\t// \"Sao Tome and Principe\" are non-accented in the Drupal API so the entry\r\n\t\t// here is to match the htmlentities() fix in the foreach loop below.\r\n\t\t// Note: it may be neccessary to adjust/add to the fixes list in the future\r\n\t\t// if google adds countries that don't match the Drupal API list for whatever\r\n\t\t// reason.\r\n\t\t$countries = $this->listCountriesISO();\r\n\t\t$regex = \"#[ (].*[)]#e\";\r\n\t\t$cntryclean = preg_replace($regex, \"\", $countries);\r\n\t\t$countriesfixes = array_merge($cntryclean, array(\r\n\t\t\t\t\"hk\" => \"China\",\r\n\t\t\t\t\"mo\" => \"China\",\r\n\t\t\t\t\"pn\" => \"Pitcairn Islands\",\r\n\t\t\t\t\"wf\" => \"Wallis Futuna\",\r\n\t\t\t\t\"st\" => \"S&Atilde;&pound;o Tom&Atilde;&copy; and Pr&Atilde;&shy;ncipe\",\r\n\t\t));\r\n\r\n\t\t// Compare new google data found to fixed country name values and return\r\n\t\t// matches with abbreviations as keys.\r\n\t\t$googlematched = array_intersect($countriesfixes, $regionclean);\r\n\r\n\t\t// Compare new keys to original Drupal API and return the array with the\r\n\t\t// original name values.\r\n\t\t$fixedkeys = array_intersect_key($countries, $googlematched);\r\n\t\treturn array_keys($fixedkeys);\r\n\t}", "title": "" }, { "docid": "8dd17d56332cac29a42fa8c5b2f970ce", "score": "0.42129695", "text": "function forminator_currency_list() {\n\treturn apply_filters( \n\t\t'forminator_currency_list',\n\t\tarray(\n\t\t\t'ALL'\t\t => array( 'Albania, Leke', '4c, 65, 6b' ),\n\t\t\t'AFN'\t\t => array( 'Afghanistan, Afghanis', '60b' ),\n\t\t\t'ARS'\t\t => array( 'Argentina, Pesos', '24' ),\n\t\t\t'AWG'\t\t => array( 'Aruba, Guilders (also called Florins)', '192' ),\n\t\t\t'AUD'\t\t => array( 'Australia, Dollars', '24' ),\n\t\t\t'AZN'\t\t => array( 'Azerbaijan, New Manats', '43c, 430, 43d' ),\n\t\t\t'BHD'\t\t => array( 'Bahrain, Dinars', '2e, 62f, 2e, 628' ),\n\t\t\t'BSD'\t\t => array( 'Bahamas, Dollars', '24' ),\n\t\t\t'BBD'\t\t => array( 'Barbados, Dollars', '24' ),\n\t\t\t'BYR'\t\t => array( 'Belarus, Rubles', '70, 2e' ),\n\t\t\t'BZD'\t\t => array( 'Belize, Dollars', '42, 5a, 24' ),\n\t\t\t'BMD'\t\t => array( 'Bermuda, Dollars', '24' ),\n\t\t\t'BOB'\t\t => array( 'Bolivia, Bolivianos', '24, 62' ),\n\t\t\t'BAM'\t\t => array( 'Bosnia and Herzegovina, Convertible Marka', '4b, 4d' ),\n\t\t\t'BWP'\t\t => array( 'Botswana, Pulas', '50' ),\n\t\t\t'BGN'\t\t => array( 'Bulgaria, Leva', '43b, 432' ),\n\t\t\t'BRL'\t\t => array( 'Brazil, Reais', '52, 24' ),\n\t\t\t'BND'\t\t => array( 'Brunei Darussalam, Dollars', '24' ),\n\t\t\t'KHR'\t\t => array( 'Cambodia, Riels', '17db' ),\n\t\t\t'CAD'\t\t => array( 'Canada, Dollars', '24' ),\n\t\t\t'KYD'\t\t => array( 'Cayman Islands, Dollars', '24' ),\n\t\t\t'CLP'\t\t => array( 'Chile, Pesos', '24' ),\n\t\t\t'CNY'\t\t => array( 'China, Yuan Renminbi', 'a5' ),\n\t\t\t'COP'\t\t => array( 'Colombia, Pesos', '24' ),\n\t\t\t'CRC'\t\t => array( 'Costa Rica, Colon', '20a1' ),\n\t\t\t'HRK'\t\t => array( 'Croatia, Kuna', '6b, 6e' ),\n\t\t\t'CUP'\t\t => array( 'Cuba, Pesos', '20b1' ),\n\t\t\t'CZK'\t\t => array( 'Czech Republic, Koruny', '4b, 10d' ),\n\t\t\t'DKK'\t\t => array( 'Denmark, Kroner', '6b, 72' ),\n\t\t\t'DOP'\t\t => array( 'Dominican Republic, Pesos', '52, 44, 24' ),\n\t\t\t'XCD'\t\t => array( 'East Caribbean, Dollars', '24' ),\n\t\t\t'EGP'\t\t => array( 'Egypt, Pounds', '45, 47, 50' ),\n\t\t\t'SVC'\t\t => array( 'El Salvador, Colones', '24' ),\n\t\t\t'EEK'\t\t => array( 'Estonia, Krooni', '6b, 72' ),\n\t\t\t'EUR'\t\t => array( 'Euro', '20ac' ),\n\t\t\t'FKP'\t\t => array( 'Falkland Islands, Pounds', 'a3' ),\n\t\t\t'FJD'\t\t => array( 'Fiji, Dollars', '24' ),\n\t\t\t'GEL'\t\t => array( 'Georgia, Lari', '6c, 61, 72, 69' ),\n\t\t\t'GHC'\t\t => array( 'Ghana, Cedis', 'a2' ),\n\t\t\t'GIP'\t\t => array( 'Gibraltar, Pounds', 'a3' ),\n\t\t\t'GTQ'\t\t => array( 'Guatemala, Quetzales', '51' ),\n\t\t\t'GGP'\t\t => array( 'Guernsey, Pounds', 'a3' ),\n\t\t\t'GYD'\t\t => array( 'Guyana, Dollars', '24' ),\n\t\t\t'HNL'\t\t => array( 'Honduras, Lempiras', '4c' ),\n\t\t\t'HKD'\t\t => array( 'Hong Kong, Dollars', '24' ),\n\t\t\t'HUF'\t\t => array( 'Hungary, Forint', '46, 74' ),\n\t\t\t'ISK'\t\t => array( 'Iceland, Kronur', '6b, 72' ),\n\t\t\t'INR'\t\t => array( 'India, Rupees', '20a8' ),\n\t\t\t'IDR'\t\t => array( 'Indonesia, Rupiahs', '52, 70' ),\n\t\t\t'IRR'\t\t => array( 'Iran, Rials', 'fdfc' ),\n\t\t\t'IMP'\t\t => array( 'Isle of Man, Pounds', 'a3' ),\n\t\t\t'ILS'\t\t => array( 'Israel, New Shekels', '20aa' ),\n\t\t\t'JMD'\t\t => array( 'Jamaica, Dollars', '4a, 24' ),\n\t\t\t'JPY'\t\t => array( 'Japan, Yen', 'a5' ),\n\t\t\t'JEP'\t\t => array( 'Jersey, Pounds', 'a3' ),\n\t\t\t'KZT'\t\t => array( 'Kazakhstan, Tenge', '43b, 432' ),\n\t\t\t'KES'\t\t => array( 'Kenyan Shilling', '4B, 73, 68, 73' ),\n\t\t\t'KWD'\t\t => array( 'Kuwait, Dinar', '4B, 2E, 44, 2E' ),\n\t\t\t'KGS'\t\t => array( 'Kyrgyzstan, Soms', '43b, 432' ),\n\t\t\t'LAK'\t\t => array( 'Laos, Kips', '20ad' ),\n\t\t\t'LVL'\t\t => array( 'Latvia, Lati', '4c, 73' ),\n\t\t\t'LBP'\t\t => array( 'Lebanon, Pounds', 'a3' ),\n\t\t\t'LRD'\t\t => array( 'Liberia, Dollars', '24' ),\n\t\t\t'LTL'\t\t => array( 'Lithuania, Litai', '4c, 74' ),\n\t\t\t'MKD'\t\t => array( 'North Macedonia, Denars', '434, 435, 43d' ),\n\t\t\t'MYR'\t\t => array( 'Malaysia, Ringgits', '52, 4d' ),\n\t\t\t'MUR'\t\t => array( 'Mauritius, Rupees', '20a8' ),\n\t\t\t'MXN'\t\t => array( 'Mexico, Pesos', '24' ),\n\t\t\t'MNT'\t\t => array( 'Mongolia, Tugriks', '20ae' ),\n\t\t\t'MAD'\t\t => array( 'Morocco, Dirhams', '64, 68' ),\n\t\t\t'MZN'\t\t => array( 'Mozambique, Meticais', '4d, 54' ),\n\t\t\t'NAD'\t\t => array( 'Namibia, Dollars', '24' ),\n\t\t\t'NPR'\t\t => array( 'Nepal, Rupees', '20a8' ),\n\t\t\t'ANG'\t\t => array( 'Netherlands Antilles, Guilders (also called Florins)', '192' ),\n\t\t\t'NZD'\t\t => array( 'New Zealand, Dollars', '24' ),\n\t\t\t'NIO'\t\t => array( 'Nicaragua, Cordobas', '43, 24' ),\n\t\t\t'NGN'\t\t => array( 'Nigeria, Nairas', '20a6' ),\n\t\t\t'KPW'\t\t => array( 'North Korea, Won', '20a9' ),\n\t\t\t'NOK'\t\t => array( 'Norway, Krone', '6b, 72' ),\n\t\t\t'OMR'\t\t => array( 'Oman, Rials', 'fdfc' ),\n\t\t\t'PKR'\t\t => array( 'Pakistan, Rupees', '20a8' ),\n\t\t\t'PAB'\t\t => array( 'Panama, Balboa', '42, 2f, 2e' ),\n\t\t\t'PYG'\t\t => array( 'Paraguay, Guarani', '47, 73' ),\n\t\t\t'PEN'\t\t => array( 'Peru, Nuevos Soles', '53, 2f, 2e' ),\n\t\t\t'PHP'\t\t => array( 'Philippines, Pesos', '50, 68, 70' ),\n\t\t\t'PLN'\t\t => array( 'Poland, Zlotych', '7a, 142' ),\n\t\t\t'QAR'\t\t => array( 'Qatar, Rials', 'fdfc' ),\n\t\t\t'RON'\t\t => array( 'Romania, New Lei', '6c, 65, 69' ),\n\t\t\t'RUB'\t\t => array( 'Russia, Rubles', '440, 443, 431' ),\n\t\t\t'SHP'\t\t => array( 'Saint Helena, Pounds', 'a3' ),\n\t\t\t'SAR'\t\t => array( 'Saudi Arabia, Riyals', 'fdfc' ),\n\t\t\t'RSD'\t\t => array( 'Serbia, Dinars', '414, 438, 43d, 2e' ),\n\t\t\t'SCR'\t\t => array( 'Seychelles, Rupees', '20a8' ),\n\t\t\t'SGD'\t\t => array( 'Singapore, Dollars', '24' ),\n\t\t\t'SBD'\t\t => array( 'Solomon Islands, Dollars', '24' ),\n\t\t\t'SOS'\t\t => array( 'Somalia, Shillings', '53' ),\n\t\t\t'ZAR'\t\t => array( 'South Africa, Rand', '52' ),\n\t\t\t'KRW'\t\t => array( 'South Korea, Won', '20a9' ),\n\t\t\t'LKR'\t\t => array( 'Sri Lanka, Rupees', '20a8' ),\n\t\t\t'SEK'\t\t => array( 'Sweden, Kronor', '6b, 72' ),\n\t\t\t'CHF'\t\t => array( 'Switzerland, Francs', '43, 48, 46' ),\n\t\t\t'SRD'\t\t => array( 'Suriname, Dollars', '24' ),\n\t\t\t'SYP'\t\t => array( 'Syria, Pounds', 'a3' ),\n\t\t\t'TWD'\t\t => array( 'Taiwan, New Dollars', '4e, 54, 24' ),\n\t\t\t'THB'\t\t => array( 'Thailand, Baht', 'e3f' ),\n\t\t\t'TTD'\t\t => array( 'Trinidad and Tobago, Dollars', '54, 54, 24' ),\n\t\t\t'TRY'\t\t => array( 'Turkey, Liras', '20BA' ),\n\t\t\t'TVD'\t\t => array( 'Tuvalu, Dollars', '24' ),\n\t\t\t'UAH'\t\t => array( 'Ukraine, Hryvnia', '20b4' ),\n\t\t\t'AED'\t\t => array( 'United Arab Emirates, Dirhams', '64, 68' ),\n\t\t\t'GBP'\t\t => array( 'United Kingdom, Pounds', 'a3' ),\n\t\t\t'USD'\t\t => array( 'United States of America, Dollars', '24' ),\n\t\t\t'UYU'\t\t => array( 'Uruguay, Pesos', '24, 55' ),\n\t\t\t'UZS'\t\t => array( 'Uzbekistan, Sums', '43b, 432' ),\n\t\t\t'VEF'\t\t => array( 'Venezuela, Bolivares Fuertes', '42, 73' ),\n\t\t\t'VND'\t\t => array( 'Vietnam, Dong', '20ab' ),\n\t\t\t'XAF'\t\t => array( 'BEAC, CFA Francs', '46, 43, 46, 41' ),\n\t\t\t'XOF'\t\t => array( 'BCEAO, CFA Francs', '46, 43, 46, 41' ),\n\t\t\t'YER'\t\t => array( 'Yemen, Rials', 'fdfc' ),\n\t\t\t'ZMW'\t\t => array( 'Zimbabwe, Zambian Kwacha', '5a, 24' ),\n\t\t)\n\t);\n}", "title": "" }, { "docid": "cf20a982688dd11445c8599cc19deb04", "score": "0.42032433", "text": "function sitelist_main($config, $civibuild) {\n $config = sitelist_config((array) $config);\n if (isset($config['bldDirs'])) {\n $sites = [];\n foreach ($config['bldDirs'] as $bldDir) {\n $sites = array_merge($sites, sitelist_read_all($bldDir));\n }\n }\n else {\n $sites = sitelist_read_all($civibuild['BLDDIR']);\n }\n\n if (!empty($config['moreSites'])) {\n $remotes = sitelist_fetch_all($config['moreSites']);\n $sites = array_merge($sites, $remotes);\n }\n\n ksort($sites);\n\n $view = sitelist_pick_view($_GET);\n\n if (empty($_GET['filter'])) {\n $view([\n 'config' => $config,\n 'sites' => $sites,\n 'filter' => '',\n ]);\n }\n else {\n $regex = sitelist_create_filter($_GET['filter']);\n $view([\n 'filter' => $_GET['filter'],\n 'config' => $config,\n 'sites' => sitelist_preg_grep_key($sites, $regex),\n ]);\n }\n}", "title": "" }, { "docid": "ef85acc71ffb186bed9d79513b7b7981", "score": "0.4198953", "text": "public function getFacilitiesUsing($start_date = \"\", $end_date = \"\") {\n\t\t$period = date('Y-m', strtotime($end_date));\n\t\t$start_date = date('Y-m-01', strtotime($start_date . \"- 1 month\"));\n\t\t$end_date = date('Y-m-t', strtotime($period . \"- 1 month\"));\n\n\t\t$escm_orders = Escm_Orders::getAll();\n\t\t$list = \"\";\n\t\t$order_list = array();\n\n\t\tif ($escm_orders) {\n\t\t\tforeach ($escm_orders as $order_id) {\n\t\t\t\tarray_push($order_list, $order_id -> cdrr_id);\n\t\t\t}\n\t\t\t$list = \"'\" . implode(\"','\", $order_list) . \"'\";\n\t\t}\n\t\t$cdrrs = Cdrr::getFacilities($start_date, $end_date, $list);\n\t\t$dyn_table = \"<table class='dataTables' border='1' id='patient_listing' cellpadding='5'>\";\n\t\t$dyn_table .= \"<thead><tr><th>Facility Code</th><th>Facility Name</th><th>Facility Type</th><th>County</th></tr></thead>\";\n\t\t$dyn_table .= \"<tbody>\";\n\t\tif ($cdrrs) {\n\t\t\tforeach ($cdrrs as $cdrr) {\n\t\t\t\t$dyn_table .= \"<tr><td>\" . $cdrr -> Facility -> code . \"</td>\";\n\t\t\t\t$dyn_table .= \"<td>\" . $cdrr -> Facility -> name . \"</td>\";\n\t\t\t\t$dyn_table .= \"<td>\" . $cdrr -> Facility -> category . \"</td>\";\n\t\t\t\t$dyn_table .= \"<td>\" . $cdrr -> Facility -> County -> county . \"</td></tr>\";\n\t\t\t}\n\t\t}\n\t\t$dyn_table .= \"</tbody>\";\n\t\t$dyn_table .= \"</table>\";\n\t\techo $dyn_table;\n\t}", "title": "" }, { "docid": "773b43893d2e37fbee11fa79d415afe0", "score": "0.41977695", "text": "private function getFaculties($params)\r\n\t{\r\n\t\treturn 'faculties';\r\n\t}", "title": "" }, { "docid": "8a8fb50c82a1630117eedf2111d743ee", "score": "0.41972238", "text": "public function edit(Church $church)\n {\n if(Gate::allows('church_manage')) {\n $users = User::where('id',Auth::id())->get();\n $days = [\n 'Monday',\n 'Tuesday',\n 'Wednesday',\n 'Thursday',\n 'Friday',\n 'Saturday',\n 'Sunday',\n ];\n }\n elseif (Gate::allows('users_manage')) {\n $users = User::where('id','!=',Auth::id())->get();\n $days = [\n 'Monday',\n 'Tuesday',\n 'Wednesday',\n 'Thursday',\n 'Friday',\n 'Saturday',\n 'Sunday',\n ];\n }\n $church['days'] = json_decode($church->days);\n return view('admin.churchs.edit', compact('church', 'users','days'));\n }", "title": "" }, { "docid": "f991c6e4ee00b1f9a6a14734efa88c4f", "score": "0.4195801", "text": "public function isSetFeeList()\n {\n return !empty($this->_fields['FeeList']['FieldValue']);\n }", "title": "" }, { "docid": "7d272c0e262b9d5beefa81c28e47c123", "score": "0.41944912", "text": "function display_decade_list($data)\n{\n\tglobal $config;\n\t\n\t$decades = array();\n\tforeach ($data->{'@graph'}[0]->dataFeedElement as $dataFeedElement)\n\t{\n\t\tif (isset($dataFeedElement->item->datePublished))\n\t\t{\n\t\t\t$year = substr($dataFeedElement->item->datePublished, 0, 4);\n\t\t\tif (is_numeric($year))\n\t\t\t{\n\t\t\t\t$decade = floor($year/10);\n\t\t\t\n\t\t\t\tif (!isset($decades[$decade]))\n\t\t\t\t{\n\t\t\t\t\t$decades[$decade] = array();\n\t\t\t\t}\n\t\t\t\tif (!isset($decades[$decade][$year]))\n\t\t\t\t{\n\t\t\t\t\t$decades[$decade][$year] = array();\n\t\t\t\t}\n\t\t\t\t$decades[$decade][$year][] = $dataFeedElement->item;\n\t\t\t}\n\t\t}\n\t}\t\n\n\t//print_r($decades);\n\t\n\tksort($decades);\n\t\n\t$html = '';\n\t\n\tforeach ($decades as $decade => $years)\n\t{\n\t\t$html .= '<details>';\n\t\t$html .= '<summary>';\n\t\t$html .= '<span style=\"font-size:1.5em;\">' . ($decade * 10) . '</span>';\n\t\t$html .= '</summary>' . \"\\n\";\n\t\t$html .= '<section class=\"works\">';\n\t\t\n\t\tksort($years);\n\t\t\n\t\tforeach ($years as $year => $items)\n\t\t{\n\t\t\t$html .= '<div class=\"works year\">' . $year . '</div>';\n\t\t\t\n\t\t\tforeach ($items as $item)\n\t\t\t{\n\t\t\t\t$html .= '<div class=\"works\">';\n\t\t\t\t\n\t\t\t\tif (isset($item->thumbnailUrl))\n\t\t\t\t{\n\t\t\t\t\t$html .= '<a class=\"works\" href=\"reference/' . str_replace('biostor:', '', $item->{'@id'}) . '\"';\n\t\t\t\t\t\n\t\t\t\t\tif (isset($item->name))\n\t\t\t\t\t{\n\t\t\t\t\t\t$title = get_literal($item->name);\n\t\t\t\t\t\t$html .= ' title=\"' . addcslashes($title, '\"') . '\"';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$html .='>';\n\t\t\t\t\t\t\t\n\t\t\t\t\tif ($config['use_cloudimage'])\n\t\t\t\t\t{\n\t\t\t\t\t\t$html .= '<img loading=\"lazy\" class=\"works\" src=\"https://aezjkodskr.cloudimg.io/' . $item->thumbnailUrl . '?height=200\">';\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$html .= '<img height=\"200\" loading=\"lazy\" class=\"works\" src=\"' . $item->thumbnailUrl . '\">';\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t$html .= '</a>';\n\t\t\t\t}\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$html .= '</div>';\n\t\t\t}\n\t\t}\n\t\t\n\t\t$html .= '</section>';\n\t\t$html .= '</details>';\n\t\n\t}\n\t\n\techo $html;\n\t\n/*\t\t\t\tvar template_decades = `\n\t\t\t\t\t<% for(var decade in data) {%>\n\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t<div class=\"collapsible-header\"><%= (decade * 10) %></div>\n\t\t\t\t\t\t\t<div class=\"collapsible-body\">\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<section class=\"works\">\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<% for (var year in data[decade]) { %>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<div class=\"works year teal lighten-2 \">\n\t\t\t\t\t\t\t\t\t\t<%= year %>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<% for (var i in data[decade][year]) { %>\n\t\t\t\t\t\t\t\t\t\t<div class=\"works\">\n\t\t\t\t\t\t\t\t\t\t\t<!-- <%= data[decade][year][i].name %> -->\n\t\t\t\t\t\t\t\t\t\t\t<a class=\"works\" href=\"reference/<%- i.replace(/biostor-/, '') %>\">\n\t\t\t\t\t\t\t\t\t\t\t<img class=\"works\" src=\"https://aezjkodskr.cloudimg.io/<%= data[decade][year][i].thumbnailUrl %>?height=200\">\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t<span class=\"works\"><%= data[decade][year][i].name %></span>\n\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<% } %>\n\n\t\t\t\t\t\t\t\t<% } %>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</section>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\n\t\t\t\n\t\t\t\t\t<% } %>\n*/\t\n\t\n\n\t/*\n\t$html = '';\t\n\t\n\t$html .= '<p>' . $data->{'@graph'}[0]->description . '</p>';\n\t\n\tforeach ($data->{'@graph'}[0]->dataFeedElement as $dataFeedElement)\n\t{\n\t\t$html .= '<article>';\n\t\t\n\t\t$html .= '<div class=\"thumbnail\">';\n\t\tif (isset($dataFeedElement->item->thumbnailUrl))\n\t\t{\n\t\t\t//$html .= '<img src=\"' . $dataFeedElement->item->thumbnailUrl . '\">';\n\t\t\t$html .= '<img src=\"https://aezjkodskr.cloudimg.io/' . $dataFeedElement->item->thumbnailUrl . '?height=200\">';\n\t\t}\t\t\n\t\t$html .= '</div>';\n\t\t\n\t\t$html .= '<div style=\"margin-left:100px;\">';\n\t\t\n\t\t$html .= '<div style=\"font-size:1.2em;line-height:1.2em;display:block;padding-bottom:1em;\">' ;\n\t\t$html .= '<a href=\"reference/' . str_replace('biostor:', '', $dataFeedElement->item->{'@id'}) . '\">';\n\t\t$html .= $dataFeedElement->item->name;\t\n\t\t$html .= '</a>';\n\t\t\n\t\t$html .= '</div>';\n\t\t\n\t\tif (isset($dataFeedElement->item->description))\n\t\t{\n\t\t\t$html .= '<div style=\"color:rgb(64,64,64)\">';\n\t\t\t$html .= $dataFeedElement->item->description;\n\t\t\t$html .= '</div>';\n\t\t}\n\t\t\n\t\t// Dates for this record\n\t\t$html .= '<div style=\"font-size:0.7em;\">';\n\t\tif (isset($dataFeedElement->dateCreated))\n\t\t{\n\t\t\t$html .= 'Created: ' . $dataFeedElement->dateCreated;\n\t\t}\t\t\n\t\tif (isset($dataFeedElement->dateModified))\n\t\t{\n\t\t\t$html .= ', modified: ' . $dataFeedElement->dateModified;\n\t\t}\t\t\n\t\t$html .= '<div>';\n\t\t\n\t\t$html .= '</div>';\n\t\t\n\t\t$html .= '</article>';\n\t}\n\t\n\techo $html;\n\t*/\n}", "title": "" }, { "docid": "0f7470f35320e6f5a6993710b35c9f1a", "score": "0.41908246", "text": "function list_countries(){\n\treturn array(\n \n\t\"AF\" => \"Afghanistan\",\n\t\"AL\" => \"Albania\",\n\t\"DZ\" => \"Algeria\",\n\t\"AS\" => \"American Samoa\",\n\t\"AD\" => \"Andorra\",\n\t\"AO\" => \"Angola\",\n\t\"AI\" => \"Anguilla\",\n\t\"AQ\" => \"Antarctica\",\n\t\"AG\" => \"Antigua And Barbuda\",\n\t\"AR\" => \"Argentina\",\n\t\"AM\" => \"Armenia\",\n\t\"AW\" => \"Aruba\",\n\t\"AU\" => \"Australia\",\n\t\"AT\" => \"Austria\",\n\t\"AZ\" => \"Azerbaijan\",\n\t\"BS\" => \"Bahamas\",\n\t\"BH\" => \"Bahrain\",\n\t\"BD\" => \"Bangladesh\",\n\t\"BB\" => \"Barbados\",\n\t\"BY\" => \"Belarus\",\n\t\"BE\" => \"Belgium\",\n\t\"BZ\" => \"Belize\",\n\t\"BJ\" => \"Benin\",\n\t\"BM\" => \"Bermuda\",\n\t\"BT\" => \"Bhutan\",\n\t\"BO\" => \"Bolivia\",\n\t\"BA\" => \"Bosnia And Herzegowina\",\n\t\"BW\" => \"Botswana\",\n\t\"BV\" => \"Bouvet Island\",\n\t\"BR\" => \"Brazil\",\n\t\"IO\" => \"British Indian Ocean Territory\",\n\t\"BN\" => \"Brunei Darussalam\",\n\t\"BG\" => \"Bulgaria\",\n\t\"BF\" => \"Burkina Faso\",\n\t\"BI\" => \"Burundi\",\n\t\"KH\" => \"Cambodia\",\n\t\"CM\" => \"Cameroon\",\n\t\"CA\" => \"Canada\",\n\t\"CV\" => \"Cape Verde\",\n\t\"KY\" => \"Cayman Islands\",\n\t\"CF\" => \"Central African Republic\",\n\t\"TD\" => \"Chad\",\n\t\"CL\" => \"Chile\",\n\t\"CN\" => \"China\",\n\t\"CX\" => \"Christmas Island\",\n\t\"CC\" => \"Cocos (Keeling) Islands\",\n\t\"CO\" => \"Colombia\",\n\t\"KM\" => \"Comoros\",\n\t\"CG\" => \"Congo\",\n\t\"CD\" => \"Congo, The Democratic Republic Of The\",\n\t\"CK\" => \"Cook Islands\",\n\t\"CR\" => \"Costa Rica\",\n\t\"CI\" => \"Cote D'Ivoire\",\n\t\"HR\" => \"Croatia (Local Name: Hrvatska)\",\n\t\"CU\" => \"Cuba\",\n\t\"CY\" => \"Cyprus\",\n\t\"CZ\" => \"Czech Republic\",\n\t\"DK\" => \"Denmark\",\n\t\"DJ\" => \"Djibouti\",\n\t\"DM\" => \"Dominica\",\n\t\"DO\" => \"Dominican Republic\",\n\t\"TP\" => \"East Timor\",\n\t\"EC\" => \"Ecuador\",\n\t\"EG\" => \"Egypt\",\n\t\"SV\" => \"El Salvador\",\n\t\"GQ\" => \"Equatorial Guinea\",\n\t\"ER\" => \"Eritrea\",\n\t\"EE\" => \"Estonia\",\n\t\"ET\" => \"Ethiopia\",\n\t\"FK\" => \"Falkland Islands (Malvinas)\",\n\t\"FO\" => \"Faroe Islands\",\n\t\"FJ\" => \"Fiji\",\n\t\"FI\" => \"Finland\",\n\t\"FR\" => \"France\",\n\t\"FX\" => \"France, Metropolitan\",\n\t\"GF\" => \"French Guiana\",\n\t\"PF\" => \"French Polynesia\",\n\t\"TF\" => \"French Southern Territories\",\n\t\"GA\" => \"Gabon\",\n\t\"GM\" => \"Gambia\",\n\t\"GE\" => \"Georgia\",\n\t\"DE\" => \"Germany\",\n\t\"GH\" => \"Ghana\",\n\t\"GI\" => \"Gibraltar\",\n\t\"GR\" => \"Greece\",\n\t\"GL\" => \"Greenland\",\n\t\"GD\" => \"Grenada\",\n\t\"GP\" => \"Guadeloupe\",\n\t\"GU\" => \"Guam\",\n\t\"GT\" => \"Guatemala\",\n\t\"GN\" => \"Guinea\",\n\t\"GW\" => \"Guinea-Bissau\",\n\t\"GY\" => \"Guyana\",\n\t\"HT\" => \"Haiti\",\n\t\"HM\" => \"Heard And Mc Donald Islands\",\n\t\"VA\" => \"Holy See (Vatican City State)\",\n\t\"HN\" => \"Honduras\",\n\t\"HK\" => \"Hong Kong\",\n\t\"HU\" => \"Hungary\",\n\t\"IS\" => \"Iceland\",\n\t\"IN\" => \"India\",\n\t\"ID\" => \"Indonesia\",\n\t\"IR\" => \"Iran (Islamic Republic Of)\",\n\t\"IQ\" => \"Iraq\",\n\t\"IE\" => \"Ireland\",\n\t\"IL\" => \"Israel\",\n\t\"IT\" => \"Italy\",\n\t\"JM\" => \"Jamaica\",\n\t\"JP\" => \"Japan\",\n\t\"JO\" => \"Jordan\",\n\t\"KZ\" => \"Kazakhstan\",\n\t\"KE\" => \"Kenya\",\n\t\"KI\" => \"Kiribati\",\n\t\"KP\" => \"Korea, Democratic People's Republic Of\",\n\t\"KR\" => \"Korea, Republic Of\",\n\t\"KW\" => \"Kuwait\",\n\t\"KG\" => \"Kyrgyzstan\",\n\t\"LA\" => \"Lao People's Democratic Republic\",\n\t\"LV\" => \"Latvia\",\n\t\"LB\" => \"Lebanon\",\n\t\"LS\" => \"Lesotho\",\n\t\"LR\" => \"Liberia\",\n\t\"LY\" => \"Libyan Arab Jamahiriya\",\n\t\"LI\" => \"Liechtenstein\",\n\t\"LT\" => \"Lithuania\",\n\t\"LU\" => \"Luxembourg\",\n\t\"MO\" => \"Macau\",\n\t\"MK\" => \"Macedonia, Former Yugoslav Republic Of\",\n\t\"MG\" => \"Madagascar\",\n\t\"MW\" => \"Malawi\",\n\t\"MY\" => \"Malaysia\",\n\t\"MV\" => \"Maldives\",\n\t\"ML\" => \"Mali\",\n\t\"MT\" => \"Malta\",\n\t\"MH\" => \"Marshall Islands\",\n\t\"MQ\" => \"Martinique\",\n\t\"MR\" => \"Mauritania\",\n\t\"MU\" => \"Mauritius\",\n\t\"YT\" => \"Mayotte\",\n\t\"MX\" => \"Mexico\",\n\t\"FM\" => \"Micronesia, Federated States Of\",\n\t\"MD\" => \"Moldova, Republic Of\",\n\t\"MC\" => \"Monaco\",\n\t\"MN\" => \"Mongolia\",\n\t\"MS\" => \"Montserrat\",\n\t\"MA\" => \"Morocco\",\n\t\"MZ\" => \"Mozambique\",\n\t\"MM\" => \"Myanmar\",\n\t\"NA\" => \"Namibia\",\n\t\"NR\" => \"Nauru\",\n\t\"NP\" => \"Nepal\",\n\t\"NL\" => \"Netherlands\",\n\t\"AN\" => \"Netherlands Antilles\",\n\t\"NC\" => \"New Caledonia\",\n\t\"NZ\" => \"New Zealand\",\n\t\"NI\" => \"Nicaragua\",\n\t\"NE\" => \"Niger\",\n\t\"NG\" => \"Nigeria\",\n\t\"NU\" => \"Niue\",\n\t\"NF\" => \"Norfolk Island\",\n\t\"MP\" => \"Northern Mariana Islands\",\n\t\"NO\" => \"Norway\",\n\t\"OM\" => \"Oman\",\n\t\"PK\" => \"Pakistan\",\n\t\"PW\" => \"Palau\",\n\t\"PA\" => \"Panama\",\n\t\"PG\" => \"Papua New Guinea\",\n\t\"PY\" => \"Paraguay\",\n\t\"PE\" => \"Peru\",\n\t\"PH\" => \"Philippines\",\n\t\"PN\" => \"Pitcairn\",\n\t\"PL\" => \"Poland\",\n\t\"PT\" => \"Portugal\",\n\t\"PR\" => \"Puerto Rico\",\n\t\"QA\" => \"Qatar\",\n\t\"RE\" => \"Reunion\",\n\t\"RO\" => \"Romania\",\n\t\"RU\" => \"Russian Federation\",\n\t\"RW\" => \"Rwanda\",\n\t\"KN\" => \"Saint Kitts And Nevis\",\n\t\"LC\" => \"Saint Lucia\",\n\t\"VC\" => \"Saint Vincent And The Grenadines\",\n\t\"WS\" => \"Samoa\",\n\t\"SM\" => \"San Marino\",\n\t\"ST\" => \"Sao Tome And Principe\",\n\t\"SA\" => \"Saudi Arabia\",\n\t\"SN\" => \"Senegal\",\n\t\"SC\" => \"Seychelles\",\n\t\"SL\" => \"Sierra Leone\",\n\t\"SG\" => \"Singapore\",\n\t\"SK\" => \"Slovakia (Slovak Republic)\",\n\t\"SI\" => \"Slovenia\",\n\t\"SB\" => \"Solomon Islands\",\n\t\"SO\" => \"Somalia\",\n\t\"ZA\" => \"South Africa\",\n\t\"GS\" => \"South Georgia, South Sandwich Islands\",\n\t\"ES\" => \"Spain\",\n\t\"LK\" => \"Sri Lanka\",\n\t\"SH\" => \"St. Helena\",\n\t\"PM\" => \"St. Pierre And Miquelon\",\n\t\"SD\" => \"Sudan\",\n\t\"SR\" => \"Suriname\",\n\t\"SJ\" => \"Svalbard And Jan Mayen Islands\",\n\t\"SZ\" => \"Swaziland\",\n\t\"SE\" => \"Sweden\",\n\t\"CH\" => \"Switzerland\",\n\t\"SY\" => \"Syrian Arab Republic\",\n\t\"TW\" => \"Taiwan\",\n\t\"TJ\" => \"Tajikistan\",\n\t\"TZ\" => \"Tanzania, United Republic Of\",\n\t\"TH\" => \"Thailand\",\n\t\"TG\" => \"Togo\",\n\t\"TK\" => \"Tokelau\",\n\t\"TO\" => \"Tonga\",\n\t\"TT\" => \"Trinidad And Tobago\",\n\t\"TN\" => \"Tunisia\",\n\t\"TR\" => \"Turkey\",\n\t\"TM\" => \"Turkmenistan\",\n\t\"TC\" => \"Turks And Caicos Islands\",\n\t\"TV\" => \"Tuvalu\",\n\t\"UG\" => \"Uganda\",\n\t\"UA\" => \"Ukraine\",\n\t\"AE\" => \"United Arab Emirates\",\n\t\"GB\" => \"United Kingdom\",\n\t\"US\" => \"United States\",\n\t\"UM\" => \"United States Minor Outlying Islands\",\n\t\"UY\" => \"Uruguay\",\n\t\"UZ\" => \"Uzbekistan\",\n\t\"VU\" => \"Vanuatu\",\n\t\"VE\" => \"Venezuela\",\n\t\"VN\" => \"Viet Nam\",\n\t\"VG\" => \"Virgin Islands (British)\",\n\t\"VI\" => \"Virgin Islands (U.S.)\",\n\t\"WF\" => \"Wallis And Futuna Islands\",\n\t\"EH\" => \"Western Sahara\",\n\t\"YE\" => \"Yemen\",\n\t\"YU\" => \"Yugoslavia\",\n\t\"ZM\" => \"Zambia\",\n\t\"ZW\" => \"Zimbabwe\");\n}", "title": "" }, { "docid": "6ca37de61fab6cffd76fcebac7aecc01", "score": "0.41857612", "text": "function getClientBranhcesLists($cid)\n{\n // Add DB Connection\n require('./app/core/db.php');\n $sql = \" SELECT * FROM bank_branches WHERE banks_id = '$cid' \";\n $result = $con->query($sql);\n if ($result->num_rows > 0) {\n while ($row = $result->fetch_assoc()) {\n echo '<option value=\"'.$row['id'].'\">'.$row['name'].'</option>';\n }\n }\n $con->close();\n}", "title": "" }, { "docid": "9feeadbc7cabd6534fc7e59defb081d8", "score": "0.41834515", "text": "public function getFloorplanEntries();", "title": "" }, { "docid": "07cd47119f2aef3336fa066f7f7632fa", "score": "0.41786492", "text": "function getListeChamps()\n{\n\t// ATTENTION, respecter l'ordre des champs de la table dans la base de données pour construire laListeChamp\n\t$laListeChamps[]=new dbChamp(\"Grp_id\", \"entier\", \"get_id\", \"set_id\");\n\t$laListeChamps[]=new dbChamp(\"Grp_titre\", \"text\", \"get_titre\", \"set_titre\");\n\t$laListeChamps[]=new dbChamp(\"Grp_desc\", \"text\", \"get_desc\", \"set_desc\");\n\t$laListeChamps[]=new dbChamp(\"Grp_ordre\", \"entier\", \"get_ordre\", \"set_ordre\");\n\treturn($laListeChamps);\n}", "title": "" }, { "docid": "a5f369356bd64fda54cff7c5de5f7f16", "score": "0.41760293", "text": "function print_budget_insertion_fees($cid = 0)\r\n {\r\n global $ilance, $phrase, $show, $ilconfig;\r\n $htmlinsertionfees = '';\r\n $show['budgetinsertionfees'] = 1;\r\n $sqlinsertions = $ilance->db->query(\"\r\n SELECT budgetid, budgetgroup, title, fieldname, budgetfrom, budgetto, insertiongroup, sort\r\n FROM \" . DB_PREFIX . \"budget\r\n WHERE budgetgroup = '\" . $ilance->db->escape_string($ilance->categories->budgetgroup($cid)) . \"'\r\n ORDER BY budgetfrom ASC\r\n \", 0, null, __FILE__, __LINE__);\r\n if ($ilance->db->num_rows($sqlinsertions) > 0)\r\n {\r\n while ($res = $ilance->db->fetch_array($sqlinsertions))\r\n {\r\n if ($res['budgetto'] == '-1')\r\n {\r\n $thefee = $this->calculate_insertion_fee_in_budget_group($res['insertiongroup']);\r\n if ($thefee == 0)\r\n {\r\n $thefee = '{_free}';\r\n }\r\n else\r\n {\r\n $thefee = $ilance->currency->format($this->calculate_insertion_fee_in_budget_group($res['insertiongroup']));\r\n }\r\n $htmlinsertionfees .= '<tr class=\"alt1\"><td valign=\"top\">' . stripslashes($res['title']) . ' (' . $ilance->currency->format($res['budgetfrom']) . ' {_or_more})</td><td valign=\"top\"><strong>' . $thefee . '</strong></td></tr>';\r\n }\r\n else\r\n {\r\n $thefee = $this->calculate_insertion_fee_in_budget_group($res['insertiongroup']);\r\n if ($thefee == 0)\r\n {\r\n $thefee = '{_free}';\r\n }\r\n else\r\n {\r\n $thefee = $ilance->currency->format($this->calculate_insertion_fee_in_budget_group($res['insertiongroup']));\r\n }\r\n $htmlinsertionfees .= '<tr class=\"alt1\"><td valign=\"top\">' . stripslashes($res['title']) . ' (' . $ilance->currency->format($res['budgetfrom']) . ' - ' . $ilance->currency->format($res['budgetto']) . ')</td><td valign=\"top\"><strong>' . $thefee . '</strong></td></tr>';\r\n } \r\n }\r\n $htmlinsertionfees .= '<tr><td valign=\"top\" colspan=\"2\"><span class=\"gray\">{_you_may_be_required_to_pay_this_fee_in_full_before_public_visibility}</span></td></tr>';\r\n }\r\n else \r\n {\r\n $show['budgetinsertionfees'] = 0;\r\n $htmlinsertionfees .= '<tr><td valign=\"top\" colspan=\"2\"><span class=\"gray\">{_no_insertion_fees_within_this_category}</span></td></tr>';\t\r\n }\r\n\t\tif (!empty($_SESSION['ilancedata']['user']['userid']) AND $_SESSION['ilancedata']['user']['userid'] > 0 AND $ilance->permissions->check_access($_SESSION['ilancedata']['user']['userid'], 'insexempt') == 'yes')\r\n\t\t{\r\n\t\t\t$htmlinsertionfees = '<tr><td valign=\"top\" colspan=\"2\"><span class=\"gray\">{_you_are_exempt_from_insertion_fees}</span></td></tr>';\r\n\t\t}\r\n $listingfees = '<div class=\"block-wrapper\">\r\n<div class=\"block2\">\r\n\t<div class=\"block2-top\">\r\n\t\t<div class=\"block2-right\">\r\n\t\t\t<div class=\"block2-left\"></div>\r\n\t\t</div>\r\n\t</div>\r\n\t<div class=\"block2-header\">{_budget} {_insertion_listing_fees}</div>\r\n\t<div class=\"block2-content\" style=\"padding:0px\">\r\n\t<table border=\"0\" cellpadding=\"' . $ilconfig['table_cellpadding'] . '\" cellspacing=\"' . $ilconfig['table_cellspacing'] . '\" width=\"100%\" dir=\"' . $ilconfig['template_textdirection'] . '\">\r\n\t<tr class=\"alt2\">\r\n\t\t<td valign=\"top\"><strong>{_budget}</strong></td>\r\n\t\t<td valign=\"top\" nowrap=\"nowrap\"><strong>{_insertion_fee_amount}</strong></td>\r\n\t</tr>\r\n\t' . $htmlinsertionfees . '\r\n\t</table></div>\r\n\t<div class=\"block2-footer\">\r\n\t\t<div class=\"block2-right\">\r\n\t\t\t\t<div class=\"block2-left\"></div>\r\n\t\t</div>\r\n\t</div>\r\n\t</div>\r\n</div>';\r\n return $listingfees;\r\n }", "title": "" }, { "docid": "b248bc089d2ad4160416622d5ec37998", "score": "0.41710138", "text": "protected function getList($list)\n\t{\n\t\treturn $this->project->getOption('monetization.email_optin.mailchimp.list');\n\t}", "title": "" }, { "docid": "84bbf6c8424f3dd8c8f9e41d563b7be6", "score": "0.4168682", "text": "public function withFeeList()\n {\n foreach (func_get_args() as $FeeList)\n {\n $this->_fields['FeeList']['FieldValue'][] = $FeeList;\n }\n return $this;\n }", "title": "" }, { "docid": "8fdce09960aec0a8d4d4ea731b5afd8f", "score": "0.41621554", "text": "function get_non_rfc_lists() {\n global $username, $data_dir;\n $lists = getPref($data_dir, $username, 'non_rfc_lists', array());\n $new_lists = array();\n if (!empty($lists)) {\n $lists = explode(':', $lists);\n foreach ($lists as $list) {\n list($index, $list_addr) = explode('_', $list);\n if ((!empty($index) || $index === '0') && !empty($list_addr))\n $new_lists[$index] = $list_addr;\n }\n }\n $lists = $new_lists;\n sort($lists);\n return $lists;\n}", "title": "" }, { "docid": "a801ee097120df0d38adc7445fd70c68", "score": "0.41599417", "text": "public function getForeignReferList($isNullable = false, $is4Filter = false)\n \t{\n \t\t$language = Yii::app()->language;\n\n \t\tif ($is4Filter) {\n \t\t\t$isNullable = false;\n \t\t}\n \t\tif ($isNullable) {\n \t\t\t$result[] = array('key' => '', 'title' => '');\n \t\t}\n \t\t$result = Yii::app()->db->createCommand()->select('id as key, title as title')->from(self::tableName())->queryAll();\n \t\tif ($is4Filter) {\n \t\t\t$newResult = array();\n \t\t\tforeach ($result as $r) {\n \t\t\t\t$newResult[$r['key']] = $r['title'];\n \t\t\t}\n\n \t\t\treturn $newResult;\n \t\t}\n\n \t\treturn $result;\n \t}", "title": "" }, { "docid": "95620c691b25daf0f1d161c9b1012fdf", "score": "0.41550857", "text": "public function getFundDonationlist($where='',$i_start=null,$i_limit=null,$s_order_by='1')\n {\n \n $limit = (is_numeric($i_start) && is_numeric($i_limit))?\" Limit \".intval($i_start).\",\".intval($i_limit):'';\n\t\t\n $sql = \" SELECT P.*,\n\t \t\t\t\t\t PF.id as donation_id,\n\t\t\t\t\t\t PF.dt_created_on as donation_dt,\n\t\t\t\t\t\t PF.f_amount,\n\t\t\t\t\t\t CONCAT(U.s_first_name,' ',U.s_last_name) as s_profile_name,\n\t\t\t\t\t\t PF.i_user_id as post_owner_user_id,\n\t\t\t\t\t\t U.s_profile_photo,\n\t\t\t\t\t\t U.e_gender,\n\t\t\t\t\t\t PF.e_gift_aid_my_donation,\n\t\t\t\t\t\t PF.e_dnt_disclose_name,\n\t\t\t\t\t\t U.s_profile_photo,\n\t\t\t\t\t\t U.e_gender\n\t\t\n\t\t\t\t\t\tFROM {$this->db->PROJECT_DONATION_HISTORY} PF\n\t\t\t\t\t\tLEFT JOIN {$this->db->PROJECT} P ON P.id = PF.i_project_id\n\t\t\t\t\t\tLEFT JOIN {$this->db->USERS} U ON PF.i_user_id = U.id\n\t\t\t\t\t\t{$where} \n\t\t\t\t\t\tORDER BY PF.id DESC {$limit}\";\n\n $query = $this->db->query($sql); \n $result_arr = $query->result_array(); //pr($result_arr,1);\n\t\t\n\t\t\n\t\t\n return $result_arr;\n }", "title": "" }, { "docid": "b33532b5c4e80a3edf03f90a468eb86f", "score": "0.41547412", "text": "public function fetchBilanClosedList($date = null)\n\t{\n\t $select = $this->dba->select()\n\t\t\t\t\t->from('treasury_balance_sheet')\n\t\t\t\t\t->where('club_id = ?', $this->clubId)\n\t\t\t\t\t->where('status = ?', 'closed')\n\t\t\t\t\t->order('date ASC');\n\t\t$rowset = $this->dba->fetchAll($select);\n\t\t\n\t\t$list = array();\n\t\tforeach ($rowset as $row)\n\t\t $list[$row['date']] = $row['balance_sheet_id'];\n\t\treturn ($list);\n\t}", "title": "" }, { "docid": "ef797cd3b826c9f81d1d949db5845dd4", "score": "0.41532782", "text": "public function getBankList() {\n\t\t$banks=false;\n\t\t$lista=array();\n\t\t$cache_id = 'bankList2';\n\t\t$minCache=1440; // 60*24 = dia (1440)\n\t\ttry {\t\n\t\t\t\tif (null === $banks = Cache::get($cache_id)) {\n\t\t\t\t\t$auth=new AuthPtP;\n\t\t\t\t\t$soapClient = new SoapClient($this->wsdl, array('encoding' => $this->encoding));\n\t\t\t\t\t$result = $soapClient->getBankList($auth->getAuth());\n\t\t\t\t\t$banks = $result->getBankListResult->item;\n\t\t\t\t\tCache::put($cache_id, $banks , $minCache);\n\t\t\t\t}\n\t } catch (\\Exception $e) {\n\t \techo $e->getMessage();\n\t }\n $banks = (is_array($banks) ? $banks : array());\n\t\tforeach($banks as $bank){\n\t\t\t$bank=(array)$bank;\n\t\t\t$lista[$bank['bankCode']]=$bank['bankName'];\n\t\t}\n\t\t\n\t\treturn $lista;\n\t}", "title": "" }, { "docid": "157fec17b99436f31919e3937d5caf6c", "score": "0.414974", "text": "public function getAffiliateContributions(Affiliate $affiliate = null)\n {\n $this->authorize('update',new Contribution);\n $contributions = Contribution::where('affiliate_id', $affiliate->id)->orderBy('month_year', 'DESC')->get();\n $reims = Reimbursement::where('affiliate_id', $affiliate->id)->get();\n $group = [];\n $group_reim = [];\n foreach ($reims as $reim)\n $group_reim[$reim->month_year] = $reim;\n $fondoret = 0;\n $quotaaid = 0;\n foreach ($contributions as $contribution) {\n $group[$contribution->month_year] = $contribution;\n $fondoret = $contribution->retirement_fund + $fondoret;\n $quotaaid = $contribution->mortuary_quota + $quotaaid;\n }\n $total = $fondoret + $quotaaid;\n $dateentry = Util::getStringDate($affiliate->date_entry);\n $categories = Category::get();\n $end = explode('-', $affiliate->date_entry);\n $newcontributions = [];\n $month_end = $end[1];\n $year_end = $end[0];\n $month_start = (date('m') - 1);\n $year_start = date('Y');\n $last_contribution = Contribution::where('affiliate_id',$affiliate->id)->orderBy('month_year','desc')->first(); \n $summary = array(\n 'fondoret' => $fondoret,\n 'quotaaid' => $quotaaid,\n 'total' => $total,\n 'dateentry' => $dateentry\n );\n $cities = City::all()->pluck('first_shortened', 'id');\n $cities_objects = City::all();\n $birth_cities = City::all()->pluck('name', 'id');\n //get Commitment data\n $commitment = ContributionCommitment::where('affiliate_id',$affiliate->id)->where('state','ALTA')->first(); \n if(!isset($commitment->id))\n {\n $commitment = new ContributionCommitment();\n $commitment->id = 0;\n $commitment->affiliate_id = $affiliate->id;\n }\n //RATES\n $rate = ContributionRate::where('month_year',date('Y').'-'.date('m').'-01')->first();\n $data = [\n 'contributions' => $group,\n 'reims' => $group_reim,\n 'affiliate_id' => $affiliate->id,\n 'categories' => $categories,\n 'year_start' => $year_start,\n 'year_end' => $year_end,\n 'summary' => $summary,\n 'affiliate' => $affiliate,\n 'cities' => $cities,\n 'cities_objects' => $cities_objects,\n 'birth_cities' => $birth_cities,\n 'new_contributions' => self::getMonthContributions($affiliate->id),\n 'last_quotable' => $last_contribution->quotable ?? 0,\n 'commitment' => $commitment,\n 'today_date' => date('Y-m-d'),\n 'rate' => $rate,\n ];\n //return date('Y-m-d');\n return view('contribution.affiliate_contributions_edit', $data);\n }", "title": "" }, { "docid": "7f407aa49c6828674dc0d29cd2cf0b7e", "score": "0.41480327", "text": "function countriesList(){\n\t\treturn array(\"Afghanistan\",\"Albania\",\"Algeria\",\"Andorra\",\"Angola\",\"Antigua and Barbuda\",\"Argentina\",\"Armenia\",\"Australia\",\"Austria\",\"Azerbaijan\",\"Bahamas\",\"Bahrain\",\"Bangladesh\",\"Barbados\",\"Belarus\",\"Belgium\",\"Belize\",\"Benin\",\"Bhutan\",\"Bolivia\",\"Bosnia and Herzegovina\",\"Botswana\",\"Brazil\",\"Brunei\",\"Bulgaria\",\"Burkina Faso\",\"Burundi\",\"Cambodia\",\"Cameroon\",\"Canada\",\"Cape Verde\",\"Central African Republic\",\"Chad\",\"Chile\",\"China\",\"Colombi\",\"Comoros\",\"Congo (Brazzaville)\",\"Congo\",\"Costa Rica\",\"Cote d'Ivoire\",\"Croatia\",\"Cuba\",\"Cyprus\",\"Czech Republic\",\"Denmark\",\"Djibouti\",\"Dominica\",\"Dominican Republic\",\"East Timor (Timor Timur)\",\"Ecuador\",\"Egypt\",\"El Salvador\",\"Equatorial Guinea\",\"Eritrea\",\"Estonia\",\"Ethiopia\",\"Fiji\",\"Finland\",\"France\",\"Gabon\",\"Gambia, The\",\"Georgia\",\"Germany\",\"Ghana\",\"Greece\",\"Grenada\",\"Guatemala\",\"Guinea\",\"Guinea-Bissau\",\"Guyana\",\"Haiti\",\"Honduras\",\"Hungary\",\"Iceland\",\"India\",\"Indonesia\",\"Iran\",\"Iraq\",\"Ireland\",\"Israel\",\"Italy\",\"Jamaica\",\"Japan\",\"Jordan\",\"Kazakhstan\",\"Kenya\",\"Kiribati\",\"Korea, North\",\"Korea, South\",\"Kuwait\",\"Kyrgyzstan\",\"Laos\",\"Latvia\",\"Lebanon\",\"Lesotho\",\"Liberia\",\"Libya\",\"Liechtenstein\",\"Lithuania\",\"Luxembourg\",\"Macedonia\",\"Madagascar\",\"Malawi\",\"Malaysia\",\"Maldives\",\"Mali\",\"Malta\",\"Marshall Islands\",\"Mauritania\",\"Mauritius\",\"Mexico\",\"Micronesia\",\"Moldova\",\"Monaco\",\"Mongolia\",\"Morocco\",\"Mozambique\",\"Myanmar\",\"Namibia\",\"Nauru\",\"Nepa\",\"Netherlands\",\"New Zealand\",\"Nicaragua\",\"Niger\",\"Nigeria\",\"Norway\",\"Oman\",\"Pakistan\",\"Palau\",\"Panama\",\"Papua New Guinea\",\"Paraguay\",\"Peru\",\"Philippines\",\"Poland\",\"Portugal\",\"Qatar\",\"Romania\",\"Russia\",\"Rwanda\",\"Saint Kitts and Nevis\",\"Saint Lucia\",\"Saint Vincent\",\"Samoa\",\"San Marino\",\"Sao Tome and Principe\",\"Saudi Arabia\",\"Senegal\",\"Serbia and Montenegro\",\"Seychelles\",\"Sierra Leone\",\"Singapore\",\"Slovakia\",\"Slovenia\",\"Solomon Islands\",\"Somalia\",\"South Africa\",\"Spain\",\"Sri Lanka\",\"Sudan\",\"Suriname\",\"Swaziland\",\"Sweden\",\"Switzerland\",\"Syria\",\"Taiwan\",\"Tajikistan\",\"Tanzania\",\"Thailand\",\"Togo\",\"Tonga\",\"Trinidad and Tobago\",\"Tunisia\",\"Turkey\",\"Turkmenistan\",\"Tuvalu\",\"Uganda\",\"Ukraine\",\"United Arab Emirates\",\"United Kingdom\",\"United States\",\"Uruguay\",\"Uzbekistan\",\"Vanuatu\",\"Vatican City\",\"Venezuela\",\"Vietnam\",\"Yemen\",\"Zambia\",\"Zimbabwe\");\n\t}", "title": "" }, { "docid": "41717f717c34422b6fca347fc906b6ad", "score": "0.4147111", "text": "public function index()\n {\n $church = Church::class;\n $user=Auth::user();\n return view('churches.index', compact('user','church'));\n }", "title": "" }, { "docid": "a458fd6a1d8ff7a5f14491d16dc78b84", "score": "0.4146731", "text": "function prepareReferrals($traffic) {\r\n $referrals = [];\r\n\r\n if (is_array($traffic) && count($traffic) > 0) {\r\n $html = \"<ul max-elements='15'>\";\r\n for ($i = 0; $i < count($traffic); $i++) {\r\n if ($traffic[$i][\"referral\"] != null && !in_array($traffic[$i][\"referral\"], array_keys($referrals))) {\r\n $referrals[$traffic[$i][\"referral\"]] = 1;\r\n } else if ($traffic[$i][\"referral\"] != null) {\r\n $referrals[$traffic[$i][\"referral\"]]++;\r\n }\r\n }\r\n\r\n arsort($referrals);\r\n\r\n for ($i = 0; $i < count($referrals); $i++) {\r\n $html .= \"<li><span style='font-weight: 700; vertical-align: top; color: #00C5E5; display: inline-block; width: 20%;'>\" . (array_values($referrals)[$i] >= 1000 ? (round(array_values($referrals)[$i] / 1000, 1) . \"K\") : array_values($referrals)[$i]) . \"</span><span style='font-weight: 300; vertical-align: top; color: rgba(255, 255, 255, 0.5); display: inline-block; width: 80%;' data-placement='left' data-toggle='tooltip' title='\" . array_keys($referrals)[$i] . \"' ><a style='color: rgba(255, 255, 255, 0.5);' href='\" . array_keys($referrals)[$i] . \"' target='_blank'>\" . (substr(str_replace(['http://', 'https://', 'www.'], '', array_keys($referrals)[$i]), -1) == '/' ? substr(str_replace(['http://', 'https://', 'www.'], '', array_keys($referrals)[$i]), 0, -1) : str_replace(['http://', 'https://', 'www.'], '', array_keys($referrals)[$i])) . \"</a></span></li>\";\r\n }\r\n $html .= \"</ul>\";\r\n\r\n if (count($referrals) == 0) {\r\n return \"<ul><li style='color: rgba(255,255,255,0.5); font-weight: 300;'>No data available...</li></ul>\";\r\n }\r\n\r\n return $html;\r\n }\r\n\r\n return \"<ul><li>No data available...</li></ul>\";\r\n}", "title": "" }, { "docid": "818f376a8d10cad62e9f5d6db7fde6d3", "score": "0.41458145", "text": "public function getContractorOptions($ui = TRUE, $filter = NULL, $forGeneration = FALSE)\n {\n // list contractors and adjusted contractors participating in the current week\n $weekStart = $this->weekStarting;\n $crit = new CDbCriteria();\n $crit->addCondition(\"RouteDate >= str_to_date(:ws, '%d/%m/%Y')\");\n $crit->addCondition(\"RouteDate < date_add(str_to_date(:ws, '%d/%m/%Y'), interval 7 day)\");\n \n if ($filter !== NULL)\n $crit->addCondition(\"CategoryType = '$filter'\");\n \n $crit->params = array(\n ':ws' => $weekStart,\n );\n //$crit->order = \"Category, RouteDate, Route\";\n $crit->order = \"Category, Route, RouteDate\"; // #58\n $crit->group = \"RouteCategoryId, RouteId, ContractorId, AdjContractorId\";\n \n $data = FinanceRouteInstanceDetails::model()->findAll($crit);\n \n $result = array();\n foreach ($data as $row)\n {\n $allowed = TRUE;\n if (!Login::checkPermission(Permission::PERM__FUN__LSC__DTC) &&\n ($row->CategoryType == 'DTC'))\n $allowed = FALSE;\n if (!Login::checkPermission(Permission::PERM__FUN__LSC__DTR) &&\n ($row->CategoryType == 'DTR'))\n $allowed = FALSE;\n \n if ($allowed) {\n $key = $row->ContractorId;\n $parentId = $row->ParentContractorId;\n $name = trim($row->ContractorFirstName.' '.$row->ContractorLastName);\n\n if (!empty($row->AdjContractorId) && !isset($result[$row->AdjContractorId]))\n {\n $key = $row->AdjContractorId;\n $parentId = $row->AdjParentContractorId;\n $name = trim($row->AdjContractorFirstName.' '.$row->AdjContractorLastName);\n }\n\n // check for parent contractor\n //$contractor = FinanceContractor::model()->with('parent')->findByPk($key);\n //if (isset($contractor->parent))\n if (!empty($parentId))\n {\n //$key = $contractor->parent->ContractorId;\n $key = $parentId;\n $parent = FinanceContractor::model()->findByPk($key);\n $name = trim($parent->FirstName.' '.$parent->LastName);\n }\n\n if (!isset($result[$key]))\n $result[$key] = $name;\n }\n }\n if (!$forGeneration) // #58\n asort($result);\n \n $options = $result;\n if ($ui)\n {\n // #84 - no longer required as it'd be always DTR/DTC generation \n /*$options = array('DTC' => '(all DTC)', 'DTR' => '(all DTR)');\n if (!Login::checkPermission(Permission::PERM__FUN__LSC__DTC))\n unset($options['DTC']);\n if (!Login::checkPermission(Permission::PERM__FUN__LSC__DTR))\n unset($options['DTR']);\n foreach ($result as $key => $value)\n $options[$key] = $value;\n * \n */\n }\n \n return $options;\n }", "title": "" }, { "docid": "9fbbf9d2109c22e1ac36cbd104c318b6", "score": "0.41455093", "text": "public function category_list_subfamily()\n\t{\n\t\t$CI =& get_instance();\n\t\t$CI->load->model('Categories');\n\t\t$category_list = $CI->Categories->subfamily_list();\n\t\t$total=0;\n\t\t$i = 0;\n\t\tif(!empty($category_list)){\t\n\t\t\tforeach($category_list as $k=>$v){$i++;\n\t\t\t $category_list[$k]['sl']=$i;\n\t\t\t}\n\t\t}\n\t\t$data = array(\n\t\t\t\t'title' => display('manage_category_subfamily'),\n\t\t\t\t'category_list' => $category_list,\n\t\t\t\t\n\t\t\t);\n\t\t$categoryList = $CI->parser->parse('category/category_subfamily',$data,true);\n\t\treturn $categoryList;\n\t}", "title": "" }, { "docid": "af43e374c737e0fec889520bf28acbab", "score": "0.4137271", "text": "function getBudActualF($memberID,$budgetlistID,$orgDate,$lastDaySelectDate){\n\t\tinclude ('m_inc/m_config.php'); //mysql cridential\n\t\tinclude ('m_inc/def_value.php');\n\t\t$yes = \"yes\";\n\t\t$totAmt = 0;\n\t\t\n\t\ttry{//get order id\n\t\t\t$result = $db->prepare(\"SELECT amount,transaction_type_id,budgetlist_id FROM $db_transaction WHERE member_id=? AND budgetlist_id=? AND transaction_date>=? AND transaction_date<=? AND posted=? ORDER BY transaction_date\");\n\t\t\t$result->execute(array($memberID,$budgetlistID,$orgDate,$lastDaySelectDate,$yes));\n\t\t} catch(PDOException $e) {\n\t\t\techo \"message001 - Sorry, system is experincing problem. Please check back.\";\n\t\t}\n\t\tforeach ($result as $row){\n\t\t\tif ($row['transaction_type_id'] == \"1000\"){\n\t\t\t\t$totAmt = $totAmt + abs($row['amount']);\n\t\t\t}\n\t\t\tif ($row['transaction_type_id'] == \"1001\"){\n\t\t\t\t$totAmt = $totAmt - $row['amount'];\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\treturn $totAmt;\n\t}", "title": "" }, { "docid": "5509ba15d239bfa83c223464aaf881b1", "score": "0.41334552", "text": "public function index()\n\t{\n\n# $list = \\WeChatClient::getFollowersList();\n# foreach ($list['list'] as $item) {\n# \\WeChatClient::sendTextMsg($item, 'sss');\n# }\n# var_dump($list);\n\n\n# $node = District::find(1)->children();\n## var_dump($node->get()->toArray());\n\n\n# $node = District::select('name')->getParent(533);\n# $node = District::find(37)->getParentNode();\n# $node = OrderedTreeDistrict::find(533)->ancestors()->get();\n# $node = OrderedTreeDistrict::find(1)->getDescendants();\n# $node = OrderedTreeDistrict::find(1)->getImmediateDescendants();\n\n# $m = app('Weile\\Repositories\\Eloquent\\MemberRepository');\n/*\n //获取某一ID的上级元素\n $res = $m->getAncestors(12,4);\n $res = array_reverse($res);\n var_dump($res);\n $root = head($res);\n var_dump($root);\n //说明已经到代理商了,需要按代理商的比例分利\n $percent_row = \\ProfitPercent::first();\n $profit = 88.88;\n $profit_split = bcmul($profit, percent_div($percent_row->base), 2);\n# $profit_split = $profit*($percent_row->base/100);\n echo $profit_split;\n if($root['type'] > 0 && $root['type'] != 4) {\n echo '省市代理';\n foreach ($res as $v) {\n $percent = 0;\n switch ($v['type']) {\n //省级代理\n case 1:\n $percent = $percent_row->province;\n break;\n //市级代理\n case 2:\n $percent = $percent_row->city;\n break;\n //门店代理\n case 3:\n $percent = $percent_row->store;\n break;\n //普通用户\n default:\n $percent = $percent_row->member;\n break;\n }\n //比率X利润加到用户余额里\n $percent = percent_div($percent);\n echo bcmul($profit_split, $percent, 2);\n echo $percent,'--', $v['id'], '--',$v['type'],'<br/>';\n }\n } elseif($root['type'] == 4) { //公司代理\n echo '公司代理';\n $left = array_slice($res, 1);\n $percent = 0;\n $percent = $percent_row->member;\n //公司比例为基础比例-余下用户数分成比率\n $company_percent = $percent_row->base - (count($left)*$percent);\n echo $company_percent, '--',$root['id'], '--',$root['type'],'<br/>';\n# var_dump($company_percent);\n\n foreach($left as $v) {\n //添加分利\n\n echo $percent, '--',$v['id'], '--',$v['type'],'<br/>';\n }\n\n } else { //普通用户,则按用户比例分利,且只分两级\n echo '普通用户';\n $valid_user = array_slice($res,-2);\n $percent = 0;\n $percent = $percent_row->member;\n foreach($valid_user as $v) {\n //添加分利\n\n echo $percent, '--',$v['id'], '--',$v['type'],'<br/>';\n }\n }\n*/\n# var_dump($m->addProfit(13, 88.888));\n# \\DB::table('members')->update(['income_yesterday'=>0]);\n# var_dump($valid_user);\n\n //获取某一ID的好友\n# $res = $m->getDescendants(1);\n# var_dump($res->toArray());\n\n# echo 11;exit;\n# $member = Member::find(1);\n# var_dump($member->toArray());\n# $member = $member->reverseFriends()->get();\n# return $member;\n# $member = $member->Friends()->get();\n# var_dump($member->toArray());\n# var_dump($member->toArray());\n# $invite_member = $m->findByPhone('18002590105');\n# $member->addFriend($invite_member);\n# phpinfo();\n# var_dump(count($node));\n# var_dump($node->toArray());\n\n# $coordToGeohash = \\Geotools::coordinate(['22.5195530000','114.0715420000']);\n\n// encoding\n# $encoded = \\Geotools::geohash()->encode($coordToGeohash, 6); // 12 is the default length / precision\n// encoded\n# printf(\"%s\\n\", $encoded->getGeohash()); // spey\n# $member = $m->findById(11)->paylogs()->get();\n# var_dump($member->toArray());\n\n# $order = \\CardOrder::create(['order_id'=>123, 'amount'=>12.33]);\n# $order->cardstoreds()->attach([1]);\n# $order = \\CardOrder::find(1);\n# var_dump($order->cardstoreds->toArray());\n\n# $m = \\CardStored::find(1);\n# $m = \\CardOrder::find(1);\n# var_dump($m->orders);\n\n\n var_dump(\\DB::getQueryLog());\n#\t\treturn 'hello';\n\t}", "title": "" }, { "docid": "9f4981e53df9858a6e57164071d56ef3", "score": "0.41309008", "text": "public static function getMembershipList() \n {\n return [\n self::MEMBERSHIP_FREE => 'Free',\n self::MEMBERSHIP_BRONZE => 'Bronze',\n self::MEMBERSHIP_SILVER => 'Silver',\n self::MEMBERSHIP_GOLD => 'Gold',\n self::MEMBERSHIP_PLATINUM => 'Platinum'\n ];\n }", "title": "" }, { "docid": "dee6e139989f3fe071850ae065d1be59", "score": "0.41301575", "text": "public function getDetailedSubs()\n\t{\n\t \n\t /*\n\t * Get all current members and cycle through them\n\t * get any family members\n\t * get any lockers\n\t * return value\n\t * each from has - what the sub is, the amount and whether it is paid\n\t * \n\t */\n\t \n\t // Get subsyear from helper file\n\t require_once JPATH_COMPONENT . '/helpers/subs.php';\n\t $subsyear = SubsHelper::returnSubsYear();\n\t \n\t $db = JFactory::getDbo();\n\t $query = $db->getQuery(true);\n\t $app = JFactory::getApplication ();\n\t \n\t $detailedsubs = array();\n\t $memberids = array();\n\t //$query->select ( 'CONCAT(MemberFirstname,\" \",MemberSurname) as membername,MemberType,CurrentSubsPaid' );\n\t $query->select('MemberID');\n\t $query->from ( 'members' );\n\t $query->where ( 'MemberType in (\\'Graduate\\',\\'Student\\',\\'Life\\',\\'Hon Life\\') ' );\n\t $query->where ('MemberLeaveofAbsence = \\'No\\'');\n\t \n\t $db->setQuery ( $query );\n\t $db->execute ();\n\t $num_rows = $db->getNumRows ();\n\t $memberids = $db->loadObjectList ();\n\t \n\t $n=0;\n\t for($i = 0; $i < $num_rows; $i ++) {\n\t $memid = $memberids [$i]->MemberID;\n\t //$app->enqueueMessage('Memid = '. $memid . ':');\n\t $query = $db->getQuery(true);\n\t $query->select ( 'CONCAT(MemberFirstname,\" \",MemberSurname) as membername,MemberType,CurrentSubsPaid' );\n\t $query->from ( 'members' );\n\t $query->where ( 'MemberID = ' . $memid );\n\t $db->setQuery($query);\n\t //$app->enqueueMessage('Query = '. $query . ':');\n\t $row = $db->loadRow();\n\t $detailedsubs[$n]->membername = $row['0'];\n\t $detailedsubs[$n]->MemberType = $row['1'];\n\t $detailedsubs[$n]->CurrentSubsPaid = $row['2'];\n\t $subsrate = \"0.00\";\n\t if ($row[1] == \"Graduate\" || $row[1] == \"Student\") \n\t {\n\t $subsrate = SubsHelper::returnSubrate($subsyear,$row['1']);\n\t }\n\t \n\t $detailedsubs[$n]->Amount = $subsrate; \n\t \n\t $n++;\n\t // Add family members\n\t $familysubs = array();\n\t $query = $db->getQuery ( true );\n\t \n\t $query->select ( 'CONCAT(FamilyMemberFirstname,\" \",FamilyMemberSurname) as familymembername,FamilyMembershipType,CurrentSubsPaid' );\n\t $query->from ( 'familymembers' );\n\t $query->where ( 'MemberID = ' . $memid . ' AND FamilyMembershipType in (\\'Spouse\\',\\'Child\\') ' );\n\t \n\t $db->setQuery ( $query );\n\t $db->execute ();\n\t $num_rowsfam = $db->getNumRows ();\n\t $familysubs = $db->loadObjectList ();\n\t for ($j=0;$j < $num_rowsfam;$j++)\n\t {\n\t $familysubsrate = SubsHelper::returnSubrate($subsyear,$familysubs[$j]->FamilyMembershipType);\n\t //$app->enqueueMessage('Family Member = '. $familysubs[$j]->familymembername. ':');\n\t $detailedsubs[$n]->membername = \"---\".$familysubs[$j]->familymembername;\n\t $detailedsubs[$n]->MemberType = $familysubs[$j]->FamilyMembershipType;\n\t $detailedsubs[$n]->CurrentSubsPaid = $familysubs[$j]->CurrentSubsPaid;\n\t $detailedsubs[$n]->Amount = $familysubsrate; \n\t $n++;\n\t }\n\t \n\t // Add Lockers\n\t \n\t $query = $db->getQuery ( true );\n\t $query->select ( 'LockerNumber,CurrentSubsPaid' );\n\t $query->from ( 'lockers' );\n\t $query->where ( 'MemberID = ' . $memid );\n\t $lockerinfo = array();\n\t $db->setQuery ( $query );\n\t $db->execute ();\n\t $num_rowslockers = $db->getNumRows ();\n\t $lockerinfo = $db->loadObjectList ();\n\t for ($k=0;$k<$num_rowslockers;$k++)\n\t {\n\t $lockerrate = SubsHelper::returnSubrate($subsyear,\"Locker\");\n\t $detailedsubs[$n]->membername = \"---Locker #\" . $lockerinfo[$k]->LockerNumber;\n\t $detailedsubs[$n]->MemberType = \"Locker\";\n\t $detailedsubs[$n]->CurrentSubsPaid = $lockerinfo[$k]->CurrentSubsPaid;\n\t $detailedsubs[$n]->Amount = $lockerrate; \n\t $n++;\n\t }\n\t \n\t // show payments\n\t $query = $db->getQuery ( true );\n\t $query->select ( 'TransactionDate,Description,Amount' );\n\t $query->from ( 'finances' );\n\t $query->where ( 'MemberID = ' . $memid );\n\t $query->where ('TransactionDate > \\'2019-11-30\\''); //TODO update this to get start of current subs year\n\t $query->where ('CreditDebit = \\'C\\'');\n\t $financeinfo = array();\n\t $db->setQuery ( $query );\n\t $db->execute ();\n\t $num_rowsfinance = $db->getNumRows ();\n\t $financeinfo = $db->loadObjectList ();\n\t for ($l=0;$l<$num_rowsfinance;$l++)\n\t {\n\t $detailedsubs[$n]->membername = \"---\".$financeinfo[$l]->TransactionDate.\" \".$financeinfo[$l]->Description;\n\t $detailedsubs[$n]->MemberType = \"Payment\";\n\t $detailedsubs[$n]->CurrentSubsPaid = \"N/A\";\n\t $detailedsubs[$n]->Amount = $financeinfo[$l]->Amount; \n\t $n++;\n\t }\n\t \n\t // get total balance for member\n\t $query = $db->getQuery ( true );\n\t $query->select ( 'Sum(Amount) as amount' );\n\t $query->from ( 'finances' );\n\t $query->where ( 'MemberID = ' . $memid );\n\t $db->setQuery($query);\n\t //$app->enqueueMessage('Query = '. $query . ':');\n\t $row = $db->loadRow();\n\t \n\t $detailedsubs[$n]->membername = \"--- Current Account balance\";\n\t $detailedsubs[$n]->MemberType = \"Balance\";\n\t $detailedsubs[$n]->CurrentSubsPaid = \"N/A\";\n\t $detailedsubs[$n]->Amount = $row['0'];\n\t $n++;\n\t }\n\t \n\t return $detailedsubs;\n\t \n\t}", "title": "" }, { "docid": "5d3b40606f8b386c8baa5f7c0ebbd8c5", "score": "0.41259018", "text": "private function displayList(){\n global $vues;\n $id_list=Validation::nettoyer_int($_GET['id_list']);\n $list_name=Validation::nettoyer_string($_GET['list_name']);\n $res=Visitor::displayList($id_list);\n require_once($vues['viewList']);\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "74ae04cd67099b47b9194e8d37b1b3ab", "score": "0.0", "text": "public function showOffer($id)\n {\n $post = Offer::findOrFail($id);\n $post->update(['is_activated' => 1]);\n flash()->success('تم تفعيل العرض');\n return back();\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "754e1795026ca4c71e3959656a533ca3", "score": "0.77020115", "text": "private function _displayResource() {\n\t\t// determine which action to take\n\t\t$lti_message_type = $this->lti_model->getLtiDataValue('lti_message_type');\n\t\tswitch( $lti_message_type ){\n\t\t\tcase 'ContentItemSelectionRequest' : // take user to the content item selector\n\t\t\t\t$this->_getContentItemSelectionRequest();\n\t\t\t\tbreak;\n\t\t\tcase 'basic-lti-launch-request' : // retrieve the requested resource\n\t\t\tdefault :\n\t\t\t\t// store LTI basic outcomes service details when an outcome is requested\n\t\t\t\t$this->lti_outcomes->saveLtiOutcomesValues();\n\t\t\t\t$this->getContent( $custom_resource_id );\n\t\t}\n\t}", "title": "" }, { "docid": "d77a1cf077ad489eb930bc1facfeb4a7", "score": "0.7348343", "text": "public function show($class_id, $resource)\n {\n //\n }", "title": "" }, { "docid": "26f38c42099a7c64fba7842c4ce19062", "score": "0.7230476", "text": "public function show(Resource $resource)\n {\n return view('actions.resource.show', compact('resource'));\n }", "title": "" }, { "docid": "b8de278532cf1b2d94016c0cd12737fd", "score": "0.7159185", "text": "public function show(Resource $resource)\n {\n $resource = new ResourceResource($resource);\n return $this->success('Resource Detail.', $resource);\n }", "title": "" }, { "docid": "48fb67ee8a54377a224740d572c17cdd", "score": "0.7143722", "text": "public function show(Resource $resource)\n {\n return view('resource.show',['resource'=>$resource]);\n }", "title": "" }, { "docid": "50078f2eddc7667a37be0da403d6d3e4", "score": "0.7131298", "text": "function display($resource_name, $cache_id = null, $compile_id = null) {\n // Был старый выхзов, учитывал кеширование\n //$this->fetch($resource_name, $cache_id, $compile_id, true);\n $this->render($resource_name);\n }", "title": "" }, { "docid": "860344e8f85b09bf11e41aa48e928f6e", "score": "0.6776001", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BWBlogBundle:Resource')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Resource entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BWBlogBundle:Resource:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(), ));\n }", "title": "" }, { "docid": "bc7cbf8f7bf2cdecfc58cc20b4ee76ef", "score": "0.6574996", "text": "public function show($course, Resource $resource)\n {\n\n\n $pageTitle = 'Resource';\n\n return view('resources.resource')->with(compact( 'resource', 'pageTitle'));\n }", "title": "" }, { "docid": "cc94e2329160f202733c635aa4bf0b30", "score": "0.65286446", "text": "public function show($param)\r\n {\r\n\r\n $data['resource_header'] = true;\r\n $user_id = ($this->auth)?$this->auth->id:null;\r\n $data['resource'] = Resource::with(['tags', 'likesCount', 'user', 'downloads', 'category', 'category.resources' => function($q){\r\n $q->limit(4);\r\n }, 'like' => function($q)use($user_id){\r\n $q->where('user_id', $user_id);\r\n }])\r\n ->where('slug', $param)\r\n ->orWhere('id', $param)\r\n ->firstOrFail();\r\n\r\n $author = User::with('profile')\r\n ->where('id', $data['resource']->user_id)\r\n ->get()\r\n ->toArray();\r\n\r\n if(count($author) > 0){\r\n $data['author'] = $author[0];\r\n }\r\n\r\n $data['latestResources'] = Resource::with('category')->orderBy('id', 'desc')->limit(5)->get();\r\n $data['tags'] = Tag::orderBy('id','desc')->get();\r\n\r\n return view('public.resource')->with($data);\r\n }", "title": "" }, { "docid": "69545e83d1d4c03b646757789a897b5b", "score": "0.6515112", "text": "public function show(Resource $resource)\n {\n //\n // $this->authorize('view',Resource::class);\n // $page=Page::all();\n // $resource=Resource::all();\n // return view('resource.show',compact('page','resource'));\n return response()->json($resource);\n }", "title": "" }, { "docid": "51abeaf13e315e938469da7a51936df5", "score": "0.6467601", "text": "public function show($id)\n {\n $query = '\"select\":\"*\",\"where\":\"id=' . $id . '\"';\n $data = ResourcesService::getResourcesTableRow($query);\n $resource = $data[\"Result\"][0];\n //$resource = Resource::findOrFail($id);\n\n return view('admin.resources.show', compact('resource'));\n }", "title": "" }, { "docid": "4869655563febeddc21b876b2d3bd399", "score": "0.6464456", "text": "public function showResource(Request $request, $id = 0);", "title": "" }, { "docid": "6e101e96500f24d567e50a803b6d00fb", "score": "0.64562225", "text": "public function show($id)\n\t{\n\t\t// Get the resource if it has not been provided by the child class\n\t\tif( ! $this->resource->getKey())\n\t\t\t$this->resource = $this->resource->findOrFail($id);\n\n\t\t$this->layout->subtitle = _('Details');\n\n\t\treturn $this->loadView(__FUNCTION__, $this->resource->getVisibleLabels());\n\t}", "title": "" }, { "docid": "0bfd2fab1690e405f8ae90f2f671725b", "score": "0.63684106", "text": "public function show($id)\n\t{\n\t\t$resource = Resource::findOrFail($id);\n\t\treturn View::make('resource/show', compact('resource'));\n\t}", "title": "" }, { "docid": "14f061e926b1904b496ec52586cb2b35", "score": "0.63535744", "text": "public function display() {\n\t\t\ttry {\n\t\t\t\tif(!is_null($this->id)) {\n\t\t\t\t\t$this->returnView($this->model->display($this->id));\n\t\t\t\t} else {\n\t\t\t\t\t$this->error404();\n\t\t\t\t}\n\t\t\t} catch(Exception $e) {\n\t\t\t\t$this->session->add('error', $e->getMessage());\n\t\t\t\texit(header('Location: '.$_SERVER['HTTP_REFERER']));\n\t\t\t}\n\t\t\t$this->session->sUnset('error');\n\t\t}", "title": "" }, { "docid": "30460e9f10fc35f6066e56c0edf07f11", "score": "0.62772554", "text": "public function resource($resource)\n {\n // TODO: Implement resource() method.\n }", "title": "" }, { "docid": "742c2b4cd2f26a04a82af80f8ee84057", "score": "0.62133056", "text": "public function show()\n {\n $dispatcher = Dispatcher::getSharedDispatcher();\n $dataProvider = $this->getDataProvider();\n $controller = $dataProvider->getControllerClassForPath($this->getPath());\n $action = $this->getIdentifier() . 'Action';\n $controller = GeneralUtility::makeInstance($controller);\n\n if (is_object($controller)) {\n $controller->setRequest($dispatcher->getRequest());\n }\n if (is_numeric($this->getIdentifier())\n && is_object($controller) && method_exists($controller, 'showAction')\n ) {\n $result = $controller->processAction('showAction', $this->getIdentifier());\n } elseif (is_object($controller) && method_exists($controller, $action)) {\n $result = $controller->processAction($action);\n } else {\n $result = false;\n }\n\n return $result ? $this->createResponse($result, 200) : $result;\n }", "title": "" }, { "docid": "f61677388a9b71138fce919e36a82ca0", "score": "0.61413664", "text": "public function show($id)\n {\n #$resource = resource::find($id);\n $resource = Resource::where('slug', '=', $id)->orWhere('id', '=', $id)->firstOrFail();\n\n $related_resources = Resource::where('id', \"!=\", $resource->id)\n ->orWhere('name', 'LIKE', '%' . $resource->name . '%')\n ->orWhere('description', 'LIKE', '%' . $resource->description . '%')->take(8)->get();\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $related_resources,\n ];\n\n return view('resources.show-resource')->with($data);\n }", "title": "" }, { "docid": "404169262f3328542c2f476a8bae067c", "score": "0.6073625", "text": "public function fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n $this->fixURI($resource_name);\n\n return parent::fetch($resource_name, $cache_id, $compile_id, $display);\n }", "title": "" }, { "docid": "90a025ba515ea1ffda1792e51f379566", "score": "0.6065236", "text": "public function show($id)\n {\n $resource = Resource::findOrFail($id);\n\n return view('resources.show')->with(compact('resource'));\n }", "title": "" }, { "docid": "d4b48f077d182386266a016e1934227a", "score": "0.60600674", "text": "public function render(&$objResource);", "title": "" }, { "docid": "120fe33c517800f7a36fd36a7d8ff2a0", "score": "0.6034755", "text": "public function showAction($id);", "title": "" }, { "docid": "691f9d494ebbd3698416c27402ce6045", "score": "0.6024695", "text": "public function show($id)\n {\n if (is_numeric($id)) {\n return new ActionResource (Action::find($id));\n }else{\n abort(404 , 'resource not found.');\n \n }\n \n }", "title": "" }, { "docid": "c6f154f853b604d366507e7f3651128c", "score": "0.59881043", "text": "public function index()\n\t{\n\t\t$this->load->view('resource');\n\t}", "title": "" }, { "docid": "78f674e0991329ee80d8bfe522602ce3", "score": "0.59581137", "text": "public function actionShow()\n {\n $this->render('show', array());\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "3411150986f3334a3ae059e3824a705e", "score": "0.59518707", "text": "public function showAction() {\n\n\t\t// ...\n\t\tif(isset($this->externalWebsiteUri)) {\n\t\t\t$this->view->assign('external_website_uri', $this->externalWebsiteUri);\n\t\t}\n\t}", "title": "" }, { "docid": "51df0e59505572a08a6c3c4ea6558bb4", "score": "0.5942475", "text": "public function showAction()\n\t{\n\t\t$this->loadLayout()->renderLayout();\n\t}", "title": "" }, { "docid": "7a089792dd9f8cefa56e79369d710cb2", "score": "0.59358656", "text": "public function show(Request $request, string $resource, string $id) {\n if(!Lyra::checkPermission('read', $resource)) abort(403);\n\n if(config('lyra.translator.enabled') && $request->has('lang')) App::setLocale($request->get('lang'));\n\n $resourcesNamespace = Lyra::getResources()[$resource];\n $modelClass = $resourcesNamespace::$model;\n\n if (method_exists($modelClass, 'trashed')) {\n $model = $modelClass::withTrashed()->find($id);\n } else {\n $model = $modelClass::find($id);\n }\n\n if (!Arr::first($model)) return abort(404, \"No query results for model [$modelClass]\");\n $resourceCollection = new $resourcesNamespace(collect([$model]));\n return $resourceCollection->getCollection($request, 'show');\n }", "title": "" }, { "docid": "a5fe9713f7fa35feab808a95acb937a5", "score": "0.59236246", "text": "public function show(Artist $artist)\n {\n\n\n return new ShowArtistResource($artist);\n\n\n }", "title": "" }, { "docid": "4dd721a222d59966f8999c2bf46a1634", "score": "0.5913372", "text": "public function url($resource = self::URL_RESOURCE, array $args = array()) \n {\n return parent::url($resource, $args);\n }", "title": "" }, { "docid": "eaff1ff5ad75e879908bb065beeea534", "score": "0.5910201", "text": "public function edit(Resource $resource)\n {\n return view('actions.resource.edit', compact('resource'));\n }", "title": "" }, { "docid": "f2800dcfd7234cc6b914253341f2a919", "score": "0.5905734", "text": "public function display()\n {\n $this->getAdapter()->display();\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "c6b5201b64b56afc1aba96e7f01df942", "score": "0.5895745", "text": "public function displayAction()\r\n\t\t{\r\n\r\n\t\t\t$q = Doctrine_Query::create()\r\n\t\t\t->from('Webteam_Model_User i')\r\n\t\t\t->where('i.UserName = ?', $this->identity['UserName']);\r\n\t\t\t$result = $q->fetchArray();\r\n\t\t\tif (count($result) == 1) {\r\n\t\t\t\t$this->view->item = $result[0];\r\n\t\t\t} else {\r\n\t\t\t\tthrow new Zend_Controller_Action_Exception('Page not found', 404);\r\n\t\t\t}\r\n\r\n\t\t}", "title": "" }, { "docid": "e1911719b5dbc5045d62ac4e5e20cd33", "score": "0.587909", "text": "protected function showAction() {\n\t\t$em = $this->getEntityManager();\n\t\t$book = $em->find('Entities\\\\Book', $_GET['id']);\n\t\t$this->addContext('book', $book);\n\t}", "title": "" }, { "docid": "9593ec2b031b164d16249f1ae81182ef", "score": "0.58776784", "text": "public function show(Retex $retex)\n {\n //\n }", "title": "" }, { "docid": "093db99e28544f24edb386d2bf2129f0", "score": "0.58682454", "text": "public function display() {\n\t\t$this->displayContent();\n\t}", "title": "" }, { "docid": "95d012dca84499e39b434e04c9f86031", "score": "0.58522356", "text": "public function showAction()\n\t{\n\t\tif (!isset($this->sGlobal->uId) && !Zend_Auth::getInstance ()->hasIdentity ()) {\n\t\t\t$this->_helper->redirector->gotoRoute ( array('action' => 'index', 'controller' => 'auth'), 'default' );\n\t\t}\n\t\t \n\t\t$dbRoutes = new Model_Ride_DbRoutes();\n\t\t\n\t\t$routes = $dbRoutes->getRoutesByUserId($this->sGlobal->uId);\n\t\t\n\t\t$this->view->routes = $routes;\n\t\t\n\t\t$this->view->deleteRideLink = $this->_helper->url->url(array('controller'=>'Ride', 'action'=>'deleteride'), 'default', true);\n\t\t\n\t}", "title": "" }, { "docid": "a6ea4c61d98549d6b82aa6c50e5153c9", "score": "0.58442765", "text": "public function show($id)\n {\n // return \"Show \".$id;\n abort(404);\n }", "title": "" }, { "docid": "57e04be30c8d73c6f1b1f97f0813c951", "score": "0.5839814", "text": "public function show($parm);", "title": "" }, { "docid": "7fa6d8ebb4c7b91b6b1219f34c1ccc2e", "score": "0.5827577", "text": "public function show()\n {\n return $this->resource->transform();\n }", "title": "" }, { "docid": "1f025b0828827877859e8e2f72f5add5", "score": "0.5824839", "text": "public function resourceAction();", "title": "" }, { "docid": "bc8b175839d90931dc37b6d17073534e", "score": "0.5824825", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n );\n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams());\n\n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Zf1_Model_Item i')\n ->leftJoin('i.Zf1_Model_Country c')\n ->leftJoin('i.Zf1_Model_Grade g')\n ->leftJoin('i.Zf1_Model_Type t')\n ->where('i.RecordID = ?', $input->id)\n ->addWhere('i.DisplayStatus = 1')\n ->addWhere('i.DisplayUntil >= CURDATE()');\n $sql = $q->getSqlQuery();\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->item = $result[0];\n $this->view->images = array();\n $config = $this->getInvokeArg('bootstrap')->getOption('uploads');\n foreach (glob(\"{$config['uploadPath']}/{$this->view->item['RecordID']}_*\") as $file) {\n $this->view->images[] = basename($file);\n }\n $configs = $this->getInvokeArg('bootstrap')->getOption('configs');\n $localConfig = new Zend_Config_Ini($configs['localConfigPath']);\n $this->view->seller = $localConfig->user->displaySellerInfo;\n $registry = Zend_Registry::getInstance();\n $this->view->locale = $registry->get('Zend_Locale');\n $this->view->recordDate = new Zend_Date($result[0]['RecordDate']);\n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404);\n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input');\n }\n }", "title": "" }, { "docid": "bcd5d6f048ed9967b2cc42a2b9c646e4", "score": "0.58217233", "text": "public function show($id)\n\t{\n\t\t//...\n\t}", "title": "" }, { "docid": "062f661f5aa2b0fb00beffc662c406c7", "score": "0.58164716", "text": "public function show($id)\n {\n $catalog_detail = Catalog::where(\"id\", \"=\", $id,)->first();\n\n if (!is_null($catalog_detail)) {\n return $this->ok(\"\", new CatalogResource($catalog_detail));\n }\n\n return $this->ok(__('global.record_not_found'));\n }", "title": "" }, { "docid": "e5b312e565cadd216286627cb156afa1", "score": "0.5814938", "text": "public function show() {\n $this->display = true;\n }", "title": "" }, { "docid": "3c83da877de5a8b9a28620cc567e154f", "score": "0.5812585", "text": "public function show($model)\n {\n $model = $this->getModel($model);\n\n $this->authorize('view', $model);\n\n $model = $this->showModel($model);\n\n $resource = resource($model);\n\n return ok($resource);\n }", "title": "" }, { "docid": "8fa3c5aa92241bd98bf245a72087750b", "score": "0.58067733", "text": "public function show($id)\n {\n return Resource::find($id);\n }", "title": "" }, { "docid": "305f64db85d64f68019d2fadcd0a85d2", "score": "0.58012545", "text": "public function show()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "7d4b687c2015cbab6585700fbd9fed75", "score": "0.5790671", "text": "protected function showResourceView($id)\n\t{\n\n\t\t$element = $this->getElements($id);\n\t\treturn Response::view('adm/Regions/element', array('data' => $element));\n\n\t}", "title": "" }, { "docid": "6d0ead3170a91374660511ebe07a7e52", "score": "0.57788694", "text": "public function display($file){\n\t\techo $this->fetch($file);\n\t}", "title": "" }, { "docid": "1ebe558af6c12f3e75c7741d736cd837", "score": "0.5773779", "text": "public function show($id)\n\t{\n\t\t$this->layout->nest('content', $this->view, ['car' => $this->resource]);\n\t}", "title": "" }, { "docid": "ff99e6923e061969deb024f038cd9fd9", "score": "0.5771933", "text": "public abstract function show();", "title": "" }, { "docid": "f37f81a8bf0d836ce01d6e66ee929689", "score": "0.57692647", "text": "public function show()\n {\n $ResourceRepo = new ResouceRepo();\n $res = $ResourceRepo->show();\n $count = $ResourceRepo->getcount();\n\n return view('ViewResource',['resources' => $res,'totalcount' =>$count]);\n }", "title": "" }, { "docid": "23d3f586042fc7ef9f98c33613fd010d", "score": "0.5757193", "text": "public function url($resource = 'instances', array $args = array())\n {\n return parent::url($resource, $args);\n }", "title": "" }, { "docid": "64ca047c763cbf564dd5de6f46e00c8a", "score": "0.5757105", "text": "public function display(){}", "title": "" }, { "docid": "be16c52b6734a0cf50cdaa52b26c8ee0", "score": "0.57546145", "text": "public function show(Resroom $resroom)\n {\n //\n }", "title": "" }, { "docid": "6552a6831d000ffc0b68b09357fd4a3c", "score": "0.5750852", "text": "public function show($id)\n\t{\n\t\techo $id;\n\t}", "title": "" }, { "docid": "58d82a32f57975c44fc660ccacd3a42f", "score": "0.5749565", "text": "public function resource( $resc= '')\n {\n return view('home.resource',['resource'=>$resc]);\n }", "title": "" }, { "docid": "c28bc00a20642b8f45cbb36b8f142bb6", "score": "0.5747548", "text": "public function show( $id );", "title": "" }, { "docid": "f3bc4ff0e0f2cc54bf914d77670e405e", "score": "0.5737612", "text": "public function edit(Resource $resource)\n {\n return view('resource.edit',['resource'=>$resource]);\n }", "title": "" }, { "docid": "a5c4f542acf75c65ff05c5578f254411", "score": "0.57365245", "text": "public function show($id)\t{\n\t\t//\n\t}", "title": "" }, { "docid": "c0c57945d6d1643edc1ffb95ae99eef9", "score": "0.5735039", "text": "public function show($id)\n { \n if( $this->checkShowModelRequest($id) ) return abort(404, \"Resource not found\");\n\n if(request()->expectsJson() || $this->onlyJsonResponse) \n return response()->json($this->showModelQueryResponse($id));\n\n return $this->renderView(\n $this->moduleName != null ? Str::plural($this->moduleName) . '.show' : 'show' ,\n $this->showResponse($id)\n );\n }", "title": "" }, { "docid": "1bb2758d3ba7fe86461bda00a9606e3e", "score": "0.5734708", "text": "public function show( $id )\n\t{\n\t\t$model = Input::get( 'model' );\n\n\t\tif ( !class_exists( $model ) ) {\n\t\t\treturn $this->renderResponse( false, \"That model does not exist\" );\n\t\t}\n\n\t\t$item = $model::find( $id );\n\n\t\tif ( !is_null( $item ) ) {\n\t\t\tif ( property_exists( $item, 'eager_relations' ) ) {\n\t\t\t\t$item->load( $item->eager_relations );\n\t\t\t}\n\t\t\treturn $this->renderResponse( true, $item->toArray( true ) );\n\t\t}\n\n\t\treturn $this->renderResponse( false, \"Resource not found\" );\n\t}", "title": "" }, { "docid": "ab8f27385173dda96b8eaafa7aa90f82", "score": "0.5734516", "text": "public function show(Hirtory $hirtory)\n {\n //\n }", "title": "" }, { "docid": "cb0625cb8bda35818012bd67fb011d73", "score": "0.5728958", "text": "protected function showAction()\n {\n $this->showAction\n ->setAccess($this, Access::CAN_SHOW)\n ->execute($this, NULL, UserActionEvent::class, NULL, __METHOD__)\n ->render()\n ->with(\n [\n 'user_log' => $this->userMeta->unserializeData(\n ['user_id' => $this->thisRouteID()],\n [\n 'login', /* array index 0 */\n 'logout', /* array index 1 */\n 'brute_force', /* index 2 */\n 'user_browser' /* index 3 */\n ]\n )\n ]\n )\n ->singular()\n ->end();\n }", "title": "" }, { "docid": "09abe18b0f313de0a8ae600fe6626d31", "score": "0.57271934", "text": "public function display() {\r\n\t\techo '<a href=\"' . $this->_link .\r\n\t\t\t\t'\" title=\"' . $this->_text .\r\n\t\t\t\t'\">' . $this->_text . '</a><br/>';\r\n\t}", "title": "" }, { "docid": "20397e06b8673db8692c5f84120c3011", "score": "0.5724891", "text": "public function show()\n\t{\n\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "d02c7bae2c97989fe256da11612461c7", "score": "0.5721667", "text": "function display()\n\t{\n\t\t$document \t=& JFactory::getDocument();\n\t\t$viewType\t= $document->getType();\t\n \t\t$viewName\t= JRequest::getCmd( 'view', $this->getName() );\n \t\t$view\t\t=& $this->getView( $viewName , '' , $viewType );\n \t\tif($this->checkPhotoAccess())\n \t\t\techo $view->get( __FUNCTION__ );\n\t}", "title": "" }, { "docid": "3e94f05854b4dbc5a4d900f54aa8043a", "score": "0.5719658", "text": "function index( $request ){\r\n\t\t\r\n\t\t// Look for \"resource\" in request //\r\n\t\t$requestVars = Router :: getRequestVars();\r\n\t\t\r\n\t\t// Show a help page if local //\r\n\t\tif( App :: get()->local ){\r\n\t\t\tif( !isset( $requestVars->resource )){\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Hard set the channel to simplify URLs to resource view //\r\n\t\tRouter :: resetChannel( 'resource' );\r\n\t\t\r\n\t}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "e2404ea37d0dd7d634ec1a88ba6e0b01", "score": "0.5708454", "text": "public function show() {\n\t\t$author = pick_arg(Author::class);\n\t\treturn $this->viewShow(compact('author'));\n\t}", "title": "" }, { "docid": "695e29ca27ebbcb0a342e19915e00ae9", "score": "0.57076776", "text": "protected function makeDisplayFromResource()\n\t{\n\t\t$query = Query::getQuery();\n\t\t$json = json_encode($this->activeResource);\n\t\tif(isset($query['callback']) && self::$jsonpEnable)\n\t\t{\n\t\t\t$this->mimeType = 'application/javascript';\n\t\t\t$callback = preg_replace('[^A-Za-z0-9]', '', $query['callback']);\n\t\t\treturn $callback . '(' . $json . ')';\n\t\t}else{\n\t\t\treturn $json;\n\t\t}\n\t}", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" } ]
40679b012a21f3d5e6d259ca42b1ce1c
Get the Template Path
[ { "docid": "2c4b897f47d6472957a518b4efcfca40", "score": "0.75687677", "text": "protected function getTempaltePath()\n {\n return storage_path( $this->template );\n }", "title": "" } ]
[ { "docid": "081db84d29e39375f82495592bab5220", "score": "0.8809105", "text": "protected function get_template_path() {\n\t\treturn (string) $this->template_path;\n\t}", "title": "" }, { "docid": "696583b9e7b1b1972dd05664d219ecec", "score": "0.87729394", "text": "public static function get_template_path() {\n\t\treturn apply_filters( 'si_template_path', self::$template_path );\n\t}", "title": "" }, { "docid": "3bf8c7a10057ccca08c56c84a96b32de", "score": "0.8728031", "text": "public function getTemplatePath()\n {\n return $this->templatePath;\n }", "title": "" }, { "docid": "3540fe78325ab61b404e39c22f5cfb8d", "score": "0.8651868", "text": "private static function getPath()\n {\n return dirname(dirname(__DIR__)).'/templates';\n }", "title": "" }, { "docid": "3133ea9284518ef8627b73ee1027522f", "score": "0.8637046", "text": "public function getTemplatePath() {\n return $this->templatePath;\n }", "title": "" }, { "docid": "0b7b598bf10c10a3d3024764ef86ea9f", "score": "0.8630312", "text": "public function getTemplatesPath();", "title": "" }, { "docid": "e22718050a665d50a0b0ae171c6ba222", "score": "0.8624147", "text": "protected function getTemplatePath()\n {\n return $this->getPathByOptionOrConfig('templatePath', 'model_template_path');\n }", "title": "" }, { "docid": "30b45186428a24e3c6bba553768f4e60", "score": "0.86039835", "text": "public function templatePath()\n {\n return \"//\" . $this->_SERVER[\"HTTP_HOST\"] . $this->basepath . \"/\" . $this->_templates_path \n . $this->_template_name . \"/\";\n }", "title": "" }, { "docid": "fbc7bc663ebd844d6134953292a70bb7", "score": "0.8516609", "text": "protected function getTemplatePath()\n {\n if (!isset($this->templatePath)) {\n $this->templatePath = self::$config->templates[$this->template] . '/' . $this->name;\n }\n\n return $this->templatePath;\n }", "title": "" }, { "docid": "e10af26b290899c80fd324c1997c33f5", "score": "0.8502918", "text": "public function getTemplatePath() {\n return $this->baseTemplatePath;\n }", "title": "" }, { "docid": "8e420b39debdc837cf5a05a465f6bc1d", "score": "0.8482029", "text": "protected function getTemplatePath()\n\t{\n\t\treturn $this->getPathByOptionOrConfig('templatePath', 'migration_template_path');\n\t}", "title": "" }, { "docid": "ef5e136ca932731ba4ed4de01aed70df", "score": "0.840282", "text": "public function template_path() {\n\t\t\treturn apply_filters( 'tt-elements/template-path', 'tt-elements/' );\n\t\t}", "title": "" }, { "docid": "13c4ed3fcbef8e72eb8b51c78c1cd66c", "score": "0.8387004", "text": "public function template_path() {\n\t\t\treturn apply_filters( 'jet-themes/template-path', 'jet-themes/' );\n\t\t}", "title": "" }, { "docid": "44a585b4aa13c359b495983e7d81257e", "score": "0.8376967", "text": "public function template_path() {\n\t\t\treturn apply_filters( 'ava-smart-filters/template-path', 'ava-smart-filters/' );\n\t\t}", "title": "" }, { "docid": "adb8d3d222dfe08e0c61aa426b857484", "score": "0.8349274", "text": "public function getTemplatesPath()\n {\n return $this->templates_path;\n }", "title": "" }, { "docid": "ddc39f00cb4d7f624d14dc808102f07d", "score": "0.8315028", "text": "public function template_path() {\r\n\t\treturn ENR_DIR . 'templates/' ;\r\n\t}", "title": "" }, { "docid": "05f7c0edc9175a831fdf766b67f9b475", "score": "0.8301028", "text": "public function template_path() {\n\t\t\treturn apply_filters( 'jet-theme-core/template-path', 'jet-theme-core/' );\n\t\t}", "title": "" }, { "docid": "04a6589fd0def1614bcbae47447d3781", "score": "0.82935345", "text": "public function getTemplatesPath() {\n return $this->templates_path;\n }", "title": "" }, { "docid": "982ad8dc02bea798771ac59120f8953a", "score": "0.8209819", "text": "public function template_path() {\n\t\t\treturn apply_filters( 'jet-chat/template-path', 'jet-chat/' );\n\t\t}", "title": "" }, { "docid": "53fc846be3da21f7821867a3828af719", "score": "0.8170325", "text": "function getTemplatePath()\n {\n return parent::getTemplatePath() . 'templates/';\n }", "title": "" }, { "docid": "cb5108d6f6323b023d4ec6cc01adbaac", "score": "0.81232417", "text": "public function getTemplatesPath(): string\n {\n return $this->globalTemplatesPath;\n }", "title": "" }, { "docid": "2ed256469c4522bb2d04e66c96a16e40", "score": "0.81179565", "text": "public function templatesPath() {\n return $this->resourcePath() . '/templates';\n }", "title": "" }, { "docid": "9361b26e50d3f8de0bc8d1d842a9aa95", "score": "0.79804546", "text": "public function template_path() {\n\t\t\treturn apply_filters( 'jet-cw/template-path', 'jet-compare-wishlist/' );\n\t\t}", "title": "" }, { "docid": "db1197f72fc2c554ff3c011b06db7b32", "score": "0.7928528", "text": "public function getBaseTemplatePath() {\n return $this->getTemplatePath(\n $this->_routes[$this->routeName][\"baseTemplate\"] ?: $this->_settings[\"baseTemplateName\"]\n );\n }", "title": "" }, { "docid": "7219e4c4063be3bd126dbed3d9cca19a", "score": "0.7916711", "text": "function rovadex_template_path() {\n\treturn Rovadex_Wrapping::$main_template;\n}", "title": "" }, { "docid": "a0081332d5747a227ced3e9efdce8245", "score": "0.7848769", "text": "public function getTemplatePath() : ?string;", "title": "" }, { "docid": "e743986addea9cd844e009624da1419f", "score": "0.78136283", "text": "public static function getTemplatesDirPath() { return Template::$TEMPLATES_DIR_PATH; }", "title": "" }, { "docid": "6b6d624924220ed97981bdec1c2b7d15", "score": "0.7797707", "text": "function app_template_path() {\n\treturn APP_Wrapping::get_main_template();\n}", "title": "" }, { "docid": "0f48d24ff064b5a8a0cbfff03db342de", "score": "0.7794012", "text": "public function template_path() {\n\t\t\treturn apply_filters( 'testimonials_template_path', 'thim-testimonials/' );\n\t\t}", "title": "" }, { "docid": "ff5c33cf2553ebcd69c877c6b8c00f95", "score": "0.7755349", "text": "public static function getTemplatesPath()\n {\n $path = config('codegenerator.templates_path', 'resources/codegenerator-templates');\n \n return Helpers::getPathWithSlash($path);\n }", "title": "" }, { "docid": "2873bb6ffe8f0f6c0850f70ef1c0355f", "score": "0.773216", "text": "public function GetTemplateDir()\n {\n return $this->template_dir;\n }", "title": "" }, { "docid": "dc56b15ddce59f94e6fa16290bfb374c", "score": "0.7727629", "text": "public function getTemplatesPath(): string\n\t{\n\t\treturn $this->getFirewall()->getBundlesPath().'/'.$this->bundle\n\t\t.'/views/'.$this->controllerName;\n\t}", "title": "" }, { "docid": "ce39db7d07278d22bdac7790808a593f", "score": "0.7690548", "text": "public function getTemplateFile() {\n return $this->simpleab->config['templatesPath'].'mgr.tpl';\n }", "title": "" }, { "docid": "59d0810f8acc71386bed24d77b1bd185", "score": "0.7681073", "text": "function TemplateLocation() {\n $str = $this->pageString;\n return \"templates/$str.php\";\n }", "title": "" }, { "docid": "bcc2d70f281027ecdbee0392664f513e", "score": "0.7671785", "text": "public function getTemplatePath()\n {\n // Check if override module exist\n if(file_exists(_PS_OVERRIDE_DIR_ . 'modules/' . $this->module->name)){\n // Check if there is a directory /var/www/html/ripsteer/themes/default-bootstrap/modules/marketplace/ exist\n if(file_exists(_PS_OVERRIDE_DIR_ . 'modules/' . $this->module->name)){ \n return _PS_THEME_DIR_ . 'modules/' . $this->module->name.'/views/templates/admin/';\n }\n } else {\n return _PS_MODULE_DIR_.$this->module->name.'/views/templates/admin/';\n } \n }", "title": "" }, { "docid": "4a32ffea1c28db767f62032797c0f3d2", "score": "0.76663774", "text": "public function getTemplateLocation()\n {\n return static::TEMPLATE_LOCATION_BUNDLE;\n }", "title": "" }, { "docid": "c20ff71ed653b040bf242d8b8b9e66ca", "score": "0.76380706", "text": "public function getDirPath() { return Template::$TEMPLATES_DIR_PATH . \"/\" . $this->dirname; }", "title": "" }, { "docid": "fdf8b175d09415afa3849c954309b522", "score": "0.7582278", "text": "public static function getCommandTemplatePath(): string\n {\n return self::getAppPath() . 'Command' . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR;\n }", "title": "" }, { "docid": "109510950cf23701a2d5cc9c85513171", "score": "0.7581008", "text": "function zarilia_getTemplateDir() {\n return $this->template_dir;\n }", "title": "" }, { "docid": "a202b60ecf1c28da1c519fe3a6e2c6ad", "score": "0.75653005", "text": "public function getTemplateDir()\n {\n return $this->dir;\n }", "title": "" }, { "docid": "11f5bb870ac828f9e9e1a271aa67dd8b", "score": "0.7552868", "text": "public function getTemplate()\n {\n $class = get_class($this);\n $paths = explode('\\\\', $class);\n\n return $paths[count($paths) - 2];\n }", "title": "" }, { "docid": "572bb47bfb633e3f39ea38e84c90743d", "score": "0.74934244", "text": "public function getTemplateFolder()\r\n {\r\n return \\ConfigIgestisGlobalVars::serverFolder() . \"/\" . \\ConfigIgestisGlobalVars::appliFolder() . \"/theme/\" . \\ConfigIgestisGlobalVars::theme() . \"/\";\r\n }", "title": "" }, { "docid": "f4d42a5aa7c1552d8ccd0af756d09c12", "score": "0.7435674", "text": "public function getTemplateDirectory()\n\t{\n\t\treturn $this->_view_tpldir;\n\t}", "title": "" }, { "docid": "eeffe5cb16580285336fe318a63b1506", "score": "0.74314183", "text": "public function getTemplatePaths()\n {\n return $this->baseRenderingContext->getTemplatePaths();\n }", "title": "" }, { "docid": "6def0044b223da925c9c7636c8fd71c9", "score": "0.7426267", "text": "protected function getTemplatePath(): string\n {\n return __DIR__ . '/stubs/cast.stub';\n }", "title": "" }, { "docid": "e269e7257754e0b6faf57176a2d4fdf7", "score": "0.74177337", "text": "public function getTemplateFile()\n {\n \tif (($dir = $this->_getFPAdminDir()) !== false) {\n\t \treturn $dir . 'template' . DS . $this->getTemplate();\n\t\t}\n }", "title": "" }, { "docid": "45a265f6505da53b06543076caeca875", "score": "0.7411565", "text": "protected function getTemplateFileName()\n {\n return __FILE__;\n }", "title": "" }, { "docid": "130457b7ad8b115b05c547aa94154cc4", "score": "0.73890764", "text": "private function getModuleTemplatePath(): string\n {\n return sprintf('@Modules/%s/views/templates/admin/', $this->name);\n }", "title": "" }, { "docid": "d7360704ad3f8a297beaf7beeed8e2aa", "score": "0.73836285", "text": "public function getTemplatePathname() : string {\n\t\treturn $this->templateBasePath . '/card-link.mustache';\n\t}", "title": "" }, { "docid": "ea895910134df81d4fc77b372035dd6a", "score": "0.7374971", "text": "public static function get_template_path( $template )\n {\n return $path = PLUGIN_DIRNAME . \"/Inc/view/$template.php\";\n }", "title": "" }, { "docid": "7aa6b97fa4f21152fa020e933799d161", "score": "0.73567754", "text": "private function getTemplateDir()\n {\n return sprintf(\"%s/../templates/admin\", __DIR__);\n }", "title": "" }, { "docid": "7d32bd16992b03deb6c135faf622fe62", "score": "0.7333457", "text": "public function getTemplatePaths() {\n\t\treturn $this->templatePaths;\n\t}", "title": "" }, { "docid": "0998215095b4ab5079a801b9ee23f8db", "score": "0.73181266", "text": "public function templateFile() {\n return KIRBY_SITE_ROOT_TEMPLATES . DS . $this->template() . '.php';\n }", "title": "" }, { "docid": "c7ca9c7ba7dbfc05a580700f3f8e3a2a", "score": "0.72930247", "text": "public function getTemplate() {\n return $this->getFile();\n }", "title": "" }, { "docid": "74a1d9d818c5c8fffdcc70c9c1e5dd7c", "score": "0.72914845", "text": "abstract function template_dir();", "title": "" }, { "docid": "5d19ee9abdc8c3ffad1d6661a2dd0933", "score": "0.7290276", "text": "public function intendedTemplateFile() {\n return KIRBY_SITE_ROOT_TEMPLATES . DS . $this->intendedTemplate() . '.php';\n }", "title": "" }, { "docid": "a9b20605553765b8b3adf89b13206f6e", "score": "0.72689956", "text": "function staticpages_templatePath ($path = '')\n{\n global $_CONF;\n\n if (empty ($path)) {\n $layout_path = $_CONF['path_layout'] . 'staticpages';\n } else {\n $layout_path = $_CONF['path_layout'] . 'staticpages/' . $path;\n }\n\n if (is_dir ($layout_path)) {\n $retval = $layout_path;\n } else {\n $retval = $_CONF['path'] . 'plugins/staticpages/templates';\n if (!empty ($path)) {\n $retval .= '/' . $path;\n }\n }\n\n return $retval;\n}", "title": "" }, { "docid": "3038d771d8fba158ebf38c9e2220140e", "score": "0.72578824", "text": "abstract public function getTemplateFile();", "title": "" }, { "docid": "4ef2f2ef1809aa1395003bd169c2dbda", "score": "0.72274685", "text": "public function getTemplatePath($templateName)\n {\n return $this->getFilePath('templates/' . $templateName . '.tpl.php');\n }", "title": "" }, { "docid": "4320fc109d1382cfe25ef267087c3a5e", "score": "0.7217826", "text": "protected function getTemplate() {\n $file = $this->component['path'] . $this->component['template'];\n return (file_exists($file)) ? file_get_contents($file) : '';\n }", "title": "" }, { "docid": "1bc5b6adf8872dd7eea7e9485d381e21", "score": "0.7212587", "text": "public function getTemplateDir() \n {\n return sfConfig::get('app_site_page_template_dir', sfConfig::get('sf_root_dir') . '/templates/page');\n }", "title": "" }, { "docid": "367c17aff641a788ffcab1cd1c6fa0d3", "score": "0.7202775", "text": "function path($path) {\n return get_template_directory() . '/' . $path;\n }", "title": "" }, { "docid": "a778aa71906019bbfb260416351459c0", "score": "0.7190222", "text": "private function getPath()\n {\n if($this->get('src'))\n {\n return $this->get('src');\n }\n return $this->get('src', Config::get('theming.theme'));\n }", "title": "" }, { "docid": "23a5553980175e0f9b144c133542a6e0", "score": "0.7183452", "text": "public function getTemplateFile()\n {\n $params = array(\n '_relative' => true,\n '_area' => 'adminhtml',\n '_package' => 'default',\n '_theme' => 'default'\n );\n\n return Mage::getDesign()->getTemplateFilename($this->getTemplate(), $params);\n }", "title": "" }, { "docid": "9cbd835d71b8a1c51201e7f1124dfd7b", "score": "0.7178028", "text": "public function getTemplatePath()\n {\n return 'scaffold/requests/Request';\n }", "title": "" }, { "docid": "92885d86266f5f69e455e8d46b79c7d5", "score": "0.7163715", "text": "protected function getTemplatePath($strTemplate) {\n\t\t\tif ($this->strThemeDir && file_exists($strThemeTemplateDir = $this->strTemplateDir . $this->strThemeDir . $strTemplate . '.phtml')) {\n\t\t\t\treturn $strThemeTemplateDir;\n\t\t\t} else {\n\t\t\t\treturn $this->strTemplateDir . $strTemplate . '.phtml';\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "e2f74bc1c4f0f839b2ec200853ad69d6", "score": "0.7145868", "text": "protected function getTemplateFile()\n {\n $templatePaths = $this->getTsArrayByPath('plugin.tx_themes.view.templateRootPaths');\n krsort($templatePaths);\n foreach ($templatePaths as $templatePath) {\n $cleanedPath = GeneralUtility::getFileAbsFileName($templatePath) . 'Theme/' . $this->templateName . '.html';\n if (is_file($cleanedPath)) {\n return $cleanedPath;\n }\n }\n return null;\n }", "title": "" }, { "docid": "c6435392edc82d49da77eb99ddef2353", "score": "0.71380484", "text": "public function GetTemplateUrl()\n { return $this->template_url; }", "title": "" }, { "docid": "31e72fce89e010cc5bcf1dea5cc93041", "score": "0.7121615", "text": "public function defaultTemplate()\n {\n $class = new ReflectionClass($this);\n\n return dirname($class->getFileName()) . '/default';\n }", "title": "" }, { "docid": "e0b4cb93db4f81a15c0241a669133cd1", "score": "0.712159", "text": "public function getTemplateFile()\n {\n return $this->template;\n }", "title": "" }, { "docid": "83fd69af8f3457ecf38ea3e225bad8d1", "score": "0.71145236", "text": "public function getRessourcePath();", "title": "" }, { "docid": "952e6e27eefe6c40be4aed53a9eff213", "score": "0.70995754", "text": "public function getOriginalTemplateFile()\n\t{\n\t\treturn __DIR__.'/templates/data_grid_paginator.latte';\n\t}", "title": "" }, { "docid": "0295ba7b0c707374683f3da52e9ec0af", "score": "0.7097888", "text": "public function getPath()\n {\n return $this->view->getDirectory() . $this->name . '.php';\n }", "title": "" }, { "docid": "332c0cf0767346c3bf74d2e99d535f89", "score": "0.70902866", "text": "public function getFilePath()\n\t{\n\t\tif ($this->variable_name == '')\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\n\t\t$basepath = PATH_TMPL;\n\n\t\tif (ee()->config->item('save_tmpl_files') != 'y' || $basepath == '')\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\n\t\t$this->ensureFolderExists();\n\n\t\t$path = $this->getFolderPath();\n\t\t$file = $this->variable_name;\n\t\t$ext = '.html';\n\n\t\tif ($path == '' || $file == '' || $ext == '')\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\n\t\treturn $path.'/'.$file.$ext;\n\t}", "title": "" }, { "docid": "8437ad7c388665e80a2dfd14bdcab666", "score": "0.7089144", "text": "function get_template_path($template_name)\r\n\t{\r\n\t\t// otherwise serve the file from the plugin\r\n\t\tif ( $theme_file = locate_template( array ( 'easy-testimonials/' . $template_name ) ) ) {\r\n\t\t\t$template_path = $theme_file;\r\n\t\t} else {\r\n\t\t\t$template_path = plugin_dir_path( __FILE__ ) . '../templates/' . $template_name;\r\n\t\t}\r\n\t\treturn apply_filters( 'easy_t_template_path', $template_path, $template_name );\r\n\t}", "title": "" }, { "docid": "46f5b6539782b2745a6e263376d4bc66", "score": "0.70835644", "text": "public function getPath($template)\n {\n if (strpos($template, FRONTEND_MODULES_PATH) !== false) {\n return str_replace(FRONTEND_MODULES_PATH . '/', '', $template);\n }\n // else it's in the theme folder\n return str_replace($this->themePath . '/', '', $template);\n }", "title": "" }, { "docid": "f1e353bd42df1367dfea48a7a6df8d7e", "score": "0.70785004", "text": "function getPath($path=\"\")\n\t{\n\t\treturn $GLOBALS['TSFE']->tmpl->getFileName($path);\n\t}", "title": "" }, { "docid": "696171837238e376c58b8ce17ce58a27", "score": "0.7073159", "text": "protected function get_default_template_path()\n {\n return RFFramework()->path() . '/templates/shortcodes/' . $this->name;\n }", "title": "" }, { "docid": "6452265dc299a1c223bd642f6cc561b0", "score": "0.70578265", "text": "function templatePath( $tplpath ) {\r\n //\t\tif ( isset($this->templateFiles[$tplpath]) ) {\r\n //\t\t\treturn $this->templateFiles[$tplpath];\r\n //\t\t}\r\n $defpath = $this->path.'/default/' . $this->defaultFile;\r\n $deffilepath = $this->path.'/default/' . $tplpath;\r\n $thmpath = $this->path.'/'.$this->name.'/'.$tplpath;\r\n if ( is_readable( $thmpath ) ) {\r\n return $thmpath;\r\n }\r\n if ( is_readable( $deffilepath ) ) {\r\n return $defpath;\r\n }\r\n if ( is_readable( $defpath ) ) {\r\n return $defpath;\r\n }\r\n trigger_error( \"Cannot determine path for template $tplpath\", E_USER_WARNING );\r\n return false;\r\n }", "title": "" }, { "docid": "44901a467b8b1f27fa9b7a72bab4727e", "score": "0.70540595", "text": "function get_template($template){\n\t\t\t$login_arr = $this->action_parser($this->action,'template') ;\n\t\t\t$pos = array_search($template, $login_arr['template']['name']); \n\t\t\treturn $login_arr['template']['path'][$pos];\n\t\t}", "title": "" }, { "docid": "44901a467b8b1f27fa9b7a72bab4727e", "score": "0.70540595", "text": "function get_template($template){\n\t\t\t$login_arr = $this->action_parser($this->action,'template') ;\n\t\t\t$pos = array_search($template, $login_arr['template']['name']); \n\t\t\treturn $login_arr['template']['path'][$pos];\n\t\t}", "title": "" }, { "docid": "9a4f06c3e0dcfb989bc21810de7babd1", "score": "0.7020497", "text": "public function getTemplatePath($area) {\n\t\treturn $this->templatePath[$area];\n\t}", "title": "" }, { "docid": "77a7e7c4ef88f1493cb72342c0995911", "score": "0.69881964", "text": "protected function _getTemplatePath($name) {\n return $name ? $this->_private->getTemplatePath($name) : null;\n }", "title": "" }, { "docid": "14ec14a5f5ed7ffb560ce82f4c8805af", "score": "0.6978317", "text": "public static function getTemplate(): string;", "title": "" }, { "docid": "144aa4e301833bda79f16bfa83b18fbc", "score": "0.69782495", "text": "public function GetTemplateFile()\n { return $this->template_file; }", "title": "" }, { "docid": "2d769ae9ee925a8afea17d920e91d1c6", "score": "0.697015", "text": "abstract protected function getTemplateFile(): string;", "title": "" }, { "docid": "f15842b08ab49291fc053d5aca9c4400", "score": "0.69685507", "text": "function get_template_path($template)\n{\n\t$dir\t= \"{$GLOBALS['rootDir']}/templates\";\n\t$path\t= \"{$dir}/{$template}\";\n\t\n\tif (!preg_match(\"/\\..{1,4}$/\", $template)) {\n\t\t$path .= \".tpl.php\";\n\t}\n\t\n\tif (!file_exists($path)) {\n\t\tthrow new Exception(\"Failed to find template [{$template}] -> [{$path}]\");\n\t}\n\t\n\treturn $path;\n}", "title": "" }, { "docid": "fabe11de7e84017c8d0b5c56b3dd7518", "score": "0.6966065", "text": "public function getTemplate(): string\n {\n return $this->template;\n }", "title": "" }, { "docid": "fabe11de7e84017c8d0b5c56b3dd7518", "score": "0.6966065", "text": "public function getTemplate(): string\n {\n return $this->template;\n }", "title": "" }, { "docid": "777066738c71800cc0aa73f9120bedcf", "score": "0.6958872", "text": "protected function _getTemplate()\n {\n return $this->template;\n }", "title": "" }, { "docid": "83d95eff17a2912385e58daca799eb07", "score": "0.69521266", "text": "public function getTemplate()\n {\n if (null === $this->template) {\n $this->template = dirname(__DIR__) . '/view/maintenance.phtml';\n }\n return $this->template;\n }", "title": "" }, { "docid": "491c58f5000b5406c0e010af93b11b3b", "score": "0.69496894", "text": "public function getTemplatePath($name) {\n return static::TEMPLATE_DIR . \"/{$name}.php\";\n }", "title": "" }, { "docid": "395cb195538cefc0fe1489314d8a184d", "score": "0.69079924", "text": "public function getTemplateFile()\n\t{\n\t\treturn $this->templateFile;\n\t}", "title": "" }, { "docid": "6da8081809d93564b7411ce3e585ac48", "score": "0.6899814", "text": "public static function getNodeTemplatePath()\n {\n \treturn static::$breadcrumbsNodeTemplate;\n }", "title": "" }, { "docid": "435f127c5b9bcf28b6304ead7a98ca19", "score": "0.68853426", "text": "function getTemplatePath($a_tplname, $a_in_module = false, $a_plugin = false)\n\t{\n\t\tglobal $ilias, $ilCtrl;\n\t\t\n\t\t$fname = \"\";\n\t\t\n\t\t// if baseClass functionality is used (ilias.php):\n\t\t// get template directory from ilCtrl\n\t\tif (!empty($_GET[\"baseClass\"]) && $a_in_module === true)\n\t\t{\n\t\t\t$a_in_module = $ilCtrl->getModuleDir();\n\t\t}\n\n\t\tif (strpos($a_tplname,\"/\") === false)\n\t\t{\n\t\t\t$module_path = \"\";\n\t\t\t\n\t\t\t//$fname = $ilias->tplPath;\n\t\t\tif ($a_in_module)\n\t\t\t{\n\t\t\t\tif ($a_in_module === true)\n\t\t\t\t{\n\t\t\t\t\t$module_path = ILIAS_MODULE.\"/\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$module_path = $a_in_module.\"/\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// use ilStyleDefinition instead of account to get the current skin\n\t\t\tinclude_once \"Services/Style/classes/class.ilStyleDefinition.php\";\n\t\t\tif (ilStyleDefinition::getCurrentSkin() != \"default\")\n\t\t\t{\n\t\t\t\t$fname = \"./Customizing/global/skin/\".\n\t\t\t\t\tilStyleDefinition::getCurrentSkin().\"/\".$module_path.basename($a_tplname);\n\t\t\t}\n\n\t\t\tif($fname == \"\" || !file_exists($fname))\n\t\t\t{\n\t\t\t\t$fname = \"./\".$module_path.\"templates/default/\".basename($a_tplname);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$fname = $a_tplname;\n\t\t}\n\t\t\n\t\treturn $fname;\n\t}", "title": "" }, { "docid": "460c4c579116b4024a1b6c6465c93111", "score": "0.6867609", "text": "private function get_template_base_dir() {\n\t\treturn array(\n\t\t\tWPML_TM_PATH . '/templates/troubleshooting',\n\t\t);\n\t}", "title": "" }, { "docid": "b8c9b4c6df698d3e39da82ae80e7cdc1", "score": "0.6863294", "text": "public function getTemplateFile() {\n return $this->templateFile;\n }", "title": "" }, { "docid": "8820cfa5be29a3eda3f5f54e9f71367d", "score": "0.6862841", "text": "public function getAutoRunTemplatePath() \n {\n if (!$this->autoRunTemplatePath) {\n $this->errors[] = \"No autoRunTemplatePath found\";\n return false;\n }\n \n return $this->autoRunTemplatePath; \n }", "title": "" }, { "docid": "3abefa91dd2f87913c51dc311600e46d", "score": "0.6853561", "text": "public static function get_root_dir () {\r\n\t\treturn get_template_directory();\r\n\t}", "title": "" }, { "docid": "0f505af8612df3a29502df1517cbfc92", "score": "0.6848574", "text": "public function getWelcomePageTemplatePath()\n {\n return $this->welcomePageTemplatePath;\n }", "title": "" } ]
2101f142f3b6fc3c9603b6868ceac09d
TUL3: test login; wrong email not verified
[ { "docid": "e98563f7cc3993f8de5024be4c619ed4", "score": "0.71608084", "text": "public function testLoginEmailNotVerified(): void {\n\t\t$user = $this->createUserForLoginTests();\n\t\t$user->email_verified_at = null;\n\t\t$user->save();\n\t\t$response = $this->withHeaders([\n\t\t\t'Accept' => 'application/json',\n\t\t\t'Content-Type' => 'application/json',\n\t\t])->postJson($this->route.'/login', [\n\t\t\t'email' => $user->email,\n\t\t\t'password' => 'SafePassword1'\n\t\t\t]);\n\t\t$response->assertStatus(HttpStatus::STATUS_UNAUTHORIZED);\n\t\t$response->assertJson([\n\t\t\t'error' => 'You first need to verify your email.',\n\t\t]);\n\t}", "title": "" } ]
[ { "docid": "63e1284132a6acdf3f29aa754eca4558", "score": "0.7316163", "text": "public function testAuthLogin()\n {\n $email = env('ADMIN_EMAIL');\n $password = env('ADMIN_PASSWORD');\n\n $response = $this->post($this->url('auth'), [\n 'email' => $email,\n 'password' => $password\n ]);\n\n // should FAIL because email is not verified\n $response->assertStatus(403);\n\n $response->assertJsonStructure([\n 'token'\n ]);\n \n // attempt email verification\n $token = $response->baseResponse->original['token'];\n\n $response = $this->post($this->url('auth/resend'), [], [\n 'HTTP_Authorization' => \"Bearer $token\"\n ]);\n\n $response->assertStatus(200);\n\n $response->assertJson([\n 'message' => 'verification mail sent'\n ]);\n }", "title": "" }, { "docid": "c588430918dbad7722fc42283c0ccbbf", "score": "0.72782004", "text": "public function testMustEnterCorrectEmailAndPassword()\n {\n $this->json('POST', $this->base_url . 'login', $this->getUserCredentials(), $this->getHeaders(false))\n ->assertStatus(401)\n ->assertJson([\n 'is_success' => false,\n 'status_code' => 401,\n 'message' => 'please login with the correct data',\n 'errors' => []\n ]);\n }", "title": "" }, { "docid": "a51d74e1d47197b7e4d0fb05c7ac0bce", "score": "0.7159717", "text": "public function testUserCredentialsEmail()\n {\n }", "title": "" }, { "docid": "afb97b35a54d00810ff44645b53243e0", "score": "0.71103966", "text": "public function testLoginWrongEmail(): void {\n\t\t$response = $this->withHeaders([\n\t\t\t'Accept' => 'application/json',\n\t\t\t'Content-Type' => 'application/json',\n\t\t])->postJson($this->route.'/login', [\n\t\t\t'email' => 'wrongmail@website.sk',\n\t\t\t'password' => 'SafePassword1'\n\t\t\t]);\n\t\t$response->assertStatus(HttpStatus::STATUS_UNAUTHORIZED);\n\t\t$response->assertJson([\n\t\t\t'error' => 'User could not be authenticated.',\n\t\t]);\n\t}", "title": "" }, { "docid": "d1853a532ff853b02492262971d742d8", "score": "0.6891604", "text": "public function test_user_can_verify_his_email()\n {\n $user = User::factory()->create(['email_verified_at' => null]);\n $notification = new VerifyEmail();\n\n Auth::login($user);\n $url = parse_url($notification->verificationUrl($user));\n $response = $this->getJson('api' . $url['path'] . \"?\" . $url['query']);\n $response->assertStatus(204);\n }", "title": "" }, { "docid": "25f81e5f9c0947508ae728a9680dcc2e", "score": "0.68672734", "text": "public function testB3aCorrectLogin()\n {\n // test attendee 1\n $resAttendee1 = $this->http->post('/api/v1/login', [\n 'json' => [\n 'lastname' => 'Yakovich',\n 'registration_code' => '35DGZX',\n ],\n ]);\n\n $this->assertStatusCode(200, $resAttendee1);\n $this->assertResponse([\n 'firstname' => 'Horacio',\n 'lastname' => 'Yakovich',\n 'username' => 'attendee1',\n 'email' => 'hyakovich0@va.gov',\n 'token' => Config::$LOGIN_TOKEN['attendee1'],\n ], $resAttendee1);\n\n // test attendee 2\n $resAttendee2 = $this->http->post('/api/v1/login', [\n 'json' => [\n 'lastname' => 'Darthe',\n 'registration_code' => 'UP243M',\n ],\n ]);\n\n $this->assertStatusCode(200, $resAttendee2);\n $this->assertResponse([\n 'firstname' => 'Nanon',\n 'lastname' => 'Darthe',\n 'username' => 'attendee2',\n 'email' => 'ndarthe1@list-manage.com',\n 'token' => Config::$LOGIN_TOKEN['attendee2'],\n ], $resAttendee2);\n }", "title": "" }, { "docid": "44a0f680488bb91713ec83ad2d865e7f", "score": "0.68585354", "text": "public function test_log_in_to_system()\n {\n $user = User::factory()->create();\n $response_correct = $this->call('POST', '/api/login', [\n 'email' => $user->email,\n 'password' => $user->email\n ]);\n\n $response_failed = $this->call('POST', '/api/login', [\n 'email' => $user->email,\n 'password' => $user->email.'-test'\n ]);\n\n $this->assertEquals(200, $response_correct->getStatusCode());\n $this->assertEquals(401, $response_failed->getStatusCode());\n }", "title": "" }, { "docid": "a98ef37bdd18505483f15467c380c2ca", "score": "0.68207026", "text": "public function testCorrectCredentials()\n {\n $this->visit('/');\n $this->type('reyphilipregis@gmail.com', 'email');\n $this->type('secret', 'password');\n $this->press('Login');\n $this->seePageIs('/home');\n $this->see('Welcome Rey Philip Regis!');\n }", "title": "" }, { "docid": "9b7b2d350000d7da3c7b6355c44dd18f", "score": "0.6805906", "text": "public function testCreateUserCredentialsEmail()\n {\n }", "title": "" }, { "docid": "913d7b143968a5b34655434e65911b31", "score": "0.678649", "text": "public function testLogin()\n {\n\n\n $user = factory(User::class)->create([\n 'username' => 'tempvalue',\n 'password' => bcrypt('i-love-laravel'),\n ]);\n\n $response = $this->from('/Login/checkLogin')->post('/Login/checkLogin', [\n 'email' => $user->email,\n 'password' => 'invalid-password',\n ]);\n\n $response->assertRedirect('/Login/checkLogin');\n $response->assertSessionHasErrors('email');\n $this->assertTrue(session()->hasOldInput('email'));\n $this->assertFalse(session()->hasOldInput('password'));\n\n }", "title": "" }, { "docid": "4c99c3caea14192afec759b28b1ed524", "score": "0.67666197", "text": "private function loginWithEmail()\n\t{\n\t\t// TODO: handle email login system and build Mandrill mailing function\n\t}", "title": "" }, { "docid": "40948f995590b48b9764d0658eb725ae", "score": "0.6687625", "text": "public function testLoginTest()\n {\n $this->browse(function (Browser $browser) {\n $browser\n // ->visit('logout')\n ->visit('/login')\n ->type('email','admin@infixedu.com')\n ->type('password','123456')\n ->click('#btnsubmit')\n ->waitForText('Welcome')\n ->assertSee('Welcome');\n });\n }", "title": "" }, { "docid": "40948f995590b48b9764d0658eb725ae", "score": "0.6687625", "text": "public function testLoginTest()\n {\n $this->browse(function (Browser $browser) {\n $browser\n // ->visit('logout')\n ->visit('/login')\n ->type('email','admin@infixedu.com')\n ->type('password','123456')\n ->click('#btnsubmit')\n ->waitForText('Welcome')\n ->assertSee('Welcome');\n });\n }", "title": "" }, { "docid": "40948f995590b48b9764d0658eb725ae", "score": "0.6687625", "text": "public function testLoginTest()\n {\n $this->browse(function (Browser $browser) {\n $browser\n // ->visit('logout')\n ->visit('/login')\n ->type('email','admin@infixedu.com')\n ->type('password','123456')\n ->click('#btnsubmit')\n ->waitForText('Welcome')\n ->assertSee('Welcome');\n });\n }", "title": "" }, { "docid": "40948f995590b48b9764d0658eb725ae", "score": "0.6687625", "text": "public function testLoginTest()\n {\n $this->browse(function (Browser $browser) {\n $browser\n // ->visit('logout')\n ->visit('/login')\n ->type('email','admin@infixedu.com')\n ->type('password','123456')\n ->click('#btnsubmit')\n ->waitForText('Welcome')\n ->assertSee('Welcome');\n });\n }", "title": "" }, { "docid": "d223ad7d14278d86b3c4bce9a4b87735", "score": "0.6655787", "text": "public function test_should_not_see_email_validation_when_email_is_valid()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit(new Login)\n ->assertSee('Sign In')\n ->type('@email', 'bernandotorrez4@gmail.com')\n ->pressLoginAndDontSeeEmailValidation();\n });\n }", "title": "" }, { "docid": "7a4ad8cf69f24da3e0884b49406a048c", "score": "0.66465837", "text": "public function check_user_existance()\n {\n $response=$this->json('GET', '/userLogIn',[\n 'email'=>'ahmedyosre13@gmail.com',\n 'password'=>'123456ah'\n ]);\n\n $response\n ->assertJson(['status'=>200])\n ->assertStatus(200);\n }", "title": "" }, { "docid": "35acf2cd82bb9ebd5fd86ae6fc5adf43", "score": "0.66312337", "text": "function validUser()\n{\n global $f3;\n\n //retrieve the post data\n $email = $f3->get('email');\n $password = $f3->get('password');\n\n //compare data, still need to work on password\n if ($email == 'admin@email.com' && $password == \"123456789\") {\n return true;\n }\n $f3->set(\"errors['login']\", \"Email/password combination does not match our records\");\n return false;\n}", "title": "" }, { "docid": "0de4f5125b95edde71ad3149b69dc8f0", "score": "0.6619584", "text": "public function testLoginIsFailedWhenUserNonVerifiedWithEmail()\n {\n $email = 'foo@example.com';\n $password = 'secret';\n $user = factory(User::class)->create([\n 'name' => 'foo',\n 'email' => $email,\n 'is_verified_with_email' => false,\n 'password' => bcrypt($password),\n ]);\n\n $credentials = [\n 'email' => $email,\n 'password' => $password,\n ];\n\n $response = $this->post(TestHelper::getApiBase().'/auth/login', $credentials);\n $response\n ->assertStatus(200)\n ->assertJson(['_code' => 1]);\n }", "title": "" }, { "docid": "d2ca58124d5c45c03732df304263295b", "score": "0.6618431", "text": "public function testFindsUserByEmail()\n {\n $this->mockUserLookupByEmail();\n $this->getService()->loginUser('smith@example.com', '123456');\n }", "title": "" }, { "docid": "9dd7c5749ec984eb55c96a8b6a0f81e5", "score": "0.6616961", "text": "public function testLoginWithValidCredential() {\n// $user = factory(User::class)->create([\n// 'password' => bcrypt($password = 'i-love-laravel'),\n// ]);\n $user = User::where('email', 'admin@admin.com')->get()[0];\n $response = $this->post('/login', [\n 'email' => $user->email,\n 'password' => 'password',\n ]);\n\n $response->assertRedirect('/home');\n $this->assertAuthenticatedAs($user);\n }", "title": "" }, { "docid": "724d963963058ec979ed91ea1c4b927d", "score": "0.6607867", "text": "public function testAuthHandlerLogin() {\n $name = 'Georgi.Facello';\n $passwd = 'updatetest';\n\n $wrong_passwd = 'testest1';\n\n $authed = AuthHandler::login($name, $passwd, false);\n\n $this->assertEquals($authed, true);\n\n $authed_again = AuthHandler::login($name, $wrong_passwd, false);\n\n $this->assertEquals($authed_again, array('Password is not correct.'));\n }", "title": "" }, { "docid": "6e6b855710f9098d99ea71de6702cf73", "score": "0.6591647", "text": "public function testVerifyemailAction()\n {\n // We should not be able to call this without an email or auth key\n $this->dispatchUri('/user/verifyemail?authKey=abcd', null, true);\n $this->resetAll();\n $this->dispatchUri('/user/verifyemail?email=test@test.com', null, true);\n\n $pending = $this->PendingUser->createPendingUser('testverify@email.com', 'Pending', 'User', 'badpassword');\n $this->resetAll();\n $this->dispatchUri(\n '/user/verifyemail?email='.$pending->getEmail().'&authKey='.$pending->getAuthKey(),\n null\n );\n $this->assertRedirectTo('/user/userpage');\n $user = $this->User->getByEmail($pending->getEmail());\n $this->assertTrue($user instanceof UserDao);\n $this->assertEquals($user->getFirstname(), $pending->getFirstname());\n $this->assertEquals($user->getLastname(), $pending->getLastname());\n $pendingUsers = $this->PendingUser->getByParams(array('email' => $pending->getEmail()));\n $this->assertEmpty($pendingUsers);\n }", "title": "" }, { "docid": "db3933512c254d4514d181711dc0994c", "score": "0.65878737", "text": "public function testCreateUserCredentialsEmailPasswordReset()\n {\n }", "title": "" }, { "docid": "d7592be44832402446bee670a260e89e", "score": "0.656907", "text": "public function test_login()\n {\n $data = $this->test_registration();\n $response = $this->postJson('/api/token', ['email' => $data['email'], 'password' => $data['password']]);\n\n $response->assertStatus(200)\n ->assertJson([\n 'token' => true,\n ]);\n }", "title": "" }, { "docid": "d22711d8aecad589261ca9c3d204267d", "score": "0.6547265", "text": "public function testLoginTest()\n {\n $response = $this->get('/login');\n $response->assertViewIs('auth.login');\n $response->assertSeeInOrder(['E-Mail Address', 'Password', 'Remember Me']);\n\n // POST /login : authenticate user\n $credentials = [\n 'email' => 'mario44@elite.com', 'password' => 'mario44',\n '_token' => 'lIXB7CSBLlfZ7JIKgNd9p8NVRp0qEIJrkFaHh93d'\n ];\n $response = $this->post('/login', $credentials);\n $response->assertStatus(302);\n $this->assertAuthenticated();\n\n// $this->printValue( $this->user = Auth::user() );\n }", "title": "" }, { "docid": "77b9a9eb63e2ffb2fdd22299d140726b", "score": "0.6539664", "text": "public function testGuestVisitingLoginPage()\n {\n $response = $this->get('/login');\n $response->assertSee('E-Mail Address');\n $response->assertSee('Password');\n }", "title": "" }, { "docid": "140c0d14937784dce10a04197da0ba27", "score": "0.6537381", "text": "public function testSearchCredentialsEmail()\n {\n }", "title": "" }, { "docid": "7a34cec2cf2a2ed528e35a9ee4cfafd0", "score": "0.6527661", "text": "public function testMustEnterEmailAndPassword()\n {\n $this->json('POST', $this->base_url . 'login', [], $this->getHeaders(false))\n ->assertStatus(422)\n ->assertJson([\n 'is_success' => false,\n 'status_code' => 422,\n 'message' => 'The given data was invalid.',\n 'errors' => [\n ['field' => 'email', 'message' => 'The email field is required.', 'code' => 4171],\n ['field' => 'password', 'message' => 'The password field is required.', 'code' => 4171],\n ]\n ]);\n }", "title": "" }, { "docid": "ea553935b6beca762493158950b1ab72", "score": "0.652269", "text": "public function testLogin()\n {\n $userInfo = $this->userInfo;\n\n $user = User::create([\n 'name' => $userInfo['name'],\n 'email' => $userInfo['email'],\n 'password' => bcrypt($userInfo['password']),\n ]);\n\n $response = $this\n ->post(route('guest.processLogin'), [\n 'email' => $userInfo['email'],\n 'password' => $userInfo['password']\n ]);\n\n $this->assertAuthenticated();\n\n $response\n ->assertStatus(302)\n ->assertRedirect(route('user.profile'));\n }", "title": "" }, { "docid": "521d62a0b53b7e33933abca07104443f", "score": "0.6516104", "text": "public function testSendUserCredentialsEmailPasswordReset()\n {\n }", "title": "" }, { "docid": "0f2e4cc40c633d9e9e6167233e4ffcf4", "score": "0.6471573", "text": "public function testAuthPage()\n {\n // visit test si la page est OKAY\n // et si je me trouve dans l'uri /ogin\n $this->visit('/login')\n // code 200 : Bon fonctionement de la page\n ->see('Email') // see permet de voir un element HTML\n ->see('Password');\n }", "title": "" }, { "docid": "3d091ca87dd288f0a962110968377966", "score": "0.6454037", "text": "public function test_validate_wrong_user_or_password()\n {\n\n /* wrong user */\n $request = $this->post('/v1/login', [\n 'email' => 'john.does@email.com',\n 'password' => 'secret',\n ]);\n\n $request->response->assertJson([\n 'error' => 'Please check your email or password !'\n ])->assertStatus(400);\n\n /* wrong password */\n $request = $this->post('/v1/login', [\n 'email' => 'john.doe@email.com',\n 'password' => 'secreto',\n ]);\n\n $request->response->assertJson([\n 'error' => 'Please check your email or password !'\n ])->assertStatus(400);\n\n }", "title": "" }, { "docid": "c4fb13e9bb215d9b0652563a6c53ba51", "score": "0.64443064", "text": "public function login_should_succeed_with_valid_email_credentials()\n {\n $credentials = [\n 'grant_type' => 'password',\n 'client_id' => 'testClient',\n 'client_secret' => 'testSecret',\n 'username' => 'testuser@test.de',\n 'password' => 'test'\n ];\n\n $response = $this->call('POST', route('login'), $credentials);\n\n $this->assertTrue($response->isOk(), 'Response was not ok.');\n\n $this->assertNotEmpty($response->getContent(), 'Response content is empty');\n\n $jsonResponse = json_decode($response->getContent());\n $token = $jsonResponse->access_token;\n\n $this->assertNotEmpty($token, 'Token is empty');\n }", "title": "" }, { "docid": "5027e7b58b5f2827ba6295c18c8fa31e", "score": "0.6440388", "text": "public function testUserLogin()\n {\n try {\n $this->LS->twoStepLogin('test', 'abc', true, false);\n } catch (TwoStepLogin $TSL) {\n $this->assertEquals('login_fail', $TSL->getStatus());\n }\n\n /**\n * Login with correct password\n */\n try {\n $this->LS->twoStepLogin('test', 'xyz', true, false);\n } catch (TwoStepLogin $TSL) {\n $this->assertEquals('enter_token_form', $TSL->getStatus());\n $this->assertEquals(true, $TSL->getOption('remember_me'));\n }\n }", "title": "" }, { "docid": "ff5e9a41786568cf1d4429a043e3b27e", "score": "0.64293176", "text": "public function testLoginSucessfully()\n\t\t{\n\t\t\t/*T_T*/\n\t\t\t$user = factory(User::class)->create([\n\t\t\t\t'password' => bcrypt($password = 'whydoeslaravelhateme'),\n\t\t\t]);\n\t\t\t$response = $this->post('/login', [\n\t\t\t\t'email' => $user->email,\n\t\t\t\t'password' => $password,\n\t\t\t]);\n\t\t\t$response->assertRedirect('/home');\n\t\t\t$this->assertAuthenticatedAs($user);\n\t\t\t$user->forceDelete();\n\t\t}", "title": "" }, { "docid": "f821883fe8a2043e94e9687c580032f9", "score": "0.6410773", "text": "public function testLoginExample()\r\n {\r\n $this->visit('/login')\r\n ->type('snkaushi@gmail.com', 'email')\r\n ->type('1234567', 'password')\r\n ->press('Login')\r\n ->seePageIs('/admin');\r\n }", "title": "" }, { "docid": "75e02f1422559305c9e108a5b90a618b", "score": "0.64014435", "text": "public function testUserCredentialsTotp()\n {\n }", "title": "" }, { "docid": "9ccbc86594cc66a941598a41fda9a213", "score": "0.6391966", "text": "public function testtoCheckwhenUserEntersWrongDetails()\n {\n $user = factory(\\App\\User::class)->create([\n 'password' => bcrypt('967391'),\n ]);\n $response = $this->from('/login')->post('/login',\n [\n 'email' => $user->email,\n 'password' => 'random',\n ]);\n $response->assertRedirect('/login');\n\n }", "title": "" }, { "docid": "cb2cc97910b14b99f8cab6b80b57aaff", "score": "0.6371895", "text": "public function test_correct_response_after_user_logs_in()\n {\n $user = User::factory()->create();\n $this->postJson('/api/login', [\n 'email' => $user->email,\n 'password' => 'password'\n ])->assertOk()\n ->assertJson([\n 'message' => 'User logged in successfully.',\n ]);\n }", "title": "" }, { "docid": "1cb8e35e93c42149978ae090a6112180", "score": "0.63531256", "text": "public function testValidUserVisitingLoginPage()\n {\n $member = factory(\\App\\User::class)->create();\n $this->be($member);\n\n $response = $this->get('/login');\n $response->assertStatus(302);\n $response->assertRedirect('/home');\n }", "title": "" }, { "docid": "398a5119cab80c3459352aae57c7ccb1", "score": "0.6346988", "text": "public function testLogin()\n {\n $this->visit('/')\n ->see('Login')\n ->type('glk', 'username')\n ->type('pa$$word', 'password')\n ->press('Login')\n ->see('Mobile Device Repair Portal');\n }", "title": "" }, { "docid": "f3d9964d4999d1b24ce3b4cebc4cab22", "score": "0.6315206", "text": "public function testMutualAuthentiation() {\n $this->Srp->setNotRandom(\"823466d37e1945a2d4491690bdca79dadd2ee3196e4611342437b7a2452895b9564105872ff26f6e887578b0c55453539bd3d58d36ff15f47e06cf5de818cedf951f6a0912c6978c50af790b602b6218ebf6c7db2b4652e4fcbdab44b4a993ada2878d60d66529cc3e08df8d2332fc1eff483d14938e5a\");\n // salt is created at user first registration\n $salt = $this->SrpClient->generateRandomSalt(); \n $username = \"tom@arcot.com\";\n $password = \"password1234\";\n // verifier to be generated at the browser during user registration and password (or email address) reset only\n $v = $this->SrpClient->generateVerifier($salt, $username, $password);\n // normal login flow step1a client: browser starts with username and password given by user at the browser\n $this->SrpClient->step1($username, $password);\n // server challenge\n $B = $this->Srp->step1($username, $salt, $v);\n // client response is array of credentials\n $credentials = $this->SrpClient->step2($salt, $B);\n $A = $credentials[0];\n $M1 = $credentials[1];\n $M2 = $this->Srp->step2($A, $M1);\n $this->assertTrue($this->SrpClient->verifyConfirmation($M2));\n // noop assert else phpunit complains about this test. thinbus-php will have thrown exception if authenitication didn't work.\n $this->assertEquals(0, 0);\n\n }", "title": "" }, { "docid": "a90d2212be259ca6488e2941a716add5", "score": "0.6307643", "text": "public function test_login_page_with_mock_email_to_check_page_redirection()\n {\n \tSession ::start();\n \n // This line will POST to the login page with a mock email and password through a token.\n \t$response = $this->call('POST', '/login',\n [\n \t 'email' => 'matt@test.com',\n 'password' => 'test123',\n '_token' => csrf_token()\n \t ]\n );\n\n // This line will ensure that the test is running and when the user logins, it must be redirected to the next page, hence HTTP request 302 is the redirection status. This test is only initiated when the response of the above code is true and it will get the status code.\n \t$this->assertEquals(302, $response->getStatusCode());\n }", "title": "" }, { "docid": "b6525c4ac701220ba6149674a6d55b97", "score": "0.6305152", "text": "public function test_should_see_email_validation_when_email_is_empty()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit(new Login)\n ->assertSee('Sign In')\n ->type('@email', '')\n ->pressLoginAndSeeEmailRequired();\n });\n }", "title": "" }, { "docid": "4ae720c620ef531ab3a2936aff85ba15", "score": "0.62925524", "text": "public static function login($email,$pass)\n {\n }", "title": "" }, { "docid": "c7b30fd261ccd85e00d67c1d46ac8abf", "score": "0.6289709", "text": "public function testLogin()\n {\n $response = $this->json(\n 'POST',\n 'api/login',\n ['email' => 'tevin00@example.com', 'password' => 'secret']);\n\n //Verifica se token foi gerado com sucesso\n $response\n ->assertStatus(200)\n ->assertJson([\n 'token' => true,\n ]);\n\n //Verifica se status code é 200 e resultou em sucesso\n $response->assertOk();\n $response->assertSuccessful();\n }", "title": "" }, { "docid": "6874e323665fc82d90d2b73aa552513b", "score": "0.6289165", "text": "public function testValidationLogin()\n {\n $this->browse(function (Browser $browser) {\n $browser->logout();\n $browser->visit('/login')\n ->press('LOGIN')\n ->assertPathIs('/login')\n ->assertSee('The username field is required.')\n ->assertSee('The password field is required.');\n });\n }", "title": "" }, { "docid": "a643881982879a211695851c8080fbfb", "score": "0.6274944", "text": "public function testResponseValidLogin(){\n $response = $this->json('POST', 'api/users/login', [\n 'email' => 'test@test.com', \n 'password' => 'admin'\n ]);\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "6dffebee5cd7f69883bdbdc470d9edc9", "score": "0.6267605", "text": "public function test_user_can_resend_email()\n {\n $user = User::factory()->create(['email_verified_at' => null]);\n Auth::login($user);\n $response = $this->getJson(route('api.verification.resend'));\n $response->assertStatus(202);\n }", "title": "" }, { "docid": "700b1a2fb96ab557e9b0ae4f4739fb6d", "score": "0.62663054", "text": "public function testUserForCredential()\n {\n }", "title": "" }, { "docid": "7ae05b9daffda2efcec5bf12925f3339", "score": "0.62619764", "text": "public function testNoEmail()\n {\n $this->visit('/');\n $this->type('secret', 'password');\n $this->press('Login');\n $this->seePageIs('/');\n $this->see('The email field is required.');\n }", "title": "" }, { "docid": "5465115d717b5cb98d1af47e2c963508", "score": "0.62389874", "text": "protected function testRegistrationWithEmailVerificationEnabledUsingOneTimeLoginLink() {\n $root = $this->drupalCreateUser(array('administer blocks', 'administer users', 'administer site configuration'));\n $this->drupalLogin($root);\n $this->drupalPost('admin/build/block',\n array(\n 'user_0[region]' => -1,\n ),\n 'Save blocks'\n );\n $this->drupalLogout();\n variable_set('user_email_verification', TRUE);\n $email = $this->randomName() . '@' . $this->randomName() .\".com\";\n\t\t$pass = $this->randomName();\n\t\t$options = array('mail' => $email,\n\t\t\t\t\t\t\t\t\t\t 'pass' => $pass,\n\t\t\t\t\t\t\t\t\t\t 'pass2' => $pass,\n\t\t\t\t);\n $this->drupalPost('', $options, 'Send');\n $this->assertText(t('We have just sent a confirmation e-mail to this address'), t('After registration, custom confirmation message is displayed.'));\n $this->assertEqual($this->getUrl(),url('<front>', array('absolute' => TRUE)), t('After registration, the user is redirected to the front page.'));\n $mail = end($this->drupalGetMails());\n $this->assertMail('id', 'user_register_no_approval_required', t('Confirmation email has been sent to...'));\n $this->assertMail('to', $email, '... the email address used to register');\n $matches = array();\n $this->assertTrue(preg_match('-\\?q=([^\\s]*user/reset/[^\\s]*)-', $mail['body'], $matches), 'One-time login found in mail body');\n sleep(5);\n $this->drupalGet($matches[1]);\n $this->assertTrue(\n strpos($this->getUrl(),\n 'poker/first_profile'),\n t('After login with one-time login link from the email, the user is invited to fill his/her profile.')\n );\n $profile = array(\n 'profile_nickname' => $this->randomName(),\n 'profile_gender' => t('Male'),\n 'profile_country' => 'FR',\n 'profile_city' => $this->randomName(),\n\t\t\t'files[picture_upload]' => drupal_get_path('module', 'os_poker'). '/avatar1.png',\n );\n $this->drupalPost(NULL, $profile, t('Send'));\n\n $mail = end($this->drupalGetMails());\n $this->assertMail('id', 'os_poker_profile', t('After profile submission, a \"Successful registration\" email has been sent to...'));\n $this->assertMail('to', $email, '... the email address used to register');\n $this->verbose('Mails: ' . highlight_string('<?php ' . var_export($this->drupalGetMails(), TRUE), TRUE));\n }", "title": "" }, { "docid": "fe2186300029ca7b512e4c1416ce6214", "score": "0.62298447", "text": "public function testUserLogin()\n {\n $client = static::createClient();\n\n $path = '/Credentials';\n\n $crawler = $client->request('GET', $path);\n }", "title": "" }, { "docid": "3ad325d80e8a441ef00d3f31af7a92c5", "score": "0.6221578", "text": "public function testlogin(){\n $token = array (\n \"iss\" => URL,\n \"aud\" => URL,\n \"iat\" => time(),\n \"nbf\" => time() + 10,\n \"exp\" => time() + 7200\n );\n $jwt = JWT::encode($token, KEY);\n JWT::$leeway = 60; // $leeway in seconds\n $decoded = JWT::decode($jwt, KEY, array('HS256'));\n $decoded_array = (array) $decoded;\n $data['jwt'] = $jwt;\n $data['decoded'] = $decoded_array;\n\n // if($decoded_array->exp < $decoded_array->iat){\n // $data['token'] = 'Invalid Token Expired';\n // }\n\n View::renderTemplate('header');\n View::render('auth/test', $data, $e);\n View::renderTemplate('footer');\n }", "title": "" }, { "docid": "ba54aa8cb206bd2706757f14218eae79", "score": "0.62137365", "text": "public function verifyemailAction()\n {\n $email = $this->getParam('email');\n $authKey = $this->getParam('authKey');\n if (!isset($email) || !isset($authKey)) {\n throw new Zend_Exception('Must pass email and authKey parameters');\n }\n $pendingUser = $this->PendingUser->getByParams(array('email' => $email, 'auth_key' => $authKey));\n if (!$pendingUser) {\n throw new Zend_Exception('Invalid authKey or email');\n }\n\n if (!headers_sent()) {\n session_start();\n }\n $this->userSession->Dao = $this->User->createUser(\n $email,\n null,\n $pendingUser->getFirstname(),\n $pendingUser->getLastname(),\n 0,\n $pendingUser->getSalt()\n );\n session_write_close();\n\n $this->PendingUser->delete($pendingUser);\n $this->redirect('/user/userpage');\n }", "title": "" }, { "docid": "a6216f64eb54fd43ed51ef8f1336d75c", "score": "0.62086004", "text": "public function testClientLogin()\n {\n $user = User::where('email', 'client@example.com')->first();\n\n $this->browse(function ($browser) use ($user) {\n $browser\n ->resize(1920, 1080)\n ->visit('http://localhost:8000/login')\n ->waitForText('Login')\n ->type('#email', $user->email)\n ->type('#password', 'password')\n ->click('.login-form button')\n ->assertPathIs('/comensal')\n ->waitForText(\"Bienvenido, {$user->name}\")\n ->assertSee(\"Bienvenido, {$user->name}\");\n });\n }", "title": "" }, { "docid": "8b98ea329200eea71a52e22897ebe137", "score": "0.62064105", "text": "public function testAuthPasswordResetPost()\n {\n }", "title": "" }, { "docid": "67235eaabc5464317ba6b1b8575aeeb9", "score": "0.62055707", "text": "function login_test_user_new_pw ()\r\n{\r\n global $user;\r\n\r\n # logout current user\r\n $user->logout();\r\n # login as test user\r\n return $user->login(REGRESSION_TEST_USER_NAME, REGRESSION_TEST_USER_NEW_PW);\r\n}", "title": "" }, { "docid": "4f7190d52fd366cf14b4a9753407805e", "score": "0.6202603", "text": "public function testLoginWrongUser()\n\t\t{\n\t\t\t$user = factory(User::class)->create([\n\t\t\t\t'password' => bcrypt($password = 'whydoeslaravelhateme'),\n\t\t\t]);\n\t\t\t$response = $this->from('/login')->post('/login', [\n\t\t\t\t'email' => 'thisisnotmyemail@email.com',\n\t\t\t\t'password' => $password,\n\t\t\t]);\n\t\t\t$response->assertRedirect('/login');\n\t\t\t$response->assertSessionHasErrors('email');\n\t\t\t$this->assertTrue(session()->hasOldInput('email'));\n\t\t\t$this->assertFalse(session()->hasOldInput('password'));\n\t\t\t$this->assertGuest();\n\t\t\t$user->forceDelete();\n\t\t}", "title": "" }, { "docid": "e02e4720f8af3c42d77167a4be18fd5e", "score": "0.6201347", "text": "public function p_login() {\n\t\t$_POST = DB::instance(DB_NAME)->sanitize($_POST);\n\t\t\n\t\t# Hash submitted password so we can compare it against one in the db\n\t\t$_POST['password'] = sha1(PASSWORD_SALT.$_POST['password']);\n\t\t\n\t\t# Search the db for this email and password\n\t\t# Retrieve the token if it's available\n\t\t$q = \"SELECT token \n\t\t\tFROM users \n\t\t\tWHERE email = '\".$_POST['email'].\"' \n\t\t\tAND password = '\".$_POST['password'].\"'\";\n\t\t\n\t\t$token = DB::instance(DB_NAME)->select_field($q);\t\n\t\t\t\t\t\n\t\t# If we didn't get a token back, login failed\n\t\tif(!$token) {\n\t\t\t\t\n\t\t\t# Send them back to the login page\n\t\t\tRouter::redirect(\"/users/login/Login failed. Please check your username and password.\");\n\t\t\t\n\t\t# But if we did, login succeeded! \n\t\t} else {\n\t\t\t\t\n\t\t\t# Store this token in a cookie\n\t\t\tsetcookie(\"token\", $token, strtotime('+2 weeks'), '/');\n\t\t\t\n\t\t\t# Send them to the main page - or wherever you want them to go\n\t\t\tRouter::redirect(\"/\");\t\t\t\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "969c1186715b7d63f87e50ef73f6895c", "score": "0.61982", "text": "public function testLoginWithMalformedUserUuid()\n {\n\n }", "title": "" }, { "docid": "dcb8cdb152cc214e9a424b37e6b77950", "score": "0.6191702", "text": "public function testWrongCredentials()\n {\n $client = static::createClient();\n $crawler = $client->request('GET', '/login');\n\n $form = $crawler->selectButton('Connexion')->form();\n\n $form['_username'] = 'wrong@wrong.com';\n $form['_password'] = 'mkgfg87';\n\n $crawler = $client->submit($form);\n $crawler = $client->followRedirect();\n \n $this->assertEquals(\n 1,\n $crawler->filter('span:contains(\"Identifiants invalides.\")')->count()\n );\n }", "title": "" }, { "docid": "026bb102b35c8868b74e3a838db0de42", "score": "0.61768633", "text": "public function login()\n {\n $client = static::createClient();\n\n /* Send Request for login page */\n $crawler = $client->request('GET', '/');\n\n /* Fill Login Form with registered email and Submit*/\n $form = $crawler->selectButton('login')->form();\n $form['email_login[email]'] = 'nahla_sameh@ymail.com';\n $crawler = $client->submit($form);\n\n /* Validate Login Form Response*/\n $this->assertEquals(200, $client->getResponse()->getStatusCode());\n $this->assertStringContainsString(\n 'Please Check your email for otp',\n $client->getResponse()->getContent()\n );\n\n\n /* Fill Login Form with valid otp and Submit*/\n $form = $crawler->selectButton('submit')->form();\n $form['otp_login[otp]'] = '638rz';\n $client->submit($form);\n\n /* Validate OTP Form Response*/\n $this->assertEquals(302, $client->getResponse()->getStatusCode());\n $this->assertStringContainsString(\n 'Redirecting to /colleague/',\n $client->getResponse()->getContent()\n );\n\n /* Retuen logged client to continue working on it*/\n return $client;\n }", "title": "" }, { "docid": "2221fe1d87f9e9767e03ffe63354552c", "score": "0.61738706", "text": "public function testUserLogin()\n {\n $user = factory('App\\User')->create();\n \n $this->post('/auth/login', ['email' => $user->email, 'password' => '12345'])\n ->seeStatusCode(200)\n ->seeJsonStructure([\n 'token',\n ]);\n }", "title": "" }, { "docid": "4101658178874592deda4f4fb3b32db7", "score": "0.61704266", "text": "public function testAuthPasswordLostGet()\n {\n }", "title": "" }, { "docid": "4d8db1ced43bb4c683ea92636b042450", "score": "0.6168129", "text": "function VerifyLogin()\n\t{\n\t\t$this->load->library('form_validation');\n\n\t\t$this->form_validation->set_rules('email', 'Email', 'trim|required|xss_clean|valid_email');\n\t\t$this->form_validation->set_rules('password', 'Password', 'trim|required|xss_clean|callback_check_database');\n\n\t\tif($this->form_validation->run() == FALSE)\n\t\t{\n\t\t\t//Field validation failed. User redirected to login page\n\t\t\t$data['email'] = \"\";\n\t\t\t$data['password'] = \"\";\n\t\t\t$this->template->write_view('content','athlete/login', $data);\n\t\t\t$this->template->render();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//Go somewhere?\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "41014076789ae159b0ee88ef52801807", "score": "0.6166493", "text": "public function testWrongCredentials()\n {\n $this->visit('/');\n $this->type('reyphilipregis@gmail.com', 'email');\n $this->type('wrongpassword', 'password');\n $this->press('Login');\n $this->seePageIs('/');\n $this->see('These credentials do not match our records.');\n }", "title": "" }, { "docid": "ca0ab29de7b5bf196f47cfe615c5a6d2", "score": "0.6165748", "text": "public function testSuccessLogin()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/admin/login')\n ->type('email', $this->user->email)\n ->type('password', '12345')\n ->press('Login')\n ->assertPathIs('/admin')\n ->assertSee('Admin Dashboard');\n });\n }", "title": "" }, { "docid": "15e3d330fc186e7fb49bc52d9b858159", "score": "0.61639297", "text": "public function testLogin()\n {\n $this->login->openLoginDialog();\n $this->login->username = $this->p4users['vera']['User'];\n $this->login->password = $this->p4users['vera']['Password'];\n $this->login->submitLoginDialog();\n }", "title": "" }, { "docid": "6c2993f719f4342abbec4544fec6ccd5", "score": "0.615939", "text": "public function testAdminLogin()\n {\n $user = User::where('email', 'admin@hive.online')->first();\n\n $this->browse(function ($browser) use ($user) {\n $browser\n ->resize(1920, 1080)\n ->visit('http://localhost:8000/login')\n ->waitForText('Login')\n ->type('#email', $user->email)\n ->type('#password', 'weallfit2017')\n ->click('.login-form button')\n ->waitForText('MENU')\n ->assertSee('MENU');\n });\n }", "title": "" }, { "docid": "35e430edfeadd1e742a3d6e70db29f16", "score": "0.61586297", "text": "public function testLogin(){\n\n $loginInput = [\n \"email\" => 'joep@haaksma.me',\n \"password\" => 'joeppiejajee'\n ];\n\n $this->visit('/login')\n ->submitForm($loginInput, \"#loginForm\")\n ->see('Welkom');\n }", "title": "" }, { "docid": "8c2ce10561765f33f0a29e84afbc0ace", "score": "0.6157773", "text": "public function testLoginPage()\n {\n $this->visit('/')\n ->see('PDFun')\n ->see('Login');\n }", "title": "" }, { "docid": "4616ef6ea4acd2bff55a8aa1f41520ed", "score": "0.61571395", "text": "public function testNonExistingUserLogin()\n {\n $userInfo = $this->userInfo;\n\n $response = $this\n ->post(route('guest.processLogin'), [\n 'email' => $userInfo['email'],\n 'password' => $userInfo['password']\n ]);\n\n $this->assertGuest();\n\n $response\n ->assertStatus(302)\n ->assertRedirect('/');\n }", "title": "" }, { "docid": "f11d8dfe8c73c269e533e3e1afcb8f43", "score": "0.615642", "text": "public function testFailLogin()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/admin/login')\n ->type('email', 'error@error.err')\n ->type('password', 'error')\n ->press('Login')\n ->assertSee('These credentials do not match our records.');\n });\n }", "title": "" }, { "docid": "cef1af7739568ddf5ec8b69326e21175", "score": "0.61525065", "text": "private function userslogin() {\n\n if ($this->get_request_method() != \"POST\" || empty($this->_raw['email']) || empty($this->_raw['password'])) {\n $this->response('', 400);\n }\n\n $email = $this->_raw['email'];\n $password = $this->_raw['password'];\n\n // Input validations\n if (!empty($email) and ! empty($password)) {\n if (filter_var($email, FILTER_VALIDATE_EMAIL)) {\n\n $res = $this->db->query(\"SELECT * FROM users where email='\" . $email . \"' and deletedAccount = 0\");\n if ($res->rowCount() > 0) {\n $result = $res->fetch(PDO::FETCH_ASSOC);\n\n $stored_hash = $result[\"password\"];\n unset($result[\"password\"]);\n if (crypt($password, $stored_hash) == $stored_hash) {\n $this->response($this->json($result), 200);\n }\n }\n }\n }\n\n // If invalid inputs \"Bad Request\" status message and reason\n $error = array('status' => \"Failed\", \"msg\" => \"Invalid Email address or Password\");\n $this->response($this->json($error), 400);\n }", "title": "" }, { "docid": "99c0de1e27676d9b299167746a7342e8", "score": "0.6150793", "text": "public function testNoEmailAndPassword()\n {\n $this->visit('/');\n $this->press('Login');\n $this->seePageIs('/');\n $this->see('The email field is required.');\n $this->see('The password field is required.');\n }", "title": "" }, { "docid": "2ddccfb4fa5735d24c28427c8f8a9fdb", "score": "0.6149988", "text": "function loginCheck() {\r\n /* Setup POST parameters - Begin */\r\n $ArrayPostParameters = array();\r\n $ArrayPostParameters[] = \"Command=User.Login\";\r\n $ArrayPostParameters[] = \"ResponseFormat=JSON\";\r\n $ArrayPostParameters[] = \"Username=\".$_POST['username'];\r\n $ArrayPostParameters[] = \"Password=\".$_POST['password'];\r\n /* Setup POST parameters - End */\r\n\r\n if ($_POST['save']) {\r\n $this->updateAdminOptions(array(\r\n \"Username\" => $_POST['username'],\r\n \"Password\" => $_POST['password'],\r\n// \"URL\" => $_POST['imnicamail_url']\r\n )); \r\n }\r\n\r\n $response = $this->_postToRemoteURL($_POST['imnicamail_url'].\"/api.php?\", $ArrayPostParameters);\r\n if (false == $response[0]) {\r\n echo \"false\";\r\n } else {\r\n echo $response[1];\r\n }\r\n \r\n exit;\r\n }", "title": "" }, { "docid": "1ba8b5830f6b853b02d19a9a0360b676", "score": "0.6145825", "text": "private function login()\n {\n\n }", "title": "" }, { "docid": "27210129238123f6e626b675c42d2cc0", "score": "0.6144636", "text": "public function testUserCredentialsApi3()\n {\n }", "title": "" }, { "docid": "a39d437ec89d58824d5976f4591790f6", "score": "0.6144073", "text": "public function testUserCannotLoginWithoutValidPassword()\n {\n $this->visit('/login')\n ->type($this->userInfo['email'], 'email')\n ->type('wrongpassword', 'password')\n ->press('Login')\n ->dontSee('Dashboard');\n }", "title": "" }, { "docid": "a504f74591045c3d4ccdc91d592d51a9", "score": "0.61348164", "text": "public function testSigningInWithBadCredentials()\n {\n\n $this->visit('/login');\n $this->type('badEmail@testing.com', 'email');\n $this->type('passwordTest', 'password');\n $this->press('Login');\n $this->seePageIs('/login');\n $this->see('These credentials do not match our records.');\n\n }", "title": "" }, { "docid": "cf0ec46b55852d584cf15c9bfddc4eaf", "score": "0.6123815", "text": "public function test_login_ok() {\n \t//create data to test ok\n \t$username = 'thuyvy';\n \t$password = '12345';\n \t$rs = $this->_user->login($username, $password);\n \t//compare id return is greater than 0 is login ok\n \t\n \t$this->assertGreaterThan(0, $rs['id']);\n \t \n }", "title": "" }, { "docid": "cfc73101a17290d49480753b099bdb9f", "score": "0.61180276", "text": "public function test_login_api_success() {\n echo \"2 test_login_api_success!!!\";\n \n $params = [\n 'email' => 'customer@gmail.com',\n 'password' => 'dummydummy'\n ];\n \n $this->json('POST', 'api/login', $params, ['Accept' => 'application/json'])\n ->assertStatus(200)\n ->assertJsonStructure([\n \"error\",\n \"message\",\n \"data\" => [\n \"user\" => [\n \"id\",\n \"email\",\n \"user_type_id\",\n \"token\"\n ]\n ]\n ]);\n }", "title": "" }, { "docid": "11d26d87db884a2f20b3bb50dbe6453f", "score": "0.61062676", "text": "public function testAuthChangePasswordPost()\n {\n }", "title": "" }, { "docid": "226612ad60bc5f949fecbea1fc1fee5e", "score": "0.61056376", "text": "public function testEmailFieldsWhenUserEmailIsAuthenticated() {\n\t\t$prefs = $this->prefsFor( 'auth' );\n\t\t$this->assertArrayHasKey( 'cssclass',\n\t\t\t$prefs['emailaddress']\n\t\t);\n\t\t$this->assertEquals( 'mw-email-authenticated', $prefs['emailaddress']['cssclass'] );\n\t}", "title": "" }, { "docid": "101f9f3c4da7952a9d5a0c803874a941", "score": "0.61047", "text": "public function testValidation()\n {\n $this->email = \"\";\n $this->password = \"\";\n $login = $this->login();\n $code = Config('constants.STATUS_CODE.REQUEST_VALIDATION');\n $login->assertStatus($code)\n ->assertJson([\n \"status\" => false,\n \"code\" => $code,\n \"messages\" => [\n \"email\" => [\"The email field is required.\"],\n \"password\" => [\"The password field is required.\"]\n ]\n ],$code);\n }", "title": "" }, { "docid": "f19e177da28aa7b9918a72e408084c03", "score": "0.61018914", "text": "public function testUserLoginSuccess()\n { \n $this->makeData();\n $this->browse(function (Browser $browser) {\n $browser->logout();\n $browser->visit('/')\n ->clickLink('Login')\n ->assertSee('Login')\n ->assertPathIs('/login')\n ->type('username', 'user1')\n ->type('password', 'user1')\n ->press('LOGIN')\n ->assertSee('Outstanding Places')\n ->assertSee('user1')\n ->assertPathIs('/');\n });\n }", "title": "" }, { "docid": "fb7bb82b8e0e96b984ead7fac0272972", "score": "0.6100137", "text": "public function test_profileUnilogin() {\n\n }", "title": "" }, { "docid": "895dd0535104fa63c3feb03419bdb22c", "score": "0.6096354", "text": "public function testUserCredentialsOidc()\n {\n }", "title": "" }, { "docid": "38874322e5665bd7c817f01c7504d14a", "score": "0.6092093", "text": "public function testAuthPasswordResetGet()\n {\n }", "title": "" }, { "docid": "621166fa46f52d3df0f1b2cb6a4950dc", "score": "0.60888934", "text": "public function actionVerify(){\n $lwe = Yii::$app->params['lwe'];\n\n // if 'lwe' value is 'true' we instantiate LoginForm in 'lwe' scenario\n $model = $lwe ? new LoginForm(['scenario' => 'lwe']) : new LoginForm();\n\n // now we can try to log in the user\n if ($model->load(Yii::$app->request->post()) && $model->login()) \n {\n return $this->goBack();\n }\n // user couldn't be logged in, because he has not activated his account\n elseif($model->notActivated())\n {\n // if his account is not activated, he will have to activate it first\n Yii::$app->session->setFlash('error', \n 'You have to activate your account first. Please check your email.');\n return $this->refresh();\n } \n // account is activated, but some other errors have happened\n else\n {\n return $this->render('login', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "0bc2709125b5f347638d7a9d12b19eb0", "score": "0.60879827", "text": "function emailVerification($db,$settings,$idu,$salt = NULL) {\n\tglobal $TEXT;\n\t\n\tif(is_null($salt)) {\n\n\t\t// Select user\n\t\t$user = $db->query(sprintf(\"SELECT * FROM `users` WHERE `users`.`idu` = '%s' \", $db->real_escape_string($idu)));\n\t\t\n\t\t// Fetch user\n\t\t$result = $user->fetch_assoc();\n\t \n\t\t// Generate secure random code\n\t\t$salted = md5(secureRand(10,TRUE));\n\t\t\n\t\t// Set activation response\n\t\t$db->query(sprintf(\"UPDATE `users` SET `salt` = '%s' WHERE `users`.`idu` = '%s' AND `users`.`state` = 2 \", $salted, $db->real_escape_string($idu)));\n\n\t\t// Send activation mail\n\t\tmailSender($settings, $result['email'], $TEXT['_uni-Activate_account'], sprintf($TEXT['_uni-Activation_mail'], $TEXT['title'], $TEXT['installation'].'/index.php?respond='.$salted.'&type=activation&for='.$result['idu']), $TEXT['web_mail']);\n\t\t\n\t\treturn $TEXT['_uni-login-2'];\n\n\t} else {\n\t\t\n\t\t// Select user\n\t\t$user = $db->query(sprintf(\"SELECT * FROM `users` WHERE `users`.`idu` = '%s' AND `users`.`salt` = '%s' AND `users`.`state` = 2 \", $db->real_escape_string($idu), $db->real_escape_string($salt)));\t\n\t\t\n\t\t// Fetch user\n\t\t$result = $user->fetch_assoc();\n\n\t\t// If code MATCHED\n\t\tif($user->num_rows) {\n\t\n\t\t\t// Activate the account\n\t\t\t$db->query(sprintf(\"UPDATE `users` SET `users`.`salt` = '', `users`.`state` = 1 WHERE `users`.`idu` = '%s' \", $db->real_escape_string($idu)));\n\n\t\t\t// Delete any pending accounts\n\t\t\t$db->query(sprintf(\"UPDATE `users` SET `users`.`email` = 'NULL', `users`.`state` = 4 WHERE `users`.`email` = '%s' AND `users`.`state` != 1 \", $db->real_escape_string($result['email'])));\n\n\t\t\treturn 'ACTIVATED';\n\t\t\t\n\t\t} else {\n\t\t\treturn $TEXT['_uni-E-Mail_verification1'];\n\t\t}\n\t}\n}", "title": "" }, { "docid": "4af163259a92400a118efbdeb84ae458", "score": "0.608265", "text": "public function testSuccess()\n {\n\n $response = $this->post('/login', [\n 'email' => '17244412@studentmail.ul.ie',\n 'password' => '12345678'\n ]);\n\n $response->assertRedirect('/home');\n $this->assertTrue(Auth::check());\n\n $response2 = $this->get('/topics');\n $response2->assertStatus(200);\n }", "title": "" }, { "docid": "1007c722123628f06323a610287c82e0", "score": "0.60803056", "text": "public function testAuthUser()\n {\n }", "title": "" }, { "docid": "46044d7c56cb03b85913a516fbc8ccbc", "score": "0.6076069", "text": "public function testSignInAsUserWithValidCredentials()\n {\n $crawler = $this->client->request('GET', '/login');\n\n $form = $crawler->selectButton('Se connecter')->form();\n $form->setValues(\n [\n '_username' => 'user',\n '_password' => '12345'\n ]\n );\n $this->client->submit($form);\n $crawler = $this->client->followRedirect();\n $this->assertContains(\n 'Bienvenue sur Todo List, l\\'application vous permettant de gérer l\\'ensemble de vos tâches sans effort !',\n $crawler->filter('h1')->text()\n );\n }", "title": "" }, { "docid": "859411bdcf83105bf0402cb92d74b401", "score": "0.6069966", "text": "public function testLogin(): void {\n\t\t$user = $this->createUserForLoginTests();\n\t\t$response = $this->withHeaders([\n\t\t\t'Accept' => 'application/json',\n\t\t\t'Content-Type' => 'application/json',\n\t\t])->postJson($this->route.'/login', [\n\t\t\t'email' => $user->email,\n\t\t\t'password' => 'SafePassword1'\n\t\t]);\n\t\t$response->assertStatus(HttpStatus::STATUS_OK);\n\t\t$this->assertDatabaseHas('oauth_access_tokens',[\n\t\t\t'user_id' => $user->id\n\t\t]);\n\t}", "title": "" }, { "docid": "1b5d74ee93e0f915961f2bd0d5e18f1a", "score": "0.6069544", "text": "function loginUser($email, $password){ if (filter_var($email, FILTER_VALIDATE_EMAIL))\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "2e26d47bd4888bc6ef5700ad12846f2e", "score": "0.6067823", "text": "public function testLoginInvalidUser()\n {\n $this->get('/login');\n\n // Log in with non-existing user. DB can be empty as well.\n $this->user_data = [\n 'email' => 'john@doe.com',\n 'password' => 'password',\n '_token' => session('_token')\n ];\n\n $response = $this->post('login', $this->user_data);\n\n // Test the view.\n $view = $this->withViewErrors([\n __('Invalid e-mail or password.')\n ])->view('pages.login');\n\n $view->assertSee(__('Whoops! Something went wrong.'));\n $view->assertSee(__('Invalid e-mail or password.'));\n\n /*\n * There are errors in session('errors') and they should be there, but they cannot be asserted using\n * assertSessionHasErrors. The error message is returned \"Invalid e-mail or password.\"\n */\n $this->markTestIncomplete('This test is incomplete.');\n }", "title": "" }, { "docid": "3602bac14d3fc77d626c3fdbc787f192", "score": "0.6065842", "text": "public function testLoginWithInvalidData(): void\n {\n $this->post(['_name' => 'login'], ['username' => 'wrong', 'password' => 'wrong']);\n $this->assertResponseOkAndNotEmpty();\n $this->assertSessionEmpty('Auth');\n $this->assertFlashMessage('Invalid username or password');\n $this->assertLogContains('Failed login: username `wrong`, password `wrong`', LOGS . 'users.log');\n }", "title": "" } ]
b5183db07e7c47463bcbf60f654ae588
Get the value of email
[ { "docid": "0cb2fe4f3b28584b4d8e8523ebf1c749", "score": "0.0", "text": "public function getEmail() {\n return $this->email;\n }", "title": "" } ]
[ { "docid": "26c57884c2f5cba0677920f45339bf89", "score": "0.81008834", "text": "public function getEmail()\n {\n return $this->_email->getValue();\n }", "title": "" }, { "docid": "78a643adf77619c6c79d86db5aede6f8", "score": "0.80336183", "text": "public function getEmail() {\n\t\treturn Temboo_Results::getSubItemByKey($this->base, \"email\");\n\t}", "title": "" }, { "docid": "47ebb834a80c57cd0cb17cbaa1f40c83", "score": "0.80121577", "text": "function getEmail()\n\t{\n\t\treturn $this->Info['Email'];\t\n\t}", "title": "" }, { "docid": "77b4c648fb178ffb2f50295754baf105", "score": "0.79125786", "text": "public function get_email(){\n\t\treturn $this->email;\n\t}", "title": "" }, { "docid": "5f3c799fcfb75594124f330c45b32698", "score": "0.79124844", "text": "function emailget()\n\t\t{\n\t\t\treturn $this->emailencoded;\n\t\t}", "title": "" }, { "docid": "97e5d806468c6fe79e0f83db0d5d647a", "score": "0.7899727", "text": "public function getEmail(){\n\t\tif(isset($this->userInfo['email'])){\n\t\t\treturn $this->userInfo['email'];\n\t\t}else{\n\t\t\treturn '';\n\t\t}\n\t}", "title": "" }, { "docid": "ad36bbf9d5c67b251b87bad152cec785", "score": "0.78922296", "text": "public function getEmail()\n {\n return $this->getField('email');\n }", "title": "" }, { "docid": "7a9dd33d49d2d49ad80d041996e244bf", "score": "0.7871857", "text": "function get_email() {\n return $this->email;\n }", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.7846493", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.7846493", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.7846493", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.7846493", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.7846493", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.7846493", "text": "public function getEmail();", "title": "" }, { "docid": "98801db9d6d2359558c90856fe1c41de", "score": "0.7830119", "text": "public function getEmail()\n {\n return $this->data['email'];\n }", "title": "" }, { "docid": "f59a3fa555237b9945d5f8e9cc035c27", "score": "0.7803626", "text": "public function get_email(){\n return $this->email;\n }", "title": "" }, { "docid": "a2dc9e9c0f6acac48f565352e3079081", "score": "0.778365", "text": "function getEmail()\n {\n return (string) $this->_sEmail;\n }", "title": "" }, { "docid": "f89262cf470771d714af63e7ab9b4813", "score": "0.7768055", "text": "public function getEmail() {\n\t\treturn $this->getValue(self::FIELD_EMAIL);\n\t}", "title": "" }, { "docid": "34674bf48611571797ac8497f72e61c6", "score": "0.77575105", "text": "public function getEmail() {\n return $this->getData('email');\n }", "title": "" }, { "docid": "d94632457609920b93e7568168b51d40", "score": "0.77339", "text": "public function getEmail() {\n return ($this->email);\n }", "title": "" }, { "docid": "3ced3e9a832ccb5f49d7e16b48b2d90c", "score": "0.7732975", "text": "public function getEmail( ){\n\t\treturn $this->email;\n\t}", "title": "" }, { "docid": "58f956117fc205fc2fa4e9e01826b949", "score": "0.7713299", "text": "public function get_email()\n\t{\n\t\treturn $this->email;\n\t}", "title": "" }, { "docid": "0d534bbfe7e123b73403c673004e153e", "score": "0.7706289", "text": "public function getEmail() {\n return @$this->attributes['email'];\n }", "title": "" }, { "docid": "23b4b8edfa6404fc8038f78621b3d9f7", "score": "0.77032053", "text": "public function email(){\r\n\t\treturn $this->_email;\r\n\t}", "title": "" }, { "docid": "b34b290e20e1c6decfdd794e4f3d544b", "score": "0.76672834", "text": "public function getEmail()\n {\n return $this->response['email'];\n }", "title": "" }, { "docid": "407bae883ed25c5e1a71c8cb22ffd29d", "score": "0.7641527", "text": "public function get_email()\n {\n return $this->_email;\n }", "title": "" }, { "docid": "407bae883ed25c5e1a71c8cb22ffd29d", "score": "0.7641527", "text": "public function get_email()\n {\n return $this->_email;\n }", "title": "" }, { "docid": "407bae883ed25c5e1a71c8cb22ffd29d", "score": "0.7641527", "text": "public function get_email()\n {\n return $this->_email;\n }", "title": "" }, { "docid": "881e23cc72a16f3b891daae59112ed1c", "score": "0.7632148", "text": "public function getEmail()\n {\n return \\array_key_exists('email', $this->response) ? $this->response['email'] : null;\n }", "title": "" }, { "docid": "e9d4156895716130114899f16c877106", "score": "0.76218843", "text": "public function getEmail(){\n\t\treturn $this->email;\n\t}", "title": "" }, { "docid": "e523deb41002f816f03b53e3998a658d", "score": "0.76151574", "text": "public function GetEmail() : string\r\n\t{\r\n\t\treturn $this->email;\r\n\t}", "title": "" }, { "docid": "891eab10069279ae9b27686b2fedc369", "score": "0.76047623", "text": "public function getEmail()\r\n\t{\r\n\t\r\n\t\treturn $this->email;\r\n\t\r\n\t}", "title": "" }, { "docid": "7fd563b5d19788904f1dcb26e1737630", "score": "0.75880754", "text": "public function getEmail()\n\t{\n\t\treturn($this->email);\n\t}", "title": "" }, { "docid": "3e5fcf618d5e1576f5fd2b8ea3617437", "score": "0.7554712", "text": "public function getEmail()\n {\n return $this->get('email');\n }", "title": "" }, { "docid": "b3dbbc03c8002cd2570354d4dec45dde", "score": "0.75507295", "text": "public function get_email() {\n \n return $this->email;\n \n }", "title": "" }, { "docid": "c338743a2d2bc2481e4a018375b050b0", "score": "0.75424355", "text": "public function getEmail(): string {\n\t\treturn $this->email;\n\t}", "title": "" }, { "docid": "ada09155ef7514d4d73cefd7c1c4294c", "score": "0.75385994", "text": "public function getEmail(): string\n {\n return $this->email;\n }", "title": "" }, { "docid": "ada09155ef7514d4d73cefd7c1c4294c", "score": "0.75385994", "text": "public function getEmail(): string\n {\n return $this->email;\n }", "title": "" }, { "docid": "62a2a16c57c567e397eeb7996da25f8a", "score": "0.75337386", "text": "public function getEmail() {\n return $this->get('email');\n }", "title": "" }, { "docid": "e3f60e336991e5006094d809f7186a45", "score": "0.7531016", "text": "public function getEmail()\r\n {\r\n return $this->email;\r\n }", "title": "" }, { "docid": "e3f60e336991e5006094d809f7186a45", "score": "0.7531016", "text": "public function getEmail()\r\n {\r\n return $this->email;\r\n }", "title": "" }, { "docid": "4d23fb149af1c0630d93e64846bc9680", "score": "0.7529935", "text": "public function getEmail()\n {\n return $this->getParameter('email');\n }", "title": "" }, { "docid": "6f985714eb2d264fdd4d72d4dd9592fe", "score": "0.7529341", "text": "public function getContactEmail();", "title": "" }, { "docid": "90e2c8a49019d26e4c5b3d04285a8b8f", "score": "0.7517549", "text": "public function getEmail() {\n return $this->attributes['email'];\n }", "title": "" }, { "docid": "9f828c2c66037a1743129ad66fd8594b", "score": "0.75120115", "text": "public function getEmail()\r\n {\r\n return $this->_email;\r\n }", "title": "" }, { "docid": "0d1b9ca2a697b79d5a1bdbe7649d502e", "score": "0.7509169", "text": "public function getEmail(): string\n {\n // return's the Email as a string\n return $this->Email;\n }", "title": "" }, { "docid": "f50adba5912c2466c33b99aff11dc49b", "score": "0.7499738", "text": "public function getEmail()\n {\n if( !is_null($this->sEmail) )\n {\n if( $this->sEmail==='' )\n {\n return NULL;\n }\n else\n {\n return $this->sEmail;\n }\n }\n else\n {\n $this->hydrateFromBDD(array('email'));\n $this->callHydrateFromBDDOnGet++;\n if($this->callHydrateFromBDDOnGet>10)\n {\n echo \"<br />WARNING : trop d'appel en base depuis l'accesseur \". __CLASS__ .\"::\". __FUNCTION__ .\"\";\n }\n return $this->sEmail;\n }\n }", "title": "" }, { "docid": "b9a041df15e8f501a188e820f088ed00", "score": "0.7497625", "text": "public function _get_email(){\n //grabbing the email inside the class \n return $this->email;\n }", "title": "" }, { "docid": "446667c02c20782928cefa8dc169b5b8", "score": "0.7489811", "text": "public function getEmail()\r\n {\r\n return $this->email;\r\n }", "title": "" }, { "docid": "527806b9cfebef6e1334e1eec349f066", "score": "0.7489686", "text": "public function getEmail() { return $this->email; }", "title": "" }, { "docid": "c6d68f95cd3be982f04dc706253a122b", "score": "0.7488976", "text": "public function getEmail() : string\n {\n return $this->email;\n }", "title": "" }, { "docid": "c93a223e64504081d269b07796c7bdd7", "score": "0.7486633", "text": "public function getEmail() {\n\n return $this->sEmailAluno;\n }", "title": "" }, { "docid": "64bf024604249b46e35ee557bf42667c", "score": "0.7485541", "text": "public function getEmail() {\r\n\t\treturn $this->email;\r\n\t}", "title": "" }, { "docid": "dc1e8c7a4477a9aaca4cd406234e9524", "score": "0.74805254", "text": "public function getEmail(){\n return $this->email;\n }", "title": "" }, { "docid": "6717a3b7fa5315f5c77f84f8b4529a84", "score": "0.747782", "text": "public function getEmail()\n\t{\n\t\tif( !is_null($this->sEmail) )\n\t\t{\n\t\t\tif( $this->sEmail==='' )\n\t\t\t{\n\t\t\t\t return NULL;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t return $this->sEmail;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->hydrateFromBDD(array('email'));\n\t\t\t$this->callHydrateFromBDDOnGet++;\n\t\t\tif($this->callHydrateFromBDDOnGet>10)\n\t\t\t{\n\t\t\t\techo \"<br />WARNING : trop d'appel en base depuis l'accesseur \". __CLASS__ .\"::\". __FUNCTION__ .\"\";\n\t\t\t}\n\t\t\treturn $this->sEmail;\n\t\t}\n\t}", "title": "" }, { "docid": "330d886416cee1faba73323de774c516", "score": "0.7464984", "text": "public function getEmail()\r\n\r\n {\r\n\r\n return $this->email;\r\n\r\n }", "title": "" }, { "docid": "aeb73f444b3db96b9f13dfddf01bc60f", "score": "0.7453555", "text": "public function email()\n {\n return $this->email;\n }", "title": "" }, { "docid": "69015d22f12705d85c960687f704664c", "score": "0.7453133", "text": "public function getEmail()\n {\n return $this->response['email'] ?: null;\n }", "title": "" }, { "docid": "3217634645185bd62cf465e46beaf95b", "score": "0.74522406", "text": "public function get_email(){\n\t\treturn $this->wp_user_obj->user_email;\n\t}", "title": "" }, { "docid": "1cf9ddd8e45a787e3614ab7e7d56fff5", "score": "0.7448452", "text": "public function getEmail()\n\t\t{\n\t\t\t\treturn $this->email;\n\t\t}", "title": "" }, { "docid": "a1ef591c5b4540dde2a1a07fc550f845", "score": "0.7441894", "text": "public function getEmail()\n\t{\n\t\treturn $this->email;\n\t}", "title": "" }, { "docid": "a1ef591c5b4540dde2a1a07fc550f845", "score": "0.7441894", "text": "public function getEmail()\n\t{\n\t\treturn $this->email;\n\t}", "title": "" }, { "docid": "eee5982eed5bdcbf63dc746accd54391", "score": "0.74410504", "text": "public function get_mail_address();", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" }, { "docid": "dd6c7a13d8063b4eb64b98e4ac912900", "score": "0.74337065", "text": "public function getEmail()\n {\n return $this->email;\n }", "title": "" } ]
406ccab91b497c71cbc448b5ac78c338
Conectar a la base de datos
[ { "docid": "db75cd746e1293154ce69d8182fe4386", "score": "0.0", "text": "public function __construct(){\n $this->db = Database::connect();\n }", "title": "" } ]
[ { "docid": "85447d7c649797ebf2664d3f79d1347a", "score": "0.76319677", "text": "function conectar(){\r\n //Conexao com o Banco\r\n $open = new OpenDB();\r\n $open->setUsuario('orquestr_site');\r\n $open->setSenha('Minotauro@036');\r\n $open->conectar();\r\n }", "title": "" }, { "docid": "8c391af00ff76011e35be489293717e1", "score": "0.752026", "text": "private function Conectar()\n\t{\n\t\tif($this->Conexion = mysqli_connect($this->Servidor, $this->Usuario, $this->Contraseña)){\n\t\t\n\t\t//Seleccionamos la base de datos\n\t\tmysqli_select_db($this->Conexion, $this->BaseDatos);\n\t\t\n\t\t\n\t\t\n\t\t} else {echo(\"no conectado\");}\n\t}", "title": "" }, { "docid": "9e8aafd3e559d86badb7f7fe0cc3ef6d", "score": "0.73117083", "text": "private static function conectar() {\r\n\t\t$server = 'localhost';\r\n $database = 'spsystem';\r\n $username = 'rebeca';\r\n $password = '123';\r\n $options = array(PDO::MYSQL_ATTR_INIT_COMMAND => \"set names utf8\");\r\n //metodo de acceso para hacer referencia a un elemento a un objeto statico\r\n self::$coneccion = null;\r\n try\r\n {\r\n self::$coneccion = new PDO(\"mysql:host=\".$server.\"; dbname=\".$database, $username, $password, $options);\r\n self::$coneccion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\r\n }\r\n catch(PDOException $exception)\r\n {\r\n //detener el programa y mostrar el mensaje\r\n die($exception->getMessage());\r\n }\r\n\t}", "title": "" }, { "docid": "042492eba121c5b072d61f14d73f8cc5", "score": "0.72987527", "text": "function setConectar()\n {\n //Faz a conexao com ao banco e armazena na variavel this->link\n $link = mysqli_connect($this->hostname, $this->usuario, $this->senha) or die (mysqli_error());\n //Seleciona o banco a ser usado no mysqli\n mysqli_select_db($link, \"id3322788_cadastro\");\n }", "title": "" }, { "docid": "e295a96d33a0fda8c73b3670bf60fe99", "score": "0.72793776", "text": "public static function Conectar(){\n try {\n $conexion = new PDO(\"mysql:host=\".self::servidor.\";dbname=\"\n .self::basedatos.\";charset=utf8\",self::usuario,self::password);\n $conexion->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);\n\n // Se crea una variable que sera de retorno, devolviendo la conexion\n // a la base de datos\n return $conexion;\n } catch (PDOException $e) {\n return \"Fallo la conexion a la base de datos\".$e->getMessage();\n }\n }", "title": "" }, { "docid": "c70c8720fa69ccd319e1396c57996dda", "score": "0.72624624", "text": "private function conectar(){\n try{\n $this->conexion = Conexion::abrirConexion(); /*inicializa la variable conexion, llamando el metodo abrirConexion(); de la clase Conexion por medio de una instancia*/\n }\n catch(Exception $e)\n {\n die($e->getMessage()); /*Si la conexion no se establece se cortara el flujo enviando un mensaje con el error*/\n }\n }", "title": "" }, { "docid": "7a025634bc1685518d0bc4b5c2d22073", "score": "0.72322553", "text": "function conexao()\n\t{\n\t\t\t\t$this->banco = NewADOConnection($this->tipo_banco);\n\t\t\t\t$this->banco->dialect = 3;\n\t\t\t\t$this->banco->debug = true;\n\t\t\t\t$this->banco->Connect($this->servidor,$this->usuario,$this->senha,\"portal_noticias\");\n\t}", "title": "" }, { "docid": "e7325acd332b980ba37b9396550e9e19", "score": "0.72095716", "text": "public function conectar() {\n\t\t$this->arCon = pg_connect(\"host=\".$this->db_host.\" port=5432 user=\".$this->db_usuario.\" \".\"password=\".$this->db_password.\" \".\"dbname=\".$this->db_nombre);\n\t}", "title": "" }, { "docid": "f86d20d91673ca089103733d96dd3401", "score": "0.71546614", "text": "protected function conexionDB() {\r\n $dsnBD = 'mysql:dbname=' . self::BD . ';host=' . self::servidor;\r\n try {\r\n $this->_conn = new PDO($dsnBD, self::usuBD, self::passwdBD);\r\n } catch (PDOException $e) {\r\n echo 'No hay conexión: ' . $e->getMessage();\r\n }\r\n }", "title": "" }, { "docid": "f3d7a53dbf127bf468e4b473c061bcc9", "score": "0.71105796", "text": "private function conectarAoBanco(){\n }", "title": "" }, { "docid": "4ea75d28ec2ced888d8139d47008a677", "score": "0.7096739", "text": "public static function conectar(){\r\n return new \\PDO(\"mysql:host=\" . DB_HOST . \"; dbname=\" . DB_NAME, DB_USER, DB_PASS);\r\n\t\t}", "title": "" }, { "docid": "dae20eac841d337d4f3d8412bad03c40", "score": "0.7075226", "text": "function conectar()\n {\n\n Return mysqli_connect($this->servidor, $this->usuario, $this->clave, $this->bd);\n \n }", "title": "" }, { "docid": "826f71e55976bac50dd07d25135fef0b", "score": "0.7030835", "text": "protected function conectar(){\n \n $con = mysql_connect($this->localhost,$this->usuario,$this->password)\n or die(mysql_error());\n mysql_query(\"SET NAMES 'UTF8' \");\n mysql_select_db($this->bd)\n or die(mysql_error());\n \n return $con;\n }", "title": "" }, { "docid": "76c081b4e8732da726b10a48ece693c8", "score": "0.70046073", "text": "public static function conectarDB(){\n $host = \"localhost\"; //define el servidor\n $basededatos = \"bd_demo\"; //define el nombre de la base de datos\n $usuariodb = \"root\"; //nombre del uduario autorizado para la BD \n $clavedb = \"\"; //password del usuario\n try { //bloque de proteccion de fallos mediante intentos\n $conexion = new mysqli($host, $usuariodb, $clavedb, $basededatos); //crea una instancia para conectar a BD\n } catch(Exception $e){ //atrapa el posible error\n echo $e->errorMessage(); //muestra el error\n exit(0); //termina el proceso\n }\n if($conexion->connect_errno){ //verifica si la conexion tuvo algun error\n echo \"<br>Error! No hay conexion a BD \";\n $conexion = false; //retorna falso para indicar que fallo la conexion\n exit(0);\n }\n return ($conexion); //retorna un objeto con la conexion a la BD\n }", "title": "" }, { "docid": "0cc9774bb9fcac509f6919af8f51ee11", "score": "0.69915086", "text": "public function conecta()\n\t{\n\t\t$mysqli = new mysqli(\"localhost\", \"root\", \"\", \"id3664941_elmunticbase\");\n\t\t//servidor, usuario de base de datos, contraseña del usuario, nombre de base de datos\t\t\n\t\tif(mysqli_connect_errno()){\n\t\t\techo 'Conexion Fallida : ', mysqli_connect_error();\n\t\t\texit();\n\t\t}\n\n\t\t\n\t}", "title": "" }, { "docid": "8a7885eb8ecda5bf69118e678abf69ab", "score": "0.69819653", "text": "public function conectar(){\r\n\t\t\t$this->link = mysqli_connect('localhost', 'root', '', 'scoem') \r\n\t\t\tor die('No se pudo conectar: ' . mysql_error());\r\n\t\t}", "title": "" }, { "docid": "3f2873e55e8541b7298ad6423e44179e", "score": "0.69698185", "text": "public function Conectar(){\n\t\tif (isset($this->Conexion)) return true; //Si ya está definida la conexión\n\t\ttry {\t\t\n\t\t\t//Usando PDO (PHP Data Objects) para conectarse.\n\t\t\t//Parámetros: \"mysql:host:servidor;dbname=instancia\", \"usuario\", \"contraseña\", codificación de caracteres\n\t\t\n\t\t\t//$Conexion será un Database Handle(manejador de la base de datos)\n\t\t\t$this->Conexion = new PDO($this->Servidor.\";dbname=\".$this->Instancia, $this->Sesion, $this->Contrasena, array(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\"));\n\t\t} catch (PDOException $UnError){\n\t\t\techo $UnError->getMessage();\n\t\t\treturn false;\n\t\t}\t\t\n\t\treturn true;\n }", "title": "" }, { "docid": "95724767def6c58aecf7f2ff3b04664d", "score": "0.6951451", "text": "public function conectar(){\n\t\t$link = new PDO(\"mysql:host=localhost;dbname=taw_practica12\",\"root\",\"\");\n\t\treturn $link;\n\n\t}", "title": "" }, { "docid": "9443fd65bd2d615cd5abb7e443bccea7", "score": "0.69480544", "text": "public function conectar()\n {\n $connect = new PDO(\"mysql:charset=utf8;host=localhost;dbname=redsocial\",'root','web');\n return $connect;\n }", "title": "" }, { "docid": "3fab5c2e2614ba094c382ea403306665", "score": "0.6840502", "text": "protected function conectar() {\n try {\n $this->pdo = new \\PDO('mysql: host=localhost;dbname=fiscalizape;charset=UTF8', 'root', '');\n $this->pdo->setAttribute(\\PDO::ATTR_ERRMODE,\\PDO::ERRMODE_EXCEPTION);\n return $this->pdo;\n } catch (\\PDOException $ex) {\n echo 'Erro: ' . $ex->getMessage();\n }\n }", "title": "" }, { "docid": "41df8eca3846beb8490805ca157243b4", "score": "0.6762757", "text": "function connect() {\r\n\t\t$this->conn();\r\n\r\n\t\tif (!$this->conn) {\r\n\t\t\tdie(\"Conexion a la base de datos fallida\" . mysqli_connect_error());\r\n\t\t}\r\n\t\tmysqli_close($this->conn);\r\n\t}", "title": "" }, { "docid": "099a8372adb193107d56f99da7ae2e44", "score": "0.67585", "text": "public function db_connexion();", "title": "" }, { "docid": "93a86d01491fda00b41ccf4ebc426459", "score": "0.67554116", "text": "function conectar(&$enlace)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t$enlace=mysqli_connect(\"10.0.30.15\",\"proyecto\",\"proyecto\");\r\n\t\t\t\t\t\tif($enlace==false)\r\n\t\t\t\t\t\t\tdie (\"No puede establecer la conexión<br>\"); \r\n\t\t\t\t\t\t//Seleccionar la base de datos\r\n\t\t\t\t\t\t$seleccion=mysqli_select_db($enlace,\"proyecto\");\r\n\t\t\t\t\t\tif($seleccion==false)\r\n\t\t\t\t\t\t\tdie (\"No se pudo seleccionar la base de datos<br>\");\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "147cef075cb44890e8133e783c4fc853", "score": "0.67498606", "text": "public function conect()\n {\n try\n {\n $connect_str = $this->DB_DRIVER . ':host=' . $this->DB_HOST . ';dbname=' . $this->DB_NAME;\n $this->db = new PDO($connect_str, $this->DB_USER, $this->DB_PASS);\n\n $error_array = $this->db->errorInfo();\n\n if ($this->db->errorCode() != 0000)\n {\n //error\n }\n } catch (PDOException $e)\n {\n die(\"Error: \" . $e->getMessage());\n }\n }", "title": "" }, { "docid": "9b8908ce45c972feb08f64e421051222", "score": "0.6739455", "text": "function conectar() {\n $con = mysql_connect($this->host, $this->user, $this->pass) or die($this->erro(mysql_error()));\n return $con;\n }", "title": "" }, { "docid": "b49391d215996dbec705502c896dc2b9", "score": "0.672246", "text": "public function conectar()\n {\n if ($this->driver == \"mysql\" || $this->driver == null) {\n // Creando dsn correspondiente a mysql\n $dsn = \"mysql:host={$this->host};dbname={$this->database};charset={$this->charset}\";\n // Creando objeto del tipo PDO\n $con = new PDO($dsn, $this->user, $this->pass);\n // Creando objeto PDO\n return $con;\n } else {\n // Retornando nulo\n return null;\n }\n }", "title": "" }, { "docid": "0aabcf74a04795787f90db857605c425", "score": "0.66701216", "text": "function conectar()\n {\n $enlace = mysql_connect(\"localhost\",\"root\",\"\") or die(\"No me he podido conectar\");\n\n //Elegimos base de datos\n $bd = mysql_select_db(\"Park-Eat\", $enlace) or die(\"No hemos podido coger la base de datos\");\n }", "title": "" }, { "docid": "e17ec56637cd4d00aee74fafea5b2dbf", "score": "0.66552275", "text": "public function conectar()\r\n {\r\n # Directorio actual de la base de datos\r\n $db = getcwd().\"\\\\\".$this->name;\r\n if( is_file($db) )\r\n {\r\n # Se forma la cadena de conexión\r\n $dsn = \"DRIVER={Microsoft Access Driver (*.mdb)};DBQ=\".$db;\r\n # Se realiza la conexón con Access\r\n $this->conexion = odbc_connect( $dsn, '', 'eastaeon123' );\r\n if (!$this->conexion)\r\n exit( \"Error: No se pudo completar la conexion \");\r\n else\r\n echo 'Conexión a ['.$this->name.' ]: Establecida';\r\n }\r\n else exit(\"Error: No existe archivo \".$this->name);\r\n }", "title": "" }, { "docid": "73337898997d69ab06f22c7f023feebf", "score": "0.6648305", "text": "public function Conexion(){\n\n\t\t\ttry{\n\t\t\t\t$this->conexion_db = new PDO('mysql:host=localhost; dbname=prueba', 'root', '');\n\n\t\t\t\t$this->conexion_db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n\t\t\t\t$this->conexion_db->exec(\"SET CHARACTER SET utf8\");\n\n\t\t\t\treturn $this->conexion_db;\n\n\t\t\t}catch(Exception $e){\n\t\t\t\techo \"la linea de error es: \". $e->getLine();\n\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a948b17a005f7d6712c463187ebff433", "score": "0.6612803", "text": "public static function conectar(){\n try {\n $cn = new PDO(\"mysql:host=localhost;dbname=login-php\",\"root\",\"\");\n\n return $cn;\n } catch (PDOException $e) {\n die($ex->getMessage());\n }\n\n }", "title": "" }, { "docid": "5e5f0efe840df266fe5d5818eec50423", "score": "0.661094", "text": "private function connexion() : void\n {\n try\n {\n $bdd = new PDO('mysql:host=localhost:3306;dbname='. $this->dbname, $this->login, $this->pass);\n $bdd->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);\n $bdd->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);\n $this->connec = $bdd;\n }\n catch (PDOException $e)\n {\n $msg = 'ERREUR PDO dans ' . $e->getFile() . ' Ligne.' . $e->getLine() . ' : ' . $e->getMessage();\n die($msg);\n }\n }", "title": "" }, { "docid": "281b9f0ef5ae1339adb946ca39d0fcf4", "score": "0.65919316", "text": "function conectar(){\n\t$respuesta=0;\t\n\tif($this->enlaceBD = mysql_connect($this->hostBD,$this->usuarioBD,$this->claveBD) or trigger_error(mysql_error(),E_USER_ERROR)){\n\t\t\tmysql_select_db($this->nombreBD,$this->enlaceBD) or die(mysql_error());\n\t\t\t$respuesta=1;\n\t\t}\n\t\treturn $respuesta;\n\t}", "title": "" }, { "docid": "6b32817bdae34423fb2a0f286f633121", "score": "0.6586195", "text": "public function Crearconexion() {\n $this->conexion = new mysqli($this->host, $this->user, $this->password, $this->database);\n if ($this->conexion->connect_errno) {\n die(\"Error al conectarse a MySQL: (\" . $this->conexion->connect_errno . \") \" . $this->conexion->connect_error);\n }\n }", "title": "" }, { "docid": "9ef202aa7b3c586bef7262639648ba9a", "score": "0.6584778", "text": "public function set_con(){\n try {\n //SE NÃO HOUVER OBJETO CRIADO, SERA CRIADA A INSTANCIA PARA CONEXAO\n if (is_null($this->con)) {\n $this->con = new PDO($this->dsn, $this->user, $this->pass);\n }\n } catch (Exception $e) {\n echo '<p>Falha ao conectar</p>';\n echo $error_con = $e->getMessage();\n }\n }", "title": "" }, { "docid": "bc8875d08516a43f4745022d1c497234", "score": "0.6583836", "text": "public static function conectar()\n {\n $conexion = new PDO(SGBD, USER, PASS);\n $conexion->exec(\"SET CHARACTER SET utf8\");\n return $conexion;\n }", "title": "" }, { "docid": "58932fe258c1980d915be104d5a6b65f", "score": "0.6559925", "text": "static public function conectar(){\r\n\t\t//\t \"lestrade_factura\",\r\n\t\t//\t \"matilda91098\");\r\n\r\n\t\t$link = new PDO(\"mysql:host=localhost;dbname=pos\",\r\n\t\t\t\t\t\t\t\t\t\"root\",\r\n\t\t\t\t\t\t\t\t\t\"\");\r\n\r\n\treturn $link;\r\n\r\n\r\n\r\n//return $link;\r\n\r\n\t}", "title": "" }, { "docid": "f65a566cf8c064c3e92edbe51daf5a8f", "score": "0.6558099", "text": "private static function connection(): void\n {\n try {\n $db = (object) new PDO('mysql:host=' . self::getHost() . ';dbname=' . self::getDbName(), self::getUsername(), self::getPassword());\n } catch (Exception $e) {\n die('Erreur : ' . $e->getMessage());\n } finally {\n self::$database = (object) $db;\n }\n }", "title": "" }, { "docid": "9c5261c8892b18797ab6d7c2799c9081", "score": "0.65407157", "text": "public function conectaPDO() {\n try {\n //echo \"conectou \";\n @$this->objPdo = new PDO(\"mysql:host=\" . $this->host . \";dbname=\" . $this->db.\";charset=UTF-8\", $this->user, $this->passwd);\n } catch (PDOException $e) {\n return $e->getMessage();\n }\n }", "title": "" }, { "docid": "813fd89690d8c4fd7629190caa438a07", "score": "0.6540135", "text": "public function conectar() \n{\n if(!isset($this->conexion)){\n $this->conexion = (mysqli_connect($this->localhost, $this->usuario,$this->password, $this->database)) or die(mysqli_error() );\n mysqli_set_charset($this->conexion, 'utf8');\n mysqli_select_db($this->conexion,$this->database) or die(mysqli_error()); \n }\n }", "title": "" }, { "docid": "713357471f7a017a2ede408325a71bd1", "score": "0.6523061", "text": "function conectar(){\n $opc = array(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\");\n $dsn = \"mysql:host=\".$db['host'].\";dbname=\".$db['database'];\n try{\n $this->conexion = new PDO($dsn, $db['user'], $db['pass'], $opc);\n $this->conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n }catch(PDOException $e){\n exit(\"No se pudo establecer la conexion con la base de datos, error: \".$e.getMessage());\n }\n return $this->conexion;\n}", "title": "" }, { "docid": "46f20001ec8446ddbbed503efdefe2ce", "score": "0.65066034", "text": "protected function conexion(){\n\t\t\ttry{\n\t\t\t\t// Opciones de la conexion a la base de datos\n\t\t\t\tself::$opcionesBD = array(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES \".self::$codeBD);\n\t\t\t\t// Conexion a la base de datos PDO\n\t\t\t\t$this->conexionBD = new PDO('mysql:host='.self::$serverBD.';dbname='.$this->nameBD,self::$userBD,self::$passBD,self::$opcionesBD);\n\t\t\t}catch(Exception $e){\n\t\t\t\tdie($e->getMessage(). \"\\n\");\t\n\t\t\t}\n\t\t\treturn $this->conexionBD;\n\t\t}", "title": "" }, { "docid": "bc34d7ba97ccfc6ff47badbff920060a", "score": "0.6488994", "text": "public function Conexion(){\n $this->conexion_db = new mysqli(DB_HOST, DB_USUARIO, DB_CONTRA, DB_NOMBRE); //host, usuario, contrasena y base de datos\n echo \"Conexion Satisfactoria\";\n\n\n\n //Si ha habido error en la conexion, le pido que me muestre algo, la funcion es connect errno\n if($this->conexion_db->connect_errno){ //En otro video explico que es errno\n\n echo \"Fallo al conectar: \".$this->conexion_db->connect_error; //Recordar que el this llama a esta clase\n\n return; //Tambien lo explico antes\n }\n \n\n $this->conexion_db->set_charset(DB_CHARSET); //Con esto nos amite eñes, acentos y tal.\n\n }", "title": "" }, { "docid": "968d2ab3dcaf83b53a336fde5b255828", "score": "0.64706767", "text": "function conectar(){\n\tglobal $conexion; //Definicion global para poder utilizar en todo el contexto\n\t$conexion = mysql_connect(HOST_DB, USER_DB, PASS_DB)\n\tor die ('NO SE HA PODIDO CONECTAR AL MOTOR DE LA BASE DE DATOS');\n\tmysql_select_db(NAME_DB)\n\tor die ('NO SE ENCUENTRA LA BASE DE DATOS ' . NAME_DB);\n}", "title": "" }, { "docid": "fa26843dbfeaea8a32a74f4250ae1613", "score": "0.6461627", "text": "function conectar_bd() {\n\t\t$conexion_bd = mysqli_connect(\"localhost\",\"root\",\"\",\"almacen\");\n\n\t\t//verificar si la base de datos se conecto\n\t\tif( $conexion_bd == NULL){\n\t\t\tdie(\"No se pudo conectar con la base de datos\");\n\t\t}\n\t\treturn $conexion_bd;\n\t}", "title": "" }, { "docid": "c5fe66604f91e1d2a25653e1b47132f6", "score": "0.6452909", "text": "private function __construct() {\n try {\n self::$bd = new PDO(\"mysql:host=$this->equipo;dbname=$this->basedatos\", $this->usuario, $this->contrasenya);\n } catch (PDOException $e) {\n echo \"Connection Error: \" . $e->getMessage();\n die();\n }\n }", "title": "" }, { "docid": "30accfed1e28fef2ae797b2056ba6ce9", "score": "0.6451501", "text": "function connect_bd(){\r\n\t\t$this->conexao = mysql_connect($this->host,$this->user,$this->pass) or die(mysql_error());\r\n\t\t//seleciona a base\r\n\t\tmysql_select_db($this->base, $this->conexao);\t\r\n\t}", "title": "" }, { "docid": "bf4ba7ea879ce439151d3832227ccd95", "score": "0.64477813", "text": "public static function conectar()\n\t{\n if ( null == self::$cont )\n { \n\t try \n\t {\n\t \t\t\tself::$cont = new PDO(\"mysql:dbname=condominio;host=localhost;port=3306;charset=utf8mb4\",\"root\",\"Rulm@n94312426\");\n\t }\n\t catch(PDOException $e) \n\t {\n\t die($e->getMessage()); \n\t }\n } \n return self::$cont;\n\t}", "title": "" }, { "docid": "d19a811425c77b473496db31ce4eedec", "score": "0.6446961", "text": "function conexao(){\n\t$conn = mysql_connect($this->hostname, $this->usuario, $this->senha);\n\tmysql_select_db($this->banco) or die ('Não foi possivel conectar'.mysql_error()); //this serve para chamar as variaveis informadas acima\n\t//or die serve para erros.\n\t\n\tmysql_query(\"SET NAMES 'utf8'\"); // MACETES para acentuação no banco\n\tmysql_query('SET character_set_connection=utf8');\n\tmysql_query('SET character_set_client=utf8');\n\tmysql_query('SET character_set_results=utf8');\n}", "title": "" }, { "docid": "24247330cad84669a27757bc06b7d0bd", "score": "0.644201", "text": "public function conectar($name, $host, $usuario, $senha)\r\n {\r\n global $pdo;\r\n try\r\n { \r\n /*todos os erros estara aparecendo no $msgErro = $e->getMessage(); e \r\n ficarão amarzenadas la então podeos criar uma variavel $msgErro*/\r\n $db = new PDO(\"mysql:dbname=database;host=localhost;charset=utf8;\",\"root\",\"\");\r\n }\r\n catch(PDOException $e)\r\n {\r\n $e -> getMessage();\r\n }\r\n\r\n }", "title": "" }, { "docid": "c96ac9b1e31ddc2595c5612bea3bb78b", "score": "0.64384997", "text": "public function connect() {\n $this->conn = null;\n\n // Try to connect using PDO\n try {\n $this->conn = new PDO('mysql:host=' . $this->db_host . ';dbname=' . $this->db_name, $this->db_user, $this->db_pass);\n $this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $this->conn->exec('set names utf8');\n } catch (PDOException $err) {\n echo json_encode(\n array(\n 'message' => 'Kunde inte ansluta till databasen',\n 'error' => $err->getMessage()\n )\n );\n }\n\n // Return connection\n return $this->conn;\n }", "title": "" }, { "docid": "d8e0b259e679ec524ef942c444bf0250", "score": "0.64289063", "text": "private function conectar(){\r\n\r\n if($siConecto=mysqli_connect($this->host,$this->user,$this->pass)){\r\n return $siConecto;\r\n }else{\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "efbfda5c3c8837184fea05e082169b85", "score": "0.6424598", "text": "public function DataBase($nombreBD) {\r\n $this->servidor = \"localhost\";\r\n $this->usuario = \"root\";\r\n $this->clave = \"\";\r\n $this->nombreBD = $nombreBD;\r\n }", "title": "" }, { "docid": "5af4b8df9352fd7ee05f3aa599b936f1", "score": "0.6413173", "text": "function conectarBD(){ \n $host='localhost';\n $user='root';\n $password='';\n $database='empresax';\n $port='3306';\n $socket='/tmp/mysql.sock';\n $enlace= mysqli_connect($host, $user, $password, $database, $port, $socket);\n if($enlace){\n \n } else {\n die(\"fallo la coneccion\");\n }\n return $enlace;\n }", "title": "" }, { "docid": "61f394a22711af8fce60fde9f4ae7ae4", "score": "0.6404361", "text": "function conectar()\n{\n $nombre_db = 'localhost';\n $nombre_user = 'admin';\n $password = \"abc123.\";\n $baseD = 'Chat';\n\n try {\n $conexion = new PDO(\"mysql:host=$nombre_db;dbname=$baseD\",$nombre_user,$password);\n\n } catch (PDOException $e) {\n echo \"Fallo en la base de datos: \" . $e -> getMessage();\n\n }\n return $conexion;\n}", "title": "" }, { "docid": "d772a3d8b993a70357bcdae29d402b5a", "score": "0.63991565", "text": "private function __construct() {\n try {\n self::$conexion = new PDO($this->tipoDB . ':host=' . $this->host . ';dbname=' . $this->bbdd, $this->usuario, $this->password);\n\t\t\tself::$conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t\tself::$conexion->setAttribute(PDO::ATTR_PERSISTENT, false);\n } catch (PDOException $e) {\n echo \"Error.No se puede conectar a la base de datos.\\n\" . $e->getMessage();\n exit;\n }\n }", "title": "" }, { "docid": "1410b8f7752419d3a80f7426dcb8a30d", "score": "0.6396828", "text": "function conectar()\n{\n // (host, usuario, pass, nombreBase)\n $conexion = new mysqli('localhost','root','','examenes');\n $acentos = $conexion->query(\"SET NAMES 'utf8'\");\n return $conexion;\n}", "title": "" }, { "docid": "68b6043df207e7d6524660116c2c9da2", "score": "0.63888025", "text": "private function makeConnection(){\n $this->database = new \\PDO('mysql:host=localhost;dbname=healthone', \"root\", \"\");\n }", "title": "" }, { "docid": "40d218a38e7bb1c04b13dc14e1606af0", "score": "0.6386116", "text": "public function gtiConecta()\r\n\t{\r\n\t\t$this->m_conexao = &ADONewConnection($this->m_driver);\r\n\t\tif(!$this->m_conexao->PConnect($this->m_host, $this->m_usuario,$this->m_senha,$this->m_esquema))\t\t\r\n\t\t\tthrow new Exception($this->m_conexao->ErrorMsg());\r\n\t\t \r\n\t}", "title": "" }, { "docid": "2d4e196d0a165791add00962fd6e4c8e", "score": "0.63834214", "text": "public function conectarme($db_usuario,$db_password,$db_host,$db_name){\n \n $this->conexion = null;\n \n try{\n $this->conexion = new PDO(\"mysql:host=\" . $db_host . \";dbname=\" . $db_name, $db_usuario, $db_password);\n $this->conexion->exec(\"set names utf8\");\n }\n catch(PDOException $e){\n echo \"Error conectando: \" . $e->getMessage();\n }\n \n return $this->conexion;\n }", "title": "" }, { "docid": "142209b98db6a96003f52462274df263", "score": "0.637625", "text": "function conectar($servidor='', $usuario='', $password='', $bd='', $persistente=false,$puerto=false) { \n if (!empty($servidor)) $this->servidor = $servidor;\n if (!empty($usuario)) $this->usuario = $usuario;\n if (!empty($password)) $this->password = $password;\n if (!empty($bd)) $this->basedatos = $bd;\n\t\t$this->puerto = $puerto;\n // Comprueba los errores producidos al realizar la conexión\n if (!$this->conectar_basedatos($persistente)) { //Conectar y seleccionar la base de datos\n $this->ultimo_error = mysql_error();\n //if ($this->debug) $this->mostrar_ultimo_error();\n return false;\n }\n $this->establecerIdioma();\n return $this->conectado; // todo correcto\n }", "title": "" }, { "docid": "544930cebbdfa93f927bca6511dbf465", "score": "0.6365531", "text": "public function __construct(){//el constructor de la clase\n \n require_once(\"modelo/Conectar.php\");//incluimos un archivo para la conexion \n \n $this->db = conectar::obtener_conexion();//almacenamos en la propiedad db, la conexion de la clase conectar que esta en un metodo estatico\n \n $this->usuarios = array(); //creamos un array en donde se almacenaran los usuarios\n \n }", "title": "" }, { "docid": "bed94b5b7117974621b8956b303c400c", "score": "0.6339732", "text": "function conectar(){\n\t$con = new mysqli(HOST, USER, PASS, BD);\n\n\t//En caso de que no pueda conectarse a la base de datos\n\t//lanzara un error\n\tif ($con->connect_errno){\n\t\t\n\t\t//Impresion\n\t\techo \"Error en la Conexion\";\n\t\t//Fin de compilacion\n\t\tdie();\n\t}\n\n\t//Si la conexion esta correctamente, retornamos la variable\n\t//Para utilizarla cada vez que queramos acceder a la base de datos\n\treturn $con;\n}", "title": "" }, { "docid": "617d57989f0c3f36be51a2041c67fc02", "score": "0.6335314", "text": "public function __construct(){//el constructor de la clase\n \n require_once(\"modelo/Conectar.php\");//incluimos un archivo para la conexion \n \n $this->db = Conectar::obtener_conexion();//almacenamos en la propiedad db, la conexion de la clase conectar que esta en un metodo estatico\n \n $this->usuarios = array(); //creamos un array en donde se almacenaran los usuarios\n \n }", "title": "" }, { "docid": "567d421fe8a5207f2d6bf491b8240052", "score": "0.63083476", "text": "function cls_conexion($servidor=\"\",$usuario=\"\",$password=\"\",$bdatos=\"\",$puerto=\"\"){\n\t\n \tif ($servidor!=\"\"){\n\t\t\t$this->servidor = $servidor;\n }// end if\n \tif ($usuario!=\"\"){\n\t\t\t$this->usuario = $usuario;\n }// end if\n \tif ($password!=\"\"){\n\t\t\t$this->password = $password;\n }// end if\n \tif ($servidor!=\"\"){\n\t\t\t$this->bdatos = $bdatos;\n }// end if\n \tif ($puerto!=\"\"){\n\t\t\t$this->puerto = $puerto;\n }// end if\n\t\t\n\t if($this->conexion = pg_connect(\"host=$this->servidor dbname=$this->bdatos user=$this->usuario password=$this->password port=$this->puerto\")\n\t\t\t\tor die (C_ERROR_CNN_FALLIDA)){\n\t\t\t$this->estado = true;\t\t\t\t\t\n\t\t}// end if\n }", "title": "" }, { "docid": "085b6782219b6289e71dde7510b5dea2", "score": "0.6306998", "text": "public function __construct() {\n $this->conexion = new ConexionDB(); \n //Se establece la conexión con la base de datos\n $this->conn = $this->conexion->conectar(); \n }", "title": "" }, { "docid": "64f0ae5a2e0241f69ce1442c6716d921", "score": "0.63013244", "text": "private function __construct(){\n $dsn = 'mysql:host=localhost;dbname=examen;charset=utf8';\n $username='gestor';\n $password ='Nohay2sin3';\n try{\n $this->conexion = new PDO( $dsn, $username, $password );//intenta iniciar la conexion\n }catch ( PDOException $e){//excepcion!\n die( \"¡Error!: \" . $e->getMessage() . \"<br/>\");//si falla, para la ejecucion\n }\n }", "title": "" }, { "docid": "bc01a1970cabf902f263f8d92f587600", "score": "0.6295237", "text": "function conexaoMysql(){\n \n $server = 'localhost';\n $user = 'root';\n $password = 'bcd127';\n $dataBase = 'dbContatos20201A';\n \n \n # conexao com o banco de dados \n $conexao = mysqli_connect($server, $user, $password, $dataBase);\n\n # retorna todas as informações de conexao com o banco de dados\n # var_dump($conexao);\n \n return $conexao;\n }", "title": "" }, { "docid": "22f6e256fad06146daddc06c49269c66", "score": "0.62915075", "text": "function conectarBD() : object {\n $host = \"localhost\";\n $dbUsuario = \"root\";\n $dbSenha = \"\";\n $dbSchema = \"lista_chamadas_v2\";\n\n $con = mysqli_connect($host, $dbUsuario, $dbSenha, $dbSchema);\n if (mysqli_connect_errno()) { // verifica se a conexao foi efetuado com sucesso\n $msgBD = mysqli_connect_error();\n echo \"Falha na conexao com o BD: $msgBD\";\n exit();\n }\n\n return $con;\n}", "title": "" }, { "docid": "16856ad22657b510637316d702ba4393", "score": "0.6280769", "text": "function conectar($db, $host, $user, $pass){\n if($db != \"\")$this->BaseDatos=$db;\n if($host != \"\")$this->Servidor=$host;\n if($user != \"\")$this->Usuario=$user;\n if($pass != \"\")$this->Clave=$pass;\n /*conectar al servidor*/\n $this->enlace=mysqli_connect($this->Servidor, $this->Usuario, $this->Clave) or die('No se pudo conectar a la db'.mysqli_error());\n if(!$this->enlace){\n $this->Error=\"Ha fallado la conexion\";\n return 0;\n }\n \n //mysqli_select_db($link,$db_name) or die ('No se puede seleccionar la base de datos');\n if(!mysqli_select_db($this->enlace, $this->BaseDatos)){\n $this->Error=\"Imposible abrir la base de datos\";\n return 0;\n }\n return $this->enlace;\n }", "title": "" }, { "docid": "a7f55ffa7f5aa1e2fa1b78fc8dc9db7c", "score": "0.62795264", "text": "public function establecerConexion(){\n\t\t\t$this->link=oci_connect($this->usuario,$this->contrasena,$this->baseDatos);\n\t\n\t\t\tif (!$this->link){\n\t\t\t\t// ########No se puede conectar a la db por lo tanto salir de la conexion #########\n\t\t\t\techo \"No se pudo conectar con Oracle\";\n\t\t\t\texit;\n\t\t\t}else{\n\t\t\t\t //echo \"conexion exitosa\"; ####conexion exitosa######\n\n\t\t\t\t//Ejemplo para ejecutar y mostrar una consulta en el html\n\t\t\t\t// $stid = $this->ejecutarInstruccion('SELECT * FROM TBL_PERSONA');\n\n\t\t\t\t// echo \"<table border='1'>\\n\";\n\t\t\t\t// while ($row = $this->obtenerFila($stid)) {\n\t\t\t\t// echo \"<tr>\\n\";\n\t\t\t\t// foreach ($row as $item) {\n\t\t\t\t// echo \" <td>\" . ($item !== null ? htmlentities($item, ENT_QUOTES) : \"&nbsp;\") . \"</td>\\n\";\n\t\t\t\t// }\n\t\t\t\t// echo \"</tr>\\n\";\n\t\t\t\t// }\n\t\t\t\t// echo \"</table>\\n\";\n\t\t\t\t// $this->liberarResultado($stid); //liberar todos los recursos asociados a esta consulta, direccion de memoria de cursores etc,...\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a2f225b4472146e70cfe97408fd72115", "score": "0.62760484", "text": "public function __construct() {\n $servername = \"localhost\";\n $username = \"c1quake\";\n $password = \"teste\";\n $banco = \"c1testeQuake\";\n try {\n $this->conexao = new PDO(\"mysql:host=$servername;dbname=$banco\", $username, $password);\n // set the PDO error mode to exception\n $this->conexao->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n } catch (PDOException $e) {\n echo \"Connection failed: \" . $e->getMessage();\n }\n }", "title": "" }, { "docid": "51ceaff3a5afa07107e87f2a3e1af643", "score": "0.62742853", "text": "public function BDAbreConexao() {\n $conexao = mysqli_connect($this->localhost, $this->user, $this->pass, $this->bd) or die(mysqli_connect_error());\n mysqli_set_charset($conexao, 'utf8') or die(mysqli_error($conexao));\n\n return $conexao;\n }", "title": "" }, { "docid": "2653c6bbb7a7faf80c3c1fbf6d470e75", "score": "0.6263826", "text": "function Conectar() {\n\t$host = \"localhost\"; \n\t$basededatos = \"pa\"; \n\t$usuariodb = \"root\"; \n\t$clavedb = \"\"; \n\n\t$link = new mysqli($host, $usuariodb, $clavedb, $basededatos);\n\tif ($link->connect_errno) {\n\t\techo \"Error: (\" . $link->connect_errno . \") \" . $link->connect_error;\n\t\texit(); \n\t}\n\n return $link; \n}", "title": "" }, { "docid": "7dcb5420f53b803776b0a513f68e1d1e", "score": "0.6262069", "text": "function connection()\n {\n if($this->connection_verif == \"0\")\n {\n $this->connection_sql = ibase_connect($this->sql_serveur . ':' . $this->sql_bd, $this->sql_utilisateur, $this->sql_password);\n if(!$this->connection_sql)\n {\n $this->sql_erreur('error on connexion');\n }\n else\n {\n //$this->selection_bd(); pas util en firebird\n }\n }\n }", "title": "" }, { "docid": "9950fdfeec80b39e2b9955b314099596", "score": "0.6259277", "text": "public function connect() {\n $this->oConnection = pg_connect(\"host={$this->sServidor} port={$this->sPorta} dbname={$this->sBase} user={$this->sUsuario} password={$this->sSenha}\");\n\n if(!$this->oConnection){\n throw new Exception(\"Não foi possível conectar na base de dados.\");\n }\n\n $this->setEncoding(Registry::get('app.config')->get('db.client_encoding'));\n\n return $this->oConnection;\n }", "title": "" }, { "docid": "a97e1b6d61af4531271341593e660a06", "score": "0.6256356", "text": "function conectar(){\n $servername = \"localhost\";\n $username = \"root\";\n $password = \"root\";\n $dbname = \"analisis\";\n $conn = new PDO(\"mysql:host=$servername;dbname=$dbname\", $username, $password);\n // set the PDO error mode to exception\n $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n return $conn;\n\n}", "title": "" }, { "docid": "e830a24e6f0edb3c5d14c1aa8c957c2c", "score": "0.6250853", "text": "protected function connect()\r\n {\r\n DAO::connect();\r\n }", "title": "" }, { "docid": "90ae205ed02a73a87deb5d57588e9d1c", "score": "0.62465453", "text": "function getConnection()\r\n{\r\n $mysql = [];\r\n $mysql_host = 'host';\r\n $mysql_user = 'user';\r\n $mysql_port = 'port';\r\n $mysql_password = 'password';\r\n $mysql[$mysql_host] = '140.78.73.159';\r\n $mysql[$mysql_user] = 'root';\r\n $mysql[$mysql_password] = '@@cekt@@';\r\n\r\n $connection = new \\PDO('mysql:host=' . $mysql[$mysql_host] . ';charset=utf8mb4',\r\n $mysql[$mysql_user], $mysql[$mysql_password]);\r\n $connection->setAttribute(\\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\r\n $connection->beginTransaction();\r\n return $connection;\r\n}", "title": "" }, { "docid": "3f578752ce8659734f8642c5676c88e6", "score": "0.6245539", "text": "public function Connection(){\n $this->set_con();\n }", "title": "" }, { "docid": "ca2755941fdde7ec897fc415bdc994fe", "score": "0.6244299", "text": "public static function conexion(){\n\n\n\t\t \t\ttry {\n\n\t\t \t\t\t$connect = new PDO(\"mysql:local=localhost;dbname=proyectoawcs\",\"root\",\"\");\n\t\t\t\t \n $connect->query(\"SET NAMES 'utf8'\");\n \n \n\t\t\t\t return $connect;\n\t\t \t\t\t\n\t\t \t\t} catch (Exception $e) {\n\n\t\t \t\t\tprint \"¡Error!: \" . $e->getMessage() . \"<br/>\";\n\t\t die(); \n\t\t \t\t\t\n\t\t \t\t}\n\t\t \n\n\t\t }", "title": "" }, { "docid": "61eab7e054254c555cb8e4a307905cfe", "score": "0.6236864", "text": "function conectar_mysql(){\t\n\t\t$db_hostname = 'localhost';\n\t\t$db_user = 'socimage_tienda3';\n\t\t$db_pass = '.10CORzHl2^%';\n\t\t$db_name = 'socimage_tienda3';\n\n\t\t$link = new mysqli($db_hostname, $db_user, $db_pass, $db_name);\n\n\t\tif(!$link){\n\t\t\tprintf('no se conecto, error: %s\\n', mysqli_connect_error());\n\t\t\texit();\n\t\t}\n\t\treturn $link;\n\t}", "title": "" }, { "docid": "b1c382d60fdaf398454d01d5b2a3475e", "score": "0.6233424", "text": "public function __construct() {\n $this->conexion = new ConexionBD(); //instanciamos la clase\n\n }", "title": "" }, { "docid": "b1c382d60fdaf398454d01d5b2a3475e", "score": "0.6233424", "text": "public function __construct() {\n $this->conexion = new ConexionBD(); //instanciamos la clase\n\n }", "title": "" }, { "docid": "b1c382d60fdaf398454d01d5b2a3475e", "score": "0.6233424", "text": "public function __construct() {\n $this->conexion = new ConexionBD(); //instanciamos la clase\n\n }", "title": "" }, { "docid": "223a9fbbdc51d735fc3d861e67bbd4f2", "score": "0.6204521", "text": "private function dbConnect(){\n $bdd= new PDO('mysql:host=localhost;dbname=livre;charset=utf8','root','', array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));\n /* | | | |=>array le tableau contenant l'option des erreurs \n | | |=>encryptage chartset=utf8\n | |=>dbnam = nom de la base\n |=> host = l'hôte */\n\n return $bdd;\n }", "title": "" }, { "docid": "937dc4b8c9216fdc243216dd943ecf39", "score": "0.6204515", "text": "private function objetoAbreConexao()\n\t{\n\t\t\n\t\t$_BANCO = new ConexaoBD();\n\t\t$_BANCO->conexaoBD();\n\t}", "title": "" }, { "docid": "d05474da04fd84b7f3d591979bee6ffa", "score": "0.620278", "text": "public function get_conexion()\n\t\t{\n\t\t\t//usuario de host para la conexion\n\t\t\t$user=\"root\";\n\t\t\t//contraseña para la conexion con el host\n\t\t\t$pass=\"\";\n\t\t\t//direccion del host\n\t\t\t$host=\"localhost\";\n\t\t\t//nombre de la base de datos\n\t\t\t$db=\"sistema_nava\";\n\n\t\t\t//se establece la conexion\n\t\t\t$conexion = new PDO(\"mysql:host=$host; dbname=$db;\",$user, $pass);\n\t\t\treturn $conexion;\n\t\t}", "title": "" }, { "docid": "22ecc80e6bcec0be835b559c41ef5452", "score": "0.6202117", "text": "function conectar() {\r\n $conex = mysqli_connect(\"localhost\", \"root\", \"\",\"arisa\")\r\n or die(\"No se puede conectar\" . mysqli_error());\r\n return $conex;\r\n }", "title": "" }, { "docid": "db1abb7e818c27443ec8ebf55ce8f94d", "score": "0.62002075", "text": "public function Conectar() {\r\n\t\t\t$this->conn = new mysqli($this->servidor,$this->usuario,$this->pass,$this->baseDatos);\r\n\r\n\t\t\tif ($this->conn->connect_error) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t return $this->conn;\t\r\n\t\t}", "title": "" }, { "docid": "a1a4a42feddabd329d0216abbd134703", "score": "0.6195728", "text": "function conectar()\n{\n\t//mysql_select_db(\"camiones\", $conexion);\n\t$conexion = mysql_connect(\"localhost\", \"scontable\", \"scontable\");\n\tmysql_select_db(\"scontable\", $conexion);\n}", "title": "" }, { "docid": "ee9874ce0226ef7c8d31a55bbb38db6f", "score": "0.6193773", "text": "public function OperacionPedido() {\n include(\"conexion.php\");\n $this->conexion = conectar();\n }", "title": "" }, { "docid": "cf97ee98f173f7d47cdb063c25c4de01", "score": "0.6191935", "text": "function cambiarBD($conexion) {\n $this->_conexion = $conexion;\n $this->_establecerConfiguracion();\n }", "title": "" }, { "docid": "dce4516335fac15c33dadb57adb368f0", "score": "0.6191172", "text": "function fcConectar()\n {\n $enlace = null;\n $enlace = new mysqli($this->_sevID, $this->_usua, $this->_pwd, $this->_db);\n $tildes = $enlace->query(\"SET NAMES 'utf8'\");\n if ($enlace->connect_errno)\n {\n echo \"Falló la conexión a MySQL: (\".$mysqli->connect_errno.\") \" . $mysqli->connect_error;\n exit;\n }\n return $enlace;\n }", "title": "" }, { "docid": "6d22e5f6192fec4c983a0ca028b882b6", "score": "0.61911076", "text": "private function openDatabaseConnection()\n {\n // set the (optional) options of the PDO connection. in this case, we set the fetch mode to\n // \"objects\", which means all results will be objects, like this: $result->user_name !\n // For example, fetch mode FETCH_ASSOC would return results like this: $result[\"user_name] !\n // @see http://www.php.net/manual/en/pdostatement.fetch.php\n $options = array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ, PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING);\n\n // generate a database connection, using the PDO connector\n // @see http://net.tutsplus.com/tutorials/php/why-you-should-be-using-phps-pdo-for-database-access/\n $this->db = new PDO(DB_TYPE . ':host=' . DB_HOST . ';dbname=' . DB_NAME, DB_USER, DB_PASS, $options);\n }", "title": "" }, { "docid": "6d22e5f6192fec4c983a0ca028b882b6", "score": "0.61911076", "text": "private function openDatabaseConnection()\n {\n // set the (optional) options of the PDO connection. in this case, we set the fetch mode to\n // \"objects\", which means all results will be objects, like this: $result->user_name !\n // For example, fetch mode FETCH_ASSOC would return results like this: $result[\"user_name] !\n // @see http://www.php.net/manual/en/pdostatement.fetch.php\n $options = array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ, PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING);\n\n // generate a database connection, using the PDO connector\n // @see http://net.tutsplus.com/tutorials/php/why-you-should-be-using-phps-pdo-for-database-access/\n $this->db = new PDO(DB_TYPE . ':host=' . DB_HOST . ';dbname=' . DB_NAME, DB_USER, DB_PASS, $options);\n }", "title": "" }, { "docid": "ffb33e7691dd65f3099adcb417d221d2", "score": "0.6189966", "text": "public function connect()\n {\n $this->servername = 'localhost';\n $this->username = 'crudbookUser';\n $this->password = 'securePasswordlol';\n $this->dbname = 'crudbook';\n $this->charset = 'utf8mb4';\n\n try\n {\n $dsn = 'mysql:host='.$this->servername.';dbname='.$this->dbname.';charset='.$this->charset;\n \n $options = [\n PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,\n PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,\n PDO::ATTR_EMULATE_PREPARES => false,\n ];\n\n $pdo = new PDO($dsn, $this->username, $this->password, $options);\n\n }\n catch (PDOException $e)\n {\n echo 'Database connection failed:'.$e->getMessage();\n }\n\n return $pdo;\n }", "title": "" }, { "docid": "87923bac97f15b9e83c47c71a4ab4bc8", "score": "0.61885047", "text": "public static function connect(){\n\n\t\t//Conexion a la base datos con PDO\n\t\t$db = new PDO(\"mysql:host=localhost;dbname=practica12_Fase3\",\"root\",\"\");\n\t\treturn $db;\n\n\t}", "title": "" }, { "docid": "690ae75456c0a442a3229ade48d9df7a", "score": "0.61863905", "text": "private static function connectDB() {\r\n self::$link = @mysql_connect(\"localhost\", \"root\", \"\");\r\n// connexion à la DB garrosdb\r\n self::$db = mysql_select_db(\"garrosdb\");\r\n }", "title": "" }, { "docid": "8d43211c396126386b5b3733f672a32e", "score": "0.61832404", "text": "public function GetConnection()\n {\n //nome host /nome do db / \n $servidor = \"localhost\";\n $nomeDb = \"alocamento\";\n $usuario = \"root\";\n $pass = \"\";\n $dsn = \"mysql:host=$servidor;dbname=$nomeDb;charset=utf8\";\n /*\nO PDO_MYSQL Data Source Name (DSN) é composto dos seguintes elementos:\nDSN prefix\nO prefixo DSN é mysql:.\nhost\nO hostname no qual o servidor do banco de dados está.\nport\nO número da porta onde o servidor do banco de dados está escutando.\ndbname\nO nome do banco de dados.\n */\n\n try {\n // tentarar criar uma conexão como db e se der tudo certo ..\n $pdo = new PDO($dsn, $usuario, $pass);\n return $pdo;\n // retornando um objeto do tipo pdo\n } catch (PDOException $ex) {\n // retornando um tipo de erro capturado!!\n echo \"erro \" . $ex->getMessage();\n // nesse exemplo e tipo getmessage que retornna a mensagem de erro\n // use um var_dump();para tratar outros\n return $ex;\n }\n }", "title": "" }, { "docid": "b55a31eeba5637f7a64dbc81633419f2", "score": "0.61774004", "text": "public function obtenerBD(){\n if(self::$pdo == null){\n self::$pdo = new PDO(\n 'mysql:dbname=' . BASE_DE_DATOS .\n ';host=' . NOMBRE_HOST . \";\",\n USUARIO, CONTRASENA,\n array(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\")\n );\n\n self::$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n }\n return self::$pdo;\n }", "title": "" }, { "docid": "cf0e9e848501dc086609d8fa9be6bf43", "score": "0.6176613", "text": "public function getCnx(){\n $servername = \"localhost\";\n //le nom de l'utilisateur\n $username =\"root\";\n //le nom de base de données\n $dbname= \"atelier8\";\n //mtp pour votre base de données\n $password =\"\";\n try{\n //établir une connection avec la base de donnée\n //il suffit de faire une instance de classe PDO\n $conn = new PDO(\"mysql:host=$servername;dbname=$dbname\",$username,$password);\n return $conn;\n }\n //Tester la présence d'erreurs\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\n}", "title": "" } ]
b5cf580e3caddc387cfaae277eeecb23
Generated from protobuf field string AutomaticRotation = 12;
[ { "docid": "2d1b0d9a1fa5b358962c50eb783f584e", "score": "0.6976539", "text": "public function getAutomaticRotation()\n {\n return $this->AutomaticRotation;\n }", "title": "" } ]
[ { "docid": "4d95b3edf306bce8fc421d8ac47cc71f", "score": "0.7039901", "text": "public function setAutomaticRotation($var)\n {\n GPBUtil::checkString($var, True);\n $this->AutomaticRotation = $var;\n\n return $this;\n }", "title": "" }, { "docid": "1f497044f761c0660b9251ec57d48251", "score": "0.59302324", "text": "public function get_rotate() {\n return $this->rotate;\n }", "title": "" }, { "docid": "c20ed77d091e7fa05de9d333a51839c8", "score": "0.54729635", "text": "public function provideValidRotate()\n {\n return array(\n array('100001000010', 4, 3, 90, 1, '000001010100', 3, 4),\n array('100001000010', 4, 3, -90, 3, '000001010100', 3, 4),\n array('100001000010', 4, 3, 180, 1, '010000100001', 4, 3),\n array('100001000010', 4, 3, 270, 1, '001010100000', 3, 4),\n );\n }", "title": "" }, { "docid": "fd7b9386f421ffcb9c23f9d0e3521573", "score": "0.5286194", "text": "private function rotateEncryptionKey(): string\n {\n if ($this->nextEncryptionFilenameAndKey) {\n [$keyFilename, $encryptionKey] = $this->nextEncryptionFilenameAndKey;\n } else {\n $keyFilename = $this->encryptionKeyFilename ?: static::generateEncryptionKeyFilename();\n $encryptionKey = $this->encryptionKey ?: static::generateEncryptionKey();\n }\n\n // get the absolute path to the info file and encryption key\n $hlsKeyInfoPath = $this->encryptionSecretsRoot . '/' . HLSExporter::HLS_KEY_INFO_FILENAME;\n $keyPath = $this->encryptionSecretsRoot . '/' . $keyFilename;\n\n $normalizedKeyPath = Disk::normalizePath($keyPath);\n\n // store the encryption key\n file_put_contents($keyPath, $encryptionKey);\n\n // store an info file with a reference to the encryption key and IV\n file_put_contents(\n $hlsKeyInfoPath,\n $normalizedKeyPath . PHP_EOL . $normalizedKeyPath . PHP_EOL . $this->encryptionIV\n );\n\n // prepare for the next round\n if ($this->rotateEncryptiongKey) {\n $this->nextEncryptionFilenameAndKey = [\n static::generateEncryptionKeyFilename(),\n static::generateEncryptionKey(),\n ];\n }\n\n // call the callback\n if ($this->onNewEncryptionKey) {\n call_user_func($this->onNewEncryptionKey, $keyFilename, $encryptionKey, $this->listener);\n }\n\n // return the absolute path to the info file\n return Disk::normalizePath($hlsKeyInfoPath);\n }", "title": "" }, { "docid": "c0154ee48c5b17479e36e526280ebd73", "score": "0.51785403", "text": "public function getRotationAngle(): int\n {\n return (360 - $this->rotationAngle) % 360;\n }", "title": "" }, { "docid": "efa075f5cdfc253c9c0d313c6693b021", "score": "0.51316696", "text": "public function getRotation(): array {\n\t\treturn $this->rotation;\n\t}", "title": "" }, { "docid": "bddf4986d93a7a082902682485bc9e02", "score": "0.5073923", "text": "function rotText($str) {\n\t\treturn str_rot13($str);\n\t}", "title": "" }, { "docid": "294997905c8996d1af9070fe16b24f21", "score": "0.5055484", "text": "public function getRotationInterval()\n {\n return $this->RotationInterval;\n }", "title": "" }, { "docid": "c5e7e505ffd02d5965c09dfea488d69e", "score": "0.5051553", "text": "public function setWatermarkRotationsetWatermarkRotation(int $angle)\n {\n $this->requestBody['watermark_rotation'] = $angle;\n }", "title": "" }, { "docid": "cab43ebf574e09eb63535e2459d66538", "score": "0.504583", "text": "public function rotate($name);", "title": "" }, { "docid": "9f199594746de6d7bcdf29c8c9a59170", "score": "0.50173515", "text": "public function autoRotate($orientation)\n\t{\n\t\tif($orientation > 1)\n\t\t{\n\t\t\tif($orientation == 7 || $orientation == 8)\n\t\t\t{\n\t\t\t\t$this->rotate(270);\n\t\t\t}\n\t\t\telseif($orientation == 3 || $orientation == 4)\n\t\t\t{\n\t\t\t\t$this->rotate(180);\n\t\t\t}\n\t\t\telseif($orientation == 5 || $orientation == 6)\n\t\t\t{\n\t\t\t\t$this->rotate(90);\n\t\t\t}\n\n\t\t\tif ($orientation == 2 || $orientation == 7 || $orientation == 4 || $orientation == 5)\n\t\t\t{\n\t\t\t\t$this->flipHorizontal();\n\t\t\t}\n\n\t\t\t$this->setOrientation(0);\n\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "ba50e534fe52ac96352b4aebe8ccc339", "score": "0.4995194", "text": "function get_rotation($file) {\n\t\t$exif_datas=exif_read_data($file);\n\t\tif($exif_datas===false) {\n\t\t\treturn false;\n\t\t}\n\t\tswitch($exif_datas['Orientation']) {\n\t\t\tcase '1':\n\t\t\t\treturn false;\n\t\t\tcase '3':\n\t\t\t\treturn 180;\n\t\t\tcase '6':\n\t\t\t\treturn 90;\n\t\t\tcase '8':\n\t\t\t\treturn 270;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "a9d9e378ed70f06d50739d0ceae9e30a", "score": "0.49930403", "text": "public function getNextRotationDate()\n {\n return $this->NextRotationDate;\n }", "title": "" }, { "docid": "06df7b136b2f1c0bb29a662a0ca54b52", "score": "0.49556065", "text": "public function set_rotate ($rotate) {\n $this->rotate = $rotate;\n }", "title": "" }, { "docid": "cc7ac2b02138271827dbd7ca59f9f341", "score": "0.4953619", "text": "public function rotate($value) {\n return $this->setProperty('rotate', $value);\n }", "title": "" }, { "docid": "b3c51b20660ff883b3b443c53e2cd867", "score": "0.4896487", "text": "public function hasRotation() {\n return ($this->rotation !== null);\n }", "title": "" }, { "docid": "03b409218371ff1b1e82a80c7d0807c1", "score": "0.48583007", "text": "public function rotate($angle);", "title": "" }, { "docid": "e86e05dc9adca99b6e210faa19b7122b", "score": "0.4814905", "text": "public function provideInvalidRotate()\n {\n return array(\n array('100001000010', 4, 3, 45),\n array('100001000010', 4, 3, -127),\n );\n }", "title": "" }, { "docid": "7bcec40258689bcc9a0943b17cbf3f0b", "score": "0.47980076", "text": "public function setNextRotationDate($var)\n {\n GPBUtil::checkString($var, True);\n $this->NextRotationDate = $var;\n\n return $this;\n }", "title": "" }, { "docid": "e923f8b004ebf75159cee5a1aaaf82a4", "score": "0.47880697", "text": "public function setRotationAngle(int $rotationAngle): void\n {\n $this->rotationAngle = (int)$rotationAngle;\n if ($this->rotationAngle !== 90 && $this->rotationAngle !== 180 && $this->rotationAngle !== 270) {\n $this->rotationAngle = 0;\n }\n\n $this->rotationAngle = (360 - $this->rotationAngle) % 360;\n }", "title": "" }, { "docid": "2b04f37f310fe33ddddb9a7edf1b1cd8", "score": "0.47837242", "text": "static function autoRotateImage($image) {\n $orientation = $image->getImageOrientation();\n\n switch($orientation) {\n case \\imagick::ORIENTATION_BOTTOMRIGHT:\n $image->rotateimage(\"#000\", 180); // rotate 180 degrees\n break;\n\n case \\imagick::ORIENTATION_RIGHTTOP:\n $image->rotateimage(\"#000\", 90); // rotate 90 degrees CW\n break;\n\n case \\imagick::ORIENTATION_LEFTBOTTOM:\n $image->rotateimage(\"#000\", -90); // rotate 90 degrees CCW\n break;\n }\n\n // Now that it's auto-rotated, make sure the EXIF data is correct in case the EXIF gets saved with the image!\n return $image->setImageOrientation(imagick::ORIENTATION_TOPLEFT);\n }", "title": "" }, { "docid": "97226c65c0b9817dac3458f732b1db57", "score": "0.47714758", "text": "public function rotate($identifier);", "title": "" }, { "docid": "b60cad27966dd9dbe5f8e79cff53fca7", "score": "0.47220328", "text": "protected function autoRotateImage(\\Imagick &$image)\n {\n $orientation = $image->getImageOrientation();\n\n switch($orientation) {\n case \\Imagick::ORIENTATION_BOTTOMRIGHT:\n $image->rotateimage(\"#000\", 180); // rotate 180 degrees\n break;\n\n case \\Imagick::ORIENTATION_RIGHTTOP:\n $image->rotateimage(\"#000\", 90); // rotate 90 degrees CW\n break;\n\n case \\Imagick::ORIENTATION_LEFTBOTTOM:\n $image->rotateimage(\"#000\", -90); // rotate 90 degrees CCW\n break;\n }\n\n // Now that it's auto-rotated, make sure the EXIF data is correct in case the EXIF gets saved with the image!\n $image->setImageOrientation(\\Imagick::ORIENTATION_TOPLEFT);\n }", "title": "" }, { "docid": "11f58fcfc3656a583fabec67be4198bf", "score": "0.4710015", "text": "public function initMagicKey(){\n\t $sCode = $this->getMagicCode();\n\t $this->setValue(\"user_magic\", $sCode);\n\t $this->setValue(\"user_magic_datetime\", date('Y-m-d H:i:s'));\n\t $this->save();\n\t return $sCode;\n\t}", "title": "" }, { "docid": "1049f798d470538579b3059153300448", "score": "0.46946573", "text": "function readOrientation() { return $this->_orientation; }", "title": "" }, { "docid": "ef6d58456d3e08348d202611173ff9af", "score": "0.46797413", "text": "public function setRotationInterval($var)\n {\n GPBUtil::checkString($var, True);\n $this->RotationInterval = $var;\n\n return $this;\n }", "title": "" }, { "docid": "a2d1029e8343008d59121a1ac4c9907a", "score": "0.46474025", "text": "public function getName()\n {\n return self::ORIENTATION;\n }", "title": "" }, { "docid": "397c4bb5810ed5b0688196ef99720f95", "score": "0.4647261", "text": "public function custom_str_rot13($s) {\n $rot = 13;\n static $letters = 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz';\n $rot = (int)$rot % 26;\n $rep = substr($letters, $rot * 2) . substr($letters, 0, $rot * 2);\n return strtr($s, $letters, $rep);\n }", "title": "" }, { "docid": "a9d403129a9e63a0b97cabd51115d0e7", "score": "0.46415195", "text": "public function enableHardRotation(): self\n {\n $this->hardRotation = true;\n\n return $this;\n }", "title": "" }, { "docid": "4807b497366b5201ce03180f0afa0ff4", "score": "0.462302", "text": "function randomOrientation() {\n\t\t$comment_img_orientation = rand(0,1);\n\t\tif ($comment_img_orientation == 0) {\n\t\t\techo \"src='http://placehold.it/450x253&text=landscape'\";\n\t\t} else {\n\t\t\techo \"src='http://placehold.it/253x450&text=portrait'\";\n\t\t}\n\t}", "title": "" }, { "docid": "57d3406d20bbcc33f7a905f4abab2ff1", "score": "0.4590766", "text": "private function getOrientation(): string\n {\n if ($this->width > $this->height) {\n return self::LANDSCAPE;\n }\n\n if ($this->width < $this->height) {\n return self::PORTRAIT;\n }\n\n return self::SQUARE;\n }", "title": "" }, { "docid": "dc3155258d7d3d6049609b6dc2e5f8f7", "score": "0.4590093", "text": "protected function setCoordinateOrientation()\n {\n ps_rotate($this->psLabel, -90.0);\n ps_translate($this->psLabel, -$this->getPageHeight(), 0);\n }", "title": "" }, { "docid": "0b98d4bb70796d1a75e29619f418def8", "score": "0.45863026", "text": "public function setRotation(array $rotation): self {\n\t\t$this->rotation = $rotation;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "62fcfb4363855ea76c1ec6d7f3a4480d", "score": "0.45665467", "text": "public function getAutoTranslationKey(): string\n {\n return $this->radioName;\n }", "title": "" }, { "docid": "e714c3760fd69ba1de1a639fcc0b531f", "score": "0.45302057", "text": "private function calculate_text_angle (){\r\n if ($this->calculate_angle){\r\n $angle=round($this->pixels_angle2(($this->x1+$this->x4)/2, ($this->y1+$this->y4)/2,($this->x2+$this->x3)/2, ($this->y2+$this->y3)/2));\r\n $this->ori_point_to_reordered();\r\n $rotate=$this->nb_rotate;\r\n \r\n if ($rotate ==0)\r\n $this->text_angle=$angle;\r\n if ($rotate ==1)\r\n $this->text_angle=2*90-$angle;\r\n if ($rotate ==2)\r\n $this->text_angle=2*90+$angle;;\r\n if ($rotate ==3)\r\n $this->text_angle=3*90+(90-$angle);\r\n while ($this->text_angle >= 360){\r\n $this->text_angle-=360;}\r\n \r\n while ($this->text_angle <= -360){\r\n $this->text_angle+=360;\r\n }\r\n } else {\r\n $this->ori_point_to_reordered();\r\n }\r\n \r\n }", "title": "" }, { "docid": "0163e1327861b65580b9b04d0f31e9e1", "score": "0.45160693", "text": "public function setRotate($rotate)\n {\n $_SESSION['rotate'] = $rotate;\n $this->page->redirect();\n }", "title": "" }, { "docid": "e8927bb38c0f208103c617edc24a2f1c", "score": "0.4486965", "text": "protected function renderRotateControls()\n {\n if ($this->showRotateControls === false) {\n return '';\n }\n\n $html = [];\n\n // wrapper\n if ($this->rotateControlsWrapperOptions !== false) {\n $rotateControlsWrapperTag = ArrayHelper::remove($this->rotateControlsWrapperOptions, 'tag', 'div');\n $html[] = Html::beginTag($rotateControlsWrapperTag, $this->rotateControlsWrapperOptions);\n }\n\n // rotate left button\n $html[] = $this->renderButton('rotateLeftButtonOptions');\n\n // rotate right button\n $html[] = $this->renderButton('rotateRightButtonOptions');\n\n // end wrapper\n if ($this->rotateControlsWrapperOptions !== false) {\n $html[] = Html::endTag($rotateControlsWrapperTag);\n }\n\n return implode(\"\\n\", $html);\n }", "title": "" }, { "docid": "2a2a86cb73eb5449ea749b9238485b71", "score": "0.4467899", "text": "function getReminderWasAutomatic() {\n\t\treturn $this->getData('reminderWasAutomatic')==1?1:0;\n\t}", "title": "" }, { "docid": "0e6d41591ea0e2a3fb3b190dfd8e49b1", "score": "0.4461187", "text": "public function setLastRotationDate($var)\n {\n GPBUtil::checkString($var, True);\n $this->LastRotationDate = $var;\n\n return $this;\n }", "title": "" }, { "docid": "ed93a7be57e62d0221a4391b9b28983b", "score": "0.44536844", "text": "function rotatedText($str, $len = '13') {\n\t\t$len = $len % strlen($str);\n\t\treturn substr($str, $len) . substr($str, 0, $len);\n\t}", "title": "" }, { "docid": "2d6f687398e25384beab0cc4803ef273", "score": "0.44459072", "text": "function getOrientation() {\n return $this->orientation;\n }", "title": "" }, { "docid": "42a479b980f688b7c17b3cf3df284637", "score": "0.44454286", "text": "public function getOrientation()\n {\n return $this->orientation;\n }", "title": "" }, { "docid": "5d2dca317299026cc3ad40c3a2cbeb63", "score": "0.44221777", "text": "public function rotateLeft(): self;", "title": "" }, { "docid": "04c733f1ae83e01da7cdf8052d303360", "score": "0.44196773", "text": "function storereinitialisationMotDePasse()\n {\n\n return 'mot de passe reinitialiser avec sucee';\n }", "title": "" }, { "docid": "f27610115ded5c8886b16bed7b01f2a4", "score": "0.44031605", "text": "function RotatedText($x, $y, $txt, $angle)\r\n{\r\n $this->Rotate($angle,$x,$y);\r\n $this->Text($x,$y,$txt);\r\n $this->Rotate(0);\r\n}", "title": "" }, { "docid": "65822ee818dc92f9bf2afe024542fab4", "score": "0.4401308", "text": "public function autoRotate()\n\t{\n\t\t$this->getOrientation();\n\n\t\t// We only process jpeg images, so check that we have one\n\t\tif (!isset($this->_manipulator->imageDimensions[2]))\n\t\t{\n\t\t\t$this->_manipulator->getImageDimensions();\n\t\t}\n\n\t\t// Not a jpeg or not rotated, done!\n\t\tif ($this->_manipulator->imageDimensions[2] !== 2 || $this->_manipulator->orientation <= 1)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\t$this->_manipulator->autoRotate();\n\t\t}\n\t\tcatch (\\Exception $e)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "94b7f72c6966adf499dff048b0421778", "score": "0.43915987", "text": "protected function textAngle()\n {\n $textAngleRandom = \\mt_rand(\n $this->config['angle_min'], $this->config['angle_max']\n );\n\n return $textAngleRandom * (\\mt_rand(0, 1) == 1 ? -1 : 1);\n }", "title": "" }, { "docid": "ddf55993d9c420c1b5c4cdd5eeb50e43", "score": "0.43907282", "text": "public function getOrientation()\n\t{\n\t\treturn $this->_manipulator->getOrientation();\n\t}", "title": "" }, { "docid": "40a4eb831de2f3a81aa48a3ec859dfc2", "score": "0.43903992", "text": "public function getLastRotationDate()\n {\n return $this->LastRotationDate;\n }", "title": "" }, { "docid": "5717e693ff4a4d60a5295ad4b5862014", "score": "0.43767416", "text": "public static function defaultManually(){\n \n if( is_null(self::$_defaultManually) ){\n \n self::$_defaultManually = new AccountingMoveRefType();\n self::$_defaultManually->key = \"MAN-001\";\n self::$_defaultManually->title = \"MANUAL INPUT\";\n self::$_defaultManually->associated_name = \" -- CAN'T EMPTY -- \"; \n }\n\n \n return self::$_defaultManually;\n \n }", "title": "" }, { "docid": "43e57e0ee6a75a48930ea6cd6dc9ae0d", "score": "0.43734863", "text": "public function getMediaEncryptionOptimistic()\n {\n return $this->getKey('MediaEncryptionOptimistic');\n }", "title": "" }, { "docid": "e447d56fe3e099710fd73c07433169e4", "score": "0.4370098", "text": "function __construct($rotate) {\n if (is_int($rotate) && $rotate >= 0) {\n $this->rotate = $rotate;\n }\n }", "title": "" }, { "docid": "2e123bd9da3625489af7fc45a08987ef", "score": "0.43663543", "text": "static function subKeyDataEncryption() {\n\n return 'EncrYptiOn';\n\n }", "title": "" }, { "docid": "66d1acbc4662530199c14bb5729d2dc2", "score": "0.43641368", "text": "public static function rotationAction(array $request){\n\t\t$message = new Message(1);\n\t\t\n\t\treturn $message;\n\t}", "title": "" }, { "docid": "d28d38ddad5001b386e8bdf5562c701f", "score": "0.4358787", "text": "function ver_str(){\n\t\t$string=strtoupper(md5(mt_rand(0,9)));//MD5 encryption with randomly generated numbers\n\t\tif(empty($this->font_num)){\n\t\t\t$this->font_num=4;\n\t\t}\n\t\treturn substr($string,0,$this->font_num);\n\t}", "title": "" }, { "docid": "dfa0314d152ff72af86f8bbf936a580c", "score": "0.434667", "text": "public function setOrientationLandscape()\n {\n $this->orientation = \"Landscape\";\n $this->iniConf['orientation'] = $this->orientation;\n $this->pdf->setOptions($this->iniConf);\n }", "title": "" }, { "docid": "70f8209b8735f7aed80141ed0a2dbd5c", "score": "0.43381435", "text": "function RotatedText($x,$y,$txt,$angle)\n{\n $this->Rotate($angle,$x,$y);\n $this->Text($x,$y,$txt);\n $this->Rotate(0);\n}", "title": "" }, { "docid": "70f8209b8735f7aed80141ed0a2dbd5c", "score": "0.43381435", "text": "function RotatedText($x,$y,$txt,$angle)\n{\n $this->Rotate($angle,$x,$y);\n $this->Text($x,$y,$txt);\n $this->Rotate(0);\n}", "title": "" }, { "docid": "80af170aa9fdf20216c3315ae00394aa", "score": "0.43305367", "text": "public function rotateRight(): self;", "title": "" }, { "docid": "0355d81cd51334c5a3a1134dd39369ab", "score": "0.4304598", "text": "function RotatedText($x, $y, $txt, $angle)\n{\n $this->Rotate($angle,$x,$y);\n $this->Text($x,$y,$txt);\n $this->Rotate(0);\n}", "title": "" }, { "docid": "0355d81cd51334c5a3a1134dd39369ab", "score": "0.4304598", "text": "function RotatedText($x, $y, $txt, $angle)\n{\n $this->Rotate($angle,$x,$y);\n $this->Text($x,$y,$txt);\n $this->Rotate(0);\n}", "title": "" }, { "docid": "318ee8d9959fcd1a8574d3e9bcd03aa5", "score": "0.42985505", "text": "function setReminderWasAutomatic($wasAutomatic) {\n\t\treturn $this->setData('reminderWasAutomatic', $wasAutomatic);\n\t}", "title": "" }, { "docid": "f3013853927cdf114fe7c63dc6670f17", "score": "0.42837706", "text": "public function genV4(): string;", "title": "" }, { "docid": "62ecca503bb79255f55ef97b8cdbfdf1", "score": "0.42826456", "text": "function RotatedText($x, $y, $txt, $angle)\r\n{\r\n $this->Rotate($angle, $x, $y);\r\n $this->Text($x, $y, $txt);\r\n $this->Rotate(0);\r\n}", "title": "" }, { "docid": "9cb457c3bcea39d410e22d00558f13d8", "score": "0.42691484", "text": "function RotatedText($x,$y,$txt,$angle)\n\t{\n\t\t$this->Rotate($angle,$x,$y);\n\t\t$this->Text($x,$y,$txt);\n\t\t//$this->Cell(30,8,$txt,1,1,'C');\n\t\t$this->Rotate(0);\n\t}", "title": "" }, { "docid": "9c920573514d85541318456260534288", "score": "0.42627013", "text": "public function getRvidAttribute()\n {\n $rvid = \"UNKNOWN\";\n if ($this->initialCentre && $this->centre_sequence) {\n $rvid = $this->initialCentre->prefix . str_pad((string)$this->centre_sequence, 4, \"0\", STR_PAD_LEFT);\n }\n return $rvid;\n }", "title": "" }, { "docid": "db0dc1fb5d0cf603c690c977f5698bc0", "score": "0.42567652", "text": "function RotatedText($x, $y, $txt, $angle){\n $this->Rotate($angle,$x,$y);\n $this->Text($x,$y,$txt);\n $this->Rotate(0);\n\t}", "title": "" }, { "docid": "a557ebfe373b2f87d028965c7cb1e37c", "score": "0.42546865", "text": "public function getAutoRenew()\n {\n return isset($this->auto_renew) ? $this->auto_renew : false;\n }", "title": "" }, { "docid": "766efe1ff6b83d4f7164f7b32323c4cc", "score": "0.42476153", "text": "protected function generateEncryptionKeyIfNeeded() {}", "title": "" }, { "docid": "be3f894000725cefbc3239b167d2c5b5", "score": "0.4242079", "text": "public function rotateImage($direction = 'CW');", "title": "" }, { "docid": "40cf754e8d9cf17cf5fb9d79cabc8aa0", "score": "0.42383838", "text": "private function generarCodigoAleatorio() {\n $caracteres = (count($this->refCaracteres) < 1) ? array_merge(range('a', 'z'), range(0, 9)) : $this->refCaracteres;\n $n = count($caracteres);\n $codigo = '';\n while (strlen($codigo) < $this->refLongitud) {\n $codigo .= $caracteres[mt_rand(0, $n-1)];\n }\n return $codigo;\n }", "title": "" }, { "docid": "747859325c66a81908b8ee4ba7b5bcd9", "score": "0.42333072", "text": "function adrotate_trademark() {\n return '<center><small>AdRotate<sup>&reg;</sup> '.__('is a registered trademark', 'adrotate-pro').'</small></center>';\n}", "title": "" }, { "docid": "b0d702d69cba8bc0e650ac791ed4c7c2", "score": "0.42296395", "text": "public function validate()\n {\n //valid rotate\n if (!$this->rotate) {\n throw new \\UnexpectedValueException(\"setRotate() required\");\n } \n\n //valid rotate\n if ($this->rotate > 360 || $this->rotate < 0) {\n throw new \\UnexpectedValueException(\"setRotate() value should be between 0 and 360\");\n }\n }", "title": "" }, { "docid": "9cb85f550e5753ec31c673f8d4e8924e", "score": "0.42284763", "text": "public function rotateLeft()\n {\n $currentNumericHeading = self::$numericHeadings[$this->heading];\n $currentNumericHeading -= 90;\n if ($currentNumericHeading < 0) {\n $this->heading = 'W';\n } else {\n $this->heading = array_search($currentNumericHeading, self::$numericHeadings);\n }\n }", "title": "" }, { "docid": "990cb0b52961cccdec15cac69869761a", "score": "0.4224127", "text": "private function setSequence(): void\n {\n $this->sequence = $this->getSequence();\n }", "title": "" }, { "docid": "d9d74add145e7affbbe41b7b17a9fd88", "score": "0.42179462", "text": "public function raferalCodeGenerator(){\n function random_strings($length_of_string)\n {\n $str_result = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz';\n return substr(str_shuffle($str_result), 0, $length_of_string);\n }\n return random_strings(3).random_strings(2).random_strings(1);\n }", "title": "" }, { "docid": "8100740314acf503a9df18c6aef44803", "score": "0.4216638", "text": "public function setOrientationPortrait()\n {\n $this->orientation = \"Portrait\";\n $this->iniConf['orientation'] = $this->orientation;\n $this->pdf->setOptions($this->iniConf);\n }", "title": "" }, { "docid": "e1831477966a3151218520b3cec5e307", "score": "0.42077675", "text": "public static function generate(): string\n {\n $data = random_bytes(16);\n // Set version to 0100\n $data[6] = chr(ord($data[6]) & 0x0F | 0x40);\n // Set bits 6-7 to 10\n $data[8] = chr(ord($data[8]) & 0x3F | 0x80);\n\n return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4));\n }", "title": "" }, { "docid": "3a9e25ac00744adebecc3d935f0a3e90", "score": "0.4202138", "text": "public function getPatenteAuto()\n {\n return $this->patenteAuto;\n }", "title": "" }, { "docid": "fb660fb01130642e9792cfd5b4ff9724", "score": "0.41929898", "text": "public function getAuthenticatorSerial();", "title": "" }, { "docid": "49b29c0a47f88f72ac999054bc4891e5", "score": "0.41856995", "text": "public function rotateRight()\n {\n $currentNumericHeading = self::$numericHeadings[$this->heading];\n $currentNumericHeading += 90;\n if ($currentNumericHeading > 270) {\n $this->heading = 'N';\n } else {\n $this->heading = array_search($currentNumericHeading, self::$numericHeadings);\n }\n }", "title": "" }, { "docid": "0eea68678f66631f0c0cfaa2e739ca44", "score": "0.41816652", "text": "function autoOrient() {\r\n\r\n $exifData = $this->getExifData();\r\n\r\n if (empty($exifData['exif:Orientation'])) return;\r\n\r\n $res = $this->getImageResource();\r\n $isChanged = false;\r\n\r\n //new ImagickPixel('none');\r\n\r\n switch ($exifData['exif:Orientation']) {\r\n case \\imagick::ORIENTATION_TOPLEFT:\r\n break;\r\n case \\imagick::ORIENTATION_TOPRIGHT:\r\n $res->flopImage();\r\n $isChanged = true;\r\n break;\r\n case \\imagick::ORIENTATION_BOTTOMRIGHT:\r\n $res->rotateImage(\"#000\", 180);\r\n $isChanged = true;\r\n break;\r\n case \\imagick::ORIENTATION_BOTTOMLEFT:\r\n $res->flopImage();\r\n $res->rotateImage(\"#000\", 180);\r\n $isChanged = true;\r\n break;\r\n case \\imagick::ORIENTATION_LEFTTOP:\r\n $res->flopImage();\r\n $res->rotateImage(\"#000\", -90);\r\n $isChanged = true;\r\n break;\r\n case \\imagick::ORIENTATION_RIGHTTOP:\r\n $res->rotateImage(\"#000\", 90);\r\n $isChanged = true;\r\n $width = $this->width; $this->width = $this->height; $this->height = $width;\r\n break;\r\n case \\imagick::ORIENTATION_RIGHTBOTTOM:\r\n $res->flopImage();\r\n $res->rotateImage(\"#000\", 90);\r\n $isChanged = true;\r\n $width = $this->width; $this->width = $this->height; $this->height = $width;\r\n break;\r\n case \\imagick::ORIENTATION_LEFTBOTTOM:\r\n $res->rotateImage(\"#000\", -90);\r\n $isChanged = true;\r\n $width = $this->width; $this->width = $this->height; $this->height = $width;\r\n break;\r\n default: // Invalid orientation\r\n break;\r\n }\r\n\r\n if ($isChanged) {\r\n $res->setImageOrientation(\\imagick::ORIENTATION_TOPLEFT);\r\n $res->writeImage($this->_fullPath);\r\n }\r\n }", "title": "" }, { "docid": "24948938747678c0596179f3f277980b", "score": "0.4169143", "text": "public function generateActivationKey()\n {\n return $this->activation = Yii::$app->security->generateRandomString();\n }", "title": "" }, { "docid": "444b9ae85814b1f3dc8d5603a3a1fd76", "score": "0.41656193", "text": "public static function generateEncryptionKey(): string\n {\n return random_bytes(16);\n }", "title": "" }, { "docid": "da671d92d70beb19924397562634a683", "score": "0.4160725", "text": "public function generateFreshSerial()\n\t{\n\t\tif($this->serial === \"0\")\n\t\t\treturn sprintf(\"%s%02d\", date(\"Ymd\"), 0);\n\t\t\n\t\t$result = null;\n\t\t\n\t\tif(preg_match(\"/^\".date(\"Ymd\").\"(\\d{2})$/\", $this->serial, $result))\n\t\t\treturn sprintf(\"%s%02d\", date(\"Ymd\"), (int) $result[1] + 1);\n\t\t\n\t\treturn sprintf(\"%s%02d\", date(\"Ymd\"), 0);\n\t}", "title": "" }, { "docid": "6b93e2e35946ffbfd9df6db2f1659429", "score": "0.4141478", "text": "function adrotate_header() {\n\n\t$output = \"\\n<!-- This site is using AdRotate v\".ADROTATE_DISPLAY.\" to display their advertisements - https://ajdg.solutions/products/adrotate-for-wordpress/ -->\\n\";\n\t$header = get_option('adrotate_header_output', false);\n\n\tif($header) {\n\t\t$header = htmlspecialchars_decode(stripslashes($header));\n\t\t$header = str_replace('%random%', rand(100000,999999), $header);\n\n\t\t$output .= \"<!-- AdRotate header -->\\n\";\n\t\t$output .= $header.\"\\n\";\n\t\t$output .= \"<!-- /AdRotate header -->\\n\\n\";\n\t\tunset($header);\n\t}\n\techo $output;\n\t\n\tadrotate_custom_css();\n}", "title": "" }, { "docid": "eab29beb1447db8f8a5a9b84dc750f19", "score": "0.41409194", "text": "public function rotateTile(): void {\n $this->tileValue = array_reverse($this->tileValue);\n }", "title": "" }, { "docid": "bf4b8e4fe1e32d486372cf57c9dd375e", "score": "0.4137389", "text": "public function getEncryption()\n {\n return isset($this->encryption) ? $this->encryption : '';\n }", "title": "" }, { "docid": "8ffc1497f662675566d691ab4b3eab1c", "score": "0.41297042", "text": "public function setRotationTime(int $rotationTime): self\n {\n Assertion::greaterOrEqualThan($rotationTime, 0);\n\n $this->rotationTime = $rotationTime;\n\n return $this;\n }", "title": "" }, { "docid": "1c36f2c3571c440a56b9e85136806d9b", "score": "0.411657", "text": "function setAutoLock($auto_lock){\n $this->autoLock = (bool)$auto_lock;\n }", "title": "" }, { "docid": "4c40418778509d2bb5eb9e79888284cf", "score": "0.41117257", "text": "function imagickRotate($imgpath, $angle = 0)\n\t{\n\t\t$cmd = \"convert -rotate $angle $imgpath PNG32:-\";\n\t\t#error_log(\"CMD=$cmd\");\n\t\t$output = popen($cmd, \"r\");\n\t\t$rotimg_string = null;\n\t\twhile(!feof($output)) { $rotimg_string .= fread($output, 1024); }\n\n\t\t$rotimg = imagecreatefromstring($rotimg_string);\n\t\timagealphablending( $rotimg, false );\n\t\timagesavealpha( $rotimg, true );\n\n\t\treturn $rotimg;\n\t}", "title": "" }, { "docid": "32bc0b0dab3ab65d87db271c0169de94", "score": "0.41074592", "text": "public function preset90() {\n \n self::$mesaMezclas->preset(90);\n\n }", "title": "" }, { "docid": "7c63246a49ad25c3ac484510272f1a1f", "score": "0.41057828", "text": "public function getSequencePHP(bool $unpredictable = false): string\n {\n $ms = microtime(true);\n //$ms=1000;\n $timestamp = round($ms * 1000);\n $rand = ((int)fmod($ms, 1) * 1000000) % 4096; // 4096= 2^12 It is the millionth of seconds\n $calc = (($timestamp - 1459440000000) << 22) + ($this->nodeId << 12) + $rand;\n usleep(1);\n if ($unpredictable) {\n if (PHP_INT_SIZE === 4) {\n return '' . $this->encryption->encryptSimple($calc);\n }\n // $r is always a 32-bit number, so it will fail in PHP 32bits\n return '' . $this->encryption->encryptInteger($calc);\n }\n return '' . $calc;\n }", "title": "" }, { "docid": "a3119a406cba9c1d3fdd78165830ec38", "score": "0.4104754", "text": "function RotatedText($x,$y,$txt,$angle)\n{\n\t$this->Rotate($angle,$x,$y);\n\t$this->Text($x,$y,$txt);\n\t$this->Rotate(0);\n}", "title": "" }, { "docid": "44161690b906490001811c985a66ccf4", "score": "0.40948135", "text": "private function generateEncryptionKey()\n {\n return 'base64:'.base64_encode(random_bytes(\n config('app.cipher') == 'AES-128-CBC' ? 16 : 32\n ));\n }", "title": "" }, { "docid": "4ebd5cd42a846adc25d4350c7ddd4946", "score": "0.40936425", "text": "function rotateTable($randomrpcid, $angle, $units)\n\t{\n\t\tsyslog(LOG_INFO, 'rotateTable-start:randomrpcid='.$randomrpcid);\n\t\t// Sanity check.\n\t\tif ( !( ($units == 'radians')||($units == \"degrees\") ) )\n\t\t{\n\t\t\tsyslog(LOG_ERR, 'rotateTable-error-units='.$units.\":randomrpcid=\".$randomrpcid);\n\t\t\treturn new SoapFault(\"3\", \"rotateTable: invalid units:randomrpcid=\".$randomrpcid);\n\t\t}\n\n\t\t$operationtime = date('Y-m-d H:i:s');\n\t\t$result = 'success';\n\t\t$objDBS = new DBService(); \n\t\t$objTA = new TestAttributes();\n\t\t$objDBS->setInformation($objTA);\n\t\t$objDBS->storeCtlOperation(\n\t\t\t$randomrpcid,\n\t\t\t$operationtime,\n\t\t\t'rotateTable'\t/*$operation*/ /* varchar(20) */,\n\t\t\t$angle\t\t/*$movement*/ /* varchar(20) */,\n\t\t\t$units\t\t\t/*$unit*/ /* varchar(20) */,\n\t\t\t$result /* varchar(20) */);\n\t\tsyslog(LOG_INFO, 'rotateTable-end:randomrpcid='.$randomrpcid);\n\t\treturn 'rotateTable:status:success';\n\t}", "title": "" }, { "docid": "51d795955c4615957db7f1f8f5c3e2f6", "score": "0.40885192", "text": "function RotatedImage($file,$x,$y,$w,$h)\n//function RotatedImage($file,$x,$y,$w,$h,$angle)\n{\n //$this->Rotate($angle,$x,$y);\n $this->Image($file,$x,$y,$w,$h);\n //$this->Rotate(0);\n}", "title": "" }, { "docid": "835703dfd97dcc33bcf0ff4c04829126", "score": "0.40881312", "text": "public function getManualCustomerKey()\n {\n return $this->manualCustomerKey;\n }", "title": "" }, { "docid": "204f5d146fae695438b7ec3f84575d51", "score": "0.40864292", "text": "public function landscape()\n\t{\n\t}", "title": "" }, { "docid": "352784099bad7aee6c1396b69db891b1", "score": "0.40839133", "text": "function RotatedText($x, $y, $txt, $angle) {\n\t $this->Rotate($angle,$x,$y);\n\t $this->Text($x,$y,$txt);\n\t $this->Rotate(0);\n\t}", "title": "" } ]
db53bddead7925660774fbb65af0071c
Get block with last $amount news
[ { "docid": "0ac7e145405056c57349e799cc85d333", "score": "0.0", "text": "public static function getShortNews($amount = 50, $enableBanners = true, $cache = true, $newsPosts = null)\n { \n if($cache)\n {\n $banners = $enableBanners ? 'banners' : '';\n $cacheBlock = CacheBlock::find()\n ->where(['machine_name' => 'shortNews'.$amount.$banners])\n ->one();\n if(isset($cacheBlock)) {\n return [\n 'view' => '@frontend/views/blocks/cache_block',\n 'data' => ['content' => $cacheBlock->content],\n ];\n }\n } \n\n if(!isset($newsPosts)) \n {\n $newsPosts = Post::find()\n ->where(['is_public' => 1, 'content_category_id' => Post::CATEGORY_NEWS])\n ->orderBy(['created_at' => SORT_DESC])\n ->limit($amount)\n ->all();\n }\n $block = [\n 'view' => '@frontend/views/blocks/news_block',\n 'data' => ['posts' => $newsPosts, 'enableBanners' => $enableBanners],\n ];\n if(!$cache) {\n $view = new \\yii\\base\\View();\n return $view->renderFile($block['view'].'.php', $block['data']);\n }\n return $block;\n }", "title": "" } ]
[ { "docid": "52c063defcca18461c5e678a7299c593", "score": "0.67437863", "text": "public function latest_block() {\n\t\t$this->db->select('hash, number')\n\t\t\t\t ->order_by('id', 'desc')\n\t\t\t\t ->limit(1);\n\t\t$query = $this->db->get('blocks');\n\t\treturn ($query->num_rows() > 0) ? $query->row_array() : FALSE;\n\t}", "title": "" }, { "docid": "a983d8546cb1fba8f7bbbc4436b91e6c", "score": "0.65926695", "text": "public function getLatestBlock() {\n return $this->chain[count($this->chain)];\n }", "title": "" }, { "docid": "49145743acd17cf4b995afb1f7540a1e", "score": "0.6555568", "text": "public function getLast(){\n\t\t\t$this->db->query(\"SELECT * FROM news ORDER BY id_news DESC LIMIT 5\");\n\n\t\t\treturn $this->db->resultSet();\n\t\t}", "title": "" }, { "docid": "fcde620a12256470a837247075b6239d", "score": "0.60636014", "text": "function getLastNews($limit = 10)\r\n { \r\n global $mainframe, $db;\r\n $list_ids = getListObjectID(\"article\");\r\n \r\n $where = array();\r\n $where[] = \"A.status = 1\";\r\n $where[] = \"B.status = 1\";\r\n if($list_ids != false and $list_ids != \"\"){\r\n \t$where[] = \"A.id not in($list_ids)\";\r\n }\r\n $where = implode(\" AND \",$where);\r\n \r\n $query_command = Yii::app()->db->createCommand();\r\n $query_command->select(\"A.*, B.alias cat_alias, B.title cat_title\")\r\n ->from(TBL_ARTICLES .\" A\")\r\n ->leftJoin(TBL_CATEGORIES . \" B\", \"A.catID = B.id\")\r\n ->where($where)\r\n ->order(\"A.created DESC, A.ordering DESC\")\r\n ->limit($limit);\r\n $items = $query_command->queryAll();\r\n \r\n if(count($items))\r\n foreach($items as &$item){\r\n $params = array(\"view\" =>\"detail\", \"id\" => $item['id'], \"alias\"=>$item['alias'],\"catID\" => $item['catID'], \"cat_alias\"=>$item['cat_alias']) ;\r\n $item['link'] = Router::buildLink('articles', $params);\r\n addObjectID($item['id'], \"article\");\r\n }\r\n return $items;\r\n }", "title": "" }, { "docid": "a6c5ee16954ddd1ba3a478a5b905aed6", "score": "0.6046159", "text": "public function get_latest_news()\n {\n $type = 'news';\n $status = 'Published';\n $is_active = 'active';\n\n $sql = 'select * from '.$this->table3.' where vic_bn_type = \"'.$type.'\" AND vic_bn_status = \"'.$is_active.'\" AND vic_modification_status = \"'.$status.'\" ORDER BY idvic_blogs_news DESC limit 0, 6';\n $result_set = $this->db->query($sql);\n return $result_set->result();\n }", "title": "" }, { "docid": "6ae37e38bf7c6a225227c327100487ee", "score": "0.6036617", "text": "function get_lastest_five_news()\n\t{\n\t\t$q = \"SELECT * FROM tbl_news_and_events WHERE news_status = 1 ORDER BY news_id DESC LIMIT 0,5 \";\n\t\t$r = $this -> db -> getMultipleRecords( $q );\n\t\tif( $r != false )\n\t\t\treturn $r;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "dd46716d5457e36a71cef6ac2f8e7e81", "score": "0.60195845", "text": "private function getNextNews() {\n\t\t$lastId = OCP\\Config::getUserValue($this->user, \"ocDashboard\", \"ocDashboard_newsreader_lastItemId\");\n\t\t$lastId = is_numeric($lastId) ? $lastId : 0;\n\n\t\t$maxAgeNews = OCP\\Config::getUserValue($this->user, \"ocDashboard\", \"ocDashboard_newsreader_maxAge\");\n\t\t$maxAgeNews = is_numeric($maxAgeNews) ? $maxAgeNews : 0;\n\t\t$maxAgeNews = $maxAgeNews * 60 * 60; // from hours to seconds\n\t\t$timezoneadd = OCP\\Config::getUserValue($this->user, \"ocDashboard\", \"ocDashboard_calendar_timezoneAdd\",0);\n\t\t$oldestAcceptedNews = time()-$maxAgeNews-$timezoneadd;\n\t\t\n\t\t$sql = \"SELECT items.id as id, items.title as headline, items.url as url, pub_date as pubdate, body as content, favicon_link as fav\n\t\t\t\t\tFROM `*PREFIX*news_items` as items JOIN\n\t\t\t\t\t\t `*PREFIX*news_feeds` as feeds ON items.feed_id = feeds.id\n\t\t\t\t\tWHERE \n\t\t\t\t\t\titems.status > 0 AND \n\t\t\t\t\t\titems.pub_date > ? AND \n\t\t\t\t\t\tuser_id = ?\n\t\t\t\t\tORDER BY \n\t\t\t\t\t\tpub_date\";\n\t\t$params = Array($oldestAcceptedNews,$this->user);\n\t\t$query = \\OCP\\DB::prepare($sql);\n\t\t$result = $query->execute($params);\n\t\t\t\t\n\t\t$foundLastId = false;\n\t\t$n = 0;\n\t\t$news = Array();\n\t\t$firstNews = Array();\n\t\t$temp = Array();\n\t\twhile ($row = $result->fetchRow()) {\n\t\t\t$n++;\n\t\t\t\t\n\t\t\t// add time from settings for correct timedisplay\n\t\t\t$row['pubdate'] = $row['pubdate']+60*60*$timezoneadd;\n\t\t\t\n\t\t\tif(empty($firstNews)) {\n\t\t\t\t$firstNews = $row;\n\t\t\t\t$firstNews['actual'] = $n;\n\t\t\t}\n\t\t\t\n\t\t\tif($foundLastId) {\n\t\t\t\t$news = $row;\n\t\t\t\t$news['actual'] = $n;\n\t\t\t\t$foundLastId = false;\n\t\t\t}\n\t\t\t\n\t\t\tif($row['id'] == $lastId) {\n\t\t\t\t$foundLastId = true;\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\t// begin at start\n\t\tif(empty($news)) {\n\t\t\t$news = $firstNews;\n\t\t}\n\t\t\n\t\t$news['num'] = $n; \n\t\t$this->news = $news;\n\t\t\n\t\tOCP\\Config::setUserValue($this->user, \"ocDashboard\", \"ocDashboard_newsreader_lastItemId\", $news['id']);\n\t}", "title": "" }, { "docid": "6b3c62f3a589d7844b28edc2ee213db4", "score": "0.60083044", "text": "public function latest()\n {\n return Article::orderBy('created_at', 'desc')//sort latest first\n ->with('photos')//eager load nested photos\n ->take(config('newsportal.newsstand_articles', 10))//limit to the configured number\n ->get();\n }", "title": "" }, { "docid": "71ded4e6443d8539e18b0f639eb6ac0f", "score": "0.593678", "text": "public function last_article($donnees){\n ?>\n<section id=\"mini-mod-article-id\">\n <article id=\"mini-mod-article-class\">\n <h4><?php echo $donnees[\"titre_a\"];?></h4>\n <p><?php echo $donnees[\"resume_a\"];?></p>\n <p><?php echo $donnees[\"date_a\"];?></p>\n <div id=\"mini-mod-div-id\">\n <a href=\"index.php?module=articles&action=article&id_article=<?php echo $donnees[\"id_article\"]?>\"><img src=\"img/<?php echo $donnees[\"photo_a\"];?>\" title=\"<?php echo $donnees[\"title\"]?>\" alt=\"<?php echo $donnees[\"alt\"]?>\" height=\"200\" width=\"200\" /></a>\n \n </div>\n </article>\n</section>\n\n <?php\n }", "title": "" }, { "docid": "76ce8efeaf48840fee638760c1652919", "score": "0.58692354", "text": "function news_latest_posts_block() {\n\tregister_block_type(\n\t\t'news-blocks/latest-posts',\n\t\t[\n\t\t\t'attributes' => array(\n\t\t\t\t'postsToShow' => array(\n\t\t\t\t\t'type' => 'number',\n\t\t\t\t\t'default' => 5,\n\t\t\t\t),\n\t\t\t),\n\t\t\t'editor_script' => 'news-blocks',\n\t\t\t'render_callback' => 'news_blocks_latest_posts_callback',\n\t\t]\n\t);\n}", "title": "" }, { "docid": "dbccfd7e463431cdf1d968bc6e20b840", "score": "0.5769741", "text": "public function find_latest($limit = 15) {\n\t\treturn $this->load(\n\t\t\tDB::select_array($this->fields())\n\t\t\t\t->where('image_count', '>', 0)\n\t\t\t\t->and_where('updated', 'IS NOT', null)\n\t\t\t\t->order_by('updated', 'DESC'),\n\t\t\t$limit\n\t\t);\n\t}", "title": "" }, { "docid": "42780049699e3e3c2f81142f2e8314f0", "score": "0.5769403", "text": "public function getNextBlock()\n\t{\n\t\treturn $this->data['next_block'];\n\t}", "title": "" }, { "docid": "d209649c8aee4fd406efd260d1e93638", "score": "0.5763641", "text": "public function latestNews($limit = 10) {\n return News::where('status', 'active')->orderBy('created_at', 'DESC')->take($limit)->get();\n }", "title": "" }, { "docid": "3163f813604e8f4b54a52bd9ca65370d", "score": "0.5743246", "text": "public function actionMore()\n {\n Yii::$app->response->format = Response::FORMAT_JSON;\n if(isset(Yii::$app->request->get()['pubdate'])&&isset(Yii::$app->request->get()['amount'])){\n $pubdate=Yii::$app->request->get()['pubdate'];\n $arr=News::find()->where(['<','pubdate',$pubdate])\n ->limit(Yii::$app->request->get()['amount'])\n ->orderBy('pubdate DESC')\n ->all();\n if(empty($arr))\n return ['fail'=>\"Nothing left to load.\"];\n return $arr;\n }else\n return ['fail'=>\"Wrong request.\"];\n\n }", "title": "" }, { "docid": "17a04314cd7bc3b25c55db52aabbbf2e", "score": "0.57323074", "text": "public function getLatest($amount = 10)\n {\n return $this->query()->online()->take($amount)->get();\n }", "title": "" }, { "docid": "6ebb9ea72d3a0cb2c46dfbbd8639f993", "score": "0.5704126", "text": "function latest() {\n $url = $this->params['url'];\n if (isset($url['var1'])) {\n $latest = $url['var1'];\n $this->set('latest', $latest);\n } else {\n $this->set('latest', null);\n }\n $items = $this->Item->find('all',\n array('limit' => 6,\n\t\t\t\t\t 'order' => 'Item.created DESC',\n 'conditions' => array('Item.sold = ' => false)));\n $this->set('items', $items);\n return $items;\n }", "title": "" }, { "docid": "3b4c4318469ed7894b15d11f472a6974", "score": "0.5701332", "text": "function ht_last_poster_block( $subforum_id = \"\" ) {\n\t\techo lipi__get_last_poster_block( $subforum_id = \"\" );\n\t}", "title": "" }, { "docid": "09311cf9b5c1876dfdf9994ad8c1010a", "score": "0.569978", "text": "public function getLastItemOnPage(): ?int;", "title": "" }, { "docid": "3579a6f5b8c0afac7d0602e4c8715287", "score": "0.5613157", "text": "public function get_next() {\n\n\t\t$data = $this->get_by_license();\n\t\t$block = array();\n\n\t\tif ( empty( $data ) || ! \\is_array( $data ) ) {\n\t\t\treturn $block;\n\t\t}\n\n\t\t$blocks_sent = \\get_option( 'wpforms_emails_infoblocks_sent' );\n\n\t\tif ( empty( $blocks_sent ) || ! \\is_array( $blocks_sent ) ) {\n\t\t\t$block = $this->get_first_with_id( $data );\n\t\t}\n\n\t\tif ( empty( $block ) ) {\n\t\t\t$data = \\array_diff_key( $data, \\array_flip( $blocks_sent ) );\n\t\t\t$block = $this->get_first_with_id( $data );\n\t\t}\n\n\t\treturn $block;\n\t}", "title": "" }, { "docid": "8693d57e8b8741bd97d2c295f2fcab0a", "score": "0.55793273", "text": "public function findLatestNumber(): mixed;", "title": "" }, { "docid": "6418eb3fbbcb9b37e1cb4077ca80a342", "score": "0.5558329", "text": "function getBlock($course) {\n\tglobal $BLOCK_TABLE;\n\t\n\tif (substr($course -> section, 0, 1) == \"9\" && strlen($course -> section) == 3)\n\t\treturn 6;\n\t\n\t$days = str_replace(\" \", \"\", $course -> days);\n\t$start = $course -> start;\n\t$end = $course -> end;\n\t$query = \"SELECT block FROM $BLOCK_TABLE WHERE days = '$days' AND start = '$start' AND end = '$end'\";\n\t\n\t$connection = getCourseDatabase();\n\t$result = mysql_query($query, $connection);\n\tmysql_close($connection);\n\t\n\tif ($r = mysql_fetch_object($result))\n\t\treturn $r -> block;\n\t\t\n\treturn 5;\n\t\n}", "title": "" }, { "docid": "6c159598d4267f3bda46641a23b20592", "score": "0.5543232", "text": "public function getLastNewsFooter()\n {\n if (!self::$instance->last_news_footer){\n self::$instance->last_news_footer = TopicService::getLastNews(10);\n }\n return self::$instance->last_news_footer;\n }", "title": "" }, { "docid": "6fea1b77a87f1d434ff9e3fe6c6a7d85", "score": "0.5533396", "text": "function seeMoreHotNews(){\n\t\treturn $this->query(\"SELECT * FROM tintuc ORDER BY SoLanXem DESC LIMIT 0,78\");\n\t}", "title": "" }, { "docid": "c66035aa6d5d1d17e23788d8817fab8d", "score": "0.55208826", "text": "public function getLastBlockId(): int\n {\n if (!$this->lastBlockId) {\n $this->lastBlockId = $this->blockStorage->getBlock($this->getKeyCache()) ?? 0;\n }\n if (!$this->lastBlockId) {\n $this->setLastBlockId($this->getCurrentBlockId());\n }\n return $this->lastBlockId;\n }", "title": "" }, { "docid": "f005a1f0ee19cbd2fedddb84b68c4d32", "score": "0.5512498", "text": "function last () {\n\t$this->last = $this->startof + $this->limit;\n\tif ($this->last > $this->totalrecords) {\n\t\t$this->last = $this->totalrecords ;\n\t}// End of : if ($last > $totalRecords) {\n\treturn $this->last;\n}", "title": "" }, { "docid": "cb54b664b4925c38d0d1f6b3cc377ab6", "score": "0.5485222", "text": "private function _build_last(){\n $last = ( ($this->_currentPage + 1) * $this->_pageSize );\n return min( $this->_total, $last );\n }", "title": "" }, { "docid": "3d10b8bfaeaad405b39d741ea4e06f08", "score": "0.5484529", "text": "public function getLastBlockHeight(): int\n {\n $height = Cache::get('latest_block_height');\n\n if (!$height) {\n return Block::orderBy('created_at', 'desc')->first()->height ?? 0;\n }\n\n return $height;\n }", "title": "" }, { "docid": "edf6e4134af532e57a0b20ee4a6c0321", "score": "0.5472549", "text": "public function getLast();", "title": "" }, { "docid": "edf6e4134af532e57a0b20ee4a6c0321", "score": "0.5472549", "text": "public function getLast();", "title": "" }, { "docid": "edf6e4134af532e57a0b20ee4a6c0321", "score": "0.5472549", "text": "public function getLast();", "title": "" }, { "docid": "324a9221ac7ce3eda09d798197a27fa3", "score": "0.5428273", "text": "public function lastArticleAction()\n {\n $articles = $this->em->getRepository('CMSBundle:Article')->getLatestArticles(2);\n\n return array('articles' => $articles);\n }", "title": "" }, { "docid": "c244c2abffdfa08ddd7c112d2ebf6f68", "score": "0.5419034", "text": "function lastpage() {\n\t$url =\"{url}\";\n\t$islast = ceil($this->totalrecords/$this->limit);\n\tif ($islast > 5 ) { \n\t\t$this->last=($this->limit*$islast)-$this->limit;\n\t\tif ($this->page < $this->allpages()) {\n\t\t\t$url .= \"{chr}page=\".$islast.\"\";\n\t\t\t$result = \"<a href=\\\"\".$url.\"\\\">\".$this->lang[LAST].\"</a>&nbsp;&nbsp;\";\n\t\t} // End of : if ($this->page < $this->allpages()) \n\t} // End of : if ($islast > 5 )\n\treturn $result;\n}", "title": "" }, { "docid": "39e0d3f09404b2b50b11b606c55387a3", "score": "0.54146934", "text": "function read_last(){\n\t$upOne = dirname(__DIR__, 1);\n\t$realpath = $upOne.'\\config\\\\';\n\t$file = file($realpath.\"page-blocks.php\");\n\tfor ($i = max(0, count($file)-1); $i < count($file); $i++) {\n\t\t$x = $file[$i];\n\t}\t\n\treturn $x;\n}", "title": "" }, { "docid": "3e0c5c4ef349beee8d65c222c07bcb35", "score": "0.5407099", "text": "public function retrieveLast($includeMetaTickets = false);", "title": "" }, { "docid": "34814f00243cd1c4c33e27bbd6742d68", "score": "0.54010487", "text": "function get_last_bill(): int {\n global $entity_manager;\n $bills_list = $entity_manager->getRepository('entities\\Bill')->findAll();\n\n $bill_id = -1;\n if ($bills_list != null){\n foreach ($bills_list as $bill){\n $bill_id = $bill->getId();\n }\n }\n\n return $bill_id;\n}", "title": "" }, { "docid": "b221691b14d3f4d062b491e6646a3e80", "score": "0.53478026", "text": "public function last()\n {\n $count = $this->count();\n return $this->collection[$count-1];\n }", "title": "" }, { "docid": "ca063ab396b623f21c98558981e10dcb", "score": "0.5346294", "text": "public function homepage_news_block($blockType, $blockId,$blockInputType) {\r\n\t\tglobal $post;\r\n\r\n\t\t$title = stripslashes(get_option(THEME_NAME.\"_\".$blockType.\"_title_\".$blockId));\r\n\t\t$subtitle = stripslashes(get_option(THEME_NAME.\"_\".$blockType.\"_subtitle_\".$blockId));\r\n\t\t$count = get_option(THEME_NAME.\"_\".$blockType.\"_count_\".$blockId);\r\n\t\t$cat = get_option(THEME_NAME.\"_\".$blockType.\"_cat_\".$blockId);\r\n\t\t$offset = get_option(THEME_NAME.\"_\".$blockType.\"_offset_\".$blockId);\r\n\t\t$pageColor = \"#\".get_option(THEME_NAME.\"_\".$blockType.\"_color_\".$blockId);\r\n\r\n\r\n\t\tif($cat) {\r\n\t\t\t$link = get_category_link($cat);\r\n\t\t} else {\r\n\t\t\t$link = get_page_link(get_option('page_for_posts'));\r\n\t\t}\r\n\r\n\r\n\t\t//set wp query\r\n\t\t$args = array(\r\n\t\t\t'post_type' => \"post\",\r\n\t\t\t'cat' => $cat,\r\n\t\t\t'offset' =>$offset,\r\n\t\t\t'showposts' => $count,\r\n\t\t\t'ignore_sticky_posts' => \"1\"\r\n\t\t);\r\n\r\n\t\t$my_query = new WP_Query($args);\r\n\t\r\n\r\n\r\n\t\t//set block attributes\r\n\t\t$attr = array(\r\n\t\t\t'title' =>$title,\r\n\t\t\t'subtitle' =>$subtitle,\r\n\t\t\t'count' =>$count,\r\n\t\t\t'cat' => $cat,\r\n\t\t\t'offset' =>$offset,\r\n\t\t\t'link' =>$link,\r\n\t\t\t'pageColor' =>$pageColor,\r\n\r\n\t\t);\r\n\r\n\r\n\r\n\t\t//add all data in array\r\n\t\t$data = array($my_query, $attr);\r\n\r\n\t\t//set data\r\n\t\t$this->set_data($data);\r\n\t\t$block = \"latest-news-1\";\r\n\t\treturn $block;\r\n\r\n\t}", "title": "" }, { "docid": "5c0acde31cae0d3183cd93d4873d795e", "score": "0.5346239", "text": "public function getRecentNews()\n {\n $this->debug('Getting recent news');\n $recentNews = $this->findMultipleByCss(self::RECENT_NEWS_SELECTOR);\n return $recentNews;\n }", "title": "" }, { "docid": "098f4c1965d4630e0a4ff78612bc1918", "score": "0.5346183", "text": "public function homepage_news_block_2($blockType, $blockId,$blockInputType) {\r\n\t\tglobal $post;\r\n\r\n\t\t$title = stripslashes(get_option(THEME_NAME.\"_\".$blockType.\"_title_\".$blockId));\r\n\t\t$subtitle = stripslashes(get_option(THEME_NAME.\"_\".$blockType.\"_subtitle_\".$blockId));\r\n\t\t$count = get_option(THEME_NAME.\"_\".$blockType.\"_count_\".$blockId);\r\n\t\t$cat = get_option(THEME_NAME.\"_\".$blockType.\"_cat_\".$blockId);\r\n\t\t$offset = get_option(THEME_NAME.\"_\".$blockType.\"_offset_\".$blockId);\r\n\t\t$pageColor = \"#\".get_option(THEME_NAME.\"_\".$blockType.\"_color_\".$blockId);\r\n\r\n\r\n\t\t//set wp query\r\n\t\t$args = array(\r\n\t\t\t'showposts' => $count,\r\n\t\t\t'order' => 'DESC',\r\n\t\t\t'cat' => $cat,\r\n\t\t\t'offset' =>$offset,\r\n\t\t\t'orderby'\t=> 'meta_value_num',\r\n\t\t\t'meta_key'\t=> \"_\".THEME_NAME.'_post_views_count',\r\n\t\t\t'post_type'=> 'post',\r\n\t\t\t'ignore_sticky_posts' => true\r\n\t\t);\r\n\r\n\t\t$my_query = new WP_Query($args);\r\n\t\r\n\r\n\t\t//set block attributes\r\n\t\t$attr = array(\r\n\t\t\t'title' =>$title,\r\n\t\t\t'subtitle' =>$subtitle,\r\n\t\t\t'count' =>$count,\r\n\t\t\t'cat' => $cat,\r\n\t\t\t'offset' =>$offset,\r\n\t\t\t'link' => false,\r\n\t\t\t'pageColor' =>$pageColor,\r\n\t\t);\r\n\r\n\t\t//add all data in array\r\n\t\t$data = array($my_query, $attr);\r\n\r\n\t\t//set data\r\n\t\t$this->set_data($data);\r\n\t\t$block = \"latest-news-1\";\r\n\t\treturn $block;\r\n\t}", "title": "" }, { "docid": "947e81f67a8d074bb210c2689a5ee697", "score": "0.53448904", "text": "function getLatest($select , $table ,$order, $number = 5 )\r\n\t\t\t{\r\n\t\t\t\tglobal $con ;\r\n\t\t\t\t\r\n\t\t\t\t$getStmt = $con->prepare(\"SELECT $select FROM $table ORDER BY $order DESC LIMIT $number\");\r\n\t\t\t\t\r\n\t\t\t\t$getStmt->execute();\r\n\t\t\t\t\r\n\t\t\t\t$row = $getStmt->fetchAll();\r\n\t\t\t\treturn $row;\r\n\t\t\t}", "title": "" }, { "docid": "0f99b5134bd2950454d619c90088b60a", "score": "0.5342733", "text": "public function homepage_news_block_6($blockType, $blockId,$blockInputType) {\r\n\t\tglobal $post;\r\n\r\n\t\t$title = stripslashes(get_option(THEME_NAME.\"_\".$blockType.\"_title_\".$blockId));\r\n\t\t$subtitle = stripslashes(get_option(THEME_NAME.\"_\".$blockType.\"_subtitle_\".$blockId));\r\n\t\t$count = get_option(THEME_NAME.\"_\".$blockType.\"_count_\".$blockId);\r\n\t\t$cat = get_option(THEME_NAME.\"_\".$blockType.\"_cat_\".$blockId);\r\n\t\t$offset = get_option(THEME_NAME.\"_\".$blockType.\"_offset_\".$blockId);\r\n\t\t$pageColor = \"#\".get_option(THEME_NAME.\"_\".$blockType.\"_color_\".$blockId);\r\n\r\n\r\n\t\tif($cat) {\r\n\t\t\t$link = get_category_link($cat);\r\n\t\t} else {\r\n\t\t\t$link = get_page_link(get_option('page_for_posts'));\r\n\t\t}\r\n\r\n\r\n\t\t//set wp query\r\n\t\t$args = array(\r\n\t\t\t'post_type' => \"post\",\r\n\t\t\t'cat' => $cat,\r\n\t\t\t'offset' =>$offset,\r\n\t\t\t'showposts' => $count,\r\n\t\t\t'ignore_sticky_posts' => \"1\"\r\n\t\t);\r\n\r\n\t\t$my_query = new WP_Query($args);\r\n\t\r\n\r\n\r\n\t\t//set block attributes\r\n\t\t$attr = array(\r\n\t\t\t'title' =>$title,\r\n\t\t\t'subtitle' =>$subtitle,\r\n\t\t\t'count' =>$count,\r\n\t\t\t'cat' => $cat,\r\n\t\t\t'offset' =>$offset,\r\n\t\t\t'link' =>$link,\r\n\t\t\t'pageColor' =>$pageColor,\r\n\r\n\t\t);\r\n\r\n\r\n\r\n\t\t//add all data in array\r\n\t\t$data = array($my_query, $attr);\r\n\r\n\t\t//set data\r\n\t\t$this->set_data($data);\r\n\t\t$block = \"latest-news-2\";\r\n\t\treturn $block;\r\n\r\n\t}", "title": "" }, { "docid": "013ee781a3a957a5c81d59303fe1d170", "score": "0.53393346", "text": "public function getLatestBid()\n {\n $result = DB::selectOne(\"SELECT TOP 1 * FROM bids WHERE auction_id=:auction_id ORDER BY amount DESC\", [\n \"auction_id\" => $this->id\n ]);\n if ($result === false)\n return $this->start_price;\n return Bid::resultToClass($result)->amount;\n }", "title": "" }, { "docid": "b547119ce4d3d0dac7fd41428b35245e", "score": "0.53329575", "text": "public function homepage_news_block_7($blockType, $blockId,$blockInputType) {\r\n\t\tglobal $post;\r\n\r\n\t\t$title = stripslashes(get_option(THEME_NAME.\"_\".$blockType.\"_title_\".$blockId));\r\n\t\t$subtitle = stripslashes(get_option(THEME_NAME.\"_\".$blockType.\"_subtitle_\".$blockId));\r\n\t\t$count = get_option(THEME_NAME.\"_\".$blockType.\"_count_\".$blockId);\r\n\t\t$cat = get_option(THEME_NAME.\"_\".$blockType.\"_cat_\".$blockId);\r\n\t\t$offset = get_option(THEME_NAME.\"_\".$blockType.\"_offset_\".$blockId);\r\n\t\t$pageColor = \"#\".get_option(THEME_NAME.\"_\".$blockType.\"_color_\".$blockId);\r\n\r\n\r\n\t\tif($cat) {\r\n\t\t\t$link = get_category_link($cat);\r\n\t\t} else {\r\n\t\t\t$link = get_page_link(get_option('page_for_posts'));\r\n\t\t}\r\n\r\n\r\n\r\n\t\t//set wp query\r\n\t\t$args = array(\r\n\t\t\t'showposts' => $count,\r\n\t\t\t'order' => 'DESC',\r\n\t\t\t'cat' => $cat,\r\n\t\t\t'offset' =>$offset,\r\n\t\t\t'orderby'\t=> 'meta_value_num',\r\n\t\t\t'meta_key'\t=> \"_\".THEME_NAME.'_post_views_count',\r\n\t\t\t'post_type'=> 'post',\r\n\t\t\t'ignore_sticky_posts' => true\r\n\t\t);\r\n\t\t$my_query = new WP_Query($args);\r\n\t\r\n\r\n\r\n\t\t//set block attributes\r\n\t\t$attr = array(\r\n\t\t\t'title' =>$title,\r\n\t\t\t'subtitle' =>$subtitle,\r\n\t\t\t'count' =>$count,\r\n\t\t\t'cat' => $cat,\r\n\t\t\t'offset' =>$offset,\r\n\t\t\t'link' =>$link,\r\n\t\t\t'pageColor' =>$pageColor,\r\n\r\n\t\t);\r\n\r\n\r\n\r\n\t\t//add all data in array\r\n\t\t$data = array($my_query, $attr);\r\n\r\n\t\t//set data\r\n\t\t$this->set_data($data);\r\n\t\t$block = \"latest-news-2\";\r\n\t\treturn $block;\r\n\r\n\t}", "title": "" }, { "docid": "0b431b7e83e50c118a646e80c29fba10", "score": "0.53231007", "text": "function getLatestItemBySecId($secId){ \n\t\tglobal $mainframe;\n\t\t$db =& JFactory::getDBO();\n\t\t$user =& JFactory::getUser();\n\t\t$userId = (int) $user->get('id');\n\t\t$count = (int)$this->params->get('v_no_latest_item') + (int)$this->params->get('v_no_link_item');\n\t\t$intro_lenght = intval($this->params->get( 'intro_length', 200) );\n\t\t$aid = $user->get('aid', 0);\n\t\t$imgWidth = $this->params->get('image_width');\n\t\t$imgHeight = $this->params->get\t('image_height');\n\t\t$contentConfig = &JComponentHelper::getParams( 'com_content' );\n\t\t$access = !$contentConfig->get('shownoauth');\n\t\t$nullDate = $db->getNullDate();\n\t\t$date =& JFactory::getDate();\n\t\t$now = $date->toMySQL();\n\t\t$amountCookie = 'amount'.$secId;\n\t\t$amountCookie = $this->getCookie($amountCookie);\t\n\t\tif($amountCookie){\n\t\t\t$aryAmount = explode(',',$amountCookie);\n\t\t\t$noHeadLine = $aryAmount[0];\n\t\t\t$noLink = $aryAmount[1];\n\t\t\t$count = (int)$noHeadLine + (int)$noLink;\n\t\t}\t\n\t\t$where = 'a.state = 1'\n\t\t. ' AND ( a.publish_up = '.$db->Quote($nullDate).' OR a.publish_up <= '.$db->Quote($now).' )'\n\t\t. ' AND ( a.publish_down = '.$db->Quote($nullDate).' OR a.publish_down >= '.$db->Quote($now).' )'\n\t\t;\n\t\t// Ordering\n\t\t$ordering = 'a.created DESC';\n\t\t// Content Items only\n\t\t$query = 'SELECT a.*,a.id as key1, cc.id as key2, cc.title as cat_title, ' .\n ' CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(\":\", a.id, a.alias) ELSE a.id END as slug,'.\n ' CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(\":\", cc.id, cc.alias) ELSE cc.id END as catslug'.\n ' FROM #__content AS a' . \n ' INNER JOIN #__categories AS cc ON cc.id = a.catid' .\n ' INNER JOIN #__sections AS s ON s.id = a.sectionid' .\n ' WHERE '. $where .' AND s.id > 0' .\n\t\t($access ? ' AND a.access <= ' .(int) $aid. ' AND cc.access <= ' .(int) $aid. ' AND s.access <= ' .(int) $aid : '').\n ' AND s.published = 1 '.\n ' AND cc.published = 1 AND s.id = '.$secId.\n ' ORDER BY '. $ordering;\t\t\t\n\t\t$db->setQuery($query, 0, $count);\n\t\t$rows = $db->loadObjectList();\n\t\t$i = 0;\n\t\t$lists = array();\n\t\tforeach ( $rows as $row ){\n\t\t\t//$imageurl = modJVHeadLineHelper::checkImage($row->introtext);\n\t\t\t$imageurl = $this->checkImage($row->introtext);\n\t\t\t$folderImg = DS.$row->id;\n\t\t\t$this->createdDirThumb('com_content',$folderImg);\n\t\t\t$lists[$i]->title = $row->title;\n\t\t\t$lists[$i]->alias = $row->alias;\n\t\t\t$lists[$i]->link = JRoute::_(ContentHelperRoute::getArticleRoute($row->slug, $row->catslug, $row->sectionid));\n\t\t\t$lists[$i]->introtext = $this->introContent($row->introtext, $intro_lenght);\n\t\t\t$lists[$i]->created = $row->created;\n\t\t\t$lists[$i]->thumb ='';\n\t\t\tif($this->FileExists($imageurl)) {\n\t\t\t\t$lists[$i]->thumb = $this->getThumb($row->introtext,$imgWidth,$imgHeight,false,$row->id);\n\t\t\t\t$images_size = $this->getImageSizes($lists[$i]->thumb);\n\t\t\t\tif($images_size[0] != $imgWidth || $images_size[1] != $imgHeight) {\n\t\t\t\t\t@unlink($lists[$i]->thumb);\n\t\t\t\t\t$lists[$i]->thumb = $this->getThumb($row->introtext,$imgWidth,$imgHeight,false,$row->id);\n\t\t\t\t}\t\t\t\n\t\t\t} \n\t\t\t$i++;\n\t\t}\n\t\treturn $lists;\n\t}", "title": "" }, { "docid": "92ec95307927fa147064b7b9128f0769", "score": "0.5314317", "text": "function get_full_poems($amount) {\n\tglobal $connection;\n\n\t$q = \"SELECT * FROM poems ORDER BY id DESC LIMIT $amount\";\n\t$r = mysqli_query($connection, $q);\n\treturn $r;\n}", "title": "" }, { "docid": "61fea83d41bb122c369ae69af951715c", "score": "0.5306419", "text": "public function getLastBlockHash()\n {\n return $this->lastBlockHash;\n }", "title": "" }, { "docid": "3b33f6a66858cef4aff5b3fdc5ca5ad6", "score": "0.5298604", "text": "public function getLatestTransaction() {\n\n $sql = \"SELECT * FROM transactions WHERE TransDate > (now() - INTERVAL 2 MINUTE)\";\n $result = mysql_query($sql);\n $responseArray = array();\n while ($row = mysql_fetch_assoc($result)) {\n $responseArray[] = array(\n 'itemName' => $row['itemName'],\n 'itemPriceInUSD' => $row['itemPriceInUSD'],\n 'user' => $row['user'],\n 'vendor' => $row['vendor'],\n 'broker' => $row['broker'],\n 'itemPriceDiscountBrokerProfit' => $row['itemPriceDiscountBrokerProfit'],\n 'itemPriceInBTC' => $row['itemPriceInBTC']);\n }\n $this->sendResponse($responseArray);\n }", "title": "" }, { "docid": "9333bf6e3bb0c81fc8d2c4200c27bfaf", "score": "0.5289902", "text": "public function getNextBlockPosition()\n {\n $blocks = new Collection($this->cms_blocks);\n $highestBlock = $blocks->max('position');\n $maxPosition = 0;\n if ($highestBlock) {\n $maxPosition = $highestBlock->position;\n }\n return ($maxPosition + 1);\n }", "title": "" }, { "docid": "9e551f80fcdab16034b2a2dced4582ed", "score": "0.5288625", "text": "function ht_last_poster_block_topics() {\n\t\techo ht_get_last_poster_block_topics();\n\t}", "title": "" }, { "docid": "a33653ed78f0dc4e2a19301fee05e5b7", "score": "0.5284143", "text": "public function getNextArticle()\r\n {\r\n $collection = Mage::getModel('showcase/showcase')\r\n ->getCollection()\r\n ->addFieldToFilter('date', array('from' => $this->article->getDate()))\r\n ->addFieldToFilter('id', array('neq' => $this->article->getId()))\r\n ->setOrder('date', 'ASC')\r\n ->getFirstitem();\r\n\r\n if($collection->getId()) {\r\n return $collection;\r\n }\r\n\r\n return null;\r\n }", "title": "" }, { "docid": "3373847deeffc986c12e8ecda669e4aa", "score": "0.5282265", "text": "public function recentRecipe()\n {\n // to get the \"$max\" most recent articles\n\n $this->createHeader();\n $this->createFooter();\n\n return $this->render('recipe/recent_list.html.twig',\n array('newsletterHeader' => $this->newsletterHeader,\n 'newsletterContent' => $this->returnLastRecipes(1),\n 'newsletterFooter' => $this->newsletterFooter)\n );\n }", "title": "" }, { "docid": "d29b99fbb614f6fd2326ffc084426f1c", "score": "0.52704346", "text": "function get_recent()\n {\n $this->db->limit(5);\n $this->db->order_by('game_id','desc');\n return $this->db->get($this->table)->result();\n }", "title": "" }, { "docid": "36687dbd4b0d9402cba1ee4d3d508e69", "score": "0.52672917", "text": "public function last() {\r\n // get id\r\n $id = $this->getLastID();\r\n // return\r\n return $this->read($id);\r\n }", "title": "" }, { "docid": "52076a042fd2777287b744f6915a4061", "score": "0.52563506", "text": "public function getLastId()\n {\n $this->db->order_by('kode_transaksi', 'DESC');\n return $this->db->get('transaksi_offline');\n }", "title": "" }, { "docid": "b44eb50751c3d2bccc1474f3c8446917", "score": "0.5255674", "text": "public function last()\n {\n $this->crawl();\n\n return end($this->results);\n }", "title": "" }, { "docid": "e58d77651a58bd863676177f3272ce2c", "score": "0.52550983", "text": "public function getLasts()\n {\n return $this->model->orderBy('products.created_at', 'desc')\n ->limit(6)->get(['products.id', 'products.name']);\n }", "title": "" }, { "docid": "741b008a68ad39492af40fa3db28a434", "score": "0.5250983", "text": "public function getLast()\n {\n $query = $this->table()->where('batch', $this->getLastBatchNumber());\n\n return $query->orderBy('id', 'desc')->get()->all();\n }", "title": "" }, { "docid": "f62c678da3778ae31f050357032d7461", "score": "0.5246325", "text": "public function getBreakingNews()\n {\n //return 2;\n $postId = Status::where('status',3)->latest('created_at')->take(4)->pluck('post_id');\n //return $postId;\n return Post::whereIn('id', $postId)->latest('created_at')->get();\n \n }", "title": "" }, { "docid": "4ce0e8f5a69fa2a601d49b8ebe9e74b7", "score": "0.52215534", "text": "public function getWaterLastestLifeTime() {\n $query1 = $this->db->query('SELECT MAX(`from`) as `from` FROM w_lifetime');\n\t\t$query2 = $this->db->query(\"SELECT * FROM w_lifetime WHERE `from` = '\" . $query1->row['from'] . \"'\");\n\t\t\n return $query2->row;\n }", "title": "" }, { "docid": "d22aaa05908e371825d041b7dd4c9fba", "score": "0.52208704", "text": "public function last()\n {\n return end($this->items);\n }", "title": "" }, { "docid": "8260c5df505497c973564e281b608da7", "score": "0.52202845", "text": "function smarty_function_display_last_bid($params, $template)\n{\n \n $auc= new auction;\n $last_bid=$auc->get_last_bid($params['auc']);\n\n echo $params['cur'].$last_bid['price'];\n}", "title": "" }, { "docid": "b71910af6cb4366acfe6340b8ede5c6b", "score": "0.5217949", "text": "public static function getRecent($n = 5) {\n $CI = get_instance();\n $CI->db->from('news');\n $CI->db->order_by('posted DESC');\n $CI->db->limit(5);\n return $CI->db->get()->result('News');\n }", "title": "" }, { "docid": "f6d092378e52b8f259090edafc001f5b", "score": "0.52099085", "text": "public function get_last_challan()\n {\n \treturn $this->db->select('challan_no')->order_by('sr_no',\"desc\")->limit(1)->get('challan_bills')->row(); \n }", "title": "" }, { "docid": "20d9a5891f09db479d9ddaa28030c04f", "score": "0.52032256", "text": "public function news(){\n\n $connexion = $this->db->connectDb();\n $q = $connexion->prepare(\"SELECT * FROM news_index ORDER by date_news DESC\");\n $q->execute();\n\n $news = $q->fetch();\n\n return $news;\n }", "title": "" }, { "docid": "5e938097bbb00886a64157ba921df9bc", "score": "0.5197988", "text": "public function getLast() {\n if ($this->count() === 0) {\n return null;\n }\n return end($this->items);\n }", "title": "" }, { "docid": "65be2b4c51c1b7f610cbff70c5e95878", "score": "0.51964676", "text": "public static function getPhotoNews()\n {\n // Photo review\n $photoReviewNews = Album::find()\n ->where([\n 'is_public' => 1, \n ])\n ->orderBy(['created_at' => SORT_DESC])\n ->limit(3)\n ->all();\n\n if(count($photoReviewNews) == 0) return false;\n\n $block = [\n 'view' => '@frontend/views/blocks/review_news_block',\n 'data' => compact('photoReviewNews'),\n ];\n return $block;\n }", "title": "" }, { "docid": "a24db2b39b44239fc1ac616236090f12", "score": "0.5185874", "text": "function get_latest_6_articles_info() {\n//--------------------------------------------------------------------------\n global $dbc;\n\n $sql = \"SELECT * FROM t_articles WHERE State = 2 ORDER BY PublicationDate LIMIT 6\";\n $req = $dbc->prepare($sql);\n $req->execute();\n $articles = $req->fetchAll(PDO::FETCH_ASSOC);\n return $articles;\n}", "title": "" }, { "docid": "b218d8d7195e457bcdbf85ecde907403", "score": "0.5181655", "text": "function findMessageswithoutBeforeAuthor($count){\n $sql=<<<EOD\n select id as \"messageId\" ,author,content,datetime,pseudo\n from rezozio.messages join rezozio.users on login = author\n order by datetime desc limit :lt;\nEOD;\n $stmt=$this->connexion->prepare($sql);\n $stmt->bindValue(':lt',$count);\n $stmt->execute();\n $res=$stmt->fetchAll();\n return $res;\n}", "title": "" }, { "docid": "338f24af1a0eccc92d04dbc93b630b72", "score": "0.5176691", "text": "public function last()\n {\n $results = $this->scrape();\n\n return end($results);\n }", "title": "" }, { "docid": "05bd3c4e46aba234d56b1c4612d8c292", "score": "0.51743364", "text": "public function latest()\n {\n $announcement = Announcement::orderBy('publish_at', 'desc')\n ->where('publish_at', '<', date(\"Y-m-d H:i:s\", time()))\n ->where('unpublish_at', '>', date(\"Y-m-d H:i:s\", time()))\n ->limit(1)\n ->get()\n ->first();\n\n if ($announcement) {\n return $this->item($announcement, new AnnouncementTransformer);\n }\n else\n {\n $this->response->noContent();\n }\n }", "title": "" }, { "docid": "ffec16d38cb51ca24e2d64a3030ecfe5", "score": "0.51733124", "text": "public function getLatestBitcoinSellAds() {\n\n $this->db->select('T.trade_id,T.status,T.created_on,T.trade_type,U.user_name,P.method_name,P.method_url,G.geo_location_id,G.city,G.location,G.region,G.country');\n\n $this->db->from('mst_trades as T');\n $this->db->join('payment_method as P', 'T.payment_method_id = P.method_id', 'inner');\n $this->db->join('mst_users as U', 'T.user_id = U.user_id', 'inner');\n $this->db->join('geo_location as G', 'T.geo_location_id = G.geo_location_id', 'inner');\n\n\t\t$this->db->where_in(\"T.status\", 'A');\n\t\t\n\t\t$trade_type = array('sell_o', 'sell_c');\n $this->db->where_in(\"T.trade_type\", $trade_type);\n\t\t\n $this->db->order_by('T.created_on DESC');\n\t\t$this->db->limit(5);\n $result = $this->db->get();\n return $result->result_array();\n }", "title": "" }, { "docid": "379137bce58c21008a30d3c866cd36d1", "score": "0.5166431", "text": "public function last(int $count): GoldPriceCollection\n {\n try {\n $this->validator->getCountValidator()->validate($count);\n } catch (InvalidCountException $e) {\n throw new InvalidArgumentException($e->getMessage());\n }\n\n $path = sprintf(\"last/%s\", $count);\n\n return $this->apiCaller->getCollection($path);\n }", "title": "" }, { "docid": "d4521a66cc3a9f6e447e8a2c08aab185", "score": "0.5161029", "text": "public function getLast() {\n }", "title": "" }, { "docid": "4b7b0de7d85bba49dcb8c738b5013c05", "score": "0.5159785", "text": "public function recentRecipes() {\n // to get the \"$max\" most recent articles\n\n $this->createHeader();\n $this->createFooter();\n\n return $this->render('recipe/recent_list.html.twig',\n array('newsletterHeader' => $this->newsletterHeader,\n 'newsletterContent' => $this->returnLastRecipes(3),\n 'newsletterFooter' => $this->newsletterFooter)\n );\n }", "title": "" }, { "docid": "cbdab29907792ffd83400af5b9b422cc", "score": "0.5156366", "text": "public function last()\n\t{\n\t\treturn end($this->items);\n\t}", "title": "" }, { "docid": "4fe62bcfe5331a0868c51dfc87a59bf0", "score": "0.5155794", "text": "function find_recent_sale_added($limit)\n{\n global $db;\n $sql = \"SELECT s.id,s.qty,s.price,s.date,p.name\";\n $sql .= \" FROM sales s\";\n $sql .= \" LEFT JOIN products p ON s.product_id = p.id\";\n $sql .= \" ORDER BY s.date DESC LIMIT \" . $db->escape((int)$limit);\n return find_by_sql($sql);\n}", "title": "" }, { "docid": "fb833ef0ef55cd15625dd4a84c0a233f", "score": "0.51551545", "text": "public function getLatestNewsFromSteam() \n {\n $jsonUrl = $this->baseUrl . 'ISteamNews/GetNewsForApp/v0002/?';\n $jsonUrl .= 'appid=' . $this->appId;\n $jsonUrl .= '&count=3&maxlength=300&format=json';\n\n if ($this->checkLimitRequest()) {\n return 'The number of maximum request has been reached.';\n }\n\n $curlResult = $this->doCurlRequest($jsonUrl);\n\n if ($curlResult['httpCode'] == 200) {\n\n $json = json_decode($curlResult['content'], true);\n\n if ($json == null) {\n return 'Error while parsing Steam API response for retrieving latest news.';\n }\n\n if (isset($json[\"appnews\"][\"newsitems\"]) == false) {\n return 'Error while parsing Steam API response for retrieving latest news.';\n }\n\n $jsonNews = $json[\"appnews\"][\"newsitems\"];\n\n return $jsonNews;\n }\n\n if ($curlResult['httpCode'] != 0) {\n return 'Error while request Steam API for retrieve latest news (HTTP Error ' . $curlResult['httpCode'] . ')';\n } else {\n return 'Failed to connect to Steam API to retrieve latest news.';\n }\n }", "title": "" }, { "docid": "db3526bd0bc8fa5ea4c1017fabb7eeaa", "score": "0.5152718", "text": "public function findLatest($limit) {\r\n\t\r\n\t\t$references = array();\r\n\r\n\t\t// creates key-value array with date as a key\r\n\t\tforeach($this->xml as $category) {\r\n\t\t\tforeach($category->reference as $item) {\r\n\t\t\t\t$references[(string) $item->attributes()->added][] = $this->referenceXMLToArr($category, $item);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// sorts the array by the key\r\n\t\tkrsort($references);\r\n\r\n\t\t// selects only limited count of references\r\n\t\t$out = array();\r\n\t\t$cnt = 0;\r\n\t\tforeach($references as $k=>$date) {\r\n\t\t\tforeach($date as $item) {\r\n\t\t\t\tif($cnt <= $limit) {\r\n\t\t\t\t\tif(isset($item['image_about'])) {\r\n\t\t\t\t\t\t$out[] = $item;\r\n\t\t\t\t\t\t$cnt++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif($cnt >= $limit)\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn $out;\r\n\t}", "title": "" }, { "docid": "58165328654c0f3fa2b761aaebba962f", "score": "0.51473624", "text": "protected function blocks() {\n\t\t$posts = Yoast_Blocks::get()->find_posts();\n\t\tif ( empty( $posts['posts'] ) ) {\n\t\t\treturn __( 'No post found.', 'rank-math' );\n\t\t}\n\n\t\t$this->set_pagination( $posts['count'] );\n\n\t\tYoast_Blocks::get()->wizard( array_slice( $posts['posts'], ( $this->items_per_page * ( $this->get_pagination_arg( 'page' ) - 1 ) ), $this->items_per_page ) );\n\n\t\treturn $this->get_pagination_arg();\n\t}", "title": "" }, { "docid": "51a9dfcaa04f6a65686fb84a356abf47", "score": "0.51470083", "text": "function find_recent_sale_added($limit){\n global $db;\n $sql = \"SELECT s.id,s.qty,s.price,s.date,p.name\";\n $sql .= \" FROM sales s\";\n $sql .= \" LEFT JOIN products p ON s.product_id = p.id\";\n $sql .= \" ORDER BY s.date DESC LIMIT \".$db->escape((int)$limit);\n return find_by_sql($sql);\n}", "title": "" }, { "docid": "97f2bf45c17184fa66d02c9ab37e229d", "score": "0.5139406", "text": "function findLast($curSection, $curElement = array(), $limit = 2, $complete = array()) {\n\t\t\t\t\t$arrFilter = array(\n\t\t\t\t\t\t\"SECTION_ID\" => $curSection,\n\t\t\t\t\t\t\"!ID\" => $curElement,\n\t\t\t\t\t\t\"!PREVIEW_PICTURE\" => FALSE,\n\t\t\t\t\t\t\"ACTIVE\" => 'Y',\n\t\t\t\t\t\t\"INCLUDE_SUBSECTIONS\" => 'Y'\n\t\t\t\t\t\t);\n\t\t\t\t\t$result = CIBlockElement::GetList(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\"created\" => \"DESC\",\n\t\t\t\t\t\t\t\"ID\" => \"DESC\"\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t$arrFilter,\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\"nTopCount\" => $limit\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\"PROPERTY_AUTOR\",\n\t\t\t\t\t\t\t\"NAME\",\n\t\t\t\t\t\t\t\"ID\",\n\t\t\t\t\t\t\t\"DETAIL_PAGE_URL\",\n\t\t\t\t\t\t\t\"BUY_URL\",\n\t\t\t\t\t\t\t\"CATALOG_GROUP_1\",\n\t\t\t\t\t\t\t\"PREVIEW_PICTURE\",\n\t\t\t\t\t\t\t\"PREVIEW_TEXT\",\n\t\t\t\t\t\t\t\"DETAIL_TEXT\"\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\tif($result->SelectedRowsCount() > 0) {\n\t\t\t\t\t\twhile($row = $result->GetNext()) {\n\t\t\t\t\t\t\tif(count($complete) >= $limit) {\n\t\t\t\t\t\t\t\treturn $complete;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$complete[] = $row;\n\t\t\t\t\t\t\t$curElement[] = $row['ID'];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(count($complete) >= $limit) {\n\t\t\t\t\t\treturn $complete;\n\t\t\t\t\t}\n\t\t\t\t\t$nextSection = CIBlockSection::GetByID($curSection)->GetNext();\n\t\t\t\t\tif(!empty($nextSection['IBLOCK_SECTION_ID'])) {\n\t\t\t\t\t\t$complete = findLast($nextSection['IBLOCK_SECTION_ID'], $curElement, $limit, $complete);\n\t\t\t\t\t\treturn $complete;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn $complete;\n\t\t\t\t\t}\n\t\t\t\t}", "title": "" }, { "docid": "87903facf858ab7fd0d98669a5eb430f", "score": "0.5132811", "text": "public static function getLast(){\n\t\t\treturn App::getDb()->query(\"\n\t\t\t\tSELECT articles.id, articles.titre, articles.contenu, categories.titre as categorie\n\t\t\t\tFROM articles\n\t\t\t\tLEFT JOIN categories\n\t\t\t\t\tON categorie_id = categories.id\n\t\t\t\", __CLASS__);\n\t}", "title": "" }, { "docid": "5b86c077ceaa3afdc9af46794d24eb00", "score": "0.5132064", "text": "public static function get_latest()\n {\n return self::get()\n ->sort('ID', 'DESC')\n ->first();\n }", "title": "" }, { "docid": "0de23406cdd661ca7565bacb9d439f68", "score": "0.5130317", "text": "public function last_articles()\n {\n return $this->createQueryBuilder('a')\n ->orderBy('a.date_article', 'DESC')\n ->setMaxResults(4)\n ->getQuery()\n ->getResult();\n }", "title": "" }, { "docid": "115b6670d3b4ca72438092ae5502ab34", "score": "0.5127775", "text": "public function homepage_news_block_3($blockType, $blockId,$blockInputType) {\r\n\t\tglobal $post;\r\n\r\n\t\t$title = stripslashes(get_option(THEME_NAME.\"_\".$blockType.\"_title_\".$blockId));\r\n\t\t$subtitle = stripslashes(get_option(THEME_NAME.\"_\".$blockType.\"_subtitle_\".$blockId));\r\n\t\t$count = get_option(THEME_NAME.\"_\".$blockType.\"_count_\".$blockId);\r\n\t\t$cat = get_option(THEME_NAME.\"_\".$blockType.\"_cat_\".$blockId);\r\n\t\t$offset = get_option(THEME_NAME.\"_\".$blockType.\"_offset_\".$blockId);\r\n\t\t$pageColor = \"#\".get_option(THEME_NAME.\"_\".$blockType.\"_color_\".$blockId);\r\n\r\n\t\tif(!$cat) {\r\n\t\t\t$args = array(\r\n\t\t\t\t'post_type' => OT_POST_GALLERY, \r\n\t\t\t\t'posts_per_page' => $count,\r\n\t\t\t\t'offset' =>$offset,\r\n\t\t\t\t'ignore_sticky_posts' => 1\r\n\t\t\t);\r\n\t\t} else {\r\n\t\t\t$args = array(\r\n\t\t\t\t'post_type' => OT_POST_GALLERY, \r\n\t\t\t\t'tax_query' => array(\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t'taxonomy' => OT_POST_GALLERY.'-cat',\r\n\t\t\t\t\t\t'field' => 'id',\r\n\t\t\t\t\t\t'terms' => $cat\r\n\t\t\t\t\t)\r\n\t\t\t\t),\r\n\t\t\t\t'posts_per_page' => $count,\r\n\t\t\t\t'offset' =>$offset,\r\n\t\t\t\t'ignore_sticky_posts' => 1\r\n\t\t\t);\r\n\t\t}\r\n\r\n\r\n\t\t$my_query = new WP_Query($args);\r\n\t\r\n\t\t\r\n\t\t//set block attributes\r\n\t\t$attr = array(\r\n\t\t\t'title' =>$title,\r\n\t\t\t'subtitle' =>$subtitle,\r\n\t\t\t'count' =>$count,\r\n\t\t\t'cat' =>$cat,\r\n\t\t\t'offset' =>$offset,\r\n\t\t\t'link' => false,\r\n\t\t\t'pageColor' =>$pageColor,\r\n\r\n\t\t);\r\n\r\n\t\t//add all data in array\r\n\t\t$data = array($my_query, $attr);\r\n\r\n\t\t//set data\r\n\t\t$this->set_data($data);\r\n\t\t$block = \"latest-galleries\";\r\n\t\treturn $block;\r\n\t}", "title": "" }, { "docid": "812c123a3dee113a8babeb2b08b12c57", "score": "0.51174647", "text": "public function last();", "title": "" }, { "docid": "812c123a3dee113a8babeb2b08b12c57", "score": "0.51174647", "text": "public function last();", "title": "" }, { "docid": "812c123a3dee113a8babeb2b08b12c57", "score": "0.51174647", "text": "public function last();", "title": "" }, { "docid": "812c123a3dee113a8babeb2b08b12c57", "score": "0.51174647", "text": "public function last();", "title": "" }, { "docid": "812c123a3dee113a8babeb2b08b12c57", "score": "0.51174647", "text": "public function last();", "title": "" }, { "docid": "812c123a3dee113a8babeb2b08b12c57", "score": "0.51174647", "text": "public function last();", "title": "" }, { "docid": "f7b81ceb3e393e69ab43788c65e04b8a", "score": "0.51160234", "text": "function qr_getLastItem(){\n\t$vItems = qr_dbSQL(\"SELECT * FROM qr_items ORDER BY iID DESC\");\n\tif( $vItems )\n\t\treturn $vItems[0];\n}", "title": "" }, { "docid": "1cc48918b7f96edebf1e8584e83c1e79", "score": "0.51154745", "text": "function getLatest($select,$tbl,$order,$limit = 5){\n global $connect;\n $statment = $connect->prepare(\"SELECT $select FROM $tbl ORDER BY $order DESC LIMIT $limit\");\n $statment->execute();\n $row = $statment->fetchAll();\n\n return $row;\n }", "title": "" }, { "docid": "d29140443f779801fb26c2ededf8bdf3", "score": "0.5114493", "text": "public function last($attributes = null){\n $order = $this->order;\n $this->order = array($order => \"DESC\");\n $limit = 1;//property_exists($this, 'LIMIT')? $this->LIMIT : 100;\n $this->LIMIT = 1;\n $element = $this->find($attributes);\n\n $this->LIMIT = $limit;\n $this->order = $order;\n return count($element)? $element[0] : null;\n }", "title": "" }, { "docid": "3d643652691f9c32adf761d7c89d951c", "score": "0.51142305", "text": "private function get_last_viewed_item()\n {\n return array(\n \"section_key\" => \"ems_summary\",\n \"content_item_key\" => \"summary\",\n \"section_id\" => \"0\",\n \"content_item_id\" => \"0\",\n );\n }", "title": "" }, { "docid": "56d29dd590fb5ea2c3af987200f86951", "score": "0.51093227", "text": "public function findLastSending();", "title": "" }, { "docid": "7f9dbf02b0af385f9023842aead6d2c5", "score": "0.5092053", "text": "function wpblocks_dynamic_block_render() {\n\n\t$recent_posts = wp_get_recent_posts( [\n\t\t'numberposts' => 1,\n\t\t'post_status' => 'publish',\n\t] );\n\n\tif ( count( $recent_posts ) === 0 ) {\n\t\treturn 'No posts';\n\t}\n\n\t$post = $recent_posts[0];\n\t$post_id = $post['ID'];\n\n\treturn sprintf(\n\t\t'<p><a class=\"wp-block-my-plugin-latest-post\" href=\"%1$s\">%2$s</a></p>',\n\t\tesc_url( get_permalink( $post_id ) ),\n\t\tesc_html( get_the_title( $post_id ) )\n\t);\n}", "title": "" }, { "docid": "ad76711a19c0e6cc457b9753633879dd", "score": "0.5087105", "text": "public function lastItemCrochet()\n {\n $bdd = $this->dbConnect();\n $req = $bdd->prepare('SELECT idItem, title, contents, img, DATE_FORMAT(postDates, \\' % d /%m /%Y\\') AS dates_fr FROM item WHERE categorie = \\'crochet\\' ORDER BY idItem DESC');\n $req->execute(array());\n return $req;\n }", "title": "" }, { "docid": "5d0ee176be48e32bef7d7b2ee893a417", "score": "0.50866735", "text": "function showLast(){\n global $page_no, $total_no_of_pages;\n if($page_no < $total_no_of_pages){\n\t\t return \"<li><a href='?page_no=$total_no_of_pages'>Last &raquo;</a></li>\";\n }\n }", "title": "" }, { "docid": "16ed9e37031b12b25c0d746d0f26e7ce", "score": "0.50839365", "text": "public function getLast()\n\t{\n\t}", "title": "" }, { "docid": "47330b458d01b84352a2133686f860b9", "score": "0.50809324", "text": "public function lastItem()\n {\n return count($this->items) > 0 ? $this->firstItem() + $this->count() - 1 : null;\n }", "title": "" } ]
d46126483e1e3348c0071aa3e6ffa121
validates datacite xml against required schema version
[ { "docid": "18809f228260bf2741c88db68599f062", "score": "0.7470105", "text": "public function validateSchemaVersion($xml)\n {\n libxml_use_internal_errors(true);\n\n try {\n $theSchema = self::getSchemaVersion($xml);\n $doiXML = new \\DOMDocument();\n $doiXML->loadXML($xml);\n } Catch (\\Exception $e) {\n $this->validationMessage = $e->getMessage();\n return false;\n }\n\n $schemaPath = SchemaProvider::getSchema($theSchema);\n\n // if the schema is not stored locally, lookup on datacite\n if (!is_file($schemaPath)) {\n $schemaPath = 'http://schema.datacite.org/meta' . $theSchema;\n }\n\n $result = $doiXML->schemaValidate($schemaPath);\n\n foreach (libxml_get_errors() as $error) {\n $this->validationMessage = $error->message;\n }\n return $result;\n }", "title": "" } ]
[ { "docid": "a83eef50522f2474c28a3c3377132da8", "score": "0.6322941", "text": "function xtestToXmlValidateSchemaLive()\n {\n $expected_xml = '<publisher name=\"test\"><supportedRuleTypes><type>action</type><type>actor</type><type>tag</type><type>to</type><type>regarding</type><type>source</type><type>keyword</type></supportedRuleTypes></publisher>';\n $doc = new DOMDocument();\n $doc->loadXML($expected_xml);\n $doc->saveXML(); \n $doc->schemaValidate('https://api-v21.gnip.com/schema/gnip.xsd');\n }", "title": "" }, { "docid": "0d5a9cf6aceebffcba4617c49c73ac8d", "score": "0.6234733", "text": "protected function validate_xml(){\n\t\tlibxml_use_internal_errors(true);\n\n\t\t$doc = simplexml_load_string( $this->value );\n\t\t$xml = explode( \"\\n\", $this->value );\n\n\t\tif( $doc !== false ) {\n\t\t\t$this->valid = true;\n\t\t} else{\n\t\t $errors = libxml_get_errors();\n\n\t\t foreach ( $errors as $error ) {\n\t\t\t\tif( $this->log )\n\t\t \tbrafton_log( array( 'message' => \"Invalid xml string. PHP resolved this error: \" . display_xml_error( $error, $xml ) . \" Validate xml called by {$this->trace[1]['class']} :: {$this->trace[1]['function']}\" ) );\n\t\t }\n\n\t\t libxml_clear_errors();\n\t\t}\n\t}", "title": "" }, { "docid": "837e594a76c01e78c0f9458f36d84f42", "score": "0.60050297", "text": "function validate_xml($xmlString)\n {\n libxml_use_internal_errors(true);\n $dom = new DomDocument();\n $dom->loadXML($xmlString);\n $errors = true;\n if (!@$dom->schemaValidate(''))\n {\n $errors = libxml_get_errors();\n if ( 0 == sizeof($errors) )\n {\n $errors = true;\n }\n }\n return $errors;\n }", "title": "" }, { "docid": "8b3b3bfba58f261653a2bef82bf5319f", "score": "0.59693944", "text": "function pdf2xml_validating($xml_file)\n{\n\tPhar::interceptFileFuncs();\n\tlibxml_use_internal_errors(true);\n\t$errors = array();\n\t$xml = new DOMDocument();\n\t$xml->load($xml_file);\n\tif(!$xml->schemaValidateSource(file_get_contents(PDF_XML_XSD)))\n\t{\n\t\t$errors = libxml_get_errors();\n\t}\n\tlibxml_clear_errors();\n\n\treturn $errors;\n}", "title": "" }, { "docid": "5b94066eec039f9ef670684addbd4f02", "score": "0.59682286", "text": "public function schemaValidate($filename)\n\t{\n\t\t$luie = libxml_use_internal_errors(true);\n\t\tlibxml_clear_errors();\n\t\t\n\t\t// gotta do the @ to suppress PHP warnings when the schema cannot be loaded or is invalid\n\t\tif(!$result = @parent::schemaValidate($filename)) {\n\t\t\t$errors = array();\n\t\t\tforeach(libxml_get_errors() as $error) {\n\t\t\t\t$errors[] = sprintf('[%s #%d] Line %d: %s', $error->level == LIBXML_ERR_WARNING ? 'Warning' : ($error->level == LIBXML_ERR_ERROR ? 'Error' : 'Fatal'), $error->code, $error->line, $error->message);\n\t\t\t}\n\t\t\tlibxml_clear_errors();\n\t\t\tlibxml_use_internal_errors($luie);\n\t\t\tthrow new DOMException(\n\t\t\t\tsprintf(\n\t\t\t\t\t'XML Schema validation with \"%s\" failed due to the following error%s: ' . \"\\n\\n%s\", \n\t\t\t\t\t$filename, \n\t\t\t\t\tcount($errors) > 1 ? 's' : '', \n\t\t\t\t\timplode(\"\\n\", $errors)\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t\t\n\t\tlibxml_use_internal_errors($luie);\n\t\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "f7ec13457f9d67a6602d7508290e1acc", "score": "0.5963583", "text": "public function testInValidConstraints()\n {\n $xml = '<query id=\"test\">\n <test>\n <primary-key>\n <column>type_code</column>\n </primary-key>\n </test></query>';\n\n $exception = FALSE;\n try {\n $doc = new DomDocument();\n $doc->loadXML($xml);\n $parent = $doc->getElementsByTagName('test')->item(0);\n $result = DALSchemaParser::validateConstraints($parent);\n } catch (DALParserException $e) {\n $exception = TRUE;\n }\n\n PHPUnit_Framework_Assert::assertTrue($exception);\n\n }", "title": "" }, { "docid": "d468302b9699684be9454a95d981de62", "score": "0.59329164", "text": "public function testValidConstraints()\n {\n $xml = '<query id=\"test\">\n <test>\n <primary-key name=\"asset_type_pk\">\n <column>type_code</column>\n </primary-key>\n <foreign-key foreign-table=\"asset_type\" name=\"asset_type_fk1\" on-delete=\"CASCADE\">\n <column references=\"type_code\">parent_type</column>\n </foreign-key>\n <unique name=\"unique\">\n <column>col2</column>\n </unique>\n </test></query>';\n\n $exception = FALSE;\n try {\n $doc = new DomDocument();\n $doc->loadXML($xml);\n $parent = $doc->getElementsByTagName('test')->item(0);\n $result = DALSchemaParser::validateConstraints($parent);\n } catch (DALParserException $e) {\n PHPUnit_Framework_Assert::fail($e->getMessage());\n }\n\n PHPUnit_Framework_Assert::assertFalse($exception);\n\n }", "title": "" }, { "docid": "8b808478ca018b3485312de8bc5f6f07", "score": "0.5860025", "text": "public function validate(): bool\n {\n //$schemaPath = \\Cake\\Core\\Plugin::path('FmLabs/Mpay24') . DS . \"resources\" . DS . \"MDXI.xsd\";\n $schemaPath = dirname(dirname(dirname(__FILE__))) . DS . \"resources\" . DS . \"MDXI.xsd\";\n if (!$this->document->schemaValidate($schemaPath)) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "2d82f51ee0114d96c7013ce93f80f99c", "score": "0.58461213", "text": "public function isValid(DOMDocument $doc);", "title": "" }, { "docid": "d5d295af29a9876ab5a5d9c15cfe5b94", "score": "0.5787211", "text": "function SchemaFileVersion( $filename ) {\n\t\t// Open the file\n\t\tif( !($fp = fopen( $filename, 'r' )) ) {\n\t\t\t// die( 'Unable to open file' );\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\t// Process the file\n\t\twhile( $data = fread( $fp, 4096 ) ) {\n\t\t\tif( preg_match( $this->versionRegex, $data, $matches ) ) {\n\t\t\t\treturn !empty( $matches[2] ) ? $matches[2] : XMLS_DEFAULT_SCHEMA_VERSION;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "fb7c84b9ad912fe878fef4dab8ec0c98", "score": "0.576612", "text": "function testToXmlValidateSchemaLive()\n {\n $local_doc = file_get_contents(dirname(__FILE__) . '../../../src/Services/Gnip/gnip.xsd');\n $remote_doc = file_get_contents('https://api-v21.gnip.com/schema/gnip.xsd');\n $this->assertEquals($local_doc, $remote_doc);\n }", "title": "" }, { "docid": "24ac0fd291cff00049e6c32437e9248a", "score": "0.57323897", "text": "public function validateXML($xmlFile){\n //Because of throwing errors from validation\n libxml_use_internal_errors(true);\n $xml = new DOMDocument(); \n $xml->load($xmlFile); \n if (!$xml->schemaValidate('php/models/record.xsd')) {\n return false;\n }else{\n return true;\n } \n }", "title": "" }, { "docid": "73e5c5a050124be5f871293d8a201c04", "score": "0.5728277", "text": "private function validateWithSchema(DOMDocument $document): void\n {\n $validationErrors = [];\n set_error_handler(static function ($errno, $errstr) use (&$validationErrors): void {\n $validationErrors[] = $errstr;\n });\n\n $isValid = $document->schemaValidate(Constant::$XSD_SCHEMA_PATH_20);\n restore_error_handler();\n\n if (!$isValid) {\n throw new XMLSchemaViolationException($validationErrors);\n }\n }", "title": "" }, { "docid": "cf47d1f1f7f774f4841b678487d8ba48", "score": "0.569957", "text": "public function testValidateDocumentBadXML()\n\t {\n\t\tdefine(\"EXCEPTION_LOAD_XML_FAILED\", 1);\n\n\t\t$schemas = array();\n\t\t$xml = \"Not an XML document\";\n\t\t$this->validateDocument($xml, $schemas);\n\t }", "title": "" }, { "docid": "ce7e147ef2f1bd9b8ae4cdd9e799cd16", "score": "0.56895864", "text": "public function testValidateDocument()\n\t {\n\t\t$schemas = array(\"test\" => __DIR__ . \"/XMLparserTestSchema.xsd\");\n\t\t$xml = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\";\n\t\t$xml .= \"<test><mandatory>text</mandatory></test>\";\n\t\t$type = $this->validateDocument($xml, $schemas);\n\t\t$this->assertEquals(\"test\", $type);\n\t }", "title": "" }, { "docid": "9d75ec1ba0081a75a0c033e09787cd1d", "score": "0.56760705", "text": "public function validate() {\n $this->validateCode();\n $this->validateAllVersionDescriptors();\n }", "title": "" }, { "docid": "114559ceb30626a9902f13221190e436", "score": "0.5649632", "text": "function domxml_xslt_version()\n{\n}", "title": "" }, { "docid": "70d766360954417dae393e18131bcf74", "score": "0.5623982", "text": "public function validate()\n\t\t{\n\t\t\t$ret = array();\n\t\t\t\n\t\t\t// LibXML limitation: Validation seems to work only on loaded XML, not on generated XML\n\t\t\t$xmlToValidate = new DOMDocument();\n\t\t\t$xmlToValidate->loadXML($this->domDocument->saveXML());\n\t\t\t\n\t\t\t$res = $xmlToValidate->schemaValidate('http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd');\n\t\t\t\n\t\t\t// Retrieve errors from libXML\n\t\t\tif($res === false)\n\t\t\t{\n\t\t\t\t$ret = $this->getLibxmlErrors();\n\t\t\t}\n\t\t\t\n\t\t\treturn $ret;\n\t\t}", "title": "" }, { "docid": "2af61f4084c2063bd04c1b2168f23ada", "score": "0.56212527", "text": "function isValid($ebxml_STRING_VALIDATION,$schema){\n\tlibxml_use_internal_errors(true);\n\t$domEbxml = DOMDocument::loadXML($ebxml_STRING_VALIDATION);\n\n\t// Valido il messaggio da uno schema\n\tif (!$domEbxml->schemaValidate($schema)) {\n\t$errors = libxml_get_errors();\n \t\tforeach ($errors as $error) {\n\t\t\t$errorcode[] = \"XDSRepositoryMetadataError\"; \n \t\t$error_message[] = $error->message;\n \t \t}\n\t\t### RESTITUISCE IL MESSAGGIO DI FAIL IN SOAP\n \t\t$failure_response = makeSoapedFailureResponse($error_message,$errorcode);\n\n\t\t### SCRIVO LA RISPOSTA IN UN FILE\n\t\t// File da scrivere\n\t\twriteTimeFile($_SESSION['idfile'].\"--Repository: SOAPED_failure_VALIDATION_response\");\n\t\t$file_input=$_SESSION['idfile'].\"-SOAPED_failure_VALIDATION_response-\".$_SESSION['idfile'];\n\t\twriteTmpFiles($failure_response,$file_input);\n\n\t\tSendResponse($failure_response);\n\t\texit;\n\t\n\t\n\t}\n\n\telse {\n\t\treturn true;\n\t}\n}", "title": "" }, { "docid": "ae94ecfae8a8b2f417b49e78c8d1c9a5", "score": "0.56072026", "text": "private function validateXsd($xmlDoc, $data)\n {\n $attr = $xmlDoc->attributes();\n $schemaLocation = explode(' ', $attr[\"schemaLocation\"]);\n $doc = new \\DomDocument;\n $doc->loadXML($data);\n libxml_use_internal_errors(true);\n if (!$doc->schemaValidate($schemaLocation[1])) {\n return true;\n } else {\n $errors = libxml_get_errors();\n throw new \\Inkassogram\\Bookkeeping\\Exception\\XsdValidationException(\"XSD validation failed!\\n\\n\" . var_export(error_get_last(), true));\n }\n }", "title": "" }, { "docid": "cd95dc83070d4bc388f813a6b09dbe58", "score": "0.5574906", "text": "public function schemaValidateSource($source)\n\t{\n\t\t$luie = libxml_use_internal_errors(true);\n\t\tlibxml_clear_errors();\n\t\t\n\t\t// gotta do the @ to suppress PHP warnings when the schema cannot be loaded or is invalid\n\t\tif(!$result = @parent::schemaValidateSource($source)) {\n\t\t\t$errors = array();\n\t\t\tforeach(libxml_get_errors() as $error) {\n\t\t\t\t$errors[] = sprintf('[%s #%d] Line %d: %s', $error->level == LIBXML_ERR_WARNING ? 'Warning' : ($error->level == LIBXML_ERR_ERROR ? 'Error' : 'Fatal'), $error->code, $error->line, $error->message);\n\t\t\t}\n\t\t\tlibxml_clear_errors();\n\t\t\tlibxml_use_internal_errors($luie);\n\t\t\tthrow new DOMException(\n\t\t\t\tsprintf(\n\t\t\t\t\t'XML Schema validation failed due to the following error%s: ' . \"\\n\\n%s\", \n\t\t\t\t\tcount($errors) > 1 ? 's' : '', \n\t\t\t\t\timplode(\"\\n\", $errors)\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t\t\n\t\tlibxml_use_internal_errors($luie);\n\t\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "e82fee24c656ba731dc281a949c28fae", "score": "0.55591786", "text": "function validateXml($file, $schema) {\n if (!file_exists($file)) {\n printf(\"\\033[31mError: The %s file doesn't exists.\\033[0m\\n\", $file);\n exit(1);\n }\n if (!file_exists($schema)) {\n printf(\"\\033[31mError: The %s schema doesn't exists.\\033[0m\\n\", $schema);\n exit(1);\n }\n // Validate the deployment XML file\n $dom = new \\DOMDocument();\n $dom->loadXML(file_get_contents($file));\n return $dom->schemaValidate($schema);\n}", "title": "" }, { "docid": "0e24943d03ab5adc4cc6ffcba42269f1", "score": "0.55590934", "text": "function SchemaStringVersion( $xmlstring ) {\n\t\tif( !is_string( $xmlstring ) OR empty( $xmlstring ) ) {\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\tif( preg_match( $this->versionRegex, $xmlstring, $matches ) ) {\n\t\t\treturn !empty( $matches[2] ) ? $matches[2] : XMLS_DEFAULT_SCHEMA_VERSION;\n\t\t}\n\t\t\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "5eae70577e6be0a0b4bb1e07ce8e698f", "score": "0.551984", "text": "function testValidOK() {\n $file = realpath(dirname(__FILE__).'/../res/xmlfile.xml');\n $this->assertIdentical(binarypool_validate_xml::validate($file,\n dirname(__FILE__) . '/../../conf/schema/localinfo-2.0.xsd'),\n true);\n }", "title": "" }, { "docid": "c617b88c9b5da3673a960ab7fb9a55b5", "score": "0.5506069", "text": "public function isValidXml(string $data) : bool\n\t{\t\n\t\t$unsureXml = simplexml_load_string($data);\n\t\tif($unsureXml === false) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7526007e3601f7a7bbc9a34d3cd4f142", "score": "0.54189026", "text": "public function validate($entity)\n {\n if ($this->empty && $this->isEmpty($entity)) return $this->reason = true;\n $dom = new \\DOMDocument('1.0', 'utf-8');\n $dom->formatOutput = true;\n $dom->preserveWhiteSpace = false;\n if (is_file($entity)) $dom->load($entity);\n else $dom->loadXML($entity);\n if ($this->schema)\n {\n libxml_clear_errors();\n if (is_file($this->schema)) \n {\n if (!$dom->schemaValidate($this->schema)) \n {\n $this->reason = ['code' => 0, 'reason' => 'invalid schema', 'details' => libxml_get_errors()];\n return false;\n }\n }\n else if (!$dom->schemaValidateSource($this->schema)) \n {\n $this->reason = ['code' => 0, 'reason' => 'invalid schema', 'details' => libxml_get_errors()];\n return false;\n }\n }\n if (!$this->xml) return $this->reason = true;\n $xml = $dom->saveXML();\n $dom = new \\DOMDocument('1.0', 'utf-8');\n $dom->formatOutput = true;\n $dom->preserveWhiteSpace = false;\n if (is_file($this->xml)) $dom->load($this->xml);\n else $dom->loadXML($this->xml);\n if ($xml === $dom->saveXML()) return $this->reason = true;\n $this->reason = ['code' => 1, 'reason' => 'XML are not equal'];\n return false;\n }", "title": "" }, { "docid": "06a349d63c60339d916b1763f21e4fa5", "score": "0.5408308", "text": "public static function valid($version);", "title": "" }, { "docid": "a177c92d11437ad159e888f579a251cd", "score": "0.53696394", "text": "public function testValidateDocumentInvalidDocument()\n\t {\n\t\tdefine(\"EXCEPTION_INVALID_DOCUMENT\", 1);\n\n\t\t$schemas = array(\"test\" => __DIR__ . \"/XMLparserTestSchema.xsd\");\n\t\t$xml = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\";\n\t\t$xml .= \"<test><element attribute=\\\"attr\\\">value</element><anotherelement></anotherelement><lastelement>element</lastelement></test>\";\n\t\t$this->validateDocument($xml, $schemas);\n\t }", "title": "" }, { "docid": "81e497489ccc436cfd61ec071dbb9709", "score": "0.5304913", "text": "public function testValidateSchema()\n {\n }", "title": "" }, { "docid": "6427c8df1fa9823397730f11af0f8706", "score": "0.5286136", "text": "function checkXML($data) {\r\n $rtrn = 0;\r\n $theParser = xml_parser_create();\r\n if(!xml_parse_into_struct($theParser,$data,$vals)) {\r\n $errorcode = xml_get_error_code($theParser);\r\n if($errorcode != XML_ERROR_NONE && $errorcode != 27)\r\n $rtrn = $errorcode;\r\n }//end if ! parse\r\n xml_parser_free($theParser);\r\n return $rtrn;\r\n}", "title": "" }, { "docid": "9a9a637918c7a8f8f1b834352e0ada0e", "score": "0.5265492", "text": "public function dataProviderForTestValidateXML()\n {\n return [\n 'xml_valid' => [\n 'input' => \"<?xml version='1.0'?>\n <catalog>\n <book >\n <author>Gambardella, Matthew</author>\n <title>XML Developer's Guide</title>\n <genre>Computer</genre>\n <price>44.95</price>\n <publish_date>2000-10-01</publish_date>\n <description>An in-depth look at creating applications \n with XML.</description>\n </book>\n </catalog>\",\n 'expected' => true\n ],\n 'xml_invalid' => [\n 'input' => 'http://www.feedforall.com/sample-feeds.htm',\n 'expected' => false\n ]\n ];\n }", "title": "" }, { "docid": "e221b94ef452915364cdfa59616bb7b5", "score": "0.5244509", "text": "function HandleXmlError($errno, $errstr, $errfile, $errline){\n\tif ($errno==E_WARNING && (substr_count($errstr,\"DOMDocument::loadXML()\")>0)){\n\t\tthrow new DOMException($errstr);\n\t}else{ \n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "4757bf7c4e5560c0b1754acbee8ce648", "score": "0.51944286", "text": "public function relaxNGValidate($filename)\n\t{\n\t\t$luie = libxml_use_internal_errors(true);\n\t\tlibxml_clear_errors();\n\t\t\n\t\t// gotta do the @ to suppress PHP warnings when the schema cannot be loaded or is invalid\n\t\tif(!$result = @parent::relaxNGValidate($filename)) {\n\t\t\t$errors = array();\n\t\t\tforeach(libxml_get_errors() as $error) {\n\t\t\t\t$errors[] = sprintf('[%s #%d] Line %d: %s', $error->level == LIBXML_ERR_WARNING ? 'Warning' : ($error->level == LIBXML_ERR_ERROR ? 'Error' : 'Fatal'), $error->code, $error->line, $error->message);\n\t\t\t}\n\t\t\tlibxml_clear_errors();\n\t\t\tlibxml_use_internal_errors($luie);\n\t\t\tthrow new DOMException(\n\t\t\t\tsprintf(\n\t\t\t\t\t'RELAX NG validation with \"%s\" failed due to the following error%s: ' . \"\\n\\n%s\",\n\t\t\t\t\t$filename,\n\t\t\t\t\tcount($errors) > 1 ? 's' : '', \n\t\t\t\t\timplode(\"\\n\", $errors)\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t\t\n\t\tlibxml_use_internal_errors($luie);\n\t\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "ec6c1452131e8b7421f81e0428354211", "score": "0.51738834", "text": "public function validateXSD($xmlObject = null, $path = null) {\n $validator = new DomValidator;\n if ($xmlObject)\n $validated = $validator->validateFeeds($xmlObject);\n if ($path)\n $validated = $validator->validateFeeds($path);\n\n if ($validated) {\n return true;\n error_log(date(\"Y-m-d H:i:s\") . \" : Comprobante validateXSD(): Validaciones vs XSD Correctas \\n\", 3, \"debug.log\");\n } else {\n error_log(date(\"Y-m-d H:i:s\") . \" : Comprobante validateXSD(): fallo la validacion : \\n\" . print_r($validator->displayErrors(), true) . \" \\n\", 3, \"debug.log\");\n throw new Exception(print_r($validator->displayErrors()));\n\n return false;\n }\n }", "title": "" }, { "docid": "4d71d0cc58e47ece1393456c233af790", "score": "0.5158432", "text": "function validateVersion($dta)\n{\n // search for version/build tokens\n $vertkn = '<!-- Sencha Animator Version: '; // version token\n $veridx = strpos($dta,$vertkn);\n $bldidx = strpos($dta,'Build: '); // build token\n \n // check if tokens were found\n if($veridx===FALSE || $bldidx==FALSE) {\n echoError('Could not read Sencha Animator version from input file');\n return FALSE;\n }\n \n // isolate version string\n $stridx = $veridx + strlen($vertkn);\n $verstr = trim( substr($dta,$stridx,$bldidx-$stridx) );\n\n // check version string\n if($verstr=='1.3' || $verstr=='1.5') { return TRUE; /* version OK */ }\n\n // invalid\n echoError('Invalid Sencha Animator version [' . $verstr . ']');\n return FALSE;\n}", "title": "" }, { "docid": "b9eb03dae0464ef80ef1342fa9ca15fc", "score": "0.5151209", "text": "public function validate();", "title": "" }, { "docid": "b9eb03dae0464ef80ef1342fa9ca15fc", "score": "0.5151209", "text": "public function validate();", "title": "" }, { "docid": "b9eb03dae0464ef80ef1342fa9ca15fc", "score": "0.5151209", "text": "public function validate();", "title": "" }, { "docid": "9d4ab5740cee8fd04969189cee0f5a09", "score": "0.51431465", "text": "public function testValidLayoutXmlFile()\n {\n $validationStateMock = $this->createMock(\\Magento\\Framework\\Config\\ValidationStateInterface::class);\n $validationStateMock->method('isValidationRequired')->willReturn(true);\n $domConfig = new \\Magento\\Framework\\Config\\Dom(\n '<referenceBlock name=\"product.info.something\" group=\"column_left\"></referenceBlock>',\n $validationStateMock\n );\n $result = $domConfig->validate($this->schemaFile, $errors);\n $this->assertTrue($result);\n $this->assertEmpty($errors);\n }", "title": "" }, { "docid": "0b9e8c8f3b7b1a8ca221060ac673fa54", "score": "0.50894153", "text": "public static function accepts_xml() \n {\r\n return self::accepts('xml');\r\n }", "title": "" }, { "docid": "920702fa0a43c8592743a91b24144cd5", "score": "0.50808746", "text": "public function checkXSD($schema) {\n\t libxml_use_internal_errors(true);\n\n\t if (!$this->doc->schemaValidate($schema)) {\n\t return $this->libxml_errors();\n\t } else return \"ok\";\n\t}", "title": "" }, { "docid": "c57dbb1fcf3b9b42f710781b15772d11", "score": "0.5072185", "text": "private function validateGIGS($url) {\r\n\t\t$gigs_dtd = \"http://gigs.dinosaurseateverybody.com/dtd/gigs.dtd\";\r\n\t\t$root = \"gigs\";\r\n\t\t\r\n\t\tlibxml_use_internal_errors(true);\r\n\t\t$xml_test = simplexml_load_file($url);\r\n\t\tif(!$xml_test) {\r\n\t\t\t$this->error = \"$url is not a valid GIGS Feed.\";\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t$old = new DOMDocument();\r\n\t\t$old->load($url); \r\n\t\t\r\n\t\t$creator = new DOMImplementation;\r\n\t\t$doctype = $creator->createDocumentType($root, null, $gigs_dtd);\r\n\t\t$new = $creator->createDocument(null, null, $doctype);\r\n\t\t$new->encoding = \"utf-8\";\r\n\t\t\r\n\t\t$oldNode_elements = $old->getElementsByTagName($root);\r\n\t\t$oldNode = $oldNode_elements->item(0);\r\n\t\tif($oldNode_elements->length > 0 ) {\r\n\t\t\t$newNode = $new->importNode($oldNode, true);\r\n\t\t\t$new->appendChild($newNode);\r\n\t\t\t\r\n\t\t\t$gigs_valid = $new->validate();\r\n\t\t\t\r\n\t\t\tif (!$gigs_valid) { \r\n\t\t\t $this->error = \"$url is not a valid GIGS Feed.\";\r\n\t\t\t return false;\r\n\t\t\t} \r\n\t\t\telse { \r\n\t\t\t return true; \r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$this->error = \"$url is not a valid GIGS Feed.\";\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f7c257809ae255f83e3eef5ce3eecff3", "score": "0.5049522", "text": "public function testDataSourceIsValid() {\n $datasource = new \\codename\\core\\io\\datasource\\xml(\n __DIR__ . \"/\" . 'testXml1.xml',\n [\n 'xpath_query' => '/example/data',\n 'xpath_mapping' => [\n 'field1' => 'field1',\n 'field2' => 'field2',\n 'field3' => 'field3',\n ],\n ]\n );\n $datasource->next();\n\n $data = $datasource->current();\n $this->assertEquals($data['field1'], 'example11');\n $this->assertEquals($data['field2'], 'example12');\n $this->assertEquals($data['field3'], 'example13');\n\n }", "title": "" }, { "docid": "4453cb6b63e0b6e6af4c39cee4369369", "score": "0.5034557", "text": "public static function import_xml() {\n\t\tadd_filter( 'frm_default_templates_files', 'FrmUnitTest::install_data' );\n\t\tFrmXMLController::add_default_templates();\n\n\t\t$form = FrmForm::getOne( 'contact-db12' );\n\t\tself::assertEquals( $form->form_key, 'contact-db12' );\n\t}", "title": "" }, { "docid": "0d47f5ca5515428ad8badd74ff6e85a6", "score": "0.5023701", "text": "function validateXML($rootNode, DOMDocument $domDoc) {\n $dtd = new DOMImplementation;\n $docType = $dtd->createDocumentType($rootNode, null, '../common/properties.dtd');\n $xml = $dtd->createDocument(null, null, $docType);\n $xml->encoding = \"utf-8\";\n\n $oldNode = $domDoc->getElementsByTagName($rootNode)->item(0);\n $newNode = $xml->importNode($oldNode, true);\n $xml->appendChild($newNode);\n\n return $xml->validate();\n}", "title": "" }, { "docid": "c52775a8e19169494ef934a6715b0fcd", "score": "0.50163835", "text": "function validate_mods($path_to_schema, $path_to_mods) {\n static $schema_xml = null;\n if ($schema_xml == null) {\n $schema_xml = file_get_contents($path_to_schema);\n }\n $mods = new DOMDocument();\n $mods->load($path_to_mods);\n if (@$mods->schemaValidateSource($schema_xml)) {\n return true;\n }\n else {\n print \"MODS file $path_to_mods does not validate.\" . PHP_EOL;\n return false;\n }\n}", "title": "" }, { "docid": "e4c3f894a0a5ac3a71d35377b6f9b259", "score": "0.5003796", "text": "function validateData()\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "93c0825d17db7a19e23351e43d57a0e5", "score": "0.49927795", "text": "public function is_xml($content) {\n\t //Make sure libxml is available\n\t if( ! function_exists( 'libxml_use_internal_errors' ) ){\n\t return false;\n }\n\n\t\t$content = trim( $content );\n\t\tif( empty( $content ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif( stripos( $content, '<!DOCTYPE html>' ) !== false ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tlibxml_use_internal_errors( true );\n\t\tsimplexml_load_string( $content );\n\t\t$errors = libxml_get_errors();\n\t\tlibxml_clear_errors();\n\n\t\treturn empty( $errors );\n\t}", "title": "" }, { "docid": "3ea2be87bcdcf312318fac7b900eaa57", "score": "0.4975808", "text": "public static function validXML($xml) {\n\t\tif(simplexml_load_string($xml)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b0857e8f9b2c73d01d934a45ac3ae8d2", "score": "0.49675578", "text": "public function testBrokenLayoutXmlFile()\n {\n $validationStateMock = $this->createMock(\\Magento\\Framework\\Config\\ValidationStateInterface::class);\n $validationStateMock->method('isValidationRequired')->willReturn(true);\n $domConfig = new \\Magento\\Framework\\Config\\Dom(\n '<invalidElement name=\"some.name\"></invalidElement>',\n $validationStateMock\n );\n $result = $domConfig->validate($this->schemaFile, $errors);\n $this->assertFalse($result);\n $this->assertNotEmpty($errors);\n }", "title": "" }, { "docid": "c804127ff42bf43c03e7a24d89181f21", "score": "0.49452785", "text": "function checkEMASGSTVersion(){\n\t\t\t$tableStructure = $this->objPDO->getTableStructure(\"icso\");\n\t\t\tif(!empty($tableStructure) && in_array(\"taxcode\", $tableStructure['column'])){\n\t\t\t\t$this->isGST = true;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "89cacc1e478aa30912ea594ce4ae7ba8", "score": "0.49301988", "text": "protected function validate_html(){\n\t\tlibxml_use_internal_errors(true);\n\n\t\t$doc = new DOMDocument();\n\t\t@$doc::loadHTML( $this->value );\n\n\t\tif( $doc === true ) {\n\t\t\t$this->valid = true;\n\t\t} else{\n\t\t $errors = libxml_get_errors();\n\n\t\t foreach ( $errors as $error ) {\n\t\t\t\tif( $this->log )\n\t\t \tbrafton_log( array( 'message' => \"Invalid html string. PHP resolved this error: \" . display_xml_error( $error, $xml ) . \" Validate html called by {$this->trace[1]['class']} :: {$this->trace[1]['function']}\" ) );\n\t\t }\n\n\t\t libxml_clear_errors();\n\t\t}\n\t}", "title": "" }, { "docid": "5299af517ce4082b779d25fdd1daf8d4", "score": "0.49265248", "text": "abstract protected function validate();", "title": "" }, { "docid": "5299af517ce4082b779d25fdd1daf8d4", "score": "0.49265248", "text": "abstract protected function validate();", "title": "" }, { "docid": "5299af517ce4082b779d25fdd1daf8d4", "score": "0.49265248", "text": "abstract protected function validate();", "title": "" }, { "docid": "5299af517ce4082b779d25fdd1daf8d4", "score": "0.49265248", "text": "abstract protected function validate();", "title": "" }, { "docid": "b61c4d7523fe472b2542f16437766842", "score": "0.49226436", "text": "public function validate()\n\t{\n\t}", "title": "" }, { "docid": "b7db7692be7a9e83ac7c7600a34c10f2", "score": "0.4922132", "text": "function schematron_validate_mem_using_compiled_mem($xml_string,$validation_string) {\n $xslt=new Xslt();\n $xslt->setXmlString($xml_string);\n $xslt->setXslString($validation_string);\n if($xslt->transform()) {\n $ret=$xslt->getOutput();\n return $ret;\n } else {\n trigger_error(\"XSLT error running schematron\".$xslt->getError(),E_USER_WARNING);\n return false;\n }\n $xslt->destroy();\n }", "title": "" }, { "docid": "ebf376117b18d209d924ff034ff125a8", "score": "0.49216324", "text": "protected function validate() {}", "title": "" }, { "docid": "ebf376117b18d209d924ff034ff125a8", "score": "0.49216324", "text": "protected function validate() {}", "title": "" }, { "docid": "1b0cca78dfa64ea26196890a068a3719", "score": "0.49071467", "text": "function testWellformedOK() {\n $file = realpath(dirname(__FILE__).'/../res/xmlfile.xml');\n $this->assertIdentical(binarypool_validate_xml::validate($file), true);\n }", "title": "" }, { "docid": "0c5e4f8de6a4fc2990c18ef9fa445bef", "score": "0.48986855", "text": "public function isValid() { return count($this->nodes) > 0 && in_array('soap', get_loaded_extensions()); }", "title": "" }, { "docid": "2648d2b4fbd32976e4659e96df31aa5c", "score": "0.4886979", "text": "private function _validateDescriptionFile()\n {\n $description_schema =\n self::_getRemoteFileContent(self::$_data_files['description_schema']);\n\n if (false === $description_schema)\n throw new AppDf_ParseException(\n AppDf_ParseException::E_RFILE_ACCESS,\n array('subject' => self::$_data_files['description_schema']),\n 'Unable to access desctiption schema file'\n );\n\n $desc_xml = new DOMDocument();\n if (!@$desc_xml->load($this->_description_xml_file))\n throw new AppDf_ParseException(\n AppDf_ParseException::E_DESCRIPTION_INVALID_XML,\n array('subject' => $this->_description_xml_file),\n 'Description file is invalid'\n );\n\n $old_status = libxml_use_internal_errors(TRUE);\n $validation_status = @$desc_xml->schemaValidateSource($description_schema);\n \n if (!$validation_status) {\n foreach (libxml_get_errors() as $error) {\n $this->_errors[] = array(\n 'subject' => $this->_description_xml_file,\n 'message' => \"$error->message on line $error->line\",\n 'exception_code' => AppDf_ParseException::E_DESCRIPTION_INVALID_XML,\n );\n }\n }\n libxml_clear_errors();\n libxml_use_internal_errors($old_status);\n return $validation_status;\n }", "title": "" }, { "docid": "4fc605c2b5a31f26fd5177634c1aac17", "score": "0.48817423", "text": "public abstract function validate();", "title": "" }, { "docid": "63b8d6b61eeaa843d3f3841b4ab8c08a", "score": "0.48764485", "text": "public function validates();", "title": "" }, { "docid": "77a658d5a56cc673ea7ec542be8bbfa3", "score": "0.48559132", "text": "public static function validateXmlId()\n\t{\n\t\treturn array(\n\t\t\tnew ORM\\Fields\\Validators\\LengthValidator(null, 255),\n\t\t);\n\t}", "title": "" }, { "docid": "4f2918787fbe9d3bc2665461cda2489e", "score": "0.48532537", "text": "function validate_XDSDocumentEntryUniqueId($dom,$connessione)\n{\n// $fp_uniqueIdQuery = fopen(\"tmp/DocumentEntryUniqueIdQuery\",\"w+\");\n\n\t$ebxml_value = array();\n\n##### RADICE DEL DOCUMENTO ebXML\n\t$root_ebXML = $dom->document_element();\n\t\n\t##### ARRAY DEI NODI ExtrinsicObject\n\t$dom_ebXML_ExtrinsicObject_node_array=$root_ebXML->get_elements_by_tagname(\"ExtrinsicObject\");\n\n\t#### CICLO SU OGNI ExtrinsicObject ####\n\t$isEmpty = false;\n\t$failure = \"\";\n\tfor($index=0;$index<(count($dom_ebXML_ExtrinsicObject_node_array));$index++)\n\t{\n\t##### NODO ExtrinsicObject RELATIVO AL DOCUMENTO NUMERO $index\n\t$ExtrinsicObject_node = $dom_ebXML_ExtrinsicObject_node_array[$index];\n\t\n\t#### ARRAY DEI FIGLI DEL NODO ExtrinsicObject ##############\t\n\t$ExtrinsicObject_child_nodes = $ExtrinsicObject_node->child_nodes();\n\t#################################################################\n\n################# PROCESSO TUTTI I NODI FIGLI DI ExtrinsicObject\n\tfor($k=0;$k<count($ExtrinsicObject_child_nodes);$k++)\n\t{\n\t\t#### SINGOLO NODO FIGLIO DI ExtrinsicObject\n\t\t$ExtrinsicObject_child_node=$ExtrinsicObject_child_nodes[$k];\n\t\t#### NOME DEL NODO\n\t\t$ExtrinsicObject_child_node_tagname = $ExtrinsicObject_child_node->node_name();\n\n\t\tif($ExtrinsicObject_child_node_tagname=='ExternalIdentifier')\n\t\t{\n\t\t\t$externalidentifier_node = $ExtrinsicObject_child_node;\n\t\t\t$value_value= avoidHtmlEntitiesInterpretation($externalidentifier_node->get_attribute('value'));\n\t\t\t\n\t\t\t#### NODI FIGLI DI EXTERNALIDENTIFIER\n\t\t\t$externalidentifier_child_nodes = $externalidentifier_node->child_nodes();\n\t\t//print_r($name_node);\n\t\t\tfor($q = 0;$q < count($externalidentifier_child_nodes);$q++)\n\t\t\t{\n\t\t\t\t$externalidentifier_child_node = $externalidentifier_child_nodes[$q];\n\t\t\t\t$externalidentifier_child_node_tagname = $externalidentifier_child_node->node_name();\n\t\t\t\tif($externalidentifier_child_node_tagname=='Name')\n\t\t\t\t{\n\t\t\t\t\t$name_node=$externalidentifier_child_node;\n\n\t\t\t\t\t$LocalizedString_nodes = $name_node->child_nodes();\n\t\t//print_r($LocalizedString_nodes);\n\t\t\tfor($p = 0;$p < count($LocalizedString_nodes);$p++)\n\t\t\t{\n\t\t\t\t$LocalizedString_node = $LocalizedString_nodes[$p];//->node_name();\n\t\t\t\t$LocalizedString_node_tagname = $LocalizedString_node->node_name();\n\n\t\t\t\tif($LocalizedString_node_tagname == 'LocalizedString')\n\t\t\t\t{\n\t\t\t\t\t$LocalizedString_value =$LocalizedString_node->get_attribute('value');\n\t\t\t\t\tif(strpos(strtolower(trim($LocalizedString_value)),strtolower('DocumentEntry.uniqueId')))\n\t\t\t\t\t{\n\t\t\t\t\t\t$ebxml_value[$index] = $value_value;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}//END OF if($ExtrinsicObject_child_node_tagname=='ExternalIdentifier')\n\n\t\n\t}\n\n\n\t//QUERY AL DB\n \t$query = \"SELECT XDSDOCUMENTENTRY_UNIQUEID FROM DOCUMENTS WHERE XDSDOCUMENTENTRY_UNIQUEID = '\".$ebxml_value[$index].\"'\";\n \t\n\t### EFFETTUO LA QUERY ED OTTENGO IL RISULTATO\n\t$res = query_select2($query,$connessione); //array bidimensionale\n\t \n\t//Qui dovrei verificare che l'hash sia differente ma dato che non salvo l'hash non posso verificarlo\n \t//$isEmptyUniqueId = ((empty($res)) || $isEmpty);\n\t$isEmptyUniqueId = true;\n\n\t\tif(!$isEmptyUniqueId){###---> uniqueId già presente --> eccezione\n\t\t\t$errorcode[]=\"XDSNonIdenticalHash\";\n\t\t\t$error_message[] = \"ExternalIdentifier XDSDocumentEntry.uniqueId '\".$ebxml_value[$index].\"' (urn:uuid:2e82c1f6-a085-4c72-9da3-8640a32e42ab) already exists in registry\";\n\t\t\t$uniqueId_response = makeSoapedFailureResponse($error_message,$errorcode);\n\t\t\twriteTimeFile($_SESSION['idfile'].\"--Repository: uniqueId_failure_response\");\n\t\t\t\n\t\t\t$file_input=$_SESSION['idfile'].\"-uniqueId_failure_response-\".$_SESSION['idfile'];\n\t\t\twriteTmpFiles($uniqueId_response,$file_input);\n\n\t\t\tSendResponse($uniqueId_response);\n\t\t\texit;\n\t\t}\n\t}//END OF for($index=0;$index<(count($dom_ebXML_ExtrinsicObject_node_array));$index++)\n \t$ret = array($isEmptyUniqueId,$ebxml_value);\n\treturn $ret;\n\n \n}", "title": "" }, { "docid": "57cf2f19bc91e72ed153a6c7091410e3", "score": "0.48523962", "text": "public function testValidateXML($input, $expected)\n {\n // WHEN\n $actual = $this->isXML($input);\n // THEN\n $this->assertEquals($expected, $actual);\n }", "title": "" }, { "docid": "ce9da7f81411ab771666951c56cca3a1", "score": "0.48190406", "text": "function checkAndUpgradeSchema() {\n if ($versions = $this->getVersions()) {\n foreach ($versions as $version) {\n if ($version->label === 'schema') {\n $basedate = $newdate = (int) $version->value;\n $upgrade_sql_files = array();\n $schema_dir = dirname(__FILE__) . '/schemas/postgres/';\n $client = $this->client;\n\n foreach ([\n // List upgrades, add yours to the end\n 2016102601,\n 2016110301,\n 2017032001,\n 2019060501,\n 2019121401,\n 2020042101,\n ] as $date) {\n if ($basedate < $date) {\n if ($sql = @file_get_contents($schema_dir . $date . '.sql')) {\n\n error_log(\"Applying schema updates from {$schema_dir}{$date}.sql\");\n\n $statements = explode(\";\\n\", $sql); // Explode statements; only mysql can support multiple statements per line, and then only badly.\n foreach ($statements as $sql) {\n $sql = trim($sql);\n if (!empty($sql)) {\n try {\n $statement = $client->prepare($sql);\n $statement->execute();\n } catch (\\Exception $e) {\n error_log($e->getMessage());\n }\n }\n }\n }\n $newdate = $date;\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "267d3a34b890630ebad9520cf258243b", "score": "0.48171005", "text": "public function validate() {\n $this->parse_module_info($this->_data);\n }", "title": "" }, { "docid": "4883d8e9383cc688d6ee3738eba7d445", "score": "0.47964856", "text": "abstract protected function jaxonCheck();", "title": "" }, { "docid": "1bbb0c68886cb4a0704cb0a2b7debb6c", "score": "0.479217", "text": "abstract function validate();", "title": "" }, { "docid": "50b2920fc7c8a1f88a723d1373205787", "score": "0.47909966", "text": "public function validate($input) {\r\n $res = parent::validate($input);\r\n \r\n if ($res) {\r\n // when array given, we extract only last input from it\r\n // FIXME support array as input or not? currently only the last one\r\n if (is_array($input)) {\r\n $input = current(array_reverse($input));\r\n }\r\n\r\n // allowed types checking\r\n if (is_file($input) || ($input instanceof SplFileInfo)) {\r\n Utils::log(sprintf(\"Reading XML from file of '%s'\", $input));\r\n $xml = simplexml_load_file($input);\r\n } elseif ($input instanceof SimpleXMLElement) {\r\n // XML already loaded\r\n $xml = $input;\r\n } else {\r\n Utils::log(\"Reading XML from string...\");\r\n $xml = @simplexml_load_string($input);\r\n }\r\n\r\n // XML has not been loaded\r\n if (!$xml) {\r\n Utils::log(\"Invalid input format. XML is expected.\");\r\n throw new \\Nette\\IOException(\"Invalid input format. XML is expected.\");\r\n }\r\n \r\n return $xml;\r\n }\r\n \r\n return $res;\r\n }", "title": "" }, { "docid": "4afb2c4cbe5afdf43f527e97ca72318c", "score": "0.47850287", "text": "protected function checkSchemaLanguages() {\n // Solr 3.6 doesn't provide the required REST API.\n }", "title": "" }, { "docid": "248d58c7b281df6994f2b488986de704", "score": "0.47841266", "text": "public static function validateXmlId()\n\t{\n\t\treturn array(\n\t\t\tnew Main\\Entity\\Validator\\Length(null, 45)\n\t\t);\n\t}", "title": "" }, { "docid": "8d063cdad5d94d0d494c8c91d686b20b", "score": "0.47839665", "text": "public function hasSchemaForSubjectAndVersion(string $subject, int $version): bool;", "title": "" }, { "docid": "42ac446690af11c4320455e6aaf5e896", "score": "0.47829622", "text": "public function ensureSchemaVersion()\n {\n $sql = \"SHOW TABLES LIKE 'mico_schema_version'\";\n $rows = $this->db->query($sql)->fetchAll();\n if (count($rows) == 0) {\n $this->createSchemaVersionTable();\n }\n $currentVer = $this->getCurrentSchemaVersion();\n\n return $currentVer;\n }", "title": "" }, { "docid": "3673387fe8dadb7afb565597d2ef6fcf", "score": "0.47807094", "text": "public static function HandleXmlError($errno, $errstr, $errfile, $errline)\n {\n if ($errno == E_WARNING && substr_count($errstr, 'DOMDocument::loadXML()') > 0) {\n throw new DOMException($errstr);\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "d51d24a1b4b806ae7a82ba68d8c9d501", "score": "0.47784236", "text": "protected function _validate()\n {\n }", "title": "" }, { "docid": "cc7ac49bd30485d32c03fb4d8d82c4be", "score": "0.47734627", "text": "abstract public function validateNode(array &$form);", "title": "" }, { "docid": "89fbb2333ed4c177ec93da27ecd9f966", "score": "0.47681543", "text": "public function get_dtd()\n {\n\n }", "title": "" }, { "docid": "7d9d16956fcf102ec9db85adedebbe2b", "score": "0.4762857", "text": "public function validate()\n {\n parent::validate();\n }", "title": "" }, { "docid": "fb49792d9efc2cc9141e9178f48710b4", "score": "0.47588024", "text": "public function testDoesThrowExceptionForMissingVersion()\n {\n $document = $this->validDocument;\n $document = str_replace('VERSION','vers',$document);\n $this->parser->parseHeader($document);\n }", "title": "" }, { "docid": "7ce0f6d48a85ac2f9c8f8c684cbecbfa", "score": "0.47571504", "text": "private function schemaValidation($xsd, $IO, $xml = null, $throwException = true) {\n if ($xml === null) {\n $xml = $IO ? $this->request : $this->response;\n }\n\n $defaultUseErrors = libxml_use_internal_errors(true);\n\n if (!@$xml->schemaValidate($xsd)) {\n //throw an xml error exception\n $errors = libxml_get_errors();\n if ($throwException === false) {\n var_dump($errors);\n die();\n }\n\n if ($IO) { // Input\n $this->getException(400, 'The given XML is not valid. Please consult the XSD : ' . $xsd);\n } else { // Output\n $this->getException(500, print_r($errors, true) . \"\\n\\nOrginal failed XML =\" . $xml->saveXML());\n }\n }\n\n libxml_use_internal_errors($defaultUseErrors);\n }", "title": "" }, { "docid": "8946e2f809cfef8e41471d1dd9ddd75c", "score": "0.47528964", "text": "public function validate( $data = FALSE )\n {\n if(!isset($data['new_version']))\n {\n throw new SmartModelException('data var \"new_version\" is required'); \n } \n if(!is_string($data['new_version']))\n {\n throw new SmartModelException('data var \"new_version\" isnt from type string'); \n } \n \n return TRUE;\n }", "title": "" }, { "docid": "2b6ad68e55eb6b290d496d5daa8319e4", "score": "0.47507676", "text": "abstract protected function _checkValidity();", "title": "" }, { "docid": "e8dac563d7afc00e18b773b5940d3787", "score": "0.47463962", "text": "public static function getSchemaVersion($xml)\n {\n $doiXML = new \\DOMDocument();\n $doiXML->loadXML($xml);\n\n $resources = $doiXML->getElementsByTagName('resource');\n $theSchema = 'unknown';\n if ($resources->length > 0) {\n if (isset($resources->item(0)->attributes->item(0)->name)) {\n $theSchema = substr($resources->item(0)->attributes->item(0)->nodeValue,\n strpos($resources->item(0)->attributes->item(0)->nodeValue,\n \"/meta/kernel\") + 5);\n }\n }\n\n return $theSchema;\n }", "title": "" }, { "docid": "137d5297c64ad7d9e1f19dba5f8ab739", "score": "0.47392622", "text": "public function hasSchema();", "title": "" }, { "docid": "fc5cb7f73fb0fd82856616bd9e7eb6c5", "score": "0.4726985", "text": "public static function validateXmlId()\n\t{\n\t\treturn array(\n\t\t\tnew Entity\\Validator\\Unique(),\n\t\t\tnew Entity\\Validator\\Length(null, 200),\n\t\t);\n\t}", "title": "" }, { "docid": "5ad95ea0c6a49c44ea8bf84b0ee51a80", "score": "0.4723152", "text": "function checkDBSchema(&$db) {\n\t\tif ( !$db->indexUnique( 'image', 'img_name' ) && !$db->indexExists('image','PRIMARY') ) {\n\t\t\twfDebugDieBacktrace( 'Database schema not up to date, please run maintenance/archives/patch-image_name_unique.sql' );\n\t\t}\n\t\t\n\t\t#new fields must exist\n\t\tif ( !$db->fieldExists( 'image', 'img_media_type' ) \n\t\t || !$db->fieldExists( 'image', 'img_metadata' )\n\t\t || !$db->fieldExists( 'image', 'img_width' ) ) {\n\t\t \n\t\t\twfDebugDieBacktrace( 'Database schema not up to date, please run maintenance/update.php' );\n\t\t}\n\t}", "title": "" }, { "docid": "83799224929bf5f8766b7dd9b9c7ec71", "score": "0.47211364", "text": "function schematron_validate_mem_using_mem($xml_string,$validation_string) {\n $name=md5($validation_string); \n if(!isset($this->compiled[$name])) {\n $this->compile_schematron_from_mem($validation_string); \n }\n $xslt=new Xslt();\n $xslt->setXmlString($xml_string);\n $xslt->setXslString($this->compiled[$name]);\n if($xslt->transform()) {\n $ret=$xslt->getOutput();\n return $ret;\n } else {\n trigger_error(\"XSLT error running schematron\".$xslt->getError(),E_USER_WARNING);\n return false;\n }\n $xslt->destroy();\n }", "title": "" }, { "docid": "421090da106554eca970eae32e47274c", "score": "0.47185564", "text": "public function isValidNode();", "title": "" }, { "docid": "8196ef4d56840dfe0b6c81d6a5529aab", "score": "0.47147673", "text": "public function validate() {\n\t\ter(\"please install validation for \" . get_class($this) . \"\\n\");\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3a9bb16ee9cccb2d3ac5c591e85184c7", "score": "0.47103444", "text": "function validate_XDSSubmissionSetSourceId($dom,$connessione)\n{\n \t//$ebxml_value = searchForIds($dom,'RegistryPackage','uniqueId');\n \n\t$ebxml_value = '';\n\n##### RADICE DEL DOCUMENTO ebXML\n\t$root_ebXML = $dom->document_element();\n\t\n\t##### ARRAY DEI NODI REGISTRYPACKAGE\n\t$dom_ebXML_RegistryPackage_node_array=$root_ebXML->get_elements_by_tagname(\"RegistryPackage\");\n\n\t#### CICLO SU OGNI RegistryPackage ####\n\tfor($index=0;$index<(count($dom_ebXML_RegistryPackage_node_array));$index++)\n\t{\n\t##### SINGOLO NODO REGISTRYPACKAGE\n\t$RegistryPackage_node = $dom_ebXML_RegistryPackage_node_array[$index];\n\t\n\t#### ARRAY DEI FIGLI DEL NODO REGISTRYPACKAGE ##############\t\n\t$RegistryPackage_child_nodes = $RegistryPackage_node->child_nodes();\n\t#################################################################\n\n################# PROCESSO TUTTI I NODI FIGLI DI REGISTRYPACKAGE\n\tfor($k=0;$k<count($RegistryPackage_child_nodes);$k++)\n\t{\n\t\t#### SINGOLO NODO FIGLIO DI REGISTRYPACKAGE\n\t\t$RegistryPackage_child_node=$RegistryPackage_child_nodes[$k];\n\t\t#### NOME DEL NODO\n\t\t$RegistryPackage_child_node_tagname = $RegistryPackage_child_node->node_name();\n\n\t\tif($RegistryPackage_child_node_tagname=='ExternalIdentifier')\n\t\t{\n\t\t\t$externalidentifier_node = $RegistryPackage_child_node;\n\t\t\t$value_value= $externalidentifier_node->get_attribute('value');\n\t\t\t\n\t\t\t#### NODI FIGLI DI EXTERNALIDENTIFIER\n\t\t\t$externalidentifier_child_nodes = $externalidentifier_node->child_nodes();\n\t\t//print_r($name_node);\n\t\t\tfor($q = 0;$q < count($externalidentifier_child_nodes);$q++)\n\t\t\t{\n\t\t\t\t$externalidentifier_child_node = $externalidentifier_child_nodes[$q];\n\t\t\t\t$externalidentifier_child_node_tagname = $externalidentifier_child_node->node_name();\n\t\t\t\tif($externalidentifier_child_node_tagname=='Name')\n\t\t\t\t{\n\t\t\t\t\t$name_node=$externalidentifier_child_node;\n\n\t\t\t\t\t$LocalizedString_nodes = $name_node->child_nodes();\n\t\t//print_r($LocalizedString_nodes);\n\t\t\tfor($p = 0;$p < count($LocalizedString_nodes);$p++)\n\t\t\t{\n\t\t\t\t$LocalizedString_node = $LocalizedString_nodes[$p];//->node_name();\n\t\t\t\t$LocalizedString_node_tagname = $LocalizedString_node->node_name();\n\n\t\t\t\tif($LocalizedString_node_tagname == 'LocalizedString')\n\t\t\t\t{\n\t\t\t\t\t$LocalizedString_value =$LocalizedString_node->get_attribute('value');\n\t\t\t\t\tif(strpos(strtolower(trim($LocalizedString_value)),strtolower('SubmissionSet.sourceId')))\n\t\t\t\t\t{\n\t\t\t\t\t\t$ebxml_value = $value_value;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}\n\n\t}//END OF for($index=0;$index<(count($dom_ebXML_RegistryPackage_node_array));$index++)\n\n \t//QUERY AL DB\n \t//$query = \"SELECT * FROM SUBMISSIONS WHERE XDSSubmissionSet_uniqueId = '$ebxml_value'\";\n\t$query = \"SELECT * FROM KNOWN_SOUCES_IDS WHERE XDSSUBMISSIONSET_SOURCEID = '$ebxml_value'\";\n\t \n\t#### ESEGUO LA QUERY\n \t$res = query_select2($query,$connessione); //array bidimensionale\n\n \t$isEmptySource = (empty($res));\n\n\t\tif($isEmptySource){\n\t\t$errorcode[]=\"XDSRepositoryMetadataError\";\n\t\t$error_message[] = \"XDSSubmissionSet.SourceId '\".$ebxml_value.\"' has not permission for submissions to this Repository\";\n\t\t$SourceId_response = makeSoapedFailureResponse($error_message,$errorcode);\n\t\twriteTimeFile($_SESSION['idfile'].\"--Repository: sourceId_failure_response\");\n\t\t\t\n\t\t$file_input=$_SESSION['idfile'].\"-sourceId_failure_response-\".$_SESSION['idfile'];\n\t\twriteTmpFiles($SourceId_response,$file_input);\n\n\t\tSendResponse($SourceId_response);\n\t\texit;\n\t\n\t\t}\n\t\telse {\n \t\t\treturn $isEmptySource;\n\t\t}\n}", "title": "" }, { "docid": "7c243dd4d7a75dd1a98f47671c3d92a6", "score": "0.469335", "text": "protected function _checkLibxmlVersion()\n {\n if (!extension_loaded('xml')) {\n return false;\n }\n if (LIBXML_VERSION < 20700) {\n return 'The libxml version is too old. libxml 2.7 or later is required.';\n }\n return true;\n }", "title": "" }, { "docid": "73096077fa9d788f7d2fce0a39fbb7b0", "score": "0.46907642", "text": "public static function item_get_plugin_schema() {\n $schema = <<<EOS\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<xs:schema xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" elementFormDefault=\"qualified\">\n <xs:element name=\"surveyprofield_numeric\">\n <xs:complexType>\n <xs:sequence>\n <xs:element type=\"xs:string\" name=\"content\"/>\n <xs:element name=\"embedded\" minOccurs=\"0\" maxOccurs=\"unbounded\">\n <xs:complexType>\n <xs:sequence>\n <xs:element type=\"xs:string\" name=\"filename\"/>\n <xs:element type=\"xs:base64Binary\" name=\"filecontent\"/>\n </xs:sequence>\n </xs:complexType>\n </xs:element>\n <xs:element type=\"xs:int\" name=\"contentformat\"/>\n\n <xs:element type=\"xs:string\" name=\"customnumber\" minOccurs=\"0\"/>\n <xs:element type=\"xs:int\" name=\"position\"/>\n <xs:element type=\"xs:string\" name=\"extranote\" minOccurs=\"0\"/>\n <xs:element type=\"xs:int\" name=\"required\"/>\n <xs:element type=\"xs:int\" name=\"hideinstructions\"/>\n <xs:element type=\"xs:string\" name=\"variable\"/>\n <xs:element type=\"xs:int\" name=\"indent\"/>\n\n <xs:element type=\"xs:decimal\" name=\"defaultvalue\" minOccurs=\"0\"/>\n <xs:element type=\"xs:int\" name=\"signed\"/>\n <xs:element type=\"xs:decimal\" name=\"lowerbound\" minOccurs=\"0\"/>\n <xs:element type=\"xs:decimal\" name=\"upperbound\" minOccurs=\"0\"/>\n <xs:element type=\"xs:int\" name=\"decimals\"/>\n </xs:sequence>\n </xs:complexType>\n </xs:element>\n</xs:schema>\nEOS;\n\n return $schema;\n }", "title": "" }, { "docid": "9221770cc48daf8eff18b42c5de294d5", "score": "0.46868575", "text": "function validate_layer(){\n\t\t$schema_validated = false;\n\t\t$attr_table_ids = array();\n\t\tif(!$this->get_attr_table_ids($this->submission_id, $this->geom_type, $attr_table_ids))\n\t\t\treturn false;\n\t\t\n\t\t// now loop through all the attribute tables,\n\t\t// get a schema for each one and validate the\n\t\t// layer.\n\t\t$n_tables = count($attr_table_ids);\t\t\n\t\tfor($k = 0; $k < $n_tables; $k++){\n\t\t\t$schema_match = true;\n\t\t\t$this->attr_table_id = $attr_table_ids[$k];\n\t\t\t// each call to get_attr_table_schema\n\t\t\t// stores the schema and the table name\n\t\t\t// the the member variables\n\t\t\t// $this->attr_table_name\n\t\t\t// and $this->attr_table_schema\n\t\t\tif(!$this->get_attribute_table_schema($attr_table_ids[$k])){\n\t\t\t\techo \"could not query attribute table info \";\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t// another subtle bug: [09.06.2007]\n\t\t\t// when the layer has only one feature, calling\n\t\t\t// GetNextFeature returns null. it seems that\n\t\t\t// when the layer is opened, the pointer automatically\n\t\t\t// points to the first feature, so calling GetNext\n\t\t\t// would result in a null feature if there is only\n\t\t\t// one feature in the layer.\n\t\t\tOGR_L_ResetReading($this->ogr_src_layer);\n\t\t\t// first the number of attributes should match\n\t\t\t// between the layer's attributes and the\n\t\t\t// attribute table schema\n\t\t\t$src_feature = OGR_L_GetNextFeature($this->ogr_src_layer);\n\t\t\t$n_src_attributes = OGR_F_GetFieldCount($src_feature);\n\t\t\t$src_feature_defn = OGR_L_GetLayerDefn($this->ogr_src_layer);\n\t\t\t\n\t\t\t// note: this was a subtle bug.\n\t\t\t// we should NOT return false if the\n\t\t\t// number of attributes doesnt match.\n\t\t\t// this means that the current schema\n\t\t\t// does not match, however another\n\t\t\t// schema at index (k+i) may match, so\n\t\t\t// we have to CONTINUE searching.\n\t\t\tif($n_src_attributes != count($this->attr_table_schema))\n\t\t\t\tcontinue; //return false;\n\t\t\t\t\t\t\n\t\t\t// now we know that the number of attributes\n\t\t\t// matches. verify the names of each of the attributes\n\t\t\t// attr_table_schema array acts as a hash table in\n\t\t\t// which the key to the table is the name of the\n\t\t\t// attribute and the value is the type. hence, if\n\t\t\t// we search the hash table for an attribute name\n\t\t\t// and none is found, then the shapefile does not\n\t\t\t// match the attribute table schema\n\t\t\tfor($i = 0; $i < $n_src_attributes; $i++){\n\t\t\t\t$field_defn = OGR_FD_GetFieldDefn($src_feature_defn, $i);\n\t\t\t\t$f_name = strtolower(OGR_Fld_GetNameRef($field_defn));\n\t\t\t\tif(!array_key_exists($f_name, $this->attr_table_schema)){\n\t\t\t\t\t$schema_match = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// if a matching schema has been found.\n\t\t\t// we can successfully break out of the outer\n\t\t\t// loop. the local member variables $attr_table_id,\n\t\t\t// $attr_table_name and $attr_table_schema should\n\t\t\t// be set by the time we reach this point.\n\t\t\tif($schema_match){\n\t\t\t\t$schema_validated = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\treturn $schema_validated;\n\t}", "title": "" }, { "docid": "5f29b25ffc7aa42719a784b312884a8c", "score": "0.46828762", "text": "function checkSchemeVersion($version) {\n\ttry {\n\t\t$db = new PDO('mysql:host=' . Config::get('mysql/host') . ';dbname=' . Config::get('mysql/db'),Config::get('mysql/username'), Config::get('mysql/password'));\n\t\t$sql = \"SELECT * from schemeversion\";\n\t\t$query = $db->prepare($sql);\n\t\t$query->execute();\n\t\t$result = $query->fetchAll();\n\n\t} catch (PDOException $e) {\n\t\techo $e->getMessage();\n\t}\n}", "title": "" }, { "docid": "d794a5a38423efc73d208bf5c12e2b17", "score": "0.46805704", "text": "public function validate() {\n return TRUE;\n }", "title": "" }, { "docid": "959c4207ae0c565421682b365059d070", "score": "0.4679447", "text": "public static function validateXmlId()\n\t{\n\t\treturn array(\n\t\t\tnew Entity\\Validator\\Length(null, 255),\n\t\t);\n\t}", "title": "" } ]
fedf19b4822340252df863b0bb822f08
/// Strip inline width and height attributes from WP generated images
[ { "docid": "71bbd95edb912af1f6258139ff65eaf8", "score": "0.7102523", "text": "function remove_thumbnail_dimensions( $html ) { \n\t$html = preg_replace( '/(width|height)=\\\"\\d*\\\"\\s/', \"\", $html ); \n\treturn $html; \n\t}", "title": "" } ]
[ { "docid": "618841abd65e21a2b852bf45efb731d0", "score": "0.77823955", "text": "function mu_remove_size_image_attributes( $html ) {\n return preg_replace( '/(width|height)=\"\\d*\"\\s/', \"\", $html );\n}", "title": "" }, { "docid": "b239dbca2d61a809f29ff1d1648c2938", "score": "0.7714889", "text": "function remove_image_size_attributes($html)\n{\n\treturn preg_replace('/(width|height)=\"\\d*\"/', '', $html);\n}", "title": "" }, { "docid": "5ba303b1afba0af8571fb35071393315", "score": "0.7449515", "text": "function ipress_remove_thumbnail_dimensions( $html ) {\n\n // fiterable thumbnail dimensions\n $thumb_dimensions = (bool)apply_filters( 'ipress_remove_thumbnail_dimensions', true ); \n\n // return formatted markup\n return ( $thumb_dimensions ) ? preg_replace( '/(width|height)=\\\"\\d*\\\"\\s/', '', $html ) : $html;\n}", "title": "" }, { "docid": "0d95c861ef0f4d1fc8e67524daacae3c", "score": "0.7259037", "text": "function remove_thumbnail_dimensions( $html )\r\n{\r\n $html = preg_replace('/(width|height)=\\\"\\d*\\\"\\s/', \"\", $html);\r\n return $html;\r\n}", "title": "" }, { "docid": "2281fda0bc86bab4ab4cda5bae2156cc", "score": "0.72095", "text": "function remove_thumbnail_dimensions( $html )\n{\n $html = preg_replace('/(width|height)=\\\"\\d*\\\"\\s/', \"\", $html);\n return $html;\n}", "title": "" }, { "docid": "2281fda0bc86bab4ab4cda5bae2156cc", "score": "0.72095", "text": "function remove_thumbnail_dimensions( $html )\n{\n $html = preg_replace('/(width|height)=\\\"\\d*\\\"\\s/', \"\", $html);\n return $html;\n}", "title": "" }, { "docid": "2281fda0bc86bab4ab4cda5bae2156cc", "score": "0.72095", "text": "function remove_thumbnail_dimensions( $html )\n{\n $html = preg_replace('/(width|height)=\\\"\\d*\\\"\\s/', \"\", $html);\n return $html;\n}", "title": "" }, { "docid": "2281fda0bc86bab4ab4cda5bae2156cc", "score": "0.72095", "text": "function remove_thumbnail_dimensions( $html )\n{\n $html = preg_replace('/(width|height)=\\\"\\d*\\\"\\s/', \"\", $html);\n return $html;\n}", "title": "" }, { "docid": "ff637a48041f74e9af484f57b18cc2a3", "score": "0.7150025", "text": "function bml_remove_thumbnail_dimensions( $html ) {\n $html = preg_replace( '/(width|height)=\\\"\\d*\\\"\\s/', \"\", $html );\n return $html;\n }", "title": "" }, { "docid": "74126c1e9cc03929ba979b8f3f6986a8", "score": "0.7128508", "text": "function remove_thumbnail_dimensions($html) {\n $html = preg_replace('/(width|height)=\\\"\\d*\\\"\\s/', \"\", $html);\n return $html;\n}", "title": "" }, { "docid": "ed4722a48325db25ea0813bad29cd0e6", "score": "0.70986915", "text": "function remove_thumbnail_dimensions( $html ) {\n\t$html = preg_replace( '/(width|height)=\\\"\\d*\\\"\\s/', \"\", $html );\n\treturn $html;\n}", "title": "" }, { "docid": "a50f3bb6af6499b5b52df8ebf83a4675", "score": "0.7056131", "text": "function remove_thumbnail_dimensions( $html ) {\n\n\t$html = preg_replace( '/(width|height)=\\\"\\d*\\\"\\s/', \"\", $html );\n\treturn $html;\n\n}", "title": "" }, { "docid": "463fcbbf66d3bff34a1df8fa07ff0fe6", "score": "0.7029833", "text": "function clean_wp_width_height($string){\n\treturn preg_replace('/\\<(.*?)(width=\"(.*?)\")(.*?)(height=\"(.*?)\")(.*?)\\>/i', '<$1$4$7>',$string);\n}", "title": "" }, { "docid": "d895665aac2e7a9a9b988cf78a1477b8", "score": "0.6806363", "text": "function remove_width_attribute( $html ) {\n $html = preg_replace( '/(width|height)=\"\\d*\"\\s/', \"\", $html );\n return $html;\n}", "title": "" }, { "docid": "e461267dcbe2b8907795b86e126363b6", "score": "0.6620704", "text": "function public_styles() {\n\t// Featured Image Fix\n\techo \"<style>.post-thumbnail img[src$='.svg'] { width: 100%; height: auto; }</style>\";\n}", "title": "" }, { "docid": "55f5476818d6e81b611983079f37da34", "score": "0.65821475", "text": "function set_inline_image_size( $image ) {\n\t\t$image['width'] = 100;\n\t\t$image['height'] = 70;\n\t\treturn $image;\n\t}", "title": "" }, { "docid": "7aac71f3639cda9eb2a250417c575c27", "score": "0.6558042", "text": "function demowp_post_thumbnail_sizes_attr( $attr ) {\n\n\tif ( is_admin() ) {\n\t\treturn $attr;\n\t}\n\n\tif ( ! is_singular() ) {\n\t\t$attr['sizes'] = '(max-width: 34.9rem) calc(100vw - 2rem), (max-width: 53rem) calc(8 * (100vw / 12)), (min-width: 53rem) calc(6 * (100vw / 12)), 100vw';\n\t}\n\n\treturn $attr;\n}", "title": "" }, { "docid": "9c382cd011963a8f745bcc508c736255", "score": "0.6533177", "text": "function uciseventeen_cleanup_image_element($img_tag) {\n\t/**\n\t * need to get rid of WP's hard-coded width and height attributes FFS\n\t */\n\t$dom = new DOMDocument();\n\t$dom->formatOutput = true;\n\t$dom->loadHTML($img_tag);\n\n\ttry {\n\t\t$imgEle = $dom->getElementsByTagName( 'img' )->item( 0 );\n\t\t$imgEle->removeAttribute( 'width' );\n\t\t$imgEle->removeAttribute( 'height' );\n\t} catch(Exception $e) {}\n\n\t$html = $dom->saveHTML();\n\n\treturn $html;\n}", "title": "" }, { "docid": "970e9a8ae9badd6a0d5f91e69f3df13c", "score": "0.6505185", "text": "function cleanyeti_get_image_tag($html, $id, $title) {\n $imageSizes = wp_get_attachment_metadata($id);\n $placeholder = $imageSizes['file'];\n\n //keep img classes as set by wordpress\n $doc = new DOMDocument();\n @$doc->loadHTML($html);\n $tags = $doc->getElementsByTagName('img');\n foreach ($tags as $tag) {\n $class = $tag->getAttribute('class');\n $width = $tag->getAttribute('width');\n }\n\n // Responsive only if this is full size image \n // && larger than small image size (or no point)\n if (strstr($html, 'size-full') && $width>640) {\n return \"[interchange-image id=\\\"$id\\\" placeholder=\\\"$placeholder\\\" class=\\\"$class\\\"]\";\n } else {\n return $html;\n }\n}", "title": "" }, { "docid": "bb0c3f124e80ad2612a7c8a25577c068", "score": "0.6411582", "text": "function remove_medium_image_size() {\n remove_image_size('medium');\n}", "title": "" }, { "docid": "ce894fd0f5f8959c29e9184bfb7eeae2", "score": "0.6396639", "text": "function acf_get_image_sizes()\n{\n}", "title": "" }, { "docid": "c3f6ce58a1e688d43ad6de95c1e36892", "score": "0.63292766", "text": "function sheru_post_thumbnail_sizes_attr( $attr, $attachment, $size ) {\n if ( 'post-thumbnail' === $size ) {\n is_active_sidebar( 'sidebar-1' ) && $attr['sizes'] = '(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 60vw, (max-width: 1362px) 62vw, 840px';\n ! is_active_sidebar( 'sidebar-1' ) && $attr['sizes'] = '(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 88vw, 1200px';\n }\n return $attr;\n}", "title": "" }, { "docid": "78cc5877b054cb74e556b955fdec5589", "score": "0.62980574", "text": "function getImageThumbnail( $attr ) {\n\n ob_start();\n\n if( isset($attr['name']) ) { $veld = $attr['name']; } else { return \"Vul een veld attribute in!\"; }\n\n if( isset($attr['size']) ) { $size = $attr['size']; } else { $size = \"full\"; }\n\n ?>\n\n\n <?php if($attr['name'] != \"\" && $attr['size'] == \"full\") \n { \n \t$name = $attr['name'];\n \t\n \t$image = get_field($name); \n \techo $image['url']; \n\t} \n elseif($attr['name'] != \"\" && $attr['size'] != \"\") \n {\n \t$name = $attr['name'];\n \t$size = $attr['size'];\n\n \t$image = get_field($name);\n\n \techo $image['sizes'][$size];\n } ?>\n\n\t<?php return ob_get_clean();\n}", "title": "" }, { "docid": "544a18d173113d72acbabb06e6ef3b2f", "score": "0.6255096", "text": "function ipress_remove_default_image_sizes( $sizes ) {\n return (array)apply_filters( 'ipress_media_images_sizes_advanced', $sizes );\n}", "title": "" }, { "docid": "38392764dfe2390e5d74f272a3d762ba", "score": "0.62346476", "text": "function pw_show_image_sizes( $sizes ) {\n $sizes['pw-thumb'] = __( 'Custom Thumb', 'pippin' );\n $sizes['pw-large'] = __( 'Custom Large', 'pippin' );\n \n return $sizes;\n}", "title": "" }, { "docid": "6fe89591a61f47c5f19ce5b11a225563", "score": "0.6186602", "text": "function wpf_get_image_sizes( $formatted = true ) {\r\n global $_wp_additional_image_sizes;\r\n $image_sizes = array();\r\n $default_image_sizes = array( 'thumbnail', 'medium', 'large' );\r\n foreach ( $default_image_sizes as $size ) {\r\n $image_sizes[$size] = array(\r\n 'width' => intval( get_option( \"{$size}_size_w\" ) ),\r\n 'height' => intval( get_option( \"{$size}_size_h\" ) ),\r\n 'crop' => get_option( \"{$size}_crop\" ) ? get_option( \"{$size}_crop\" ) : false,\r\n );\r\n }\r\n if ( isset( $_wp_additional_image_sizes ) && count( $_wp_additional_image_sizes ) ) {\r\n $image_sizes = array_merge( $image_sizes, $_wp_additional_image_sizes );\r\n }\r\n\r\n if ( $formatted ) {\r\n $formatted_sizes = array();\r\n foreach ( $image_sizes as $size_id => $image_size ) {\r\n $formatted_sizes[$size_id] = \"{$size_id} ({$image_size['width']}x{$image_size['height']})\";\r\n if ( $image_size['crop'] ) {\r\n $formatted_sizes[$size_id] .= ' (cropped)';\r\n }\r\n }\r\n return $formatted_sizes;\r\n }\r\n\r\n return $image_sizes;\r\n}", "title": "" }, { "docid": "b1373af502c101efea8699a74ef741fe", "score": "0.61750054", "text": "function webtonio_image_sizes(){\n\n\tadd_image_size(\"custom-thumb\",160,160);\n\n}", "title": "" }, { "docid": "d6e4a1412d6a2f21029be6f471ace219", "score": "0.6160493", "text": "function live_wire_add_image_sizes() {\n\n\tadd_image_size( 'live-wire-thumbnail', 194, 120, true );\n\t\n}", "title": "" }, { "docid": "7a5f5b1e8e3dca47a979631d310d3d68", "score": "0.615508", "text": "function wp_image($image_id, $size = 'large', $args = []){\r\n return convert_wp_image_html_to_html5(wp_get_attachment_image($image_id, $size, '', $args));\r\n}", "title": "" }, { "docid": "323f72068a95f2257db4cb726f28edfe", "score": "0.61446697", "text": "function twentysixteen_post_thumbnail_sizes_attr( $attr, $attachment, $size ) {\n\tif ( 'post-thumbnail' === $size ) {\n\t\tis_active_sidebar( 'sidebar-1' ) && $attr['sizes'] = '(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 60vw, (max-width: 1362px) 62vw, 840px';\n\t\t! is_active_sidebar( 'sidebar-1' ) && $attr['sizes'] = '(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 88vw, 1200px';\n\t}\n\treturn $attr;\n}", "title": "" }, { "docid": "c379b968c8bf35dde0c277a780108e88", "score": "0.61437786", "text": "function twentyseventeen_header_image_tag( $html, $header, $attr ) {\n\tif ( isset( $attr['sizes'] ) ) {\n\t\t$html = str_replace( $attr['sizes'], '100vw', $html );\n\t}\n\treturn $html;\n}", "title": "" }, { "docid": "e321f4b0466af89f9e8bee62d21bfb88", "score": "0.6113615", "text": "function shutupasecond_custom_image_sizes_names( $sizes ) {\n /* Pinegrow generated Image Sizes Names Begin*/\n /* This code will be replaced by returning names of custom image sizes. */\n /* Pinegrow generated Image Sizes Names End */\n return $sizes;\n}", "title": "" }, { "docid": "f54bad5d49eee8ca216ed445e1c6a504", "score": "0.60786545", "text": "function resize_image($img, $width=1, $height=1) {\n $str = preg_replace('/width=\\\"([0-9]+?)\\\"/i', '', $img );\n $str = preg_replace('/height=\\\"([0-9]+?)\\\"/i', '', $str );\n $str = substr($str,0,-1) . sprintf(' height=\"%s\" width=\"%s\" />', $height, $width );\n return $str;\n}", "title": "" }, { "docid": "cbd3a2cbab1228399fd8d7634c677f5f", "score": "0.60774153", "text": "function display_custom_image_sizes( $sizes ) {\n global $_wp_additional_image_sizes;\n if ( empty($_wp_additional_image_sizes) )\n return $sizes;\n\n foreach ( $_wp_additional_image_sizes as $id => $data ) {\n if ( !isset($sizes[$id]) )\n $sizes[$id] = ucfirst( str_replace( '-', ' ', $id ) );\n }\n\n return $sizes;\n}", "title": "" }, { "docid": "e48ff42a6c575efd15c98195cf641941", "score": "0.6053989", "text": "function rt_post_thumbnail_sizes_attr( $attr, $attachment, $size ) {\n\tif ( is_archive() || is_search() || is_home() ) {\n\t\t$attr['sizes'] = '(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px';\n\t} else {\n\t\t$attr['sizes'] = '100vw';\n\t}\n\n\treturn $attr;\n}", "title": "" }, { "docid": "0d615b21e60d7ec8a65fae8e45d519e7", "score": "0.6037476", "text": "function post_thumbnail_sizes_attr( $attr, $attachment, $size ) {\n\tif ( is_archive() || is_search() || is_home() ) {\n\t\t$attr['sizes'] = '(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px';\n\t} else {\n\t\t$attr['sizes'] = '100vw';\n\t}\n\n\treturn $attr;\n}", "title": "" }, { "docid": "ccc36ecdbb3237df665e89b1a6a0b7cd", "score": "0.6025512", "text": "function harmonica_post_thumbnail_html( $html ) {\n\treturn preg_replace( '/(<img.*?)(\\/>)/i', '$1itemprop=\"image\" $2', $html );\n}", "title": "" }, { "docid": "eb83dc6136852f590307e9e6c08a6090", "score": "0.60205996", "text": "function pwps_gallery_css( $attr ) {\n\t return '';\n\t}", "title": "" }, { "docid": "9f351fb967af1271f64e67b2d5629abf", "score": "0.6006783", "text": "public function about_us_image_size(){\n return '555x457';\n }", "title": "" }, { "docid": "abd4ddbe7a5e5c1a28ee341c2c40a403", "score": "0.6003587", "text": "function namespace_add_image_sizes(){\n /* Soft proportional crops */\n add_image_size( 'xtra-large-hero', 1920 );\n add_image_size( 'large-hero', 1400 );\n add_image_size( 'medium-hero', 1024 );\n add_image_size( 'mobile-hero', 640 );\n}", "title": "" }, { "docid": "d7a9349dd9da1bbd106ab62b4e106bdc", "score": "0.60005087", "text": "function get_image_sizes() {\n\n\t\tglobal $_wp_additional_image_sizes;\n\n\t\tforeach ( get_intermediate_image_sizes() as $size ) {\n\n\t\t\t$sizes[ $size ] = array(\n\t\t\t\t'name' => '',\n\t\t\t\t'width' => '',\n\t\t\t\t'height' => '',\n\t\t\t\t'crop' => false\n\t\t\t);\n\n\t\t\t$sizes[ $size ]['name'] = $size;\n\n\t\t\tif ( isset( $_wp_additional_image_sizes[ $size ]['width'] ) ) {\n\t\t\t\t$sizes[ $size ]['width'] = intval( $_wp_additional_image_sizes[ $size ]['width'] );\n\t\t\t} else {\n\t\t\t\t$sizes[ $size ]['width'] = get_option( \"{$size}_size_w\" );\n\t\t\t}\n\n\t\t\tif ( isset( $_wp_additional_image_sizes[ $size ]['height'] ) ) {\n\t\t\t\t$sizes[ $size ]['height'] = intval( $_wp_additional_image_sizes[ $size ]['height'] );\n\t\t\t} else {\n\t\t\t\t$sizes[ $size ]['height'] = get_option( \"{$size}_size_h\" );\n\t\t\t}\n\n\t\t\tif ( isset( $_wp_additional_image_sizes[ $size ]['crop'] ) ) {\n\t\t\t\t$sizes[ $size ]['crop'] = intval( $_wp_additional_image_sizes[ $size ]['crop'] );\n\t\t\t} else {\n\t\t\t\t$sizes[ $size ]['crop'] = get_option( \"{$size}_crop\" );\n\t\t\t}\n\t\t}\n\n\t\treturn apply_filters( 'better-rebuild-thumbnails/intermediate-image-sizes-advanced', $sizes );\n\t}", "title": "" }, { "docid": "3d4132e2651877f23c0e89091ac46141", "score": "0.5993345", "text": "function kb_magic_img($img)\n{\n\tglobal $config, $block_size;\n\t// $img = stripslashes($img);\n\t$image_size = '300';\n\tif ($img)\n\t{\n\t\t// Also fix already tagged links\n\t\t// $img = preg_replace(\"/<img src=(.*?)(|border(.*?)|alt(.*?))>/ie\", \"'<br /><br /><div style=\"text-align: center;\"><img src='.stripslashes(\\\"\\\\1\\\").' width=\\\"'.makeImgWidth(trim(stripslashes(\\\"\\\\1\\\"))).'\\\" ></div><br />'\", $img);\n\t\t$img = preg_replace(\"/<img src=(.*?)>/ie\", \"(substr_count(\\\"\\\\1\\\", \\\"smiles\\\") > 0) ? '<img src='.stripslashes(\\\"\\\\1\\\").'>' :\n\n\t\t'<div style=\\\"overflow: hidden; margin: 0px; padding: 0px; float: left;\\\">\n\t\t<img class=\\\"noenlarge\\\" src='.stripslashes(\\\"\\\\1\\\").' border=\\\"0\\\" OnLoad=\\\"if(this.width > $image_size) { this.width = $image_size }\\\" onclick = \\\"full_img(this.src)\\\" alt=\\\" Click to enlarge \\\">\n\t\t</div>'\", $img);\n\t\treturn $img;\n\t}\n\treturn $img;\n}", "title": "" }, { "docid": "ff6939a4ae6b519ebc97e3880f2ec008", "score": "0.5987495", "text": "function delete_retina_support_images( $attachment_id ) {\n $meta = wp_get_attachment_metadata( $attachment_id );\n $upload_dir = wp_upload_dir();\n $path = pathinfo( $meta['file'] );\n foreach ( $meta as $key => $value ) {\n if ( 'sizes' === $key ) {\n foreach ( $value as $sizes => $size ) {\n $original_filename = $upload_dir['basedir'] . '/' . $path['dirname'] . '/' . $size['file'];\n $retina_filename = substr_replace( $original_filename, '@2x.', strrpos( $original_filename, '.' ), strlen( '.' ) );\n if ( file_exists( $retina_filename ) )\n unlink( $retina_filename );\n }\n }\n }\n}", "title": "" }, { "docid": "cd1dd3ac80dabb5a51a9ad2268ccb5fe", "score": "0.59809905", "text": "function wsm_entry_image() {\n\n\t$img = genesis_get_image( array(\n\t\t'format' => 'html',\n\t\t'size' => genesis_get_option( 'image_size' ),\n\t\t'context' => is_singular() ? 'singular' : 'archive',\n\t\t'attr' => genesis_parse_attr( 'entry-image', array ( 'alt' => get_the_title() ) ),\n\t) );\n\n\tlist( $url, $width, $height ) = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );\n\n\tif ( ! empty( $img ) ) {\n\t\t$img = sprintf( '<a href=\"%s\" aria-hidden=\"true\">%s</a>', get_permalink(), $img );\n\t}\n\n\techo '<div itemprop=\"image\" itemscope itemtype=\"https://schema.org/ImageObject\">';\n\techo $img;\n\tprintf( '<meta itemprop=\"url\" content=\"%s\">', esc_url( $url ) );\n\tprintf( '<meta itemprop=\"width\" content=\"%s\">', esc_attr( $width ) );\n\tprintf( '<meta itemprop=\"height\" content=\"%s\">', esc_attr( $height ) );\n\techo '</div>';\n\n}", "title": "" }, { "docid": "a1c9efd9a834627a5f8c61c5cb67f5d3", "score": "0.59774286", "text": "function popular_post_widget() {\r\n $supreme_thumbnail_height = apply_filters('supreme_thumbnail_height', 60);\r\n $supreme_thumbnail_width = apply_filters('supreme_thumbnail_width', 60);\r\n $mobile_thumbnail_height = apply_filters('mobile_thumbnail_height', 60);\r\n $mobile_thumbnail_width = apply_filters('mobile_thumbnail_width', 60);\r\n add_image_size('popular_post-thumbnail', $supreme_thumbnail_height, $supreme_thumbnail_width, true);\r\n add_image_size('mobile-thumbnail', $mobile_thumbnail_width, $mobile_thumbnail_height, true);\r\n}", "title": "" }, { "docid": "65a2f9e2417012fd9e16df959a43b46f", "score": "0.5973285", "text": "function resize_image($img, $width = 1, $height = 1) {\n\t$str = preg_replace ( '!width=\\\"([0-9]+?)\\\"!i', '', $img );\n\t$str = preg_replace ( '!height=\\\"([0-9]+?)\\\"!i', '', $str );\n\treturn preg_replace ( '!/?>$!', sprintf ( ' height=\"%s\" width=\"%s\" />', $height, $width ), $str );\n}", "title": "" }, { "docid": "7ad516698d42f3e6c4368a32fde75b7c", "score": "0.5964313", "text": "function _custom_theme_init_images_size()\n{\n\t//add_image_size( '1920', 1920, 9999 );\n}", "title": "" }, { "docid": "0581ce1ae77dc83aceee10834098e132", "score": "0.5920174", "text": "function custom_size_gallery($attr) {\n $attr['size'] = 'gallery-thumb';\n return gallery_shortcode($attr);\n}", "title": "" }, { "docid": "61763c3c521932efc464089772b3a1e5", "score": "0.5916747", "text": "function twentyseventeen_post_thumbnail_sizes_attr( $attr, $attachment, $size ) {\n\tif ( is_archive() || is_search() || is_home() ) {\n\t\t$attr['sizes'] = '(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px';\n\t} else {\n\t\t$attr['sizes'] = '100vw';\n\t}\n\n\treturn $attr;\n}", "title": "" }, { "docid": "96075920a4a17358eb17ba874c7ba2b6", "score": "0.59128827", "text": "function custom_image_tags_wp_media_image_sizes_js( $response, $attachment, $meta ){\r\n\r\n $size_array = array( 'design_gallery') ;\r\n\r\n foreach ( $size_array as $size ):\r\n\r\n if ( isset( $meta['sizes'][ $size ] ) ) {\r\n $attachment_url = wp_get_attachment_url( $attachment->ID );\r\n $base_url = str_replace( wp_basename( $attachment_url ), '', $attachment_url );\r\n $size_meta = $meta['sizes'][ $size ];\r\n\r\n $response['sizes'][ $size ] = array(\r\n 'height' => $size_meta['height'],\r\n 'width' => $size_meta['width'],\r\n 'url' => $base_url . $size_meta['file'],\r\n 'orientation' => $size_meta['height'] > $size_meta['width'] ? 'portrait' : 'landscape',\r\n );\r\n }\r\n\r\n endforeach;\r\n\r\n return $response;\r\n}", "title": "" }, { "docid": "0e33733e4e1539df2b16ab84c22ea4c5", "score": "0.59063256", "text": "function shoestrap_image( $img ) {\n if ( empty( $img ) || ( empty( $img['id'] ) && empty( $img['url'] ) ) ) :\n return; // Nothing here to do!\n endif;\n\n if ( empty( $img['id'] ) ) : // We don't have an attachment id\n $img['id'] = shoestrap_get_attachment_id_from_src( $img['url'] ); \n endif;\n\n $image = wp_get_attachment_image_src( $img['id'], 'full' ); // Get the full size attachment \n\n $img['url'] = $image[0];\n \n $img['width'] = $image[1];\n $img['height'] = $image[2];\n\n return shoestrap_image_resize( $img );\n}", "title": "" }, { "docid": "ef734ec4d897ea9bd23a577bb79cb9b2", "score": "0.58992755", "text": "function content_image_sizes_attr( $sizes, $size ) {\n\t$width = $size[0];\n\n\tif ( 740 <= $width ) {\n\t\t$sizes = '(max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px';\n\t}\n\n\treturn $sizes;\n}", "title": "" }, { "docid": "c80570a54682b9d5f3b2a76ec9a27cd5", "score": "0.5878248", "text": "function _custom_theme_init_images_size()\n\t{\n\t\t//add_image_size( '1920', 1920, 9999 );\n\t}", "title": "" }, { "docid": "0e835cdd95f4af0876019c49295f9627", "score": "0.5877723", "text": "function ipress_additional_image_sizes() {\n\n global $_wp_additional_image_sizes;\n return ( $_wp_additional_image_sizes ) ? $_wp_additional_image_sizes : [];\n}", "title": "" }, { "docid": "c00713f5c13e5d7542068ee991c5496b", "score": "0.58579445", "text": "function cleanyeti_interchange_shortcode($atts) {\n extract(shortcode_atts(array(\n 'id' => 1,\n 'class' => ''\n ), $atts));\n\n $imageSizes = wp_get_attachment_metadata($atts['id']);\n $dataInterchange = '';\n \n\n //Output our image sizes using interchange for images format\n foreach ($imageSizes['sizes'] as $size => $info) {\n $attachment_info = wp_get_attachment_image_src($id, $size);\n \n if ( preg_match(\"/interchange/U\", $size) ) {\n $size = substr($size, 12);\n\n $dataInterchange .= '[';\n $dataInterchange .= $attachment_info[0] . ', ';\n $dataInterchange .= '(' . $size . ')';\n $dataInterchange .= '],';\n\n }\n }\n \n $attachment_info = wp_get_attachment_image_src($id, 'full');\n \n if ( $size == 'small' ) {\n $dataInterchange .= '[' . $attachment_info[0] . ', (medium)]';\n } elseif ( $size == 'medium' ) {\n $dataInterchange .= '[' . $attachment_info[0] . ', (large)]';\n } elseif ( $size == 'large' ) {\n $dataInterchange .= '[' . $attachment_info[0] . ', (xlarge)]';\n }\n //Build the interchange <img /> tag\n $html = sprintf('<img alt=\"%2$s\" data-interchange=\"%1$s\" width=\"%4$d\" height=\"%5$d\" class=\"%6$s\" /><noscript><img src=\"%3$s\"></noscript>', $dataInterchange, get_the_title($atts['id']), $imageSizes['file'], $imageSizes['width'], $imageSizes['height'], $atts['class']);\n\n return $html;\n}", "title": "" }, { "docid": "b19459f21719bd1fe31d62c747688983", "score": "0.5851846", "text": "function disableimage_sizes() {\n\n\tremove_image_size('1536x1536'); // disable any other added image sizes\n\tremove_image_size('2048x2048'); // disable images added via set_post_thumbnail_size()\n\n}", "title": "" }, { "docid": "f037ca441b17c895f2e3e0f1f67c8ba4", "score": "0.58495426", "text": "function strip_image_tags($str)\n{ \n\t$str = preg_replace(\"#<img\\s+.*?src\\s*=\\s*[\\\"'](.+?)[\\\"'].*?\\>#\", \"\\\\1\", $str);\n\t$str = preg_replace(\"#<img\\s+.*?src\\s*=\\s*(.+?).*?\\>#\", \"\\\\1\", $str);\n\t\t\t\n\treturn $str;\n}", "title": "" }, { "docid": "73dbdadbc1afddeda95b58bf5498491f", "score": "0.5843681", "text": "function csco_attachment_image_attributes( $attr, $attachment, $size ) {\n\t\tif ( 'csco-1920' === $size ) {\n\t\t\t$attr['sizes'] = '(min-aspect-ratio: 1/1) 100vw, 100vh';\n\t\t}\n\t\treturn $attr;\n\t}", "title": "" }, { "docid": "d822455afe5a2596bf1c94df629dbf8c", "score": "0.5837765", "text": "function add_custom_img_size(){\n\tadd_image_size( 'image-with-link-block', 400, 400, true );\n}", "title": "" }, { "docid": "32c430885749a4ef5deeadb7f4e0d1b5", "score": "0.5826816", "text": "function rt_content_image_sizes_attr( $sizes, $size ) {\n\t$width = $size[0];\n\n\tif ( 740 <= $width ) {\n\t\t$sizes = '(max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px';\n\t}\n\n\tif ( is_active_sidebar( 'sidebar-1' ) || is_archive() || is_search() || is_home() || is_page() ) {\n\t\tif ( ! ( is_page() && 'one-column' === get_theme_mod( 'page_options' ) ) && 767 <= $width ) {\n\t\t\t $sizes = '(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px';\n\t\t}\n\t}\n\n\treturn $sizes;\n}", "title": "" }, { "docid": "93b939ab946475c691ceaf0feaf9a3da", "score": "0.5826737", "text": "function integer_remove_max_srcset_image_width( $max_width ) {\n\treturn 2880;\n}", "title": "" }, { "docid": "e33cc5ec7d300c29d9c03d6f8f82c242", "score": "0.58265084", "text": "function supreme_get_additional_image_sizes() {\r\n global $_wp_additional_image_sizes;\r\n if ($_wp_additional_image_sizes)\r\n return $_wp_additional_image_sizes;\r\n return array();\r\n}", "title": "" }, { "docid": "a5e094e3e83a422b71aaf38c4261e0fd", "score": "0.58148926", "text": "function retina_support_attachment_meta( $metadata, $attachment_id ) {\n foreach ( $metadata as $key => $value ) {\n if ( is_array( $value ) ) {\n foreach ( $value as $image => $attr ) {\n if ( is_array( $attr ) )\n retina_support_create_images( get_attached_file( $attachment_id ), $attr['width'], $attr['height'], true );\n }\n }\n }\n \n return $metadata;\n}", "title": "" }, { "docid": "cf1228ebd4d4797a66878911d5b47f6a", "score": "0.5809465", "text": "function landpick_get_image_sizes( ) {\r\n global $_wp_additional_image_sizes;\r\n $sizes = array( );\r\n foreach ( get_intermediate_image_sizes() as $_size ) {\r\n if ( in_array( $_size, array(\r\n 'thumbnail',\r\n 'medium',\r\n 'medium_large',\r\n 'large',\r\n 'full' \r\n ) ) ) {\r\n $sizes[ $_size ][ 'width' ] = get_option( \"{$_size}_size_w\" );\r\n $sizes[ $_size ][ 'height' ] = get_option( \"{$_size}_size_h\" );\r\n $sizes[ $_size ][ 'crop' ] = (bool) get_option( \"{$_size}_crop\" );\r\n } //in_array( $_size, array( 'thumbnail', 'medium', 'medium_large', 'large' ) )\r\n elseif ( isset( $_wp_additional_image_sizes[ $_size ] ) ) {\r\n $sizes[ $_size ] = array(\r\n 'width' => $_wp_additional_image_sizes[ $_size ][ 'width' ],\r\n 'height' => $_wp_additional_image_sizes[ $_size ][ 'height' ],\r\n 'crop' => $_wp_additional_image_sizes[ $_size ][ 'crop' ] \r\n );\r\n } //isset( $_wp_additional_image_sizes[ $_size ] )\r\n } //get_intermediate_image_sizes() as $_size\r\n return $sizes;\r\n}", "title": "" }, { "docid": "0f8436f70b655268bdd680ec28c29cad", "score": "0.5801873", "text": "function bd_portfolio_image( $atts, $content = null ) {\n $xpath = new DOMXPath(@DOMDocument::loadHTML($content));\n $src = $xpath->evaluate(\"string(// img/@src)\");\n $strippedsrc = preg_replace('#-[0-9]{3,4}x[0-9]{3,4}.jpg$#','.jpg',$src);\n list($image_width, $image_height) = getimagesize($strippedsrc);\n if ($image_width > $image_height) {\n $image_class = 'bdp-landscape';\n }\n else {\n $image_class= 'bdp-portrait';\n }\n return '<li class=\"bdp-non-text-slide bdp-image-slide\"><a href=\"'.$strippedsrc.'\" target=\"_blank\"><img src=\"'. $strippedsrc . '\" class=\"bd-portfolio-image '.$image_class.'\" alt=\"\"/></a></li>';\n}", "title": "" }, { "docid": "549c79ae5f09860bd3c27cb15e25bc44", "score": "0.5794043", "text": "function sheru_content_image_sizes_attr( $sizes, $size ) {\n $width = $size[0];\n\n 840 <= $width && $sizes = '(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px';\n\n if ( 'page' === get_post_type() ) {\n 840 > $width && $sizes = '(max-width: ' . $width . 'px) 85vw, ' . $width . 'px';\n } else {\n 840 > $width && 600 <= $width && $sizes = '(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px';\n 600 > $width && $sizes = '(max-width: ' . $width . 'px) 85vw, ' . $width . 'px';\n }\n\n return $sizes;\n}", "title": "" }, { "docid": "9f3fbf2c8a48492b55c1bf0069995b4e", "score": "0.57870716", "text": "public function getThumbnailAttribute()\n {\n \t$options = json_decode($this->attributes['options']);\n return $options->styles->thumbnail;\n }", "title": "" }, { "docid": "e6c7bffd3407f6878fef74dcf31c9e57", "score": "0.5786647", "text": "function add_image_insert_override( $sizes ) {\r\n\tunset( $sizes[ 'thumbnail' ] );\r\n\tunset( $sizes[ 'medium' ] );\r\n\tunset( $sizes[ 'large' ] );\r\n}", "title": "" }, { "docid": "aab663d3325809d398818ea710dc5c32", "score": "0.5781585", "text": "function bfg_get_image($image_id, $width, $height, $crop = false, $atts = array()) {\n\n\t$mime_type = get_post_mime_type($image_id);\n\tif( in_array($mime_type, array('application/pdf'), true) )\n\t\treturn;\n\n\tif( $mime_type === 'image/svg+xml' ) {\n\t\t$alt = get_post_meta( $image_id, '_wp_attachment_image_alt', true );\n\n\t\tif( empty($width) && empty($height) ) {\n\t\t\t$path = get_attached_file($image_id);\n\t\t\tif( file_exists($path) ) {\n\t\t\t\t$data = file_get_contents($path);\n\n\t\t\t\tpreg_match('/<svg (.+?)>/', $data, $matches);\n\t\t\t\tif( !empty($matches[1]) ) {\n\t\t\t\t\tpreg_match('/width=\"(\\d+)\"/', $matches[1], $w);\n\t\t\t\t\tif( !empty($w[1]) )\n\t\t\t\t\t\t$width = absint($w[1]);\n\n\t\t\t\t\tpreg_match('/height=\"(\\d+)\"/', $matches[1], $h);\n\t\t\t\t\tif( !empty($h[1]) )\n\t\t\t\t\t\t$height = absint($h[1]);\n\t\t\t\t}\n\n\t\t\t\tif( empty($width) || empty($height) ) {\n\t\t\t\t\tpreg_match('/viewBox=\"([\\d\\.]+) ([\\d\\.]+) ([\\d\\.]+) ([\\d\\.]+)\"/', $data, $box);\n\t\t\t\t\tif( !empty($box) ) {\n\t\t\t\t\t\t$width = round((float) $box[3] - (float) $box[1]);\n\t\t\t\t\t\t$height = round((float) $box[4] - (float) $box[2]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tob_start();\n\t\t?>\n\t\t<img\n\t\t\tsrc=\"<?php echo wp_get_attachment_url( $image_id ); ?>\"\n\t\t\talt=\"<?php echo esc_attr($alt); ?>\"\n\t\t\twidth=\"<?php echo $width; ?>\"\n\t\t\theight=\"<?php echo $height; ?>\"\n\n\t\t\t<?php\n\t\t\tif( wp_lazy_loading_enabled( 'img', 'wp_get_attachment_image' ) ) {\n\t\t\t\t?>\n\t\t\t\tloading=\"<?php echo wp_get_loading_attr_default( 'wp_get_attachment_image' ); ?>\"\n\t\t\t\t<?php\n\t\t\t}\n\t\t\t?>\n\t\t>\n\t\t<?php\n\t\treturn ob_get_clean();\n\t}\n\n\t$response = bfg_process_image($image_id, $width, $height, $crop);\n\tif( is_wp_error($response) )\n\t\treturn '';\n\n\t$size_name = bfg_get_image_size_name($width, $height, $crop);\n\n\treturn wp_get_attachment_image( $image_id, $size_name, false, $atts );\n\n}", "title": "" }, { "docid": "d48c4eff04e61b504992fbd1da7b2fee", "score": "0.5770447", "text": "function new_img_shortcode_filter($val, $attr, $content = null) {\n\n\textract(shortcode_atts(array(\n\t\t'id'\t=> '',\n\t\t'align'\t=> '',\n\t\t'width'\t=> '',\n\t\t'caption' => '',\n 'src' => '',\n\t\t'url' => ''\n\t), $attr));\n\n\n // Get the specific ID of the Attachment \n $find = 'attachment_';\n $cust_id = str_replace($find, '', $id);\n\n // $caption = get_post($cust_id)->post_excerpt;\n // $description = get_post($cust_id)->post_content;\n\n\t$capid = '';\n\tif ( $id ) {\n\t\t$id = esc_attr($id);\n\t\t$capid = 'id=\"figcaption_'. $id . '\" ';\n\t\t$id = 'id=\"' . $id . '\"';\n\t}\n \n $raw = do_shortcode( $content, 'true');\n print_r('******************');\n print_r($raw);\n print_r('******************');\n\n // Removes Height and Width from images\n $img = preg_replace( '/(width|height)=\"\\d*\"\\s/', \"\", $raw);\n // adds in the .img-responsive class to all images\n $img = str_replace('class=\"', 'class=\"img-responsive ', $img);\n \n // return '<div class=\"media w'.(0 + (int) $width).'\">' . $img . '<p class=\"caption\">' . $caption . '</p></div>';\n print_r('*******');\n\n print_r($img);\n print_r('#####');\n \n print_r('*******');\n // {% picture [preset] path/to/img.jpg [source_key: path/to/alt/img.jpg] [attribute=\"value\"] %}\n return '{% picture [preset] '.$img.' [source_key: '.$img.'] [attribute=\"'.$caption.'\"] %}';\n\n}", "title": "" }, { "docid": "e684d863d1f13647a5357842dc94cddb", "score": "0.5767899", "text": "function drizy_custom_image_sizes()\n{\n add_image_size('drizy-post-thumbnails', 350, 200, false);\n add_image_size('drizy-page-banner', 1500, 350, true);\n}", "title": "" }, { "docid": "0613b2d625308f44991c64f0daa8bb90", "score": "0.5761186", "text": "public function render()\n {\n $html = parent::render();\n\n if (strpos($html, ' width=\"0\" ') !== false) {\n $html = '<img src=\"' . htmlspecialchars($default) . '\" alt=\"\" />';\n }\n\n return $html;\n }", "title": "" }, { "docid": "2bcba33b247b243a7cd1a4726d1a90d0", "score": "0.57588166", "text": "function filter_image_sizes( $sizes ) {\n $new_sizes = Assets\\get_image_sizes();\n\n $new_sizes_merge_array = array();\n foreach ( $new_sizes as $new_size_name => $new_size ) {\n $new_sizes_merge_array[ $new_size_name ] = __( $new_size['name'] );\n }\n\n return array_merge( $sizes, $new_sizes_merge_array );\n}", "title": "" }, { "docid": "d31f2304463e0d6dc9cfd92c80ce87df", "score": "0.5752417", "text": "function frame_post_thumbnail_html( $html ) {\n\treturn function_exists( 'get_the_image' ) ? $html : preg_replace( '/(<img.*?)(\\/>)/i', '$1itemprop=\"image\" $2', $html );\n}", "title": "" }, { "docid": "c569f712b6cbdc9324f4f50b07abb92b", "score": "0.57382125", "text": "protected function getImageWidth() {\n\t\t$size = $this->getAttribute('size');\n\t\tif (array_key_exists($size, $this->width)) {\n\t\t\treturn $size;\n\t\t}\n\t\treturn 'small';\n\t}", "title": "" }, { "docid": "2b53b47b9ec47465039309e8ce1b319a", "score": "0.5733713", "text": "function retina_support_create_images( $file, $width, $height, $crop = false ) {\n if ( $width || $height ) {\n $resized_file = wp_get_image_editor( $file );\n if ( ! is_wp_error( $resized_file ) ) {\n $filename = $resized_file->generate_filename( $width . 'x' . $height . '@2x' );\n \n $resized_file->resize( $width * 2, $height * 2, $crop );\n $resized_file->save( $filename );\n \n $info = $resized_file->get_size();\n \n return array(\n 'file' => wp_basename( $filename ),\n 'width' => $info['width'],\n 'height' => $info['height'],\n );\n }\n }\n return false;\n}", "title": "" }, { "docid": "9040eb62bd1c0f0fb89a04e863e51da0", "score": "0.57284665", "text": "function arrayImageSizesForSDF() {\n $sizes = WPXSmartShopProduct::imageSizes();\n $result = array();\n foreach ( $sizes as $key => $size ) {\n $result[$key] = sprintf( '%sx%s', $size['width'], $size['height'] );\n }\n return $result;\n }", "title": "" }, { "docid": "2ee33618efdea3029dab81620fc21daf", "score": "0.57262266", "text": "function twentysixteen_content_image_sizes_attr( $sizes, $size ) {\n\t$width = $size[0];\n\n\t840 <= $width && $sizes = '(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px';\n\n\tif ( 'page' === get_post_type() ) {\n\t\t840 > $width && $sizes = '(max-width: ' . $width . 'px) 85vw, ' . $width . 'px';\n\t} else {\n\t\t840 > $width && 600 <= $width && $sizes = '(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px';\n\t\t600 > $width && $sizes = '(max-width: ' . $width . 'px) 85vw, ' . $width . 'px';\n\t}\n\n\treturn $sizes;\n}", "title": "" }, { "docid": "685e2d50d65b9322434149591ee6db11", "score": "0.5721799", "text": "function __pspTC_get_image_sizes() {\n global $psp, $_wp_additional_image_sizes;\n\n $cache_name = 'psp_tiny_compress_wp_sizes';\n $cacheSizes = get_transient( $cache_name );\n\n $sizes = array();\n if ( !empty($cacheSizes) && is_array($cacheSizes) ) {\n $sizes = $cacheSizes;\n } else {\n\n // original image\n {\n $sizes[ '__original' ] = array(\n 'width' => 0,\n 'height' => 0,\n );\n }\n \n $get_intermediate_image_sizes = get_intermediate_image_sizes();\n \n // create array with sizes.\n // original source: http://codex.wordpress.org/Function_Reference/get_intermediate_image_sizes\n foreach ( $get_intermediate_image_sizes as $_size ) {\n \n //if ( in_array( $_size, array( 'thumbnail', 'medium', 'large' ) ) ) {}\n $w = get_option( $_size . '_size_w' );\n $h = get_option( $_size . '_size_h' );\n \n if ( $w && $h );\n else {\n $w = $_wp_additional_image_sizes[ $_size ]['width'];\n $h = $_wp_additional_image_sizes[ $_size ]['height'];\n }\n \n $sizes[ $_size ] = array(\n 'width' => $w,\n 'height' => $h,\n );\n }\n\n // basic cache sistem\n set_transient( $cache_name, $sizes, 1200 ); // cache expires in 20 minutes\n }\n\n // display\n $_sizes = array();\n foreach ($sizes as $key => $size) {\n $_sizes[\"$key\"] = $size['width'] && $size['height'] ?\n sprintf( '%s ( %d x %d )', $key, $size['width'], $size['height'] ) : sprintf( '%s', $key );\n }\n return $_sizes;\n}", "title": "" }, { "docid": "a11342b5f574ec63d82464e1402aedbb", "score": "0.57076705", "text": "public function getFeatureImageNoSizeAttribute()\n {\n if ('' == $this->getHasFeatureImageAttribute()) {\n return '';\n }\n $attachment = explode(\"/\", $this->attributes['attachment']);\n\n return url('media/image/'.$attachment[0]);\n }", "title": "" }, { "docid": "37ce8e97c7439b1473a0bf4a9961b565", "score": "0.5688301", "text": "function ipress_image_sizes( $additional=true ) {\n\n $builtin_sizes = [\n 'large' => [\n 'width' => get_option( 'large_size_w' ),\n 'height' => get_option( 'large_size_h' ),\n ],\n 'medium' => [\n 'width' => get_option( 'medium_size_w' ),\n 'height' => get_option( 'medium_size_h' ),\n ],\n 'thumbnail' => [\n 'width' => get_option( 'thumbnail_size_w' ),\n 'height' => get_option( 'thumbnail_size_h' ),\n 'crop' => get_option( 'thumbnail_crop' ),\n ],\n ];\n\n $additional_sizes = ( $additional ) ? ipress_additional_image_sizes() : [];\n return array_merge( $builtin_sizes, $additional_sizes );\n}", "title": "" }, { "docid": "3c1a4c93daed5ef957dcb5d1a25eab0a", "score": "0.5687872", "text": "function new_img_shortcode_filter($val, $attr, $content = null) {\n\n extract(shortcode_atts(array(\n 'id' => '',\n 'align' => '',\n 'width' => '',\n 'caption' => '',\n 'src' => ''\n ), $attr));\n\n // Get the specific ID of the Attachment \n $find = 'attachment_';\n $cust_id = str_replace($find, '', $id);\n $caption = str_replace('\"', '', get_post($cust_id)->post_excerpt);\n $description = get_post($cust_id)->post_content;\n $raw = do_shortcode( $content );\n \n $pattern = '/<img.*?src=\"([^\"]+)\"\\s*alt=\"([^\"]+)\"[^>]+>/'; // the whole SRC\n $liquid = '{{< legacy-img src=\"$1\" alt=\"$2\" caption=\"'.$caption.'\" >}}';\n $imgtag = preg_replace($pattern, $liquid, $raw);\n\n preg_match('/alt=\\\"(.+?)\\\"/', $imgtag, $alttag);\n $alt = str_replace('\"', '', $alttag[1]);\n $alt = str_replace('&quot;', '', $alt);\n\n $pattern = '/alt=\\\"(.+?)\\\"/';\n $imgtag = preg_replace($pattern, 'alt=\"'.$alt.'\"', $imgtag);\n\n return $imgtag;\n}", "title": "" }, { "docid": "7126d2b05551c1496087e19a57e85137", "score": "0.5684581", "text": "function filter_image_send_to_editor($html, $id, $caption, $title, $align, $url, $size, $alt) {\n $html = sprintf('<div><img class=\"img-responsive\" alt=\"%3$s\" src=\"%1$s\" /></div>', esc_attr(esc_url($url)), esc_attr($title), esc_attr($alt));\n\n return $html;\n}", "title": "" }, { "docid": "c35b7d0d15f0f25f5d1e4ef43f7df6cd", "score": "0.565808", "text": "public function get_all_image_sizes(){\n\t\t$custom_sizes = array();\n\t\t$added_image_sizes = get_intermediate_image_sizes();\n\t\tif(!empty($added_image_sizes) && is_array($added_image_sizes)){\n\t\t\tforeach($added_image_sizes as $key => $img_size_handle){\n\t\t\t\t$custom_sizes[$img_size_handle] = ucwords(str_replace('_', ' ', $img_size_handle));\n\t\t\t}\n\t\t}\n\t\t$img_orig_sources = array(\n\t\t\t'full' => __('Original Size', EG_TEXTDOMAIN),\n\t\t\t'thumbnail' => __('Thumbnail', EG_TEXTDOMAIN),\n\t\t\t'medium' => __('Medium', EG_TEXTDOMAIN),\n\t\t\t'large' => __('Large', EG_TEXTDOMAIN)\n\t\t);\n\t\t\n\t\treturn apply_filters('essgrid_get_all_image_sizes', array_merge($img_orig_sources, $custom_sizes));\n\t}", "title": "" }, { "docid": "d2369ec73cbb73209377c52e69155718", "score": "0.5653794", "text": "function my_insert_custom_image_sizes( $sizes ) {\n global $_wp_additional_image_sizes;\n // if there are none, just return the built-in sizes\n if ( empty( $_wp_additional_image_sizes ) )\n return $sizes;\n\n // add all the custom sizes to the built-in sizes\n foreach ( $_wp_additional_image_sizes as $id => $data ) {\n // take the size ID (e.g., 'my-name'), replace hyphens with spaces,\n // and capitalise the first letter of each word\n if ( !isset($sizes[$id]) )\n $sizes[$id] = ucfirst( str_replace( '-', ' ', $id ) );\n }\n\n return $sizes;\n}", "title": "" }, { "docid": "d2369ec73cbb73209377c52e69155718", "score": "0.5653794", "text": "function my_insert_custom_image_sizes( $sizes ) {\n global $_wp_additional_image_sizes;\n // if there are none, just return the built-in sizes\n if ( empty( $_wp_additional_image_sizes ) )\n return $sizes;\n\n // add all the custom sizes to the built-in sizes\n foreach ( $_wp_additional_image_sizes as $id => $data ) {\n // take the size ID (e.g., 'my-name'), replace hyphens with spaces,\n // and capitalise the first letter of each word\n if ( !isset($sizes[$id]) )\n $sizes[$id] = ucfirst( str_replace( '-', ' ', $id ) );\n }\n\n return $sizes;\n}", "title": "" }, { "docid": "a76243a7143423e11779225130e33065", "score": "0.5640131", "text": "function administration_styles() {\n\t// Media Listing Fix\n\twp_add_inline_style( 'wp-admin', \".media .media-icon img[src$='.svg'] { width: auto; height: auto; }\" );\n\t// Featured Image Fix\n\twp_add_inline_style( 'wp-admin', \"#postimagediv .inside img[src$='.svg'] { width: 100%; height: auto; }\" );\n}", "title": "" }, { "docid": "2ccf0b3ab9b1bb417a1b9c59b57a5554", "score": "0.5636106", "text": "function get_image_srcset($image_id,$image_size,$max_width){\n\n\t// check the image ID is not blank\n\tif($image_id != '') {\n\n\t\t// set the default src image size\n\t\t$image_src = wp_get_attachment_image_url( $image_id, $image_size );\n\n\t\t// set the srcset with various image sizes\n\t\t$image_srcset = wp_get_attachment_image_srcset( $image_id, $image_size );\n\n\t\t// generate the markup for the responsive image\n\t\techo 'src=\"'.$image_src.'\" srcset=\"'.$image_srcset.'\" sizes=\"(max-width: '.$max_width.') 100vw, '.$max_width.'\"';\n\n\t}\n}", "title": "" }, { "docid": "187b81f544aa0fc363773736ea95a5c6", "score": "0.56329143", "text": "protected function output_attributes() : Attributes {\n\t\t$attributes = parent::output_attributes();\n\t\t$dimensions = array();\n\n\t\t$attributes->update( 'src', $this->generate_source() );\n\n\t\t# Width\n\t\tif ( $this->settings->has( 'width' ) ) {\n\t\t\t$dimensions[] = $this->settings->get( 'width' );\n\t\t} else if ( $this->attributes->has( 'width' ) ) {\n\t\t\t$dimensions[] = $this->attributes->get( 'width' );\n\t\t}\n\n\t\t# Height\n\t\tif ( $this->settings->has( 'height' ) ) {\n\t\t\t$dimensions[] = $this->settings->get( 'height' );\n\t\t} else if ( $this->attributes->has( 'height' ) ) {\n\t\t\t$dimensions[] = $this->attributes->get( 'height' );\n\t\t}\n\n\t\tif ( 1 === count( $dimensions ) ) {\n\t\t\t$dimensions[] = $dimensions[0];\n\t\t}\n\n\t\tif ( ! $attributes->has( 'width' ) && ! empty( $dimensions[0] ) ) {\n\t\t\t$attributes->set( 'width', $dimensions[0] );\n\t\t}\n\n\t\tif ( ! $attributes->has( 'height' ) && ! empty( $dimensions[1] ) ) {\n\t\t\t$attributes->set( 'height', $dimensions[1] );\n\t\t}\n\n\t\treturn $attributes;\n\t}", "title": "" }, { "docid": "76b6b0120dbb0b23a916895f5730b123", "score": "0.56314385", "text": "function jas_claue_wc_customize_image_dimensions() {\n\tglobal $pagenow;\n\n\tif ( $pagenow != 'themes.php' || ! isset( $_GET['activated'] ) ) {\n\t\treturn;\n\t}\n\n\t// Update WooCommerce image dimensions.\n\tupdate_option(\n\t\t'shop_catalog_image_size',\n\t\tarray( 'width' => '570', 'height' => '760', 'crop' => 1 )\n\t);\n\n\tupdate_option(\n\t\t'shop_single_image_size',\n\t\tarray( 'width' => '750', 'height' => '1100', 'crop' => 1 )\n\t);\n\n\tupdate_option(\n\t\t'shop_thumbnail_image_size',\n\t\tarray( 'width' => '160', 'height' => '215', 'crop' => 1 )\n\t);\n}", "title": "" }, { "docid": "651a77fce9c8100395f723d7b47590e1", "score": "0.5623727", "text": "function image_sizes() {\n add_image_size('square300', 300, 300, true);\n add_image_size('bigimage', 0, 450, false);\n add_image_size('singleimage', 450, 450, false);\n\n\n ///add_image_size('slider', 1300, 1000, true);\n //add_image_size('magnified', 1300, 1000, false);\n //add_image_size('detail', 600, 500, false);\n //add_image_size('list-grid', 400, 400, false);\n}", "title": "" }, { "docid": "57cac819bbeab1537246ca5585a8ad7c", "score": "0.56028426", "text": "function pad2013_gallery_atts( $atts ) {\n if (has_post_format( 'gallery')) :\n $atts['size'] = 'large';\n endif;\n return $atts;\n }", "title": "" }, { "docid": "62c38c938ad021fbfd7857115f0a7563", "score": "0.5601283", "text": "function ipress_media_images( $sizes ) {\n\n // filterable custom images \n $custom_sizes = (array)apply_filters( 'ipress_media_images', [\n 'image-in-post' => __( 'Image in Post' ),\n 'full' => __( 'Original size' )\n ] );\n\n // test & return\n return ( empty($sizes) ) ? $sizes : array_merge( $sizes, $custom_sizes );\n}", "title": "" }, { "docid": "c4ef69a85ecbca0cf0db1df6dee278ec", "score": "0.55885595", "text": "function sgr_filter_image_sizes( $sizes) {\n\t\t\n\tunset( $sizes['thumbnail']);\n\tunset( $sizes['medium']);\n\tunset( $sizes['large']);\n\t\n\treturn $sizes;\n}", "title": "" }, { "docid": "e5d8bd77539941839005b5bb4e91e9ae", "score": "0.5587274", "text": "function shoestrap_image_resize( $data ) {\n\n $defaults = array(\n \"url\" => \"\",\n \"width\" => \"\",\n \"height\" => \"\",\n \"crop\" => true,\n \"retina\" => \"\",\n \"resize\" => true,\n );\n\n $settings = wp_parse_args( $data, $defaults );\n\n if ( empty($settings['url']) ) :\n return;\n endif;\n\n // Generate the @2x file if retina is enabled\n if ( shoestrap_getVariable( 'retina_toggle' ) == 1 && empty( $settings['retina'] ) ) :\n $results['retina'] = matthewruddy_image_resize( $settings['url'], $settings['width'], $settings['height'], $settings['crop'], true );\n endif;\n\n return matthewruddy_image_resize( $settings['url'], $settings['width'], $settings['height'], $settings['crop'], false ); \n}", "title": "" }, { "docid": "bffe6a99dd0ab8a004907b82e80f7597", "score": "0.5587063", "text": "function wpse238808_update_image_size_medium_large() {\n update_option( 'medium_large_size_w', 0 );\n update_option( 'medium_large_size_h', 0 );\n}", "title": "" }, { "docid": "f6d50dcfe7ff1280c45323a040b1fc2f", "score": "0.55861336", "text": "function preview_icon_image ($image, $size='20') {\n\t//echo \"<span style='float:left; margin:3px;' title='$image'><img src='./$image' alt='$image' height='20' /><br />$image</span>\\n\"; // IMAGE NAME\t\n\t//echo \"<span style='float:left; margin:3px;' title='$image'><img src='./$image' alt='$image' height='$size' /></span>\\n\"; // PLAIN IMAGE MAP\n\t$img_style = \" style= 'max-height: \". $size .\"px; max-width: \". (4 * $size) .\"px; overflow: hidden;' \";\n\techo \"<span style='float:left; margin:3px;' title='$image'>\\n\";\n\techo \"<img src='./$image' alt='$image' height='$size' $img_style />\\n\";\n\techo \"</span>\\n\"; // DETAIL\n }", "title": "" }, { "docid": "6b8e73edf59b4a82bbb3bcf44b43989e", "score": "0.55770797", "text": "function et_twenty_seventeen_generate_thumbnail($attach_id = null, $attach_url = null, $width = null, $height = null, $crop = true) {\n $output = '';\n if(empty($attach_id)) {\n //get attachment id from attachment url\n $attach_id = readanddigest_get_attachment_id_from_url($attach_url);\n }\n\n if(!empty($attach_id) || !empty($attach_url)) {\n $img_info = readanddigest_resize_image($attach_id, $attach_url, $width, $height, $crop);\n $img_alt = !empty($attach_id) ? get_post_meta($attach_id, '_wp_attachment_image_alt', true) : '';\n\n\n if(is_array($img_info) && count($img_info)) {\n $output .= '<img class=\"img-responsive\" src=\"'.$img_info['img_url'].'\" alt=\"'.$img_alt.'\" width=\"'.$img_info['img_width'].'\" height=\"'.$img_info['img_height'].'\" />';\n }\n }\n\n return $output;\n}", "title": "" }, { "docid": "1c0d6d05383cded957fef738887db1c5", "score": "0.55753857", "text": "function sockman_max_srcset_image_width() {\n\treturn 2560;\n}", "title": "" }, { "docid": "188846a056869174ee8ef3533db97f56", "score": "0.5575264", "text": "function bt_custom_image_sizes( $sizes ) {\n\t\tglobal $_wp_additional_image_sizes;\n\t\tif ( empty($_wp_additional_image_sizes) )\n\t\t\t\treturn $sizes;\n\t\n\t\tforeach ( $_wp_additional_image_sizes as $id => $data ) {\n\t\t\t\tif ( !isset($sizes[$id]) )\n\t\t\t\t\t\t$sizes[$id] = ucfirst( str_replace( '-', ' ', $id ) );\n\t\t}\n\t\treturn $sizes;\n\t}", "title": "" } ]
c3266f33225cee35ca11b3233b1b6ad9
Constructs a Transactions instance.
[ { "docid": "06e1cb3b15eb54ff75506212179012d2", "score": "0.0", "text": "public function __construct(ConnectorInterface $connector)\n {\n parent::__construct($connector);\n }", "title": "" } ]
[ { "docid": "5ec287e006f06b4cccd36f5cd75bad7c", "score": "0.76285183", "text": "public static function transaction(): Transaction\n {\n return new Transaction();\n }", "title": "" }, { "docid": "24f4f095c6f3ad8506228ecfb00cdea5", "score": "0.7584163", "text": "private function _getTransactionInstance() {\n return new Transaction($this->databaseConnection);\n }", "title": "" }, { "docid": "c4f7492b941bccd6dd8c8ce8d1fc79d3", "score": "0.70622903", "text": "public function transaction()\n {\n return new Transaction($this->connection);\n }", "title": "" }, { "docid": "eec8641c9d9c4ae9eb0838f62c7fdac8", "score": "0.6878347", "text": "public function Transaction(): Transaction\n {\n if (is_null($this->transaction))\n $this->transaction = new class($this) extends Transaction {\n };\n return $this->transaction;\n }", "title": "" }, { "docid": "a392938718b5e15fc535aebcfa67074d", "score": "0.6876784", "text": "protected function getTransaction()\n {\n //Transaction is created with a `Payee` and `Amount` types\n $description = isset($this->paymentOptions['transaction']['description']) ?\n $this->paymentOptions['transaction']['description'] : \"\";\n\n $this->transaction->setItemList($this->getItems());\n $this->transaction->setAmount($this->getAmounts());\n $this->transaction->setDescription($description);\n\n return $this->transaction;\n }", "title": "" }, { "docid": "9abc040db8f5dcdbe50cec8fbbf405d3", "score": "0.6847162", "text": "public function createTransaction() {\n\t\t$payment = Group_Buying_Payment::get_instance( $this->getTid() );\n\t\t$data = $payment->get_data();\n\n\t\t$transaction = new Transaction( $this->getTid() );\n\n\t\t// setting via magic method __set\n\t\t$transaction->PRICE = $this->getPrice();\n\t\t$transaction->CURRENCY = 'EUR';\n\n\t\t$secret = $this->createSecret( $this->getTid(), $this->getPrice(), 'EUR', time() );\n\t\t$transaction->SECRET = $secret;\n\n\t\t// Set the secret in the payment data\n\t\t$data['secret'] = $secret;\n\t\t$payment->set_data( $data );\n\n\t\treturn $transaction;\n\t}", "title": "" }, { "docid": "0c62b11b1ea51a516735fd7ff6cf393e", "score": "0.6718186", "text": "public function createTransaction(): TransactionInterface\n {\n return $this->createObject(\n $this->transactionClass,\n TransactionInterface::class\n );\n }", "title": "" }, { "docid": "d588d8e098ea0a00b92161a435f56088", "score": "0.6715744", "text": "public function createTransaction(array $params)\n {\n $transaction = new Engine_Payment_Transaction($params);\n $transaction->process($this->getGateway());\n return $transaction;\n }", "title": "" }, { "docid": "9025d7209ce4162d1c80a2686bab63b8", "score": "0.6707127", "text": "public function __construct(Transaction $transaction)\n {\n $this->transaction = $transaction;\n }", "title": "" }, { "docid": "9025d7209ce4162d1c80a2686bab63b8", "score": "0.6707127", "text": "public function __construct(Transaction $transaction)\n {\n $this->transaction = $transaction;\n }", "title": "" }, { "docid": "eb58fd8b430c40dcf874c35fac79f88b", "score": "0.6615916", "text": "protected function _getTransaction()\n {\n if (!isset($this->_transaction)) {\n $this->_transaction = new \\Yana\\Db\\Transaction($this->getSchema());\n }\n return $this->_transaction;\n }", "title": "" }, { "docid": "58f032e7deebeb7c3c9dfb81969d859a", "score": "0.6581723", "text": "public function __construct($transaction) {\n $this->transaction = $transaction;\n }", "title": "" }, { "docid": "c70991c2794721d66aeed8af4e013ab2", "score": "0.6560289", "text": "public function __construct($transaction)\n {\n $this->transaction = $transaction;\n }", "title": "" }, { "docid": "ee7eda6f429666f6f146421854b35f39", "score": "0.63742304", "text": "public function transactions()\n {\n }", "title": "" }, { "docid": "a9e0059bff9b061bb5811d6234c3dbd5", "score": "0.6373745", "text": "public function __construct(Transaction $transaction) {\n $this->transaction = $transaction;\n $this->setTransactioNotification($transaction);\n }", "title": "" }, { "docid": "7611ff852152d0da503a06c18c42709f", "score": "0.63705826", "text": "public function __construct() {\n\t\t\t$this->databaseTransaction = new DatabaseTransaction();\n\t\t}", "title": "" }, { "docid": "7611ff852152d0da503a06c18c42709f", "score": "0.63705826", "text": "public function __construct() {\n\t\t\t$this->databaseTransaction = new DatabaseTransaction();\n\t\t}", "title": "" }, { "docid": "5667c5e4ea5fc124f4cc76119b55486b", "score": "0.63209414", "text": "public function transaction();", "title": "" }, { "docid": "f036c6f7b893b7858e00eb0ceb8ae2e3", "score": "0.6281467", "text": "function __construct() {\n $this->transaccion = new TransaccionBDclass();\n }", "title": "" }, { "docid": "f036c6f7b893b7858e00eb0ceb8ae2e3", "score": "0.6281467", "text": "function __construct() {\n $this->transaccion = new TransaccionBDclass();\n }", "title": "" }, { "docid": "d879ed42954a58d4540fca9d847fd96d", "score": "0.62751883", "text": "public function __construct(TransactionModel $transaction)\n {\n $this->transaction = $transaction;\n }", "title": "" }, { "docid": "2906ad78aad40c758769421f9109c436", "score": "0.62707824", "text": "public function create($data)\n {\n $transaction = new Transaction();\n $transaction->exchangeArray($data);\n $this->add($transaction);\n return $transaction;\n }", "title": "" }, { "docid": "a1404357c5862748cabcf430529e594e", "score": "0.62251055", "text": "public function getTransaction()\n {\n $transaction = $this->getOption('transaction_id');\n if ($transaction) {\n $transaction = new Socialcommerce_Payment_Transaction($transaction);\n $transaction->setAmount($this->getOption('amount'))\n ->setCurrency($this->getOption('currency'));\n }\n return $transaction;\n }", "title": "" }, { "docid": "aea828c476501e5072a71de9fbfa593a", "score": "0.62045425", "text": "public function setTransactions($transactions)\n {\n $this->transactions = $transactions;\n return $this;\n }", "title": "" }, { "docid": "066e99990a99a57fa0936e65aa3f6cae", "score": "0.6200798", "text": "protected function newTransaction()\n {\n return new CS_REST_Subscribers(\n $this->getListId(), $this->apiKey\n );\n }", "title": "" }, { "docid": "943babf5e4aa5d7e5320ff09c6e274f9", "score": "0.61473966", "text": "public function createTransaction($amount)\n {\n $this->_cimTransaction->customerProfileId = $this->_cimCustomer->customerProfileId;\n $this->_cimTransaction->customerPaymentProfileId = $this->_cimPaymentProfile->customerPaymentProfileId;\n $this->_cimTransaction->amount = $amount;\n \n return $this->_cimTransaction;\n }", "title": "" }, { "docid": "4af26111dae4888fde5f4ab11c3ea41a", "score": "0.61263496", "text": "public function createBlikTransaction()\n {\n $transactionParameters = $this->getTransactionParameters();\n $transactionParameters['pay'] = $this->getBlikPaymentParameters();\n $newTransaction = $this->TpayApi->transactions()->createTransaction($transactionParameters);\n var_dump($newTransaction);\n\n return $this;\n }", "title": "" }, { "docid": "0b3f31cc5a8c94c5f9b9b68f1c772a7e", "score": "0.6114959", "text": "protected function getPaymentTransaction()\n {\n return new PaymentTransaction(array\n (\n 'payment' => $this->getPayment(),\n 'query_config' => $this->getConfig()\n ));\n }", "title": "" }, { "docid": "b47c0077791d01cdcecaf0ee75342e46", "score": "0.606668", "text": "public function __construct(Transaction $confirm)\n {\n $this->confirm = $confirm;\n }", "title": "" }, { "docid": "b23f187f14b943b9705e6982efe712fe", "score": "0.60508657", "text": "public function createTransactionEntityAsset()\n {\n return new TransactionEntity;\n }", "title": "" }, { "docid": "1d7da841c78662aacba7987887bfca64", "score": "0.6033024", "text": "public function __construct(Transaction $transaction, Account $account)\n {\n $this->transaction = $transaction;\n $this->account = $account;\n }", "title": "" }, { "docid": "5e9d92cd4a68cbf32c9ad3efbc9d5e24", "score": "0.5975131", "text": "protected function createTransactionService(): APITransactionService\n {\n return new TransactionService(\n $this->transactionHandler,\n );\n }", "title": "" }, { "docid": "a2bfacb1114867e9cd6443f1bd81e512", "score": "0.59327424", "text": "function __construct($transaction) {\n\t\tglobal $CFG;\n\t\trequire_once $CFG->libdir . '/enrollib.php';\n\n\t\t// Set the transaction to be handled\n\t\tif( $transaction instanceof MoodecTransaction ) {\n\t\t\t// We have been passed an existing instance, so use it\n\t\t\t$this->_transaction = $transaction;\n\t\t} else {\n\t\t\t// We have been passed the ID, so make a new instance of transaction\n\t\t\t$this->_transaction = new MoodecTransaction($transaction);\n\t\t}\n\n\t\t// Get the enrolment plugin\n\t\t$this->_enrolPlugin = enrol_get_plugin('moodec');\n\n\t\t// If the moodec enrolment plugin is not found (although that shouldn't happen, as it is a dependency of this plugin) then fall back to manual\n\t\tif( is_null($this->_enrolPlugin) ) {\n\t\t\t$this->_enrolPlugin = enrol_get_plugin('manual');\n\t\t}\n\n\t\t// Set gateway properties to default strings;\n\t\t$this->_gatewayName = '';\n\t\t$this->_gatewayURL = '';\n\t}", "title": "" }, { "docid": "7fec67609d3f7975b0f207972ed3a4fd", "score": "0.59296715", "text": "public static function createFromXml($transData) {\n $transaction = new Transaction();\n\n $transaction->program = (string)$transData->programName;\n $transaction->programId = (string)$transData->programId;\n\n $transaction->orderNr = (string)$transData->orderNR;\n $transaction->leadNr = (string)$transData->leadNR;\n $transaction->commission = (string)$transData->affiliateCommission;\n $transaction->orderValue = (string)$transData->orderValue;\n $transaction->epi1 = (string)$transData->epi1;\n $transaction->epi2 = (string)$transData->epi2;\n\n $transaction->eventId = (string)$transData->eventId;\n $transaction->eventName = (string)$transData->eventName;\n\n $transaction->mediaId = (string)$transData->siteId;\n $transaction->mediaName = (string)$transData->siteName;\n\n $transaction->clickDate = self::parseDate($transData->timeOfVisit);\n $transaction->transactionDate = self::parseDate($transData->timeOfEvent);\n $transaction->lastModifiedDate = self::parseDate($transData->lastModified);\n\n $transaction->deviceType = (string)$transData->deviceType;\n $transaction->status = (string)$transData->pendingStatus;\n $transaction->statusReason = (string)$transData->pendingReason;\n\n $transaction->generateId();\n\n return $transaction;\n }", "title": "" }, { "docid": "303d09cf1ca2c290c2a5d1b56709bc6c", "score": "0.5923382", "text": "public function getTransactions();", "title": "" }, { "docid": "303d09cf1ca2c290c2a5d1b56709bc6c", "score": "0.5923382", "text": "public function getTransactions();", "title": "" }, { "docid": "2b6215f021bc908b9fdf371518661a9d", "score": "0.5890873", "text": "function __construct($transbordo, $monto, $transporte, $id, $fecha){\n\n $this->transbordo = $transbordo;\n $this->monto = $monto;\n $this->transporte = $transporte;\n $this->fecha = $fecha;\n $this->id = $id;\n }", "title": "" }, { "docid": "ec440cee9b8e401bfa13421ce596941b", "score": "0.58761555", "text": "public function createTransactionInstance($operation = null)\n {\n if (Operation::CREDIT === $operation) {\n return new SepaCreditTransferTransaction();\n }\n\n return new IdealTransaction();\n }", "title": "" }, { "docid": "7041746eb37a10ab43dbd1f97d4ca403", "score": "0.58580226", "text": "abstract public function transaction();", "title": "" }, { "docid": "c6317723104d7f01fee5448e8b2b3cf6", "score": "0.58559525", "text": "public function __construct(TransactionService $transactionService)\n {\n $this->transactionService = $transactionService;\n }", "title": "" }, { "docid": "5ed926ee05017772d40f4787c14db239", "score": "0.5845591", "text": "public function createRawTransaction(array $transactions, array $addresses)\n {\n return $this->client->createrawtransaction($transactions,$addresses);\n }", "title": "" }, { "docid": "2cfc959b70a515c56c550e28217bab43", "score": "0.5844001", "text": "protected function _getTransaction()\n {\n if (is_null($this->_transaction)) {\n $this->_transaction = Mage::getModel('core/resource_transaction');\n }\n\n return $this->_transaction;\n }", "title": "" }, { "docid": "6bd521f54ffc8891357497759d9191e3", "score": "0.584151", "text": "public function __construct(Transaction $transaction)\n {\n $this->middleware('auth');\n $this->transaction = $transaction;\n }", "title": "" }, { "docid": "0743145eeb832f19d0981d9c5b18b9d2", "score": "0.58280903", "text": "public function __construct( TransactionUtil $transactionUtil)\r\n {\r\n $this->transactionUtil = $transactionUtil;\r\n parent::__construct();\r\n }", "title": "" }, { "docid": "20dbcd5c43218c6b43cd6990b6b61f43", "score": "0.5827639", "text": "public function createCoinFromTransactions(Transaction $transaction): Coin;", "title": "" }, { "docid": "d5c34c3697ac556c183b241a9621bbf1", "score": "0.5822068", "text": "public function get_transaction_request() {\n\t\t$transaction_request = new Pronamic_Gateways_PayDutch_TransactionRequest( $this->username, $this->password );\n\n\t\treturn $transaction_request;\n\t}", "title": "" }, { "docid": "fa8e3b1faa0e59d60ccd17cddb9f493d", "score": "0.58176935", "text": "public function setTransaction($var)\n {\n GPBUtil::checkString($var, False);\n $this->transaction = $var;\n\n return $this;\n }", "title": "" }, { "docid": "1f4172c07da306f52fd6539f4cbc353d", "score": "0.5815333", "text": "public function createNewCardTransaction()\n {\n $transactionParameters = $this->getTransactionParameters();\n $transactionParameters['pay'] = $this->getNewCardPaymentParameters();\n $newTransaction = $this->TpayApi->transactions()->createTransaction($transactionParameters);\n var_dump($newTransaction);\n\n return $this;\n }", "title": "" }, { "docid": "1ec840a666b65c0b004d88dbf3ded64f", "score": "0.5808793", "text": "protected function _construct()\n {\n $this->_init('Nuxpay\\Merchant\\Model\\NuxPayTransaction', 'Nuxpay\\Merchant\\Model\\ResourceModel\\NuxPayTransaction');\n }", "title": "" }, { "docid": "ff70cc603edb2de3421e5d102708941a", "score": "0.5792755", "text": "public function __construct(P24Transaction $transaction)\n {\n $this->transaction = $transaction;\n }", "title": "" }, { "docid": "d971eebc304bf6c2a8c310ff906a9817", "score": "0.5735689", "text": "public function start_transaction()\r\n\r\n\t\t{\r\n\r\n\r\n\r\n\t\t\t$this->query .= \"start transaction;SET autocommit=0;\";\r\n\r\n\t\t\treturn $this;\r\n\r\n\t\t}", "title": "" }, { "docid": "9f01701fe801b2fbd8bf746d75554632", "score": "0.57166755", "text": "protected function createTransaction()\n {\n if ($this->transactions == 0) {\n $this->reconnectIfMissingConnection();\n\n try {\n $this->getPdo()->beginTransaction();\n } catch (Throwable $e) {\n $this->handleBeginTransactionException($e);\n }\n } elseif ($this->transactions >= 1 && $this->queryGrammar->supportsSavepoints()) {\n $this->createSavepoint();\n }\n }", "title": "" }, { "docid": "f357ba59d4f828b7f4df06f5e8e79195", "score": "0.57038444", "text": "public function testCreateTransaction()\n\t{\n\t\t$data = factory(\\App\\Models\\Transaction::class)->make()->toArray();\n\t\t$this->post('transactions', $data);\n\t\t$this->seeStatusCode(201);\n\t\t$this->seeJsonStructure([\n\t\t\t'id',\n\t\t\t'payee_id',\n\t\t\t'payer_id',\n\t\t\t'value',\n\t\t\t'transaction_date'\n\t\t]);\n\t}", "title": "" }, { "docid": "758ffeef9440c4cbab27bbf33d8b207a", "score": "0.56963843", "text": "public function __construct(\n $transactions = [1=>0.0, 2=>0.0, 3=> 0.0, 4=>0.0, 5=>0.0],\n $sign = [1=>\"neutral_trans\", 2=>\"neutral_trans\", 3=> \"neutral_trans\", 4=>\"neutral_trans\", 5=>\"neutral_trans\"],\n $other_user = [1=>\"\", 2=>\"\", 3=> \"\", 4=>\"\", 5=>\"\"]\n\n ){\n $this->transactions = $transactions;\n $this->sign = $sign;\n $this->other_user = $other_user;\n }", "title": "" }, { "docid": "6d5bd4defb1eebc84804e400625bbdce", "score": "0.5683843", "text": "public function create()\n {\n $this->authorize('create-stripe-balance-transaction');\n // unused empty shell - records are imported from stripe payouts\n }", "title": "" }, { "docid": "1fde2ba99560d2eb45547f5113fcd676", "score": "0.5671639", "text": "function get_Transaction() {\n\t\tif (!$this->parsed) $this->_parseContent();\n\t\treturn $this->transaction;\n\t}", "title": "" }, { "docid": "170822cbf405121c180ac169c40e56fd", "score": "0.5650828", "text": "abstract protected function makeTransaction(string $type, array $attributes = []);", "title": "" }, { "docid": "ac75e4a37bc74d7a294e309a9f1810a8", "score": "0.56441295", "text": "public function __construct(Transaction $resource, Coin $coin)\n {\n $this->resource = $resource;\n $this->coin = $coin;\n }", "title": "" }, { "docid": "c14dd639e4860077e28211f1b69ca35a", "score": "0.5637309", "text": "public function start_transaction() {}", "title": "" }, { "docid": "498a8a1f8592ea39b6b493c64a52348b", "score": "0.562526", "text": "protected function _construct()\n {\n $this->_init('Magestore\\Affiliatepluslevel\\Model\\ResourceModel\\Transaction');\n }", "title": "" }, { "docid": "da3210ab891f20307ae15fa3e8e95980", "score": "0.5602746", "text": "public function __construct(TransactionRequest $request)\n {\n $this->session_id = $request->get('p24_session_id');\n $this->amount = $request->get('p24_amount');\n $this->currency = $request->get('p24_currency');\n $this->order_id = $request->get('p24_order_id');\n $this->method = $request->get('p24_method');\n $this->statement = $request->get('p24_statement');\n }", "title": "" }, { "docid": "f24de823d58e2cb28d6a01361a0b09ad", "score": "0.5578873", "text": "public function testCanBeConstructed(): TransactionsRequest\n {\n $request = new TransactionsRequest(CurrencyPair::BCHBTC);\n $this->assertInstanceOf('Bitstamp\\\\PublicApi\\\\Requests\\\\TransactionsRequest', $request);\n\n return $request;\n }", "title": "" }, { "docid": "dc68d2eb6d9c1f1bd7a7423d0bbe0752", "score": "0.55777717", "text": "public function run()\n {\n factory(Transaction::class)->create([\n 'from' => '1',\n 'to' => '2',\n 'value' => 1000.00,\n 'history' => '1000.00 from 1 to 2 at 05:00',\n ]);\n\n factory(Transaction::class)->create([\n 'from' => '2',\n 'to' => '3',\n 'value' => 1000.00,\n 'history' => '1000.00 from 1 to 2 at 05:00',\n ]);\n\n\n factory(Transaction::class)->create([\n 'from' => '3',\n 'to' => '4',\n 'value' => 1000.00,\n 'history' => '1000.00 from 1 to 2 at 05:00',\n ]);\n\n\n factory(Transaction::class)->create([\n 'from' => '4',\n 'to' => '5',\n 'value' => 1000.00,\n 'history' => '1000.00 from 1 to 2 at 05:00',\n ]);\n\n factory(Transaction::class)->create([\n 'from' => '5',\n 'to' => '1',\n 'value' => 1000.00,\n 'history' => '1000.00 from 1 to 2 at 05:00',\n ]);\n }", "title": "" }, { "docid": "914b081aaaf1bb2423d40a7992e0df4f", "score": "0.5577567", "text": "public function __construct(Transaction $oldTransaction, $newTransaction)\n {\n $this->oldTransaction = $oldTransaction;\n $this->newTransaction = $newTransaction;\n }", "title": "" }, { "docid": "45147c5fc4686651c805a88ef9038ed0", "score": "0.55727506", "text": "public function __construct(ActivationServiceTransaction $activationServiceTransaction)\n {\n $this->activationServiceTransaction = $activationServiceTransaction;\n }", "title": "" }, { "docid": "5c107d3f317a57e4f31c8044bd08ef10", "score": "0.5564798", "text": "public function created(Transaction $transaction)\n {\n if($transaction->type == 'transfer'){\n DB::transaction(function () use ($transaction) {\n\n $balance_out = $transaction->account->balance - Transaction::convert_currency($transaction->balance, 'EGP', $transaction->account->currency);;\n $balance_in = $transaction->to_account->balance + Transaction::convert_currency($transaction->balance, 'EGP', $transaction->to_account->currency);;\n\n if($balance_out <= 0){\n return DB::rollBack();\n }\n\n DB::update('update accounts set balance = ? where id = ?', [$balance_out ,$transaction->account->id]);\n DB::update('update accounts set balance = ? where id = ?', [$balance_in ,$transaction->to_account->id]);\n });\n }else{\n DB::transaction(function () use ($transaction) {\n $my_account = $transaction->account;\n\n if( $transaction->type == 'withdraw'){\n $balance_out = $my_account->balance - Transaction::convert_currency($transaction->balance, 'EGP', $my_account->currency);\n if($balance_out <= 0){\n return DB::rollBack();\n }\n\n DB::update('update accounts set balance = ? where id = ?', [$balance_out ,$my_account->id]);\n }else{\n $balance_in = $my_account->balance + Transaction::convert_currency($transaction->balance, 'EGP', $my_account->currency);\n\n DB::update('update accounts set balance = ? where id = ?', [$balance_in ,$my_account->id]);\n }\n });\n }\n }", "title": "" }, { "docid": "b5f9fe3e37cef1a8b4ce682f67714b3b", "score": "0.5536544", "text": "public function transaction() {\n\t\treturn $this->hasMany(Transaction::class);\n\t}", "title": "" }, { "docid": "a18188639577af6780e498b66aad4220", "score": "0.5533502", "text": "public function createFromTransactionIds(array $transactionIds)\n {\n if (!$transactionIds) {\n return;\n }\n\n $transactionRepository = $this->entityManager->getRepository(Transaction::class);\n $userRepository = $this->entityManager->getRepository(User::class);\n $stateRepository = $this->entityManager->getRepository(State::class);\n\n $transactions = $this->connection->createQueryBuilder()\n ->select('*')\n ->from('transaction', 't')\n ->where('t.id IN (:transactionIds)')\n ->setParameter('transactionIds', $transactionIds, Connection::PARAM_INT_ARRAY)\n ->execute()\n ->fetchAll();\n\n $debitors = [];\n\n foreach ($transactions as $transaction) {\n if (!$transaction['debitorId'] || !$transaction['creditorId'] || !$transaction['id']) {\n continue;\n }\n\n $debitors[$transaction['debitorId']][$transaction['creditorId']][] = $transaction['id'];\n }\n\n $state = $stateRepository->findOneBy(['id' => StateRepository::STATE_OPEN_ID]);\n\n foreach ($debitors as $debitorId => $creditors) {\n $debitor = $userRepository->findOneBy(['id' => $debitorId]);\n\n if (!$debitor) {\n continue;\n }\n\n foreach ($creditors as $creditorId => $transactionIds) {\n $creditor = $userRepository->findOneBy(['id' => $creditorId]);\n\n if (!$creditor) {\n continue;\n }\n\n $cashUp = new CashUp();\n\n $cashUp->setDebitor($debitor);\n $cashUp->setCreditor($creditor);\n $cashUp->setState($state);\n $cashUp->setCreatedAt();\n\n $this->entityManager->persist($cashUp);\n $this->entityManager->flush();\n\n foreach ($transactionIds as $transactionId) {\n $transaction = $transactionRepository->findOneBy(['id' => $transactionId]);\n\n if (!$transaction) {\n continue;\n }\n\n $cashUp->addTransaction($transaction);\n $this->entityManager->flush();\n }\n }\n }\n }", "title": "" }, { "docid": "ad5c885886b4465bb63920a63b5f86b4", "score": "0.5527817", "text": "public function __construct(Transaction $transaction, TelrResponse $response)\n {\n $this->transaction = $transaction;\n $this->response = $response;\n }", "title": "" }, { "docid": "7d30143545982cb87d3d4fb3a6829642", "score": "0.5515798", "text": "public function transactions()\n\t{\n\t\treturn $this->hasMany('App\\Transaction');\n\t}", "title": "" }, { "docid": "0773078176291f4ffdf62f4b13f31107", "score": "0.55142826", "text": "public function getTransactionById($id);", "title": "" }, { "docid": "0ba730a75c0ec311159c94ba968b656c", "score": "0.5513603", "text": "public function getTransactions()\n {\n if (!is_array($this->data) || !isset($this->data['data'])) {\n return null;\n }\n $transactions = array();\n\n /** @var array<string, string> */\n foreach ($this->data['data'] as $row) {\n $params = array(\n 'amount' => $row['Merchant Sales (Auth Currency)'],\n 'currency' => $row['Auth. Currency'],\n 'customerReference' => $row['Shopper ID'],\n 'date' => new DateTime($row['Transaction Date'], new DateTimeZone(Constants::BLUESNAP_TIME_ZONE)),\n 'status' => $row['Transaction Type'], /** @see Types::TRANSACTION_* for possible values */\n 'transactionReference' => $row['Invoice ID'],\n );\n // grab all the custom parameters\n foreach ($row as $field => $value) {\n if (strpos($field, 'Custom Field') !== false && $value !== '') {\n $parts = explode(' ', $field);\n $index = $parts[2];\n $params['customParameter' . $index] = $value;\n }\n }\n $transactions[] = new Transaction($params);\n }\n return $transactions;\n }", "title": "" }, { "docid": "20399f0dc0bf8c5f0ab11d11f312e4ad", "score": "0.5511769", "text": "public function getTransaction(string $id): Transaction\n {\n $tx = $this->get('/transactions/info/' . $id);\n\n return Transaction::fromData($tx);\n }", "title": "" }, { "docid": "771e59d34ca918b5fc8e2482bc99176e", "score": "0.5500369", "text": "public function transactional()\n {\n $this->transactional = true;\n return $this;\n }", "title": "" }, { "docid": "336e1ca748bb92c859d959de1737f9d2", "score": "0.54977304", "text": "public function getTransactionsHistory(): GetTransactionsHistory\n {\n return new GetTransactionsHistory($this->_provider);\n }", "title": "" }, { "docid": "4cf3f602f9a4ccf88c96d2739ab2bfb6", "score": "0.549114", "text": "public function setTransactions()\n {\n try {\n $this->_transactions = (new Transaction)->findAllByAttribute('accountid', $this->id);\n } catch (\\Exception $e) {\n print_r('Sorry this account has no transactions at this time, try making some money');\n }\n }", "title": "" }, { "docid": "eec1546bffcc6bdd3ce3c9eedaa3d9b2", "score": "0.5490667", "text": "public function transactions()\n {\n return $this->hasManyThrough(\n 'App\\Transaction', 'App\\Payment',\n 'order_id', 'payment_id', 'id'\n );\n\n }", "title": "" }, { "docid": "52fa4c54221801f9801e416f4d0c65e1", "score": "0.5490157", "text": "public static function create(MerchantTransactions $merchant_transactions\r\n,$config = NULL){\r\n\r\n\t $path = \"/masterpass/v6/transaction\";\r\n\r\n\t $serviceRequest = new ServiceRequest();\r\n\r\n\r\n\t $serviceRequest->requestBody($merchant_transactions);\r\n\r\n\t $serviceRequest->contentType(\"application/xml\");\r\n\r\n\t $apiClient = new ApiClient($config);\r\n \t $apiClient->setApiTracker(new APITrackerImpl());\r\n\t $apiClient->sdkErrorHandler = new MasterpassErrorHandler();\r\n\r\n\t return $apiClient->call($path,$serviceRequest,\"POST\",\"MerchantTransactions\");\r\n\t}", "title": "" }, { "docid": "299eab0bb8e02810efbd6ebdc7d34463", "score": "0.54816383", "text": "function GetTransaction()\r\n\t{\r\n\t\treturn $this->m_transaction;\r\n\t}", "title": "" }, { "docid": "7fd4de1e365d0e24539dfc1cf8514ba7", "score": "0.54782116", "text": "final public static function transactionQuery()\n {\n return self::get('transaction');\n }", "title": "" }, { "docid": "cf3ab51675848540d6fe378e701a80ba", "score": "0.5476591", "text": "public function run()\n {\n $data = [\n [ 'uuid' => Uuid::uuid4(), 'name' => 'Pagamento de contas', 'alias' => 'payments', 'action' => 'sub' ],\n [ 'uuid' => Uuid::uuid4(), 'name' => 'Depósito', 'alias' => 'deposit', 'action' => 'sum' ],\n [ 'uuid' => Uuid::uuid4(), 'name' => 'Transferênia', 'alias' => 'transfer', 'action' => 'sub' ],\n [ 'uuid' => Uuid::uuid4(), 'name' => 'Recarga de celular', 'alias' => 'recharge', 'action' => 'sub' ],\n [ 'uuid' => Uuid::uuid4(), 'name' => 'Compras (Crédito)', 'alias' => 'purchases', 'action' => 'sub' ]\n ];\n\n foreach ($data as $values) {\n TransactionType::create($values);\n }\n }", "title": "" }, { "docid": "a4ad4af7b3e2e65b54cfb07b4c2e3ace", "score": "0.54725087", "text": "public function transaction()\n {\n return $this->hasOne('App\\Model\\Transaction');\n }", "title": "" }, { "docid": "702406b252763ca0780283f7751446a5", "score": "0.5455278", "text": "public function setTransactor(TransactionInterface $transactor);", "title": "" }, { "docid": "6d2d01fe858366176aeb2ad9a470f61f", "score": "0.5454331", "text": "public function transactions()\n {\n return $this->hasMany('App\\Transaction');\n }", "title": "" }, { "docid": "6d2d01fe858366176aeb2ad9a470f61f", "score": "0.5454331", "text": "public function transactions()\n {\n return $this->hasMany('App\\Transaction');\n }", "title": "" }, { "docid": "9f7b51cef734a78fbeef2efc2ba880e8", "score": "0.5445935", "text": "public function newInstance(Request $httpRequest, Transaction $transaction);", "title": "" }, { "docid": "f9129e605f86736c3e5253ffc3ac084b", "score": "0.5443509", "text": "public function __construct()\n {\n $this->transactions[$this->transaction] = new ezcDocumentPdfTransactionalDriverWrapperState();\n }", "title": "" }, { "docid": "dec15616254771cc04af8e521c177e2e", "score": "0.54207695", "text": "function __construct($trans_id=NULL)\n\t{\n\t\t$this->trans_id = $trans_id;\n\t}", "title": "" }, { "docid": "b68e0d16611bd1ddd8a3c086b454bf2d", "score": "0.5414931", "text": "public function setTransaction($transaction)\n {\n $this->transaction = $transaction;\n return $this;\n }", "title": "" }, { "docid": "bfde1f9e35a320ad7cbd342c33b4bfb1", "score": "0.54112685", "text": "public function testCreateTransactionRequest()\n {\n }", "title": "" }, { "docid": "6c26ee76f1c021f9edef4aaf4772fe2c", "score": "0.5391849", "text": "public function show(Transaction $transaction)\n {\n return new TransactionResource($transaction);\n }", "title": "" }, { "docid": "b5be908685d94300537a9f6d5e0a44f3", "score": "0.53899", "text": "public function getTransaction()\n {\n return $this->transaction;\n }", "title": "" }, { "docid": "b5be908685d94300537a9f6d5e0a44f3", "score": "0.53899", "text": "public function getTransaction()\n {\n return $this->transaction;\n }", "title": "" }, { "docid": "b5be908685d94300537a9f6d5e0a44f3", "score": "0.53899", "text": "public function getTransaction()\n {\n return $this->transaction;\n }", "title": "" }, { "docid": "b5be908685d94300537a9f6d5e0a44f3", "score": "0.53899", "text": "public function getTransaction()\n {\n return $this->transaction;\n }", "title": "" }, { "docid": "bca1af505f94c2b145a230911894e593", "score": "0.53897774", "text": "public function createSavedCardTransaction()\n {\n $transactionParameters = $this->getTransactionParameters();\n $transactionParameters['pay'] = $this->getSavedCardPaymentParameters();\n $newTransaction = $this->TpayApi->transactions()->createTransaction($transactionParameters);\n var_dump($newTransaction);\n\n return $this;\n }", "title": "" }, { "docid": "833ef80e54239333c2ef35b16784691a", "score": "0.53883064", "text": "protected function create_transaction() {\n\n\t\tparent::create_transaction();\n\n\t\t$customer_code = preg_replace( '/[^a-zA-Z0-9]/', '', $this->get_order()->get_order_number() );\n\t\t$customer_code = Framework\\SV_WC_Helper::str_truncate( $customer_code, 17, '' );\n\n\t\t// even though Elavon says this is optional, apparently it's secretly required, so keep this\n\t\t$this->request_data['ssl_customer_code'] = $customer_code;\n\n\t\t// add card details when the card is not saved\n\t\tif ( ! isset( $this->request_data['ssl_token'] ) ) {\n\t\t\t$this->request_data['ssl_card_number'] = $this->get_order()->payment->account_number;\n\t\t\t$this->request_data['ssl_exp_date'] = $this->get_order()->payment->exp_month . $this->get_order()->payment->exp_year;\n\t\t}\n\n\t\t// add the CSC number, if available\n\t\tif ( isset( $this->get_order()->payment->csc ) ) {\n\t\t\t$this->request_data['ssl_cvv2cvc2_indicator'] = '1';\n\t\t\t$this->request_data['ssl_cvv2cvc2'] = $this->get_order()->payment->csc;\n\t\t} else {\n\t\t\t$this->request_data['ssl_cvv2cvc2_indicator'] = '0';\n\t\t}\n\n\t\t// if enabled, add the order currency for multi-currency conversion\n\t\tif ( $this->get_gateway()->is_multi_currency_required() ) {\n\t\t\t$this->request_data['ssl_transaction_currency'] = $this->get_order()->get_currency();\n\t\t}\n\t}", "title": "" }, { "docid": "4cfb5d4d7f861c3a340b18b4397934a9", "score": "0.5386697", "text": "public function beginTransaction()\n\t{\n\t\t$this->connection->beginTransaction();\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "249dfcdd707e766e902f9931e4559279", "score": "0.53863966", "text": "public function prepareTransaction();", "title": "" }, { "docid": "a74de3068b6d0d0b6c8ca16ad1b48637", "score": "0.5383717", "text": "public function transaction(float $amount, array $meta = [], string $state = Transaction::PENDING): Transaction\n {\n $transaction = $this->setup(...func_get_args());\n\n return $transaction($state);\n }", "title": "" }, { "docid": "626893d01addd61bfd399d36a9608a2b", "score": "0.5381806", "text": "public function transactions() \n {\n return $this->hasMany(Transaction::class);\n }", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "fa14cb2555ebbf99cf950681382bc2b8", "score": "0.0", "text": "public function store(Request $request)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'article_content' => 'required',\n 'image' => 'required'\n ]);\n\n $user = $request->user();\n\n Article::create([\n 'title' => $request->title,\n 'image' => $request->image,\n 'article_content' => $request->article_content,\n 'views_count' => 0,\n 'blogger_id' => $user->id,\n ]);\n\n Session::flash('message', 'Article ajouté');\n\n return redirect()->route('articles.index');\n }", "title": "" } ]
[ { "docid": "70f839d67344487e3780c8ca780ec59c", "score": "0.78098744", "text": "public function store(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "df5c676a539300d5a45f989e772221a5", "score": "0.70093757", "text": "public function store()\n {\n return $this->storeResource();\n }", "title": "" }, { "docid": "56a1d1d00b789bcc32f6ce99932cc19b", "score": "0.6548988", "text": "public function store(Request $request)\n {\n //Validate request\n $this->validate($request, [\n 'name' => 'required|max:255|unique:resources',\n 'url' => 'required|max:255|unique:resources|active_url',\n 'description' => 'required|max:10000',\n 'tags.*' => 'exists:tags,id'\n ]);\n //Create the resource\n $newResourceData = [\n 'name' => $request->name,\n 'url' => $request->url,\n 'description' => $request->description,\n 'is_published' => Auth::user() && Auth::user()->isAdmin()\n ];\n if (Auth::user()){\n $resource = Auth::user()->resources()->create($newResourceData);\n }\n else{\n $resource = Resource::create($newResourceData);\n }\n //Add the tags for this resource to the pivot table\n $resource->tags()->attach($request->tags);\n $responseText = 'Resource created';\n $responseText .= Auth::user() && Auth::user()->isAdmin() ? ' and published!' : ' and awaiting review.';\n //Take them back to the resource form so they can add more resources\n return redirect('/resources/create')->with('success', $responseText);\n }", "title": "" }, { "docid": "d5deceebf787a137745e10078f88a17c", "score": "0.64198804", "text": "public function store(StorageRequest $request)\n {\n try {\n $this->service->addStorage($request);\n return $this->Created('Successfully added new storage');\n } catch (\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch (Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "title": "" }, { "docid": "55b375ea7c339e8f0e9c38919b53b1db", "score": "0.6375281", "text": "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63650924", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63650924", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63650924", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63650924", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63650924", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63650924", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6341731", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
7a24ff0cb55a3b324ddbd564d1968ae2
Prepare files in $_FILES array for upload.
[ { "docid": "e5bac7fc694ea85ca6a01dd0e73c7451", "score": "0.6669465", "text": "public function prepare( $filekey ) {\n\t\t$prepared = [];\n\t\tif ( empty( $_FILES[ $filekey ] ) || ! is_array( $_FILES[ $filekey ] ) ) {\n\t\t\treturn $prepared;\n\t\t}\n\n\t\t$files = $_FILES[ $filekey ];\n\n\t\t// single file upload\n\t\tif ( is_string( $files['name'] ) ) {\n\t\t\t$files['type'] = wp_check_filetype( $files['name'] )['type'];\n\t\t\t$files['filekey'] = $filekey;\n\t\t\t$prepared[] = $files;\n\t\t}\n\n\t\t// multiple file upload\n\t\tif ( is_array( $files['name'] ) ) {\n\t\t\tforeach ( $files['name'] as $key => $name ) {\n\t\t\t\t$prepared[] = [\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'type' => wp_check_filetype( $name )['type'],\n\t\t\t\t\t'tmp_name' => $files['tmp_name'][ $key ],\n\t\t\t\t\t'error' => $files['error'][ $key ],\n\t\t\t\t\t'size' => $files['size'][ $key ],\n\t\t\t\t\t'filekey' => $filekey,\n\t\t\t\t];\n\t\t\t}\n\t\t}\n\n\t\treturn $prepared;\n\t}", "title": "" } ]
[ { "docid": "b582453d29992de25422821a501f4402", "score": "0.74852264", "text": "public function initFiles(){\n\n\t\t$this->files = [];\n\t\tforeach ($_FILES as $field => $files) { //pour tout les input file\n\t\t\t$test = current($files);\n\t\t\tif(is_array($test)){ //si multiple\n\t\t\t\tforeach ($files as $index => $value) { //convertion du tableau\n\t\t\t\t\tforeach ($value as $key => $v) {\n\t\t\t\t\t\t$this->files[$field][$key][$index] = $v;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{ //sinon tout va bien\n\t\t\t\t$this->files[$field] = $files;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7d1261b50874caa619ca9276e956c9ed", "score": "0.6923324", "text": "private function _setFileObject() {\n try {\n $fileArry = $_FILES;\n $_FILES = array();\n\n $fName = $fType = $fTmpName = $fErr = $fSize = array();\n foreach ($fileArry as $key => $val) {\n $fArr = explode('_', $key);\n $fKey = $fArr[0];\n $fPos = $fArr[1];\n\n $fName[] = $val['name'];\n $fType[] = $val['type'];\n $fTmpName[] = $val['tmp_name'];\n $fErr[] = $val['error'];\n $fSize[] = $val['size'];\n\n $_FILES[$fKey] = array(\n 'name' => $fName,\n 'type' => $fType,\n 'tmp_name' => $fTmpName,\n 'error' => $fErr,\n 'size' => $fSize\n );\n }\n } catch (Exception $ex) {\n throw new Exception('Error in _setFileObject function - ' . $ex);\n }\n }", "title": "" }, { "docid": "612a489ab97bcef201f448aff71b25bb", "score": "0.68798894", "text": "private function normalizeFiles(): array\n {\n $files = $_FILES;\n $normalized = [];\n foreach ($files as $key => $value) {\n if ($value instanceof UploadedFileInterface) {\n $normalized[$key] = $value;\n } elseif (\\is_array($value) && isset($value['tmp_name'])) {\n $normalized[$key] = $this->createUploadedFileFromSpec($value);\n } elseif (\\is_array($value)) {\n $normalized[$key] = $this->normalizeFiles($value);\n } else {\n throw new \\InvalidArgumentException('Invalid value in files specification');\n }\n }\n return $normalized;\n }", "title": "" }, { "docid": "f9cd9d996c5706b8d59979b429294022", "score": "0.66756165", "text": "public static function prefetchFiles()\r\n\t{\r\n\t\tself::$files = array();\r\n\r\n\t\tif(!isset($_FILES) || !is_array($_FILES)) return;\r\n\r\n\t\tforeach($_FILES as $class=>$info) {\r\n\t\t\tself::collectFilesRecursive($class, $info['name'], $info['tmp_name'], $info['type'], $info['size'], $info['error']);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "94b0b0353fe36d7ffc79eb33cc8e42e6", "score": "0.6620841", "text": "public static function organizeFiles(): void\n\t{\n\t\t$files = [];\n\n\t\t// named file set\n\t\tforeach ($_FILES as $name => $info) {\n\t\t\t$files_count = count($info['name']);\n\t\t\t$files[$name] = array_fill(0, $files_count, []);\n\n\t\t\t// file in an info field\n\t\t\tfor ($i = 0; $i < $files_count; $i++) {\n\t\t\t\t// info field\n\t\t\t\tforeach ($info as $key => $values)\n\t\t\t\t\t$files[$name][$i][$key] = $values[$i];\n\t\t\t}\n\t\t}\n\n\t\t// update files\n\t\t$_FILES = $files;\n\t}", "title": "" }, { "docid": "132ea30110fdfecac9262120b941cdc6", "score": "0.65552825", "text": "private function getUploads() {\n if (!empty($_FILES)) {\n foreach ($_FILES as $key => $value) {\n $this->files[$key] = $value;\n }\n }\n }", "title": "" }, { "docid": "b58a4b9ec367d14868231ef0c48940a0", "score": "0.6265229", "text": "public function dz_files()\n {\n if (!empty($_FILES) && $_FILES['file']) {\n $file = $_FILES['file'];\n\n\n foreach ($file['error'] as $key=>$error) {\n $uploadfile = sys_get_temp_dir().basename($file['name']['key']);\n move_uploaded_file($file['tmp_name'],$uploadfile);\n\n }\n }\n }", "title": "" }, { "docid": "bfd82a31f415b649782cc8cd37c7748b", "score": "0.6220901", "text": "protected function _FILES()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "36872f316e130849ff09867df6c8695c", "score": "0.621646", "text": "public function uploadMultiple()\n {\n\n foreach ($this->uploads['multiple'] as $field) {\n $files = [];\n\n if (is_array(Request::file($field))) {\n\n foreach (Request::file($field) as $file) {\n\n if ($file instanceof UploadedFile) {\n $files[] = Uploader::upload($file, $this->upload_folder . '/' . $field);\n }\n\n }\n\n }\n\n $this->setFileMultiple($field, $files);\n }\n\n }", "title": "" }, { "docid": "293557f2239d1cfea523fe3b8abc56d5", "score": "0.6172011", "text": "protected function uploadFiles() {\n\t\tglobal $bsgUEModulePDFUploadThreshold;\n\n\t\tforeach( $this->aFiles as $sType => $aFiles ) {\n\t\t\t//Backwards compatibility to old inconistent PDFTemplates (having\n\t\t\t//\"STYLESHEET\" as type but linking to \"stylesheets\")\n\t\t\t//TODO: Make conditional?\n\t\t\tif( $sType == 'IMAGE' ) $sType = 'images';\n\t\t\tif( $sType == 'STYLESHEET' ) $sType = 'stylesheets';\n\n\t\t\t$aPostData = array(\n\t\t\t\t'fileType'\t=> $sType,\n\t\t\t\t'documentToken' => $this->aParams['document-token'],\n\t\t\t\t'wikiId' => wfWikiID()\n\t\t\t);\n\n\t\t\t$aErrors = array();\n\t\t\t$aPostFiles = array();\n\t\t\t$iCounter = 0;\n\t\t\t$iCurrentUploadSize = 0;\n\t\t\tforeach( $aFiles as $sFileName => $sFilePath ) {\n\t\t\t\tif( file_exists( $sFilePath) == false ) {\n\t\t\t\t\t$aErrors[] = $sFilePath;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$iFileSize = filesize( $sFilePath );\n\t\t\t\tif( $iCurrentUploadSize >= $bsgUEModulePDFUploadThreshold ) {\n\t\t\t\t\t$this->doFilesUpload( array_merge( $aPostFiles , $aPostData), $aErrors );\n\n\t\t\t\t\t//Reset all loop variables\n\t\t\t\t\t$aErrors = array();\n\t\t\t\t\t$aPostFiles = array();\n\t\t\t\t\t$iCounter = 0;\n\t\t\t\t\t$iCurrentUploadSize = $iFileSize;\n\t\t\t\t}\n\n\t\t\t\t$aPostFiles['file'.$iCounter.'_name'] = $sFileName;\n\t\t\t\t$aPostFiles['file'.$iCounter] = class_exists( 'CURLFile' ) ? new CURLFile( $sFilePath ) : '@'.$sFilePath;\n\t\t\t\t$iCounter++;\n\t\t\t\t$iCurrentUploadSize += $iFileSize;\n\t\t\t}\n\t\t\t$this->doFilesUpload( array_merge( $aPostFiles, $aPostData ), $aErrors ); //For last iteration contents\n\t\t}\n\t}", "title": "" }, { "docid": "ba07bc763e708721e5c4f655b70c6233", "score": "0.61579055", "text": "public function add_uploaded_files( $keys = null ) {\r\n\t\t\tif ( $this->is_add_uploaded ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t$keys = ( $keys ) ? (array)$keys : null;\r\n\t\t\t$this->is_add_uploaded = true;\r\n\t\t\tforeach( $_FILES as $key => $data ) {\r\n\t\t\t\tif ( $keys && !in_array( $key, $keys ) ) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$data['tmp_name'] = (array)$data['tmp_name'];\r\n\t\t\t\t$data['name'] = (array)$data['name'];\r\n\t\t\t\t$data['error'] = (array)$data['error'];\r\n\t\t\t\t$data['type'] = (array)$data['type'];\r\n\t\t\t\tfor( $i = 0, $count = count( $data['tmp_name'] ); $i < $count; $i++ ) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t$file = self::FILE_OBJECT_TEMPLATE;\r\n\t\t\t\t\t$file['path'] = $data['tmp_name'][$i];\r\n\t\t\t\t\t$file['origname'] = $data['name'][$i];\r\n\t\t\t\t\t$file['name'] = self::strip_to_valid_filename( $data['name'][$i] );\r\n\t\t\t\t\t$file['uploadKey'] = $key;\r\n\t\t\t\t\t$file['mime'] = $data['type'][$i];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// php.ini -> 'upload_max_filesize' exceeded error\r\n\t\t\t\t\tif ( $data['error'][$i] === UPLOAD_ERR_INI_SIZE ) {\r\n\t\t\t\t\t\t$this->add_invalid_file( $file, self::ERR_FILE_UPLOAD_SIZE ); \r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\t$this->process_file_add( $file );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "521ae080804a58e9c82f0e72a4c65a92", "score": "0.6145173", "text": "public static function filesValidate($restrictTypes = '')\n {\n self::$_files = [];\n\n foreach ($_FILES as $k => $f) {\n // Not allow commas and ; on the file name, to prevent future problems when getting a the concatenated ones\n $f['name'] = str_replace(',', '.', $f['name']);\n $f['name'] = str_replace(';', '.', $f['name']);\n\n if ($f['error'] > 0) {\n UtilsHttp::error404();\n die();\n }\n\n if ($f['size'] <= 0) {\n UtilsHttp::error404();\n die();\n }\n\n if ($restrictTypes != '') {\n if (!in_array($f['type'], explode(';', $restrictTypes))) {\n UtilsHttp::error404();\n die();\n }\n }\n $f['inputName'] = $k;\n $f['extension'] = Managers::ftpFileSystem()->fileExtension($f['name']);\n $f['data'] = '';\n array_push(self::$_files, $f);\n }\n }", "title": "" }, { "docid": "110450e9348947bcc3f1b7a19ab64a62", "score": "0.60951626", "text": "public static function parseUploads() : array {\n\t\t$files = [];\n\t\t\n\t\tforeach ( $_FILES as $name => $file ) {\n\t\t\tif ( \\is_array($file['name']) ) {\n\t\t\t\tforeach ( $file['name'] as $n => $f ) {\n\t\t\t\t\t$files[$name][$n] = [];\n\t\t\t\t\t\n\t\t\t\t\tforeach ( $file as $k => $v ) {\n\t\t\t\t\t\t$files[$name][$n][$k] = \n\t\t\t\t\t\t\t$file[$k][$n];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n \t\t$files[$name][] = $file;\n\t\t}\n\t\treturn $files;\n\t}", "title": "" }, { "docid": "e47ffec9ed013d089d1c5a5fd2015f8a", "score": "0.60928243", "text": "function uploadMultiFiles($filesField, $targetPath) {\r\n $filesList = [];\r\n if (!empty($_FILES)) { \r\n try \r\n {\r\n foreach($_FILES[$filesField]['tmp_name'] as $index => $file) {\r\n $targetFileName = uniqid() . '_' . $_FILES[$filesField]['name'][$index];\r\n if (move_uploaded_file($file, $targetPath . $targetFileName))\r\n array_push($filesList, $targetFileName);\r\n };\r\n echo \"done\";\r\n } catch (\\Throwable $th) \r\n {\r\n echo \"failure\";\r\n }\r\n }\r\n else\r\n {\r\n echo \"choose a file please\";\r\n }\r\n return $filesList;\r\n}", "title": "" }, { "docid": "b9cd1dfbe598b410e571c3107a83cd69", "score": "0.5994311", "text": "private static function fixFileArray(array &$arr){\n $fileKeys = array('name', 'type', 'tmp_name', 'error', 'size');\n foreach($_FILES as $basename => $fileArr){\n $res = array();\n foreach($fileKeys as $key){\n if( array_key_exists($key, $fileArr) ){\n if( is_array($fileArr[$key]) ){\n $subkey = self::flatten_file($fileArr[$key]);\n foreach($subkey as $k => $v){\n $res[$basename.$k.'['.$key.']'] = ($key == 'type' ? strtolower($v) : $v);\n if( $key == 'name' && !array_key_exists($basename.$k.'[ext]', $res) )\n $res[$basename.$k.'[ext]'] = get::fullext($v);\n }\n }else{\n $res[$basename.'['.$key.']'] = ($key == 'type' ? strtolower($fileArr[$key]) : $fileArr[$key]);\n if( $key == 'name' && !array_key_exists($basename.'[ext]', $res) )\n $res[$basename.'[ext]'] = get::fullext($fileArr[$key]);\n }\n }\n }\n foreach($res as $path => $v){\n $pa = formElement::getFieldPath($path, false, false);\n $ref = &$arr;\n while( count($pa) > 0 ){\n $idx = array_shift($pa);\n if( !array_key_exists($idx, $ref) )\n $ref[$idx] = array();\n $ref = &$ref[$idx];\n }\n $ref = $v;\n unset($ref);\n }\n }\n }", "title": "" }, { "docid": "c4513422e3026e58a5f0c398afb2c73e", "score": "0.5989937", "text": "function LoadUploadedFiles()\n {\n\t\t$upld_folder = $this->EnsureTmpUploadFolder();\n\t\t\n foreach($this->upload_fields as $filefield)\n {\n $tmp_filepath = $this->globaldata->files[$filefield]['tmp_name'];\n if(is_uploaded_file($tmp_filepath))\n {\n $filename = $this->globaldata->files[$filefield]['name'];\n\t\t\t\t$filename = $this->trim_file_name($filename,$this->globaldata->files[$filefield][\"type\"]);\n \n if(!$this->config->allow_nonsecure_file_attachments && \n $this->IsNonSecureFile($filename))\n {\n $this->error_handler->NotifyError(\n \"File Upload handler: skipping nonsecure file attachment: $filename\");\n continue;\n }\n\n $upld_path = $upld_folder.\"/\".$filename;\n \n $upld_path = \n $this->CopyFile_Prevent_Overwrite($tmp_filepath, $upld_path);\n\n $this->logger->LogInfo(\"File Upload handler: loaded file from $tmp_filepath to $upld_path.\");\n\n $mimetype = $this->globaldata->files[$filefield][\"type\"];\n\n //NOTE: LoadUploadedFiles is for native file uploads where the file is submitted along with the\n //form submission. In this case, more than one files is not supported per field.\n $existing_file = $this->find_file_uploaded($filefield);\n if($existing_file >= 0)\n {\n unlink($this->loaded_files[$existing_file]['loaded_file']);\n $this->loaded_files[$existing_file] = array(\"input_name\"=>$filefield,\n \"loaded_file\"=>$upld_path,\n \"mime_type\"=>$mimetype); \n }\n else\n {\n $this->loaded_files[] = array(\"input_name\"=>$filefield,\n \"loaded_file\"=>$upld_path,\n \"mime_type\"=>$mimetype);\n }\n }//if\n }//foreach\n \n \n \n return true;\n }", "title": "" }, { "docid": "45898ea2a2b6ca481cd403c277b61c37", "score": "0.5907527", "text": "public function processUploadedFiles($album_uid, $conf) {\r\n\t\t$errors = null;\r\n\t\t$arrKeys = array_keys($_FILES);\r\n\t\tfor ($i = 0; $i < sizeof($_FILES); $i++) {\r\n\t\t\t$file = $_FILES[$arrKeys[$i]];\r\n\t\t\tif ($file['name'] != '' && $file['type'] != '' && $file['tmp_name'] != '' && !self::isPhotosPerAlbumLimitExceeded($album_uid, $conf)) {\r\n\t\t\t\t$hasFileErrors = false;\r\n\t\t\t\t// Check if file is OK\r\n\t\t\t\tif (!$file['error'] == '0' && $file['name'] != '') {\r\n\t\t\t\t\t$errors .= tx_cwtcommunity_lib_common::generateErrorMessage(\"An unknown error has occured. Please contact your system administrator.\");\r\n\t\t\t\t\t$hasFileErrors = true;\r\n\t\t\t\t}\r\n\t\t\t\t// Check if file type is allowed\r\n\t\t\t\t$type = explode('.', $file['name']);\r\n\t\t\t\t$type = strtolower($type[sizeof($type) - 1]);\r\n\t\t\t\t$allowedTypes = explode(',', $conf['album.']['photo.']['new.']['formatsAllowed']);\r\n\t\t\t\tif (array_search($type, $allowedTypes) == '') {\r\n\t\t\t\t\t$errors .= tx_cwtcommunity_lib_common::generateErrorMessage('\"'.$file['name'].'\": '.tx_cwtcommunity_lib_common::getLL('PHOTO_NEW_ERROR_WRONGTYPE').'<br/>');\r\n\t\t\t\t\t$hasFileErrors = true;\r\n\t\t\t\t}\r\n\t\t\t\t// Check if file size is below the allowed limit\r\n\t\t\t\t$allowedSize = $conf['album.']['photo.']['new.']['maxSize'] * 1000;\r\n\t\t\t\tif ($file['size'] > $allowedSize) {\r\n\t\t\t\t\t$errors .= tx_cwtcommunity_lib_common::generateErrorMessage('\"'.$file['name'].'\": '.tx_cwtcommunity_lib_common::getLL('PHOTO_NEW_ERROR_WRONGSIZE').'<br/>');\r\n\t\t\t\t\t$hasFileErrors = true;\r\n\t\t\t\t}\r\n\t\t\t\t\n\t\t\t\tif (!file_exists($conf['album.']['photo.']['storageFolder'])) {\n\t\t\t\t\t$errors .= tx_cwtcommunity_lib_common::generateErrorMessage('\"'.$conf['album.']['photo.']['storageFolder'].'\": '.tx_cwtcommunity_lib_common::getLL('PHOTO_NEW_ERROR_WRONGFOLDER').'<br>');\n\t\t\t\t\t$hasFileErrors = true;\n\t\t\t\t}\r\n\t\t\t\t// Move file and create DB record, if not errors have occured\r\n\t\t\t\tif (!$hasFileErrors) {\n\t\t\t\t\t// Make filename unique\r\n\t\t\t\t\t$uniqueFilename = tx_cwtcommunity_lib_common::makeFilenameUnique(tx_cwtcommunity_lib_common::cleanFilename($file['name']));\r\n\t\t\t\t\t\t\t\t\t\t \r\n\t\t\t\t\t// Move file to configured storage directory\r\n\t\t\t\t\t$storageFolder = $conf['album.']['photo.']['storageFolder'];\r\n\t\t\t\t\tGeneralUtility::upload_copy_move($file['tmp_name'], $storageFolder.$uniqueFilename);\r\n\t\t\t\t\t$dimensions = getimagesize($storageFolder.$uniqueFilename);\r\n\r\n\t\t\t\t\t// Create database record\r\n\t\t\t\t\tself::createNewPhoto($album_uid, $uniqueFilename, $file['size'], $dimensions[0], $dimensions[1]);\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $errors;\r\n\t}", "title": "" }, { "docid": "006427f256077ec5521d2606356d3ccb", "score": "0.58979315", "text": "public function getFilesArray($fields = true)\n\t{\n\t\t$files = [];\n\n\t\tif (is_string($fields))\n\t\t\t$fields = [$fields];\n\n\t\tforeach ($_FILES as $field => $filesInfo)\n\t\t{\n\t\t\tif (!empty($filesInfo))\n\t\t\t{\n\t\t\t\tif ((is_array($fields) && in_array($field, $fields)) || (is_bool($fields) && $fields))\n\t\t\t\t\t$uploadFile = true;\n\t\t\t\telse\n\t\t\t\t\t$uploadFile = false;\n\n\t\t\t\tif ($uploadFile && isset($filesInfo['name']))\n\t\t\t\t{\n\t\t\t\t\t// array of files exists rather than just a single file; loop through them\n\t\t\t\t\tif (is_array($filesInfo['name']))\n\t\t\t\t\t{\n\t\t\t\t\t\t$keys = array_keys($filesInfo['name']);\n\n\t\t\t\t\t\tforeach ($keys as $key)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$files[$field] = (object) [\n\t\t\t\t\t\t\t\t'name' => trim($filesInfo['name'][$key]),\n\t\t\t\t\t\t\t\t'type' => $filesInfo['type'][$key],\n\t\t\t\t\t\t\t\t'tmpName' => $filesInfo['tmp_name'][$key],\n\t\t\t\t\t\t\t\t'error' => $filesInfo['error'][$key],\n\t\t\t\t\t\t\t\t'size' => $filesInfo['size'][$key],\n\t\t\t\t\t\t\t\t'field' => $field,\n\t\t\t\t\t\t\t\t'key' => $key,\n\t\t\t\t\t\t\t];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$fileInfo = $filesInfo;\n\n\t\t\t\t\t\t$files[$field] = (object) [\n\t\t\t\t\t\t\t'name' => trim($fileInfo['name']),\n\t\t\t\t\t\t\t'type' => $fileInfo['type'],\n\t\t\t\t\t\t\t'tmpName' => $fileInfo['tmp_name'],\n\t\t\t\t\t\t\t'error' => $fileInfo['error'],\n\t\t\t\t\t\t\t'size' => $fileInfo['size'],\n\t\t\t\t\t\t\t'field' => $field,\n\t\t\t\t\t\t\t'key' => 0,\n\t\t\t\t\t\t];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $files;\n\t}", "title": "" }, { "docid": "07f7dc96c65d24018c443f157531ab47", "score": "0.58695316", "text": "public function upload(){\n $file = current($_FILES);\n\n if(is_array($file['name'])){\n // handle multiple files upload\n foreach ($file['name'] as $key => $value) {\n $currentFile['name'] = $file['name'][$key];\n $currentFile['tmp_name'] = $file['tmp_name'][$key];\n $currentFile['type'] = $file['type'][$key];\n $currentFile['size'] = $file['size'][$key];\n $currentFile['error'] = $file['error'][$key];\n\n if($this->isValid($currentFile)){\n $this->moveFile($currentFile);\n }\n }\n }else {\n // exit(\"Single file is uploaded\");\n if($this->isValid($file))\n {\n $this->moveFile($file);\n return true;\n }\n return false;\n }\n }", "title": "" }, { "docid": "caf2b45ec8e31d495decf07ad3f4ee0b", "score": "0.5867998", "text": "public function preUpload()\n {\n if (null !== $this->file) {\n if(!is_dir($this->getUploadRootDir())){\n mkdir($this->getUploadRootDir(), 0777, true);\n }\n\n $this->ext = $this->file->guessExtension();\n }\n }", "title": "" }, { "docid": "59a30758ec1df6bffda72ee9cc67a9da", "score": "0.58411634", "text": "private function getUploadedFiles()\n {\n $list = array();\n \n if(isset($_REQUEST['files']))\n {\n $files = explode('::', $_REQUEST['files']);\n foreach($files as $index => $item)\n {\n list($name, $src, $size) = explode(':', $item);\n \n $list[] = array(\n 'name' => $name,\n 'src' => $src,\n 'size' => $size \n );\n }\n }\n \n return $list;\n }", "title": "" }, { "docid": "327a50d6647d87b8769effd3cf15764a", "score": "0.58091486", "text": "private function prepare_fields( $fields ) {\n\n\t\t\tforeach ( $fields as $field ) {\n\n\t\t\t\tif ( 'upload' === $field['type'] ) {\n\t\t\t\t\t// The form has an upload field so flag it to add the enctype=\"multipart/form-data\" attribute to the form tag.\n\t\t\t\t\t$this->is_upload_form = true;\n\t\t\t\t}\n\n\t\t\t\t$field = $this->prepare_field( $field );\n\t\t\t\t$field = $this->automate_validation( $field );\n\n\t\t\t\t$fields[ $field['name'] ] = $field;\n\n\t\t\t}\n\n\t\t\treturn $fields;\n\n\t\t}", "title": "" }, { "docid": "25729b5e756e96339c14433c078925ec", "score": "0.5781653", "text": "function ProcessAllUploadFile()\r\n\t{\r\n\t\t$files = $this -> FILES;\r\n\t\t$i = 0;\r\n\t\t$j = 0;\r\n\t\tforeach($files as $filesArray){\r\n\t\t\tif(sizeof($filesArray['error']) > 1 || is_array($filesArray['error'])){\r\n\t\t\t\tforeach($filesArray['error'] as $key => $val){\r\n\t\t\t\t\tif($val == 0){\r\n\t\t\t\t\t\tif(is_uploaded_file($filesArray['tmp_name'][$key])){\r\n\t\t\t\t\t\t\tif(!$this -> FILE_TYPE || in_array(array_pop(explode('.',$filesArray['name'][$key])),$this -> FILE_TYPE)){\r\n\t\t\t\t\t\t\t\tif($filesArray['size'][$key] <= $this -> FILE_SIZE){\r\n\t\t\t\t\t\t\t\t\t$path = $this -> FILE_DIR . '/' . mb_convert_encoding($filesArray['name'][$key],'GBK','UTF-8');\r\n\t\t\t\t\t\t\t\t\tif(move_uploaded_file($filesArray['tmp_name'][$key], $path)){\r\n\t\t\t\t\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'][$key];\r\n\t\t\t\t\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x000;\r\n\t\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'][$key];\r\n\t\t\t\t\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x005;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'][$key];\r\n\t\t\t\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x001;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'][$key];\r\n\t\t\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x002;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'][$key];\r\n\t\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x003;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t$this -> UPLOAD_ERROR[$j]['name'] = $filesArray['name'][$key];\r\n\t\t\t\t\t\t$this -> UPLOAD_ERROR[$j]['error'] = $val;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$i++;\r\n\t\t\t\t\t$j++;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tif($filesArray['error'] == 0){\r\n\t\t\t\t\tif(is_uploaded_file($filesArray['tmp_name'])){\r\n\t\t\t\t\t\tif(!$this -> FILE_TYPE || in_array(array_pop(explode('.',$filesArray['name'])),$this ->FILE_TYPE)){\r\n\t\t\t\t\t\t\tif($filesArray['size'] <= $this -> FILE_SIZE){\r\n\t\t\t\t\t\t\t\t$path = $this -> FILE_DIR . '/' . mb_convert_encoding($filesArray['name'],'GBK','UTF-8');\r\n\t\t\t\t\t\t\t\tif(move_uploaded_file($filesArray['tmp_name'], $path)){\r\n\t\t\t\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'];\r\n\t\t\t\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x000;\r\n\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'];\r\n\t\t\t\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x005;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'];\r\n\t\t\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x001;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'];\r\n\t\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x002;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'];\r\n\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x003;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tprint_r($filesArray['name']);\r\n\t\t\t\t\t$this -> UPLOAD_ERROR[$j]['name'] = $filesArray['name'];\r\n\t\t\t\t\t$this -> UPLOAD_ERROR[$j]['error'] = $filesArray['error'];\r\n\t\t\t\t}\r\n\t\t\t\t$i++;\r\n\t\t\t\t$j++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this -> UPLOAD_FILES = $saveFilesList;\r\n\t}", "title": "" }, { "docid": "0bdcfa1654d5e9d0e3b360c7c432276d", "score": "0.5778762", "text": "public function normalizeUpload($data)\n {\n if (!is_array($data)) {\n throw new \\InvalidArgumentException('Uploaded data is not an array.' . PHP_EOL\n . 'Propably you just forget to add enctype multipart/form-data to form.');\n }\n\n // Normalize for multiple files\n if (is_array($data['tmp_name'])) {\n $result = array();\n\n foreach ($data as $key => $all) {\n foreach ($all as $i => $val) {\n $result[$i][$key] = $val;\n }\n }\n\n return $result;\n }\n\n return $data;\n }", "title": "" }, { "docid": "ff88a4da7a5d2a179150dcaadb755450", "score": "0.5744492", "text": "private function createFiles($request)\n {\n $this->createFilesFromArray($request, $request->getParams);\n $this->createFilesFromArray($request, $request->postParams);\n }", "title": "" }, { "docid": "2bbde622dc2170815441b367b94d5dd1", "score": "0.5708374", "text": "public function processRequest() {\n \n if (!$_FILES) {\n $this->addError(\"No files\");\n $this->response(400);\n }\n\n foreach ($_FILES as $file) {\n\n $this->res_info['file'] = $file;\n \n // Validate file \n if ($file['error'] !== 0) {\n $this->addError(\"File error code \" . $file['error']);\n $this->response(400);\n }\n \n $ok = $this->getMp3Tags($file['tmp_name']);\n\n if (!$ok) { \n $this->response(400);\n } \n\n $exist = $this->fileEntryExist();\n\n if ($exist) { \n $this->response(400);\n }\n \n $dir = $this->initDirectory();\n $filename = $this->getStdFileName();\n \n // Move from '/tmp' to '$dir' and insert entry in database\n $uploaded = move_uploaded_file(\n $file['tmp_name'], $dir['dir'] . '/' . $filename\n ); \n\n if (!$uploaded) {\n $this->addError(\"Datoteka ni nalozena\");\n $this->response(500);\n }\n \n $this->insertSong($filename, $dir['subdir']);\n $this->addInfo(\"Datoteka \" . $file['name'] . \" nalozena\");\n $this->setFileValid(1);\n $this->response();\n }\n\n $this->addError(\"??? Kje pa smo jebemti ???\");\n $this->response(400);\n }", "title": "" }, { "docid": "53caa49d8e7ca47bc0889f96a4b79ed4", "score": "0.57030684", "text": "function form_data() {\n return array_merge($_POST, $_FILES);\n}", "title": "" }, { "docid": "a9495fc5ece2e7801f7b8d1c2360dd57", "score": "0.5688545", "text": "function deskDropUpload(){\r\n\r\n\t\t\tforeach($_FILES as $k => $v){\r\n\t \t\tforeach($v['tmp_name'] as $i => $file){\r\n\t\t \t\t$tmp = $file;\r\n\r\n\t\t \t\t// User Upload Directory\r\n\t\t \t\t$user = ($_SESSION['user']['id']) ? $_SESSION['user']['id'] : 0;\r\n\t\t \t\t$dir = \"/^/$_SERVER[HTTP_HOST]/\".$user.\"/\";\r\n\r\n\t\t \t\t// Make Dir!\r\n\t\t \t\tif(!is_dir($_SERVER['DOCUMENT_ROOT'].$dir)){\r\n\t\t \t\t\tmkdir($_SERVER['DOCUMENT_ROOT'].$dir, 0755, true);\r\n\t\t \t\t}\r\n\r\n\t\t \t\t$src = $dir . md5_file($tmp);\r\n\t\t move_uploaded_file($tmp, $_SERVER['DOCUMENT_ROOT'].$src);\r\n\r\n\t\t $_POST['user_id'] \t= $_SESSION['user']['id'];\r\n\r\n\r\n\t\t\t\t\t$this->mFile = array(\r\n\t\t\t\t\t\t'src' => $_SERVER['DOCUMENT_ROOT'].$src,\r\n\t\t\t\t\t\t'real' => htmlentities( urlencode($v['name'][$i]) ),\r\n\t\t\t\t\t\t'name' => $v['name'][$i],\r\n\t\t\t\t\t\t'size' => $v['size'][$i]\r\n\t\t\t\t\t);\r\n\r\n\r\n\t\t\t\t\t$this->Index();\r\n\t \t\t}\r\n\t \t}\r\n\t\t}", "title": "" }, { "docid": "39a09c3ac0165b345fcde99a7eac579d", "score": "0.56675", "text": "protected function _process_post()\n\t{\n\t\tforeach ($_POST as $k=>$v)\n\t\t{\n\t\t\tif (substr($k, 0, 3)=='_s_' && substr($k, -7)=='_action') {\n\t\t\t\t$this->_form_posted = substr($k, 3, -7);\n\t\t\t\t$this->_form_action = $v;\n\t\t\t} else {\n\t\t\t\t$this->vars[$k] = $v;\n\t\t\t}\n\t\t}\n\n\t\tforeach ($_FILES as $k=>$v)\n\t\t{\n\t\t\tif ($v['error'] == UPLOAD_ERR_OK)\n\t\t\t{\n\t\t\t\tif (is_uploaded_file($v['tmp_name']))\n\t\t\t\t{\n\t\t\t\t\tif ($v['size'] != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->_uploaded_files[$k] = UPLOAD_ERR_OK;\n\t\t\t\t\t\t$this->vars[$k] = '_uploaded_file_';\n\t\t\t\t\t\t$this->vars[$k.':name'] = preg_replace('@[\\\\\\\\/\\\\*]@', '', $v['name']);\n\t\t\t\t\t\t$this->vars[$k.':type'] = $v['type'];\n\t\t\t\t\t\t$this->vars[$k.':size'] = $v['size'];\n\t\t\t\t\t\t$this->vars[$k.':tmp_name'] = $v['tmp_name'];\n\t\t\t\t\t}\n\t\t\t\t\telse { $this->_uploaded_files[$k] = UPLOAD_ERR_NO_FILE; }\n\t\t\t\t}\n\t\t\t\telse { $this->_uploaded_files[$k] = UPLOAD_ERR_PARTIAL; }\n\t\t\t}\n\t\t\telseif ($v['error'] != UPLOAD_ERR_NO_FILE) {\n\t\t\t\t$this->_uploaded_files[$k] = $v['error'];\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "5b5593c3cfe522c78778f93d88a1c7a4", "score": "0.56651443", "text": "private function prepare() {\r\n $this->files = $this->prepareDir('');\r\n }", "title": "" }, { "docid": "c2ca903cefbca54847fdc808151a71a3", "score": "0.5645626", "text": "protected function _processAttachments()\n {\n /* If the form is setup to accept attachments */\n if ($this->form->getAttachmentNames()) {\n $media_path = Mage::getBaseDir('media') . DS;\n $media_sub_folder = 'optimiseweb/formprocessor' . DS;\n $final_media_path = $media_path . $media_sub_folder;\n\n $uploader = '';\n $upload = '';\n $attachmentsArray = array();\n\n /* Loop through the attachment names provided in the form setup */\n foreach ($this->form->getAttachmentNames() as $attachment) {\n if (isset($_FILES[$attachment]['name']) && $_FILES[$attachment]['name'] != '') {\n $uploader = new Varien_File_Uploader($attachment);\n $uploader->setAllowedExtensions($this->form->getAttachmentAllowedExtensions());\n $uploader->setAllowRenameFiles(true);\n $uploader->setFilesDispersion(false);\n $upload = $uploader->save($final_media_path, $this->form->getAttachmentPrependName() . $_FILES[$attachment]['name']);\n /* Create and array of the attachments */\n $attachmentsArray[] = array(\n 'content' => file_get_contents($final_media_path . $upload['file']),\n 'mime' => $upload['type'],\n 'filename' => $upload['file'],\n );\n /* Save the attachment or detele it? */\n if ($this->form->getAttachmentSave() == 0) {\n unlink($final_media_path . $upload['file']);\n } else {\n $this->post['attachments'][$attachment][url] = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . $media_sub_folder . $upload['file'];\n }\n $this->post['attachments'][$attachment][filename] = $upload['file'];\n }\n }\n /* Check if the attachment is to be attached to the emails */\n if ($this->form->getAttachmentEmail()) {\n if (in_array('owner', $this->form->getAttachmentEmail())) {\n $this->ownerEmail->attachments = $attachmentsArray;\n }\n if (in_array('visitor', $this->form->getAttachmentEmail())) {\n $this->visitorEmail->attachments = $attachmentsArray;\n }\n }\n }\n }", "title": "" }, { "docid": "28247ce5c8c5a70fdaee71091da2ccd9", "score": "0.5644258", "text": "function fn_rebuild_files($name)\n{\n $rebuilt = array();\n\n if (!is_array(@$_FILES[$name])) {\n return $rebuilt;\n }\n\n if (isset($_FILES[$name]['error'])) {\n if (!is_array($_FILES[$name]['error'])) {\n return $_FILES[$name];\n }\n } elseif (fn_is_empty($_FILES[$name]['size'])) {\n return $_FILES[$name];\n }\n\n foreach ($_FILES[$name] as $k => $v) {\n if ($k == 'tmp_name') {\n $k = 'path';\n }\n $rebuilt = fn_array_multimerge($rebuilt, $v, $k);\n }\n\n return $rebuilt;\n}", "title": "" }, { "docid": "94b47f5b46d2b0ce7ee9c3c20732763d", "score": "0.5627357", "text": "function create_file(){\n $files = $_FILES;\n foreach ($files as $file_name => $file_info){\n $_FILES[\"files\"][\"name\"][$file_name] = $file_info['name'];\n $_FILES[\"files\"][\"tmp_name\"][$file_name] = $file_info['tmp_name'];\n $_FILES[\"files\"][\"size\"][$file_name] = $file_info['size'];\n $_FILES[\"files\"][\"error\"][$file_name] = $file_info['error'];\n }\n /*function address : services module /resources /file_resource.inc*/\n return _file_resource_create_raw();\n}", "title": "" }, { "docid": "506282509d39ad74e816e5675bbc0d11", "score": "0.56270915", "text": "public function files($key = null)\n {\n $files = filter_var_array($_FILES);\n array_walk_recursive($files, function(&$value) {\n $value = JORequest::setAntiInjection($value);\n });\n\n if (isset($files[$key])) {\n return $files[$key];\n } else {\n return $files;\n }\n }", "title": "" }, { "docid": "b79b34b3230aca17a23f7b29c5c1621e", "score": "0.56177384", "text": "function ProcessTargetUploadFile()\r\n\t{\r\n\t\t$filesArray = $this -> FILES;\r\n\t\t$i = 0;\r\n\t\t$j = 0;\r\n\t\tif(is_array($filesArray['error']) || sizeof($filesArray['error']) > 1){\r\n\t\t\tforeach($filesArray['error'] as $key => $val){\r\n\t\t\t\tif($val == 0){\r\n\t\t\t\t\tif(is_uploaded_file($filesArray['tmp_name'][$key])){\r\n\t\t\t\t\t\tif(!$this -> FILE_TYPE || in_array(array_pop(explode('.',$filesArray['name'][$key])),$this -> FILE_TYPE)){\r\n\t\t\t\t\t\t\tif($filesArray['size'][$key] <= $this -> FILE_SIZE){\r\n\t\t\t\t\t\t\t\t$path = $this -> FILE_DIR . '/' . mb_convert_encoding($filesArray['name'][$key],'GBK','UTF-8');\r\n\t\t\t\t\t\t\t\tif(move_uploaded_file($filesArray['tmp_name'][$key], $path)){\r\n\t\t\t\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'][$key];\r\n\t\t\t\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x000;\r\n\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'][$key];\r\n\t\t\t\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x005;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'][$key];\r\n\t\t\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x001;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'][$key];\r\n\t\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x002;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'][$key];\r\n\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x003;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$this -> UPLOAD_ERROR[$j]['name'] = $filesArray['name'][$key];\r\n\t\t\t\t\t$this -> UPLOAD_ERROR[$j]['error'] = $val;\r\n\t\t\t\t}\r\n\t\t\t\t$i++;\r\n\t\t\t\t$j++;\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tif($filesArray['error'] == 0){\r\n\t\t\t\tif(is_uploaded_file($filesArray['tmp_name'])){\r\n\t\t\t\t\tif(!$this -> FILE_TYPE || in_array(array_pop(explode('.',$filesArray['name'])),$this ->FILE_TYPE)){\r\n\t\t\t\t\t\tif($filesArray['size'] <= $this -> FILE_SIZE){\r\n\t\t\t\t\t\t\t$path = $this -> FILE_DIR . '/' . mb_convert_encoding($filesArray['name'],'GBK','UTF-8');\r\n\t\t\t\t\t\t\tif(move_uploaded_file($filesArray['tmp_name'], $path)){\r\n\t\t\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'];\r\n\t\t\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x000;\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'];\r\n\t\t\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x005;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'];\r\n\t\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x001;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'];\r\n\t\t\t\t\t\t$saveFilesList[$i]['error'] = 0x002;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$saveFilesList[$i]['name'] = $filesArray['name'];\r\n\t\t\t\t\t$saveFilesList[$i]['error'] = 0x003;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tprint_r($filesArray['name']);\r\n\t\t\t\t$this -> UPLOAD_ERROR[$j]['name'] = $filesArray['name'];\r\n\t\t\t\t$this -> UPLOAD_ERROR[$j]['error'] = $filesArray['error'];\r\n\t\t\t}\r\n\t\t\t$i++;\r\n\t\t\t$j++;\r\n\t\t}\r\n\t\t$this -> UPLOAD_FILES = $saveFilesList;\r\n\t}", "title": "" }, { "docid": "c56c077cb8e9a2e0c237dd4d1a3bf7c5", "score": "0.5592687", "text": "public function prepare_file()\n\t{\n\t\tglobal $user, $phpbb_ext_gallery, $phpbb_dispatcher, $phpbb_ext_gallery_config;\n\n\t\t$upload_dir = $this->get_current_upload_dir();\n\n\t\t// Rename the file, move it to the correct location and set chmod\n\t\tif (!$upload_dir)\n\t\t{\n\t\t\t$this->file->clean_filename('unique_ext');\n\t\t\t$this->file->move_file(substr($phpbb_ext_gallery->url->path('upload'), 0, -1), false, false, CHMOD_ALL);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Okay, this looks hacky, but what we do here is, we store the directory name in the filename.\n\t\t\t// However phpBB strips directories form the filename, when moving, so we need to specify that again.\n\t\t\t$this->file->clean_filename('unique_ext', $upload_dir . '/');\n\t\t\t$this->file->move_file($phpbb_ext_gallery->url->path('upload_noroot') . $upload_dir, false, false, CHMOD_ALL);\n\t\t}\n\n\t\tif (!empty($this->file->error))\n\t\t{\n\t\t\t$this->file->remove();\n\t\t\t$this->new_error($user->lang('UPLOAD_ERROR', $this->file->uploadname, implode('<br />&raquo; ', $this->file->error)));\n\t\t\treturn false;\n\t\t}\n\t\t@chmod($this->file->destination_file, 0777);\n\t\t$additional_sql_data = array();\n\t\t$file = $this->file;\n\n\t\t$vars = array('additional_sql_data', 'file');\n\t\textract($phpbb_dispatcher->trigger_event('gallery.core.upload.prepare_file_before', compact($vars)));\n\n\t\t$this->tools->set_image_options($phpbb_ext_gallery_config->get('max_filesize'), $phpbb_ext_gallery_config->get('max_height'), $phpbb_ext_gallery_config->get('max_width'));\n\t\t$this->tools->set_image_data($this->file->destination_file, '', $this->file->filesize, true);\n\n\t\t// Rotate the image\n\t\tif ($phpbb_ext_gallery_config->get('allow_rotate') && $this->get_rotating())\n\t\t{\n\t\t\t$this->tools->rotate_image($this->get_rotating(), $phpbb_ext_gallery_config->get('allow_resize'));\n\t\t\tif ($this->tools->rotated)\n\t\t\t{\n\t\t\t\t$this->file->height = $this->tools->image_size['height'];\n\t\t\t\t$this->file->width = $this->tools->image_size['width'];\n\t\t\t}\n\t\t}\n\n\t\t// Resize oversized images\n\t\tif (($this->file->width > $phpbb_ext_gallery_config->get('max_width')) || ($this->file->height > $phpbb_ext_gallery_config->get('max_height')))\n\t\t{\n\t\t\tif ($phpbb_ext_gallery_config->get('allow_resize'))\n\t\t\t{\n\t\t\t\t$this->tools->resize_image($phpbb_ext_gallery_config->get('max_width'), $phpbb_ext_gallery_config->get('max_height'));\n\t\t\t\tif ($this->tools->resized)\n\t\t\t\t{\n\t\t\t\t\t$this->file->height = $this->tools->image_size['height'];\n\t\t\t\t\t$this->file->width = $this->tools->image_size['width'];\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tglobal $user;\n\n\t\t\t\t$this->file->remove();\n\t\t\t\t$this->new_error($user->lang('UPLOAD_ERROR', $this->file->uploadname, $user->lang['UPLOAD_IMAGE_SIZE_TOO_BIG']));\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tif ($this->file->filesize > (1.2 * $phpbb_ext_gallery_config->get('max_filesize')))\n\t\t{\n\t\t\tglobal $user;\n\n\t\t\t$this->file->remove();\n\t\t\t$this->new_error($user->lang('UPLOAD_ERROR', $this->file->uploadname, $user->lang['BAD_UPLOAD_FILE_SIZE']));\n\t\t\treturn false;\n\t\t}\n\n\t\tif ($this->tools->rotated || $this->tools->resized)\n\t\t{\n\t\t\t$this->tools->write_image($this->file->destination_file, $phpbb_ext_gallery_config->get('jpg_quality'), true);\n\t\t}\n\n\t\t// Everything okay, now add the file to the database and return the image_id\n\n\t\treturn $this->file_to_database($additional_sql_data);\n\t}", "title": "" }, { "docid": "4a8f46044161969ae5e7291f05343af3", "score": "0.55874896", "text": "public function upload($renameDuplicates = true) {\n $this->_renameDuplicates = $renameDuplicates;\n $uploaded = current($_FILES);\n if (is_array($uploaded['name'])) {\n foreach ($uploaded['name'] as $key => $value) {\n $currentFile['name'] = $uploaded['name'][$key];\n $currentFile['type'] = $uploaded['type'][$key];\n $currentFile['tmp_name'] = $uploaded['tmp_name'][$key];\n $currentFile['error'] = $uploaded['error'][$key];\n $currentFile['size'] = $uploaded['size'][$key];\n if ($this->checkFile($currentFile)) {\n $this->moveFile($currentFile);\n }\n }\n } else {\n if ($this->checkFile($uploaded)) {\n $this->moveFile($uploaded);\n }\n }\n }", "title": "" }, { "docid": "688a693275e8bc3dd39e4357506b16d7", "score": "0.55865496", "text": "private function convertGlobalFilesArray(Request $request, BaseWidget $widget, $isChunk): void\n {\n $name = $widget->name.'_fineuploader';\n\n if (empty($_FILES[$name])) {\n return;\n }\n\n $file = [\n 'name' => [$_FILES[$name]['name']],\n 'type' => [$_FILES[$name]['type']],\n 'tmp_name' => [$_FILES[$name]['tmp_name']],\n 'error' => [$_FILES[$name]['error']],\n 'size' => [$_FILES[$name]['size']],\n ];\n\n // Replace the special characters (#22)\n $file['name'][0] = $this->fs->standardizeFileName($file['name'][0]);\n\n // Set the UUID as the filename\n if ($isChunk) {\n $file['name'][0] = $request->request->get('qquuid').'.chunk';\n }\n\n // Check if the file exists\n if ($this->fs->tmpFileExists($file['name'][0])) {\n $file['name'][0] = $this->fs->getTmpFileName($file['name'][0]);\n }\n\n $_FILES[$widget->name] = $file;\n unset($_FILES[$name]); // Unset the temporary file\n }", "title": "" }, { "docid": "ed969b41b4f64b2a4770769474ee2ccb", "score": "0.557986", "text": "private function normalizeNestedFileSpec(array $files = []): array\n {\n $normalizedFiles = [];\n foreach (\\array_keys($files['tmp_name']) as $key) {\n $spec = [\n 'tmp_name' => $files['tmp_name'][$key],\n 'size' => $files['size'][$key],\n 'error' => $files['error'][$key],\n 'name' => $files['name'][$key],\n 'type' => $files['type'][$key],\n ];\n $normalizedFiles[$key] = $this->createUploadedFileFromSpec($spec);\n }\n return $normalizedFiles;\n }", "title": "" }, { "docid": "75dcf831bd64ed059c2e90db4d9d44cb", "score": "0.5563968", "text": "protected function _populate_form() \n\t{\n\t\tif ($this->method() == 'get' AND (bool) count($this->get_files(FALSE)) === TRUE)\n\t\t{\n\t\t\tthrow new Bform_Exception('You cannot send files in GET method!');\n\t\t}\n\n\t\t$data = Arr::merge($this->submitted_data(), $_FILES);\n\t\t\n\t\t$this->set_values($data, $this);\n\t}", "title": "" }, { "docid": "15cfffe6ddba9c23ad1fab68d2b899af", "score": "0.5560749", "text": "function uploadFiles($folder, $formdata, $options=array()) {\n\t\t\n\t\t$defaultOptions = array(\n\t\t\t'cropAspectRatio' => false,\n\t\t\t'reorient' => true,\n\t\t\t'reduceResTo' => array(960, null)\t\t\n\t\t);\t\t\n\t\t$options = array_merge($defaultOptions, $options); \n\n\t\t//process nothing and return no errors if no images uploaded.\n\t\t$result['urls'] = array();\n\t\t$result['errors'] = array();\n\t\t$result['successFilenames'] = array();\n\t\t$result['errMessage'] = '';\n\t\t$unacceptableFiles = array();\n\t\t\t\t\n\t\tif (!Utility::hasNumericIndices($formdata)) {\n\t\t\t$formdata = array(0 => $formdata);\n\t\t} else {\n\t\t\t$formdata = Utility::reorder($formdata);\n\t\t}\n\n\t\t$rel_url = $folder;\n\t\t// create the folder if it does not exist\n\t\t$folder_url = WWW_ROOT.$folder;\n\t\tif (!is_dir($folder_url)) {\n\t\t\tmkdir($folder_url, 0777, true );\n\t\t}\n\t\t\n\t\t// loop through and deal with the files\n\t\tforeach ($formdata as $i => $file) {\n\t\t\tif (isset($file['id'])) {\n\t\t\t\tcontinue;\t//already uploaded.\n\t\t\t}\n\t\t\t\n\t\t\tif (isset($file['file'])) {\n\t\t\t\t$file = $file['file'];\n\t\t\t} \t\t\n\t\t\t\n\t\t\t\n\t\t\tif (!empty($file['tmp_name'])) {\t\t//ignore empty file fields\n\t\t\t\n\t\t\t\t$typeOK = $this->isValidFileType($file['tmp_name'], $this->ACCEPTABLE_FILE_TYPES);\n\t\t\t\t\t\t\t\n\t\t\t\t// replace spaces with underscores\n\t\t\t\t$filename = str_replace( ' ', '_', $file['name']);\n\t\t\t\t$filename = $this->makeFilenameUnique($filename);\n\t\t\t\t\n\t\t\t\t// if file type ok upload the file\n\t\t\t\tif ($typeOK && !empty($file['tmp_name'])) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t// switch based on error code\n\t\t\t\t\tswitch ($file['error' ]) {\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t// create full filename\n\t\t\t\t\t\t\t$url = $rel_url.'/' .$filename;\n\t\t\t\t\t\t\t// check filename already exists\n\t\t\t\t\t\t\tif (!file_exists($folder_url.'/' .$filename)) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// upload the file\n\t\t\t\t\t\t\t\t$success = move_uploaded_file($file['tmp_name' ], $url);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$success = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// if upload was successful\n\t\t\t\t\t\t\tif ($success) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ($options['reorient']) {\n\t\t\t\t\t\t\t\t\t$this->reorient($url, $url, exif_read_data($url, 0, true));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ($options['cropAspectRatio']) {\t\t\n\t\t\t\t\t\t\t\t\t$filename = $this->addCroppedSuffix($filename);\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$this->genericCrop($url, $options['cropAspectRatio'], $filename);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ($options['reduceResTo']) {\n\t\t\t\t\t\t\t\t\tlist($smallerWidth, $smallerHeight) = $options['reduceResTo'];\n\t\t\t\t\t\t\t\t\t$this->reduceResolution($url, $smallerWidth, $smallerHeight);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// save the url of the file\n\t\t\t\t\t\t\t\t$result[ 'urls' ][] = Configure::read('WEBROOT').$url;\n\t\t\t\t\t\t\t\t$result['successFilenames'][$i] = $filename;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$result[ 'errors' ][] = \"Error uploading $filename. Please try again.\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak ;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t// an error occured\n\t\t\t\t\t\t\t$result[ 'errors' ][] = \"Error uploading $filename. Please try again.\";\n\t\t\t\t\t\t\t\tbreak ;\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t// an error occured\n\t\t\t\t\t\t\t$result[ 'errors' ][] = \"System error uploading $filename. Contact webmaster.\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} elseif ($file['error'] == 4) {\t\t\t\t\n\t\t\t\t\t$result[ 'nofiles' ][] = \"No file Selected\";\t\t\t\t\n\t\t\t\t} else if ($filename != '') {\n\t\t\t\t\t// unacceptable file type\n\t\t\t\t\t$unacceptableFiles[] = $filename;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//prepare error message.\n\t\tif (!empty($unacceptableFiles))\n\t\t{\n\t\t\t$err = implode(', ', $unacceptableFiles); \n\t\t\t$err .= count($unacceptableFiles) > 1 ? ' do ' : ' does ';\n\t\t\t$err .= 'not have an acceptable file type. Acceptable file types are '.String::toList($this->ACCEPTABLE_FILE_EXTENSIONS).'. Please upload a different file.'; \n\t\t\t$result['errors'][] = $err;\n\t\t}\n\t\t\t\t\n\t\tif (!empty($result['errors']))\n\t\t{\n\t\t\t$result['errMessage'] = implode(\"\\n\", $result['errors']);\t\n\t\t}\n\t\t\n\t\tunset($result['errors']);\n\t\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "ce1b606cbdeff8f0ffaef4f8e6feb8ba", "score": "0.55560297", "text": "public function upload($files)\r\n {\r\n $storage = new \\Upload\\Storage\\FileSystem($this->upload_dir);\r\n\r\n $uploaded_files = [];\r\n\r\n foreach($files as $key => $value){\r\n $file = new \\Upload\\File($key, $storage);\r\n\r\n $new_filename = uniqid();\r\n $file->setName($new_filename);\r\n\r\n // Validate file upload\r\n // MimeType List => http://www.iana.org/assignments/media-types/media-types.xhtml\r\n $file->addValidations(array(\r\n\r\n //You can also add multi mimetype validation\r\n # We support commonly used MIME type extensions\r\n new \\Upload\\Validation\\Mimetype(array(\r\n 'image/png',\r\n 'image/jpeg',\r\n 'image/gif',\r\n 'application/pdf',\r\n 'text/csv',\r\n 'text/plain', # .txt\r\n 'application/msword', # .doc\r\n 'application/vnd.ms-excel', # .xls\r\n 'application/vnd.ms-powerpoint', # .ppt\r\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', # .xlsx\r\n 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', # .docx\r\n 'application/vnd.openxmlformats-officedocument.presentationml.presentation', # .pptx\r\n )),\r\n // Ensure file is no larger than 5M (use \"B\", \"K\", M\", or \"G\")\r\n // new \\Upload\\Validation\\Size('20M')\r\n ));\r\n\r\n\r\n try{\r\n $file->upload();\r\n\r\n $uploaded_files[$key] = $file->getNameWithExtension();\r\n }\r\n catch(\\Exception $e){\r\n return $e->getMessage();\r\n }\r\n }\r\n\r\n return $uploaded_files;\r\n\r\n }", "title": "" }, { "docid": "0ab99ccbbc872417f8e52f37331c2e94", "score": "0.5533071", "text": "private function arrangeFiles($src, &$files): void\n {\n // an array with these keys is a \"target\" for us (pre-sorted)\n $tgtKeys = ['error', 'name', 'size', 'tmp_name', 'type'];\n\n // the keys of the source array (sorted so that comparisons work\n // regardless of original order)\n $srcKeys = array_keys((array)$src);\n sort($srcKeys);\n\n // is the source array a target?\n if ($srcKeys === $tgtKeys) {\n // get error, name, size, etc\n foreach ($srcKeys as $key) {\n if (is_array($src[$key])) {\n // multiple file field names for each error, name, size, etc.\n foreach ($src[$key] as $field => $value) {\n $files[$field][$key] = $value;\n }\n } else {\n // the key itself is error, name, size, etc., and the\n // target is already the file field name\n $files[$key] = $src[$key];\n }\n }\n } else {\n // not a target, create sub-elements and init them too\n foreach ($src as $key => $val) {\n $files[$key] = array();\n $this->arrangeFiles($val, $files[$key]);\n }\n }\n }", "title": "" }, { "docid": "7488b289514aa14ecfe3f1803605cdb6", "score": "0.55227053", "text": "public function multifile($filedata) { // $_FILES['files'];\n if (count($filedata) == 0)\n return FALSE;\n $files = array();\n $all_files = $filedata['name'];\n $i = 0;\n foreach ($all_files as $filename) {\n $files[++$i]['name'] = $filename;\n $files[$i]['type'] = current($filedata['type']);\n next($filedata['type']);\n $files[$i]['tmp_name'] = current($filedata['tmp_name']);\n next($filedata['tmp_name']);\n $files[$i]['error'] = current($filedata['error']);\n next($filedata['error']);\n $files[$i]['size'] = current($filedata['size']);\n next($filedata['size']);\n }\n return $files;\n }", "title": "" }, { "docid": "c9b8ca9a3dc8852165f1bfc214ed564d", "score": "0.551176", "text": "private function _uploadFiles($savePath = null)\n {\n $this->_uploadHandler->clearValidators();\n $this->_uploadHandler->clearFilters();\n\n if (!$savePath) {\n $savePath = $this->_getSavePath();\n }\n\n $fileInfo = $this->_uploadHandler->getFileInfo();\n $file = reset($fileInfo);\n\n $expFileName = explode('.',$file['name']);\n $fileExt = array_pop($expFileName);\n $file['name'] = implode($expFileName). '.' . strtolower($fileExt);\n\n preg_match('~[^\\x00-\\x1F\"<>\\|:\\*\\?/]+\\.[\\w\\d]{2,8}$~iU', $file['name'], $match);\n if (!$match) {\n return array('result' => 'Corrupted filename', 'error' => true);\n }\n\n $this->_uploadHandler->addFilter('Rename', array(\n 'target' => $savePath . DIRECTORY_SEPARATOR . $file['name'],\n 'overwrite' => true\n ));\n\n //Adding file extension validation\n $this->_uploadHandler->addValidator('Extension', false, 'xml,csv,doc,zip,jpg,png,bmp,gif,xls,pdf,docx,txt,xlsx,mp3,avi,mpeg,mp4,webm,ogg,ogv,dwg,vcf');\n //Adding mime types validation\n $this->_uploadHandler->addValidator('MimeType', true, array('application/pdf','application/xml', 'application/zip', 'text/csv', 'text/plain', 'image/png','image/jpeg',\n 'image/gif', 'image/bmp', 'application/msword', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet','audio/mpeg3','audio/mpeg','video/avi','video/x-msvideo','video/mp4','video/mpeg', 'video/mp4',\n 'application/ogg', 'video/webm','application/acad','image/vnd.dwg','image/x-dwg', 'text/x-vcard'));\n\n if ($this->_uploadHandler->isUploaded() && $this->_uploadHandler->isValid()) {\n try {\n $this->_uploadHandler->receive();\n } catch (Exceptions_SeotoasterException $e) {\n $response = array('result' => $e->getMessage(), 'error' => true);\n }\n }\n\n $response = array('result' => $this->_uploadHandler->getMessages(), 'error' => !$this->_uploadHandler->isReceived());\n\n return $response;\n }", "title": "" }, { "docid": "733b0c5311fbfd70fee7c5789adf697c", "score": "0.54781437", "text": "public function pushUpload(){\n\t\tif(!empty($_FILES[\"docs\"][\"name\"]))\n\t\t{\n\t\t\tif (Upload::setDirs()){ //Check the necessary directories needed to be created\n\t\t\t\t//Do not create tmp directory if setReplace variable is not set\n\t\t\t\tif(!isset($_POST['replace'])){\n\t\t\t\t\tif(is_dir(self::$tmpSubDir))\n\t\t\t\t\t\tUpload::destroyAll(self::$tmpSubDir); //Remove the previously created temporary directory if exists \n\n\t\t\t\t\tUpload::checkFiles($_FILES[\"docs\"][\"name\"]); //Stores the already existing filename.\n\t\t\t\t\tUpload::setDirs();\n\t\t\t\t\tUpload::uploadConfirm();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$lsTmp = scandir(self::$tmpSubDir);\n\t\t\t\t\tforeach($_POST['setReplace'] as $tmpReplace){\n\t\t\t\t\t\tif(in_array($tmpReplace,$lsTmp)) //checks the array $tmpReplace with the array that has duplicate filesname stored in it\n\t\t\t\t\t\t\tcopy(self::$tmpSubDir.$tmpReplace,self::$subDir.$tmpReplace); //Replace the original one with the new file\t\t\n\t\t\t\t\t}\n\t\t\t\t\tUpload::destroyAll(self::$tmpSubDir);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "c4bb0122fa034ca34d126f61db2be2ef", "score": "0.5463142", "text": "private function prepareFiles() {\n $zip = new ZipArchive;\n if ($zip->open(self::PARSE_DIR . '/' . self::ARCHIVE_FILENAME) === TRUE) {\n $zip->extractTo($this->tmpFolder);\n $zip->close();\n } else {\n $this->errors[] = 'Невозможно распаковать архив!';\n }\n }", "title": "" }, { "docid": "7aa38458039b019e38fba65fc4d25190", "score": "0.54484487", "text": "public function withUploadedFiles(array $uploadedFiles);", "title": "" }, { "docid": "328e766ae29d24abc106ec4221ec9ce6", "score": "0.5426708", "text": "public function initFiles()\n\t{\n\t\tif ($this->collFiles === null) {\n\t\t\t$this->collFiles = array();\n\t\t}\n\t}", "title": "" }, { "docid": "6aad576e4a7d98287f257637bc4ae9f8", "score": "0.5425015", "text": "public function testStoreInvalidFilesValuesLeavesLocalFilesEmpty($files)\n {\n $_FILES = $files;\n\n $method = $this->get_accessible_reflection_method('store_files');\n $method->invoke($this->class);\n\n $this->assertArrayEmpty($this->get_reflection_property_value('files'));\n }", "title": "" }, { "docid": "465ba3f973b8028e7630c6ced1477818", "score": "0.5415475", "text": "function do_upload()\r\n\t{\r\n\t\tif (isset($_FILES[$this->post_name]))\r\n\t\t{\r\n\t\t\t$post \t\t= $_FILES[$this->post_name];\r\n\t\t\t$tmp_file\t= ( !$this->isArrayPostName ) ? $post['tmp_name'] : $post['tmp_name'][$this->arrayPostName];\r\n\r\n\t\t\tif ( is_uploaded_file( $tmp_file ) )\r\n\t\t\t{\r\n\t\t\t\tif ($this->filteringExtension($post))\r\n\t\t\t\t{\r\n\t\t\t\t\tif ($this->checkFileSize())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$file_name = $this->getFileNameUploaded();\r\n\t\t\t\t\t\t$dest = $this->folder.$file_name;\r\n\t\t\t\t\t\t$upload = move_uploaded_file($tmp_file, $dest);\r\n\t\t\t\t\t\tif ($upload)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t@chmod($dest, $this->chmod);\r\n\t\t\t\t\t\t\t$this->file_name_sukses_uploaded = $file_name;\r\n\t\t\t\t\t\t\t$cfg_resize = array('source_image'=> $dest);\r\n\t\t\t\t\t\t\tif($this->is_resize)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$cfg_resize = array(\r\n\t\t\t\t\t\t\t\t\t'source_image'=> $dest,\r\n\t\t\t\t\t\t\t\t\t'width'\t\t\t\t=> $this->rez_width,\r\n\t\t\t\t\t\t\t\t\t'height'\t\t\t=> $this->rez_height\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t\t// pr(json_encode($cfg_resize, JSON_PRETTY_PRINT), __FILE__.':'.__LINE__);\r\n\t\t\t\t\t\t\t\t_class('image_lib', $cfg_resize)->resize();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif($this->is_watermark)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$this->watermark_param['source_image'] = $dest;\r\n\t\t\t\t\t\t\t\t// pr(json_encode($this->watermark_param, JSON_PRETTY_PRINT), __FILE__.':'.__LINE__);\r\n\t\t\t\t\t\t\t\t_class('image_lib', $this->watermark_param)->watermark();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif($this->is_thumbnail)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif(substr($this->thumb_prefix, -1) == '/' && !is_dir($this->folder.$this->thumb_prefix))\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t@mkdir($this->folder.$this->thumb_prefix, 0777);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t$config = array_merge($cfg_resize, $this->thumb_param);\r\n\t\t\t\t\t\t\t\t$config['create_thumb'] = FALSE ;\r\n\t\t\t\t\t\t\t\t$config['new_image'] = $this->folder.$this->thumb_prefix.$file_name;\r\n\t\t\t\t\t\t\t\t// pr(json_encode($config, JSON_PRETTY_PRINT), __FILE__.':'.__LINE__);\r\n\t\t\t\t\t\t\t\t_class('image_lib', $config)->resize();\r\n\t\t\t\t\t\t\t\t_class('images')->move_upload($this->folder.$this->thumb_prefix.$file_name);\r\n\t\t\t\t\t\t\t\t@chmod($this->folder.$this->thumb_prefix.$file_name, $this->chmod);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t_class('images')->move_upload($dest);\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse $this->error_code .= 'move_upload_file_failed';\r\n\t\t\t\t\t} else $this->error_code .= 'file_size_max_exceeded';\r\n\t\t\t\t} else $this->error_code .= 'file_type_unallowed';\r\n\t\t\t}// end if is_uploaded_file\r\n#\t\t\telse $this->error_code .= 'file_upload_from_post_failed';\r\n\t\t}// end if isset\r\n\t\telse {\r\n#\t\t\t$this->error_code .= 'file_post_un_uploaded';\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "c05e91c26aef49be52d0e86f490a3cd7", "score": "0.5414741", "text": "function upload(){\r\n\t\t\tglobal $_POST;\r\n\t\t\t$_POST['folder'] = str_replace('/umeos','',$_POST['folder']);\r\n\t\t\t$_POST['folder'] = str_replace('/root/infinite-home/','',$_POST['folder']);\r\n\r\n\t\t\tif (!empty($_FILES)) {\r\n\t\t\t\tforeach($_FILES as $file){\r\n\t\t\t if (!empty($file['tmp_name'])) {\r\n\t\t\t $this->mFile['size']\t= $file['size'];\r\n\t\t\t $this->mFile['type']\t= $file['type'];\r\n\t\t\t \t$tmp \t\t\t\t\t= $file['tmp_name'];\r\n\t\t\t \t$this->mFile['path'] \t= ($_POST['user_id']) ? $_SERVER['HTTP_HOST'].'/'. $_POST['user_id'] : $_SERVER['HTTP_HOST'] ;\r\n\t\t\t $this->mFile['name'] \t= $file['name'];\r\n\t\t\t $this->mFile['md5'] \t= md5_file($tmp);\r\n\t\t\t $this->mFile['real'] \t= htmlentities(urlencode($this->mFile['name']));\r\n\t\t\t $this->mFile['loc'] \t= '/^/'.$this->mFile['path'] .'/'. $this->mFile['md5'];\r\n\t\t\t $this->mFile['src'] \t= str_replace('//','/',$_SERVER['DOCUMENT_ROOT'].$this->mFile['loc']);\r\n\t\t\t // Uncomment the following line if you want to make the directory if it doesn't exist\r\n\t\t\t /**\r\n\t\t\t * we dont want to save the file in a dir tree...\r\n\t\t\t * only the db holds that info. instead we change save the file as its md5 hash.\r\n\t\t\t *\r\n\t\t\t */\r\n\r\n\t\t\t if(!file_exists($_SERVER['DOCUMENT_ROOT'].'/^/')){\r\n\t\t\t \tmkdir($_SERVER['DOCUMENT_ROOT'].'/^/', 0755, true);\r\n\t\t\t }\r\n\r\n\t\t\t $path = $_SERVER['DOCUMENT_ROOT'].'/^/'.$this->mFile['path'];\r\n\t\t\t $path = str_replace('//','/',$path);\r\n\r\n\r\n\t\t\t if(!file_exists($path)){\r\n\t\t\t \tmkdir($path, 0755, true);\r\n\t\t\t }\r\n\r\n\t\t\t move_uploaded_file($tmp,$this->mFile['src']);\r\n\t\t\t return $this->Index();\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t}else{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "d519b22ab0a2231f2c22d9fd7d563438", "score": "0.54135185", "text": "private function prepareImages() {\n $adapter = new Http();\n\n $size = new Size(array('min' => '10kB', 'max' => '5MB','useByteString' => true));\n $extension = new Extension(array('jpg','gif','png','jpeg','bmp','webp','svg'), true);\n\n if (extension_loaded('fileinfo')) {\n $adapter->setValidators([new IsImage()]);\n }\n\n $adapter->setValidators([$size, $extension]);\n\n $uri = $this->getRequest()->getUri();\n $scheme = $uri->getScheme();\n $host = $uri->getHost();\n $base = sprintf('%s://%s', $scheme, $host);\n\n $uploadsDir = getcwd() . '/public/uploads';\n if (!file_exists($uploadsDir)) {\n mkdir(($uploadsDir), 0777, true);\n }\n $uploadsDirPath = getcwd() . '/public/uploads/event/';\n if (!file_exists($uploadsDirPath)) {\n mkdir(($uploadsDirPath), 0777, true);\n }\n\n $adapter->setDestination( $uploadsDirPath);\n\n return $this->uploadFiles($adapter);\n }", "title": "" }, { "docid": "96e278c9741b53cefc82fa2a7fb40447", "score": "0.54099816", "text": "protected static function convertUploadedFiles(array $files)\n {\n return array_map(function ($file) {\n /** @var mixed $file */\n if (is_null($file) || (is_array($file) && empty(array_filter($file)))) {\n return $file;\n }\n\n return is_array($file)\n ? self::convertUploadedFiles($file)\n : UploadedFile::createFromBase($file);\n }, $files);\n }", "title": "" }, { "docid": "eb1145dee96948f4a690b827bdb8acfd", "score": "0.5392518", "text": "private function _initFileArrays()\n {\n if (! empty($this->_preferedFiles) || ! empty($this->_unpreferedFiles)) {\n return;\n\n }\n $simpleIterator = new AutoloaderFileIterator_Simple();\n $simpleIterator->setAutoloader($this->autoloader);\n $simpleIterator->skipFilesize = $this->skipFilesize;\n $simpleIterator->skipDirPatterns = $this->skipDirPatterns;\n $simpleIterator->skipFilePatterns = $this->skipFilePatterns;\n $simpleIterator->onlyDirPattern = $this->onlyDirPattern;\n $simpleIterator->onlyFilePattern = $this->onlyFilePattern;\n\n $this->_preferedFiles = array();\n $this->_unpreferedFiles = array();\n foreach ($simpleIterator as $file) {\n foreach ($this->_preferedPatterns as $pattern) {\n if (preg_match($pattern, $file)) {\n $this->_preferedFiles[] = $file;\n continue 2;\n\n }\n }\n $this->_unpreferedFiles[] = $file;\n\n }\n }", "title": "" }, { "docid": "0ffc8848ee075d2f5493419ba988c0cc", "score": "0.53898513", "text": "private function populateUploadedFileRecursive(array &$files, $names, $tempNames, $types, $sizes, $errors): void\n {\n if (is_array($names)) {\n foreach ($names as $i => $name) {\n $files[$i] = [];\n $this->populateUploadedFileRecursive($files[$i], $name, $tempNames[$i], $types[$i], $sizes[$i], $errors[$i]);\n }\n } else {\n try {\n $stream = $this->streamFactory->createStreamFromFile($tempNames);\n } catch (RuntimeException $e) {\n $stream = $this->streamFactory->createStream();\n }\n\n $files = $this->uploadedFileFactory->createUploadedFile(\n $stream,\n (int)$sizes,\n (int)$errors,\n $names,\n $types\n );\n }\n }", "title": "" }, { "docid": "82a3dc9ee104fa5b985eea18e47cb9ad", "score": "0.538184", "text": "function uploadFiles($folder, $formdata, $permitted = null, $itemId = null) \n\t\t{\n\t\t\t// setup dir names absolute and relative\n\t\t\t$folder_url = WWW_ROOT.$folder;\n\t\t\t$rel_url = $folder;\n\t\t\t\n\t\t\t// create the folder if it does not exist\n\t\t\tif(!is_dir($folder_url)) {\n\t\t\t\tmkdir($folder_url);\n\t\t\t}\n\t\t\t\t\n\t\t\t// if itemId is set create an item folder\n\t\t\tif($itemId) {\n\t\t\t\t// set new absolute folder\n\t\t\t\t$folder_url = WWW_ROOT.$folder.'/'.$itemId; \n\t\t\t\t// set new relative folder\n\t\t\t\t$rel_url = $folder.'/'.$itemId;\n\t\t\t\t// create directory\n\t\t\t\tif(!is_dir($folder_url)) {\n\t\t\t\t\tmkdir($folder_url);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// list of permitted file types, this is only images but documents can be added\n\t\t\t//$permitted = array('image/gif','image/jpeg','image/pjpeg','image/png');\n\t\t\t\n\t\t\t$file = $formdata;\n\t\t\t//$file['tmp_name'] = $file['tmp_name'].'.tmp';\n\t\t\t// loop through and deal with the files\n\t\t\tforeach($formdata as $file) \n\t\t\t{\n\t\t\t\t\n\t\t\t\t// replace spaces with underscores\n\t\t\t\t$filename = str_replace(' ', '_', $file['name']);\n\t\t\t\t// assume filetype is false\n\t\t\t\t\n\t\t\t\tif($permitted != null)\n\t\t\t\t{\n\t\t\t\t\t$typeOK = false;\n\t\t\t\t\t// check filetype is ok\n\t\t\t\t\tforeach($permitted as $type) \n\t\t\t\t\t{\n\t\t\t\t\t\tif($type == $file['type']) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$typeOK = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\t$typeOK = true;\n\t\t\t\t}\n\t\t\t\t// if file type ok upload the file\n\t\t\t\tif($typeOK) {\n\t\t\t\t\t// switch based on error code\n\t\t\t\t\tswitch($file['error']) {\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t// check filename already exists\n\t\t\t\t\t\t\tif(!file_exists($folder_url.'/'.$filename)) {\n\t\t\t\t\t\t\t\t// create full filename\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$full_url = $folder_url.'/'.$filename;\n\t\t\t\t\t\t\t\t$url = $rel_url.'/'.$filename;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// upload the file\n\t\t\t\t\t\t\t\t$success = move_uploaded_file($file['tmp_name'], $full_url);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// create unique filename and upload file\n\t\t\t\t\t\t\t\tini_set('date.timezone', 'Europe/London');\n\t\t\t\t\t\t\t\t$now = date('Y-m-d-His');\n\t\t\t\t\t\t\t\t$full_url = $folder_url.'/'.$now.$filename;\n\t\t\t\t\t\t\t\t$url = $rel_url.'/'.$now.$filename;\n\t\t\t\t\t\t\t\t$success = move_uploaded_file($file['tmp_name'], $full_url);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// if upload was successful\n\t\t\t\t\t\t\tif($success) {\n\t\t\t\t\t\t\t\t// save the url of the file\n\t\t\t\t\t\t\t\t$result['urls'][] = $full_url;//$url;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$result['errors'][] = \"Error uploading $filename. Please try again.\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t// an error occured\n\t\t\t\t\t\t\t$result['errors'][] = \"Error uploading $filename. Please try again.\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t// an error occured\n\t\t\t\t\t\t\t$result['errors'][] = \"System error uploading $filename. Contact webmaster.\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} elseif($file['error'] == 4) {\n\t\t\t\t\t// no file was selected for upload\n\t\t\t\t\t$result['nofiles'][] = \"No file Selected\";\n\t\t\t\t} else {\n\t\t\t\t\t// unacceptable file type\n\t\t\t\t\t$result['errors'][] = \"$filename cannot be uploaded. Acceptable file types: gif, jpg, png.\";\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $result;\n\t\t}", "title": "" }, { "docid": "0e704167b988187be63cde721e8a3f58", "score": "0.5367035", "text": "public function createUploadedFiles(array $files){\n $instances = [];\n\n foreach($files as $name => $value){\n if($value instanceof UploadedFileInterface){\n $instances[$name] = $value;\n continue;\n }\n\n if(!is_array($value)){\n $class = UploadedFileInterface::class;\n\n throw new \\InvalidArgumentException(\n \"The file list must be an associative array whose value is\"\n . \" an instance of a class implementing {$class} or an array\"\n . \" having file information.\"\n . \" But the value of index A does not apply to them.\"\n );\n }\n\n $instances[$name] = isset($value[\"error\"]) && isset($value[\"tmp_name\"])\n ? $this->createUploadedFileWithNest($value)\n : $this->createUploadedFiles($value)\n ;\n }\n\n return $instances;\n }", "title": "" }, { "docid": "874c7632dfead423b724973aae70377e", "score": "0.5357364", "text": "private function prepare()\n {\n if ( $this->ALLOW_FOLDER_CREATION && !is_dir( $this->_DATA[ 'targetdir' ] ) )\n mkdir( $this->_DATA[ 'targetdir' ], 0755, true );\n\n if ( !file_exists( $this->_DATA[ 'targetdir' ] ) )\n throw new Exception( 'Target directory [' . $this->_DATA[ 'targetdir' ] . '] does not exist', E_USER_ERROR, get_class() );\n if ( !is_uploaded_file( $this->_DATA[ 'tmpfile' ] ) )\n throw new Exception( 'Internal error, unable to upload image.', E_USER_ERROR, get_class() );\n if ( !empty( $this->ALLOWED_FILETYPES ) && !in_array( $this->_DATA[ 'extension' ], $this->ALLOWED_FILETYPES ) )\n throw new Exception( 'Trying to upload an unauthorized filetype', E_USER_ERROR, get_class() );\n if ( strpos( $this->_DATA[ 'targetfile' ], '..' ) !== false )\n throw new Exception( 'Unauthorized \"..\" char in file name.', E_USER_ERROR, get_class() );\n\n if ( file_exists( $this->_DATA[ 'targetdir' ] . $this->_DATA[ 'targetfile' ] ) )\n $this->fixDupe();\n\n return true;\n }", "title": "" }, { "docid": "6d149cd07bbc032543a1ef175cf2aa09", "score": "0.534732", "text": "function _themepacket_process_filenames(&$files) {\n foreach ($files as $key => $file) {\n \n // This key isn't very useful so we remove it for the sake of keeping our\n // data as simple as possible.\n unset($files[$key]->name);\n \n $data = themepacket_parse_filename($file->filename);\n \n // Derive the path of the file\n $data['path'] = str_replace('/' . $file->filename, '', $file->uri);\n \n $files[$key] = array_merge($data, (array)$file);\n }\n}", "title": "" }, { "docid": "42b2933d66b11b27b864c1b9550d44b7", "score": "0.53410715", "text": "public function upload(SS_HTTPRequest $request)\n {\n if ($this->isDisabled() || $this->isReadonly() || !$this->canUpload()) {\n return $this->httpError(403);\n }\n\n // Protect against CSRF on destructive action\n $token = $this->getForm()->getSecurityToken();\n if (!$token->checkRequest($request)) {\n return $this->httpError(400);\n }\n \n // Get form details (name of the relation)\n $name = $this->getName();\n $postVars = $request->postVar($name);\n $uploadedFiles = $this->extractUploadedFileData($postVars);\n $return = array();\n \n //\n // append all multiparts to one file here before proceeding\n //\n if ($request->getHeader('X-File-Name')) {\n // if chunked, get name from header\n //return Debug::dump($request->getHeader('X-File-Name'));\n $originalFileName = $request->getHeader('X-File-Name');\n $totalSize = $request->getHeader('X-File-Size');\n $uploadedChunkPath = $uploadedFiles[0]['tmp_name'];\n // We (mis)use the security ID as a way of 'unique-ifying' the temporary upload paths\n // so that we don't just depend on the original filename for this (or a scenario might\n // be possible to overwrite files based on an identical original name)\n // Added benefit it that the security ID will be different between form loads, which\n // makes the risk of appending to the same file over and over, a bit smaller\n $securityID = ($request->postVar('SecurityID')? $request->postVar('SecurityID'): 'none');\n // hash to prevent directory traversal etc posibilities based on original file name\n $temphash = sha1($securityID.$originalFileName);\n // eg /tmp/123somelonghash456 instead of $originalFileName.'.part'\n $tmpFilePath = dirname($uploadedChunkPath).DIRECTORY_SEPARATOR.$temphash;\n $append = file_exists($tmpFilePath);\n \n // If it is the first chunk we have to create the file, othewise we append...\n // Note file_put_contents with FILE_APPEND produces overlapping chunks for some reason...\n $out_fp = fopen($tmpFilePath, $append ? \"ab\" : \"wb\"); //append or write mode\n $in_fp = fopen($uploadedChunkPath, \"rb\");\n while ($buff = fread($in_fp, 4096)) {\n fwrite($out_fp, $buff);\n }\n fclose($out_fp);\n fclose($in_fp);\n \n // test if we're done with all chunks yet...\n//\t\t\t$done = (filesize($tmpFilePath)==$totalSize ? true : false);\n if (filesize($tmpFilePath) == $totalSize) {\n // move file to last uploaded chunks tmp_filename \n // & set size etc for regular upload handling as if uploaded normally\n rename($tmpFilePath, $uploadedChunkPath);\n $uploadedFiles[0]['name'] = $originalFileName;\n } else {\n // not done yet, return for now...\n $return = array('ok' => '('.$uploadedChunkPath.' - '\n .$tmpFilePath.': '.filesize($tmpFilePath).'/'.$totalSize.')');\n // Format response with json\n $response = new SS_HTTPResponse(Convert::raw2json(array($return)));\n $response->addHeader('Content-Type', 'text/plain');\n return $response;\n }\n }\n \n // Multipart done (or small enough to have been done in one chunk)...\n // Save the temporary file into a File object\n $firstFile = reset($uploadedFiles);\n $file = $this->saveTemporaryFile($firstFile, $error);\n\n if (empty($file)) {\n array_push($return, array('error' => $error));\n } else {\n array_push($return, $this->encodeFileAttributes($file));\n }\n $this->upload->clearErrors();\n \n // Format response with json\n $response = new SS_HTTPResponse(Convert::raw2json($return));\n $response->addHeader('Content-Type', 'text/plain');\n return $response;\n }", "title": "" }, { "docid": "163a2074fa3e973a0444c3fbdd5821ab", "score": "0.53336626", "text": "protected function _init_transfers()\n {\n foreach ($this->_files as $_k => $_file) {\n if (!$_file instanceof File) {\n continue;\n }\n $connection = ftp_connect(\n $this->_options['hostname'], \n $this->_options['port'], \n $this->_options['timeout']\n );\n if (false === $connection) {\n break;\n }\n $login = ftp_login(\n $connection, \n $this->_options['username'], \n $this->_options['password']\n );\n if ($login === false) {\n ftp_close($connection);\n break;\n }\n if (!file_exists($_file->get_full_path())) {\n emit(\n $this->_sig_failure,\n new EV_Failure($_file)\n );\n } else {\n $transfer = ftp_nb_put(\n $connection,\n $_file->get_name(),\n $_file->get_full_path(),\n $_file->get_transfer_mode()\n );\n if ($transfer === FTP_MOREDATA) {\n $this->_uploading[] = [\n $connection,\n $_file\n ];\n } else {\n if ($transfer == FTP_FINISHED) {\n emit(\n $this->_sig_complete,\n new EV_Complete($_file)\n );\n // Close the FTP connection to that file\n ftp_close($connection);\n $this->_uploaded[] = $_file;\n } else {\n emit(\n $this->_sig_failure,\n new EV_Failure($_file)\n );\n // Close the FTP connection to that file\n ftp_close($connection);\n }\n }\n }\n unset($this->_files[$_k]);\n }\n }", "title": "" }, { "docid": "b36e7c5b8203b88823a6b73b478412f6", "score": "0.5328318", "text": "private function createFilesFromArray($request, $array)\n {\n foreach ($array as $key => $value) {\n if ($file = $this->client->getResourceHandler($value)) {\n $request->files[] = new FileReference([\n 'field' => $key,\n 'file' => $file,\n ]);\n } elseif (is_array($value)) {\n foreach ($value as $id => $_value) {\n if ($file = $this->client->getResourceHandler($_value)) {\n $request->files[] = new FileReference([\n 'field' => $key,\n 'id' => $id,\n 'file' => $file,\n ]);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "416864ef9ccaa0bd5aaf20508c589dc8", "score": "0.53209466", "text": "public function testStoreInvalidFilesValuesResetsSuperglobalFiles($files)\n {\n $_FILES = $files;\n\n $method = $this->get_accessible_reflection_method('store_files');\n $method->invoke($this->class);\n\n $this->assertArrayEmpty($_FILES);\n }", "title": "" }, { "docid": "0929484bac7216e2dad61266a1d5e6e2", "score": "0.5317652", "text": "private function upload_file() {\n if (strpos($this->contentType, \"multipart\") !== false) {\n if (isset($_FILES['file']['tmp_name']) && is_uploaded_file($_FILES['file']['tmp_name'])) {\n // Open temp file\n $out = fopen($this->targetDir . DIRECTORY_SEPARATOR . $this->fileName, $this->chunk == 0 ? \"wb\" : \"ab\");\n if ($out) {\n // Read binary input stream and append it to temp file\n $in = fopen($_FILES['file']['tmp_name'], \"rb\");\n if ($in) {\n while ($buff = fread($in, 4096)) fwrite($out, $buff);\n }\n else\tdie('{\"status\" : \"error\", \"type\" : \"uploader\", \"message\" : \"Failed to open input stream.\"}');\n\n fclose($in);\n fclose($out);\n @unlink($_FILES['file']['tmp_name']);\n }\n else\tdie('{\"\"status\" : \"error\", \"type\" : \"uploader\", \"message\" : \"Failed to open output stream.\"}');\n }\n else\tdie('{\"status\" : \"error\", \"type\" : \"uploader\", \"message\" : \"Failed to move uploaded file.\"}');\n }\n else {\n // Open temp file\n $out = fopen($this->targetDir . DIRECTORY_SEPARATOR . $this->fileName, $this->chunk == 0 ? \"wb\" : \"ab\");\n if ($out) {\n // Read binary input stream and append it to temp file\n $in = fopen(\"php://input\", \"rb\");\n if ($in) {\n while ($buff = fread($in, 4096)) fwrite($out, $buff);\n }\n else\tdie('{\"status\" : \"error\", \"type\" : \"uploader\", \"message\" : \"Failed to open input stream.\"}');\n fclose($in);\n fclose($out);\n }\n else\tdie('{\"status\" : \"error\", \"type\" : \"uploader\", \"message\" : \"Failed to open output stream\"}');\n }\n }", "title": "" }, { "docid": "7a11f26092cbdb15ba72a0c08546ab67", "score": "0.5316602", "text": "function listmaker_fileupload( $table , $id , $ext_array=null ){\r\n\r\n\t#\r\n\t# no file to upload\r\n\tif(! sizeof($_FILES) ){\r\n\t\t;//\r\n\t\r\n\t#\r\n\t# some input[] found\r\n\t} else foreach ($_FILES as $column => $r) {\r\n\t\t\r\n\t\t#\r\n\t\t# its a single input\r\n\t\tif( $_REQUEST['ArrayInput_'.$column]!=1 ){\r\n\t\t\tlistmaker_fileupload_solo( $table, $column, $id, $ext_array );\r\n\r\n\t\t#\r\n\t\t# its an ArrayInput\r\n\t\t} else {\r\n\t\t\tlistmaker_fileupload_multi( $table, $column, $id, $ext_array );\r\n\t\t}\r\n\t}\r\n\r\n}", "title": "" }, { "docid": "60ebd2be14f5fdfbf44769906050007a", "score": "0.5315129", "text": "public function create_files($FILES){\n $result = array();\n foreach ($FILES as $file){\n $result[] = $this->create_file($file);\n }\n return $result;\n }", "title": "" }, { "docid": "2aa721ab46e9f1061748e293cdbf7279", "score": "0.52857935", "text": "public function file_processing()\n {\n $dirName = getcwd() . \"/mediaupload/\" . session_id() . \"/finished/\";\n\n mkdir($dirName);\n\n mkdir($dirName . $_POST['size']);\n\n // Now we create a file opener so we can write to the file\n $fp = fopen($dirName . $_POST['size'] . \"/\" . $_POST['amount'] . \"x \" .$_POST['photoId'] . \".jpg\", 'w+b');\n\n // Now let's handle the imageData\n $imageData = $_POST['imageData'];\n $filteredData = substr($imageData, strpos($imageData, \",\")+1);\n $unencodedData=base64_decode($filteredData);\n\n // And write everything to the file and close the file handler\n fwrite($fp, $unencodedData);\n fclose($fp);\n }", "title": "" }, { "docid": "c299ff5e7f168095e2d270c439eebf9b", "score": "0.5279617", "text": "function bulk_file_upload(array $mult_arr, $save_path){\n $total_file = @count($mult_arr['name']);\n for($i = 0; $i < $total_file; $i++) {\n $unique_name = round(microtime(true)) . '-' . $mult_arr['name'][$i];\n $target = $save_path.$unique_name;\n move_uploaded_file($mult_arr['tmp_name'][$i],$target);\n chmod($target, 0777);\n # skip the APP_ROOT form the path for database save\n $target = str_replace(APP_ROOT.'/','' , $target);\n $return_arr[] = $target;\n }\n\n return $return_arr;\n}", "title": "" }, { "docid": "0b3bc83d4cc2eb0a2a08ef04546620b1", "score": "0.5275878", "text": "public function preUpload()\n {\n if (null !== $this->file) {\n // do whatever you want to generate a unique name\n $filename = sha1(uniqid(mt_rand(), true));\n $this->path = $filename.'.'.$this->file->guessExtension();\n $this->fileName = $this->file->getClientOriginalName();\n $this->size = $this->file->getSize();\n $this->type = $this->file->getMimeType();\n $this->uploadDate = new \\DateTime('now');\n }\n }", "title": "" }, { "docid": "3a590e7ec628dcc64b05a625789edff8", "score": "0.5263538", "text": "public function validateMultiple()\n {\n if (is_array($this->name)) {\n for ($i = 0; $i < count($this->name); $i++) {\n $this->name[$i] = strtolower($this->name[$i]);\n $name = explode(\".\", $this->name[$i]);\n // image name\n $this->name[$i] = sha1($name[0] . time() . rand());\n // image extension\n $this->ext[$i] = array_values(array_slice($name, -1))[0];\n\n if (!in_array($this->ext[$i], $this->extensions)) {\n $this->uploadErrors[] = \"error File type not allowed\";\n }\n if ($this->size[$i] > 50000000) {\n $this->uploadErrors[] = \"Image File is too large\";\n }\n if ($this->errors[$i] > 0) {\n $this->uploadErrors[] = \"error uploading File\";\n }\n $this->image[$i] = $this->name[$i] . \".\" . $this->ext[$i];\n\n }\n }\n }", "title": "" }, { "docid": "92985d8ac0bdeafa362fff4afba92941", "score": "0.52611154", "text": "function cn_get_files($name) {\r\n $result = array();\r\n if(!isset($_FILES[$name])) return $result;\r\n\r\n $files = $_FILES[$name];\r\n \r\n if(isset($files['name']) and $files['name']) {\r\n if(is_array($files['name'])) {\r\n $l = count($files['name']);\r\n for($n = 0; $n < $l; $n ++) {\r\n if(isset($files['name'][$n]) and $files['name'][$n]) {\r\n $result[] = array(\r\n 'name' => $files['name'][$n],\r\n 'type' => $files['type'][$n],\r\n 'tmp_name' => $files['tmp_name'][$n],\r\n 'error' => $files['error'][$n],\r\n 'size' => $files['size'][$n]\r\n );\r\n }\r\n }\r\n } else {\r\n $result[] = $files;\r\n }\r\n }\r\n\r\n return $result;\r\n}", "title": "" }, { "docid": "7e394ebc6035911349e99ef6297ccf9b", "score": "0.5253746", "text": "protected function extractUploadedFileData($postVars)\n {\n $tmpFiles = array();\n\n if (!empty($this->contentModuleFieldName)) {\n $postVars = $this->request->postVar('ContentModule');\n //bit of a hack, but it stopped working for some reason\n if (empty($postVars) && !empty($_FILES['ContentModule'])) {\n $postVars = $_FILES['ContentModule'];\n }\n if (!empty($postVars['tmp_name'])\n && is_array($postVars['tmp_name'])\n ) {\n foreach ($postVars['tmp_name'] as $index => $tmp) {\n if (isset($postVars['tmp_name'][$index][$this->originalFieldName])) {\n for ($i = 0; $i < count($postVars['tmp_name'][$index][$this->originalFieldName]['Uploads']); $i++) {\n // Skip if \"empty\" file\n if (empty($postVars['tmp_name'][$index][$this->originalFieldName]['Uploads'][$i])) {\n continue;\n }\n $tmpFile = array();\n foreach (array('name', 'type', 'tmp_name', 'error', 'size') as $field) {\n $tmpFile[$field] = $postVars[$field][$index][$this->originalFieldName]['Uploads'][$i];\n }\n $tmpFiles[] = $tmpFile;\n }\n }\n }\n }\n return $tmpFiles;\n }\n\n // Note: Format of posted file parameters in php is a feature of using\n // <input name='{$Name}[Uploads][]' /> for multiple file uploads\n if (!empty($postVars['tmp_name'])\n && is_array($postVars['tmp_name'])\n && !empty($postVars['tmp_name']['Uploads'])\n ) {\n for ($i = 0; $i < count($postVars['tmp_name']['Uploads']); $i++) {\n // Skip if \"empty\" file\n if (empty($postVars['tmp_name']['Uploads'][$i])) {\n continue;\n }\n $tmpFile = array();\n foreach (array('name', 'type', 'tmp_name', 'error', 'size') as $field) {\n $tmpFile[$field] = $postVars[$field]['Uploads'][$i];\n }\n $tmpFiles[] = $tmpFile;\n }\n } elseif (!empty($postVars['tmp_name'])) {\n // Fallback to allow single file uploads (method used by AssetUploadField)\n $tmpFiles[] = $postVars;\n }\n\n return $tmpFiles;\n }", "title": "" }, { "docid": "2e2c079afd0f01182cb2cf2b56568063", "score": "0.52489054", "text": "public function withUploadedFiles(array $uploadedFiles)\n {\n }", "title": "" }, { "docid": "ffe5ff70550e8807de60b4c329dc3335", "score": "0.5245348", "text": "public function upload(): void\n {\n $this->request->allowMethod(['post']);\n\n $table = $this->loadModel();\n Assert::isInstanceOf($table, Table::class);\n\n $fileUpload = new FileUpload($table);\n\n $result = [\n 'success' => true,\n 'data' => [],\n ];\n foreach ((array)$this->request->getData($this->name) as $field => $files) {\n if (! is_array($files)) {\n continue;\n }\n\n $result['data'] = $fileUpload->saveAll($field, $files);\n }\n\n $this->set('result', $result);\n $this->set('_serialize', 'result');\n }", "title": "" }, { "docid": "5a296caaabbf73660379f7154d5e9689", "score": "0.5244826", "text": "function fn_filter_instant_upload($filter_by_ext = array())\n{\n if (!empty($_FILES['upload'])) {\n $_FILES['upload']['path'] = $_FILES['upload']['tmp_name'];\n $uploaded_data = fn_get_local_data(Bootstrap::stripSlashes($_FILES['upload']));\n if (fn_check_uploaded_data($uploaded_data, $filter_by_ext)) {\n return $uploaded_data;\n }\n }\n\n return false;\n}", "title": "" }, { "docid": "4ecef40f62808e1e08a3f6e8070403e3", "score": "0.5243706", "text": "public function convertFrom(/**\n * Find uploaded files.\n *\n * Extbase has already mapped the $_FILES data into the request\n * @see TYPO3\\CMS\\Extbase\\Mvc\\Web\\Request::build()\n * If a $_FILES array is found in the request data ($source),\n * set the file mime type with\n * \\TYPO3\\CMS\\Core\\Type\\File\\FileInfo\n * and write the data back into $source.\n */\n$source, /**\n * Find uploaded files.\n *\n * Extbase has already mapped the $_FILES data into the request\n * @see TYPO3\\CMS\\Extbase\\Mvc\\Web\\Request::build()\n * If a $_FILES array is found in the request data ($source),\n * set the file mime type with\n * \\TYPO3\\CMS\\Core\\Type\\File\\FileInfo\n * and write the data back into $source.\n */\n$targetType, /**\n * Find uploaded files.\n *\n * Extbase has already mapped the $_FILES data into the request\n * @see TYPO3\\CMS\\Extbase\\Mvc\\Web\\Request::build()\n * If a $_FILES array is found in the request data ($source),\n * set the file mime type with\n * \\TYPO3\\CMS\\Core\\Type\\File\\FileInfo\n * and write the data back into $source.\n */\narray $convertedChildProperties = [ ], /**\n * Find uploaded files.\n *\n * Extbase has already mapped the $_FILES data into the request\n * @see TYPO3\\CMS\\Extbase\\Mvc\\Web\\Request::build()\n * If a $_FILES array is found in the request data ($source),\n * set the file mime type with\n * \\TYPO3\\CMS\\Core\\Type\\File\\FileInfo\n * and write the data back into $source.\n */\nPropertyMappingConfigurationInterface $configuration = null) {}", "title": "" }, { "docid": "456a1be345c5645fd6c2b709d5b95899", "score": "0.52395403", "text": "public function upload( $files, $path = '', $max_file_size = 5, $valid_formats = ['jpg', 'png', 'gif', 'jpeg'], $field = '' ){\n\n if( $field != '' ){\n\n $files = $this->getFilesArray( $files , $field );\n\n }\n\n $max_file_size *= 1024 * 1024;\n\n $uploaded_files = [];\n\n $upload_path = \\Yii::getAlias('@frontend').'/web/upload/'.$path;\n if( substr($upload_path,-1)!='/' ) $upload_path = $upload_path.'/';\n\n if( !is_dir( $upload_path ) ) mkdir($upload_path, 0777, true);\n\n foreach ($files['name'] as $f => $name) {\n if ($files['error'][$f] == 4) {\n continue;\n }\n if ($files['error'][$f] == 0) {\n if ($files['size'][$f] > $max_file_size) {\n throw new \\Exception(\"$name is too large!\");\n continue; // Skip large files\n }\n elseif( is_array($valid_formats) && !in_array(strtolower(pathinfo($name, PATHINFO_EXTENSION)), $valid_formats) ){\n throw new \\Exception(\"$name is not a valid format\");\n continue; // Skip invalid file formats\n }\n else{ // No error found! Move uploaded files\n\n if( $up_file = $this->saveFile( $files[\"tmp_name\"][$f], $upload_path, $name ) ) {\n $uploaded_files[] = $up_file;\n } else {\n throw new \\Exception(\"Can't upload file $name\");\n }\n\n }\n }\n }\n\n return $uploaded_files;\n\n }", "title": "" }, { "docid": "e6e0f35729db946483e1906b65953929", "score": "0.52335376", "text": "protected function _preprocess() {\r\n\t\tFlex_Process::factory(Flex_Process::PROCESS_PAYMENTS_PREPROCESS)->lock();\r\n\r\n\t\t// Optional FileImport.Id parameter\r\n\t\t$iFileImportId = $this->_aArgs[self::SWITCH_FILE_IMPORT_ID];\r\n\t\tif ($iFileImportId && ($oFileImport = File_Import::getForId($iFileImportId))) {\r\n\t\t\tif ($oFileImport->Status !== FILE_COLLECTED) {\r\n\t\t\t\tthrow new Exception(\"Only Files with Status FILE_COLLECTED (\".FILE_COLLECTED.\") can be pre-Processed\");\r\n\t\t\t}\r\n\r\n\t\t\t// Make sure that we have a Carrier Module defined to process this File\r\n\t\t\tCarrier_Module::getForDefinition(MODULE_TYPE_NORMALISATION_PAYMENT, $oFileImport->FileType, $oFileImport->Carrier);\r\n\t\t}\r\n\r\n\t\t// Optional Limit Parameter\r\n\t\t$iLimit = (isset($this->_aArgs[self::SWITCH_LIMIT]) ? (int)$this->_aArgs[self::SWITCH_LIMIT] : null);\r\n\r\n\t\t// Process the Files\r\n\t\ttry {\r\n\t\t\tResource_Type_File_Import_Payment::preProcessFiles($iFileImportId, $iLimit);\r\n\t\t} catch (Exception $oException) {\r\n\t\t\t// TODO: Transaction if testing\r\n\t\t\tthrow $oException;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "bc7f1b65e24331b53777358dfdea65c8", "score": "0.5230627", "text": "public function startUpload( $files )\n\t{\n\t\t// Re formate the array\t\t\n\t\t$newFileArray= $this->reArrayFiles( $files );\n\n\t\t// Loop through all the files and do the validation\n\t\tforeach( $newFileArray as $file ) {\n\t\t\t\n\t\t\t$fileName = $file['name'];\n\t\t\t$fileType = $file['type'];\n\t\t\t$fileTmpName = $file['tmp_name'];\n\t\t\t$fileError = $file['error'];\n\t\t\t$fileSize = $file['size'];\n\n\t\t\t// check the file size\n\t\t\tif( !$this->checkSize ( $fileTmpName ) ) {\n\t\t\t\tdie('Your uploaded file is too large');\n\t\t\t}\n\n\t\t\t// Check file extension\n\t\t\tif ( !$this->checkExt( $fileName ) ) {\n\t\t\t\tdie('Sorry, you can not upload this filetype!');\n\t\t\t}\n\n\t\t\t// Finally if the file is uploaded \n\t\t\tif ( $this->uploadIt( $fileTmpName, $fileName ) ) {\n\t\t\t\tif ( $this->insertToGallery( $this->newFileName, $fileName)) {\n\t\t\t\t\techo 'Your file has been uploaded!';\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdie('Sorry, your file could not be uploaded for some unknown reason!');\n\t\t\t}\n\t\t\t\n\t\t}\t\n\t\t\n\t}", "title": "" }, { "docid": "f802eaabd760f12d53ca9c080054434c", "score": "0.5227007", "text": "public function uploadFileData($name, array $fields)\n {\n // http://www.php.net/manual/ru/features.file-upload.post-method.php\n // http://www.php.su/articles/?cat=protocols&page=006\n // http://php.spb.ru/php/image.html\n if (!strlen($name) || ($_FILES[$name]['size'] == 0))\n return null;\n $tmp_name = $_FILES[$name]['tmp_name'];\n if (!strlen($tmp_name))\n return null;\n $fieldContents = self::extractFieldName('contents', $fields);\n if (!strlen($fieldContents))\n return null;\n $file = fopen($tmp_name, 'rb');\n if ($file == null)\n return null;\n $contents = fread($file, filesize($tmp_name));\n fclose($file);\n $values = array($fieldContents => self::str($contents));\n // File name\n $fieldFilename = self::extractFieldName('filename', $fields);\n $filename = $_FILES[$name]['name'];\n if (strlen($fieldFilename) && strlen($filename))\n $values[$fieldFilename] = self::str($filename);\n // File size\n $fieldSize = self::extractFieldName('size', $fields);\n $size = $_FILES[$name]['size'];\n if (strlen($fieldSize) && strlen($size))\n $values[$fieldSize] = $size;\n // Mime type\n $fieldMimetype = self::extractFieldName('mimetype', $fields);\n $mimetype = $_FILES[$name]['type'];\n if (strlen($fieldMimetype) && strlen($mimetype))\n $values[$fieldMimetype] = self::str($mimetype);\n // Image width and height\n $fieldWidth = self::extractFieldName('width', $fields);\n $fieldHeight = self::extractFieldName('height', $fields);\n if(strlen($fieldWidth) || strlen($fieldHeight))\n { // http://www.php.su/getimagesize\n $size = getimagesize($tmp_name);\n if(strlen($fieldWidth))\n $values[$fieldWidth] = $size ? $size[0] : 0;\n if(strlen($fieldHeight))\n $values[$fieldHeight] = $size ? $size[1] : 0;\n }\n\n return $values;\n }", "title": "" }, { "docid": "4b169fdac2d02333abd2519ba14cfef6", "score": "0.5226045", "text": "function add_record_files_post(){\n $record_id = $this->post('record_id');\n $files = $this->post('files');\n\n $check_verify_params = checkVerifyParams(array(\n $record_id,\n $files,\n ));\n if(!empty($check_verify_params) || !count($files)){\n $this->response(RestBadRequest(MISMATCH_PARAMS_MSG), BAD_REQUEST_CODE);\n }\n\n $file_src = [];\n $thumb_file_src = [];\n foreach($files as $file){\n $this->record_file_model->create(array(\n 'record_id' => $record_id,\n 'file_name' => cleanFileName($file['name']),\n 'file_type' => $file['type'],\n 'file_size' => $file['size'],\n 'file_src' => $file['url'],\n 'thumb_file_src' => $file['thumbnailUrl'],\n ));\n $file_src[] = $file['url'];\n $thumb_file_src[] = $file['thumbnailUrl'];\n }\n\n $res = array(\n 'file_src' => $file_src,\n 'thumb_file_src' => $thumb_file_src\n );\n\n $this->response(RestSuccess($res), SUCCESS_CODE);\n }", "title": "" }, { "docid": "d3f822ab14d7d08f4b26101cbefb700f", "score": "0.5225195", "text": "public function getUploadedFiles() {}", "title": "" }, { "docid": "d7cf5fd055c5105fb746399a8685950b", "score": "0.5223606", "text": "function _load_files(&$app, &$c) {\n\t\t$files = $c->param('app.view_http.request.files');\n\t\tif (is_array($files)) {\n\t\t\tforeach($files as $k => $file) {\n\t\t\t\tif (is_array($file['size'])) {\n\t\t\t\t\tfor($i=0;$i<count($file['size']);$i++) {\n\t\t\t\t\t\tif (($file['size'][$i] > 0) && (!empty($file['tmp_name'][$i])))\n\t\t\t\t\t\t\t$this->_http->addFile($file['name'][$i], $file['tmp_name'][$i], $file['type'][$i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tif (($file['size'] > 0) && (!empty($file['tmp_name'])))\n\t\t\t\t\t\t$this->_http->addFile($file['name'], $file['tmp_name'], $file['type']);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0ddd8cb6ea4e7bd0a5384c7f249142a3", "score": "0.5221756", "text": "public function testSuperglobalFilesEmptyAfterStore()\n {\n $_FILES['test1'] = [\n 'name' => 'Name',\n 'type' => 'Type',\n 'tmp_name' => 'Tmp',\n 'error' => 'Error',\n 'size' => 'Size'\n ];\n\n $_FILES['test2'] = [\n 'name' => 'Name2',\n 'type' => 'Type2',\n 'tmp_name' => 'Tmp2',\n 'error' => 'Error2',\n 'size' => 'Size2'\n ];\n\n $method = $this->get_accessible_reflection_method('store_files');\n $method->invoke($this->class);\n\n $this->assertArrayEmpty($_FILES);\n }", "title": "" }, { "docid": "bfc2f4fd82bb7b4a93c77b0116ac9dbd", "score": "0.5221558", "text": "public static function reArrayFiles($file_post) {\n if (!isset($file_post) || !is_array($file_post)) {\n return null;\n }\n $file_ary = array();\n $file_count = count($file_post['name']);\n $file_keys = array_keys($file_post);\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 //filter out empty values\n foreach ($file_ary as $k => $f) {\n if (empty($f['name'])) {\n unset($file_ary[$k]);\n }\n }\n return $file_ary;\n }", "title": "" }, { "docid": "1c857c0ce06cb0d215098ea24e99464b", "score": "0.52112556", "text": "private function process()\n {\n // one has to be sure\n if ( empty($this->file['tmp_name']) ) {\n $this->err_upload = true;\n\n return;\n }\n\n if ( $this->new_file_name ) {\n // save desired new file name\n $this->name = $this->new_file_name;\n } else {\n // save as regular file name\n $this->name = !empty($this->path_info['filename']) ? $this->path_info['filename'] : 'new-file';\n }\n\n // add extension\n $this->name .= '.' . $this->path_info['extension'];\n\n $this->path = $this->upload_dir ? $this->upload_dir : __DIR__;\n $this->path .= !in_array(substr($this->path, -1), array('/', '\\\\')) ? DIRECTORY_SEPARATOR : null;\n $this->path .= $this->name;\n\n if ( move_uploaded_file($this->file['tmp_name'], $this->path) ) {\n $this->err_upload = false;\n $this->upload_success = true;\n\n return true;\n } else {\n $this->err_upload = true;\n $this->upload_success = false;\n\n return false;\n }\n }", "title": "" }, { "docid": "fb57e2c379b326b6d8dfe0a750ba1481", "score": "0.52104235", "text": "public function getUploadedFiles() : array;", "title": "" }, { "docid": "63384b32620d77efcc595dd347810cec", "score": "0.52099025", "text": "protected function prepareForeach(UploadedFile $file = null)\n {\n $this->name = $this->getStoreName($file);\n\n return tap($this->upload($file), function () {\n $this->name = null;\n });\n }", "title": "" }, { "docid": "de941bbeb51809f49f6e1a9d30cce1f7", "score": "0.52015305", "text": "public function cleanFiles()\n { \n $this->zip();\n // $this->unzip();\n\n if (!empty($this->files)) {\n foreach ($files as $file) {\n $this->clean($file);\n }\n }\n }", "title": "" }, { "docid": "768e6456ab4b724e9905ff6f19227f86", "score": "0.5194875", "text": "public function & getFiles() {\n\t\treturn $_FILES;\n\t}", "title": "" }, { "docid": "da1a8355b94772644da9d5de44e01366", "score": "0.51753265", "text": "protected function normalizeFiles(array $rawFiles)\n {\n $currentRoute = Yii::app()->getController()->getRoute();\n\n $pos = mb_strrpos($currentRoute, '/');\n if ($pos !== false) {\n $baseRoute = mb_substr($currentRoute, 0, $pos);\n } else {\n $baseRoute = $currentRoute;\n }\n\n $normalizedFiles = array();\n foreach ($rawFiles as $rawFile) {\n if (is_object($rawFile)) {\n $normalizedFile = array(\n 'id' => $rawFile->id,\n 'name' => $rawFile->name,\n );\n } elseif (is_array($rawFile)) {\n $normalizedFile = $rawFile;\n } else {\n throw new CException('File should either array or object!');\n }\n if (empty($normalizedFile['downloadUrl'])) {\n $normalizedFile['downloadUrl'] = Yii::app()->createUrl($this->baseDownloadUrl, array('id' => $normalizedFile['id']));\n }\n if (empty($normalizedFile['deleteUrl'])) {\n $normalizedFile['deleteUrl'] = Yii::app()->createUrl($baseRoute . $this->baseDeleteUrl, array('id' => $normalizedFile['id']));\n }\n $normalizedFiles[] = $normalizedFile;\n }\n return $normalizedFiles;\n }", "title": "" }, { "docid": "e4ec9cac70d98bb7b43144a90c1437e7", "score": "0.516924", "text": "function Files($inputName, $folder, $type)\n\t{\n\t\tif (isset($_FILES[$inputName]) AND !empty($_FILES[$inputName]))\n\t\t{\n\t\t\t/*on check que cest lattribut multiple qui est utilise\n\t\t\t\tsi oui on recuperera les donnees sous form\n\t\t\t*/\n\t\t\t\t\n\t\t\tif (is_array($_FILES[$inputName]['name'])) \n\t\t\t{\n\t\t\t\t//on declare notre variable de retour qui sera un array\n\t\t\t\t$file = array();\n\t\t\t\tfor ($i = 0; $i < count($_FILES[$inputName]['name']); $i++)\n\t\t\t\t{ \n\t\t\t\t\t//on recupere le nom entier du fichier envoye\n\t\t\t\t\t$infosfichier = pathinfo($_FILES[$inputName]['name'][$i]);\n\n\t\t\t\t\t//on recupere l'extension du fichier\n\t\t\t\t\t$extension_upload = $infosfichier['extension'];\n\t\t\t\t\t$extension_autorisees; \n\t\t\t\t\t//on definit les extensions autorisees\n\t\t\t\t\tif (is_numeric($type)) \n\t\t\t\t\t{\n\t\t\t\t\t\tswitch ($type) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// 1 pour les images\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t$extension_autorisees = array('jpg','jpeg', 'png', 'gif', 'JPEG','JPG', 'PNG', 'GIF');\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t// 2 pour les audios\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t$extension_autorisees = array('mp3','mp4', 'wav', 'MP3','MP4', 'WAV' );\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t// 3 pour les videos\n\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t$extension_autorisees = array('mp3','mp4', 'wav', 'avi', 'flv', 'vob', 'MP3','MP4', 'WAV', 'AVI', 'FLV', 'VOB');\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t// pour les documents word, excel, pdf et powerpoint\n\t\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\t\t$extension_autorisees = array('doc', 'docs', 'xls', 'pdf', 'pptx');\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t// 7 pour tous les types\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t$extension_autorisees = array('jpg','jpeg', 'png', 'gif', 'JPEG','JPG', 'PNG', 'GIF', 'mp3','mp4', 'wav', 'MP3','MP4', 'WAV', 'avi', 'flv', 'vob', 'MP3','MP4', 'WAV', 'AVI', 'FLV', 'VOB');\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//on verifie que l'extension du fichier uploade est parmi celles autorisees\n\t\t\t\t\tif(in_array($extension_upload, $extension_autorisees))\n\t\t\t\t\t{\t\n\t\t\t\t\t\t//on deplace le fichier vers le dossier $folder specifie\n\t\t\t\t\t\tmove_uploaded_file($_FILES[$inputName]['tmp_name'][$i], './'.$folder.'/'.basename($_FILES[$inputName]['name'][$i]));\n\t\t\t\t\t\t//echo $_FILES[$inputName]['name'][$i];\n\t\t\t\t\t\tarray_push($file, $_FILES[$inputName]['name'][$i]);\n\t\t\t\t\t\t//on retourne le nom du fichier + son extension pour une eventuelle mise a jour ou une insertion dans la base de donnee\n\t\t\t\t\t}\n\t\t\t\t\t//si l'extension du fichier nexiste pas dans notre liste ou si le type de $type nest pas numerique\n\t\t\t\t\tif (!is_numeric($type) || !in_array($extension_upload, $extension_autorisees))\n\t\t\t\t\t{\n\t\t\t\t\t\t$error = \"Erreur lors de l'enregistrement du fichier: fichier trop lourd ou extension nom supportee \";\n\t\t\t\t\t\techo $error;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//on retourne la liste des fichiers uploades sous forme de tableau\n\t\t\t\treturn $file;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//on recupere le nom entier du fichier envoye\n\t\t\t\t$infosfichier = pathinfo($_FILES[$inputName]['name']);\n\t\t\t\t//on recupere l'extension du fichier\n\t\t\t\t$extension_upload = $infosfichier['extension'];\n\t\t\t\t$extension_autorisees; \n\t\t\t\t//on definit les extensions autorisees\n\t\t\t\tif (is_numeric($type)) \n\t\t\t\t{\n\t\t\t\t\tswitch ($type) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// 1 pour les images\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t$extension_autorisees = array('jpg','jpeg', 'png', 'gif', 'JPEG','JPG', 'PNG', 'GIF');\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t// 2 pour les audios\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t$extension_autorisees = array('mp3','mp4', 'wav', 'MP3','MP4', 'WAV' );\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t// 3 pour les videos\n\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t$extension_autorisees = array('mp3','mp4', 'wav', 'avi', 'flv', 'vob', 'MP3','MP4', 'WAV', 'AVI', 'FLV', 'VOB');\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t// pour les documents word, excel, pdf et powerpoint\n\t\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\t\t$extension_autorisees = array('doc', 'docs', 'xls', 'pdf', 'pptx');\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t// 7 pour tous les types\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t$extension_autorisees = array('jpg','jpeg', 'png', 'gif', 'JPEG','JPG', 'PNG', 'GIF', 'mp3','mp4', 'wav', 'MP3','MP4', 'WAV', 'avi', 'flv', 'vob', 'MP3','MP4', 'WAV', 'AVI', 'FLV', 'VOB');\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t//on verifie que l'extension du fichier uploade est parmi celles autorisees\n\t\t\t\tif(in_array($extension_upload, $extension_autorisees))\n\t\t\t\t{\t\n\t\t\t\t\t//on deplace le fichier vers le dossier $folder specifie\n\t\t\t\t\tmove_uploaded_file($_FILES[$inputName]['tmp_name'], './'.$folder.'/'.basename($_FILES[$inputName]['name']));\n\t\t\t\t\t$file = $_FILES[$inputName]['name'];\n\t\t\t\t\t//on retourne le nom du fichier + son extension pour une eventuelle mise a jour ou une insertion dans la base de donnee\n\t\t\t\t\treturn $file;\n\t\t\t\t}\n\t\t\t\t//si l'extension du fichier nexiste pas dans notre liste ou si le type de $type nest pas numerique\n\t\t\t\tif (!is_numeric($type) || !in_array($extension_upload, $extension_autorisees))\n\t\t\t\t{\n\t\t\t\t\t$error = \"Erreur lors de l'enregistrement du fichier: fichier trop lourd ou extension nom supportee \";\n\t\t\t\t\techo $error;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4ae771846fc66c63560ed8ebc80fc913", "score": "0.51677287", "text": "final protected function transformFiles(&$files)\n {\n // ... transform?\n }", "title": "" }, { "docid": "037461d6c7dba5d9f5c7cf23ce7ebbc4", "score": "0.51645464", "text": "protected function initializeFileStorages() {}", "title": "" }, { "docid": "1fa77f7f701f473edfc9287e47b2e9c3", "score": "0.5162332", "text": "public function saveFiles($arrMetafiles)\n {\n if (!is_array($arrMetafiles) || count($_FILES) == 0)\n {\n throw new Exception($GLOBALS['TL_LANG']['ERR']['missing_file_information']);\n }\n\n $arrResponse = array();\n\n foreach ($_FILES as $key => $value)\n {\n if (!key_exists($key, $arrMetafiles))\n {\n throw new Exception($GLOBALS['TL_LANG']['ERR']['missing_file_information']);\n }\n\n $strFolder = $arrMetafiles[$key][\"folder\"];\n $strFile = $arrMetafiles[$key][\"file\"];\n $strMD5 = $arrMetafiles[$key][\"MD5\"];\n\n switch ($arrMetafiles[$key][\"typ\"])\n {\n case SyncCtoEnum::UPLOAD_TEMP:\n $strSaveFile = $this->objSyncCtoHelper->standardizePath($GLOBALS['SYC_PATH']['tmp'], $strFolder, $strFile);\n break;\n\n case SyncCtoEnum::UPLOAD_SYNC_TEMP:\n $strSaveFile = $this->objSyncCtoHelper->standardizePath($GLOBALS['SYC_PATH']['tmp'], \"sync\", $strFolder, $strFile);\n break;\n\n case SyncCtoEnum::UPLOAD_SQL_TEMP:\n $strSaveFile = $this->objSyncCtoHelper->standardizePath($GLOBALS['SYC_PATH']['tmp'], \"sql\", $strFile);\n break;\n\n case SyncCtoEnum::UPLOAD_SYNC_SPLIT:\n $strSaveFile = $this->objSyncCtoHelper->standardizePath($GLOBALS['SYC_PATH']['tmp'], $arrMetafiles[$key][\"splitname\"], $strFile);\n break;\n\n default:\n throw new Exception($GLOBALS['TL_LANG']['ERR']['unknown_path']);\n break;\n }\n\n $objFolder = new Folder(dirname($strSaveFile));\n\n if ($this->objFiles->move_uploaded_file($value[\"tmp_name\"], $strSaveFile) === FALSE)\n {\n throw new Exception(vsprintf($GLOBALS['TL_LANG']['ERR']['cant_move_file'], array($value[\"tmp_name\"], $strSaveFile)));\n }\n else if ($key != md5_file(TL_ROOT . \"/\" . $strSaveFile))\n {\n throw new Exception($GLOBALS['TL_LANG']['ERR']['checksum_error']);\n }\n else\n {\n $arrResponse[$key] = \"Saving \" . $arrMetafiles[$key][\"file\"];\n }\n }\n\n return $arrResponse;\n }", "title": "" }, { "docid": "905a04c663e938ebf307fe4d383da2dd", "score": "0.5150756", "text": "public function multipleUploads($dirName, $table_name, $table_field_data) {\n $adver = realpath(APPPATH . \"../user_uploads/\" . $dirName);\n $this->load->library('upload');\n $files = $_FILES;\n $cpt = count($_FILES['file']['name']);\n $img_array = [];\n for ($i = 0; $i < $cpt; $i++) {\n echo $i;\n $_FILES['file']['name'] = $files['file']['name'][$i];\n $_FILES['file']['type'] = $files['file']['type'][$i];\n $_FILES['file']['tmp_name'] = $files['file']['tmp_name'][$i];\n $_FILES['file']['error'] = $files['file']['error'][$i];\n $_FILES['file']['size'] = $files['file']['size'][$i];\n\n if (!$_FILES[\"file\"]['name']) {\n $new_name = '';\n } else {\n $new_name = date('s') . str_replace(' ', '', $_FILES[\"file\"]['name']);\n }\n\n $config = [\n 'upload_path' => $adver,\n 'allowed_types' => 'gif|png|jpg|jpeg',\n 'remove_spaces' => TRUE,\n 'image_library' => 'gd2',\n 'quality' => 60,\n 'file_name' => $new_name\n ];\n $this->upload->initialize($config);\n if ($this->upload->do_upload('file')) {\n $table_field_data['image_name'] = $new_name;\n\n $this->db->insert($table_name, $table_field_data);\n }\n }\n return 1;\n }", "title": "" }, { "docid": "a88fb99f83862aa8f8abb881e7edaaa6", "score": "0.51440644", "text": "protected function handleMultipleFiles()\n {\n $this->setView('diff_multiple');\n $excludes = $this->getExcludes();\n $filenames = $_POST['files'];\n $files = [];\n foreach($filenames as $i => $filename) {\n $filename = Tools::sanitize($filename);\n list($filename, $file_src, $file_dest, $hash) = $this->getFile($filename);\n\n if(!isset($_POST['hashes']) || !isset($_POST['hashes'][$i]) || $_POST['hashes'][$i] !== $hash) {\n $this->assign('error', $this->__('The hash of the file :file is not valid. Abort.', ['file' => $filename]));\n return;\n }\n\n if($error = $this->checkFile($excludes, $filename, $file_src)) {\n $this->assign('error', $error);\n return;\n }\n\n if(!is_file($file_dest)) {\n $exists = false;\n $content = htmlentities(file_get_contents($file_src));\n }\n else {\n $exists = true;\n $content = Diff::toTable(Diff::compareFiles($file_dest, $file_src));\n }\n\n $files[] = compact('filename', 'file_src', 'file_dest', 'hash', 'exists', 'content');\n }\n\n $this->assign(compact('files'));\n }", "title": "" }, { "docid": "361232e14044a152f5079e8dbe78fb04", "score": "0.5141655", "text": "public function getUploadedFiles();", "title": "" }, { "docid": "eccd03592fbdd26fc28035f6b53db6be", "score": "0.51241726", "text": "function uploadMultipleFile($i) {\n\t\t\t\n\t\t$file = $this->data['Upload'][$i]['file'];\n\t\tif ($file['error'] === UPLOAD_ERR_OK) {\n\t\t\t\t\n\t\t\t$id = String::uuid();\n\t\t\tif (move_uploaded_file($file['tmp_name'], APP.'webroot/img/uploads'.DS.$id.strrchr($file['name'], \".\"))) {\n\t\t\t \t\n\t\t\t $this->request->data['Upload'][$i]['id'] = $id;\n\t\t\t $this->request->data['Upload'][$i]['user_id'] = $this->Auth->user('id');\n\t\t\t $this->request->data['Upload'][$i]['filename'] = $file['name'];\n\t\t\t $this->request->data['Upload'][$i]['filesize'] = $file['size'];\n\t\t\t $this->request->data['Upload'][$i]['filemime'] = $file['type'];\n\t\t\t\n\t\t\t return true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\n\treturn false;\n\t\n\t}", "title": "" } ]
8629fc3c87acde8fb05d2c27a363db5d
? Apagar todos os ficheiros
[ { "docid": "7d3e1b0bf88b4ac0c6926bb7146b2b76", "score": "0.0", "text": "public function deleteFicheiros($id)\n {\n Ficheiro::where('proposta_id', $id)->delete();\n\n Storage::disk('local')->deleteDirectory('public/ficheiros/' . $id);\n\n return response()->json('Ficheiros apagados com sucesso!', 200); \n }", "title": "" } ]
[ { "docid": "0e74b32603ad408ef33dbe82647ea8ca", "score": "0.6501103", "text": "public function listarInativos();", "title": "" }, { "docid": "d503b01f272c85b75d975869118486e6", "score": "0.647656", "text": "public function afficherAll()\n {\n }", "title": "" }, { "docid": "d503b01f272c85b75d975869118486e6", "score": "0.647656", "text": "public function afficherAll()\n {\n }", "title": "" }, { "docid": "a7bf3dfb7355e4cf8a4f7e13a5889322", "score": "0.6465867", "text": "function listingFournisseurs()\n {\n $data['all_fss'] = $this->Educazad_model->get_multiple('tb_im_fournisseurs', array(), 'tb_im_fournisseurs.fss_id','DESC');\n\n $data['_view'] = 'entrees/listingFournisseurs';\n $this->load->view('layouts/main',$data);\n }", "title": "" }, { "docid": "ce0af076cd3cba5f33b033f486844f80", "score": "0.63264686", "text": "public function verTodas() {\n \n $cafeterias = Cafeteria::getAll();\n\n\n $favoritas = '';\n\n if (Session::has('id')) {\n\n $favoritas = Favoritos::getById($_SESSION['id'], 'id_usuario');\n \n }\n\n $data['cafeterias'] = $cafeterias;\n\n $fav = array();\n\n if ($favoritas != '') {\n\n foreach ($favoritas as $row) {\n\n $fav[] = $row['id_cafeteria'];\n \n }\n\n $data['favoritas'] = $fav;\n }\n\n View::render('front/cafeterias', compact('data') );\n }", "title": "" }, { "docid": "85d6cc2694f8768803a086810cb0cb0b", "score": "0.62468076", "text": "public function buscar_todos() {\n\t\t$usuario = $this -> ssouva -> login();\n\t\t$datos[\"usuario\"] = $usuario;\n\n\t\t// Cosas de sesiones y si es admin o no\n\t\tif ($this -> admin_model -> es_admin($usuario)>0) {\n\t\t\t$q = $this -> input -> post(\"q\");\n\t\t\t$datos[\"q\"] = $q;\n\n\t\t\tif ($q==\"\") {\n\t\t\t\t$datos[\"busqueda\"] = array();\n\t\t\t} else {\n\t\t\t\t// Si buscamos un piso\n\t\t\t\t$datos[\"busqueda\"] = $this -> pisos_model -> buscar_piso_4($q);\n\t\t\t}\n\n\t\t\t//Cargamos la principal\n\t\t\t//$datos[\"denuncias\"] = $this -> comentarios_model -> hay_denuncias(); <---- Esto sobra ahora y tal y pascual\n\t\t\t//echo \"<br><br><br>TODOS<br><br><br>\";\n\t\t\t$this -> load -> view(\"doc/buscar\", $datos);\n\t\t}\n\t}", "title": "" }, { "docid": "ab4f7c7b52e2ae46c55e3b46ebbb6524", "score": "0.6234822", "text": "function list_pembicara(){\r\n }", "title": "" }, { "docid": "5063946849440f89ea3fec9e0c895113", "score": "0.6179087", "text": "public function listar();", "title": "" }, { "docid": "5063946849440f89ea3fec9e0c895113", "score": "0.6179087", "text": "public function listar();", "title": "" }, { "docid": "5063946849440f89ea3fec9e0c895113", "score": "0.6179087", "text": "public function listar();", "title": "" }, { "docid": "e95574e5cf83444a63a14b20b71d65e4", "score": "0.617382", "text": "function limpiar_busquedas() {\n\t\t$this->Session->delete('filtros');\n\t\t$this->autoRender = false;\n\t}", "title": "" }, { "docid": "33edd0e6ab98c5238daed34e8ce48360", "score": "0.61462855", "text": "function listar_familias($objeto) {\n\t// Si el objeto viene vacio(llamado desde el index) se le asigna el $_REQUEST que manda el Index\n\t// Si no conserva su valor normal\n\t\t$objeto = (empty($objeto)) ? $_REQUEST : $objeto;\n\t\n\t// Consulta las familias y las devuelve en un array\n\t\t$familias = $this -> comandasModel -> getFamilies($objeto['departamento']);\n\t\t$familias = $familias['rows'];\n\t\t\n\t// Carga la vista\n\t\trequire ('views/comandera/listar_familias.php');\n\t}", "title": "" }, { "docid": "4c670e72b06e14aed935b2b037de51f4", "score": "0.6114202", "text": "function administrarCargos(){\n\t\t$this->listarCargos();\n\t}", "title": "" }, { "docid": "c7fc4c5030dcf923d164935d5ba3c1a8", "score": "0.610858", "text": "function BuscarFotos($titulo, $fecha, $pais) {\r\n\t\t\r\n\t\t$i = -1;\r\n\t\t$variable = [];\r\n\t\tif ($titulo != \"\") {\t// Buscar por título\r\n\t\t\t$i++;\r\n\t\t\t$variable[$i] = 'Titulo like \"%'.$titulo.'%\"';\r\n\t\t}\r\n\t\tif ($pais != \"\") {\t\t// Buscar por país\r\n\t\t\t$i++;\r\n\t\t\t$variable[$i] = 'IdPais = '.$pais;\r\n\t\t}\r\n\t\tif ($fecha != \"\") {\t\t// Buscar por fecha\r\n\t\t\t$i++;\r\n\t\t\t$variable[$i] = 'Fecha = \"'.$fecha.'\"';\r\n\t\t}\r\n\t\t\r\n\t\tif ($i >= 0) {\r\n\t\t\t// Obtenemos la cadena con los datos a consultar\r\n\t\t\t$cadena = '';\r\n\t\t\tfor ($i=0; $i<count($variable); $i++) {\r\n\t\t\t\t$cadena = $cadena.$variable[$i];\r\n\t\t\t\tif ((count($variable) > 1) && ($i < count($variable)-1)) {\r\n\t\t\t\t\t$cadena = $cadena.' and ';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$conexion = conecta();\r\n\t\t\t$consulta = 'select IdFoto, Fichero, Titulo, DATE_FORMAT(Fecha, \"%d/%m/%Y\") as Fecha, NomPais from fotos inner join paises on IdPais = Pais where '.$cadena;\r\n\t\t\t$resultado = ejecutaConsulta($conexion, $consulta);\r\n\t\t\t\r\n\t\t\t$tab = 13;\r\n\t\t\tif ($resultado->num_rows > 0) {\r\n\t\t\t\twhile($fila = $resultado->fetch_object()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\techo '<ul class=\"lista_fotos\">\r\n\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t\t<h3>'.$fila->Titulo.'</h3>\r\n\t\t\t\t\t\t\t<a href=\"detalle_foto.php?id='.$fila->IdFoto.'\" title=\"Ver '.$fila->Titulo.'\" tabindex=\"'.$tab.'\"><img src=\"'.$fila->Fichero.'\" alt=\"'.$fila->Titulo.'\" width=\"200\" height=\"150\"/></a>\r\n\t\t\t\t\t\t\t<ul class=\"datos\">\r\n\t\t\t\t\t\t\t\t<li>'.$fila->Fecha.'</li>\r\n\t\t\t\t\t\t\t\t<li>'.$fila->NomPais.'</li>\r\n\t\t\t\t\t\t\t</ul>\r\n\t\t\t\t\t\t</li>\r\n\t\t\t\t\t</ul>';\r\n\t\t\t\t\t$tab++;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\techo '<p>No hay resultados.</p>';\r\n\t\t\t}\r\n\t\t\t$resultado->close();\r\n\t\t\t$conexion->close();\r\n\t\t} else {\r\n\t\t\t// Si no hay datos, sacacmos el mensaje y salimos de la función\r\n\t\t\techo '<p class=\"color_rojo\">Introduce algunos datos para la búsqueda.</p>';\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ca84463bdf8aa9caeb451364d886d094", "score": "0.60464555", "text": "function listar_facilidad(){\n\t\tif (isset($_POST['buscar']))\n\t\t\t$_SESSION['buscar']=$_POST['buscar'];\n\t\t\t\n\t\tif (isset($_SESSION['buscar']) && $_SESSION['buscar']!=\"\"){\t\n\t\t\t$this->buscar=$_SESSION['buscar'];\n\t\t\t$sql=\"SELECT * FROM facilidad WHERE\n\t\t\t(nombre_fac LIKE '%' '\".$_SESSION['buscar'].\"' '%' OR \n\t\t\tetiqueta_fac LIKE '%' '\".$_SESSION['buscar'].\"' '%') \n\t\t\tORDER BY id_fac ASC\";\n\t\t}else{\n\t\t\t$sql=\"SELECT * FROM facilidad ORDER BY id_fac\";\n\t\t}\n\t\t$consulta=mysql_query($sql);\n\t\twhile ($resultado = mysql_fetch_array($consulta)){\n\t\t\t$this->mensaje=\"si\";\n\t\t\t$this->listado[] = $resultado;\n\t\t}\n\t}", "title": "" }, { "docid": "2d75a5bd6e7989be8de86f1348422ad5", "score": "0.6036622", "text": "public function recuperarFavoritos() {\n $db = new BD();\n $sentencia = \"SELECT `pincho_idpincho`, SUM(`likes`) AS media FROM `codigopincho` WHERE `favorito` = 1 GROUP BY `pincho_idpincho` ORDER BY 2 DESC\";\n $res = mysqli_query($db->connection,$sentencia);\n $db->desconectar();\n return $res;\n }", "title": "" }, { "docid": "92f49499e00a474653c8b7dff723f484", "score": "0.60261005", "text": "static function CrearArticulos() {\n\n $fallos = 0;\n\n foreach (self::$xml->producto as $item) {\n $codigo = str_replace(\"/\", \"_\", trim($item->part_number));\n $categoria = self::Limpia($item->categoria_1);\n if ($categoria == '') {\n $categoria = 'varios';\n }\n $familia = self::Limpia($item->categoria_2);\n if ($familia == '') {\n $familia = 'varios';\n }\n $subfamilia = self::Limpia($item->categoria_3);\n\n $tmp = $item->nombre;\n $nombre = self::Limpia($tmp);\n $tmp = $item->descripcion;\n $descripcion = self::Limpia($tmp);\n $pvd = str_replace(\",\", \".\", $item->precio);\n $pvp = str_replace(\",\", \".\", $item->pvpr); //$pvd * (1 + $margen / 100);\n $pvp = $pvp / 1.21;\n $margen = 0;\n if ($pvd > 0) {\n $margen = $pvp / $pvd * 100 - 100;\n }\n\n $peso = str_replace(\",\", \".\", $item->peso);\n//Le quito los espacios en blanco al principio y al final\n//Los espacios en blanco intermedios los sustituyo por %20 para que la url sea correcta.\n $imagen = self::Limpia($item->imagen);\n\n $fab = new Fabricantes();\n $fab = $fab->find(\"Titulo\", self::Limpia($item->marca));\n $idFabricante = $fab->getIDFabricante();\n\n//Buscar el id de categoria\n $fam = new Familias();\n $fam = $fam->find(\"Familia\", $categoria);\n $idCategoria = $fam->getIDFamilia();\n\n//Buscar el id de familia\n $fam = $fam->find(\"Familia\", $familia);\n $idFamilia = $fam->getIDFamilia();\n\n//Buscar el id de subfamilia\n $idSubfamilia = 0;\n if ($subfamilia != '') {\n $fam = $fam->find(\"Familia\", $subfamilia);\n $idSubfamilia = $fam->getIDFamilia();\n }\n\n $slug = Textos::limpia($nombre);\n\n $art = new Articulos();\n $art->setCodigo($codigo);\n $art->setDescripcion($nombre);\n $art->setSubtitulo($nombre);\n $art->setResumen($descripcion);\n $art->setIDCategoria($idCategoria);\n $art->setIDFamilia($idFamilia);\n $art->setIDSubfamilia($idSubfamilia);\n $art->setIDFabricante($idFabricante);\n $art->setPvd($pvd);\n $art->setMargen($margen);\n $art->setPvp($pvp);\n $art->setIDIva(1);\n $art->setCodigoEAN($item->ean);\n $art->setPeso($peso);\n $art->setCaracteristicas(self::Limpia($item->caracteristicas));\n $art->setPublish(1);\n $art->setSlug($slug);\n $art->setUrlFriendly(\"/\" . $slug);\n $id = $art->create();\n//print_r($art->getErrores());\n if (!$id) {\n $fallos++;\n echo \"<tr><td>\", $codigo, \"</td><td>\", $nombre, \"</td><td>\", $categoria, \"</td><td>\", $familia, \"</td></tr>\";\n } else {\n $urls = new CpanUrlAmigables();\n $urls->setUrlFriendly(\"/\" . $slug);\n $urls->setController(\"Producto\");\n $urls->setAction(\"Index\");\n $urls->setTemplate(\"index.html.twig\");\n $urls->setEntity(\"Articulos\");\n $urls->setIdEntity($id);\n $urls->create();\n\n//COPIAR IMAGEN EN LOCALHOST SI NO EXISTE PREVIAMENTE.\n if (false) {\n//if ($imagen !== '') {\n $carpeta = \"/Users/sergio/www/tienda/themes/theme3/docs/Articulos/\" . substr($slug, 0, 3);\n mkdir($carpeta, 0755, true);\n $urlDestino = $carpeta . \"/\" . $slug . \".jpg\";\n if (!file_exists($urlDestino)) {\n self::DescargaImagen($imagen, $urlDestino);\n }\n }\n }\n }\n\n return $fallos;\n }", "title": "" }, { "docid": "70fd1b7829b96f53116a9e041c194ce5", "score": "0.60166895", "text": "public function filas();", "title": "" }, { "docid": "215e8ee06b6595c776dcdc9a6adb1333", "score": "0.5994368", "text": "public function ColectivosIguales();", "title": "" }, { "docid": "e6fd19c8b0bc72cc51b3b0a94348218d", "score": "0.5988414", "text": "public function malfunzionamentilistAction(){\n $msg=\"Malfunzionamenti\";\n $allItems=$this->_tipoMalfunzionamento->getAll()->toArray();\n $this->view->assign('malf',$allItems);\n $this->view->assign('msg',$msg);\n }", "title": "" }, { "docid": "e43647f944c6873efbda8469595a41a7", "score": "0.59768194", "text": "public function index()\n\t{\n\t\t//par défaut on affiche la liste des fiches\n\t\t$this->liste();\n\t}", "title": "" }, { "docid": "9a2b6d4a56a03aa5d139b462267767e6", "score": "0.5971066", "text": "function listar() {\n global $db;\n \t\n // Database connection\n \t$odbconn = MDB2 :: connect($db['dsn'], $db['opts']);\n \t$odbconn->setFetchMode(MDB2_FETCHMODE_ASSOC);\n \t$sql = \"SELECT id,ARRAY_TO_STRING(ARRAY[nombre1, nombre2, apellido1,apellido2], ' ') as nombre \n FROM usuario\n WHERE activo = '1'\n AND tipo = '1'\";\n \t\n \t$pager_options = array(\n 'mode' => 'Sliding',\n 'perPage' => 16,\n 'delta' => 2,\n 'extraVars' => array('a'=> $_REQUEST['a'])\n );\n \t\n $data = Pager_Wrapper_MDB2($odbconn, $sql, $pager_options);\n \n // Mensaje a mostrar en el template\n $msj = flashData();\n \t\n include(getTemplate('medico.lista.php'));\n return;\n }", "title": "" }, { "docid": "e76e21efec77443a6a72cf6f6e9d9895", "score": "0.5951814", "text": "function listar_agregados($objeto) {\n\t// Si el objeto viene vacio(llamado desde el index) se le asigna el $_REQUEST que manda el Index\n\t// Si no conserva su valor normal\n\t\t$objeto = (empty($objeto)) ? $_REQUEST : $objeto;\n\n\t// Variables para la vista\n\t\t$pedidos = $_SESSION['cerrar_personalizado']['comanda'][$objeto['persona']]['pedidos'];\n\t\t$clase = $objeto['clase'];\n\n\t// Carga la vista\n\t\trequire ('views/comandas/listar_agregados.php');\n\t}", "title": "" }, { "docid": "10c0bcea8096898c70bd8e29e5f63d06", "score": "0.5946448", "text": "public function listar()\n\t{\n\t\t$this->Controlador->listar();\n\t}", "title": "" }, { "docid": "32ad60c045f1afc907b42f47c4e5f55d", "score": "0.5946329", "text": "function dibujar_listado() {\n\t\t\n\t\t$sql = \"SELECT *\n\t\tFROM \n\t\turbanizacion\n\t\t\";\n\n $this->set_sql($sql);\n\n $this->set_opciones();\n\n $this->dibujar();\n }", "title": "" }, { "docid": "a9f6b09713f28515ea787f684596dec3", "score": "0.594447", "text": "public function filtered(){\n $campo=empty($_POST['campo'])? 'titol' : $_POST['campo'];\n $valor=empty($_POST['valor'])? '' : $_POST['valor'];\n $orden=empty($_POST['orden'])? 'id' : $_POST['orden'];\n $sentido=empty($_POST['sentido'])? 'ASC' : $_POST['sentido'];\n \n $tipos=Tipo::getFiltered($campo, $valor, $orden, $sentido);\n \n $usuario=Login::getUsuario(); //recupera el usuario actual\n \n //mostrar lista\n include 'views/tipo/lista.php';\n }", "title": "" }, { "docid": "a31c75c3c18a518e8fdab4a0e4fd2f89", "score": "0.59411144", "text": "function listaOcorrenciasFilmes($idCinema)\n\t{\n\t\t$sql = \"SELECT * \n\t\t\tFROM ig_ocorrencia \n\t\t\tWHERE idCinema = '$idCinema' \n\t\t\tAND publicado = 1 \n\t\t\tORDER BY dataInicio\";\n\t\t$con = bancoMysqli();\n\t\t$query = mysqli_query($con,$sql);\n\t\twhile($campo = mysqli_fetch_array($query))\n\t\t{\n\t\t\tif($campo['dataFinal'] == '0000-00-00')\n\t\t\t{\n\t\t\t\t$data = exibirDataBr($campo['dataInicio']).\" - \".diasemana($campo['dataInicio']); //precisa tirar a hora para fazer a função funcionar\n\t\t\t\t$semana = \"\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$data = \"De \".exibirDataBr($campo['dataInicio']).\" a \".exibirDataBr($campo['dataFinal']);\n\t\t\t\tif($campo['segunda'] == 1){$seg = \"segunda\";}else{$seg = \"\";}\n\t\t\t\tif($campo['terca'] == 1){$ter = \"terça\";}else{$ter = \"\";}\n\t\t\t\tif($campo['quarta'] == 1){$qua = \"quarta\";}else{$qua = \"\";}\n\t\t\t\tif($campo['quinta'] == 1){$qui = \"quinta\";}else{$qui = \"\";}\n\t\t\t\tif($campo['sexta'] == 1){$sex = \" sexta\";}else{$sex = \"\";}\n\t\t\t\tif($campo['sabado'] == 1){$sab = \" sábado\";}else{$sab = \"\";}\n\t\t\t\tif($campo['domingo'] == 1){$dom = \" domingo\";}else{$dom = \"\";}\n\t\t\t\t$semana = \"(\".$seg.\" \".$ter.\" \".$qua.\" \".$qui.\" \".$sex.\" \".$sab.\" \".$dom.\")\";\t\n\t\t\t}\n\t\t\tif($campo['diaEspecial'] == 1)\n\t\t\t{\n\t\t\t\tif($campo['libras'] == 1)\n\t\t\t\t{\n\t\t\t\t\t$libras = \"Tradução em libras\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$libras = \"\";\n\t\t\t\t}\n\t\t\t\tif($campo['audiodescricao'] == 1)\n\t\t\t\t{\n\t\t\t\t\t$audio = \"Audiodescrição\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$audio = \"\";\n\t\t\t\t}\n\t\t\t\tif($campo['precoPopular'] == 1)\n\t\t\t\t{\n\t\t\t\t\t$popular = \"Preço popular\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$popular = \"\";\n\t\t\t\t}\n\t\t\t\t$dia_especial =\t\" - Dia especial:\".$libras.\" \".$audio.\" \".$popular;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$dia_especial = \"\";\n\t\t\t}\n\t\t\t//recuperaDados($tabela,$idEvento,$campo)\n\t\t\t$hora = exibirHora($campo['horaInicio']);\n\t\t\t$duracao = recuperaDuracao($campo ['duracao']);\n\t\t\t$retirada = recuperaIngresso($campo['retiradaIngresso']);\n\t\t\t$valor = dinheiroParaBr($campo['valorIngresso']);\n\t\t\t$local = recuperaDados(\"ig_local\",$campo['local'],\"idLocal\");\n\t\t\t$espaco = $local['sala'];\n\t\t\t$inst = recuperaDados(\"ig_instituicao\",$local['idInstituicao'],\"idInstituicao\");\n\t\t\t$instituicao = $inst['instituicao'];\n\t\t\t$id = $campo['idOcorrencia'];\n\t\t\t$ocorrencia = \"\n\t\t\t\tData: $data $semana <br />\n\t\t\t\tHorário: $hora<br />\n\t\t\t\tDuração: $duracao<br />\n\t\t\t\tLocal: $espaco - $instituicao<br />\n\t\t\t\tRetirada de ingresso: $retirada - Valor: $valor <br /></br>\";\t\n\t\t\techo $ocorrencia;\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "ed6821f8a77638d2f5303a9e856dbb1a", "score": "0.59364146", "text": "function listaFornecedores()\n {\n $forn = new Fornecedor();\n $result = $forn->listarFornecedores();\n return $result;\n }", "title": "" }, { "docid": "54f9ce1a38289fbda7693225d0772f34", "score": "0.5929077", "text": "public function listaClienteFilial ()\n {\n // Verifica se esta logado\n $this->check_login();\n\n // Verifica as permissoes necessarias\n if ($_SESSION['userdata']['per_co'] == 1 )\n {\n // Define titulo da pagina\n $this->title = \"Configuracao\";\n\n // Define os parametro da funcao\n $parametros = (func_num_args() >= 1) ? func_get_arg(0) : array();\n\n // Carrega o modelo\n $modelo = $this->load_model('configuracao/configuracao-model');\n\n // Carrega a view\n require_once EFIPATH . \"/views/_includes/header.php\";\n require_once EFIPATH . \"/views/_includes/menu.php\";\n require_once EFIPATH . \"/views/configuracao/configuracaoListaFilial-view.php\";\n require_once EFIPATH . \"/views/_includes/footer.php\";\n }\n else\n {\n // Se nao possuir permissao\n // Redireciona para index\n $this->moveHome();\n }\n }", "title": "" }, { "docid": "0d02333aab007753bdddca865410c176", "score": "0.59283656", "text": "public function filtrar()\n {\n $albaranes_model = new Albaranes_Model();\n $cliente_model = new Clientes_Model();\n session_start();\n\n $campo = (isset($_REQUEST['campo'])) ? $_REQUEST['campo'] : \"cod_albaran\";\n $filtro = (isset($_REQUEST['filtro'])) ? $_REQUEST['filtro'] : \"contiene\";\n $texto = (isset($_REQUEST['texto'])) ? $_REQUEST['texto'] : \"%\";\n\n //Le pedimos al modelo todos los Piezas\n $albaranes = $albaranes_model->filterBy($campo, $filtro, $texto);\n $clientes_pedidos = [];\n foreach ($albaranes as $key => $pedido) {\n $clientes_pedidos[] = $cliente_model->read($pedido->getCod_cliente());\n }\n //Pasamos a la vista toda la información que se desea representar\n if (isset($_SESSION['cliente'])) {\n $usuario[\"cliente\"] = $_SESSION['cliente'];\n }\n $varVistaFormFiltrar = [\"campo\" => $campo, \"filtro\" => $filtro, \"texto\" => $texto];\n $varVistaListar['albaranes'] = $albaranes;\n $usuario[\"usuario\"] = $_SESSION[\"usuario\"];\n $varVistaListar['clientes_pedidos'] = $clientes_pedidos;\n //Finalmente presentamos nuestra plantilla\n $this->view->show(\"cabecera.php\");\n $this->view->show(\"plantilla_header.php\", $usuario);\n $this->view->show(RUTA_VISTAS . \"listar_header.php\");\n $this->view->show(RUTA_VISTAS . \"form_filtrar.php\", $varVistaFormFiltrar);\n $this->view->show(RUTA_VISTAS . \"listar.php\", $varVistaListar);\n $this->view->show(\"plantilla_pie.php\");\n $this->view->show(\"pie.php\", $usuario);\n }", "title": "" }, { "docid": "817c18ebeaf2de7313580f4be3cffd63", "score": "0.591728", "text": "private function verTodas(){\n $this->acciones = $this->accionModel->fetchAll();\n $this->mensaje = 'Mostrando todos los registros';\n }", "title": "" }, { "docid": "386bf3539f561dd7c2e71e86127ed8a0", "score": "0.5906803", "text": "function listaDocumentosFirma(){\n\t\t$this->procedimiento='wf.ft_documento_wf_sel';\n\t\t$this->transaccion='WF_DWFFIRMA_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t$this->tipo_conexion='seguridad';\n\t\t\n\t\t$this->count=false;\n\t\t\n\t\t//$this->count=false;\t\n\t\t$this->id_usuario = 1;\n\t\t\t\t\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_documento_wf','int4');\n\t\t$this->captura('url','varchar');\n\t\t$this->captura('num_tramite','varchar');\n\t\t$this->captura('id_tipo_documento','int4');\n\t\t$this->captura('obs','text');\n\t\t$this->captura('id_proceso_wf','int4');\n\t\t$this->captura('extension','varchar');\n\t\t$this->captura('chequeado','varchar');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('nombre_tipo_doc','varchar');\n\t\t$this->captura('nombre_doc','varchar');\n\t\t$this->captura('momento','varchar');\n\t\t\n\t\t$this->captura('accion_pendiente','varchar');\n\t\t$this->captura('fecha_firma','varchar');\n\t\t$this->captura('usuario_firma','varchar');\n\t\t$this->captura('action','varchar');\n\t\t$this->captura('nombre_usuario_firma','text');\n\t\t\n\t\t\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "990c5c01eff84731f66f64a8aecc5a84", "score": "0.59052795", "text": "public function listar() {\n $sql = \"SELECT placa,(SELECT nombre from color where id=id_color) as nombreColor,(SELECT nombre from marca where id=id_marca) as nombreMarca,descripcion,estado from avion where estado='disponible'\";\n $this->objCon->Execute($sql);\n }", "title": "" }, { "docid": "00b8ca04beecaf43a9ad97fe0ec012c1", "score": "0.58958715", "text": "abstract public function getlisteEcrivain();", "title": "" }, { "docid": "9ce8e0ad05316ee529a748ee739b6166", "score": "0.5881999", "text": "function listar_mesas($objeto) {\n\t\t// Si el objeto viene vacio(llamado desde el index) se le asigna el $_REQUEST que manda el Index\n\t\t// Si no conserva su valor normal\n\t\t$objeto = (empty($objeto)) ? $_REQUEST : $objeto;\n\n\t\t// Valida que las mesas sean consultadas por primera vez\n\t\tif (empty($_SESSION['permisos']['mesas'])) {\n\t\t\t// Consulta las mesas y las regresa en un array\n\t\t\t$mesas = $this -> comandasModel -> getTables($objeto);\n\t\t\t$mesas = $mesas['rows'];\n\n\t\t\t$_SESSION['permisos']['mesas'] = $mesas;\n\t\t} else {\n\t\t\t$mesas = $_SESSION['permisos']['mesas'];\n\t\t}\n\n\t\trequire ('views/comandas/listar_mesas.php');\n\t}", "title": "" }, { "docid": "c8c79a4fb929dfced3b6d9be3703cec5", "score": "0.58795524", "text": "public function getAllFiliereAction()\n {\n $filieres = $this->getDoctrine()->getRepository('ManagementBundle:Filiere')->findAll();\n\n return $this->render('ManagementBundle:Filiere:list.html.twig',\n\n array(\n 'filieres' => $filieres\n )\n );\n }", "title": "" }, { "docid": "d9db2e2853f749155c05d1b22bbd5e96", "score": "0.58752656", "text": "function listarItems($cadena) {\n global $sql;\n $respuesta = array();\n $consulta = $sql->seleccionar(array('gondolas'), array('nombre'), '(nombre LIKE \"%'.$cadena.'%\" || codigo LIKE \"%'.$cadena.'%\") AND activo = \"1\" AND id != 0', '', 'nombre ASC', 0, 20);\n\n while ($fila = $sql->filaEnObjeto($consulta)) {\n $respuesta[] = $fila->nombre;\n }\n\n Servidor::enviarJSON($respuesta);\n}", "title": "" }, { "docid": "6a5c61f48c546ad76250200c2d0cf2e0", "score": "0.58740854", "text": "function listar_facilidad_imagen(){\n\t\t$sql=\"SELECT *, id_fac AS id_image, id_fac AS nombre_image FROM facilidad GROUP BY id_fac ORDER BY id_fac ASC\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\twhile ($resultado = mysql_fetch_array($consulta)){\n\t\t\t$buscar=$resultado['id_fac'];\n\t\t\t$sql=\"SELECT directorio_image, nombre_image FROM imagen WHERE galeria_image='$buscar' AND tabla_image='facilidad' ORDER BY id_image\";\n\t\t\t$imagenes=mysql_query($sql) or die(mysql_error());\n\t\t\t$respuesta = mysql_fetch_array($imagenes);\n\t\t\t$resultado['directorio_image']=$respuesta['directorio_image'];\n\t\t\t$resultado['nombre_image']=$respuesta['nombre_image'];\n\t\t\t$this->mensaje=\"si\";\n\t\t\t$this->listado[] = $resultado;\n\t\t}\n\t\t//print_r($this->listado);\n\t}", "title": "" }, { "docid": "5a5e56973db7e1e801538e764d9a218d", "score": "0.58738637", "text": "public function getAllFaqs(){\n //creamos un nuevo objeto\n $faq = new Model\\Faq();\n //retornamos todos los datos\n return $faq->getAll();\n }", "title": "" }, { "docid": "00fa645421f6710dd8537e2ebd9a2e65", "score": "0.5870961", "text": "public function allFuncionarios(){\n\n return $this->funcionario->allFuncionarios();\n\n }", "title": "" }, { "docid": "4f55113e216a86729e60a9f3baab2874", "score": "0.5860618", "text": "public function listaRelaciones();", "title": "" }, { "docid": "e03448f67e4ce668590ce0fd0e7d7d08", "score": "0.58571047", "text": "function listar_carro(){\n\t\t$this->mensaje=\"no\";\n\t\tif(isset($_SESSION['carro']) && $_SESSION['carro']!=\"\"){\n\t\t\tunset($this->listado);\n\t\t\t$carro_size=count($_SESSION['carro']);\n\t\t\tforeach($_SESSION['carro'] as $valor => $indice){\n\t\t\t//for($i=0;$i<=$carro_size;$i++){\n\t\t\t\tif($_SESSION['carro'][$valor]!=\"\"){\n\t\t\t\t\t$this->mensaje=\"si\";\n\t\t\t\t\t$this->listado[] = $_SESSION['carro'][$valor];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ca4db138dbd94ee15b41d68f227457ba", "score": "0.5851634", "text": "public function Listar()\n {\n }", "title": "" }, { "docid": "ca4db138dbd94ee15b41d68f227457ba", "score": "0.5851634", "text": "public function Listar()\n {\n }", "title": "" }, { "docid": "16c71fa9b6df28ba83165a31bc05b6d1", "score": "0.5850246", "text": "public function index() \n {\n //consultar de acuerdo a los filtros \n $viajes = $this->M_viaje->listar_viaje()->result();\n $this->data['viajes'] = $viajes; \n $extras = $this->M_incluye->listar_extra()->result();\n $num_filas = $this->M_incluye->contar_extra();\n $this->data['extras'] = $extras;\n\n $this->_vista('index'); \n }", "title": "" }, { "docid": "a3bbca03312e44b4d752816ed7245dc0", "score": "0.5849025", "text": "function leerArticulos() {\n\t\treturn $this->_lecturaMySql->seleccionarArticulos();\n\t}", "title": "" }, { "docid": "cc2503886f69f6284c7f2184d53c1991", "score": "0.5840411", "text": "function lista_mesas_vigentes($parametros)\n\t{\n\t\t//Se modificó para que en vez de mostrar el nombre de la mesa, muestre el tipo de mesa\n\t\t$sql_filtro_insc = \"\";\n\t\t$param = substr ( $parametros['filtro_inscripciones'] , 1,1);\n\n\t\tif ($param == 'C') {\n\t\t//if (strcmp($parametros['filtro_inscripciones'], 'C') == 0) {\n\t\t\t$sql_filtro_insc = \" AND ((SELECT COUNT(*) FROM sga_insc_examen as i WHERE \n\t\t\t\t\ti.unidad_academica\t\t= sga_llamados_mesa.unidad_academica\n\t\t\t\t\tAND i.materia\t\t\t= sga_llamados_mesa.materia\n\t\t\t\t\tAND i.anio_academico\t= sga_llamados_mesa.anio_academico\n\t\t\t\t\tAND i.turno_examen\t\t= sga_llamados_mesa.turno_examen\n\t\t\t\t\tAND i.mesa_examen\t\t= sga_llamados_mesa.mesa_examen\n\t\t\t\t\tAND i.llamado\t\t\t= sga_llamados_mesa.llamado) > 0) \";\n\t\t};\n\t\t\t\n\t\tif ($param == 'S') {\n\t\t\t$sql_filtro_insc = \" AND ((SELECT COUNT(*) FROM sga_insc_examen as i WHERE \n\t\t\t\t\ti.unidad_academica\t\t= sga_llamados_mesa.unidad_academica\n\t\t\t\t\tAND i.materia\t\t\t= sga_llamados_mesa.materia\n\t\t\t\t\tAND i.anio_academico\t= sga_llamados_mesa.anio_academico\n\t\t\t\t\tAND i.turno_examen\t\t= sga_llamados_mesa.turno_examen\n\t\t\t\t\tAND i.mesa_examen\t\t= sga_llamados_mesa.mesa_examen\n\t\t\t\t\tAND i.llamado\t\t\t= sga_llamados_mesa.llamado) = 0) \";\n\t\t};\n\t\t\t\n\n // Lista de mesas de examen de fechas de hoy o futuras\t\n // Mesas de examen donde se encuentra el docente.\n $sql = \"SELECT\n sga_docentes_llama.materia as materia,\n sga_materias.nombre as materia_nombre,\n sga_materias.nombre_reducido as materia_nombre_red,\n sga_docentes_llama.anio_academico as anio_academico,\n sga_docentes_llama.turno_examen as turno_examen,\n sga_docentes_llama.mesa_examen as mesa_examen,\n\t\t\t\t\tsga_tipos_mesa.descripcion AS tipo_mesa,\n sga_docentes_llama.llamado as llamado,\n nvl(TO_CHAR(sga_prestamos.fecha , \".\"'%d/%m/%Y'\".\"),' ') ||' ' ||nvl( TO_CHAR(sga_prestamos.hora_inicio, \".\"'%H:%M'\".\") , ' ') as momento,\n sga_sedes.sede as sede,\n sga_sedes.nombre as sede_nombre,\n sga_prestamos.fecha as fecha,\n sga_prestamos.hora_inicio as hora_inicio,\n (SELECT COUNT(*) FROM sga_insc_examen as i WHERE \n\t\t\t\t\t\ti.unidad_academica\t\t= sga_llamados_mesa.unidad_academica\n\t\t\t\t\t\tAND i.materia\t\t\t= sga_llamados_mesa.materia\n\t\t\t\t\t\tAND i.anio_academico\t= sga_llamados_mesa.anio_academico\n\t\t\t\t\t\tAND i.turno_examen\t\t= sga_llamados_mesa.turno_examen\n\t\t\t\t\t\tAND i.mesa_examen\t\t= sga_llamados_mesa.mesa_examen\n\t\t\t\t\t\tAND i.llamado\t\t\t= sga_llamados_mesa.llamado) as cantidad_inscr\n \n FROM sga_docentes,\n sga_docentes_llama,\n sga_llamados_mesa,\n sga_materias,\n sga_prestamos,\n sga_mesas_examen,\n\t\t\t\t\tsga_sedes, \n\t\t\t\t\tsga_tipos_mesa\n \n WHERE sga_docentes.unidad_academica\t\t = {$parametros[\"_ua\"]}\n AND sga_docentes.nro_inscripcion \t = {$parametros[\"nro_inscripcion\"]}\n AND sga_docentes_llama.legajo \t\t = sga_docentes.legajo\n AND sga_llamados_mesa.unidad_academica = sga_docentes_llama.unidad_academica\n AND sga_llamados_mesa.materia = sga_docentes_llama.materia\n AND sga_llamados_mesa.anio_academico = sga_docentes_llama.anio_academico\n AND sga_llamados_mesa.turno_examen = sga_docentes_llama.turno_examen\n AND sga_llamados_mesa.mesa_examen = sga_docentes_llama.mesa_examen\n AND sga_llamados_mesa.llamado = sga_docentes_llama.llamado\n \n AND sga_materias.unidad_academica = sga_llamados_mesa.unidad_academica\n AND sga_materias.materia = sga_llamados_mesa.materia\n \n AND sga_prestamos.prestamo = sga_llamados_mesa.prestamo\n\t\t\t\t AND sga_prestamos.fecha >= TODAY\n \n AND sga_llamados_mesa.unidad_academica = sga_mesas_examen.unidad_academica\n AND sga_llamados_mesa.materia = sga_mesas_examen.materia\n AND sga_llamados_mesa.anio_academico = sga_mesas_examen.anio_academico\n AND sga_llamados_mesa.turno_examen = sga_mesas_examen.turno_examen\n\t\t\t\t AND sga_llamados_mesa.mesa_examen = sga_mesas_examen.mesa_examen\n\t\t\t\t AND sga_tipos_mesa.tipo_mesa \t\t\t = sga_mesas_examen.admite_libres\n AND sga_mesas_examen.sede = sga_sedes.sede\".$sql_filtro_insc.\n \" ORDER BY sga_materias.nombre, \n sga_prestamos.fecha, \n sga_prestamos.hora_inicio, \n sga_docentes_llama.anio_academico, \n sga_docentes_llama.llamado\n \"; \n\t\t\n\t\t$datos = kernel::db()->consultar($sql, db::FETCH_ASSOC);\n\n\t\t$nuevo = array();\n\t\tforeach($datos as $dato) {\n\t\t\t$id = catalogo::generar_id($dato['MATERIA'].$dato['ANIO_ACADEMICO'].$dato['TURNO_EXAMEN'].$dato['MESA_EXAMEN'].$dato['LLAMADO']);\n\t\t\t$nuevo[$id][catalogo::id] = $id;\n\t\t\t$nuevo[$id]['MATERIA'] = $dato['MATERIA'];\n\t\t\t$nuevo[$id]['MATERIA_NOMBRE'] = $dato['MATERIA_NOMBRE'];\n\t\t\t$nuevo[$id]['MATERIA_NOMBRE_COMPLETO'] = $dato['MATERIA_NOMBRE'].\" (\".$dato['MATERIA'].\")\";\n\t\t\t$nuevo[$id]['ANIO_ACADEMICO'] = $dato['ANIO_ACADEMICO'];\n\t\t\t$nuevo[$id]['TURNO_EXAMEN'] = $dato['TURNO_EXAMEN'];\n\t\t\t$nuevo[$id]['MESA_EXAMEN'] = $dato['MESA_EXAMEN'];\n\t\t\t$nuevo[$id]['TIPO_MESA'] = $dato['TIPO_MESA'];\n\t\t\t$nuevo[$id]['LLAMADO'] = $dato['LLAMADO'];\n\t\t\t$nuevo[$id]['MOMENTO'] = $dato['MOMENTO'];\n\t\t\t$nuevo[$id]['SEDE'] = $dato['SEDE'];\n\t\t\t$nuevo[$id]['CANTIDAD_INSCR'] = $dato['CANTIDAD_INSCR'];\n\t\t}\n\t\treturn $nuevo;\n\t\n\t}", "title": "" }, { "docid": "02cd52251f74def5bef2636435dd7cf4", "score": "0.583973", "text": "function return_fiches_express()\n{\n return getFiches('obj_numero', \"asc\", []);\n}", "title": "" }, { "docid": "7df3ab1bc3a144b52bb7cfeb8c5e8b06", "score": "0.5837754", "text": "public function buscar_ocupados() {\n\t\t$usuario = $this -> ssouva -> login();\n\t\t$datos[\"usuario\"] = $usuario;\n\n\t\t// Cosas de sesiones y si es admin o no\n\t\tif ($this -> admin_model -> es_admin($usuario)>0) {\n\t\t\t$q = $this -> input -> post(\"q\");\n\t\t\t$datos[\"q\"] = $q;\n\n\t\t\tif ($q==\"\") {\n\t\t\t\t$datos[\"busqueda\"]=array();\n\t\t\t} else {\n\t\t\t\t// Si buscamos un piso\n\t\t\t\t$datos[\"busqueda\"] = $this -> pisos_model -> buscar_piso_3($q);\n\t\t\t}\n\n\t\t\t//Cargamos la principal\n\t\t\t//$datos[\"denuncias\"] = $this -> comentarios_model -> hay_denuncias(); <---- Esto sobra ahora y tal y pascual\n\t\t\t//echo \"<br><br><br>SOLO OCUPADOS<br><br><br>\";\n\t\t\t$this -> load -> view(\"doc/buscar\", $datos);\n\t\t}\n\t}", "title": "" }, { "docid": "b6e4ac933b6b11bd206e5d6a1574fd76", "score": "0.5826239", "text": "public function todos()\n {\n // Comprobar si esta logeado como admin\n if( isset($_SESSION['admin']) ){\n\n // La cantidad de medios de pago que va a mostrar\n $numeroMediosPago = 5;\n\n // Obtener que numero de pagina es\n $pagina = ( isset($_GET['pagina']) ? $_GET['pagina'] : 1 );\n\n // Conocer el inicio de la consulta\n $inicioConsulta = ( ($pagina == 1) ? 0 : (($numeroMediosPago * $pagina) - $numeroMediosPago) );\n\n // Contar la cantidad de medios de pago\n $totalMediosPago = count(MedioPago::todos());\n\n // El numero de paginas que salen en total\n $cantidadDePaginas = ( ($totalMediosPago == 0) ? 1 : ceil($totalMediosPago / $numeroMediosPago) );\n\n\n // Peticion al modelo para recuperar todos los tipos de reporte de la bd y guardarlos en una variable\n $mediosPago = MedioPago::limite($inicioConsulta, $numeroMediosPago)\n ->resultado();\n\n\n\n // Mensaje\n $msg = ( isset($_COOKIE['mensaje']) ? $_COOKIE['mensaje'] : null);\n\n // Mensaje Error\n $msgError = ( isset($_COOKIE['mensaje_error']) ? $_COOKIE['mensaje_error'] : null);\n\n\n // Requerir la vista que muestra todos los medios de pago registrados\n include '../vistas/medios_pago/index.php';\n\n } else {\n\n // Redirigir al login\n header('Location: ../login');\n }\n }", "title": "" }, { "docid": "c2e80f42ec6d8ac380a459bdecce031c", "score": "0.5823315", "text": "public function selectAll() {\n $conn = $this->conex->connectDatabase();\n $sql = \"select * from tbl_funcionario_web\";\n $stm = $conn->prepare($sql);\n $success = $stm->execute();\n if ($success) {\n $listFuncionario = [];\n foreach ($stm->fetchAll(PDO::FETCH_ASSOC) as $result) {\n $Funcionario = new Funcionario();\n $Funcionario->setId($result['id_funcionario_web']);\n $Funcionario->setNome($result['nome']);\n $Funcionario->setCargo($result['cargo']);\n $Funcionario->setSetor($result['setor']);\n $Funcionario->setDataEmissao($result['data_emissao']);\n $Funcionario->setAtivo($result['ativo']);\n $Funcionario->setIdAutenticacao($result['id_autenticacao']);\n array_push($listFuncionario, $Funcionario);\n };\n $this->conex -> closeDataBase();\n return $listFuncionario;\n } else {\n return \"Erro\";\n }\n }", "title": "" }, { "docid": "03690e7a09f22de0d26d268d13653dd8", "score": "0.5818607", "text": "function index(){\n\t\t$this->listar();\n\t}", "title": "" }, { "docid": "28242023e9c20b33deb455459e423caf", "score": "0.5808387", "text": "public function BuscarArqueosxFechas() \n\t {\n\t\tself::SetNames();\t\t\n$sql = \"SELECT * FROM arqueocaja INNER JOIN cajas ON arqueocaja.codcaja = cajas.codcaja LEFT JOIN usuarios ON cajas.codigo = usuarios.codigo WHERE arqueocaja.codcaja = ? AND DATE_FORMAT(arqueocaja.fechaapertura,'%Y-%m-%d') >= ? AND DATE_FORMAT(arqueocaja.fechaapertura,'%Y-%m-%d') <= ?\";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->bindValue(1, trim(decrypt($_GET['codcaja'])));\n\t\t$stmt->bindValue(2, trim(date(\"Y-m-d\",strtotime($_GET['desde']))));\n\t\t$stmt->bindValue(3, trim(date(\"Y-m-d\",strtotime($_GET['hasta']))));\n\t\t$stmt->execute();\n\t\t$num = $stmt->rowCount();\n\t\tif($num==0)\n\t\t{\n\t\techo \"<center><div class='alert alert-danger'>\";\n\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\techo \"<span class='fa fa-info-circle'></span> NO SE ENCONTRARON ARQUEOS DE CAJAS PARA LAS FECHAS SELECCIONADAS</div></center>\";\n\t\texit;\n\t\t}\n\t\telse\n\t\t{\n\t\t\twhile($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t\t{\n\t\t\t\t$this->p[]=$row;\n\t\t\t}\n\t\t\treturn $this->p;\n\t\t\t$this->dbh=null;\n\t }\n\t\n}", "title": "" }, { "docid": "31ef9db0b56719235beaf902a98bc91f", "score": "0.58050734", "text": "function mostraLivros($tab, $arq, $conexão){\n\t\t$query= \"SELECT * FROM $tab\";\n\t\t$resultado = $conexão->query($query);\n\t\tif (!$resultado) die (\"Erro de acesso à base de dados: \" . $conexão->error);\n\t\t\n\t\t$linhas = $resultado->num_rows;\n\t\techo \"<br>\";\n\t\techo \"Lista de livros:\";\n\t\techo \"<br>\";\n\t\t$_novoId=0;\n\t\tfor ($j = 0 ; $j < $linhas ; ++$j)\n\t\t{\n\t\t$resultado->data_seek($j);\n\t\t$linha = $resultado->fetch_array(MYSQLI_NUM);\n\t\techo <<<_TEXTO\n\t\t<pre>\n\n\t\tAutor\t$linha[0]\n\t\tTítulo\t$linha[1]\n\t\tÁrea\t$linha[2]\n\t\tAno\t$linha[3]\n\t\tTombo\t$linha[4]\n\t\t</pre>\n\n\t\t<form name = \"emprestar\" action=\"$arq\" method=\"post\">\n\t\t<input type=\"hidden\" name=\"Tombo\" value=\"$linha[4]\">\n\t\t<input type=\"submit\" value=\"Emprestar\"></form>\n_TEXTO;\n\t\t}\n\t\t\nheader(\"Location: $arq\");\n\n}", "title": "" }, { "docid": "2db870187840f91364a3c01973baa4d7", "score": "0.580363", "text": "function apagaArquivos($dir) {\n $hoje1 = $_REQUEST['data'];// pega da url a data que se deseja excluir os arquivos\n\n if($hoje1!=''){\n $hoje = $hoje1;// se tiver sido definida uma data exclui os arquivos dessa data\n }\n else{\n $hoje = date(\"dmY\"); // se não tiver sido defida uma data, exclui os arquivos da data atual\n }\n if($arquivo = glob($dir.\"/*\")){\n\n foreach($arquivo as $arquivos) {\n\n $dataArquivo = date(\"dmY\",filemtime(\"$arquivos\"));// pega a data dos arquivo\n $extensao = pathinfo($arquivos, PATHINFO_EXTENSION); // pega a extensão do arquivo\n if($dataArquivo == $hoje && $extensao=='html'){// se a data do arquivo for igual a data definida e a extensão for html\n\n $sucesso = unlink($arquivos);// exclui o arquivo\n\n if($sucesso){\n echo \"Arquivo <b>$arquivos</b> excluído com sucesso!<br>\";\n }\n else{\n echo \"Não foi possível excluir o arquivo <b>$arquivos</b>!<br>\";\n }\n }\n }\n echo \"Todos arquivos excluidos!\";\n }\n }", "title": "" }, { "docid": "f23a44e62feaa12876b65518cb6dd572", "score": "0.5803568", "text": "function Filtros_Listar_Documentos(){\n $Helper=new htmlhelper; $TipoTxt=new TipoTextBox; $TipoDate=new TipoTextDate;$index=0;\n $inputs=array(\n\t\t \t\"Cliente\" => $Helper->textbox_predictivo(\"fil_txtCliente\",++$index,\"\",128,300,\"\",\"\",\"clientes\"),\n \"Nro. Documento\" => $Helper->textbox(\"fil_cmbBusquedaDocumento\",2,\"\",25,100,$TipoTxt->texto,\"\",\"\",\"\",\"\"),\n \"Desde\" => $Helper->textdate(\"fil_txtBusquedaDesde\",3,\"\",false,$TipoDate->fecha,80,\"\",\"\") . \" Al \" . $Helper->textdate(\"fil_txtBusquedahasta\",4,\"\",false,$TipoDate->fecha,80,\"\",\"\"),\n \"Tipo Documento\" => $Helper->combo_tipocomprobante(\"fil_cmbTipoComprobante\",5,\"1,2,3,4\",\"\",\"\")\n );\n $buttons=array($Helper->button(\"btnBuscarDocumento\",\"Buscar\",70,\"Buscar_Grilla('finanzas','Grilla_Listar_Documentos','tbl_listardocumentos','','td_General')\",\"textoInput\"));\n $html = '<fieldset class=\"textoInput\"><legend align= \"left\">Filtros de b&uacute;squeda</legend>';\n $html .= $Helper->Crear_Layer(\"tbl_listardocumentos\",$inputs,$buttons,3,950,\"\",\"\");\n $html .='</fieldset>';\n return $html;\n }", "title": "" }, { "docid": "c0fbf6e96aaccd9ad3d4dc8cdc672002", "score": "0.580306", "text": "public function buscarTodos();", "title": "" }, { "docid": "eb2b9a947c19c62e9df1743a11259c4d", "score": "0.5802978", "text": "public function forgetAll(): void;", "title": "" }, { "docid": "7a1202a00a9453044d92b5cd9a906b69", "score": "0.58024436", "text": "function exibeFolgasFruídas() {\r\n\r\n # Folgas Fruídas\r\n $select = \"SELECT YEAR(data),\r\n idFolga, \r\n data,\r\n ADDDATE(data,dias-1), \r\n dias,\r\n Obs\r\n FROM tbfolga\r\n WHERE idServidor = {$this->idServidor} \r\n ORDER BY data desc\";\r\n\r\n $pessoal = new Pessoal();\r\n $row = $pessoal->select($select);\r\n\r\n $tabela = new Tabela();\r\n $tabela->set_titulo('Folgas Fruídas');\r\n $tabela->set_conteudo($row);\r\n $tabela->set_label([\"Ano\", \"#\", \"Início\", \"Término\", \"Folgas Fruídas\", \"Observações\"]);\r\n $tabela->set_funcao([null, null, \"date_to_php\", \"date_to_php\"]);\r\n $tabela->set_align([\"center\", \"center\", \"center\", \"center\", \"center\", \"left\"]);\r\n $tabela->set_colunaSomatorio(4);\r\n $tabela->set_totalRegistro(false);\r\n $tabela->set_rowspan(0);\r\n $tabela->set_grupoCorColuna(0);\r\n $tabela->show();\r\n }", "title": "" }, { "docid": "281f562df64f255e0b2720034b9cf032", "score": "0.5799881", "text": "function Itens() {\r\n extract($GLOBALS);\r\n global $w_Disabled;\r\n $w_chave = $_REQUEST['w_chave'];\r\n $w_sq_lancamento_doc = $_REQUEST['w_sq_lancamento_doc'];\r\n $w_sq_documento_item = $_REQUEST['w_sq_documento_item'];\r\n \r\n // Recupera os dados do lançamento\r\n $sql = new db_getSolicData; $RS1 = $sql->getInstanceOf($dbms,$w_chave,f($RS_Menu,'sigla'));\r\n\r\n // Define valor padrão para a rubrica\r\n if(nvl(f($RS1,'qtd_rubrica'),0)>0) $w_sq_projeto_rubrica = f($RS1,'sq_projeto_rubrica');\r\n \r\n if ($w_troca>'' && $O!='E') {\r\n // Se for recarga da página\r\n $w_sq_projeto_rubrica = $_REQUEST['w_sq_projeto_rubrica'];\r\n $w_sq_solicitacao_item = $_REQUEST['$w_sq_solicitacao_item'];\r\n $w_descricao = $_REQUEST['w_descricao'];\r\n $w_quantidade = $_REQUEST['w_quantidade'];\r\n $w_valor_unitario = $_REQUEST['w_valor_unitario'];\r\n $w_ordem = $_REQUEST['w_ordem'];\r\n $w_data_cotacao = $_REQUEST['w_data_cotacao'];\r\n $w_valor_cotacao = $_REQUEST['w_valor_cotacao'];\r\n } elseif ($O=='L') {\r\n // Recupera todos os registros para a listagem\r\n $sql = new db_getLancamentoItem; $RS = $sql->getInstanceOf($dbms,null,$w_sq_lancamento_doc,null,null,null);\r\n $RS = SortArray($RS,'ordem','asc','sq_documento_item','asc');\r\n } elseif (strpos('AEV',$O)!==false) {\r\n // Recupera os dados do endereço informado\r\n $sql = new db_getLancamentoItem; $RS = $sql->getInstanceOf($dbms,$w_sq_documento_item,$w_sq_lancamento_doc,null,null,null);\r\n foreach ($RS as $row) {$RS=$row; break;}\r\n $w_sq_projeto_rubrica = f($RS,'sq_projeto_rubrica');\r\n $w_sq_solicitacao_item = f($RS,'sq_solicitacao_item');\r\n $w_descricao = f($RS,'descricao');\r\n $w_quantidade = f($RS,'quantidade');\r\n $w_valor_unitario = formatNumber(f($RS,'valor_unitario'));\r\n $w_ordem = f($RS,'ordem');\r\n $w_data_cotacao = formataDataEdicao(f($RS,'data_cotacao'));\r\n $w_valor_cotacao = formatNumber(f($RS,'valor_cotacao'),4);\r\n } \r\n \r\n Cabecalho();\r\n head();\r\n ShowHTML('<TITLE>'.$conSgSistema.' - Documento - Itens</TITLE>');\r\n Estrutura_CSS($w_cliente);\r\n if (strpos('IAE',$O)!==false) {\r\n ScriptOpen('JavaScript');\r\n CheckBranco();\r\n FormataValor();\r\n FormataData();\r\n SaltaCampo();\r\n ValidateOpen('Validacao');\r\n if (strpos('IA',$O)!==false) {\r\n if(nvl(f($RS1,'qtd_rubrica'),0)>0) Validate('w_sq_projeto_rubrica','Rubrica do projeto', '1', '1', '1', '18', '', '0123456789');\r\n Validate('w_ordem','Ordem','1','1','1','18','','1');\r\n Validate('w_quantidade','Quantidade','1','1','1','18','','0123456789');\r\n if (strpos(f($RS_Menu,'sigla'),'VIA')!==false) {\r\n Validate('w_data_cotacao','Data da cotação', 'DATA', '1', 10, 10, '', '0123456789/');\r\n Validate('w_valor_cotacao','Valor da cotação', 'VALOR', '1', 6, 18, '', '0123456789.,-');\r\n }\r\n Validate('w_valor_unitario','Valor unitário do item', 'VALOR', '1', 4, 18, '', '0123456789.,-');\r\n Validate('w_descricao','Descrição', '1', '1', '1', '500', '1', '1');\r\n }\r\n ShowHTML(' theForm.Botao[0].disabled=true;');\r\n ShowHTML(' theForm.Botao[1].disabled=true;');\r\n ValidateClose();\r\n ScriptClose();\r\n } \r\n ShowHTML('<BASE HREF=\"'.$conRootSIW.'\">');\r\n ShowHTML('</head>');\r\n if ($w_troca>'') {\r\n BodyOpen('onLoad=\\'document.Form.'.$w_troca.'.focus()\\';');\r\n } elseif ($O=='I') {\r\n if(nvl(f($RS1,'qtd_rubrica'),0)>0) BodyOpen('onLoad=\\'document.Form.w_sq_projeto_rubrica.focus()\\';');\r\n else BodyOpen('onLoad=\\'document.Form.w_descricao.focus()\\';');\r\n } else {\r\n BodyOpen('onLoad=\\'this.focus()\\';');\r\n } \r\n Estrutura_Texto_Abre();\r\n ShowHTML('<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">');\r\n ShowHTML('<tr><td colspan=3 bgcolor=\"#FAEBD7\"><table border=1 width=\"100%\"><tr><td>');\r\n ShowHTML(' <TABLE WIDTH=\"100%\" CELLSPACING=\"'.$conTableCellSpacing.'\" CELLPADDING=\"'.$conTableCellPadding.'\" BorderColorDark=\"'.$conTableBorderColorDark.'\" BorderColorLight=\"'.$conTableBorderColorLight.'\">');\r\n ShowHTML(' <tr><td colspan=3><b>'.upper(f($RS1,'nome')).' '.f($RS1,'codigo_interno').' ('.$w_chave.')</b></td>');\r\n ShowHTML(' <tr><td colspan=\"3\">Finalidade: <b>'.CRLF2BR(f($RS1,'descricao')).'</b></td></tr>');\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td>Forma de pagamento: <b>'.f($RS1,'nm_forma_pagamento').' </b></td>');\r\n ShowHTML(' <td>Vencimento: <b>'.FormataDataEdicao(f($RS1,'vencimento')).' </b></td>');\r\n ShowHTML(' <td>Valor do pagamento: <b>'.formatNumber(Nvl(f($RS1,'valor'),0)).' </b></td>');\r\n $sql = new db_getLancamentoDoc; $RS2 = $sql->getInstanceOf($dbms,$w_chave,$w_sq_lancamento_doc,null,null,null,null,null,null);\r\n foreach ($RS2 as $row2) {$RS2=$row2; break;}\r\n ShowHTML(' <tr valign=\"top\">');\r\n ShowHTML(' <td>Documento: <b>'.f($RS2,'numero').' </b></td>');\r\n ShowHTML(' <td>Tipo: <b>'.f($RS2,'nm_tipo_documento').' </b></td>');\r\n ShowHTML(' <td>Valor: <b>'.formatNumber(Nvl(f($RS2,'valor'),0)).' </b></td>');\r\n if(Nvl(f($RS1,'sq_projeto'),0)>0) {\r\n ShowHTML(' <tr><td colspan=\"2\">Projeto: <b>'.f($RS1,'nm_projeto').'</b></td>');\r\n if(Nvl(f($RS1,'nm_tipo_rubrica'),'')>'') ShowHTML(' <td>Tipo de movimentação: <b>'.f($RS1,'nm_tipo_rubrica').'</b></td>');\r\n } else {\r\n if(Nvl(f($RS1,'nm_tipo_rubrica'),0)>0) ShowHTML(' <tr><td colspan=\"3\">Tipo de movimentação: <b>'.f($RS1,'nm_tipo_rubrica').'</b></td></tr>');\r\n }\r\n ShowHTML(' </TABLE>'); \r\n ShowHTML('</TABLE>');\r\n ShowHTML(' <tr><td>&nbsp;');\r\n if ($O=='L') {\r\n // Exibe a quantidade de registros apresentados na listagem e o cabeçalho da tabela de listagem\r\n ShowHTML('<tr><td>');\r\n if (strpos(f($RS_Menu,'sigla'),'VIA')===false) ShowHTML(' <a accesskey=\"I\" class=\"ss\" href=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=I&w_menu='.$w_menu.'&w_chave='.$w_chave.'&w_sq_lancamento_doc='.$w_sq_lancamento_doc.'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\"><u>I</u>ncluir</a>&nbsp;'); \r\n ShowHTML(' <a accesskey=\"F\" class=\"ss\" href=\"javascript:window.close(); opener.location.reload(); opener.focus();\"><u>F</u>echar</a>&nbsp;');\r\n ShowHTML(' <td align=\"right\">'.exportaOffice().'<b>Registros: '.count($RS));\r\n ShowHTML('<tr><td colspan=3>');\r\n ShowHTML(' <TABLE class=\"tudo\" WIDTH=\"100%\" bgcolor=\"'.$conTableBgColor.'\" BORDER=\"'.$conTableBorder.'\" CELLSPACING=\"'.$conTableCellSpacing.'\" CELLPADDING=\"'.$conTableCellPadding.'\" BorderColorDark=\"'.$conTableBorderColorDark.'\" BorderColorLight=\"'.$conTableBorderColorLight.'\">');\r\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\" align=\"center\">');\r\n ShowHTML(' <td><b>Ordem</td>');\r\n if(nvl(f($RS1,'qtd_rubrica'),0)>0) ShowHTML(' <td><b>Rubrica</td>');\r\n ShowHTML(' <td><b>Descrição</td>');\r\n ShowHTML(' <td><b>Qtd.</td>');\r\n if (strpos(f($RS_Menu,'sigla'),'VIA')!==false) {\r\n ShowHTML(' <td><b>Data cotação</td>');\r\n ShowHTML(' <td><b>Valor cotação</td>');\r\n }\r\n ShowHTML(' <td><b>$ Unitário</td>');\r\n ShowHTML(' <td><b>$ Total</td>');\r\n ShowHTML(' <td class=\"remover\"><b>Operações</td>');\r\n ShowHTML(' </tr>');\r\n if (!count($RS)) {\r\n // Se não foram selecionados registros, exibe mensagem\r\n ShowHTML(' <tr bgcolor=\"'.$conTrBgColor.'\"><td colspan=7 align=\"center\"><font size=\"2\"><b>Não foram encontrados registros.</b></td></tr>');\r\n } else {\r\n // Lista os registros selecionados para listagem\r\n $w_total=0;\r\n foreach($RS as $row) {\r\n $w_cor = ($w_cor==$conTrBgColor || $w_cor=='') ? $w_cor=$conTrAlternateBgColor : $w_cor=$conTrBgColor;\r\n ShowHTML(' <tr bgcolor=\"'.$w_cor.'\" valign=\"top\">');\r\n ShowHTML(' <td align=\"center\">'.f($row,'ordem').'</td>');\r\n if(nvl(f($RS1,'qtd_rubrica'),0)>0) ShowHTML(' <td align=\"left\">'.f($row,'codigo_rubrica').' - '.f($row,'nm_rubrica').'</td>');\r\n ShowHTML(' <td align=\"left\">'.f($row,'descricao').'</td>');\r\n ShowHTML(' <td align=\"right\">'.formatNumber(f($row,'quantidade'),0).'</td>');\r\n if (strpos(f($RS_Menu,'sigla'),'VIA')!==false) {\r\n ShowHTML(' <td align=\"center\">'.formataDataEdicao(f($row,'data_cotacao')).'</td>');\r\n ShowHTML(' <td align=\"right\">'.formatNumber(f($row,'valor_cotacao'),4).'&nbsp;&nbsp;</td>');\r\n }\r\n ShowHTML(' <td align=\"right\">'.formatNumber(f($row,'valor_unitario')).'&nbsp;&nbsp;</td>');\r\n ShowHTML(' <td align=\"right\">'.formatNumber(f($row,'valor_total')).'&nbsp;&nbsp;</td>');\r\n ShowHTML(' <td class=\"remover\" align=\"top\" nowrap>');\r\n ShowHTML(' <A class=\"hl\" HREF=\"'.$w_dir.$w_pagina.$par.'&R='.$w_pagina.$par.'&O=A&w_menu='.$w_menu.'&w_chave='.$w_chave.'&w_sq_lancamento_doc='.f($row,'sq_lancamento_doc').'&w_sq_documento_item='.f($row,'sq_documento_item').'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\">AL</A>&nbsp');\r\n if (strpos(f($RS_Menu,'sigla'),'VIA')===false) ShowHTML(' <A class=\"hl\" HREF=\"'.$w_dir.$w_pagina.'GRAVA&R='.$w_pagina.$par.'&O=E&w_menu='.$w_menu.'&w_chave='.$w_chave.'&w_sq_lancamento_doc='.f($row,'sq_lancamento_doc').'&w_sq_documento_item='.f($row,'sq_documento_item').'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'\" onClick=\"return confirm(\\'Confirma a exclusão do registro?\\');\">EX</A>&nbsp');\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n $w_total += f($row,'valor_total');\r\n } \r\n }\r\n if ($w_total>0 && count($RS)>1) {\r\n $w_cor = ($w_cor==$conTrBgColor || $w_cor=='') ? $w_cor=$conTrAlternateBgColor : $w_cor=$conTrBgColor;\r\n ShowHTML(' <tr bgcolor=\"'.$w_cor.'\" valign=\"top\">');\r\n ShowHTML(' <td align=\"right\" colspan=\"'.((strpos(f($RS_Menu,'sigla'),'VIA')===false) ? ((nvl(f($RS1,'qtd_rubrica'),0)>0) ? 5 : 4) : 6).'\"><b>Total</b></td>');\r\n ShowHTML(' <td align=\"right\"><b>'.formatNumber($w_total).'</b>&nbsp;&nbsp;</td>');\r\n ShowHTML(' <td colspan=\"1\">&nbsp;</td>');\r\n ShowHTML(' </tr>');\r\n }\r\n ShowHTML(' </center>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </td>');\r\n ShowHTML('</tr>');\r\n } elseif (!(strpos('IAEV',$O)===false)) {\r\n if (strpos('EV',$O)!==false) $w_Disabled=' DISABLED ';\r\n if (strpos(f($RS_Menu,'sigla'),'VIA')===false) $w_readonly = ''; else $w_readonly = ' READONLY tabIndex=\"-1\" ';\r\n AbreForm('Form',$w_dir.$w_pagina.'Grava','POST','return(Validacao(this));',null,$P1,$P2,$P3,$P4,$TP,$SG,$R,$O);\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_menu\" value=\"'.$w_menu.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_chave\" value=\"'.$w_chave.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_sq_lancamento_doc\" value=\"'.$w_sq_lancamento_doc.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_sq_documento_item\" value=\"'.$w_sq_documento_item.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_sq_solicitacao_item\" value=\"'.$w_sq_solicitacao_item.'\">');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_troca\" value=\"\">');\r\n ShowHTML('<tr bgcolor=\"'.$conTrBgColor.'\"><td>');\r\n ShowHTML(' <table width=\"97%\" border=\"0\">');\r\n ShowHTML(' <tr><td><table border=0 width=\"100%\" cellspacing=0><tr valign=\"top\">');\r\n if(nvl(f($RS1,'qtd_rubrica'),0)>0) SelecaoRubrica('<u>R</u>ubrica:','R', 'Selecione a rubrica do projeto.', $w_sq_projeto_rubrica,f($RS1,'sq_projeto'),null,'w_sq_projeto_rubrica','SELECAO',null);\r\n ShowHTML(' <tr><td><b><u>O</u>rdem:<br><input accesskey=\"O\" type=\"text\" name=\"w_ordem\" class=\"STI\" SIZE=\"4\" MAXLENGTH=\"18\" VALUE=\"'.$w_ordem.'\" '.$w_Disabled.' '.$w_readonly.'></td>');\r\n ShowHTML(' <td><b><u>Q</u>uantidade:<br><input accesskey=\"Q\" type=\"text\" name=\"w_quantidade\" class=\"STI\" SIZE=\"18\" MAXLENGTH=\"18\" VALUE=\"'.$w_quantidade.'\" '.$w_Disabled.''.$w_readonly.' style=\"text-align:right;\" onKeyDown=\"FormataValor(this,18,0,event);\"></td>');\r\n if (strpos(f($RS_Menu,'sigla'),'VIA')!==false) {\r\n ShowHTML(' <td><b>Da<u>t</u>a da cotação:</b><br><input '.$w_Disabled.' accesskey=\"T\" type=\"text\" name=\"w_data_cotacao\" class=\"sti\" SIZE=\"10\" MAXLENGTH=\"10\" VALUE=\"'.nvl($w_data_cotacao,formataDataEdicao(time())).'\" onKeyDown=\"FormataData(this,event);\" onKeyUp=\"SaltaCampo(this.form.name,this,10,event);\"></td>');\r\n ShowHTML(' <td><b><u>V</u>alor cotação:</b><br><input '.$w_Disabled.' accesskey=\"V\" type=\"text\" name=\"w_valor_cotacao\" class=\"sti\" SIZE=\"18\" MAXLENGTH=\"18\" VALUE=\"'.$w_valor_cotacao.'\" style=\"text-align:right;\" onKeyDown=\"FormataValor(this,18,4,event);\" title=\"Informe a cotação da moeda na data de conversão.\"></td>');\r\n ShowHTML('<INPUT type=\"hidden\" name=\"w_sq_projeto_rubrica\" value=\"'.$w_sq_projeto_rubrica.'\">');\r\n }\r\n ShowHTML(' <td><b><u>V</u>alor unitário:</b><br><input '.$w_Disabled.' accesskey=\"V\" type=\"text\" name=\"w_valor_unitario\" class=\"sti\" SIZE=\"18\" MAXLENGTH=\"18\" VALUE=\"'.$w_valor_unitario.'\" style=\"text-align:right;\" onKeyDown=\"FormataValor(this,18,2,event);\" title=\"Informe o valor unitário do item.\"></td>');\r\n ShowHTML(' <tr><td colspan=5><b><u>D</u>escrição:</b><br><textarea '.$w_Disabled.' '.$w_readonly.' accesskey=\"D\" name=\"w_descricao\" class=\"STI\" ROWS=5 cols=75 title=\"Escreva um texto de descrição para este item do documento.\">'.$w_descricao.'</TEXTAREA></td>');\r\n ShowHTML(' <tr><td colspan=5 align=\"center\"><hr>');\r\n if ($O=='E') {\r\n ShowHTML(' <input class=\"stb\" type=\"submit\" name=\"Botao\" value=\"Excluir\">');\r\n } else {\r\n if ($O=='I') {\r\n ShowHTML(' <input class=\"stb\" type=\"submit\" name=\"Botao\" value=\"Incluir\">');\r\n } else {\r\n ShowHTML(' <input class=\"stb\" type=\"submit\" name=\"Botao\" value=\"Atualizar\">');\r\n } \r\n } \r\n ShowHTML(' <input class=\"stb\" type=\"button\" onClick=\"location.href=\\''.montaURL_JS($w_dir,$R.'&w_menu='.$w_menu.'&w_chave='.$w_chave.'&w_chave_aux='.$w_chave_aux.'&w_sq_lancamento_doc='.$w_sq_lancamento_doc.'&P1='.$P1.'&P2='.$P2.'&P3='.$P3.'&P4='.$P4.'&TP='.$TP.'&SG='.$SG.'&O='.(($P2==1) ? 'A' : 'L').'').'\\';\" name=\"Botao\" value=\"Cancelar\">');\r\n ShowHTML(' </td>');\r\n ShowHTML(' </tr>');\r\n ShowHTML(' </table>');\r\n ShowHTML(' </TD>');\r\n ShowHTML('</tr>');\r\n ShowHTML('</FORM>');\r\n } else {\r\n ScriptOpen('JavaScript');\r\n ShowHTML(' alert(\"Opção não disponível\");');\r\n ShowHTML(' history.back(1);');\r\n ScriptClose();\r\n } \r\n ShowHTML('</table>');\r\n ShowHTML('</center>');\r\n Estrutura_Texto_Fecha();\r\n}", "title": "" }, { "docid": "170fae2c25e12a055bfe448fdbfbb8a0", "score": "0.5798627", "text": "public function formas_de_pagamento()\n {\n }", "title": "" }, { "docid": "dca8e78b762eae926ac205e32a28a23b", "score": "0.5794037", "text": "private function getTodosData()\n {\n yield ['devenir un pro du Web', false];\n yield ['monter une startup', false];\n yield ['devenir maître du monde', false];\n \n }", "title": "" }, { "docid": "0bdd6900691d88d1ebfeb8def5bd16cf", "score": "0.5793316", "text": "function buscar_filas()\n\t{\n\t\t$ids = $this->buscar_ids();\n\t\t$salida = array();\n\t\tforeach ($ids as $id) {\n\t\t\t$salida[] = $this->tabla->get_fila($id);\n\t\t}\n\t\tif ($this->hay_ordenamiento()) {\n\t\t\t$salida = $this->ordenar_datos_x_columnas($salida);\n\t\t}\n\t\treturn $salida;\n\t}", "title": "" }, { "docid": "0c060fa85414631851230e10d0d47f2c", "score": "0.5793284", "text": "public function buscar(){\n\t\t// si el campo numero no es vació\n\t\tif (!empty($_POST['nombre'])) {\n\t\t\t$lista_tramites[]=Tramite::getByNombre($_POST['nombre']);\n\t\t\t$botones=0;\t\t\t\n\t\t\trequire_once('Views/Tramite/show.php');\n\t\t}else{//si está vacía trae todos los registros\n\t\t\t$this->show();\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "be675931c1d9cc25b88bb6f450062da2", "score": "0.5790341", "text": "function listarDocumentoWf(){\n\t\t$this->procedimiento='wf.ft_documento_wf_sel';\n\t\t$this->transaccion='WF_DWF_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\n\t\t$this->setParametro('id_proceso_wf','id_proceso_wf','int4');\n\t\t$this->setParametro('todos_documentos','todos_documentos','varchar');\t\t\n\t\t//Definicion de la lista del resultado del query\n\t\t$this->captura('id_documento_wf','int4');\n\t\t$this->captura('url','varchar');\n\t\t$this->captura('num_tramite','varchar');\n\t\t$this->captura('id_tipo_documento','int4');\n\t\t$this->captura('obs','text');\n\t\t$this->captura('id_proceso_wf','int4');\n\t\t$this->captura('extension','varchar');\n\t\t$this->captura('chequeado','varchar');\n\t\t$this->captura('estado_reg','varchar');\n\t\t$this->captura('nombre_tipo_doc','varchar');\n\t\t$this->captura('nombre_doc','varchar');\n\t\t$this->captura('momento','varchar');\n\t\t$this->captura('fecha_reg','timestamp');\n\t\t$this->captura('id_usuario_reg','int4');\n\t\t$this->captura('fecha_mod','timestamp');\n\t\t$this->captura('id_usuario_mod','int4');\n\t\t$this->captura('usr_reg','varchar');\n\t\t$this->captura('usr_mod','varchar');\n\t\t$this->captura('codigo_tipo_proceso','varchar');\n\t\t$this->captura('codigo_tipo_documento','varchar');\n\t\t$this->captura('nombre_tipo_documento','varchar');\n\t\t$this->captura('descripcion_tipo_documento','TEXT');\n\t\t$this->captura('nro_tramite','varchar');\n\t\t$this->captura('codigo_proceso','varchar');\n\t\t$this->captura('descripcion_proceso_wf','varchar');\n\t\t$this->captura('nombre_estado','varchar');\n\t\t$this->captura('chequeado_fisico','varchar');\n\t\t\n\t\t$this->captura('usr_upload','varchar');\n $this->captura('fecha_upload','timestamp');\n \n $this->captura('tipo_documento','varchar');\n \n $this->captura('action','varchar');\n\t\t$this->captura('solo_lectura','varchar');\n\t\t\n\t\t$this->captura('id_documento_wf_ori','integer');\n\t\t$this->captura('id_proceso_wf_ori','integer');\n\t\t$this->captura('nro_tramite_ori','varchar');\n\t\t$this->captura('priorizacion','integer');\n\t\t$this->captura('modificar','varchar');\n\t\t$this->captura('insertar','varchar');\n\t\t$this->captura('eliminar','varchar');\n\t\t$this->captura('demanda','varchar');\n\t\t$this->captura('nombre_vista','varchar');\n\t\t$this->captura('esquema_vista','varchar');\n\t\t$this->captura('nombre_archivo_plantilla','text');\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "7a4d633b1cd9eb7dc2d2bc8785041857", "score": "0.57857186", "text": "private function setupFilas($res){\n\n //Cria ARRAY das filas recebidas na API\n $fr = array();\n $ind = 0;\n foreach ($res->dados as $fila) {\n $fr[$ind] = array(\n 'id' => $fila->id,\n 'nome' => $fila->name\n );\n $ind++;\n }\n\n // DEBUG: print_r($fr);\n\n //Cria array das filas já existentes\n $fe = $this->retFilas();\n\n if(count($fe) == 0){\n //Nenhuma fila existente no banco... grava tudo o que vier\n foreach ($fr as $fila) {\n $this->gravaFila($fila['id'], $fila['nome']);\n }\n\n } else if(count($fr) == 0){\n //Nenhum fila recebida pelo Xcontact... apaga as filas do banco\n $this->apagaFila('all');\n\n } else {\n //Compara as filas recebidas com as existente no banco\n\n //Grava filas recebidas que não existe no DB\n foreach ($fr as $r) {\n $ex = false;\n foreach ($fe as $e) {\n if($r['id'] == $e['id'] && $r['nome'] == $e['nome']){\n $ex = true;\n }\n }\n if(!$ex){\n $this->gravaFila($r['id'], $r['nome']);\n }\n }\n\n //Limpa filas que existem no BD mas não não foram recebidas\n foreach ($fe as $e) {\n $ex = false;\n foreach ($fr as $r) {\n if($r['id'] == $e['id'] && $r['nome'] == $e['nome']){\n $ex = true;\n }\n }\n if(!$ex){\n $this->apagaFila($e['id']);\n }\n }\n }\n }", "title": "" }, { "docid": "496ad163742886d7453bbb3538131e19", "score": "0.5775838", "text": "public function lista() {\n $eventos = new Eventos(); // Aqui carrega o model\n $dados['eventos'] = $eventos->getTodos();\n $this->loadTemplate('eventos', $dados);\n }", "title": "" }, { "docid": "ae09a76d592860eeb80bc6e659764fa3", "score": "0.57708645", "text": "public function listar(){\n\t\t //recuperar las marcas\n\t\t $this->load('model/MarcaModel.php');\n\t\t $marca=MarcaModel::getMarcas();\n\t\t //cargar la vista del listado\n\t\t $datos = array();\n\t\t $datos['usuario'] = Login::getUsuario();\n\t\t $datos['marcas'] = $marca;\n\t\t \n\t\t //if(Login::isCompras())\n\t\t \n\t\t $this->load_view('view/marcas/listamarca.php', $datos);\n\t\t //throw new Exception (\"Debes de ser Compras\");\n\t\t}", "title": "" }, { "docid": "5fa4342a296a4a0c51049fa7dacd7526", "score": "0.57661474", "text": "function GetFilas(){\n $con = $this->con_front;\n $usuario = $this->user;\n if($this->isroot == false){\n $sql = \"SELECT * FROM fla_usuario_contact_configuracoes_acessos_complementar WHERE usuario = '$usuario' && tipo = 'fila'\";\n $sql = $con->query($sql);\n while($row = $sql->fetch(PDO::FETCH_ASSOC)){\n $retorno[$row['valor']] = true;\n }\n }\n else {\n $sql = \"SELECT fila FROM fla_fila_master\";\n $sql = $con->query($sql);\n while($row = $sql->fetch(PDO::FETCH_ASSOC)){\n $retorno[$row['fila']] = $row['fila'];\n }\n }\n $this->filas = @$retorno;\n }", "title": "" }, { "docid": "0d2af85f3e758d3ae12c33d0093ade51", "score": "0.57649165", "text": "public function BuscarTiposCambios()\n\t{\n\t\tself::SetNames();\n\t\t$sql = \"SELECT * FROM tiposmoneda INNER JOIN tiposcambio ON tiposmoneda.codmoneda = tiposcambio.codmoneda WHERE tiposcambio.codmoneda = ? ORDER BY tiposcambio.codcambio DESC LIMIT 1\";\n\t\t$stmt = $this->dbh->prepare($sql);\n\t\t$stmt->execute(array(decrypt($_GET[\"codmoneda\"])));\n\t\t$num = $stmt->rowCount();\n\t\tif($num==0)\n\t\t{\n\t\t\techo \"<center><div class='alert alert-danger'>\";\n\t\t\techo \"<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>\";\n\t\t\techo \"<span class='fa fa-info-circle'></span> NO SE ENCONTRARON TIPOS DE CAMBIO PARA LA MONEDA SELECCIONADA</div></center>\";\n\t\t\texit;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t\t{\n\t\t\t\t$this->p[] = $row;\n\t\t\t}\n\t\t\treturn $this->p;\n\t\t\t$this->dbh=null;\n\t\t}\n\t}", "title": "" }, { "docid": "5110e2c33d05efa66b4130c732a4693d", "score": "0.5762369", "text": "public function listar() {\n $sql = \"SELECT nombres,apellidos,cedula,correo,telefono_celular,estado,descripcion from Pasajero where estado='disponible'\";\n $this->objCon->Execute($sql);\n }", "title": "" }, { "docid": "25fae705a9442b497b4c88fc39b29b6f", "score": "0.57542366", "text": "public function movimientos(){\n //se obtienen los datos de los movimientos (faturas)\n $facturaModel = new FacturaModel();\n $listaFacturas = $facturaModel->getAllFacturas();\n //mostramos la vista con los datos de $listaFacturas\n require_once 'views/admin/movimientos.php';\n }", "title": "" }, { "docid": "dd8ef192e497b11103a448b8d088f844", "score": "0.5752035", "text": "function listaSumarioUsuarios($chaves=array(),$campos=\"\") {\n global $pathuserlib,$rdpath,$config_ini;\n\n if ($config_ini[Ambiente][plataforma_master] != \"1\") {\n $chaves[] = opVal(\"codPlataforma\", $config_ini[Ambiente][plataforma_cod],AMUser::getTables());\n };\n\n \n\n $param = new RDParam();\n $tabUser = AMUser::getTables();\n if(empty($campos)) {\n $campos = array(\"codUser\",\"nomPessoa\",\"nomUser\");\n }\n $param->setCamposProjecao($campos);\n\n $users = new RDLista(\"AMUser\",$chaves,\"nomPessoa asc\",$param);\n\n return $users;\n\n }", "title": "" }, { "docid": "e8e82c56022af9ea2d52aea9da33fef4", "score": "0.5751662", "text": "function _preparativos() {\n $db = $this->dbInstance();\n //el banner que cambia\n $this->params[\"banner\"] = $db->loadObjectRow(\"select * from #_menus where id=7\");\n //empresas sabadell - directorio de empresas\n $sql = \"SELECT a.id, a.nombre_\" . $_SESSION[\"lang\"] . \" as nombre, count(*) as conteo FROM sab_categorias a inner join sab_empresas b\n on a.id=b.idcategoria where a.estado=1 and b.lng='\" . $_SESSION[\"lang\"] . \"' group by a.id,a.nombre_\" . $_SESSION[\"lang\"] . \"\";\n $this->params[\"categorias\"] = $db->loadObjectList($sql);\n //obtengo patrocinadores\n $sql = \"select *,\n nombre,\n descripcion_\" . $_SESSION[\"lang\"] . \" as descripcion\n from #_empresas where lng='\" . $_SESSION[\"lang\"] . \"' and espatrocinador=1 and estado=1 and idcategoria=\" . $this->datos->idcategoria;\n $this->params[\"lib2\"] = $this->loadLib(\"textlibs\");\n $this->params[\"patros\"] = $db->loadObjectList($sql);\n //texto introduccion\n $sql=\"select * from sab_estatico where id=1\";\n $this->params[\"textofooter\"]=$db->loadObjectRow($sql);\n }", "title": "" }, { "docid": "20b31263146b17810ee140af8cea0f03", "score": "0.57484025", "text": "function listarItems($cadena) {\n global $sql;\n\n $respuesta = array();\n $consulta = $sql->seleccionar(array(\"subcategorias_bb\"), array(\"titulo\"), \"nombre LIKE '%$cadena%'\", \"\", \"titulo ASC\", 0, 20);\n\n while ($fila = $sql->filaEnObjeto($consulta)) {\n $respuesta[] = $fila->titulo;\n\n }\n\n Servidor::enviarJSON($respuesta);\n\n}", "title": "" }, { "docid": "f88e2827f8d9e2cdc8a910f0efce15b7", "score": "0.57451165", "text": "function cuadro_lista($atributos) {\n\n\t\t$this->atributos=$atributos;\n\t\n\t\t$nombre=$this->atributos[\"id\"];\n\t\tif(isset($this->atributos[\"seleccion\"])){\n\t\t\t$seleccion=$this->atributos[\"seleccion\"];\n\t\t}else{\n\t\t\t$seleccion=-1;\n\t\t}\n\n\t\t$limitar=$this->atributos[\"limitar\"];\n\t\t$tab=$this->atributos[\"tabIndex\"];\n\t\t$id=$this->atributos[\"id\"];\n\t\t$tamanno=$this->atributos[\"tamanno\"];\n\n\t\tif(isset($this->atributos[\"otraOpcion\"])) {\n\t\t\t$otraOpcion=$this->atributos[\"otraOpcion\"];\n\t\t}\n\t\t\n\t\t//Invocar la funcion que rescata el registro de los valores que se mostraran en la lista\n\t\t$resultado=$this->rescatarRegistroCuadroLista();\n\n\t\t$this->cadena_html=\"\";\n\n\t\tif($resultado) {\n\n\t\t\t$mi_evento=$this->definirEvento();\n\n\t\t\tif($id==\"\") {\n\t\t\t\t$this->cadena_html=\"<select name='\".$nombre.\"' size='\".$tamanno.\"' \".$mi_evento.\" tabindex='\".$tab.\"'>\\n\";\n\t\t\t}else {\n\t\t\t\t$this->cadena_html=\"<select id='\".$id.\"' name='\".$nombre.\"' size='\".$tamanno.\"' \".$mi_evento.\" tabindex='\".$tab.\"'>\\n\";\n\t\t\t}\n\n\t\t\t//Si no se especifica una seleccion se agrega un espacio en blanco\n\t\t\tif($seleccion==-1) {\n\t\t\t\t$this->cadena_html.=\"<option value='-1'> </option>\\n\";\n\t\t\t}\n\n\t\t\t//Si el control esta asociado a otro control que aparece si no hay un valor en la lista\n\t\t\tif(isset($otraOpcion)) {\n\t\t\t\tif($seleccion==\"ttg\") {\n\t\t\t\t\t$this->cadena_html.=\"<option value='ttg' selected='true'>\".$this->atributos[\"otraOpcionEtiqueta\"].\"</option>\\n\";\n\t\t\t\t}else {\n\t\t\t\t\t$this->cadena_html.=\"<option value='ttg'>\".$this->atributos[\"otraOpcionEtiqueta\"].\"</option>\\n\";\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t$this->listadoInicialCuadroLista();\n\t\t\t$this->opcionesCuadroLista();\n\n\t\t\t$this->cadena_html.=\"</select>\\n\";\n\t\t}else{\n\t\t\t$this->cadena_html.=\"No Data\";\n\t\t}\n\n\t\treturn $this->cadena_html;\n\t}", "title": "" }, { "docid": "c8be86bb67427ace329f1d03dd92131b", "score": "0.5744326", "text": "public function franquicias(){\n $lista = array();\n $subcategorias = array();\n\n //Obtenemos las categorias y subcategorias\n $lista_categorias = Categoria::orderBy('nombre','ASC')->get();\n $lista_subcategorias = subcategoria::orderBy('nombre','ASC')->get();\n\n foreach($lista_categorias as $categoria) {\n foreach($lista_subcategorias as $subcategoria){\n\n if($subcategoria->categoria_id === $categoria->id) {\n array_push($subcategorias, $subcategoria->nombre);;\n }\n }\n\n array_push($lista, $categoria->nombre,$subcategorias);\n $subcategorias = array();\n }\n\n //llamamos a las estadisticas que se imprimen en esta vista.\n $this->impresionBannerSup();\n $this->impresionPatrocinadoBuscador();\n $this->impresionIzquierda();\n $this->impresionDerecha();\n $this->impresionBannerIntermedio();\n\n return view ('franquicias',compact('lista'));\n }", "title": "" }, { "docid": "1238bf0274a874ff58a8711b4a1705bd", "score": "0.5739343", "text": "public function listagemAction()\n {\n $mFuncionario = new Model_Funcionario_VwFuncionario();\n $rsFuncionario = $mFuncionario->fetchAll(array('id_organizacao = ?' => $this->idOrganizacao), '',30)->toArray();\n $this->view->rsFuncionario = $rsFuncionario;\n }", "title": "" }, { "docid": "57ded4abdf3ec22931851367ffb434e3", "score": "0.57380915", "text": "function listaArquivos($idEvento)\n\t{\n\t\t$con = bancoMysqli();\n\t\t$sql = \"SELECT * \n\t\t\tFROM ig_arquivo \n\t\t\tWHERE ig_evento_idEvento = '$idEvento' \n\t\t\tAND publicado = '1'\";\n\t\t$query = mysqli_query($con,$sql);\n\t\techo \"\n\t\t\t<table class='table table-condensed'>\n\t\t\t\t<thead>\n\t\t\t\t\t<tr class='list_menu'>\n\t\t\t\t\t\t<td>Nome do arquivo</td>\n\t\t\t\t\t\t<td width='10%'></td>\n\t\t\t\t\t</tr>\n\t\t\t\t</thead>\n\t\t\t\t<tbody>\";\n\t\twhile($campo = mysqli_fetch_array($query))\n\t\t{\n\t\t\techo \"<tr>\";\n\t\t\techo \"<td class='list_description'><a href='../uploads/\".$campo['arquivo'].\"' target='_blank'>\".$campo['arquivo'].\"</a></td>\";\n\t\t\techo \"\n\t\t\t\t<td class='list_description'>\n\t\t\t\t\t<form method='POST' action='?perfil=evento&p=arquivos'>\n\t\t\t\t\t\t<input type='hidden' name='apagar' value='\".$campo['idArquivo'].\"' />\n\t\t\t\t\t\t<input type ='submit' class='btn btn-theme btn-block' value='apagar'></td></form>\"\t;\n\t\t\techo \"</tr>\";\n\t\t}\n\t\techo \"\n\t\t\t</tbody>\n\t\t\t</table>\";\t\n\t}", "title": "" }, { "docid": "c2de5eb9ab480c22239be6b8ba46dd6f", "score": "0.5731673", "text": "function exibir($array){\n \n echo '<ul>';\n foreach($array as $usuario) {\n echo '<li>';\n echo $usuario['nome'].' ('.$usuario['p_nome'].')'; \n \n if(count($usuario['filhos']) > 0) {\n exibir($usuario['filhos']);\n } \n \n echo '</li>';\n } \n\n echo '</ul>';\n}", "title": "" }, { "docid": "df0ee15341e8c2a530a5825ace716453", "score": "0.5725483", "text": "function listado() {\n\n global $config;\n global $URL_PATH;\n $sacarListaMenu = (new PostController)->listaMain();\n /*********Números aleatorios para tener una lista en main view aleatoria cada ez que entres, para hacerla mas real********/\n echo Ti::render(\"view/principal.phtml\", compact('sacarListaMenu'));\n }", "title": "" }, { "docid": "49fc9130bc77f32b4f11cf3fe81cefac", "score": "0.57243466", "text": "public function favoritos(){\n \n \n $data = Route::getUrlParameters();\n \n $cafeteria_favorita =$data['id'];\n \n $user = Favoritos::cargar([\n 'id_usuario' => $_SESSION['id'] ,\n 'id_cafeteria' => $cafeteria_favorita\n ]);\n \n if($user){\n echo( 'OK');\n }\n }", "title": "" }, { "docid": "fdfa31373b06f5780ced3983bfa56c52", "score": "0.57199687", "text": "function getImoveisAleatorios(){\n\t\t\n\t\t// Pega os dados do imóvel\n\t\t$data = $this->getImovelData();\n\t\t\n\t\t// Instancia o model\n\t\trequire_once(__DIR__.'/../models/Imoveis.php');\n\t\t$model = new \\Models\\Imoveis();\n\t\t\n\t\t// Faz escape do nome da cidade\n\t\t$cidade = $model->escape($data['cidade']);\n\t\t\n\t\t// Procura ids de imoveis que estejam na mesma cidade\n\t\t$ids_found = $model->getValues(\"i.id\",\"i.cidade LIKE '$cidade'\",\"RAND()\",3);\n\t\tif(empty($ids_found)){\n\t\t\treturn array();\n\t\t}\n\t\t\n\t\t// Agora devemos percorrer cada imovel encontrado\n\t\t// E obter dados extras, como: foto principal, contato, email, etc...\n\t\t\n\t\t// Inclui e instancia models adicionais\n\t\trequire_once(__DIR__.'/../models/ImoveisFotos.php');\n\t\trequire_once(__DIR__.'/../models/ImoveisContatos.php');\n\t\trequire_once(__DIR__.'/../models/ContatosEmails.php');\n\t\trequire_once(__DIR__.'/../models/ContatosFones.php');\n\t\t\n\t\t$fotos = new \\Models\\ImoveisFotos();\n\t\t$contatos = new \\Models\\ImoveisContatos();\n\t\t$emails = new \\Models\\ContatosEmails();\n\t\t$fones = new \\Models\\ContatosFones();\n\t\t\n\t\t$result = array();\n\t\t\n\t\t// Para cada id de imóvel, obtem dados adicionais\n\t\tforeach($ids_found as $id_imovel){\n\t\t\t\n\t\t\t$arquivo = $fotos->getValue(\"ift.arquivo\",\"ift.id_imovel=$id_imovel\",\"ift.id ASC\");\n\t\t\t$find = $contatos->getRows(\"ct.id, ct.nome\",\"ixc.id_imovel=$id_imovel\", \"ixc.id ASC\", 1);\n\t\t\tif(count($find)>0){\n\t\t\t\t$contato = $find[0];\n\t\t\t\t$email = $emails->getValue(\"ce.email\",\"ce.id_contato=$contato[id]\",\"ce.id ASC\");\n\t\t\t\t$fone = $fones->getValue(\"cf.fone\",\"cf.id_contato=$contato[id]\",\"cf.id ASC\");\n\t\t\t\t$result[] = array(\n\t\t\t\t\t'id' => $id_imovel,\n\t\t\t\t\t'foto' => $arquivo,\n\t\t\t\t\t'contato' => $contato['nome'],\n\t\t\t\t\t'email' => $email,\n\t\t\t\t\t'fone' => $fone\n\t\t\t\t);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn $result;\n\t\t\n\t}", "title": "" }, { "docid": "00730d9030bbe3928d00af8e41a1d367", "score": "0.5710249", "text": "function listar() {\r\n include_once(\"../view/Insumos/insumos/buscador.html.php\");\r\n }", "title": "" }, { "docid": "ab38966bcadc4f042f4f27576dd63a0e", "score": "0.57090855", "text": "function gestion_fichas() {\n\t\t$crud = new grocery_CRUD();\n\n\t\t$crud->set_subject('Fichas');\n\t\t$crud->set_table('fichas');\n\t\t$crud->order_by('id','desc');\n\n\t\t$crud->columns('foto_1','categoria','titulo','descripcion','activo');\n\t\t$crud->callback_column('activo', array($this, '_renderizar_columna_activo'));\n\n\t\t$crud->field_type('categoria','enum',array('tarot','tarot-gratis','significados','horoscopo','videncia'));\n\n\t\t// $crud->unset_add();\n\t\t$crud->set_field_upload('foto_1', 'uploads/fichas');\n\t\t// $crud->unset_delete();\n\t\t$output = $crud->render();\n\t\t$output->seccion = \"Fichas\";\n\t\t$this->_gestor_output($output);\n }", "title": "" }, { "docid": "8a506babd5970827964f8491559bbfc5", "score": "0.57076746", "text": "public function listarTodos(){\r\n\t\t$sql = 'SELECT * FROM oficina_palestrante';\r\n\t\t$consulta = $conexao->prepare($sql);\r\n\t\t$resultado = $consulta->execute();\r\n\t\treturn ($resultado->fetchAll(PDO::FETCH_ASSOC));\r\n\t}", "title": "" }, { "docid": "f6b245e52c5f86df2af71fb969424ad5", "score": "0.57075816", "text": "function getTodosLosArticulos()\n {\n $this->crear_conexion();\n \n // Ejecutar la consulta SQL\n $resultado = $this->consulta_base_de_datos('SELECT fecha, titulo FROM articulo');\n \n // Crear el array de elementos para la capa de la vista\n //$articulos = array();\n //while ($fila = mysql_fetch_array($resultado, MYSQL_ASSOC))\n //{\n // $articulos[] = $fila;\n //}\n \n // Cerrar la conexión\n $this->cerrar_conexion();\n \n return $resultado;\n }", "title": "" }, { "docid": "0c46d27b15cee2a77da16c554a855c5d", "score": "0.5706687", "text": "public function listar()\n {\n $albaranes_model = new Albaranes_Model();\n $cliente_model = new Clientes_Model();\n\n session_start();\n //Le pedimos al modelo todos los Piezas\n $albaranes = $albaranes_model->readAll();\n $articulos_pedido = [];\n $clientes_pedidos = [];\n foreach ($albaranes as $key => $albaran) {\n $clientes_pedidos[] = $cliente_model->read($albaran->getCod_cliente());\n }\n //Pasamos a la vista toda la información que se desea representar\n if (isset($_SESSION['cliente'])) {\n $usuario[\"cliente\"] = $_SESSION['cliente'];\n }\n $variables = array();\n $usuario[\"usuario\"] = $_SESSION[\"usuario\"];\n $variables[\"articulos_pedido\"] = $articulos_pedido;\n $variables['albaranes'] = $albaranes;\n $variables['clientes_pedidos'] = $clientes_pedidos;\n\n //Finalmente presentamos nuestra plantilla\n $this->view->show(\"cabecera.php\");\n $this->view->show(\"plantilla_header.php\", $usuario);\n $this->view->show(RUTA_VISTAS . \"listar_header.php\");\n $this->view->show(RUTA_VISTAS . \"listar.php\", $variables);\n $this->view->show(\"plantilla_pie.php\");\n $this->view->show(\"pie.php\", $usuario);\n }", "title": "" }, { "docid": "246d8bcf5ede363976d60bef1bf2d37c", "score": "0.57040805", "text": "public function listarInscripciones()\n {\n if (isset($_SESSION['rol_id'])) {\n // Almacenamos en el array 'parametros[]'los valores que vamos a mostrar en la vista\n $parametros = [\n \"datos\" => NULL,\n \"mensajes\" => []\n ];\n // Realizamos la consulta y almacenamos los resultados en la variable $resultModelo\n $resultModelo = $this->modelo->listadoInscripciones();\n \n if ($resultModelo[\"correcto\"]){\n $parametros[\"datos\"] = $resultModelo[\"datos\"];\n\n $this->mensajes[] = [\n \"tipo\" => \"success\",\n \"mensaje\" => \"El listado se realizó correctamente\"\n ];\n\n }else{\n $this->mensajes[] = [\n \"tipo\" => \"danger\",\n \"mensaje\" => \"El listado no pudo realizarse correctamente!! :( <br/>({$resultModelo[\"error\"]})\"\n ];\n }\n \n $parametros[\"mensajes\"] = $this->mensajes;\n $this->view->show(\"ListarClasesInscritas\", $parametros);\n }else{\n $this->view->show(\"inicio\");\n }\n }", "title": "" }, { "docid": "9aeca04b4af783890bd251d0dd4a9a17", "score": "0.56993", "text": "public function getAllActiveFaqs(){\n //creamos un nuevo objeto\n $faq = new Model\\Faq();\n //retornamos todos los datos\n return $faq->getAll(true);\n }", "title": "" }, { "docid": "20299ba5f1db8ea944d478cad8c04cfb", "score": "0.5698516", "text": "public function flujosValidos()\n\t{\n\t\tif( !empty($this->FlujosSeleccionadas) && in_array( (string)Usuarios::APROBADOR ,$this->PermisosSeleccionados) )\n\t\t{\n\t\t\t$flujosids = Tools::GetUltimosNivele();\n\t\t\twhile( list($key,$value) = each($flujosids) )\n\t\t\t{\n\t\t\t\tif( in_array( $value , $this->FlujosSeleccionadas ) )\n\t\t\t\t{\n\t\t\t\t\t$flujos = Flujos::model()->with('caracteristicas_tipo','caracteristicas_tipo.caracteristicas')->together()->findByPk($value);\n\t\t\t\t\t$mensaje = 'El nivel('.$flujos->nivel_aprobacion.') con '.$flujos->caracteristicas_tipo->nombre;\n\t\t\t\t\t$mensaje = $mensaje.' y '.$flujos->caracteristicas_tipo->caracteristicas->nombre;\n\t\t\t\t\t$this->addError('PermisosSeleccionados', $mensaje.' .No lo puede tener un aprobador. ');\n\t\t\t\t\t$this->addError('FlujosSeleccionadas', $mensaje.' .No lo puede tener un aprobador. ');\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4cd49d9f44954059b76b8ddeaefddf00", "score": "0.5698238", "text": "function getAllFiche()\n{\n return getAll(\"bav_objet\", \"obj_id\");\n}", "title": "" }, { "docid": "21517c4e42654517ee39ca3377164bee", "score": "0.56981456", "text": "public function index(){\r\n $this->listar();\r\n }", "title": "" }, { "docid": "632d2a7f730ab5e577f023d3e72f0e23", "score": "0.56919247", "text": "public function index() {\n $this->completar(0);\n }", "title": "" }, { "docid": "e944e097d6003149131d5e1ea23b22dd", "score": "0.5690559", "text": "function predios(){\n\t\t$this->layouts->add_include('assets/js/jquery-ui.js')\n\t\t\t\t\t\t\t\t->add_include('assets/js/jquery.autocomplete.pack.js')\n\t\t\t\t\t\t\t\t->add_include('assets/js/jquery.dataTables.min.js')\n\t\t\t\t\t\t\t\t->add_include('assets/css/planogramas.css')\n\t\t\t\t\t\t\t\t->add_include('assets/css/multi-select.css')\n\t\t\t\t\t\t\t\t->add_include('assets/js/jquery.multi-select.js');\n\n\t\t$op['inmuebles'] = $this->planogramas_model->cargarInmuebles();\n\t\t$op['usu']\t=\t$this->planogramas_model->trae_usuarios();\n\t\t\n\t\t$this->layouts->profile('listaInmueblesPredios-vista',$op);\n\t}", "title": "" }, { "docid": "14777037707ad0fab6021b9074f339a4", "score": "0.5690281", "text": "function restaurer_fonds($fichiers) {\n\tinclude_spip('inc/config');\n\n\tforeach ($fichiers as $_fichier) {\n\t\tlire_fichier($_fichier,$tableau);\n\t\t$fond = basename($_fichier, '.txt');\n\t\t$ok = ecrire_config($fond, $tableau);\n\t}\n\n\treturn $ok;\n}", "title": "" }, { "docid": "6de0b997b5847e7538e920d82341ff2a", "score": "0.56888306", "text": "private static function AddFondosEspeciales(){\n\t\tforeach(self::$arrLiquidaciones as $liquidacion){\n\t\t\t$uf = Funciones::GetOne($liquidacion->idUF, UF::class);\n\n\t\t\t$newLiquidacionFR = LiquidacionApi::NewLiquidacion($uf);\n\t\t\t$newLiquidacionFR->monto = Manzanas::GetMontoFondoEspecial($uf->idManzana, LiquidacionTypeEnum::FondoReserva);\n\t\t\t$newLiquidacionFR->saldoMonto = $newLiquidacionFR->monto * -1;\n\t\t\t$newFondoReserva = self::NewFondoEspecial($newLiquidacionFR, LiquidacionTypeEnum::FondoReserva);\n\t\t\tFunciones::UpdateOne($newLiquidacionFR);\n\n\t\t\t$newLiquidacionFP = LiquidacionApi::NewLiquidacion($uf);\n\t\t\t$newLiquidacionFP->monto = Manzanas::GetMontoFondoEspecial($uf->idManzana, LiquidacionTypeEnum::FondoPrevision);\n\t\t\t$newLiquidacionFP->saldoMonto = $newLiquidacionFP->monto * -1;\n\t\t\t$newFondoPrevision = self::NewFondoEspecial($newLiquidacionFP, LiquidacionTypeEnum::FondoPrevision);\n\t\t\tFunciones::UpdateOne($newLiquidacionFP);\n\t\t}\n\t}", "title": "" }, { "docid": "f76762f7dfe76eae2c2ef5ff3405546c", "score": "0.5686464", "text": "public function contar_estructuras_todos() {\n $this->db->where('gmat_estado', DB_ACTIVO);\n return $this->db->count_all_results(self::$table_menu);\n }", "title": "" }, { "docid": "7a786e37861ef6fdbcb0a79e0978369e", "score": "0.5685185", "text": "public function filtrarListado(){\n\t\t$data = array();\n\t\tif(!empty($this->input->post('fec_desde'))){\n $data['fec_desde'] = $this->input->post('fec_desde');\n }\n\t\tif(!empty($this->input->post('fec_hasta'))){\n $data['fec_hasta'] = $this->input->post('fec_hasta');\n }\n\t\tif(!empty($this->input->post('estadoFilt'))){\n $data['estadoFilt'] = $this->input->post('estadoFilt');\n }\n\t\tif(!empty($this->input->post('equipoFilt'))){\n $data['equipoFilt'] = $this->input->post('equipoFilt');\n }\n\t\tif(!empty($this->input->post('permissionFilt'))){\n $permission = $this->input->post('permissionFilt');\n }\n\t\t$data['opciones'] = $this->load->view('otrabajos/tabla_opciones',['permission'=>$permission],true);\n\t\t$response = $this->Otrabajos->filtrarListado($data,2);\n log_message('DEBUG','#ASSET | Otrabajo | filtrarListado() $response >> '.json_encode($response));\n\t\tif(!empty($data['fec_desde']) || !empty($data['fec_hasta']) || !empty($data['estadoFilt']) || !empty($data['equipoFilt'])){\n\t\t\techo json_encode($response);\n\t\t}else{\n\t\t\techo json_encode($response=null);\n\t\t}\n\t}", "title": "" }, { "docid": "f598784227781a1fe496a2cb34751f86", "score": "0.5685133", "text": "function agregarComentarios(){\n if(isset($_POST['com_id_producto'])){\n // guardo en el cometario\n $resultado = $this->modelo->agregarComentarios($_POST);\n if($resultado > 0) header('Location: http://localhost/maquinarias/admin/comentarios/');\n }\n else{\n // muestro el formulario\n $this->vista->agregarComentarios();\n }\n }", "title": "" }, { "docid": "3f396cab8a3ebfdb62a299a58e4de846", "score": "0.5684553", "text": "public function accionListaActividadesCrud(){\n if (!Sistema::app() -> acceso() -> hayUsuario()) {\n Sistema::app() -> sesion() -> set(\"pagPrevia\", array(\"actividades\", \"listaActividadesCrud\"));\n Sistema::app() -> sesion() -> set(\"parametrosAnt\", array());\n Sistema::app() -> irAPagina(array(\"inicial\", \"login\"));\n exit ;\n } \n else if (!Sistema::app() -> acceso() -> puedeConfigurar()) {\n Sistema::app() -> paginaError(400, \"No tiene permiso para acceder\");\n exit ;\n } \n else {\n $actividades=new Actividades(); \n\t\t\t\t\n\t\t\t\t//establezco las opciones de filtrado\n\t $opciones=array();\n\t $cadena=\"\";\n\t $filtrado=array();\n\t $opciones[\"select\"]=\" t.*, tem.nombre as temporada \"; \n\t $opciones[\"from\"]=\" join temporadas tem using(cod_temporada) \";\n\t $opciones[\"order\"]= \" t.nombre \";\n\t //filtrado \n\t //si no existe filtrado se muestran todas las actividades\t\t\t\t\n\t\t\t\t//Filtro temporada\n\t\t\t\tif(isset($_REQUEST[\"temporada\"]) && $_REQUEST[\"temporada\"]!==\"\"){\n\t\t\t\t\t$cadena.=\" t.cod_temporada=\".intval($_REQUEST[\"temporada\"]);\n\t\t\t\t\t$temporada=intval($_REQUEST[\"temporada\"]);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$cadena.=\" tem.fecha_inicio<='\".date(\"Y-m-d\").\"' and tem.fecha_fin>='\".date(\"Y-m-d\").\"'\";\t\n\t\t\t\t}\n\t \n\t $opciones[\"where\"]=$cadena;\n\t\t\t\t\n\t\t\t\t \n $filas=$actividades->buscarTodos($opciones);\t\t\t\t\t\t\t\t\t\t\t\t\n \n $this->dibujaVista(\"listaActividadesCrud\", array(\"filas\"=>$filas, \"temporada\"=>(isset($temporada)? $temporada: \"\")) , \"Lista de Actividades \");\n }\n }", "title": "" } ]
d965a3a975f7d7e66fbc60d7e092f4a4
/ ewpq_get_meta_query Query by custom field values
[ { "docid": "b3c10b05d7cf01f1099ea7c008f07e4c", "score": "0.75256073", "text": "function ewpq_get_meta_query($meta_key, $meta_value, $meta_compare){\n if(!empty($meta_key) && !empty($meta_value)){ \n\t // See the docs (http://codex.wordpress.org/Class_Reference/WP_Meta_Query)\n\t if($meta_compare === 'IN' || $meta_compare === 'NOT IN' || $meta_compare === 'BETWEEN' || $meta_compare === 'NOT BETWEEN'){\n\t \t// Remove all whitespace for meta_value because it needs to be an exact match\n\t \t$mv_trimmed = preg_replace('/\\s+/', ' ', $meta_value); // Trim whitespace \n\t \t$meta_values = str_replace(', ', ',', $mv_trimmed); // Replace [term, term] with [term,term]\n\t \t$meta_values = explode(\",\", $meta_values);\t \n\t }else{\t\n\t \t$meta_values = $meta_value;\n\t }\t\n $args = array(\n\t\t 'key' => $meta_key,\n 'value' => $meta_values,\n\t\t 'compare' => $meta_compare,\n\t\t);\n\t\treturn $args;\n\t}\n}", "title": "" } ]
[ { "docid": "2addaba4330f702a386cedd191406309", "score": "0.7101876", "text": "public function meta_query()\r\n {\r\n $meta_query = array();\r\n $meta_query['relation'] = 'AND';\r\n\r\n $meta_query = apply_filters('mec_map_meta_query', $meta_query, $this->atts);\r\n \r\n return $meta_query;\r\n }", "title": "" }, { "docid": "d1177f9149b2c8fb3fa4af18c6786eff", "score": "0.6380687", "text": "function wppb_get_all_values_for_user_meta( $meta_key, $wppb_manage_fields ){\r\n $results = array();\r\n if( !empty( $meta_key ) ) {\r\n global $all_queried_user_ids_string;\r\n\r\n $gloabl_filter_ids_name = $meta_key.'_user_ids';\r\n global ${$gloabl_filter_ids_name};\r\n\r\n\r\n if( !empty( $all_queried_user_ids_string ) ){\r\n global $wpdb;\r\n $query_string = \"\r\n SELECT meta_value FROM {$wpdb->usermeta}\r\n WHERE meta_key = '%s'\r\n AND meta_value != ''\r\n \";\r\n\r\n if( !empty( $$gloabl_filter_ids_name ) ) {\r\n $partial_ids = $$gloabl_filter_ids_name;\r\n $query_string .= \" AND user_id IN ($partial_ids)\";\r\n }\r\n else\r\n $query_string .= \" AND user_id IN ($all_queried_user_ids_string)\";\r\n\r\n $results = $wpdb->get_col($wpdb->prepare( $query_string, $meta_key ));\r\n\r\n /* separate values in database for checkboxes */\r\n if( wppb_check_if_field_is_multiple_value_from_meta_name( $meta_key, $wppb_manage_fields ) ) {\r\n if( !empty( $results ) ){\r\n $new_keys = array();\r\n foreach( $results as $key => $value ){\r\n if( strpos( $value, ',' ) !== false ){\r\n $value = explode( ',', $value );\r\n unset( $results[$key] );\r\n $new_keys = array_merge( $new_keys, $value );\r\n }\r\n }\r\n $results = array_merge( $results, $new_keys);\r\n }\r\n }/* we need to handle the role facet differently */\r\n else if( $meta_key == $wpdb->get_blog_prefix().'capabilities' ){\r\n if( !empty( $results ) ){\r\n $new_keys = array();\r\n foreach( $results as $key => $value ){\r\n if( is_serialized( $value ) ){\r\n $value = array_keys( maybe_unserialize( $value ) );\r\n unset( $results[$key] );\r\n $new_keys = array_merge( $new_keys, $value );\r\n }\r\n }\r\n $results = array_merge( $results, $new_keys);\r\n }\r\n }\r\n\r\n $results = array_count_values($results);\r\n uksort($results, \"strcasecmp\");\r\n }\r\n }\r\n return $results;\r\n}", "title": "" }, { "docid": "3f39c8ba6548e8de39eb4763d949673f", "score": "0.6260507", "text": "abstract public function getQueryField();", "title": "" }, { "docid": "0a24c61519e5c0de3960495e03db191b", "score": "0.611963", "text": "public function convert_to_meta_query( $order_query_vals ) {\n\t\t\n\t\t$meta_query = array();\n\n\t\tif ( isset( $order_query_vals['city'] ) ) {\n\t\t\t$meta_query[] = array(\n\t\t\t\t'key' => 'City',\n\t\t\t\t'value' => $order_query_vals['city'],\n\t\t\t\t'compare' => '=',\n\t\t\t);\t\t\n\t\t}\t\n\t\t\t\t\t\n\t\tif ( isset( $order_query_vals['minprice'] ) || isset( $order_query_vals['maxprice'] ) ) {\n $price_param = array( 0, 9999999999 );\n if ( $order_query_vals['minprice'] ) {\n $price_param[0] = intval( $order_query_vals['minprice'] );\n }\n if ( $order_query_vals['maxprice'] ) {\n $price_param[1] = intval( $order_query_vals['maxprice'] );\n }\n\t\t\t$meta_query[] = array(\n\t\t\t\t'key' => 'ListPrice',\n\t\t\t\t'value' => $price_param,\n\t\t\t\t'type' => 'numeric',\n\t\t\t\t'compare' => 'BETWEEN',\n\t\t\t);\t\t\n\t\t}\n\t\t\t\t\t\n\t\t$order_type_query_vals = array();\n if( isset( $order_query_vals['pc'] ) ) {\n $order_type_query_vals[] = 'PC';\n }\n if( isset( $order_query_vals['mc'] ) ) {\n $order_type_query_vals[] = 'Mac';\n }\n if( isset( $order_query_vals['addon'] ) ) {\n $order_type_query_vals[] = 'Add-On';\n }\n if ( $order_type_query_vals ) {\n\t\t\t$meta_query[] = array(\n\t\t\t\t'key' => 'OrderType',\n\t\t\t\t'value' => $order_type_query_vals,\n\t\t\t\t'compare' => 'IN',\n\t\t\t);\t\t\n\t\t}\n\n\t\treturn $meta_query;\n\n\t}", "title": "" }, { "docid": "88704eac3985555516d2b4f600e6e44e", "score": "0.6061598", "text": "function handle_custom_query_var( $query, $query_vars ) {\n if ( ! empty( $query_vars['wc_sf_internal_proforma_id'] ) ) {\n $query['meta_query'][] = array(\n 'key' => 'wc_sf_internal_proforma_id',\n 'value' => esc_attr( $query_vars['wc_sf_internal_proforma_id'] ),\n );\n }\n\n if ( ! empty( $query_vars['wc_sf_internal_regular_id'] ) ) {\n $query['meta_query'][] = array(\n 'key' => 'wc_sf_internal_regular_id',\n 'value' => esc_attr( $query_vars['wc_sf_internal_regular_id'] ),\n );\n }\n\n return $query;\n }", "title": "" }, { "docid": "5785655c006bd772f2d1ed94ba9985fe", "score": "0.60542244", "text": "function custom_search_query( $query ) {\n $custom_fields = array(\n // put all the meta fields you want to search for here\n \"country\",\n \"state\"\n );\n $searchterm = $query->query_vars['s'];\n\n // we have to remove the \"s\" parameter from the query, because it will prevent the posts from being found\n $query->query_vars['s'] = \"\";\n\n if ($searchterm != \"\") {\n $meta_query = array('relation' => 'OR');\n foreach($custom_fields as $cf) {\n array_push($meta_query, array(\n 'key' => $cf,\n 'value' => $searchterm,\n 'compare' => 'LIKE'\n ));\n }\n \n $query->set(\"post_type\", 'turism');\n\t\t $query->set(\"posts_per_page\", -1);\n\n $query->set(\"meta_query\", $meta_query);\n };\n}", "title": "" }, { "docid": "69dc6a93d645f4c383d1be0a1a652033", "score": "0.60082555", "text": "function colabs_search_set_query( $q ) {\n // Set post type\n $q->set('post_type', 'property');\n\n //Get matching method\n $matching_method = get_option('colabs_feature_matching_method');\n\n // Setup search variables\n $min_price = isset($_GET['price_min']) ? $_GET['price_min'] : 0;\n $max_price = isset($_GET['price_max']) ? $_GET['price_max'] : 0;\n $min_size = isset($_GET['size_min']) ? $_GET['size_min'] : 0;\n $max_size = isset($_GET['size_max']) ? $_GET['size_max'] : 0;\n $no_garages = isset($_GET['no_garages']) ? $_GET['no_garages'] : 'all';\n $no_beds = isset($_GET['no_beds']) ? $_GET['no_beds'] : 'all';\n $no_baths = isset($_GET['no_baths']) ? $_GET['no_baths'] : 'all';\n $location_id = isset($_GET['location_names']) ? $_GET['location_names'] : 0;\n $propertytypes_id = isset($_GET['property_types']) ? $_GET['property_types'] : 0;\n $propertystatus_id = isset($_GET['property_status_id']) ? $_GET['property_status_id'] : 0;\n\n // Tax Query\n $tax_query = array();\n\n // Location\n if ( $location_id > 0 ) { \n $tax_query[] = array(\n 'taxonomy' => 'property_location',\n 'terms' => $location_id\n );\n }\n\n // Property Type\n if ( $propertytypes_id > 0 ) { \n $tax_query[] = array(\n 'taxonomy' => 'property_type',\n 'terms' => $propertytypes_id\n );\n }\n\n // Property Status\n if ( $propertystatus_id > 0 ) { \n $tax_query[] = array(\n 'taxonomy' => 'property_status',\n 'terms' => $propertystatus_id\n );\n }\n\n // Meta Query, for querying number of garages, bed and bathrooms\n $meta_query = array(\n // 'relation' => 'OR'\n );\n\n // Garages\n if( $no_garages != 'all' ) {\n $meta_query[] = array(\n 'key' => 'property_garage',\n 'value' => intval( $no_garages ),\n 'compare' => $matching_method == 'minimum' ? '>=' : '=',\n 'type' => 'NUMERIC'\n ); \n }\n\n // Bedrooms\n if( $no_beds != 'all' ) {\n $meta_query[] = array(\n 'key' => 'property_beds',\n 'value' => $no_beds,\n 'compare' => $matching_method == 'minimum' ? '>=' : '=',\n 'type' => 'NUMERIC'\n ); \n }\n\n // Bathrooms\n if( $no_baths != 'all' ) {\n $meta_query[] = array(\n 'key' => 'property_baths',\n 'value' => $no_baths,\n 'compare' => $matching_method == 'minimum' ? '>=' : '=',\n 'type' => 'NUMERIC'\n ); \n }\n\n // Search Price range \n $meta_query[] = array(\n 'key' => 'property_price',\n 'value' => array( intval($min_price), intval($max_price) ),\n 'type' => 'numeric',\n 'compare' => 'BETWEEN'\n );\n\n // Search Size range\n $meta_query[] = array(\n 'key' => 'property_size',\n 'value' => array( intval($min_size), intval($max_size) ),\n 'type' => 'numeric',\n 'compare' => 'BETWEEN'\n );\n\n $keyword_to_search_raw = get_search_query();\n if ( ($keyword_to_search_raw == get_option('colabs_search_keyword_text')) || \n ($keyword_to_search_raw == 'Your Keywords') ) { \n $keyword_to_search = ''; \n } else { \n $keyword_to_search = $keyword_to_search_raw;\n }\n\n $q->set( 'tax_query', $tax_query );\n $q->set( 'meta_query', $meta_query );\n $q->set( 's', $keyword_to_search );\n \n // Set ordering\n // ------------\n if( isset( $_GET['propertyorder'] ) ) {\n $order_query = explode('_', $_GET['propertyorder']);\n $orderby = 'date';\n $order_metakey = '';\n $order = 'desc';\n\n // Price\n if( $order_query[0] == 'sort-price' ) {\n $orderby = 'meta_value';\n $order_metakey = 'property_price';\n } \n\n // Title\n elseif( $order_query[0] == 'sort-title' ) {\n $orderby = 'title';\n }\n\n // Popular\n elseif( $order_query[0] == 'sort-popular' ) {\n $orderby = 'comment_count';\n }\n\n // Order\n if( isset( $order_query[1] ) ) {\n $order = $order_query[1];\n }\n\n $q->set( 'meta_key', $order_metakey );\n $q->set( 'orderby', $orderby );\n $q->set( 'order', $order );\n }\n}", "title": "" }, { "docid": "b74be7e40bd0c7766f341e5786fc7fc3", "score": "0.59866863", "text": "function qw_meta_key_autocomplete(){\n if ( isset( $_POST['qw_meta_key_autocomplete'] ) ){\n $meta_key = sanitize_text_field( $_POST['qw_meta_key_autocomplete'] );\n global $wpdb;\n $query = $wpdb->prepare( \"SELECT DISTINCT(`meta_key`) FROM {$wpdb->postmeta} WHERE `meta_key` LIKE '%s' LIMIT 15\", '%'.$meta_key.'%' );\n $results = $wpdb->get_col( $query );\n\n\n //foreach ($query)\n wp_send_json(array(\n 'success' => true,\n 'values' => $results,\n ));\n\n if ( $results ){\n }\n else {\n\n }\n }\n exit;\n}", "title": "" }, { "docid": "2b058b5f2f9d5221a7dbf0b46ee94bfa", "score": "0.59641427", "text": "protected function get_admin_search_job_meta_sql( $query ) {\n\t\tglobal $wpdb;\n\t\t$fields_to_search = array( 'first_name', 'last_name', 'email', 'company' );\n\n\t\t$meta_query = array( 'relation' => 'OR' );\n\n\t\tforeach( $fields_to_search as $field ) {\n\t\t\tarray_push( $meta_query, array(\n\t\t\t\t'compare' => 'LIKE',\n\t\t\t\t'key' => $field,\n\t\t\t\t'value' => $query->query_vars['s'],\n\t\t\t) );\n\t\t}\n\n\t\treturn get_meta_sql( $meta_query, 'post', $wpdb->posts, 'ID', $query );\n\t}", "title": "" }, { "docid": "b3c16f0b5030731f2314f96ebbe63983", "score": "0.5885014", "text": "public function query() {\n $this->field_alias = $this->real_field;\n $this->query->add_where('', $this->definition['trovequery']['arg'], $this->definition['trovequery']['value']);\n }", "title": "" }, { "docid": "b3c16f0b5030731f2314f96ebbe63983", "score": "0.5885014", "text": "public function query() {\n $this->field_alias = $this->real_field;\n $this->query->add_where('', $this->definition['trovequery']['arg'], $this->definition['trovequery']['value']);\n }", "title": "" }, { "docid": "e7b6c5b96113b18c5156883c5ba84fa3", "score": "0.58791953", "text": "function search_by_price_query( $args ) {\n \n if( adverts_request( 'price_min' ) ) {\n \n $args[\"meta_query\"][] = array( \n 'key' => 'adverts_price', \n 'value' => adverts_filter_money( adverts_request( 'price_min' ) ), \n 'compare' => '>=',\n 'type' => 'DECIMAL(12,2)'\n );\n }\n\n if( adverts_request( 'price_max' ) ) {\n $args[\"meta_query\"][] = array( \n 'key' => 'adverts_price', \n 'value' => adverts_filter_money( adverts_request( 'price_max' ) ), \n 'compare' => '<=',\n 'type' => 'DECIMAL(12,2)'\n );\n }\n \n return $args;\n}", "title": "" }, { "docid": "ede4313e9ac29cbf13b9c05d922717f2", "score": "0.58776295", "text": "public function getCustomfieldValues($tokens){\n\t\t$vmCompatibility=VmCompatibility::getInstance();\n\t\t$phrases=array();\n\t\t$db=JFactory::getDbo();\n\t\t$custom_plg=array();\n\t\t$whereOr=array();\n\t\t$final_result=array();\n\n\t\t//get also from custom plugins\n\t\t$published_cf=cftools::getCustomFilters();\n\t\tforeach ($tokens as $token){\n\t\t\t$custom_ids=array();\n\t\t\t$custom_ids_plg=array();\n\t\t\t$custom_plg_tmp=array();\n\t\t\t$term_identical_str=null;\n\t\t\t$term_identical_orig=null;\n\n\t\t\tif(isset($token->identical)){\n\t\t\t\t//$term_identical_str=$db->quote($db->escape($token->identical->term, true).'%', false);\n\t\t\t\t$term_identical_orig=$db->quote($token->identical->term);\n\t\t\t}\n\t\t\t//$string_term=$db->quote($db->escape($token->term, true).'%', false);\n\t\t\t$original_term=$db->quote($token->term);\n\n\t\t\tforeach($published_cf as $cf){\n\n\t\t\t\t//not plugin\n\t\t\t\tif($cf->field_type!='E'){\n\t\t\t\t\t$custom_ids[]=$cf->custom_id;\n\t\t\t\t}\n\t\t\t\t//plugin\n\t\t\t\telse{\n\t\t\t\t\t//if the plugin has not declared the necessary params go to the next\n\t\t\t\t\tif(empty($cf->pluginparams))continue;\n\n\t\t\t\t\t//get vars from plugins\n\t\t\t\t\t$term_identical=null;\n\t\t\t\t\t$customvalues_table=$cf->pluginparams->customvalues_table;\n\t\t\t\t\t$customvalue_value_field=$cf->pluginparams->customvalue_value_field;\n\t\t\t\t\t$product_customvalues_table=$cf->pluginparams->product_customvalues_table;\n\t\t\t\t\t$sel_field=$cf->pluginparams->filter_by_field;\n\t\t\t\t\t$filter_data_type=$cf->pluginparams->filter_data_type;\n\n\n\t\t\t\t\tif(!isset($custom_plg[$customvalues_table])){\n\t\t\t\t\t\t$custom_plg[$customvalues_table]=new stdClass();\n\t\t\t\t\t\t$custom_plg[$customvalues_table]->filter_by_field=$sel_field;\n\t\t\t\t\t\t$custom_plg[$customvalues_table]->customvalue_value_field=$customvalue_value_field;\n\t\t\t\t\t\t$custom_plg[$customvalues_table]->customvalues_table=$customvalues_table;\n\t\t\t\t\t\t$custom_plg[$customvalues_table]->product_customvalues_table=$product_customvalues_table;\n\t\t\t\t\t\t$custom_plg[$customvalues_table]->custom_ids=array();\n\t\t\t\t\t\t$custom_plg[$customvalues_table]->whereOr=array();\n\t\t\t\t\t}\n\t\t\t\t\tif(!isset($custom_ids_plg[$customvalues_table]))$custom_ids_plg[$customvalues_table]=array();\n\t\t\t\t\tif(!in_array($cf->custom_id, $custom_ids_plg[$customvalues_table]))$custom_ids_plg[$customvalues_table][]=$cf->custom_id;\n\n\t\t\t\t\tif(!isset($custom_plg_tmp[$customvalues_table]))$custom_plg_tmp[$customvalues_table]=array();\n\t\t\t\t\t$custom_plg_tmp[$customvalues_table][]=$custom_plg[$customvalues_table];\n\t\t\t\t}\n\t\t\t}\n\t\t\t//format the native customs where for that token\n\t\t\tif(!empty($custom_ids)){\n\t\t\t\t$whereOr[]='(cfv.'.$vmCompatibility->getColumnName('custom_value').' LIKE '.$original_term.' AND '.$vmCompatibility->getColumnName('virtuemart_custom_id').' IN ('.implode(',', $custom_ids).'))';\n\t\t\t\tif(isset($term_identical_orig))$whereOr[]='(cfv.'.$vmCompatibility->getColumnName('custom_value').' LIKE '.$term_identical_orig.' AND '.$vmCompatibility->getColumnName('virtuemart_custom_id').' IN ('.implode(',', $custom_ids).'))';\n\t\t\t}\n\n\t\t\tforeach ($custom_plg_tmp as $dbtable=>$custom_p){\n\t\t\t\t$custom_plg[$dbtable]->whereOr[]='('.$custom_plg[$dbtable]->customvalue_value_field.' LIKE '.$original_term.' AND virtuemart_custom_id IN('.implode(',', $custom_ids_plg[$dbtable]).'))';\n\t\t\t\tif(isset($term_identical_orig))$custom_plg[$dbtable]->whereOr[]='('.$custom_plg[$dbtable]->customvalue_value_field.' LIKE '.$term_identical_orig.' AND virtuemart_custom_id IN('.implode(',', $custom_ids_plg[$dbtable]).'))';\n\t\t\t}\n\n\t\t}\n\n\t\t//form the query for the native customs\n\t\tif(!empty($whereOr)){\n\t\t\t$query=$db->getQuery(true);\n\t\t\t$query->select('DISTINCT LOWER('.$vmCompatibility->getColumnName('custom_value').') AS name, LOWER('.$vmCompatibility->getColumnName('custom_value').') AS value, cfv.'.$vmCompatibility->getColumnName('virtuemart_custom_id').' AS custom_id , \"#__virtuemart_product_customfields\" AS `products_table`,\"'.$vmCompatibility->getColumnName('custom_value').'\" AS filter_by_field, 0 AS `is_custom`')\n\t\t\t->from('#__virtuemart_product_customfields AS cfv');\n\t\t\t$query->where(implode(' OR ', $whereOr));\n\t\t\t$db->setQuery($query);\n\t\t\t//print_r((string)$query);\n\t\t\t$results=$db->loadObjectList();\n\t\t\t$final_result=array_merge($final_result,$this->createAssocArrayFromObjectList($results));\n\t\t}\n\t\t//form the query for the plugin customs\n\t\tif(!empty($custom_plg)){\n\t\t\tforeach ($custom_plg as $plg){\n\t\t\t\t$query=$db->getQuery(true);\n\t\t\t\t$query->select('LOWER('.$plg->customvalue_value_field.') AS name, cfv.'.$plg->filter_by_field.' AS value, virtuemart_custom_id AS custom_id ,\"'.$plg->product_customvalues_table.'\" AS `products_table` ,\"'.$plg->filter_by_field. '\" AS filter_by_field, 1 AS is_custom')\n\t\t\t\t->from($plg->customvalues_table.' AS cfv');\n\t\t\t\t$query->where(implode(' OR ', $plg->whereOr));\n\t\t\t\t$db->setQuery($query);\n\t\t\t\t$results=$db->loadObjectList();\n\t\t\t\t//print_r((string)$query);\n\t\t\t\t$final_result=array_merge($final_result,$this->createAssocArrayFromObjectList($results));\n\t\t\t}\n\n\t\t}\n\t\treturn array_unique($final_result);\n\t}", "title": "" }, { "docid": "38e1ea1bf11167d1482ce84055a772fe", "score": "0.5870166", "text": "function handle_custom_query_var( $query, $query_vars ) {\n\tif ( ! empty( $query_vars['kiboo_id'] ) ) {\n\t\t$query['meta_query'][] = array(\n\t\t\t'key' => 'kiboo_id',\n\t\t\t'value' => esc_attr( $query_vars['kiboo_id'] ),\n\t\t);\n\t}\n\n\treturn $query;\n}", "title": "" }, { "docid": "e17c47223445071dc7e30739dd6ecee7", "score": "0.5832301", "text": "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 foreach ($this->value as $key => $value) {\n $this->query->add_where($this->options['group'], $this->definition['trovequery']['arg'], $this->definition['trovequery']['index'] . ':' . $value);\n }\n }\n else {\n $this->query->add_where($this->options['group'], $this->definition['trovequery']['arg'], $this->definition['trovequery']['index'] . ':' . $this->value);\n }\n }\n }", "title": "" }, { "docid": "e40cde5a6a5b7e72c637e43018c0d5a5", "score": "0.58321786", "text": "function query() {\r\n $params = $this->options['group_type'] != 'group' ? array('function' => $this->options['group_type']) : array();\r\n\r\n $fields = array(\r\n 'field1' => $this->options['field1'],\r\n 'field2' => $this->options['field2']\r\n );\r\n\r\n $custom_fields = array(\r\n 'field1' => $this->options['custom_number_field1'],\r\n 'field2' => $this->options['custom_number_field2']\r\n );\r\n\r\n foreach ($custom_fields as $key => $field) {\r\n if (!empty($field) && is_numeric($field)) {\r\n $fields[$key] = $field;\r\n }\r\n }\r\n\r\n $operation = $this->options['operation'];\r\n\r\n if (!$this->formula_options_list($operation)) {\r\n $operation = '+';\r\n }\r\n\r\n $fieldsql = array();\r\n\r\n static $save_field = array();\r\n\r\n foreach ($fields as $key => $field) {\r\n\r\n if (is_numeric($field)) {\r\n $fieldsql[$key] = $field;\r\n continue;\r\n }\r\n\r\n //split field to array\r\n $field_array = explode('###', $field);\r\n $field = $field_array[0];\r\n $field_group = isset($field_array[1]) ? $field_array[1] : FALSE;\r\n unset($field_array);\r\n\r\n if (!isset($this->view->field[$field]))\r\n continue;\r\n\r\n $field_info = $this->view->field[$field];\r\n\r\n if ($field_info->table == 'views' && views_number_field_detection($field)) {\r\n if (isset($this->query->fields[$field])) {\r\n $fieldsql[$key] = $this->_string_brackets($this->query->fields[$field]['field']);\r\n }\r\n continue;\r\n }\r\n $field_info->set_relationship();\r\n //Force the tables needed for the fields in the query to be added.\r\n // In particular, the joins for any fields.\r\n $field_info->ensure_my_table();\r\n\r\n //get Table\r\n $table_string = (!empty($field_info->table_alias) && $field_info->table_alias !== 'unknown') ? $field_info->table_alias : $field_info->table;\r\n\r\n $field_string = ($field_group !== FALSE) ? $field_info->field . '_' . $field_group : $field_info->real_field;\r\n\r\n $fieldsql[$key] = implode('.', array($table_string, $field_string));\r\n }\r\n\r\n if (isset($fieldsql['field1']) && isset($fieldsql['field2'])) {\r\n $formula = implode($operation, $fieldsql);\r\n // TODO: dynamically create a field alias.\r\n\r\n $field_key = implode('', $fields);\r\n $field_key = preg_replace('~[\\.\\+\\-\\*]*~', '', $field_key);\r\n\r\n // Generates the largest number to field alias.\r\n $field_alias = VIEWS_NUMBER_FIELD_CALC_FIELD;\r\n\r\n // Prevent duplicate execution.\r\n if (!isset($save_field[$field_key])) {\r\n $save_field[$field_key] = TRUE;\r\n $i = 1;\r\n do {\r\n if (isset($this->query->fields[$field_alias])) {\r\n $field_alias = VIEWS_NUMBER_FIELD_CALC_FIELD . '_' . $i;\r\n }\r\n else {\r\n break;\r\n }\r\n $i++;\r\n } while (isset($this->query->fields[$field_alias]));\r\n }\r\n\r\n //add field\r\n $this->field_alias = $this->view->query->add_field(NULL, $formula, $field_alias, $params);\r\n $this->add_additional_fields($formula);\r\n }\r\n }", "title": "" }, { "docid": "a6976f8c7bb66617f78bb5218ed5a418", "score": "0.58210546", "text": "private function maybe_process_meta_query( WP_Query $query ) {\n\t\tif( ! array_key_exists( 'meta_query', $query->query_vars ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$meta_query = $query->query_vars['meta_query'];\n\n\t\tif( ! is_array( $meta_query ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif( 'AND' !== toolset_getarr( $meta_query, 'relation', 'AND' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tforeach( $meta_query as $single_meta_query_key => $single_meta_query ) {\n\n\t\t\tif( '=' !== toolset_getarr( $single_meta_query, 'compare', '=' ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$parent_post_type = $this->parse_legacy_meta_key( toolset_getarr( $single_meta_query, 'key' ) );\n\t\t\tif( null === $parent_post_type ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$parent_post_id = (int) toolset_getarr( $single_meta_query, 'value' );\n\n\t\t\t$was_transformed = $this->try_transforming_legacy_meta_query( $query, $parent_post_type, $parent_post_id );\n\n\t\t\tif( ! $was_transformed ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tunset( $query->query_vars['meta_query'][ $single_meta_query_key ] );\n\t\t}\n\t}", "title": "" }, { "docid": "dc4f03894256b2ff9d9e9982c8169630", "score": "0.5812461", "text": "function search_postmeta( $where, &$query )\n {\n if ( $query->is_search() && ! $query->get('suppress_filters') ) {\n global $wpdb;\n\n $q = &$query->query_vars;\n\n if ( count( $q['search_terms'] ) && count( $this->custom_fields ) ) {\n $n = ( ! empty( $q['exact'] ) ? '' : '%' );\n\n $search = '';\n $and = '';\n\n foreach ( $q['search_terms'] as $term ) {\n $like = $n . $wpdb->esc_like( $term ) . $n;\n $test = \"($wpdb->posts.post_title LIKE %s) OR ($wpdb->posts.post_content LIKE %s)\";\n $args = [ $like, $like ];\n\n foreach ( $this->custom_fields as $field ) {\n $compare = ( false !== strpos( $field, '%' ) ? 'LIKE' : '=' );\n $args[] = $field;\n $args[] = $like;\n $test .= \" OR ($wpdb->postmeta.meta_key {$compare} %s AND CAST($wpdb->postmeta.meta_value AS CHAR) LIKE %s)\";\n }\n\n $search .= call_user_func_array( [ $wpdb, 'prepare' ], [ \"{$and}( {$test} )\", $args ] );\n $and = ' AND ';\n }\n\n if ( ! empty( $search ) ) {\n $this->search_postmeta = true;\n\n $where = \" AND ({$search}) \";\n\n if ( ! is_user_logged_in() ) {\n $where .= \" AND ($wpdb->posts.post_password = '') \";\n }\n }\n }\n }\n\n return $where;\n }", "title": "" }, { "docid": "591a4b3c4a0490c25b3e2f90e9c3ab32", "score": "0.5802899", "text": "public function generateSQL(&$meta) {\n if(!isset($meta['query_fields'])) $meta['query_fields'] = $meta['select'];\n \n if(isset($meta['pivot'])) {\n //Pivot queries are special - they require an entity to be passed and modify the query directly\n $entity = $meta['entity'];\n $pivot_fields = array();\n $pivot_joins = array();\n $pivot_group = array();\n foreach($meta['pivot'] as $entity_field) {\n $field = $entity['fields'][$entity_field];\n if(isset($field['callback'])) throw new MC_Google_Visualization_QueryError('Callback fields cannot be used as pivots: \"' . $entity_field .'\"');\n $pivot_fields[] = $field['field'] . ' AS ' . $entity_field;\n $pivot_group[] = $entity_field;\n if($field['join'] && !in_array($entity['joins'][$field['join']], $pivot_joins)) $pivot_joins[] = $entity['joins'][$field['join']];\n }\n\n $pivot_sql = 'SELECT ' . implode(', ', $pivot_fields) . ' FROM ' . $meta['table'];\n if(!empty($pivot_joins)) {\n $pivot_sql .= ' ' . implode(' ', $pivot_joins);\n }\n $pivot_sql .= ' GROUP BY ' . implode(', ', $pivot_group);\n\n $func_fields = array();\n $new_fields = array();\n foreach($meta['query_fields'] as $field) {\n if(is_array($field)) {\n $func_fields[] = $field;\n } else {\n $new_fields[] = $field;\n }\n }\n $meta['query_fields'] = $new_fields;\n\n $stmt = $this->db->query($pivot_sql);\n foreach($stmt->fetchAll(PDO::FETCH_ASSOC) as $row) {\n //Create a version of all function-ed fields for each unique combination of pivot values\n foreach($func_fields as $field) {\n $field[2] = $row;\n\n $meta['query_fields'][] = $field;\n }\n }\n\n $stmt = null;\n //For pivot queries, the fields we return and the fields we query against are always the same\n $meta['select'] = $meta['query_fields'];\n }\n\n $query_sql = array();\n $join_sql = $meta['joins'];\n foreach($meta['query_fields'] as $field) {\n $func = null;\n if(is_array($field)) {\n $func = $field[0];\n $pivot_cond = (isset($field[2])) ? $field[2] : null;\n $field = $field[1];\n }\n $query_sql[] = $this->getFieldSQL($field, $meta['field_spec'][$field], true, $func, $pivot_cond, $meta['field_spec']);\n }\n\n if(isset($meta['where'])) {\n $where_str = array();\n foreach($meta['where'] as &$where_part) {\n //Replace field references with their SQL forms\n switch($where_part['type']) {\n case 'where_field':\n $where_part['value'] = $this->getFieldSQL($where_part['value'], $meta['field_spec'][$where_part['value']]);\n break;\n case 'datetime':\n case 'timestamp':\n $where_part['value'] = $this->convertDateTime(trim($where_part['value'][1], '\\'\"'));\n break;\n case 'timeofday':\n $where_part['value'] = $this->convertTime(trim($where_part['value'][1], '\\'\"'));\n break;\n case 'date':\n $where_part['value'] = $this->convertDate(trim($where_part['value'][1], '\\'\"'));\n break;\n case 'null':\n case 'notnull':\n $where_part['value'] = strtoupper(implode(' ', $where_part['value']));\n break;\n }\n \n $where_str[] = $where_part['value'];\n }\n $where_str = implode(' ', $where_str);\n }\n\n $sql = 'SELECT ' . implode(', ', $query_sql) . ' FROM ' . $meta['table'];\n if(!empty($join_sql)) {\n $sql .= ' ' . implode(' ', $join_sql);\n }\n\n if($where_str || isset($meta['global_where'])) {\n if(!$where_str) $where_str = '1=1';\n $sql .= ' WHERE (' . $where_str . ')';\n if(isset($meta['global_where'])) $sql .= ' AND ' . $meta['global_where'];\n }\n\n if(isset($meta['groupby'])) {\n $group_sql = array();\n foreach($meta['groupby'] as $group) {\n $group_sql[] = $this->getFieldSQL($group, $meta['field_spec'][$group]);\n }\n $sql .= ' GROUP BY ' . implode(', ', $group_sql);\n }\n\n if(isset($meta['orderby'])) {\n $sql .= ' ORDER BY';\n $first = true;\n foreach($meta['orderby'] as $field => $dir) {\n if(isset($meta['field_spec'][$field]['sort_field'])) {\n //An entity field can delegate sorting to another field by using the \"sort_field\" key\n $field = $meta['field_spec'][$field]['sort_field'];\n }\n $spec = $meta['field_spec'][$field];\n if(!$first) $sql .= ',';\n \n $sql .= ' ' . $this->getFieldSQL($field, $spec) . ' ' . strtoupper($dir);\n $first = false;\n }\n }\n\n if(isset($meta['limit']) || isset($meta['offset'])) {\n $sql .= $this->convertLimit($meta['limit'], $meta['offset']);\n }\n\n return $sql;\n }", "title": "" }, { "docid": "5a25b6eb693eb1bc597d4a8006d1f85c", "score": "0.5794336", "text": "function get_custom_fields_patient_by_name($field_name)\n{\n\t$query_string =\n\t\"SELECT * FROM patient_custom_field where field_name = '$field_name' LIMIT 1\";\n\t$record = query_associative_one($query_string);\n\t/* . \" - \";\n\tprint_r($record);\n\techo \"<br/>\"; */\n\t$retval = array();\n\t//foreach($resultset as $record)\n\t//{\n\t\t$custom_field = CustomField::getObject($record);\n\t//\t$retval[] = $custom_field;\n\t//}\n\t\t//echo \"Final Field Name : \".$custom_field->fieldName.\"<br/>\";\n\treturn $custom_field;\n}", "title": "" }, { "docid": "c0f8d80dd7693fc4ae1cdf20ceb36aae", "score": "0.5791586", "text": "private function _get_field_query()\n {\n $this->db->select($this->select_field)\n ->from($this->table)\n ->join('department','asset_header.department = department.id_dpt','LEFT')\n ->join('company','asset_header.company = company.id_cmp','LEFT')\n ->join('room','asset_header.room = room.id_room','LEFT')\n ->join('user','asset_header.user=user.id_user','LEFT')\n ->join('com_group','asset_header.com_group = com_group.com_group_id','LEFT')\n ->join('adm_uom','asset_header.adm_uom=adm_uom.adm_uom_id','LEFT'); $i = 0;\n foreach ($this->column_search as $item)\n {\n if(!empty($_GET['search']['value']))\n {\n if($i===0)\n {\n $this->db->group_start();\n $this->db->like('LOWER(' . $item . ')',strtolower($_GET['search']['value']) );\n }\n else\n {\n $this->db->or_like('LOWER(' . $item . ')',strtolower($_GET['search']['value']) );\n }\n if(count($this->column_search) - 1 == $i)\n $this->db->group_end();\n }\n $i++;\n }\n if(isset($_POST['order']))\n {\n $this->db->order_by($this->column_order[$_GET['order']['0']['column']], $_GET['order']['0']['dir']);\n }\n else if(isset($this->order))\n {\n $order = $this->order;\n $this->db->order_by(key($order), $order[key($order)]);\n }\n }", "title": "" }, { "docid": "4aa2c54785cdf3d9e505a1652012de8e", "score": "0.57119596", "text": "public static function filter_query_meta( $meta, $params ) {\n $filter_field_identifier = 'contract-type';\n $field_type = apply_filters( 'inventor_filter_field_type', 'SELECT', $filter_field_identifier );\n $field_name = $field_type == 'SELECT' ? 'contract-type' : 'contract-types';\n\n if ( ! empty( $params[ $field_name ] ) ) {\n $value = $params[ $field_name ];\n $operator = 'IN';\n\n $field_id = INVENTOR_LISTING_PREFIX . INVENTOR_PROPERTY_PREFIX . 'contract_type';\n\n $meta[] = array(\n 'key' => $field_id,\n 'value' => $value,\n 'operator' => $operator\n );\n }\n\n return $meta;\n }", "title": "" }, { "docid": "3d9ee9a2025e18d1616e6a69e5118eac", "score": "0.5709752", "text": "static function GetCustomQuery($criteria)\r\n\t{\r\n\t\t$sql = \"select\r\n\t\t\t'custom value here...' as CustomFieldExample\r\n\t\t\t,`media`.`idmedia` as Idmedia\r\n\t\t\t,`media`.`idhistory` as Idhistory\r\n\t\t\t,`media`.`storage` as Storage\r\n\t\t\t,`media`.`iddocumentation` as Iddocumentation\r\n\t\t\t,`media`.`institution` as Institution\r\n\t\t\t,`media`.`idreference` as Idreference\r\n\t\t\t,`media`.`mediatype` as Mediatype\r\n\t\t\t,`media`.`mediaurl` as Mediaurl\r\n\t\t\t,`media`.`digitizationdate` as Digitizationdate\r\n\t\t\t,`media`.`digitizationresponsable` as Digitizationresponsable\r\n\t\t\t,`media`.`polarity` as Polarity\r\n\t\t\t,`media`.`colorspace` as Colorspace\r\n\t\t\t,`media`.`iccprofile` as Iccprofile\r\n\t\t\t,`media`.`xresolution` as Xresolution\r\n\t\t\t,`media`.`yresolution` as Yresolution\r\n\t\t\t,`media`.`thumbnail` as Thumbnail\r\n\t\t\t,`media`.`digitizationequipment` as Digitizationequipment\r\n\t\t\t,`media`.`format` as Format\r\n\t\t\t,`media`.`ispublic` as Ispublic\r\n\t\t\t,`media`.`ordername` as Ordername\r\n\t\t\t,`media`.`sent` as Sent\r\n\t\t\t,`media`.`exif` as Exif\r\n\t\t\t,`media`.`textual` as Textual\r\n\t\t\t,`media`.`sizemedia` as Sizemedia\r\n\t\t\t,`media`.`nameoriginal` as Nameoriginal\r\n\t\t\t,`media`.`mainmedia` as Mainmedia\r\n\t\t\t,`media`.`mediadir` as Mediadir\r\n\t\t\t,`media`.`thumbnaildir` as Thumbnaildir\r\n\t\t\t,`media`.`thumbnailurl` as Thumbnailurl\r\n\t\tfrom `media`\";\r\n\r\n\t\t// the criteria can be used or you can write your own custom logic.\r\n\t\t// be sure to escape any user input with $criteria->Escape()\r\n\t\t$sql .= $criteria->GetWhere();\r\n\t\t$sql .= $criteria->GetOrder();\r\n\r\n\t\treturn $sql;\r\n\t}", "title": "" }, { "docid": "a8b0f1c8e517d21dd1cf4fa99bf2f2e4", "score": "0.5704619", "text": "public function handle_meta_query_var( $query, $query_vars ) {\n\n\t\t$raw = null;\n\n\t\tif ( ! empty( $query_vars['meta_query'] ) ) {\n\t\t\t$raw = $query_vars['meta_query'];\n\t\t}\n\n\t\tif ( ! $raw ) {\n\t\t\treturn $query;\n\t\t}\n\n\t\tif ( ! empty( $query_vars['meta_query_relation'] ) ) {\n\t\t\t$query['meta_query']['relation'] = $query_vars['meta_query_relation'];\n\t\t}\n\n\t\tforeach ( $raw as $query_row ) {\n\t\t\t$query['meta_query'][] = $query_row;\n\t\t}\n\n\t\treturn apply_filters( 'jet-engine/listing/query/wc-product-query/meta-query-var', $query );\n\n\t}", "title": "" }, { "docid": "41e65a8b423ca82c0c04d66d38d78ef0", "score": "0.56795716", "text": "function filter_get_results($sql, $fielddef, $fieldname, $specialvalue = ''){\n \tstatic $FILTERSETS;\n\t\tglobal $CFG, $DB;\n\n\t\t// filter values caching\n\t\tif (isset($FILTERSETS) && array_key_exists($fielddef, $FILTERSETS) && empty($specialvalue)){\n\t\t\treturn $FILTERSETS[$fielddef];\n\t\t}\n\n\t\tif ($this->allow_filter_desaggregate($fielddef)){\n\t\t\t// try desagregate\n\t\t\t$sql = preg_replace('/MAX\\(([^\\(]+)\\)/si', '$1', $sql);\n\t\t\t$sql = preg_replace('/SUM\\((.*?)\\) AS/si', '$1 AS', $sql);\n\t\t\t$sql = preg_replace('/COUNT\\((?:DISTINCT)?([^\\(]+)\\)/si', '$1', $sql);\n\t\t\t// purge from unwanted clauses\n\t\t\tif (preg_match('/\\bGROUP BY\\b/si', $sql)){\n\t \t\t$sql = preg_replace('/GROUP BY.*(?!GROUP BY).*$/si', '', $sql);\n\t \t}\n\t\t\tif (preg_match('/\\bORDER BY\\b/si', $sql)){\n\t \t\t$sql = preg_replace('/ORDER BY.*?$/si', '', $sql);\n\t \t}\n\t }\n\n\t\t$filtersql = 'SELECT DISTINCT '.$fieldname.' FROM ( '.$sql.' ) as subreq ';\n\n\t\t$filtersql .= \" ORDER BY $fieldname \";\n \t$filtersql = $this->protect($filtersql);\n \tif (!empty($this->config->showfilterqueries)){\n \t\t$this->filterqueries = \"<div class=\\\"dashboard-filter-query\\\" style=\\\"padding:1px;border:1px solid #808080;margin:2px;font-size;0.75em;font-family:monospace\\\"><b>FILTER :</b> $filtersql</div>\";\n \t}\n\t\tif ($this->config->target == 'moodle'){\n\t\t\t$FILTERSET[$fielddef] = $DB->get_records_sql($filtersql);\n\t\t} else {\n\t\t\tif (!isediting() || !@$CFG->block_dashboard_enable_isediting_security){\n\t\t\t\t$FILTERSET[$fielddef] = extra_db_query($filtersql, false, true, $error);\n\t\t\t\tif ($error){\n\t\t\t\t\t$this->content->text .= $error;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$FILTERSET[$fielddef] = array();\n\t\t\t}\n\t\t}\n\t\tif (is_array($FILTERSET[$fielddef])){\n\t\t\tswitch ($specialvalue) {\n\t\t\t\tcase 'LAST' :\n\t\t\t\t\t$result = end(array_values($FILTERSET[$fielddef]))->$fieldname;\n\t\t\t\t\treturn (!empty($FILTERSET[$fielddef])) ? $result : false ;\n\t\t\t\tcase 'FIRST' :\n\t\t\t\t\t$result = reset(array_values($FILTERSET[$fielddef]))->$fieldname ;\n\t\t\t\t\treturn (!empty($FILTERSET[$fielddef])) ? $result : false ;\n\t\t\t\tdefault:\n\t\t\t\t\treturn $FILTERSET[$fielddef];\t\t\t\n\t\t\t}\n\t\t}\n }", "title": "" }, { "docid": "c64a9177f7af4f5bafdccc969f904532", "score": "0.564481", "text": "public function getQueryPartForAdditionalFields(array $fieldValues) {\n\t\t$queryForSet = '';\n\t\t$queryForExecute = '';\n\n\t\tforeach($this->additionalFields as $value) {\n\t\t\t$queryForSet .= ', @' . $value . ' = ' . $fieldValues[$value];\n\t\t\t$queryForExecute .= ', @' . $value;\n\t\t}\n\t\treturn array('set' => $queryForSet, 'execute' => $queryForExecute);\n\t}", "title": "" }, { "docid": "5f6c30618e9e836b0433b43365d3801c", "score": "0.56439376", "text": "public function getCustom()\n {\n return $this->getAll()->where('customfield', 'true');\n }", "title": "" }, { "docid": "e04f6af22ee6bd9133c059b57f44e43e", "score": "0.5642306", "text": "function slt_cf_manage_query_string( $query ) {\n\tglobal $wp, $slt_custom_fields;\n\n\t// Front-end and flag set?\n\tif ( ! is_admin() && $query->get( 'dcf_use_query_string' ) ) {\n\n\t\t// Get custom taxonomies in case we need to deal with them\n\t\t$custom_taxonomies = get_taxonomies( array( '_builtin' => false ) );\n\n\t\t// Init matching type for multiple values\n\t\t$matching = $query->get( 'dcf_query_string_matching' );\n\t\t$matching = ( $matching == 'exclusive' ) ? 'exclusive' : 'inclusive';\n\n\t\t// Go through the query vars already parsed by the main request, and add in\n\t\tforeach ( $wp->query_vars as $key => $value ) {\n\n\t\t\t// Ignore vars without a value\n\t\t\tif ( ! empty( $value ) ) {\n\n\t\t\t\t// Check if it's a custom field query var\n\t\t\t\tif ( in_array( $key, $slt_custom_fields['query_vars'] ) ) {\n\n\t\t\t\t\t// Get current meta query\n\t\t\t\t\t$current_meta_query = is_array( $query->get( 'meta_query' ) ) ? $query->get( 'meta_query' ) : array();\n\t\t\t\t\t$new_clauses = array();\n\n\t\t\t\t\t// Set up if this is the Simple Events date field\n\t\t\t\t\tif ( defined( 'SLT_SE_EVENT_DATE_FIELD' ) && $key == SLT_SE_EVENT_DATE_FIELD && defined( 'SLT_SE_EVENT_DATE_QUERY_VAR_FORMAT' ) && SLT_SE_EVENT_DATE_QUERY_VAR_FORMAT ) {\n\n\t\t\t\t\t\t// Decide on the from / to boundaries of the range being filtered for\n\t\t\t\t\t\tswitch ( SLT_SE_EVENT_DATE_QUERY_VAR_FORMAT ) {\n\t\t\t\t\t\t\tcase 'Y': {\n\t\t\t\t\t\t\t\t$from_date = $value . '/01/01';\n\t\t\t\t\t\t\t\t$to_date = $value . '/12/31';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcase 'mY': {\n\t\t\t\t\t\t\t\t$month = ( strlen( $value ) > 1 ) ? substr( $value, 0, 2 ) : '01';\n\t\t\t\t\t\t\t\t$year = ( strlen( $value ) > 5 ) ? substr( $value, 2, 4 ) : date( 'Y' );\n\t\t\t\t\t\t\t\t$from_date = $year . '/' . $month . '/01';\n\t\t\t\t\t\t\t\t$to_date = $year . '/' . $month . '/' . str_pad( cal_days_in_month( CAL_GREGORIAN, $month, $year ), 2, '0', STR_PAD_LEFT );\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// If Simple Events version doesn't have end date, or we don't have WP 4.1+, simple test\n\t\t\t\t\t\tif ( ! defined( 'SLT_SE_EVENT_END_DATE_FIELD' ) || version_compare( get_bloginfo( 'version' ), '4.1', '<' ) ) {\n\n\t\t\t\t\t\t\t$new_clauses[] = array(\n\t\t\t\t\t\t\t\t'key'\t\t=> slt_cf_field_key( $key ),\n\t\t\t\t\t\t\t\t'value'\t\t=> array(\n\t\t\t\t\t\t\t\t\t$from_date . ' 00:00',\n\t\t\t\t\t\t\t\t\t$to_date . ' 23:59'\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t'compare'\t=> 'BETWEEN',\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t// With end date involved, more complex tests\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t// Start date is in range\n\t\t\t\t\t\t\t// OR end date is in range\n\t\t\t\t\t\t\t// OR start date is before range AND end date is after range\n\t\t\t\t\t\t\t$new_clauses[] = array(\n\t\t\t\t\t\t\t\t'relation'\t\t=> 'OR',\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'key'\t\t=> slt_cf_field_key( SLT_SE_EVENT_DATE_FIELD ),\n\t\t\t\t\t\t\t\t\t'value'\t\t=> array(\n\t\t\t\t\t\t\t\t\t\t$from_date . ' 00:00',\n\t\t\t\t\t\t\t\t\t\t$to_date . ' 23:59'\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'compare'\t=> 'BETWEEN',\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'key'\t\t=> slt_cf_field_key( SLT_SE_EVENT_END_DATE_FIELD ),\n\t\t\t\t\t\t\t\t\t'value'\t\t=> array(\n\t\t\t\t\t\t\t\t\t\t$from_date . ' 00:00',\n\t\t\t\t\t\t\t\t\t\t$to_date . ' 23:59'\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t'compare'\t=> 'BETWEEN',\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'relation'\t\t=> 'AND',\n\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t'key'\t\t=> slt_cf_field_key( SLT_SE_EVENT_DATE_FIELD ),\n\t\t\t\t\t\t\t\t\t\t'value'\t\t=> $from_date . ' 00:00',\n\t\t\t\t\t\t\t\t\t\t'compare'\t=> '<',\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t'key'\t\t=> slt_cf_field_key( SLT_SE_EVENT_END_DATE_FIELD ),\n\t\t\t\t\t\t\t\t\t\t'value'\t\t=> $to_date . ' 23:59',\n\t\t\t\t\t\t\t\t\t\t'compare'\t=> '>',\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t} else if ( is_array( $value ) ) {\n\n\t\t\t\t\t\t// Add each item in array separately if exclusive matching\n\t\t\t\t\t\tif ( $matching == 'exclusive' ) {\n\n\t\t\t\t\t\t\tforeach ( $value as $value_item ) {\n\t\t\t\t\t\t\t\t$new_clauses[] = array(\n\t\t\t\t\t\t\t\t\t'key'\t\t=> slt_cf_field_key( $key ),\n\t\t\t\t\t\t\t\t\t'value'\t\t=> $value_item,\n\t\t\t\t\t\t\t\t\t'compare'\t=> '=',\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Or add item in with 'IN' comparison for inclusive matching\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t$new_clauses[] = array(\n\t\t\t\t\t\t\t\t'key'\t\t=> slt_cf_field_key( $key ),\n\t\t\t\t\t\t\t\t'value'\t\t=> $value,\n\t\t\t\t\t\t\t\t'compare'\t=> 'IN',\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t// Simple pass-through\n\t\t\t\t\t\t$new_clauses[] = array(\n\t\t\t\t\t\t\t'key'\t\t=> slt_cf_field_key( $key ),\n\t\t\t\t\t\t\t'value'\t\t=> $value,\n\t\t\t\t\t\t\t'compare'\t=> '=',\n\t\t\t\t\t\t);\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// Add clauses to meta_query\n\t\t\t\t\t$query->set( 'meta_query', array_merge( $current_meta_query, $new_clauses ) );\n\n\t\t\t\t// Handle taxonomies?\n\t\t\t\t} else if ( ! $query->get( 'dcf_custom_field_query_vars_only' ) ) {\n\n\t\t\t\t\t// Also deal with non-custom field query vars\n\t\t\t\t\tif ( in_array( $key, $custom_taxonomies ) ) {\n\n\t\t\t\t\t\t// Add to tax_query\n\t\t\t\t\t\t$query->set( 'tax_query', array_merge( $query->get( 'tax_query' ), array( array(\n\t\t\t\t\t\t\t'taxonomy'\t=> $key,\n\t\t\t\t\t\t\t'terms'\t\t=> $value,\n\t\t\t\t\t\t\t'operator'\t=> ( $matching == 'exclusive' ) ? 'AND' : 'IN'\n\t\t\t\t\t\t))));\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}", "title": "" }, { "docid": "bb1d5571ed642510e2ceda0540e4eded", "score": "0.56104344", "text": "public function query(CustomField $model)\n {\n return $model->newQuery();\n }", "title": "" }, { "docid": "2280edcc2cbc24502d0135f10c74e09f", "score": "0.5563967", "text": "function qw_get_post_meta($post, $field){\n return get_post_meta($post->ID, $field['meta_key'], true);\n}", "title": "" }, { "docid": "fccabd3a501bfae6194d63631de02653", "score": "0.5548356", "text": "public function getProductCustomFields($data = array()) {\n\t\t$result = $this->db->query(\"\n\t\t\tSELECT\n\t\t\t\tmspcf.product_id,\n\t\t\t\tmspcf.custom_field_id,\n\t\t\t\tmscfd.`name` as `custom_field_name`,\n\t\t\t\tmscfgd.`name` as `custom_field_group_name`,\n\t\t\t\tmspcf.`value`\n\t\t\tFROM `\" . DB_PREFIX . \"ms_product_custom_field` mspcf\n\t\t\tLEFT JOIN (SELECT custom_field_id, custom_field_group_id FROM `\" . DB_PREFIX . \"ms_custom_field`) mscf\n\t\t\t\tON (mscf.custom_field_id = mspcf.custom_field_id)\n\t\t\tLEFT JOIN (SELECT custom_field_id, `name` FROM `\" . DB_PREFIX . \"ms_custom_field_description` WHERE language_id = '\" . $this->config->get('config_language_id') . \"') mscfd\n\t\t\t\tON (mscfd.custom_field_id = mspcf.custom_field_id)\n\t\t\tLEFT JOIN (SELECT custom_field_group_id, `name` FROM `\" . DB_PREFIX . \"ms_custom_field_group_description` WHERE language_id = '\" . $this->config->get('config_language_id') . \"') mscfgd\n\t\t\t\tON (mscfgd.custom_field_group_id = mscf.custom_field_group_id)\n\t\t\tWHERE 1 = 1\"\n\t\t\t. (isset($data['product_id']) ? \" AND mspcf.product_id = \" . (int)$data['product_id'] : \"\")\n\t\t\t. (isset($data['custom_field_id']) ? \" AND mspcf.custom_field_id = \" . (int)$data['custom_field_id'] : \"\")\n\t\t\t. (isset($data['value']) ? \" AND mspcf.`value` LIKE '%\" . $this->db->escape($data['value']) . \"%'\" : \"\")\n\t\t);\n\n\t\treturn $result->rows;\n\t}", "title": "" }, { "docid": "37332a587595e07003c814f33943b4f7", "score": "0.5547936", "text": "function sw_get_related_appointmentsXXX($patient_id){\n\n $args = array(\n 'post_type' => 'sw_consulta',\n 'meta_key' => 'related_patient',\n 'posts_per_page' => -1,\n //'orderby' => 'meta_value_num',\n //'order' => 'ASC',\n 'meta_query' => array(\n array(\n 'key' => 'related_patient',\n 'value' => array($patient_id),\n 'compare' => 'IN',\n ),\n ),\n );\n $myquery = new WP_Query( $args );\n\n //returns a fucking array\n $related = wp_list_pluck( $myquery->posts, 'ID' );\n\n wp_reset_postdata(); //always reset the post data!\n \n //if want to return an array of id's\n return $related;\n //if want to return the query object\n //return $myquery;\n}", "title": "" }, { "docid": "bfc4de973ec10178341a760e3578c22d", "score": "0.55404645", "text": "public function acf_query_terms($args, $field, $post_id) {\n // This has been disabled as it blocks the normal select2 from working\n // it requires deeper under the hood work.\n // foreach ($this->props as $prop) {\n // if ($field['name'] === $prop['acf']) {\n // $args['search'] = $prop['search'];\n // break;\n // }\n // }\n return $args;\n }", "title": "" }, { "docid": "cb3bb5507b2e048fb55982ab6c6ef25e", "score": "0.5502056", "text": "public function getInfoByfield($field='',$fieldvalue=''){\n\t\t\t\t\n\t\t\t\t$page_Data= parent::select('*',$this->_tableName,\" AND \".$field.\"= '\".$fieldvalue.\"'\");\n\t\t\t\treturn($page_Data);\t\t\t\n\t\t}", "title": "" }, { "docid": "89a5bc9362f021221c4643319e81b752", "score": "0.54923004", "text": "static function GetCustomQuery($criteria)\r\n\t{\r\n\t\t$sql = \"select\r\n\t\t\t'custom value here...' as CustomFieldExample\r\n\t\t\t,`place_location`.`id` as Id\r\n\t\t\t,`place_location`.`complement` as Complement\r\n\t\t\t,`place_location`.`latituded` as Latituded\r\n\t\t\t,`place_location`.`local` as Local\r\n\t\t\t,`place_location`.`longitude` as Longitude\r\n\t\t\t,`place_location`.`number` as Number\r\n\t\t\t,`place_location`.`otherinformation` as Otherinformation\r\n\t\t\t,`place_location`.`street` as Street\r\n\t\t\t,`place_location`.`type` as Type\r\n\t\t\t,`place_location`.`zipcode` as Zipcode\r\n\t\t\t,`place_location`.`city` as City\r\n\t\t\t,`place_location`.`country` as Country\r\n\t\t\t,`place_location`.`institution` as Institution\r\n\t\t\t,`place_location`.`state` as State\r\n\t\tfrom `place_location`\";\r\n\r\n\t\t// the criteria can be used or you can write your own custom logic.\r\n\t\t// be sure to escape any user input with $criteria->Escape()\r\n\t\t$sql .= $criteria->GetWhere();\r\n\t\t$sql .= $criteria->GetOrder();\r\n\r\n\t\treturn $sql;\r\n\t}", "title": "" }, { "docid": "d72ed36a826c1e60ddbda8878da21e4f", "score": "0.5465976", "text": "public function query() {\n if (!empty($this->value)) {\n $this->query->where['conditions'][$this->realField] = $this->value;\n }\n }", "title": "" }, { "docid": "c24eba86eba00d48eca2758c1eb40cd3", "score": "0.54584336", "text": "public function getMltQueryFields () {}", "title": "" }, { "docid": "0aa79479fcf7059d7c4e6f768857ca10", "score": "0.54567444", "text": "function acf_get_option_meta( $prefix = '' ) {\n\t\n\t// global\n\tglobal $wpdb;\n\t\n\t// vars\n\t$meta = array();\n\t$search = \"{$prefix}_%\";\n\t$_search = \"_{$prefix}_%\";\n\t\n\t// escape underscores\n\t$search = str_replace('_', '\\_', $search);\n\t$_search = str_replace('_', '\\_', $_search);\n\t\n\t// query\n\t$rows = $wpdb->get_results($wpdb->prepare(\n\t\t\"SELECT * \n\t\tFROM $wpdb->options \n\t\tWHERE option_name LIKE %s \n\t\tOR option_name LIKE %s\",\n\t\t$search,\n\t\t$_search \n\t), ARRAY_A);\n\t\n\t// loop\n\t$len = strlen(\"{$prefix}_\");\n\tforeach( $rows as $row ) {\n\t\t$meta[ substr($row['option_name'], $len) ][] = $row['option_value'];\n\t}\n\t\n\t// return unserialized\n\treturn array_map('maybe_unserialize', $meta);\n}", "title": "" }, { "docid": "8aad40ee6a98b1a6e0f2e23d1472142e", "score": "0.5451787", "text": "public static function query_field( $field, $q, $pod = null, &$params = null ) {\n\n\t\tglobal $wpdb;\n\n\t\t$simple_tableless_objects = PodsForm::simple_tableless_objects();\n\n\t\t$field_query = null;\n\n\t\t// Plain queries.\n\t\tif ( is_numeric( $field ) && ! is_array( $q ) ) {\n\t\t\treturn $q;\n\t\t} elseif ( ! is_numeric( $field ) && ( ! is_array( $q ) || ! isset( $q['key'], $q['field'] ) ) ) {\n\t\t\t$new_q = array(\n\t\t\t\t'field' => $field,\n\t\t\t\t'compare' => pods_v( 'compare', $q, '=', true ),\n\t\t\t\t'value' => pods_v( 'value', $q, $q, true ),\n\t\t\t\t'sanitize' => pods_v( 'sanitize', $q, true ),\n\t\t\t\t'sanitize_format' => pods_v( 'sanitize_format', $q ),\n\t\t\t\t'cast' => pods_v( 'cast', $q ),\n\t\t\t);\n\n\t\t\tif ( is_array( $new_q['value'] ) ) {\n\t\t\t\tif ( '=' === $new_q['compare'] ) {\n\t\t\t\t\t$new_q['compare'] = 'IN';\n\t\t\t\t}\n\n\t\t\t\tif ( isset( $new_q['value']['compare'] ) ) {\n\t\t\t\t\tunset( $new_q['value']['compare'] );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$q = $new_q;\n\t\t}//end if\n\n\t\t$field_name = trim( pods_v( 'field', $q, pods_v( 'key', $q, $field, true ), true ) );\n\t\t$field_type = strtoupper( trim( pods_v( 'type', $q, 'CHAR', true ) ) );\n\t\t$field_value = pods_v( 'value', $q );\n\n\t\t$field_compare = '=';\n\n\t\tif ( is_array( $field_value ) ) {\n\t\t\t$field_compare = 'IN';\n\t\t}\n\n\t\t$field_compare = strtoupper( trim( pods_v( 'compare', $q, $field_compare, true ) ) );\n\t\t$field_sanitize = (boolean) pods_v( 'sanitize', $q, true );\n\t\t$field_sanitize_format = pods_v( 'sanitize_format', $q, null, true );\n\t\t$field_cast = pods_v( 'cast', $q, null, true );\n\n\t\tif ( is_object( $params ) ) {\n\t\t\t$params->meta_query_syntax = true;\n\t\t\t$params->query_fields[] = $field_name;\n\t\t}\n\n\t\t// Deprecated WP type.\n\t\tif ( 'NUMERIC' === $field_type ) {\n\t\t\t$field_type = 'SIGNED';\n\t\t} elseif ( ! in_array(\n\t\t\t$field_type, array(\n\t\t\t\t'BINARY',\n\t\t\t\t'CHAR',\n\t\t\t\t'DATE',\n\t\t\t\t'DATETIME',\n\t\t\t\t'DECIMAL',\n\t\t\t\t'SIGNED',\n\t\t\t\t'TIME',\n\t\t\t\t'UNSIGNED',\n\t\t\t), true\n\t\t) ) {\n\t\t\t$field_type = 'CHAR';\n\t\t}\n\n\t\t// Alias / Casting.\n\t\tif ( empty( $field_cast ) ) {\n\t\t\t// Setup field casting from field name.\n\t\t\tif ( false === strpos( $field_name, '`' ) && false === strpos( $field_name, '(' ) && false === strpos( $field_name, ' ' ) ) {\n\t\t\t\t// Handle field naming if Pod-based.\n\t\t\t\tif ( ! empty( $pod ) && false === strpos( $field_name, '.' ) ) {\n\t\t\t\t\t$field_cast = '';\n\n\t\t\t\t\t$tableless_field_types = PodsForm::tableless_field_types();\n\n\t\t\t\t\tif ( isset( $pod['fields'][ $field_name ] ) && in_array( $pod['fields'][ $field_name ]['type'], $tableless_field_types, true ) ) {\n\t\t\t\t\t\tif ( in_array( $pod['fields'][ $field_name ]['pick_object'], $simple_tableless_objects, true ) ) {\n\t\t\t\t\t\t\tif ( 'meta' === $pod['storage'] ) {\n\t\t\t\t\t\t\t\t$field_cast = \"`{$field_name}`.`meta_value`\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$field_cast = \"`t`.`{$field_name}`\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$table = pods_api()->get_table_info( $pod['fields'][ $field_name ]['pick_object'], $pod['fields'][ $field_name ]['pick_val'] );\n\n\t\t\t\t\t\t\tif ( ! empty( $table ) ) {\n\t\t\t\t\t\t\t\t$field_cast = \"`{$field_name}`.`\" . $table['field_index'] . '`';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( empty( $field_cast ) ) {\n\t\t\t\t\t\tif ( ! in_array(\n\t\t\t\t\t\t\t$pod['type'], array(\n\t\t\t\t\t\t\t\t'pod',\n\t\t\t\t\t\t\t\t'table',\n\t\t\t\t\t\t\t), true\n\t\t\t\t\t\t) ) {\n\t\t\t\t\t\t\tif ( isset( $pod['object_fields'][ $field_name ] ) ) {\n\t\t\t\t\t\t\t\t$field_cast = \"`t`.`{$field_name}`\";\n\t\t\t\t\t\t\t} elseif ( isset( $pod['fields'][ $field_name ] ) ) {\n\t\t\t\t\t\t\t\tif ( 'meta' === $pod['storage'] ) {\n\t\t\t\t\t\t\t\t\t$field_cast = \"`{$field_name}`.`meta_value`\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t$field_cast = \"`d`.`{$field_name}`\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tforeach ( $pod['object_fields'] as $object_field => $object_field_opt ) {\n\t\t\t\t\t\t\t\t\tif ( $object_field === $field_name || in_array( $field_name, $object_field_opt['alias'], true ) ) {\n\t\t\t\t\t\t\t\t\t\t$field_cast = \"`t`.`{$object_field}`\";\n\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} elseif ( isset( $pod['fields'][ $field_name ] ) ) {\n\t\t\t\t\t\t\tif ( 'meta' === $pod['storage'] ) {\n\t\t\t\t\t\t\t\t$field_cast = \"`{$field_name}`.`meta_value`\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$field_cast = \"`t`.`{$field_name}`\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}//end if\n\n\t\t\t\t\t\tif ( empty( $field_cast ) ) {\n\t\t\t\t\t\t\tif ( 'meta' === $pod['storage'] ) {\n\t\t\t\t\t\t\t\t$field_cast = \"`{$field_name}`.`meta_value`\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$field_cast = \"`t`.`{$field_name}`\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}//end if\n\t\t\t\t} else {\n\t\t\t\t\t$field_cast = '`' . str_replace( '.', '`.`', $field_name ) . '`';\n\t\t\t\t}//end if\n\t\t\t} else {\n\t\t\t\t$field_cast = $field_name;\n\t\t\t}//end if\n\n\t\t\t// Cast field if needed.\n\t\t\tif ( 'CHAR' !== $field_type ) {\n\t\t\t\t$field_cast = 'CAST( ' . $field_cast . ' AS ' . $field_type . ' )';\n\t\t\t}\n\t\t}//end if\n\n\t\t// Setup string sanitizing for $wpdb->prepare().\n\t\tif ( empty( $field_sanitize_format ) ) {\n\t\t\t// Sanitize as string.\n\t\t\t$field_sanitize_format = '%s';\n\n\t\t\t// Sanitize as integer if needed.\n\t\t\tif ( in_array( $field_type, array( 'UNSIGNED', 'SIGNED' ), true ) ) {\n\t\t\t\t$field_sanitize_format = '%d';\n\t\t\t}\n\t\t}\n\n\t\t// Restrict to supported comparisons.\n\t\tif ( ! in_array(\n\t\t\t$field_compare, array(\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'<',\n\t\t\t\t'<=',\n\t\t\t\t'LIKE',\n\t\t\t\t'NOT LIKE',\n\t\t\t\t'IN',\n\t\t\t\t'NOT IN',\n\t\t\t\t'ALL',\n\t\t\t\t'BETWEEN',\n\t\t\t\t'NOT BETWEEN',\n\t\t\t\t'EXISTS',\n\t\t\t\t'NOT EXISTS',\n\t\t\t\t'REGEXP',\n\t\t\t\t'NOT REGEXP',\n\t\t\t\t'RLIKE',\n\t\t\t), true\n\t\t) ) {\n\t\t\t$field_compare = '=';\n\t\t}\n\n\t\t// Restrict to supported array comparisons.\n\t\tif ( is_array( $field_value ) && ! in_array(\n\t\t\t$field_compare, array(\n\t\t\t\t'IN',\n\t\t\t\t'NOT IN',\n\t\t\t\t'ALL',\n\t\t\t\t'BETWEEN',\n\t\t\t\t'NOT BETWEEN',\n\t\t\t), true\n\t\t) ) {\n\t\t\tif ( in_array(\n\t\t\t\t$field_compare, array(\n\t\t\t\t\t'!=',\n\t\t\t\t\t'NOT LIKE',\n\t\t\t\t), true\n\t\t\t) ) {\n\t\t\t\t$field_compare = 'NOT IN';\n\t\t\t} else {\n\t\t\t\t$field_compare = 'IN';\n\t\t\t}\n\t\t} elseif ( ! is_array( $field_value ) && in_array(\n\t\t\t$field_compare, array(\n\t\t\t\t'IN',\n\t\t\t\t'NOT IN',\n\t\t\t\t'ALL',\n\t\t\t\t'BETWEEN',\n\t\t\t\t'NOT BETWEEN',\n\t\t\t), true\n\t\t) ) {\n\t\t\t$check_value = preg_split( '/[,\\s]+/', $field_value );\n\n\t\t\tif ( 1 < count( $check_value ) ) {\n\t\t\t\t$field_value = $check_value;\n\t\t\t} elseif ( in_array(\n\t\t\t\t$field_compare, array(\n\t\t\t\t\t'NOT IN',\n\t\t\t\t\t'NOT BETWEEN',\n\t\t\t\t), true\n\t\t\t) ) {\n\t\t\t\t$field_compare = '!=';\n\t\t\t} else {\n\t\t\t\t$field_compare = '=';\n\t\t\t}\n\t\t}//end if\n\n\t\t// Restrict to two values, force = and != if only one value provided.\n\t\tif ( in_array(\n\t\t\t$field_compare, array(\n\t\t\t\t'BETWEEN',\n\t\t\t\t'NOT BETWEEN',\n\t\t\t), true\n\t\t) ) {\n\t\t\t$field_value = array_values( array_slice( $field_value, 0, 2 ) );\n\n\t\t\tif ( 1 === count( $field_value ) ) {\n\t\t\t\tif ( 'NOT IN' === $field_compare ) {\n\t\t\t\t\t$field_compare = '!=';\n\t\t\t\t} else {\n\t\t\t\t\t$field_compare = '=';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Single array handling.\n\t\tif ( 1 === count( (array) $field_value ) && 'ALL' === $field_compare ) {\n\t\t\t$field_compare = '=';\n\t\t} elseif ( empty( $field_value ) && in_array(\n\t\t\t$field_compare, array(\n\t\t\t\t'IN',\n\t\t\t\t'NOT IN',\n\t\t\t\t'BETWEEN',\n\t\t\t\t'NOT BETWEEN',\n\t\t\t), true\n\t\t) ) {\n\t\t\t$field_compare = 'EXISTS';\n\t\t}\n\n\t\t// Rebuild $q.\n\t\t$q = array(\n\t\t\t'field' => $field_name,\n\t\t\t'type' => $field_type,\n\t\t\t'value' => $field_value,\n\t\t\t'compare' => $field_compare,\n\t\t\t'sanitize' => $field_sanitize,\n\t\t\t'sanitize_format' => $field_sanitize_format,\n\t\t\t'cast' => $field_cast,\n\t\t);\n\n\t\t// Make the query.\n\t\tif ( in_array(\n\t\t\t$field_compare, array(\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'<',\n\t\t\t\t'<=',\n\t\t\t\t'REGEXP',\n\t\t\t\t'NOT REGEXP',\n\t\t\t\t'RLIKE',\n\t\t\t), true\n\t\t) ) {\n\t\t\tif ( $field_sanitize ) {\n\t\t\t\t$field_query = $wpdb->prepare( $field_cast . ' ' . $field_compare . ' ' . $field_sanitize_format, $field_value );\n\t\t\t} else {\n\t\t\t\t$field_query = $field_cast . ' ' . $field_compare . ' \"' . $field_value . '\"';\n\t\t\t}\n\t\t} elseif ( in_array(\n\t\t\t$field_compare, array(\n\t\t\t\t'LIKE',\n\t\t\t\t'NOT LIKE',\n\t\t\t), true\n\t\t) ) {\n\t\t\tif ( $field_sanitize ) {\n\t\t\t\t$field_query = $field_cast . ' ' . $field_compare . ' \"%' . pods_sanitize_like( $field_value ) . '%\"';\n\t\t\t} else {\n\t\t\t\t$field_query = $field_cast . ' ' . $field_compare . ' \"' . $field_value . '\"';\n\t\t\t}\n\t\t} elseif ( in_array(\n\t\t\t$field_compare, array(\n\t\t\t\t'IN',\n\t\t\t\t'NOT IN',\n\t\t\t\t'ALL',\n\t\t\t), true\n\t\t) ) {\n\t\t\tif ( 'ALL' === $field_compare ) {\n\t\t\t\t$field_compare = 'IN';\n\n\t\t\t\tif ( ! empty( $pod ) ) {\n\t\t\t\t\t$params->having[] = 'COUNT( DISTINCT ' . $field_cast . ' ) = ' . count( $field_value );\n\n\t\t\t\t\tif ( empty( $params->groupby ) || ( ! in_array( '`t`.`' . $pod['field_id'] . '`', $params->groupby, true ) && ! in_array( 't.' . $pod['field_id'] . '', $params->groupby, true ) ) ) {\n\t\t\t\t\t\t$params->groupby[] = '`t`.`' . $pod['field_id'] . '`';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( $field_sanitize ) {\n\t\t\t\t$field_query = $wpdb->prepare( $field_cast . ' ' . $field_compare . ' ( ' . substr( str_repeat( ', ' . $field_sanitize_format, count( $field_value ) ), 1 ) . ' )', $field_value );\n\t\t\t} else {\n\t\t\t\t$field_query = $field_cast . ' ' . $field_compare . ' ( \"' . implode( '\", \"', $field_value ) . '\" )';\n\t\t\t}\n\t\t} elseif ( in_array(\n\t\t\t$field_compare, array(\n\t\t\t\t'BETWEEN',\n\t\t\t\t'NOT BETWEEN',\n\t\t\t), true\n\t\t) ) {\n\t\t\tif ( $field_sanitize ) {\n\t\t\t\t$field_query = $wpdb->prepare( $field_cast . ' ' . $field_compare . ' ' . $field_sanitize_format . ' AND ' . $field_sanitize_format, $field_value );\n\t\t\t} else {\n\t\t\t\t$field_query = $field_cast . ' ' . $field_compare . ' \"' . $field_value[0] . '\" AND \"' . $field_value[1] . '\"';\n\t\t\t}\n\t\t} elseif ( 'EXISTS' === $field_compare ) {\n\t\t\t$field_query = $field_cast . ' IS NOT NULL';\n\t\t} elseif ( 'NOT EXISTS' === $field_compare ) {\n\t\t\t$field_query = $field_cast . ' IS NULL';\n\t\t}//end if\n\n\t\t$field_query = apply_filters( 'pods_data_field_query', $field_query, $q );\n\n\t\treturn $field_query;\n\t}", "title": "" }, { "docid": "050becd098e8ae059e68bc4019f10ca3", "score": "0.54466844", "text": "public function query() {\n $this->field_alias = $this->real_field;\n }", "title": "" }, { "docid": "050becd098e8ae059e68bc4019f10ca3", "score": "0.54466844", "text": "public function query() {\n $this->field_alias = $this->real_field;\n }", "title": "" }, { "docid": "b6ac5d898a916b051897b62068becab8", "score": "0.54345816", "text": "function getMetaValue( xPDOObject $obj){\n $rows = array();\n foreach( $this->_fields as $key => $column){\n if ( $column instanceof self){\n $fk = $obj->getFKDefinition( $key);\n if ($fk['cardinality'] == 'many')\n $relateds = $obj->getMany( $key);\n else $relateds = array( $obj->getOne( $key));\n foreach ($relateds as $related){\n $rows = array_merge_recursive($rows, $column->getMetaValue( $related));\n }\n }\n else{\n $rows [$key]= $obj->get($column->getColumn());\n }\n }\n return $rows;\n }", "title": "" }, { "docid": "bac3b7dc5f8c8afd43f976c993f75706", "score": "0.5424593", "text": "function etheme_get_query_custom_field($field){\n\t$page = get_query_var('et_page-id', array( 'id' => 0, 'type' => 'page' ));\n\t$page_id = ( isset( $page['id'] ) ) ? $page['id'] : false;\n\n\tif ( $page_id ) {\n\t\t$field = etheme_get_custom_field($field, $page_id);\n\t}else{\n\t\t$field = false;\n\t}\n\n\treturn $field;\n}", "title": "" }, { "docid": "fa2b9917b4100a3de17af91a28e3b353", "score": "0.54167247", "text": "public function getCustomFields();", "title": "" }, { "docid": "a2cc940dd7cd058780aa28bbdb81f5b0", "score": "0.54060847", "text": "function dynamic_field_values ( $tag, $unused ) {\n\n if ( $tag['name'] != 'products' )\n return $tag;\n\n $args = array (\n 'numberposts' => -1,\n 'post_type' => 'products',\n 'orderby' => 'title',\n 'order' => 'ASC',\n );\n\n $custom_posts = get_posts($args);\n\n if ( ! $custom_posts )\n return $tag;\n\n foreach ( $custom_posts as $custom_post ) {\n\n $tag['raw_values'][] = $custom_post->post_title;\n $tag['values'][] = $custom_post->post_title;\n $tag['labels'][] = $custom_post->post_title;\n\n }\n\n return $tag;\n\n}", "title": "" }, { "docid": "8b0ac2932bb6dec4992e601023d6993a", "score": "0.5403427", "text": "function wpcf_api_repetitive_get_meta( $post, $field ) {\n global $wpcf;\n $wpcf->repeater->set( $post, $field );\n return $wpcf->repeater->_get_meta();\n}", "title": "" }, { "docid": "6316b8d23f982cdc7e0b756786a8b6dd", "score": "0.5402497", "text": "function get_custom_fields()\n{\n\t$query_string =\n\t\t\"SELECT DISTINCT doctor FROM specimen WHERE doctor!=''\";\n\t$resultset = query_associative_all($query_string);\n\t$retval = array();\n\tforeach($resultset as $record)\n\t{\n\n\t\t$retval[] = $record;\n\t}\n\n\treturn $retval;\n}", "title": "" }, { "docid": "8bb93a48d85d17df105582814797d8dd", "score": "0.54014486", "text": "public function query($query, $default = null)\n {\n $query = str_replace('*', '%', $query);\n $meta = $this->metaModel::where('key', 'LIKE', $query)->get(['key', 'value', 'type']);\n\n if ($meta->isEmpty()) {\n return $default;\n }\n\n $data = [];\n foreach ($meta as $m) {\n $data[$m->key] = $m->value;\n }\n\n return $data;\n }", "title": "" }, { "docid": "c280a41dda27b402606ff044926d9759", "score": "0.53975743", "text": "function quote_mgt_posts_where_by_meta( $where ) {\r\n if( is_admin() ) {\r\n global $wpdb;\r\n if ( isset( $_GET['post_type'] ) && ( $_GET['post_type'] == 'quote' ) && isset($_GET['s']) ) {\r\n $thought_behind_quote = esc_html( $_GET['s'] );\r\n\r\n $where .= \" OR ID IN (SELECT post_id FROM \" . $wpdb->postmeta .\" WHERE meta_key='_cmb_thought_behind_quote' AND meta_value LIKE '%\". $thought_behind_quote .\"%' )\";\r\n\r\n }\r\n }\r\n return $where;\r\n}", "title": "" }, { "docid": "08ec6df5a38addb5ffe1f0a44e7b55ed", "score": "0.5397331", "text": "function yourprefix_group_alt_data_demo_override_meta_value( $data, $object_id, $args, $field ) {\n\t// If from a custom table, you can use the $object_id to query against.\n\treturn get_option( 'yourprefix_group_alt_data_demo', array() );\n}", "title": "" }, { "docid": "01bd402eb1935cd83f27d3d076b27837", "score": "0.5393098", "text": "function get_custom_fields_patient()\n{\n\t$query_string =\n\t\t\"SELECT * FROM patient_custom_field\";\n\t$resultset = query_associative_all($query_string);\n\t$retval = array();\n\tforeach($resultset as $record)\n\t{\n\t\t$custom_field = CustomField::getObject($record);\n\t\t$retval[] = $custom_field;\n\t}\n\treturn $retval;\n}", "title": "" }, { "docid": "c12c378de16628da7d0850f8cbad587c", "score": "0.537577", "text": "public static function get_object_ids($field, $is_query = false)\n {\n global $wpdb;\n\n if (!$field['object_id'])\n {\n return null;\n }\n\n $scope = strpos($field['scope'], '_meta') ? strstr($field['scope'], '_meta', true) : $field['scope'];\n\n $meta_key = '_' . piklist::$prefix . 'relate_' . $scope;\n\n $field_ids = is_array($field['object_id']) ? implode(', ', $field['object_id']) : $field['object_id'];\n $not_field_ids = $scope == $field['relate']['scope'] ? $field_ids : '-1';\n\n $object_ids = null;\n\n switch ($field['relate']['scope'])\n {\n case 'post':\n case 'post_meta':\n\n $query = $wpdb->prepare(\"\n SELECT DISTINCT $wpdb->postmeta.post_id\n FROM $wpdb->posts, $wpdb->postmeta\n WHERE $wpdb->postmeta.meta_key = %s\n AND $wpdb->postmeta.meta_value IN ($field_ids)\n AND $wpdb->postmeta.post_id NOT IN ($not_field_ids)\n AND $wpdb->posts.ID = $wpdb->postmeta.post_id\n AND $wpdb->posts.post_type != %s\n AND $wpdb->posts.post_type != %s\n \", $meta_key, 'revision', 'trash');\n\n $object_ids = $wpdb->get_col($query);\n\n if (isset($field['relate']['query']) && $object_ids)\n {\n $relate_query = $field['relate']['query'];\n $relate_query['post__in'] = $object_ids;\n\n $query = new WP_Query($relate_query);\n\n $object_ids = piklist($query->posts, array('ID'));\n }\n\n break;\n\n case 'user':\n case 'user_meta':\n\n $query = $wpdb->prepare(\"\n SELECT DISTINCT $wpdb->usermeta.user_id\n FROM $wpdb->users, $wpdb->usermeta\n WHERE $wpdb->usermeta.meta_key = %s\n AND $wpdb->usermeta.meta_value IN ($field_ids)\n AND $wpdb->usermeta.user_id NOT IN ($not_field_ids)\n AND $wpdb->users.ID = $wpdb->usermeta.user_id\n \", $meta_key);\n\n $object_ids = $wpdb->get_col($query);\n\n if (isset($field['relate']['query']) && $object_ids)\n {\n $relate_query = $field['relate']['query'];\n $relate_query['include'] = $object_ids;\n\n $query = new WP_User_Query($relate_query);\n\n $object_ids = piklist($query->results, array('ID'));\n }\n\n break;\n\n case 'comment':\n case 'comment_meta':\n\n $query = $wpdb->prepare(\"\n SELECT DISTINCT $wpdb->commentmeta.comment_id\n FROM $wpdb->comments, $wpdb->commentmeta\n WHERE $wpdb->commentmeta.meta_key = %s\n AND $wpdb->commentmeta.meta_value IN ($field_ids)\n AND $wpdb->commentmeta.comment_id NOT IN ($not_field_ids)\n AND $wpdb->comments.comment_ID = $wpdb->commentmeta.comment_id\n \", $meta_key);\n\n $object_ids = $wpdb->get_col($query);\n\n if (isset($field['relate']['query']) && $object_ids)\n {\n $relate_query = $field['relate']['query'];\n\n $query = new WP_Comment_Query($field['relate']['query']);\n\n $_object_ids = array();\n\n foreach ($query->comments as $comment)\n {\n if (in_array($comment->ID, $object_ids))\n {\n array_push($_object_ids, $comment->ID);\n }\n }\n\n $object_ids = $_object_ids;\n }\n\n break;\n }\n\n if (!$is_query && $object_ids && is_array($object_ids) && count($object_ids) == 1)\n {\n $object_ids = current($object_ids);\n }\n\n return $object_ids ? $object_ids : null;\n }", "title": "" }, { "docid": "3348f9f7048d70a86045bb36c8834694", "score": "0.5371586", "text": "public function RB_hide_from_query( $meta_query, $query ) {\n if( is_shop() || is_category() ) {\n\n \t $meta_query[] = array(\n \t\t 'relation' => 'OR',\n \t\t array(\n \t\t 'key' => $this->chfield_id,\n \t\t 'value' => 'yes',\n \t\t 'compare' => '!='\n \t\t ),\n \t\t array(\n \t\t 'key' => $this->chfield_id,\n \t\t 'compare' => 'NOT EXISTS',\n \t\t ),\n\n \t );\n }\n\t return $meta_query;\n\n }", "title": "" }, { "docid": "10dd0cf738f3ab0f29d2a3803c22a515", "score": "0.5350783", "text": "function getCustomFieldsValues($customFields = null, $request = null)\n{\n\n if (!$customFields) {\n return [];\n }\n if (!$request) {\n return [];\n }\n $customFieldsValues = [];\n foreach ($customFields as $cf) {\n $value = $request->input($cf->name);\n $view = $value;\n $fieldType = $cf->type;\n if ($fieldType === 'selects') {\n $view = GeneratorFieldsInputUtil::prepareKeyValueArrFromLabelValueStr($cf->values);\n $view = array_filter($view, function ($v) use ($value) {\n return in_array($v, $value);\n });\n $view = implode(', ', array_flip($view));\n $value = json_encode($value);\n } elseif ($fieldType === 'select' || $fieldType === 'radio') {\n $view = GeneratorFieldsInputUtil::prepareKeyValueArrFromLabelValueStr($cf->values);\n $view = array_flip($view)[$value];\n } elseif ($fieldType === 'boolean') {\n $view = getBooleanColumn(['0' => $view], '0');\n\n } elseif ($fieldType === 'password') {\n $view = str_repeat('•', strlen($value));\n $value = bcrypt($value);\n } elseif ($fieldType === 'date') {\n $view = getDateColumn(['date' => $view], 'date');\n } elseif ($fieldType === 'email') {\n $view = getEmailColumn(['email' => $view], 'email');\n } elseif ($fieldType === 'textarea') {\n $view = strip_tags($view);\n }\n\n\n $customFieldsValues[] = [\n 'custom_field_id' => $cf->id,\n 'value' => $value,\n 'view' => $view\n ];\n }\n\n return $customFieldsValues;\n}", "title": "" }, { "docid": "61b08c880cdb1eea8eb0e3b0f92e7955", "score": "0.53492475", "text": "public function process_legacy_meta_query( $query ) {\n\t\tif( ! $query instanceof WP_Query ) {\n\t\t\t// Something weird is happening.\n\t\t\treturn;\n\t\t}\n\n\t\t$this->maybe_process_meta_value( $query );\n\t\t$this->maybe_process_meta_query( $query );\n\t}", "title": "" }, { "docid": "2482e963a7a07ba6e0814855a20bc58a", "score": "0.53375953", "text": "public function getMetaByMultiple($meta_data)\n\t{\n\t\t$where = array();\n\t\tif(isset($meta_data['me_id'])){\n\t\t\t$where['me_id'] = $meta_data['me_id'];\n\t\t}\n\t\tif(isset($meta_data['rec_id'])){\n\t\t\t$where['rec_id'] = $meta_data['rec_id'];\n\t\t}\n\t\tif(isset($meta_data['rec_type'])){\n\t\t\t$where['rec_type'] = $meta_data['rec_type'];\n\t\t}\n\t\tif(isset($meta_data['me_key'])){\n\t\t\t$where['me_key'] = $meta_data['me_key'];\n\t\t}\n\t\treturn \\ORM::for_table($this->table)->where($where)->find_one();\n\t}", "title": "" }, { "docid": "dd023729796fbf5eaaea458e079cefae", "score": "0.53357446", "text": "function ng_rest_post_query( $args ) {\n\t$order_by_acf = $_GET['orderby_acf'];\n\n\tif ( ! empty( $order_by_acf ) ) {\n\n\t\t$args['meta_query'] = array(\n\t\t\tarray(\n\t\t\t\t'key' => esc_sql( $order_by_acf ),\n\t\t\t)\n\t\t);\n\n\t\t$args['orderby'] = esc_sql( $order_by_acf );\n\t}\n\n\treturn $args;\n}", "title": "" }, { "docid": "297658d944c9e4f026e76855ca49ea54", "score": "0.5333177", "text": "function get_custom_fields_specimen()\n{\n\t$query_string =\n\t\t\"SELECT * FROM specimen_custom_field\";\n\t$resultset = query_associative_all($query_string);\n\t$retval = array();\n\tforeach($resultset as $record)\n\t{\n\t\t$custom_field = CustomField::getObject($record);\n\t\t$retval[] = $custom_field;\n\t}\n\treturn $retval;\n}", "title": "" }, { "docid": "9fc90069df3a9b59b3e24a9243d5c813", "score": "0.53227603", "text": "function acf_get_value($post_id, $field)\n{\n}", "title": "" }, { "docid": "edd329ece39eecf3901e5fb544eab305", "score": "0.5319476", "text": "function get_sql_filter($data) {\n global $CFG;\n\n $full_fieldname = $this->get_full_fieldname();\n $sql = \"{$full_fieldname} = {$data['value']}\";\n\n return $sql;\n }", "title": "" }, { "docid": "3da757b390c7c8b03c95a7a2f9bef620", "score": "0.5296284", "text": "protected function init_customfield_data() {\n global $DB;\n\n if (!empty($this->customfield_data)) {\n return true;\n }\n\n $fieldids = array();\n foreach ($this->enabled_fields as $field => $name) {\n if (strpos($field, 'field_') === 0) {\n $fieldid = substr($field, strlen('field_'));\n if (is_numeric($fieldid)) {\n $fieldids[] = $fieldid;\n }\n }\n }\n\n if (!empty($fieldids)) {\n $select = 'id IN ('.implode(',', array_fill(0, count($fieldids), '?')).')';\n $this->customfield_data = $DB->get_records_select(field::TABLE, $select, $fieldids);\n }\n\n foreach ($this->customfield_data as $fieldid => $record) {\n $field = new field($record);\n $multivaluestatus = $this->init_multivalue_status_for_field($record->id, $record->multivalued);\n\n // Add joins and select entries, if field is enabled.\n if (isset($this->enabled_fields['field_'.$fieldid])) {\n if ($multivaluestatus === static::MULTIVALUE_NONE) {\n // Extra columns we'll need to display profile field values.\n $this->sql_select[] = \"custom_data_{$field->id}.data AS custom_field_{$field->id}\";\n\n // Extra joins we'll need to display profile field values.\n $field_data_table = \"field_data_\".$field->data_type();\n $this->sql_joins[] = \"LEFT JOIN {\".$field_data_table::TABLE.\"} custom_data_{$field->id}\n ON custom_data_{$field->id}.fieldid = {$field->id}\n AND \".static::FIELDSET_NAME.\"_ctx.id = custom_data_{$field->id}.contextid\n AND custom_data_{$field->id}.contextid IS NOT NULL\";\n } else {\n // Extra columns we'll need to display profile field values.\n $this->sql_select[] = \"'' AS custom_field_{$field->id}\";\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "9f58ba5c7aa58882dda2772999d0795b", "score": "0.52913326", "text": "function\tget_field_filter($obj_table_name, $field_name, $field_type, $field_values, $field_data, $sql_type='mssql')\n{\n if (count($field_values)<1 && $field_type!='In')\n return '';\n\n //Define escape characters, based on the sql type.\n $escape_chars = get_escape_chars($sql_type);\n\n //Find out if this field contains a concatenated value in the object_field_list_data_field field.\n $object_field_list_data_field = get_field_value($field_name, 'object_field_list_data_field', $field_data);\n $is_data_concatenated = field_is_concatenated($object_field_list_data_field, $sql_type);\n\n if ($is_data_concatenated)\n {\n //The developer has manually described this field. Don't alter it.\n $full_field_name = $object_field_list_data_field;\n }\n else\n {\n //Escape the field name, to avoid sql errors with key words.\n $full_field_name = $escape_chars[0].$field_name.$escape_chars[1];\n\n //Identify to which table each field belongs, so SQL statements don't break with errors about ambiguous column names.\n if ($sql_type == 'iseries')\n $obj_table_name = '';\n else\n $obj_table_name = $escape_chars[0].$obj_table_name.$escape_chars[1].'.';\n\n //Escape the field name, to avoid sql errors with key words.\n $full_field_name = $obj_table_name.$escape_chars[0].$field_name.$escape_chars[1];\n\n //If this is a virtual field, filter by the foreign table and field.\n if ( is_virtual_field($field_name,$field_data) )\n {\n $table_name = get_field_value($field_name, 'object_field_list_table_alias', $field_data);\n $foreign_field_name = get_field_value($field_name, 'object_field_list_data_field', $field_data);\n\n if (($table_name!='') && ($foreign_field_name!=''))\n $full_field_name = $escape_chars[0].$table_name.$escape_chars[1].'.'.$escape_chars[0].$foreign_field_name.$escape_chars[1];\n else\n //No foreign data found. No filter can be created for this virtual field.\n return '';\n }\n }\n\n //Loop over all values and make sure that quotes are escaped.\n //Also- DB2 queries are case-sensitive, and Jobscope saves everything as uppercase. Make sure all db2 queries are searching with uppercase search values.\n\n $new_values = array();\n foreach($field_values as $this_field_value)\n {\n if (gettype($this_field_value) === 'string')\n $this_field_value = str_replace(\"'\", \"''\", $this_field_value);\n\n if ($sql_type == 'iseries')\n $this_field_value = strtoupper($this_field_value);\n\n $new_values[] = $this_field_value;\n }\n $field_values = $new_values;\n\n //NOTE:\tThe \"Contains\", \"StartsWith\" and \"EndsWith\" types are just specialized versions of a \"Like\".\n //\t\tThey have been added here to make client code simpler and more user-friendly.\n switch($field_type)\n {\n case 'Equal':\n if (gettype($field_values[0]) === \"NULL\")\n return \"($full_field_name IS NULL)\";\n else\n return \"($full_field_name = '\".$field_values[0].\"')\";\n case 'Like':\n return \"($full_field_name LIKE '\".$field_values[0].\"')\";\n case 'Contains':\n return \"($full_field_name LIKE '%\".$field_values[0].\"%')\";\n case 'StartsWith':\n if ($sql_type == 'iseries')\n return \"(TRIM($full_field_name) LIKE '\".$field_values[0].\"%')\";\t//i-Series fields are always CHAR fields that could contain padding at the end.\n else\n return \"($full_field_name LIKE '\".$field_values[0].\"%')\";\n case 'EndsWith':\n if ($sql_type == 'iseries')\n return \"(TRIM($full_field_name) LIKE '%\".$field_values[0].\"')\";\t////i-Series fields are always CHAR fields that could contain padding at the end.\n else\n return \"($full_field_name LIKE '%\".$field_values[0].\"')\";\n case 'Between':\n case 'FloatingDate':\t//The client will always parse out 2 dates and basically create a \"Between\" filter out of any \"FloatingDate\" filters, so they should be handled just like a \"Between\" on the server-side.\n if (count($field_values) < 2)\n return '';\n else\n return \"($full_field_name BETWEEN '\".$field_values[0].\"' AND '\".$field_values[1].\"')\";\n case 'In':\n //If NULL is one of the values, it must be handled differently than other values.\n $null_index = array_search(NULL,$field_values);\n if ($null_index === false)\n {\n $sql_in = \"($full_field_name IN ('\";\n $sql_in .= implode(\"','\", $field_values);\n $sql_in .= \"'))\";\n }\n else\n {\n unset($field_values[$null_index]);\n $sql_in = \"($full_field_name IN ('\";\n $sql_in .= implode(\"','\", $field_values);\n $sql_in .= \"'))\";\n $sql_in = \"($sql_in OR ($full_field_name IS NULL))\";\n }\n return $sql_in;\n case 'GreaterThan':\n return \"($full_field_name > '\".$field_values[0].\"')\";\n case 'GreaterThanOrEqualTo':\n return \"($full_field_name >= '\".$field_values[0].\"')\";\n case 'LessThan':\n return \"($full_field_name < '\".$field_values[0].\"')\";\n case 'LessThanOrEqualTo':\n return \"($full_field_name <= '\".$field_values[0].\"')\";\n case 'EqualField':\n if (gettype($field_values[0]) === \"NULL\")\n return \"($full_field_name IS NULL)\";\n else\n return \"($full_field_name = [\".$field_values[0].\"])\";\n default:\n if (count($field_values) == 1)\n //Assume a 'Like'.\n return \"($full_field_name LIKE '\".$field_values[0].\"')\";\n else\t//count > 1\n {\n //Assume an 'In'.\n $sql_in = \"($full_field_name IN ('\";\n $sql_in .= implode(\"','\", $field_values);\n $sql_in .= \"'))\";\n return $sql_in;\n }\n }\n}", "title": "" }, { "docid": "0e8545282d63f5cfa58ecde33645dc21", "score": "0.52895004", "text": "public function transform_query( &$query, $resulting_field ) {\n\t\tglobal $wpdb;\n\n\t\tif ( empty( $query['terms'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( $query['field'] == $resulting_field ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$resulting_field = sanitize_key( $resulting_field );\n\n\t\tswitch ( $query['field'] ) {\n\t\t\tcase 'slug':\n\t\t\tcase 'name':\n\t\t\t\t$terms = \"'\" . implode( \"','\", array_map( 'sanitize_title_for_query', $query['terms'] ) ) . \"'\";\n\t\t\t\t$terms = $wpdb->get_col( \"\n\t\t\t\t\tSELECT $wpdb->term_taxonomy.$resulting_field\n\t\t\t\t\tFROM $wpdb->term_taxonomy\n\t\t\t\t\tINNER JOIN $wpdb->terms USING (term_id)\n\t\t\t\t\tWHERE taxonomy = '{$query['taxonomy']}'\n\t\t\t\t\tAND $wpdb->terms.{$query['field']} IN ($terms)\n\t\t\t\t\" );\n\t\t\t\tbreak;\n\t\t\tcase 'term_taxonomy_id':\n\t\t\t\t$terms = implode( ',', array_map( 'intval', $query['terms'] ) );\n\t\t\t\t$terms = $wpdb->get_col( \"\n\t\t\t\t\tSELECT $resulting_field\n\t\t\t\t\tFROM $wpdb->term_taxonomy\n\t\t\t\t\tWHERE term_taxonomy_id IN ($terms)\n\t\t\t\t\" );\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$terms = implode( ',', array_map( 'intval', $query['terms'] ) );\n\t\t\t\t$terms = $wpdb->get_col( \"\n\t\t\t\t\tSELECT $resulting_field\n\t\t\t\t\tFROM $wpdb->term_taxonomy\n\t\t\t\t\tWHERE taxonomy = '{$query['taxonomy']}'\n\t\t\t\t\tAND term_id IN ($terms)\n\t\t\t\t\" );\n\t\t}\n\n\t\tif ( 'AND' == $query['operator'] && count( $terms ) < count( $query['terms'] ) ) {\n\t\t\t$query = new WP_Error( 'Inexistent terms' );\n\t\t\treturn;\n\t\t}\n\n\t\t$query['terms'] = $terms;\n\t\t$query['field'] = $resulting_field;\n\t}", "title": "" }, { "docid": "04e8b46157cfb7c3336f10b895b967ec", "score": "0.5286819", "text": "protected function getQueryFields()\n\t{\n\t\treturn \"\n\t\t\tt.target_id,\n\t\t\tt.property_short,\n\t\t\tt.name,\n\t\t\tt.lender_id,\n\t\t\tt.active,\n\t\t\tt.deleted,\n\t\t\tt.date_modified,\n\t\t\tt.date_created,\n\t\t\tt.date_effective,\n\t\t\tt.list_mgmt_nosell,\n\t\t\tt.lead_cost,\n\t\t\tt.paydate_minimum,\n\t\t\tt.reference_data,\n\t\t\tt.blackbox_type_id,\n\t\t\tc.company_id,\n\t\t\tc.name AS company_name,\n\t\t\tc.contact_name,\n\t\t\tc.email_address,\n\t\t\tc.phone_number,\n\t\t\tbt.name AS type\";\n\t}", "title": "" }, { "docid": "fed866a2ec582e13c21685316a23ad95", "score": "0.52826905", "text": "public function get_field_meta_data($table = '', $column_name = '')\n\t{\n\t\t$sql = \"SELECT c.*,\n\t\t\t\t\t fk.*,\n \t\t\t\t CASE WHEN (SELECT COUNT(*) \n \t\t\t\t\t\t\tFROM all_constraints cons \n \t\t\t\t\t\t\t INNER JOIN all_cons_columns cols ON (cons.constraint_name = cols.constraint_name AND cols.owner = cons.owner) \n \t\t\t\t\t\t WHERE cols.table_name = c.table_name \n \t\t\t\t\t\t\t AND cols.column_name = c.column_name \n \t\t\t\t\t\t\t AND cons.constraint_type = 'P'\n \t\t\t\t\t\t\t ) > 0 THEN 'PRI' END AS column_key,\n \t\t\t\t CASE WHEN c.nullable = 'N' THEN 'NO' ELSE 'YES' END AS IS_NULLABLE,\n \t\t\t\t ROWNUM AS ORDINAL_POSITION\n\t\t\t\t FROM user_tab_cols c\n\t\t\t LEFT JOIN (SELECT a.column_name, \n\t\t\t \t\t\t\t c_pk.table_name AS REFERENCED_TABLE_NAME, \n\t\t\t \t\t\t\t 'FOREIGN KEY' AS CONSTRAINT_TYPE, \n\t\t\t \t\t\t\t a.TABLE_NAME\n \t\t\t\t\t FROM all_cons_columns a\n \t\t\t\t\t\t JOIN all_constraints c ON (a.owner = c.owner AND a.constraint_name = c.constraint_name)\n \t\t\t\t\t\t JOIN all_constraints c_pk ON (c.r_owner = c_pk.owner AND c.r_constraint_name = c_pk.constraint_name)\n \t\t\t\t\t\t WHERE c.constraint_type = 'R'\n \t\t\t\t\t\t AND a.table_name = '\" . strtoupper($table) . \"'\n \t\t\t\t\t ) fk ON (fk.column_name = c.column_name AND fk.table_name = c.table_name)\n\t\t\t\t WHERE c.table_name = '\" . strtoupper($table) . \"'\n \t\t\t\t AND c.column_name = '\" . strtoupper($column_name) . \"'\";\n\t\t$data = $this->db->query($sql);\n\t\t$data = $data->result_array();\n\t\treturn (isset($data[0])) ? $data[0] : array();\n\t}", "title": "" }, { "docid": "11a98cbd731898268c435863fa4c2f75", "score": "0.5279208", "text": "function types_field_meta_value_repetitive( $field, $post_id = null,\n $meta_id = null ) {\n return wpcf_api_field_meta_value_repetitive( $field, $post_id, $meta_id );\n}", "title": "" }, { "docid": "fcacae623ccaab876b5cc81d7983942a", "score": "0.52582985", "text": "static function GetCustomQuery($criteria)\n\t{\n\t\t$sql = \"select\n\t\t\t'custom value here...' as CustomFieldExample\n\t\t\t,`notas`.`id_notas` as IdNotas\n\t\t\t,`notas`.`avaliacao_nome` as AvaliacaoNome\n\t\t\t,`notas`.`datas` as Datas\n\t\t\t,`notas`.`calculo` as Calculo\n\t\t\t,`notas`.`nota` as Nota\n\t\t\t,`notas`.`id_aluno_notas` as IdAlunoNotas\n\t\t\t,`notas`.`id_atribuicao_notas` as IdAtribuicaoNotas\n\t\tfrom `notas`\";\n\n\t\t// the criteria can be used or you can write your own custom logic.\n\t\t// be sure to escape any user input with $criteria->Escape()\n\t\t$sql .= $criteria->GetWhere();\n\t\t$sql .= $criteria->GetOrder();\n\n\t\treturn $sql;\n\t}", "title": "" }, { "docid": "c458b6f47bba17696e6406d8f9df4302", "score": "0.52543604", "text": "function wpcf_api_field_meta_value_repetitive( $field, $post_id = null,\n $meta_id = null ) {\n\n static $cache = array();\n $cache_key = md5( serialize( func_get_args() ) );\n if ( isset( $cache[$cache_key] ) ) {\n return $cache[$cache_key];\n }\n\n global $wpcf;\n\n // Get field\n if ( !is_array( $field ) ) {\n $field = types_get_field( $field );\n if ( empty( $field ) ) {\n return NULL;\n }\n }\n\n // Set post\n if ( !is_null( $post_id ) ) {\n if ( !$post_id = absint( $post_id ) ) {\n return NULL;\n }\n $post = get_post( $post_id );\n } else {\n global $post;\n }\n if ( empty( $post->ID ) ) {\n return NULL;\n }\n\n // Set field\n $wpcf->repeater->set( $post, $field );\n $meta = $wpcf->repeater->meta;\n $values = array();\n\n // See if single\n if ( !wpcf_admin_is_repetitive( $field ) ) {\n $values = isset( $meta['single'] ) ? $meta['single'] : NULL;\n } else if ( !is_null( $meta_id ) && isset( $meta['by_meta_id'][$meta_id] ) ) {\n // Return single repetitive field value if meta_id specified\n $values = $meta['by_meta_id'][$meta_id];\n } else if ( isset( $wpcf->repeater->meta['custom_order'] ) ) {\n // Return ordered\n $values = $wpcf->repeater->meta['custom_order'];\n } else if ( isset( $wpcf->repeater->meta['by_meta_id'] ) ) {\n // Return by_meta_id\n $values = $wpcf->repeater->meta['by_meta_id'];\n }\n $cache[$cache_key] = $values;\n\n return $values;\n}", "title": "" }, { "docid": "084a0a326c0c1f08f6513db58561ae9b", "score": "0.5243606", "text": "public function query_mods( $query, $args ) {\n\t\t$query['meta_query'] = [\n\t\t\t'relation' => 'OR',\n\t\t\t[\n\t\t\t\t[\n\t\t\t\t\t'key' => $this->prefix . 'active',\n\t\t\t\t\t'value' => 'active',\n\t\t\t\t\t'compare' => '=',\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t'key' => $this->prefix . 'start_date',\n\t\t\t\t\t'compare' => 'NOT EXISTS',\n\t\t\t\t],\n\t\t\t],\n\t\t\t[\n\t\t\t\t[\n\t\t\t\t\t'key' => $this->prefix . 'active',\n\t\t\t\t\t'value' => 'active',\n\t\t\t\t\t'compare' => '=',\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t'key' => $this->prefix . 'start_date',\n\t\t\t\t\t'value' => time(),\n\t\t\t\t\t'compare' => '<=',\n\t\t\t\t\t'type' => 'char',\n\t\t\t\t],\n\t\t\t],\n\t\t];\n\n\t\treturn parent::query_mods( $query, $args );\n\t}", "title": "" }, { "docid": "9f08c9603c425aba27c16c62d3f7068e", "score": "0.52355164", "text": "function wpcf_api_field_meta_value( $field, $post_id = null, $raw = false ) {\n\n static $cache = array();\n $cache_key = md5( serialize( func_get_args() ) );\n if ( isset( $cache[$cache_key] ) ) {\n return $cache[$cache_key];\n }\n\n global $wpcf;\n\n // Get field\n if ( !is_array( $field ) ) {\n $field = types_get_field( $field );\n if ( empty( $field ) ) {\n return NULL;\n }\n }\n\n // See if repetitive\n if ( wpcf_admin_is_repetitive( $field ) ) {\n return wpcf_api_field_meta_value_repetitive( $field, $post_id );\n }\n\n // Set post\n if ( !is_null( $post_id ) ) {\n if ( !$post_id = absint( $post_id ) ) {\n return NULL;\n }\n $post = get_post( $post_id );\n } else {\n global $post;\n }\n if ( empty( $post->ID ) ) {\n return NULL;\n }\n\n // Set field\n $wpcf->field->set( $post, $field );\n $value = $raw ? $wpcf->field->__meta : $wpcf->field->meta;\n $cache[$cache_key] = $value;\n\n return $value;\n}", "title": "" }, { "docid": "9b8ce7c461bd045d49ce9973e5c56c32", "score": "0.52336794", "text": "public function getCustomFields($data = array(), $sort = array(), $cols = array()) {\n\t\t$hFilters = $wFilters = '';\n\t\tif(isset($sort['filters'])) {\n\t\t\tforeach($sort['filters'] as $k => $v) {\n\t\t\t\tif (!isset($cols[$k])) {\n\t\t\t\t\t$wFilters .= \" AND {$k} LIKE '%\" . $this->db->escape($v) . \"%'\";\n\t\t\t\t} else {\n\t\t\t\t\t$hFilters .= \" AND {$k} LIKE '%\" . $this->db->escape($v) . \"%'\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$result = $this->db->query(\"\n\t\t\tSELECT\n\t\t\t\tSQL_CALC_FOUND_ROWS\n\t\t\t\tmscf.custom_field_id,\n\t\t\t\tmscf.custom_field_group_id,\n\t\t\t\tmscfd.`name`,\n\t\t\t\tmscfgd.`name` as `group_name`,\n\t\t\t\tmscf.admin_id,\n\t\t\t\tmscf.type,\n\t\t\t\tmscf.required,\n\t\t\t\tmscf.`validation`,\n\t\t\t\tmscf.status,\n\t\t\t\tmscf.sort_order\n\t\t\tFROM `\" . DB_PREFIX . \"ms_custom_field` mscf\n\t\t\tLEFT JOIN (SELECT custom_field_id, `name` FROM `\" . DB_PREFIX . \"ms_custom_field_description` WHERE language_id = '\" . (int)$this->config->get('config_language_id') . \"') mscfd\n\t\t\t\tON (mscfd.custom_field_id = mscf.custom_field_id)\n\t\t\tLEFT JOIN (SELECT custom_field_group_id, `name` FROM `\" . DB_PREFIX . \"ms_custom_field_group_description` WHERE language_id = '\" . (int)$this->config->get('config_language_id') . \"') mscfgd\n\t\t\t\tON (mscfgd.custom_field_group_id = mscf.custom_field_group_id)\n\t\t\tWHERE 1 = 1\"\n\n\t\t\t. (isset($data['custom_field_id']) ? \" AND mscf.custom_field_id = \" . (int)$data['custom_field_id'] : \"\")\n\t\t\t. (isset($data['custom_field_group_id']) ? \" AND mscf.custom_field_group_id = \" . (int)$data['custom_field_group_id'] : \"\")\n\t\t\t. (isset($data['admin_id']) ? \" AND mscf.admin_id = \" . (int)$data['admin_id'] : \"\")\n\t\t\t. (isset($data['type']) ? \" AND mscf.type = \" . (int)$data['type'] : \"\")\n\t\t\t. (isset($data['required']) ? \" AND mscf.required = \" . (int)$data['required'] : \"\")\n\t\t\t. (isset($data['status']) ? \" AND mscf.status = \" . (int)$data['status'] : \"\")\n\t\t\t. (isset($data['sort_order']) ? \" AND mscf.sort_order = \" . (int)$data['sort_order'] : \"\")\n\n\t\t\t. $wFilters\n\n\t\t\t. \" GROUP BY mscf.custom_field_id HAVING 1 = 1\"\n\n\t\t\t. $hFilters\n\n\t\t\t. (isset($sort['order_by']) ? \" ORDER BY {$sort['order_by']} {$sort['order_way']}\" : '')\n\t\t\t. (isset($sort['limit']) ? \" LIMIT \".(int)$sort['offset'].', '.(int)($sort['limit']) : '')\n\t\t);\n\n\t\t$total = $this->db->query(\"SELECT FOUND_ROWS() as total_rows\");\n\t\tif ($result->rows) {\n\t\t\t$result->rows[0]['total_rows'] = $total->row['total_rows'];\n\n\t\t\tforeach ($result->rows as &$row) {\n\t\t\t\t// Description\n\t\t\t\t$cf_descriptions = $this->db->query(\"\n\t\t\t\t\tSELECT\n\t\t\t\t\t\tlanguage_id,\n\t\t\t\t\t\t`name`\n\t\t\t\t\tFROM `\" . DB_PREFIX .\"ms_custom_field_description`\n\t\t\t\t\tWHERE custom_field_id = \" . (int)$row['custom_field_id'] . \"\n\t\t\t\t\tGROUP BY language_id\n\t\t\t\t\");\n\n\t\t\t\t$cf_descriptions_data = array();\n\t\t\t\tforeach ($cf_descriptions->rows as $r) {\n\t\t\t\t\t$cf_descriptions_data[$r['language_id']] = array(\n\t\t\t\t\t\t'name'\t=>\t$r['name']\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t$row['languages'] = $cf_descriptions_data;\n\n\t\t\t\t// Note\n\t\t\t\t$cf_notes = $this->db->query(\"\n\t\t\t\t\tSELECT\n\t\t\t\t\t\tlanguage_id,\n\t\t\t\t\t\t`note`\n\t\t\t\t\tFROM `\" . DB_PREFIX .\"ms_custom_field_note`\n\t\t\t\t\tWHERE custom_field_id = \" . (int)$row['custom_field_id'] . \"\n\t\t\t\t\tGROUP BY language_id\n\t\t\t\t\");\n\n\t\t\t\tforeach ($cf_notes->rows as $r) {\n\t\t\t\t\tif(isset($row['languages'][$r['language_id']])) {\n\t\t\t\t\t\t$row['languages'][$r['language_id']] = array_merge($row['languages'][$r['language_id']], array('note' => $r['note']));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Custom Field Values\n\t\t\t\t$row['cf_values'] = $this->getCustomFieldValues($row['custom_field_id']);\n\t\t\t}\n\t\t}\n\n\t\treturn isset($data['single']) && isset($result->rows[0]) ? $result->rows[0] : $result->rows;\n\t}", "title": "" }, { "docid": "75470f0518aaf373cc1e503115a48b78", "score": "0.5227641", "text": "function types_field_get_meta_value_repetitive( $field, $post_id = null,\n $meta_id = null ) {\n return wpcf_api_field_meta_value_repetitive( $field, $post_id, $meta_id );\n}", "title": "" }, { "docid": "072a19b0e21c68fdf89ac8c6ffcf4cf8", "score": "0.52267206", "text": "private function maybe_process_meta_value( WP_Query $query ) {\n\t\tif(\n\t\t\t! array_key_exists( 'meta_key', $query->query_vars )\n\t\t) {\n\t\t\treturn;\n\t\t}\n\n\t\t$parent_post_type = $this->parse_legacy_meta_key( $query->query_vars['meta_key'] );\n\t\tif( null === $parent_post_type ) {\n\t\t\treturn; // not our legacy postmeta\n\t\t}\n\n\t\tif( array_key_exists( 'meta_value_num', $query->query_vars ) ) {\n\t\t\t$post_id = (int) $query->query_vars['meta_value_num'];\n\t\t} elseif( array_key_exists( 'meta_value', $query->query_vars ) ) {\n\t\t\t$post_id = (int) $query->query_vars['meta_value'];\n\t\t} else {\n\t\t\treturn;\n\t\t}\n\n\t\tif(\n\t\t\tarray_key_exists( 'meta_compare', $query->query_vars )\n\t\t\t&& '=' !== $query->query_vars['meta_compare']\n\t\t) {\n\t\t\treturn;\n\t\t}\n\n\t\t$was_transformed = $this->try_transforming_legacy_meta_query( $query, $parent_post_type, $post_id );\n\n\t\tif( $was_transformed ) {\n\t\t\tunset( $query->query_vars['meta_value'] );\n\t\t\tunset( $query->query_vars['meta_value_num'] );\n\n\t\t\t// Theoretically, meta_key could be also used for sorting, but it makes very little sense\n\t\t\t// to sort by IDs of parent posts.\n\t\t\t//\n\t\t\t// We need to remove it because it would otherwise cause an inner join on the\n\t\t\t// postmeta table with the legacy postmeta key, effectively excluding\n\t\t\t// all posts with associations created after the migration to m2m.\n\t\t\tunset( $query->query_vars['meta_key'] );\n\t\t}\n\t}", "title": "" }, { "docid": "7b6fe151544a3952ac44f547e730060e", "score": "0.52257085", "text": "public function getMetaproperties($query);", "title": "" }, { "docid": "7b6fe151544a3952ac44f547e730060e", "score": "0.52257085", "text": "public function getMetaproperties($query);", "title": "" }, { "docid": "3c547a799f83d6b0b426054c22e83369", "score": "0.5223048", "text": "function acf_get_option_meta($prefix = '')\n{\n}", "title": "" }, { "docid": "aa811cb43ba7238d2ccc86f58c9566a4", "score": "0.5221665", "text": "function constructQuery(&$args, &$tax_query, &$meta_query)\n\t{\n\t\t\n }", "title": "" }, { "docid": "a34b664782fd6ded816924b93fbecbb9", "score": "0.5195202", "text": "public static function parse_query( $query ) {\n\t\t\tglobal $pagenow;\n\t\t\tif ( static::is_current_posttype() && 'edit.php' === $pagenow && $query->is_main_query() ) {\n\t\t\t\t$filters = [];\n\t\t\t\tforeach ( static::$meta_keys as $key => $fieldmeta ) {\n\t\t\t\t\tif ( array_key_exists( 'postlist', $fieldmeta ) ) {\n\t\t\t\t\t\tif ( array_key_exists( 'filter', $fieldmeta['postlist'] ) ) {\n\t\t\t\t\t\t\t$fieldkey = static::get_elem_name( $key );\n\t\t\t\t\t\t\tif ( static::http_get_param( $fieldkey ) !== '' ) {\n\t\t\t\t\t\t\t\t$filters[ $key ] = static::http_get_param( $fieldkey );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$queryargs = static::create_filter_query( $filters );\n\t\t\t\tif ( array_key_exists( 'tax_query', $queryargs ) ) {\n\t\t\t\t\t$query->query_vars['tax_query'] = $queryargs['tax_query']; // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_tax_query\n\t\t\t\t}\n\t\t\t\tif ( array_key_exists( 'meta_query', $queryargs ) ) {\n\t\t\t\t\t$query->query_vars['meta_query'] = $queryargs['meta_query']; // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "729307cf4d6039177bdf0417ccbfc3a5", "score": "0.5193257", "text": "public function queryModelFields($fields)\n {\n \n }", "title": "" }, { "docid": "169fe4f771e1b5fe1ea9ac169aa62b4f", "score": "0.51901424", "text": "private function loadCustomFields()\n\t{\n\t\t$query = $this->db->getQuery(true);\n\t\t$query->select('TRIM(' . $this->db->quoteName('custom_title') . ') AS ' . $this->db->quoteName('title'));\n\t\t$query->from($this->db->quoteName('#__virtuemart_customs'));\n\t\t$query->where(\n\t\t\t$this->db->quoteName('field_type') . ' IN ('\n\t\t\t. $this->db->quote('S') . ','\n\t\t\t. $this->db->quote('I') . ','\n\t\t\t. $this->db->quote('B') . ','\n\t\t\t. $this->db->quote('D') . ','\n\t\t\t. $this->db->quote('T') . ','\n\t\t\t. $this->db->quote('M') . ','\n\t\t\t. $this->db->quote('Y') . ','\n\t\t\t. $this->db->quote('X') .\n\t\t\t')'\n\t\t);\n\t\t$this->db->setQuery($query);\n\t\t$result = $this->db->loadColumn();\n\n\t\tif (!is_array($result))\n\t\t{\n\t\t\t$result = array();\n\t\t}\n\n\t\t$this->customfieldsExport = $result;\n\t}", "title": "" }, { "docid": "737f6f6e2ac4932417407e72c43ee83a", "score": "0.51862526", "text": "protected function parse_query( $query ){\n $_query = array();\n\n if( !empty( $query ) ) {\n\n /* Merge queries with the same names */\n $_prepared_query = array();\n foreach( $query as $q ) {\n if( isset( $_prepared_query[ $q['name'] ] ) ) {\n if( !is_array($_prepared_query[ $q['name'] ]['value'] ) ) {\n $_prepared_query[ $q['name'] ]['value'] = array($_prepared_query[ $q['name'] ]['value']);\n }\n if( !is_array($q['value'] ) ) {\n $q['value'] = array($q['value']);\n }\n $q['value'] = array_unique( array_merge( $_prepared_query[ $q['name'] ]['value'], $q['value'] ) );\n $_prepared_query[ $q['name'] ] = array_merge( $_prepared_query[ $q['name'] ], $q );\n } else {\n $_prepared_query[ $q['name'] ] = $q;\n }\n }\n $query = $_prepared_query;\n\n foreach( $query as $q ) {\n if( empty($q['value']) ) {\n continue;\n }\n // It should not happen, but we check it in just case\n if(!isset($q['map']) || !isset($q['name']) || !isset($q['value'])){\n continue;\n }\n $map = json_decode(urldecode($q['map']), true);\n // One more check. It should not happen too, but we check it in just case\n if( !is_array($map) || !isset($map['class']) || !isset($map['type']) || !isset($map['compare']) ) {\n continue;\n }\n\n switch( $map['class'] ) {\n case 'post':\n\n $_query[ $q['name'] ] = $q['value'];\n\n break;\n\n case 'meta':\n\n if( !isset( $_query[ 'meta_query' ] ) ) {\n $_query[ 'meta_query' ] = array();\n }\n\n if( is_array( $q['value'] ) && !in_array( $map['compare'], array( 'NOT IN', 'IN' ) ) ) {\n $map['compare'] = 'IN';\n }\n\n $args = array(\n 'key' => $q['name'],\n 'value' => $q['value'],\n 'compare' => $map['compare'],\n );\n\n array_push( $_query[ 'meta_query' ], $args );\n\n break;\n\n case 'taxonomy':\n\n if( !isset( $_query[ 'tax_query' ] ) ) {\n $_query[ 'tax_query' ] = array();\n }\n\n if( $map[ 'type' ] === 'string' ) {\n $map[ 'type' ] = 'term_id';\n }\n\n if( $map[ 'compare' ] === '=' ) {\n $map[ 'compare' ] = false;\n }\n\n if( !is_array( $q['value'] ) ) {\n $q['value'] = array( $q['value'] );\n }\n\n /**\n * Determine, which criteria we should use for search: 'AND' or 'OR'\n */\n if( in_array( $map[ 'compare' ], array( 'NOT IN', 'IN' ) ) ) {\n\n $args = array_filter( array(\n 'taxonomy' => $q['name'],\n 'field' => $map['type'],\n 'terms' => array($q['value']),\n 'operator' => $map[ 'compare' ] == 'NOT IN' ? $map[ 'compare' ] : false,\n ) );\n\n array_push( $_query[ 'tax_query' ], $args );\n\n } else {\n /**\n * We add every value separately to search using criteria 'AND' ( not 'OR' ).\n */\n $args = array( 'relation' => 'AND' );\n foreach( $q['value'] as $value ) {\n $args[] = array(\n 'taxonomy' => $q['name'],\n 'field' => $map['type'],\n 'terms' => array($value),\n );\n }\n\n array_push( $_query[ 'tax_query' ], $args );\n }\n\n break;\n\n case 'date_query':\n\n if( !isset( $_query[ 'date_query' ] ) ) {\n $_query[ 'date_query' ] = array();\n }\n\n if ( !empty( $q['value'] ) ) {\n\n $_query['date_query'][0][$map['compare']] = $q['value'];\n\n $_query['date_query'][0]['inclusive'] = true;\n }\n\n break;\n }\n }\n\n }\n\n return $_query;\n }", "title": "" }, { "docid": "a623caf1a81ef601a806117f99f6c215", "score": "0.5186", "text": "protected function buildCustomFieldSqlFilters()\n {\n $sql = [];\n $join = [];\n $custom_fields = $this->custom_fields->loadCustomFields(true);\n\n if (!empty($custom_fields)) {\n foreach ($custom_fields as $custom_field) {\n $custom_join = $custom_field->getSearchJoin($this->get, 'u');\n if (!empty($custom_join)) {\n $join[] = $custom_join;\n }\n $custom_sql = $custom_field->getSearchWhere($this->get);\n if (!empty($custom_sql)) {\n $sql[] = $custom_sql;\n }\n }\n }\n\n return [\n 'sql' => implode(' AND ', $sql),\n 'join' => implode(' ', $join)\n ];\n }", "title": "" }, { "docid": "e3c8fac1f8ee1ca72e5ca2ccd04215bc", "score": "0.51765937", "text": "public function test_searching_meta_wildcard() {\n\t\t$results = new \\SWP_Query( [\n\t\t\t'engine' => 'attributeoptionwildcard',\n\t\t\t's' => 'jsadkgha9ajs', // Exact match for meta key that's not added\n\t\t\t'fields' => 'ids',\n\t\t] );\n\n\t\t$this->assertEquals( 1, count( $results->posts ) );\n\t\t$this->assertArrayHasKey( 0, $results->posts );\n\t\t$this->assertContains( $results->posts[0], self::$post_ids );\n\t}", "title": "" }, { "docid": "208e474e4da2b543b1d2797ddc0365cc", "score": "0.5170767", "text": "static public function get_search_values($search_attributes, $searchable_property_types, $cache = true, $instance_id = false)\n {\n global $wpdb, $wp_properties;\n\n // Non post_meta fields\n $non_post_meta = array(\n 'ID' => 'equal',\n 'post_date' => 'date'\n );\n\n if ($instance_id && $cache) {\n $result = WPP_F::get_cache($instance_id);\n }\n\n if (empty($result)) {\n $query_attributes = \"\";\n $query_types = \"\";\n $range = array();\n\n //** Use the requested attributes, or all searchable */\n if (!is_array($search_attributes)) {\n $search_attributes = $wp_properties['searchable_attributes'];\n }\n\n if ($searchable_property_types == 'all') {\n $searchable_property_types = $wp_properties['searchable_property_types'];\n } else if (!is_array($searchable_property_types)) {\n $searchable_property_types = explode(',', $searchable_property_types);\n foreach ($searchable_property_types as $k => $v) {\n $searchable_property_types[$k] = trim($v);\n }\n }\n $searchable_property_types_sql = \"AND pm2.meta_value IN ('\" . implode(\"','\", $searchable_property_types) . \"')\";\n\n //** Cycle through requested attributes */\n foreach ($search_attributes as $searchable_attribute) {\n\n if ($searchable_attribute == 'property_type') {\n foreach ($wp_properties['searchable_property_types'] as $property_type) {\n $range['property_type'][$property_type] = $wp_properties['property_types'][$property_type];\n }\n continue;\n }\n\n //** Load attribute data */\n $attribute_data = UsabilityDynamics\\WPP\\Attributes::get_attribute_data($searchable_attribute);\n\n if (isset($attribute_data['numeric']) || isset($attribute_data['currency'])) {\n $is_numeric = true;\n } else {\n $is_numeric = false;\n }\n\n //** Check to see if this attribute has predefined values or if we have to get them from DB */\n //** If the attributes has predefind values, we use them */\n if (!empty($wp_properties['predefined_search_values'][$searchable_attribute])) {\n $predefined_search_values = $wp_properties['predefined_search_values'][$searchable_attribute];\n $predefined_search_values = str_replace(array(', ', ' ,'), array(',', ','), trim($predefined_search_values));\n $predefined_search_values = explode(',', $predefined_search_values);\n\n if (is_array($predefined_search_values)) {\n foreach ($predefined_search_values as $value) {\n $range[$searchable_attribute][] = $value;\n }\n } else {\n $range[$searchable_attribute][] = $predefined_search_values;\n }\n\n } elseif (array_key_exists($searchable_attribute, $non_post_meta)) {\n\n $type = $non_post_meta[$searchable_attribute];\n\n //** No predefined value exist */\n $db_values = $wpdb->get_col(\"\n SELECT DISTINCT(\" . ($type == 'data' ? \"DATE_FORMAT(p1.{$searchable_attribute}, '%Y%m')\" : \"p1.{$searchable_attribute}\") . \")\n FROM {$wpdb->posts} p1\n LEFT JOIN {$wpdb->postmeta} pm2 ON p1.ID = pm2.post_id\n WHERE pm2.meta_key = 'property_type' \n AND p1.post_status = 'publish'\n $searchable_property_types_sql\n order by p1.{$searchable_attribute}\n \");\n\n //* Get all available values for this attribute for this property_type */\n $range[$searchable_attribute] = $db_values;\n\n } else {\n\n //** No predefined value exist */\n $db_values = $wpdb->get_col(\"\n SELECT DISTINCT(pm1.meta_value)\n FROM {$wpdb->posts} p1\n LEFT JOIN {$wpdb->postmeta} pm1 ON p1.ID = pm1.post_id\n LEFT JOIN {$wpdb->postmeta} pm2 ON pm1.post_id = pm2.post_id\n WHERE pm1.meta_key = '{$searchable_attribute}' \n AND pm2.meta_key = 'property_type'\n AND pm1.meta_value != ''\n AND p1.post_status = 'publish'\n $searchable_property_types_sql\n ORDER BY \" . ($is_numeric ? 'ABS(' : '') . \"pm1.meta_value\" . ($is_numeric ? ')' : '') . \" ASC\n \");\n\n //* Get all available values for this attribute for this property_type */\n $range[$searchable_attribute] = $db_values;\n\n }\n\n //** Get unique values*/\n if (is_array($range[$searchable_attribute])) {\n $range[$searchable_attribute] = array_unique($range[$searchable_attribute]);\n } else {\n //* This should not happen */\n }\n\n foreach ($range[$searchable_attribute] as $key => $value) {\n\n $original_value = $value;\n\n // Clean up values if a conversion exists\n $value = WPP_F::do_search_conversion($searchable_attribute, trim($value));\n\n // Fix value with special chars. Disabled here, should only be done in final templating stage.\n // $value = htmlspecialchars($value, ENT_QUOTES);\n\n //* Remove bad characters signs if attribute is numeric or currency */\n if ($is_numeric) {\n $value = str_replace(array(\",\", \"$\"), '', $value);\n }\n\n //** Put cleaned up value back into array */\n $range[$searchable_attribute][$key] = $value;\n\n }\n\n //** Sort values */\n sort($range[$searchable_attribute], SORT_REGULAR);\n\n } //** End single attribute data gather */\n\n $result = $range;\n\n if ($instance_id && $cache) {\n WPP_F::set_cache($instance_id, $result);\n }\n }\n\n foreach ($result as $attribute_slug => &$value) {\n $value = apply_filters('wpp::attribute::value', $value, $attribute_slug);\n if(!is_array($value))\n $value = explode(',', $value);\n $value = array_map('trim', $value );\n }\n \n return apply_filters('wpp::get_search_values', $result, array(\n 'search_attributes' => $search_attributes,\n 'searchable_property_types' => $searchable_property_types,\n 'cache' => $cache,\n 'instance_id' => $instance_id,\n ));\n }", "title": "" }, { "docid": "34feb696b430b0f675290ae53872e640", "score": "0.51682734", "text": "public function action_query_values($data) {\n $fields = $data['fields'];\n\n foreach ($fields as $key => $field) {\n $fields[$key]['value'] = 'test';\n }\n\n return $fields;\n }", "title": "" }, { "docid": "efc5514bf5d064a76460bd834e68dc2c", "score": "0.5161772", "text": "function wp_university_adjust_queries($query) {\n\n if(!is_admin() && is_post_type_archive('program') && $query->is_main_query()) {\n $query->set('orderby', 'title');\n $query->set('order', 'ASC');\n $query->set('posts_per_page', -1);\n }\n if(!is_admin() && is_post_type_archive('event') && $query->is_main_query()) {\n $today = date('Ymd');\n $query->set('meta_key', 'event_date');\n $query->set('orderby', 'meta_value_num');\n $query->set('order', 'ASC');\n $query->set('meta_query', array(\n array(\n 'key' => 'event_date',\n 'compare' => '>=', // show date greater than or equal to today. i.e don't show past dates\n 'value' => $today,\n 'type' => 'numeric'\n )\n ));\n\n }\n}", "title": "" }, { "docid": "51f332a1cfab96fbc72a261eb98d728a", "score": "0.5155346", "text": "function quick_event_custom_query( $query ) {\n if ( $query->is_main_query() && is_post_type_archive( 'quick_event' ) ) {\n $query->set( 'meta_key', '_quick_event_date_meta_key' );\n $query->set( 'orderby', 'meta_value' );\n $query->set( 'order', 'ASC' );\n }\n}", "title": "" }, { "docid": "1044f93714f884172d80e632bce4a242", "score": "0.5154203", "text": "static function parse_query($query) {\n\t\tif( empty($query->query_vars['orderby']) || substr($query->query_vars['orderby'],0,2) != 'm_' )\n\t\t\treturn;\n\t\t\n\t\t$query->query_vars['meta_value'] = substr($query->query_vars['orderby'],2);\n\t\t$query->query_vars['orderby'] = 'meta_value';\n\t}", "title": "" }, { "docid": "03c7e51c3e811adae7996166d1137893", "score": "0.51474714", "text": "function types_field_meta_value( $field, $post_id = null, $raw = false ) {\n return wpcf_api_field_meta_value( $field, $post_id, $raw );\n}", "title": "" }, { "docid": "e3d3e6ff30963030107aab2b0fa805ef", "score": "0.51452744", "text": "function knoppys_pre_get_filter($query){ \n \n if (!is_admin() && $query->is_post_type_archive('properties') && isset($_POST['issearch'])) { \n\n /**************\n The meta array is quite large so we need to build it\n *****************************************************/\n $meta_query = array();\n\n /*****************\n Setup the location filter\n *****************************/\n if (!$_POST['location'] == '') { \n $location = $_POST['location']; \n $tax_query = array(\n array(\n 'taxonomy' => 'locations',\n 'field' => 'id',\n 'terms' => array($location)\n )\n );\n $query->set( 'tax_query', $tax_query );\n $_SESSION['location'] = $location;\n\n } elseif(isset($_SESSION['location'])) { \n\n $location = $_SESSION['location']; \n $tax_query = array(\n array(\n 'taxonomy' => 'locations',\n 'field' => 'id',\n 'terms' => array($location)\n )\n );\n $query->set( 'tax_query', $tax_query );\n\n }\n\n /*****************\n Setup the type filter\n *****************************/\n if (!$_POST['type'] == '') { \n\n $type = $_POST['type']; \n $type_query = array( \n 'meta_key' => 'type_name',\n 'value' => array($type) \n );\n array_push($meta_query, $type_query); \n $_SESSION['type'] = $type;\n\n } elseif(isset($_SESSION['type'])) { \n\n $type = $_SESSION['type']; \n $type_query = array( \n 'meta_key' => 'type_name',\n 'value' => array($type) \n );\n array_push($meta_query, $type_query);\n } \n /*****************\n Setup the number of bedrooms filter\n *************************************/\n if (!$_POST['bedfrom'] == '') { \n\n $bedfrom = $_POST['bedfrom']; \n $bedfrom_query = array(\n 'meta_key' => 'number_of_beds',\n 'value' => array($bedfrom),\n 'type' => 'numeric',\n 'compare' => '>=',\n );\n array_push($meta_query, $bedfrom_query); \n $_SESSION['bedfrom'] = $bedfrom;\n\n } elseif(isset($_SESSION['bedfrom'])) { \n\n $bedfrom = $_SESSION['bedfrom']; \n $bedfrom_query = array(\n 'meta_key' => 'number_of_beds',\n 'value' => array($bedfrom),\n 'type' => 'numeric',\n 'compare' => '>=',\n );\n array_push($meta_query, $bedfrom_query); \n } \n\n /*****************\n Setup the number of bedrooms filter\n *************************************/\n if (!$_POST['bedto'] == '') { \n\n $bedto = $_POST['bedto']; \n $bedto_query = array(\n 'meta_key' => 'number_of_beds',\n 'value' => array($bedto),\n 'type' => 'numeric',\n 'compare' => '<=',\n );\n array_push($meta_query,$bedto_query);\n $_SESSION['bedto'] = $bedto;\n\n } elseif(isset($_SESSION['bedto'])) { \n\n $bedto = $_SESSION['bedto']; \n $bedto_query = array(\n 'meta_key' => 'number_of_beds',\n 'value' => array($bedto),\n 'type' => 'numeric',\n 'compare' => '<=',\n );\n array_push($meta_query, $bedto_query );\n } \n\n /*****************\n Setup the main meta query\n *************************************/\n $query->set( 'meta_query', $meta_query); \n \n //Only get Published (Not private) posts\n $query->set('post_status', 'publish');\n\n } elseif (!is_admin() && $query->is_archive('properties') && !isset($_POST['issearch'])) {\n\n //Only get Published (Not private) posts\n $query->set('post_status', 'publish');\n \n } \n \n}", "title": "" }, { "docid": "20648fca050e68a17522fa66a275d582", "score": "0.51440394", "text": "private function get_custom_fields() {\n global $wpdb;\n\n $limit = (int) apply_filters( 'postmeta_form_limit', 30 );\n\n $keys = $wpdb->get_col( \"\n SELECT meta_key\n FROM $wpdb->postmeta\n GROUP BY meta_key\n HAVING meta_key NOT LIKE '\\_%'\n ORDER BY meta_key\n LIMIT $limit\" );\n\n if ( $keys ) {\n natcasesort( $keys );\n\n return $keys;\n }\n\n return array();\n }", "title": "" }, { "docid": "c5c15a5222e224edaa90c5ab6cbb5cee", "score": "0.51436156", "text": "function buildQueryFields( $fields = '', $current_query ) {\r\n\t\tglobal $wpdb;\r\n\t\t\r\n\t\t$fields .= ', round((ACOS(COS(RADIANS('.$wpdb->simple_post_gmaps.'.lat))*COS(RADIANS('.$this->latitude.'))*COS(RADIANS('.$this->longitude.')-RADIANS('.$wpdb->simple_post_gmaps.'.long))+SIN(RADIANS('.$this->latitude.'))*SIN(RADIANS('.$wpdb->simple_post_gmaps.'.lat)))*6366),2) AS `distance`';\r\n\t\treturn $fields;\r\n\t}", "title": "" }, { "docid": "a3b7aed889044f40e8be6e30ca37a9fe", "score": "0.51415634", "text": "function university_adjust_queries($query) { \n //FOR INSTITUTION ORDERING IN CAMPUS ARCHIVE (So it would show all Map pins, not wp default 10)\n if(!is_admin() AND is_post_type_archive('institution') AND is_main_query()) {\n $query->set('posts_per_page', -1);\n }\n \n //FOR PROGRAMS ORDERING IN ALL PROGRAMS/MAJORS ARCHIVE\n if(!is_admin() AND is_post_type_archive('program') AND is_main_query()) {\n $query->set('orderby', 'title');\n $query->set('order', 'ASC');\n $query->set('posts_per_page', -1);\n }\n //FOR DATE FILTERING ON EVENTS ARCHIVE\n if (!is_admin() AND is_post_type_archive('event') AND $query->is_main_query()) { //Only when on front end and event archive and is default, not custom query!! \n $today = date('Ymd'); //Variable for todays date \n $query->set('meta_key', 'event_date');\n $query->set('orderby', 'meta_value_num');;\n $query->set('order', 'ASC');\n $query->set('meta_query', array( //FOR FILTERING DATES (OLD DATES DISAPPEAR, ONLY SHOW LATEST)\n array( //ONLY RETURN POSTS THAT ARE GREATER THAN OR EQUAL OF TODAYS DATE!\n 'key' => 'event_date', //event_date = Custom field name in dashboard\n 'compare' => '>=',\n 'value' => $today,\n 'type' => 'numeric'\n )\n ));\n }\n }", "title": "" }, { "docid": "aa00d3e1bdbf43ea9271a3aa933bf5f5", "score": "0.5139081", "text": "function acf_get_meta_field($key = 0, $post_id = 0)\n{\n}", "title": "" }, { "docid": "ee462d8b1ab1f823297a7c8cba33782b", "score": "0.513807", "text": "function sc_price($params)\n{\n\t//echo \"hello world\";\n\t//print_r($params);\n\n\t//_page_metabox_id\n\t//_price_metabox_id\n\n\t// $args = array(\n\t// \t'meta_key' => 'price_metabox_id',\n // \t'meta_value' => $params['bookprice'],\n // \t'meta_compare' => '=',\n // \t'post_type' => 'books');\n\n\t$args = array(\n \t'post_type' => 'books',\n \t'meta_query' => array(\n \t\t\t'relation' => 'AND',\n \t\t\tarray(\n \t\t\t\t\t'key' => '_page_metabox_id',\n \t\t\t\t\t'value' => $params['bookpage'],\n \t\t\t\t\t'compare' => '='\n \t\t\t\t),\n \t\t\tarray(\n \t\t\t\t\t'key' => '_price_metabox_id',\n \t\t\t\t\t'value' => $params['bookprice'],\n \t\t\t\t\t'compare' => '='\n \t\t\t\t)\n \t\t)\n\n \t);\n\n\t$wpb_all_query = new WP_Query($args);\n\t$str = \"\";\n\tif ($wpb_all_query->have_posts())\n\t{\n\t\t//$str = \"match found\";\n\t\twhile ( $wpb_all_query->have_posts() ) : $wpb_all_query->the_post();\n\t\t\t//echo the_title();\n\t\t?>\n\t\t\t<center>\n\t\t\t\t<h1><?php echo the_title(); ?></ h1>\n\t\t\t\t<?php\n\n\t\t\t\t\tif(has_post_thumbnail())\n \t\t\t\t{\n \t\t\t\t\techo get_the_post_thumbnail( null, $size = 'post-thumbnail', $attr = '' );\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\t//echo \"No Thumbnail\";\n \t\t\t\t\t?>\n \t\t\t\t\t\t<img src=\"<?php echo get_template_directory_uri() ?>/assets/images/book-image.png\" alt=\"<?php the_title(); ?>\" />\n \t\t\t\t\t<?php\n\n \t\t\t\t}\n\t\t\t\t?>\n\t\t\t\t<P><?php echo get_the_excerpt(); ?></P>\n\n\n\t\t\t</center>\n\n\t\t<?php\n\t\tendwhile;\n\t}\n\telse\n\t{\n\t\t$str = \"No match found\";\n\t}\n\twp_reset_query();\n\n\treturn $str;\n}", "title": "" }, { "docid": "dba91b33b2dcb634e5a5dfc2cb763893", "score": "0.5128819", "text": "function get_sql_filter($data) {\n $full_fieldname = $this->get_full_fieldname();\n if (empty($full_fieldname)) {\n return null;\n }\n\n $value = $data['value'];\n if (is_numeric($value) && $value == 0) { // TBD: is_numeric ?\n return array(\"{$full_fieldname} IS NOT NULL\", array());\n } else if ($value == 'null') {\n return array(\"{$full_fieldname} IS NULL\", array());\n }\n\n return parent::get_sql_filter($data);\n }", "title": "" }, { "docid": "60c3a419e4f438fb125844018d0fcf6a", "score": "0.512699", "text": "function quickQuery($ar){\n $this->addWTPSearchXSet();\n $ar['selectedfields'] = $this->xset->browsableFields();\n $ar['selectedfields'] = 'LINE_WTPCARD';\n $r = parent::quickQuery($ar);\n return $r;\n }", "title": "" }, { "docid": "458f3270c09e65642417d18a53760a0c", "score": "0.51262516", "text": "function nodes_inventari_posts_filter($query) {\n\n global $pagenow;\n $type = 'post';\n\n if (isset($_GET['post_type'])) {\n $type = $_GET['post_type'];\n }\n\n if ('nodes_inventari' == $type && is_admin() && $pagenow == 'edit.php'\n && isset($_GET['ADMIN_FILTER_FIELD_VALUE']) && $_GET['ADMIN_FILTER_FIELD_VALUE'] != '') {\n $query->query_vars['meta_key'] = 'nodes_estat_inventari';\n $query->query_vars['meta_value'] = $_GET['ADMIN_FILTER_FIELD_VALUE'];\n }\n\n if ('nodes_inventari' == $type && is_admin() && $pagenow == 'edit.php'\n && isset($_GET['ADMIN_FILTER_FIELD_VALUE']) && $_GET['ADMIN_FILTER_FIELD_VALUE'] != '') {\n $query->query_vars['meta_key'] = 'nodes_ubicacio_inventari';\n $query->query_vars['meta_value'] = $_GET['ADMIN_FILTER_FIELD_VALUE'];\n }\n\n if ('nodes_inventari' == $type && is_admin() && $pagenow == 'edit.php'\n && isset($_GET['ADMIN_FILTER_FIELD_VALUE']) && $_GET['ADMIN_FILTER_FIELD_VALUE'] != '') {\n $query->query_vars['meta_key'] = 'nodes_origens_inventari';\n $query->query_vars['meta_value'] = $_GET['ADMIN_FILTER_FIELD_VALUE'];\n }\n\n}", "title": "" }, { "docid": "9aa5df2e827ce9da3f586541712568f6", "score": "0.51246154", "text": "function slt_cf_query_vars( $query_vars ) {\n\tglobal $slt_custom_fields;\n\n\t// Go through all fields and add query vars accordingly\n\tforeach ( $slt_custom_fields['boxes'] as $box_key => $box ) {\n\t\tforeach ( $box['fields'] as $field_key => $field ) {\n\t\t\tif ( ! empty( $field['make_query_var'] ) ) {\n\t\t\t\tif ( ! in_array( $field['name'], $query_vars ) ) {\n\t\t\t\t\t$query_vars[] = $field['name'];\n\t\t\t\t\t$slt_custom_fields['query_vars'][] = $field['name'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn $query_vars;\n}", "title": "" }, { "docid": "c89ba95daf8d97d4e5e1721577d44719", "score": "0.51240486", "text": "function xdac_extend_user_search( $u_query ){\n if ( $u_query->query_vars['search'] ){\n $search_query = trim( $u_query->query_vars['search'], '*' );\n if ( $_REQUEST['s'] == $search_query ){\n global $wpdb;\n\n // let's search by users first name\n $u_query->query_from .= \" JOIN {$wpdb->usermeta} wa ON wa.user_id = {$wpdb->users}.ID AND wa.meta_key = 'wallet_address'\";\n\n // what fields to include in the search\n $search_by = array( 'user_login', 'user_email', 'wa.meta_value');\n\n // apply to the query\n $u_query->query_where = 'WHERE 1=1' . $u_query->get_search_sql( $search_query, $search_by, 'both' );\n }\n }\n}", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "f8e7af4dd8396bb8cd87b79b70f97890", "score": "0.0", "text": "public function store(Request $request)\n {\n return $this->service->upsert($request->input('marks'));\n }", "title": "" } ]
[ { "docid": "643f51843534c99b002271c413f71061", "score": "0.7149016", "text": "public function store()\n {\n $this->storage->set($this);\n\n }", "title": "" }, { "docid": "aba977442c12d8193d7ce12cb2a46e96", "score": "0.669261", "text": "public function store ()\n {\n $this->_update_login ();\n $this->_pre_store ();\n\n if ($this->exists ())\n {\n $this->_update ();\n }\n else\n {\n $this->_create ();\n }\n }", "title": "" }, { "docid": "0a2dcecef8071427bb4f3c22969d6817", "score": "0.6619958", "text": "public function store()\n {\n if (!$this->id) {\n $this->id = $this->insertObject();\n } else {\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "98fadc36fd3a4194a25023de21dae9ff", "score": "0.6428514", "text": "public function save($resource);", "title": "" }, { "docid": "148c42c41711b48306faccd1fdedbc39", "score": "0.6416866", "text": "public function store()\n\t{\n\t\t// TODO\n\t}", "title": "" }, { "docid": "9181113e9ca478f57b376bb60189432a", "score": "0.639531", "text": "public function store()\n\t{\n\t\t//\n\t\t$inputs = Input::all();\n\t\t$validator = Validator::make($inputs , \\App\\Resource::$rules);\n\n\t\tif($validator->passes()){\n\t\t\t$destinationPath = 'pictures/'; // upload path\n\t\t\t$extension = Input::file('image')->getClientOriginalExtension(); // getting image extension\n\t\t\t$fileName = rand(11111,99999). '_' . time() . '.'.$extension; // renameing image\n\t\t\tImage::make(Input::file('image')->getRealPath())->resize(300, null,function($constrain){\n\t\t\t\t$constrain->aspectRatio();\n\t\t\t})->save($destinationPath . $fileName);\n\t\t\t// Input::file('image')->move($destinationPath, $fileName); // uploading file to given path\n\t\t\t$inputs['image'] = $fileName;\n\t\t\t\\App\\Resource::create($inputs);\n\t\t\treturn Redirect::to('/');\n\n\t\t}\n\n\t\treturn Redirect::back()\n\t\t\t->withInput(Input::all())\n\t\t\t->withErrors($validator);\n\t}", "title": "" }, { "docid": "7d031b8290ff632bab7fef6a00576916", "score": "0.6391937", "text": "public function store()\n\t\t{\n\t\t\t//\n\t\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "bd7a2528e89d1c3f43656fa9d3a11bc3", "score": "0.63575023", "text": "public function store(StoreResourceRequest $request): JsonResponse\n {\n $resource = new Resource;\n $resource->fill($request->all());\n if ($request->has('url')) {\n $resource->url = $request->file('url')->store('articles', 'article');\n }\n $resource->saveOrFail();\n return $this->api_success([\n 'data' => new ResourceArticleResource($resource),\n 'message' => __('pages.responses.created'),\n 'code' => 201\n ], 201);\n }", "title": "" }, { "docid": "af1871e1a1f1d758082bcf4ebeab10eb", "score": "0.6356851", "text": "public function saveStorage()\n {\n $this->storage->save($this->getProduct());\n }", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
a597558c760967ae259f8bb12a946ccf
Formats a string containing the fullyqualified path to represent a location resource.
[ { "docid": "d1de90e2c452a88d99455602528e7c85", "score": "0.47752666", "text": "public static function locationName($project, $location)\n {\n return self::getLocationNameTemplate()->render([\n 'project' => $project,\n 'location' => $location,\n ]);\n }", "title": "" } ]
[ { "docid": "3672750a4975b904061f9d729ba03a4e", "score": "0.6025902", "text": "public function formatUri($path) {\n return $this->getPrefix().str_replace('\\\\','/',$path); \n }", "title": "" }, { "docid": "bc9b86e1a45fb7d776ec6fed222516a5", "score": "0.55999607", "text": "public static function loc($path){\n $new = str_replace(L_DIR, \"\", $path);\n $new = L_DIR . $new;\n \n return str_replace(\"\\\\\", \"/\", $new);\n }", "title": "" }, { "docid": "2d52adbd0e647873d8945b11733d5c38", "score": "0.55828184", "text": "public function getLocationString(): string {\n return \"$this->locationName ($this->latitude, $this->longitude)\";\n }", "title": "" }, { "docid": "3fdb7680c75a9621e8a7101956071b1a", "score": "0.55358666", "text": "public static function locationName(string $project, string $location): string\n {\n return self::getPathTemplate('location')->render([\n 'project' => $project,\n 'location' => $location,\n ]);\n }", "title": "" }, { "docid": "3fdb7680c75a9621e8a7101956071b1a", "score": "0.55358666", "text": "public static function locationName(string $project, string $location): string\n {\n return self::getPathTemplate('location')->render([\n 'project' => $project,\n 'location' => $location,\n ]);\n }", "title": "" }, { "docid": "b2e9d2799cfec19f0bcaf3b6f784a919", "score": "0.5526725", "text": "public static function formatUrl($path) {\n if (!$path) {\n return $path;\n }\n $replace = [\n '\\\\' => '/',\n ];\n\n $newUrl = strtr(self::formatPath($path), $replace);\n return $newUrl;\n }", "title": "" }, { "docid": "fe52d94493403f2e3216c994f2184453", "score": "0.5389612", "text": "function _path(string $path): string\n{\n $specifiedPath = str_replace('\\\\', \"/\", $path);\n return $specifiedPath;\n}", "title": "" }, { "docid": "df768b2fd02ffc14952c2904490fef6b", "score": "0.5317986", "text": "public function getFormattedUrl($resource)\n {\n $urlResult = parent::$baseUrl . 'rest/';\n if ($this->storeCode != null) {\n $urlResult .= $this->storeCode . \"/\";\n }\n $urlResult.= trim($resource, \"/\");\n return $urlResult;\n }", "title": "" }, { "docid": "24db618794fabdeec58487fcac00547e", "score": "0.5309407", "text": "public static function formatPath($path) {\n if (!$path) {\n return $path;\n }\n\n $ds = DIRECTORY_SEPARATOR;\n $newPath = trim(str_replace(['\\\\', '/'], $ds, $path), $ds) . $ds;\n\n return $newPath;\n }", "title": "" }, { "docid": "7d5bb7b0bd63bc5a988c6b98a14b83c7", "score": "0.5202922", "text": "private function format($path){\n\t\t$is_index = strripos($path, 'index') === strlen($path)-5;\n\t\tif( $is_index ) return substr($path, 0, -5);\n\t\telseif( substr($path, -1) != '/' ) $path .= '/';\n\t\treturn $path;\n\t}", "title": "" }, { "docid": "4ff379340c45d90f1412c689e31defbf", "score": "0.5197458", "text": "public function toString() {\n return url::buildPath($this->toArray());\n }", "title": "" }, { "docid": "21b58cea08ad35ff473f763d05938ac1", "score": "0.51867145", "text": "public function __toString(): string\n {\n $authority = $this->getAuthority();\n $path = $this->path;\n\n /**\n * The path can be concatenated without delimiters. But there are two\n * cases where the path has to be adjusted to make the URI reference\n * valid as PHP does not allow to throw an exception in __toString():\n * - If the path is rootless and an authority is present, the path\n * MUST be prefixed by \"/\".\n * - If the path is starting with more than one \"/\" and no authority\n * is present, the starting slashes MUST be reduced to one.\n */\n if ('' !== $path && true !== Str::startsWith($path, '/') && '' !== $authority) {\n $path = '/' . $path;\n }\n\n $uri = $this->checkValue($this->scheme, '', ':')\n . $this->checkValue($authority, '//')\n . $path\n . $this->checkValue($this->query, '?')\n . $this->checkValue($this->fragment, '#');\n\n return $uri;\n }", "title": "" }, { "docid": "496925fe88776967c8ca95cdfb594d58", "score": "0.5174332", "text": "public function uri()\n {\n return sprintf('locations/%d', $this->id);\n }", "title": "" }, { "docid": "f51092b4741c31395c2ceb215ae8d9ef", "score": "0.5140385", "text": "protected function format_location ( $location = '', $region = '', $return_slug = true ) {\n\t\t$slug = $location;\n\t\t/* Strip Country from City Title, but only if US-based */\n\t\tif( 'USA' == $region ) {\n\t\t\t$slug = str_ireplace( 'USA', '', $slug );\n\t\t\t$slug = str_ireplace( 'United States', '', $slug );\n\t\t}\n\t\t$slug = rtrim( $slug, ', ' );\n\t\t$slug = str_replace( ' ,', ', ', $slug );\n\t\tif( $return_slug ) {\n\t\t\treturn $this->format_taxonomy_slug( $slug );\n\t\t}\n\t\treturn $slug;\n\t}", "title": "" }, { "docid": "b5c5806fbe1cffd945a7a1b91002d158", "score": "0.51390034", "text": "function getPathAsString($separator = ' > ');", "title": "" }, { "docid": "cec1b4ebc2f6f73f3c37d97cea05c33d", "score": "0.5135689", "text": "public function templateToOpenApiPath(): string\n {\n $pieces = array_map(\n function ($piece) {\n if (substr($piece, 0, 1) == ':') {\n return '{' . str_replace(':', '', $piece) . '}';\n }\n\n return $piece;\n },\n explode('/', $this->template)\n );\n\n return implode('/', $pieces);\n }", "title": "" }, { "docid": "942bc6629ea603ab134d88a3eac5a126", "score": "0.5127504", "text": "public function getLocation()\n {\n return '/' . trim(sprintf(\"/%s/%s\", $this->_sitemap->path, $this->_path), '/') . '/';\n }", "title": "" }, { "docid": "1ec011fb049c6b2be16b3d3e9beaf3ff", "score": "0.5052518", "text": "public function publishPathString($string);", "title": "" }, { "docid": "5b47fbb7cc640b38772726b2ce3547b0", "score": "0.50248414", "text": "public function getFullPathAttribute()\n {\n return Storage::disk($this->disk)->path($this->location);\n }", "title": "" }, { "docid": "f8811a0ad35d45350c0ada1ba78941e7", "score": "0.49947023", "text": "function resolvePath2 ($szDestPath, $szOrigPath) {\n if ($szDestPath == \"\") { return $szOrigPath; }\n if ($szOrigPath == \"\") { return $szDestPath; }\n if ($szDestPath[0] == \"/\" || preg_match('/^(\\w:)/', $szDestPath)) {\n //echo \"absolute: $szDestPath<BR>\";\n return $szDestPath;\n }\n\n // If windows prefix (eg: c:) get it\n $szPrefix = \"\";\n if ($szOrigPath[0] != \"/\") {\n if (preg_match('/^(\\w:)(.*)/i', $szOrigPath, $aMatch)) {\n $szPrefix = $aMatch[1];\n $szOrigPath = $aMatch[2];\n } else {\n $szOrigPath = \"/\".$szOrigPath;\n }\n }\n\n // Make sure path finishing with \"/\"\n if ($szOrigPath[strlen($szOrigPath)-1] != \"/\" &&\n !is_dir($szOrigPath)) {\n $szOrigPath = dirname($szOrigPath).\"/\";\n }\n if ($szOrigPath[strlen($szOrigPath)-1] != \"/\") {\n $szOrigPath = $szOrigPath.\"/\";\n }\n $szPath = $szOrigPath.$szDestPath;\n\n // Remove repetitive \"/\"\n $szPath = ereg_replace (\"/+\", \"/\", $szPath);\n\n $szPath = iterate_ereg_replace (\"/\\./\", \"/\", $szPath);\n $szPath = iterate_ereg_replace (\"/[^(/|\\.)]+/\\.\\./\", \"/\", $szPath);\n\n //Rest of the function\n return $szPrefix.$szPath;\n}", "title": "" }, { "docid": "1031b87268acb4a22fb5cae5f458f7da", "score": "0.49853995", "text": "function locationGetURL($loc_rec){\n\t\t$link = '';\n\t\tswitch($loc_rec['category_id']){\n\t\t\tcase '1':\n\t\t\t\t$link = 'restaurant/';\n\t\t\t\tbreak;\n\t\t\tcase '2':\n\t\t\t\t$link = 'hotel/';\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$link = 'location/';\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t$link .= seoEncodeURL($loc_rec['name']);\n\t\t$link = ReturnLink($link);\n\t\treturn $link;\n\t}", "title": "" }, { "docid": "1bc23684dcfe16d787f261e0dde7c525", "score": "0.49593338", "text": "public function translatePath($path) {\n\n // Shortcut\n if (1 === sscanf($path, 'res://%s', $file)) return $file;\n throw new IllegalArgumentException('Invalid resource expression: \"'.$path.'\"');\n }", "title": "" }, { "docid": "5a77f288a8b37bc8343b7e854785e667", "score": "0.49585643", "text": "public function getLocation() {\n\n\t\t$url = $this->data->absoluteUrl();\n\t\t$endsWithSlash = ( mb_substr( $url, - 1 ) === '/' );\n\n\t\tif ( ! $endsWithSlash && $this->useTrailingSlashes() ) {\n\t\t\t$url .= '/';\n\t\t}\n\n\t\treturn $url;\n\n\t}", "title": "" }, { "docid": "2b8045bd5dd78ff7621eeabdd15cace6", "score": "0.49363562", "text": "public function getUriForPath(string $path): string;", "title": "" }, { "docid": "2eb3bffd23134f220c7956e8d235de71", "score": "0.49120098", "text": "private static function parsePath(string $path): string\n\t{\n\t\t$template = Helper::loadTemplateData();\n\t\t$path = \\preg_replace(\"@\\{\\{template\\}\\}@\", $template->template, $path);\n\n\t\treturn Path::clean($path);\n\t}", "title": "" }, { "docid": "35f2944ba954cb3c966b9ab6dd5f1e8c", "score": "0.49052793", "text": "public function render(): string\n {\n $path = $this->arguments['path'];\n $package = $this->arguments['package'];\n if ($path === null) {\n throw new InvalidVariableException('Missing \"path\" argument.', 1353512742);\n }\n if ($package === null) {\n $package = $this->controllerContext->getRequest()->getControllerPackageKey();\n }\n return $this->resourceService->getResourceUri($path, $package);\n }", "title": "" }, { "docid": "ce26a8bee8fd795fcd1e7e04bfbcddcd", "score": "0.4894048", "text": "function getCorrectLocation($location)\n\t{\n\t\tif($location == 'Warehouse')\n\t\t{\n\t\t\t$location = 'warehouse_stock';\n\t\t}\n\t\telse if($location == 'Shop1')\n\t\t{\n\t\t\t$location = 'shop1_stock';\n\t\t}\n\t\telse if($location == 'Shop2')\n\t\t{\n\t\t\t$location = 'shop2_stock';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$location = '';\n\t\t}\n\t\treturn $location;\n\t}", "title": "" }, { "docid": "a77ffa288cc07dc3db01e2357106b973", "score": "0.48917168", "text": "function fix_path($path) {\n\treturn str_replace('\\\\','/',$path);\n}", "title": "" }, { "docid": "ee1f8eaf29068344a95da878b60d98f6", "score": "0.4852748", "text": "public function setLocation($var)\n {\n GPBUtil::checkString($var, True);\n $this->location = $var;\n\n return $this;\n }", "title": "" }, { "docid": "ee1f8eaf29068344a95da878b60d98f6", "score": "0.4852748", "text": "public function setLocation($var)\n {\n GPBUtil::checkString($var, True);\n $this->location = $var;\n\n return $this;\n }", "title": "" }, { "docid": "ee1f8eaf29068344a95da878b60d98f6", "score": "0.4852748", "text": "public function setLocation($var)\n {\n GPBUtil::checkString($var, True);\n $this->location = $var;\n\n return $this;\n }", "title": "" }, { "docid": "64ed34ff8f83f3fe131cb4844b3961ec", "score": "0.48477983", "text": "private function presenter2path($s)\n\t{\n\t\t$s = strtr($s, ':', '.');\n\t\t$s = preg_replace('#([^.])(?=[A-Z])#', '$1-', $s);\n\t\t$s = strtolower($s);\n\t\t$s = rawurlencode($s);\n\t\treturn $s;\n\t}", "title": "" }, { "docid": "5eade313dd01964a09f84bb180da8f05", "score": "0.4825585", "text": "public function getPath()\n {\n $path = '';\n if ($this->parameters['bundle']) {\n $path .= $this->parameters['bundle'].'/';\n }\n if ($this->parameters['controller']) {\n $path .= $this->parameters['controller'].'/';\n }\n $path .= $this->parameters['name'].'.'.$this->parameters['format'].'.'.$this->parameters['engine'];\n\n return $path;\n }", "title": "" }, { "docid": "9d936820bb65fbef3340d23d8231d119", "score": "0.48129004", "text": "public function getParsedPath();", "title": "" }, { "docid": "3b453b01c13ddf7d5aa5f0c6bb5b666e", "score": "0.481183", "text": "public function location($location);", "title": "" }, { "docid": "86840d5340ce2a740dc671b3af13218c", "score": "0.48114944", "text": "protected function get_resource_path($resolved_url) {\n\t\tif(empty($resolved_url)){\n\t\t\treturn $resolved_url;\n\t\t}\n\t\t$index = strpos($resolved_url, 'resource/');\n\t\tif($index === false){\n\t\t return $resolved_url;\n\t\t}\n\t\treturn substr($resolved_url, $index + strlen('resource/'));\n\t}", "title": "" }, { "docid": "25d0d69f1b22a418ba91cd4778090772", "score": "0.4809237", "text": "public static function normalizeLocation($location)\n {\n $location = trim((string) $location, '/');\n Restrictions::checkLocation($location);\n\n return implode('/', explode('/', $location));\n }", "title": "" }, { "docid": "7c9fb49cda210f84240cc9588b6748f9", "score": "0.47958514", "text": "public function _getFileLoc( $sValue, $sProp, $sBase, $sDirSep ) {\n\t\t\n\t\tif ( $sValue ) {\n\t\t\t\n\t\t\t$sPropFmt = Geko_Inflector::underscore( $sProp );\n\t\t\t$sSubDir = '';\n\t\t\t\n\t\t\tif ( isset( $this->_aFileSubdirMap[ $sPropFmt ] ) ) {\n\t\t\t\t$sSubDir = $this->_aFileSubdirMap[ $sPropFmt ];\n\t\t\t\t$sSubDir = str_replace( '##base_dir##', $this->_sFileBaseDir, $sSubDir );\n\t\t\t} else {\n\t\t\t\t// default\n\t\t\t\t$sSubDir = sprintf( '%s%s%s', $this->_sFileBaseDir, $sDirSep, $sPropFmt );\n\t\t\t}\n\t\t\t\n\t\t\treturn sprintf( '%s%s%s%s%s', $sBase, $sDirSep, $sSubDir, $sDirSep, $sValue );\n\t\t}\n\t\t\n\t\treturn '';\t\n\t}", "title": "" }, { "docid": "8c624ae747a68e269f7d6f8af8d8c720", "score": "0.47778925", "text": "function makeLocation($row) {\n\t\t$id = $row['id'];\n\t\t$caption = stripslashes($row['caption']);\n\t\t\n\t\t$url_edit = $this->generateURL(array(\"action=ajaxEditLocation\",\"locationId=$id\"));\n\t\t$url_edit_js = $this->generateURL(array(\"action=ajaxEditLocation\",\"locationId=$id\"),true);\n\t\t$url_edit_js = \"AjaxRequestData(\\\"location_$id\\\",\\\"$url_edit_js\\\"); return false;\";\n\t\t\n\t\treturn \"<strong>$caption</strong> [<a href=\\\"$url_edit\\\" onclick='$url_edit_js'>Rediger</a>]\";\n\t}", "title": "" }, { "docid": "31252cbbfca9eb756cb057b7aac6b689", "score": "0.47691813", "text": "public static function fs_path() {\n\t\t$parts = func_get_args();\n\t\treturn join(DIRECTORY_SEPARATOR, $parts);\n\t}", "title": "" }, { "docid": "d7227e5254fa4eca0fb446fd1e6f1d51", "score": "0.475738", "text": "protected function resolveUpdatePath()\n {\n $name = $this->previousAttributeValues['name'] ?? $this->name;\n\n return $this->resolvePath().'/'.rawurlencode($name);\n }", "title": "" }, { "docid": "84a99ffea2034b247fc283ace35b7f3b", "score": "0.47468948", "text": "public function getAbsolutePath(string $path): string;", "title": "" }, { "docid": "84a99ffea2034b247fc283ace35b7f3b", "score": "0.47468948", "text": "public function getAbsolutePath(string $path): string;", "title": "" }, { "docid": "286f7f40865efe6ca2935cd3a91e0ed6", "score": "0.47468138", "text": "private static function expand(string $path): string\n {\n return sprintf(\n '%s/%s/%s',\n substr($path, 0, 2),\n substr($path, 2, 2),\n substr($path, 4)\n );\n }", "title": "" }, { "docid": "ad18caab602166c6426c2eacd7a8b9f4", "score": "0.47458687", "text": "protected function _path($path)\n {\n return $this->rootName . $this->_normpath(substr($path, strlen($this->root)));\n }", "title": "" }, { "docid": "5611b1a32c9690894fcc466386c12c81", "score": "0.4743539", "text": "public function fsLink($str)\n\t\t{\n\t\t\treturn $this->getProjectRootPath().DIRECTORY_SEPARATOR.$str;\n\t\t}", "title": "" }, { "docid": "bc0e45cd236133889b08de87a29e3554", "score": "0.47383353", "text": "public function __toString(): string\n {\n return $this->path;\n }", "title": "" }, { "docid": "2671323b19d95d7ce1c84f6941c18ceb", "score": "0.4731739", "text": "function ai_http_path($resource = null)\n {\n if (!empty($resource) and substr($resource, 0, 1) != DIRECTORY_SEPARATOR) {\n $resource = DIRECTORY_SEPARATOR . $resource;\n }\n return dirname(__DIR__) . $resource;\n }", "title": "" }, { "docid": "9a437776d15c0fc28b98bf339c40fa30", "score": "0.47249871", "text": "public function getFormatPath() {\n\t\treturn $this->formatPath;\n\t}", "title": "" }, { "docid": "d7a9debe8d4e33534c963016cda493b5", "score": "0.47249427", "text": "protected function resolveRetrievePath()\n {\n $name = $this->name;\n\n return $this->resolvePath().'/'.rawurlencode($name);\n }", "title": "" }, { "docid": "97162d65b8902c1e7a19769302ea599e", "score": "0.47208017", "text": "public function getFullPath(): string;", "title": "" }, { "docid": "e24a592b93aea057aa9dec586fff7a9e", "score": "0.4713318", "text": "public static function convertPath($path) {\n return str_replace('\\\\', '/', $path);\n// return str_replace('\\\\', '/', realpath($path));\n }", "title": "" }, { "docid": "516dff7d173174218fd56134f36c9d8f", "score": "0.47109503", "text": "protected function _path($path)\n {\n return $this->rootName . $this->separator . $path;\n }", "title": "" }, { "docid": "4041ac97785d2b9f1568e8ee372e25f7", "score": "0.47094223", "text": "protected static function format($uri)\n\t{\n\t\treturn (($uri = trim($uri, '/')) == '') ? '/' : $uri;\n\t}", "title": "" }, { "docid": "416716e167f0afae547c41df4509ca17", "score": "0.47062296", "text": "protected function resolvePath()\n {\n $date = $this->previousAttributeValues['date'] ?? $this->date;\n\n return DashboardClient::$baseUrl.'/'.static::$path.'/'.$date;\n }", "title": "" }, { "docid": "146a0f0ccc653231d603b27f74290b95", "score": "0.46939492", "text": "public function getFullpath()\n {\n return (!empty($this->path) ? $this->path . '/' : '') . $this->name;\n }", "title": "" }, { "docid": "4f66f548025c9fe54d45ece5368ab31e", "score": "0.4693743", "text": "public function build($args) {\n\t\t$path = '';\n\n\t\tif (isset($args->resource)) {\n\t\t\t$path = $args->resource;\n\n\t\t\tif (isset($args->id)) $path .= FS . $args->id;\n\t\t\tif (isset($args->layout)) $path .= FS . $args->layout;\n\t\t}\n\n\t\treturn $path;\n\t}", "title": "" }, { "docid": "700828337622f205f3d53217633391b6", "score": "0.46916702", "text": "public function __toString()\n {\n return (string) $this->fullpath;\n }", "title": "" }, { "docid": "591080f2f80638ecfcb88393c72184c5", "score": "0.46839476", "text": "function _path(&$model, $fieldName, $path) {\n\t\t$replacements = array(\n\t\t\t'{model}'\t=> Inflector::underscore($model->alias),\n\t\t\t'{field}'\t=> $fieldName,\n\t\t\t'{DS}'\t\t=> DIRECTORY_SEPARATOR,\n\t\t\t'/'\t\t\t=> DIRECTORY_SEPARATOR,\n\t\t\t'\\\\'\t\t=> DIRECTORY_SEPARATOR,\n\t\t);\n\t\treturn str_replace(\n\t\t\tarray_keys($replacements),\n\t\t\tarray_values($replacements),\n\t\t\t$path\n\t\t);\n\t}", "title": "" }, { "docid": "35c85f0311b18c05e2d69e84eec89c0e", "score": "0.46776935", "text": "private function p_sanitize_partial_path_legacy($path) {\n $sanitized = preg_replace('/^(\\s*\\/)+/i', '', $path);\n\n if (is_string($sanitized)) {\n $sanitized = preg_replace('/\\s*$/i', '', $sanitized);\n }\n\n if (is_string($sanitized)) {\n $sanitized = preg_replace('/(`|~|!|@|#|\\$|\\||\\^|%|\\&|\\*|\\(|\\)|\\+|\\\\\\\\|=|{|}|[|]|:|;|\\'|\"|,|\\?|<|>|\\s)/i', '_', $sanitized);\n }\n\n if (is_string($sanitized)) {\n $sanitized = preg_replace('/_+/i', '_', $sanitized);\n }\n\n if (is_string($sanitized)) {\n $sanitized = preg_replace('/-+/i', '-', $sanitized);\n }\n\n if (is_string($sanitized)) {\n $sanitized = preg_replace('/^(_|-)+/i', '', $sanitized);\n }\n\n if (is_string($sanitized)) {\n $sanitized = preg_replace('/(_|-)+$/i', '', $sanitized);\n }\n\n if (is_string($sanitized)) {\n return $sanitized;\n }\n\n return '';\n }", "title": "" }, { "docid": "751538314336d80a15483bc63e2ba49a", "score": "0.46721926", "text": "function getLocation(){\n\t\tif($this->validUser){\n\t\t\t$position = strpos($this->urlCont, LOCATION_POSITION);\n\t\t\t$subStr = substr($this->urlCont, $position, MAX_STRING_LENGTH);\n\t\t\t$subStr = preg_replace( \"/\\r|\\n/\", \"\", $subStr); // remove new line chars (for preg_match)\n\t\t\tpreg_match(LOCATION_REGEX, $subStr, $match);\n\t\t\t$this->location = trim($match[1]); // remove spaces from the end and the beginning\n\t\t\treturn $this->location;\n\t\t}\n\t\telse\n\t\t\treturn ERROR_INVALID_USER; // the user is not valid\n\t}", "title": "" }, { "docid": "c923b2dc6d932db1b7d7bfddb9f562e3", "score": "0.46583927", "text": "public function path();", "title": "" }, { "docid": "c923b2dc6d932db1b7d7bfddb9f562e3", "score": "0.46583927", "text": "public function path();", "title": "" }, { "docid": "bd23220f45a263340935ff73c78ef298", "score": "0.46556264", "text": "public function getLiteralShortestPath() {\n $path = $this->solve();\n $literal = '';\n\n foreach ($path as $p) {\n $literal .= \"{$p->getId()} => \";\n }\n\n if ($this->getMaximumLatency() > $this->getEndingDevice()->getPotential()) {\n return substr($literal, 0, -3) . '=> ' . $this->getEndingDevice()->getPotential() . PHP_EOL;\n } else {\n return 'Path Not found' . PHP_EOL;\n }\n \n }", "title": "" }, { "docid": "c9afc141ddd5cc331dbab7f1f6f8291b", "score": "0.46493623", "text": "function toastr_path($path = ''): string\n {\n return str_replace(array('/', '\\\\'), DIRECTORY_SEPARATOR, $path);\n }", "title": "" }, { "docid": "6757d3a86b083005255c3de98a310309", "score": "0.4648083", "text": "public function __toString() : string\n {\n return $this->path;\n }", "title": "" }, { "docid": "0465a1f81b4385510b400635bf13b8aa", "score": "0.46480754", "text": "static function get_file_location($location = ''){\n\t\treturn EMAILDRIPCAMPAIGN_DIR . '/' . $location;\n\t}", "title": "" }, { "docid": "fb12e5afa0d58d6d16a691eb6ce04a3d", "score": "0.46452814", "text": "public function resolvePath($path) {\n $model = $this->owner;\n return preg_replace_callback(\n '|{(.*?)}|', function ($matches) use ($model) {\n return ($model->{$matches[1]}) ? $model->{$matches[1]} : $matches[0];\n }, $path\n );\n }", "title": "" }, { "docid": "61e0a3f4c0a954f32bae06d1d20d1ca4", "score": "0.46409962", "text": "public function resourceLogPath(): string\n {\n return \"{$this->getApiPathPrefix()}/\".static::getPlural().\"/{$this->getIdentifier()}/log\";\n }", "title": "" }, { "docid": "d6e775a9b4722d0fa46eaa9b3ea3d101", "score": "0.4636207", "text": "public function __toString()\n {\n return $this->path();\n }", "title": "" }, { "docid": "f9c78c528b78d73175db6721c0d08dea", "score": "0.46357617", "text": "private function path() {\n\n // Make sure the id is not equal to the placeholder.\n if ($this->id != $this->place_holder) {\n\n // Get the path of this file.\n $path = $this->folder . '/' . $this->id;\n\n // Return the path.\n return $path;\n }\n\n return '';\n }", "title": "" }, { "docid": "81c4b45eb5eabcb297ea374bc8512849", "score": "0.46347305", "text": "public function getRef()\n\t{\n\t\treturn 'location/'.$this->id.\"-\".$this->slug;\n\t}", "title": "" }, { "docid": "1f9c572c08994ef289f05fa5501dbca6", "score": "0.46342382", "text": "public function __construct(string $location)\n {\n $this->location = $location;\n }", "title": "" }, { "docid": "5e3372326e32390b588cb258ee8349bd", "score": "0.4623339", "text": "public function normalizePath(string $path): string;", "title": "" }, { "docid": "2964d412d58112e2fa5f7b6149a9736a", "score": "0.46220052", "text": "function resource_path($path = '')\r\n {\r\n return app()->resourcePath($path);\r\n }", "title": "" }, { "docid": "6ebca051bf7f4905ac8672fc99ced7dd", "score": "0.46194687", "text": "function make_place($pathname) {\n return str_replace(\n array(MAIN_DIR.DIR, DIR),\n array(\"\", \"/\"),\n $pathname\n );\n }", "title": "" }, { "docid": "5f46442b85f7a863e98e461922a4a0db", "score": "0.4618721", "text": "function flyer_path(App\\Flyer $flyer)\n {\n return str_replace(' ', '_', $flyer->zip) . '/' . str_replace(' ', '_', $flyer->street);\n }", "title": "" }, { "docid": "428612523210bfb9e8cf2279eb30953d", "score": "0.461793", "text": "public function __construct($location, $name, $type)\n\t{\n\t\t// Separate string to get the namespace\n\t\t$location = explode(':', $location, 2);\n\n\t\tif (isset($location[1]) && ! empty($location[1]))\n\t\t{\n\t\t\t$this->name = $location[1] . '/';\n\t\t}\n\n\t\t$this->name .= $name;\n\t}", "title": "" }, { "docid": "e006e96f5de0499f1d5af4e63e7eb394", "score": "0.46165577", "text": "public function __toString()\n\t{\n\t\treturn $this->path;\n\t}", "title": "" }, { "docid": "c058af0799022aca4a34fa97b0ba399b", "score": "0.46139532", "text": "function getUrlToPath($path)\n{\n return \"%%ROOT%%\" . $path;\n}", "title": "" }, { "docid": "f7353b6d6bb5a2fb1586d39f79b30f1c", "score": "0.46114215", "text": "public function getResourceUri($resource)\n {\n if (!str_contains($resource, '.')) {\n return $resource;\n }\n // To create the nested resource URI, we will simply explode the segments and\n // create a base URI for each of them, then join all of them back together\n // with slashes. This should create the properly nested resource routes.\n $nested = implode('/', array_map(function ($segment) {\n return $segment . '/{' . $segment . '}';\n }, $segments = explode('.', $resource)));\n // Once we have built the base URI, we'll remove the wildcard holder for this\n // base resource name so that the individual route adders can suffix these\n // paths however they need to, as some do not have any wildcards at all.\n $last = $segments[count($segments) - 1];\n return str_replace('/{' . $last . '}', '', $nested);\n }", "title": "" }, { "docid": "22d0fa6426e8f274d1adfd8dd1a5fd7a", "score": "0.46092096", "text": "public static function formatLocation( $locArr, $html = true ) {\n\t\t$output = $locArr[ 'name' ];\n\t\t$html ? $output .= '<br/>' : $output .= \"\\n\";\n\t\t$output .= $locArr[ 'address1' ];\n\t\t$html ? $output .= '<br/>' : $output .= \"\\n\";\n\t\tif( !empty( $locArr[ 'address2' ] ) ) {\n\t\t\t$output .= $locArr[ 'address2' ];\n\t\t\t$html ? $output .= '<br/>' : $output .= \"\\n\";\n\t\t}\n\t\t$output .= $locArr[ 'city' ] . ', ' . $locArr[ 'state' ] . ' ' . $locArr[ 'zip' ];\n\t\t\n\t\treturn $output;\n\t}", "title": "" }, { "docid": "2c5b95d7a5c2d803cb1e1f8dba699558", "score": "0.46088922", "text": "public function getPathInfo(): string\n {\n $route = $this->languageInPath ? Str::sub(parent::getPathInfo(), Str::length($this->language) + 1) : parent::getPathInfo();\n if (!Str::startsWith('/', $route)) {\n $route = '/' . $route;\n }\n return $route;\n }", "title": "" }, { "docid": "8bfb3741478b243bb7402c82290c1084", "score": "0.4604731", "text": "public function __toString()\n {\n return (string) $this->getPath();\n }", "title": "" }, { "docid": "8e91a638d9fdbfd8b481ac9f0eb3e24b", "score": "0.46040618", "text": "public static function normalizePath($string)\n {\n if (DS == '\\\\') {\n return str_replace('/', '\\\\', $string);\n } else {\n return str_replace('\\\\', '/', $string);\n }\n }", "title": "" }, { "docid": "37829a9e2bdbdbb080ff500a55db050c", "score": "0.45992544", "text": "function getFullLocation($location, $needle = 'R') {\r\n\t\r\n\t$needle_position = strpos($location, $needle);\r\n\t\r\n\tif ($needle_position === false) {\r\n\t\treturn $needle . '.' . $location;\r\n\t}else if ($needle_position == 0) {\r\n\t\treturn $location;\r\n\t}\r\n\t\r\n}", "title": "" }, { "docid": "9fae600b5e2b06c412807e05b3a12bcf", "score": "0.45935303", "text": "public static function retrieveByLocation($location)\n {\n if (!isset(self::$format[$location])) {\n $criteria = new Criteria();\n $criteria->add(self::LOCATION, $location);\n self::$format[$location] = self::doSelectOne($criteria);\n }\n \n return self::$format[$location];\n }", "title": "" }, { "docid": "1849fc992ebe3f984188978052ac5111", "score": "0.45729017", "text": "function __toString() {\n return $this->path;\n }", "title": "" }, { "docid": "0405a6206cd767dd754136d99b8a97fc", "score": "0.45710218", "text": "public function formatRoute()\n {\n $seat = $this->getSeat() ? 'Gate ' . $this->getGate() . ', seat ' . $this->getSeat() . '.' : 'No seat assignment.';\n\n return sprintf(\n \"From %s, take flight %s to %s. %s %s\",\n $this->getFrom(),\n $this->getConnectionName(),\n $this->getTo(),\n $seat,\n $this->getBaggage()\n );\n }", "title": "" }, { "docid": "943bdf7203533f1de7bb022b58df9cf7", "score": "0.45596376", "text": "public function getAbsolutePath(): string;", "title": "" }, { "docid": "984a388d887795919ff1d164e962a6ef", "score": "0.45491147", "text": "function fullpath($path) {\n\treturn HOME.'/'.$path;\n}", "title": "" }, { "docid": "86d2b64402be8472a1ecd2cf967dded5", "score": "0.45467287", "text": "public function getFullPath() {\r\n\t\treturn Yii::app()->getModule(\"resources\")->resourceDir.\"/\".$this->path;\r\n\t}", "title": "" }, { "docid": "45831910afaf3986df60c601b2640d0a", "score": "0.45396748", "text": "public function getResourceLocationForIdentifier($identifier);", "title": "" }, { "docid": "2af66aaf19d929ce92ac1eccdb6ff940", "score": "0.45365852", "text": "public function path_to($path)\n\t{\n\t\t\n\t\techo BASE_PATH . $path;\n\t\t\n\t}", "title": "" }, { "docid": "89fc7ea028c8c1b9042be867185991ce", "score": "0.4536398", "text": "public function resource_path($path = '')\n {\n return app()->basePath().'/resources'.($path ? '/'.$path : $path);\n }", "title": "" }, { "docid": "8c1b40fdd57eec1ae65081eded8d80b1", "score": "0.45342228", "text": "public function getRelativeUriForPath(string $path): string;", "title": "" } ]
8e764ce4f1534f9f53486fc507fadb96
is it a 15 char hash with no file extension or is it an old style numeric id with no file extension?
[ { "docid": "76945aef5a70a7f0c5abada04aee0bdb", "score": "0.0", "text": "public function thumb($w=0, $h=0, $x = 0, $x2=0, $y = 0, $y2=0,$id = 0)\n\t{\t\tif ((strlen($id) === 15 and strpos($id, '.') === false) or (is_numeric($id) and strpos($id, '.') === false))\n\t\t{\n\t\t\t$file = $this->file_m->get($id);\n\t\t}\n\t\t\n\t\t// it's neither a legacy numeric id nor a new hash id so they've passed the filename itself\n\t\telse\n\t\t{\n\t\t\t$data = getimagesize($this->_path.$id) OR show_404();\n\t\t\t\n\t\t\t$ext = '.'.end(explode('.', $id));\n\t\t\t\n\t\t\t$file->width \t\t= $data[0];\n\t\t\t$file->height \t\t= $data[1];\n\t\t\t$file->filename \t= $id;\n\t\t\t$file->extension \t= $ext;\n\t\t\t$file->mimetype \t= $data['mime'];\n\t\t}\n\t\n\t\tif ( ! $file)\n\t\t{\n\t\t\tset_status_header(404);\n\t\t\texit;\n\t\t}\n\n\t\t$cache_dir = $this->config->item('cache_dir') . 'image_files/';\n\n\t\tis_dir($cache_dir) or mkdir($cache_dir, 0777, true);\n\n\n\t\t// Path to image thumbnail\n\t\t$thumb_filename = $cache_dir . 'crop';\n\t\t$thumb_filename .= '_' . $w.'_' . $h.'_' . $x. '_' .$x2 .'_' . $y. '_'. $y2;\n\t\t$thumb_filename .= '_' . md5($file->filename) . $file->extension;\n\n\t\t$expire = 60 * Settings::get('files_cache');\n\t\tif ($expire)\n\t\t{\n\t\t\theader(\"Pragma: public\");\n\t\t\theader(\"Cache-Control: public\");\n\t\t\theader('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expire) . ' GMT');\n\t\t}\n\n\t\t$source_modified = filemtime($this->_path . $file->filename);\n\t\t$thumb_modified = filemtime($thumb_filename);\n\n\n\t\tif ( ! file_exists($thumb_filename) OR ($thumb_modified < $source_modified))\n\t\t{\n\t\t\t// load lib\n\t\t\t$this->load->library('image_lib');\n\n\t\t\t// crop\n\t\t\t$config['image_library'] = 'gd2';\n\t\t\t$config['source_image'] = $this->_path.$file->filename;\n\t\t\t$config['new_image'] = $thumb_filename;\n\t\t\t$config['maintain_ratio'] = FALSE;\n\t\t\t$config['width']\t\t\t= $x2-$x;\n\t\t\t$config['height']\t\t\t= $y2-$y;\n\t\t\t$config['x_axis']\t\t\t= $x;\n\t\t\t$config['y_axis']\t\t\t= $y;\n\n\t\t\t$this->image_lib->initialize($config);\n\t\t\t$this->image_lib->crop();\n\t\t\t$this->image_lib->clear();\n\t\t\t\n\t\t\t// resize\n\t\t\t$config['image_library'] = 'gd2';\n\t\t\t$config['source_image'] = $thumb_filename;\n\t\t\t$config['new_image'] = $thumb_filename;\n\t\t\t$config['maintain_ratio'] = true;\n\t\t\t$config['height'] = $h;\n\t\t\t$config['width'] = $w;\n\t\t\t$this->image_lib->initialize($config);\n\t\t\t$this->image_lib->resize();\n\t\t\t$this->image_lib->clear();\n\t\t\t\n\n\t\t} else if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) &&\n\t\t\t(strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $thumb_modified) && $expire )\n\t\t{\n\t\t\t// Send 304 back to browser if file has not beeb changed\n\t\t\theader('Last-Modified: '.gmdate('D, d M Y H:i:s', $time).' GMT', true, 304);\n\t\t\texit;\n\t\t}\n\n\t\theader('Content-type: ' . $file->mimetype);\n\t\theader('Last-Modified: ' . gmdate('D, d M Y H:i:s', filemtime($thumb_filename)) . ' GMT');\n\t\tob_clean();\n\t\treadfile($thumb_filename);\n\t}", "title": "" } ]
[ { "docid": "f120f23ff2a428b2905bec745a48ba03", "score": "0.738109", "text": "public function getHashIdentifier() : string;", "title": "" }, { "docid": "67c6abcbbc84d41676e99e4b9d9585a6", "score": "0.6819292", "text": "public function hash(): string;", "title": "" }, { "docid": "7dbc6b2c4f9c32b9f569f06a027a9afc", "score": "0.66527444", "text": "public function getHashSignedById(): string;", "title": "" }, { "docid": "b0c50ed7f54341e3a765953108ddaddd", "score": "0.6600143", "text": "public function getHash(): string;", "title": "" }, { "docid": "b0c50ed7f54341e3a765953108ddaddd", "score": "0.6600143", "text": "public function getHash(): string;", "title": "" }, { "docid": "b0c50ed7f54341e3a765953108ddaddd", "score": "0.6600143", "text": "public function getHash(): string;", "title": "" }, { "docid": "b0c50ed7f54341e3a765953108ddaddd", "score": "0.6600143", "text": "public function getHash(): string;", "title": "" }, { "docid": "b0c50ed7f54341e3a765953108ddaddd", "score": "0.6600143", "text": "public function getHash(): string;", "title": "" }, { "docid": "c5fd7a9e0f11d2e5fc00a5fd85ac7fa3", "score": "0.65568846", "text": "function id_gen($str=''){\n\t$pats = array('/','+');\n\t$subs = array('_','-');\n\treturn str_replace($pats,$subs,substr(base64_encode(md5($str,true)),0,22));\n}", "title": "" }, { "docid": "ce54552ed27d9d0769425de578f6d800", "score": "0.6445464", "text": "function _odgs_get_file_hash($fid) {\n return md5($fid);\n}", "title": "" }, { "docid": "aaa8d7cae8dfd8bb41118e05a74dad62", "score": "0.6411108", "text": "public static function id() {\n\t\treturn abs( crc32( uniqid() ) );\n\t}", "title": "" }, { "docid": "5a856d9e1fda96771bd78de290f45737", "score": "0.63785714", "text": "public function getBaseHash()\n {\n $hashids = new Hashids\\Hashids(Yii::app()->params['encryptionKey'], 8);\n $id = $hashids->encode($this->base62toDec(Yii::app()->params['encryptionKey']));\n return $id;\n }", "title": "" }, { "docid": "d80b4b75d5b0faa72197c77879909954", "score": "0.63589305", "text": "public function getHashId()\r\n {\r\n return Hashids::encode($this->id);\r\n }", "title": "" }, { "docid": "54620d1b480fbf696f0b39dc28c3e6df", "score": "0.6297952", "text": "function uniqidReal($lenght = 13)\n\t{\n\t\tif (function_exists(\"random_bytes\")) {\n\t\t\t$bytes = random_bytes(ceil($lenght / 2));\n\t\t} elseif (function_exists(\"openssl_random_pseudo_bytes\")) {\n\t\t\t$bytes = openssl_random_pseudo_bytes(ceil($lenght / 2));\n\t\t} else {\n\t\t\tthrow new Exception(\"no cryptographically secure random function available\");\n\t\t}\n\t\treturn substr(bin2hex($bytes), 0, $lenght);\n\t}", "title": "" }, { "docid": "6671cbd4cf33d6a144fdb214db3ef837", "score": "0.62930334", "text": "function check_hash($n){\n\tif(!$n) return;\n\t$hashpos = strpos($n, \"#\");\n\n\tif($hashpos === false){\n\t\t$output = \"#\" . $n;\n\t}else if($hashpos == 0){\n\t\t$output = $n;\n\t}\n\treturn $output;\n}", "title": "" }, { "docid": "c5eb9de2c0bb5469ecf9e011e0ede76a", "score": "0.62772584", "text": "public static function hash($id)\n {\n return md5($id.'NaCl');\n }", "title": "" }, { "docid": "9aa4a666118e41a55ff4c5bcdbbd4c05", "score": "0.62517965", "text": "function hex_sha1($s){return binb2hex(core_sha1(str2binb($s),$s.length * $chrsz));}", "title": "" }, { "docid": "a1253e86662bdc3f818e57d99f8f255a", "score": "0.62440926", "text": "public function generateUniqueIdentifier()\n\t{\n $id = $this->getBaseHash();\n return 'ciims.'.$id.'.';\n\t}", "title": "" }, { "docid": "57c49f237982a94b3dd79f7401f4fe0a", "score": "0.6241713", "text": "public function hash ();", "title": "" }, { "docid": "5afbb95ff66271339874db06e0a0eef7", "score": "0.62126034", "text": "public function get_id($hash = \\false, $fn = 'md5')\n {\n }", "title": "" }, { "docid": "2b4bac1a87058a0d8b6e16471db75fd2", "score": "0.62090147", "text": "function uniqid ($prefix = \"\", $more_entropy = false) {}", "title": "" }, { "docid": "a51f8a523ea3a3f65c7df378fd7a701c", "score": "0.620536", "text": "function uniqidReal($lenght = 16) \n {\n if (function_exists(\"random_bytes\")) {\n $bytes = random_bytes(ceil($lenght / 2));\n } elseif (function_exists(\"openssl_random_pseudo_bytes\")) {\n $bytes = openssl_random_pseudo_bytes(ceil($lenght / 2));\n } else {\n throw new Exception(\"no cryptographically secure random function available\");\n }\n return substr(bin2hex($bytes), 0, $lenght);\n }", "title": "" }, { "docid": "fe59958acd00d3891d92b87f58336dd5", "score": "0.6198582", "text": "function getDownloaderToken($filename,$mime){\n return sha1($filename.'-'.$mime);\n}", "title": "" }, { "docid": "ce6f2448dc2ee2a22ff2e71ddb564491", "score": "0.6183469", "text": "public function hash(string $id) : string\n {\n return \"#{$id}\";\n }", "title": "" }, { "docid": "ce345016e5dee16ecfd8e865daeae0cb", "score": "0.6161337", "text": "function make_id($base) {\n\treturn substr(hash('md5', $base . microtime()), 0, 6);\n}", "title": "" }, { "docid": "0d79234a434392c2f0c85d28cb91ddc2", "score": "0.61565334", "text": "final public function getHash() {}", "title": "" }, { "docid": "ab0104d40223fcf66bedafef3b972ed0", "score": "0.61434215", "text": "public function hashCode() : string;", "title": "" }, { "docid": "76f4886e5a11b6f7e75db44cf337ba53", "score": "0.6098816", "text": "function verify($string)\n{\n\t$string = preg_replace(\"/[^a-z0-9\\-]/\", \"\", $string);\n\tif(strlen($string) == 36)\n\t{\n\t\t$hash = explode(\"-\", $string);\n\t\t$hash = $hash[4].$hash[0].$hash[3].$hash[1].$hash[2];\n\t\treturn $hash;\n\t}\n\telse\n\t{\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "64d265ae86c31a631f0637bf44a31e5a", "score": "0.60776716", "text": "function myhash($str) {\n return shorthash(md5($str));\n}", "title": "" }, { "docid": "c4512f5248f88880a783153c5aef9fb2", "score": "0.60500026", "text": "public function testGenerateHexadecimalHash () : void {\n $hash = Random::generateHexHash();\n\n $this->assertEquals(\n 32, strlen($hash),\n \"$hash size must be 32 characters\"\n );\n\n $this->assertMatchesRegularExpression(\"/[0-9a-f]{32}/\", $hash);\n }", "title": "" }, { "docid": "0540b12aadabecc03dc9c30c1bbeee92", "score": "0.6044661", "text": "public function hash(string $key): string;", "title": "" }, { "docid": "f9b82ce94fe73d4a53dbf75d232c62bb", "score": "0.6043837", "text": "public function getHash() {}", "title": "" }, { "docid": "8e8bc2ead48a5a02207e74bf77b5ec01", "score": "0.6043004", "text": "function hash_decode($id) {\n $decode = Hashids::decode($id);\n return $decode ? $decode[0] : false;\n}", "title": "" }, { "docid": "71e1f764e94c1d178684465791c1f871", "score": "0.60319036", "text": "function getAssetId($asset=null){\n $id = false;\n if($asset == 'XCP'){\n $id = 1;\n } else if(substr($asset,0,1)=='A'){\n $id = substr($asset,1);\n } else {\n $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\n $array = str_split($asset);\n $n = 0;\n for ($i = 0; $i < count($array); $i++) { \n $n *= 26;\n $n += strpos($chars, $array[$i]);\n }\n $id = $n;\n }\n return $id;\n}", "title": "" }, { "docid": "4ef7f46ae67c811f3727da48ff8cf2dc", "score": "0.6026758", "text": "public function getHexKey(): string;", "title": "" }, { "docid": "edc042913c0d17000080196091068128", "score": "0.6025206", "text": "function getSha1() ;", "title": "" }, { "docid": "e6a4723a00825b2dc752ba8652105be9", "score": "0.60221195", "text": "private function random_hash() {\n $this->hash = base_convert(mt_rand(0x1D39D3E06400000, 0x41C21CB8E0FFFFFF), 10, 36);\n return $this->hash;\n }", "title": "" }, { "docid": "e66cbe4c4d7e6c4f66f77164273e0c2e", "score": "0.6012664", "text": "static function createNewVerificationCode() {\n $uniqueString = uniqid(null, true); //generate a long unique id\n $hashedString = md5($uniqueString); //generate hash\n $finalSubString = substr($hashedString, 0, 20); //save the first 20 characters\n return $finalSubString;\n }", "title": "" }, { "docid": "322f0c1c9e4009bfc7c686cebf4129d5", "score": "0.6004135", "text": "public function hash($string);", "title": "" }, { "docid": "322f0c1c9e4009bfc7c686cebf4129d5", "score": "0.6004135", "text": "public function hash($string);", "title": "" }, { "docid": "4ac86607388da9b36620ac09c80cf2fa", "score": "0.59971637", "text": "function uniqidReal( $length = 13 ) {\n if ( function_exists( \"random_bytes\" ) ):\n $bytes = random_bytes( ceil( $length / 2 ) );\n elseif ( function_exists( \"openssl_random_pseudo_bytes\" ) ):\n $bytes = openssl_random_pseudo_bytes( ceil( $length / 2 ) );\n else:\n throw new Exception( \"no cryptographically secure random function available\" );\n endif;\n return substr( bin2hex( $bytes ), 0, $length );\n }", "title": "" }, { "docid": "92006bb6a535f8bc69f4d75b0e0b3aca", "score": "0.59934497", "text": "public function getCodeHash() {\n $date = new \\DateTime();\n return hexdec($date->format('d-m-y his'));\n }", "title": "" }, { "docid": "7526fead98c02a96975a684d05a68aca", "score": "0.599015", "text": "public static function validationHash($id, $username) {\n $PEPPER = \"__PEPPER3__\";\n \n $KEY = pack('H*', hash(\"sha256\", $id));\n $cycles = Encryption::getCount($username . $PEPPER, 500, 1000);\n $CIPHER = $id . $username;\n for ($x = 0; $x < $cycles; $x++) {\n $CIPHER = mcrypt_encrypt(MCRYPT_BLOWFISH, $KEY, $CIPHER, MCRYPT_MODE_ECB);\n $KEY = pack('H*', hash(\"sha256\", $CIPHER . $id . $PEPPER . $username));\n }\n return Util::strToHex($KEY);\n }", "title": "" }, { "docid": "0132c375c02ee4decee70ab2bfe2cd42", "score": "0.5989296", "text": "private function make_id () {\n // http://sourceforge.net/projects/phunction/\n return sprintf('%04X%04X%04X', mt_rand(0, 65535), mt_rand(0, 65535), mt_rand(0, 65535));\n }", "title": "" }, { "docid": "56aa96dbcb4c80e3108e37848c1d1775", "score": "0.5984963", "text": "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}", "title": "" }, { "docid": "3b7e891bbdb4da16d5e6f7d0667c6962", "score": "0.5981553", "text": "public static function generateCacheKey() {\n \n $id = uniqid();\n \n $id = base_convert($id, 16, 2);\n $id = str_pad($id, strlen($id) + (8 - (strlen($id) % 8)), '0', STR_PAD_LEFT);\n $chunks = str_split($id, 8);\n $id = array();\n foreach ($chunks as $key => $chunk) {\n if ($key & 1) { // odd\n array_unshift($id, $chunk);\n } else { // even\n array_push($id, $chunk);\n }\n }\n return base_convert(implode($id), 2, 36);\n }", "title": "" }, { "docid": "13fa10245baaad3cc40d3c1f6a959933", "score": "0.5953726", "text": "public function getIdentifier() {\n\n\t\t// String Prefix muss vorhanden sein -> reiner Zahlenwert wirft Exception nach dem Absenden\n\t\t// @see: https://wiki.typo3.org/Exception/CMS/1210858767\n\t\treturn md5($this->contentObject->data['uid']);\n\t}", "title": "" }, { "docid": "feace992a65edc589ac35d168d1ea5a1", "score": "0.5949474", "text": "function get_short_hash($groupID, $salt = 'thaw_design') {\n\n $hash = md5($groupID);\n $hash = substr($hash,0,13);\n\n return $hash;\n}", "title": "" }, { "docid": "6853ee0234a022289bf52f8ade5215ac", "score": "0.5945814", "text": "function uniqid($prefix = '', $more_entropy = false)\n{\n}", "title": "" }, { "docid": "8b36b4793d8390c526ca2d2268dc54da", "score": "0.5939397", "text": "private static function unique_key() {\n\t\tif ( ! function_exists( 'random_int' ) ) {\n\t\t\tthrow new Exception( \"'random_int' does not exist\" );\n\t\t}\n\n\t\t$chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()-_ []{}<>~`+=,.;:/?|';\n\t\t$key = '';\n\n\t\tfor ( $i = 0; $i < 64; $i++ ) {\n\t\t\t$key .= substr( $chars, random_int( 0, strlen( $chars ) - 1 ), 1 );\n\t\t}\n\n\t\treturn $key;\n\t}", "title": "" }, { "docid": "e8f7c127298b7d9723fde49938694aa6", "score": "0.5934262", "text": "static public function filenameToId($filename)\n\t{\n\t\t$s = '';\n\t\t$l = 0;\n\t\t$name = pathinfo($filename, PATHINFO_BASENAME);\n\t\twhile (is_numeric(substr($name, $l, 1)) && $l < strlen($name)) {\n\t\t\t$s .= substr($name, $l, 1);\n\t\t\t$l++;\n\t\t}\t\n\t\tif ($s > 0) \n\t\t\treturn $s;\n\t\treturn false;\t\n\t}", "title": "" }, { "docid": "8fd3ff3e6ed84cb891277d520fc473c0", "score": "0.59255725", "text": "function getImageHash($asset_id) {\n\t\t\n\t}", "title": "" }, { "docid": "0c4e8b20789a9423c49285201b054a69", "score": "0.5922076", "text": "public function id()\n {\n if (!$this->_id)\n {\n $id = NULL;\n foreach ($this->assets AS $asset)\n {\n $id .= $asset->get('hash');\n }\n $this->_id = md5($id);\n }\n\n return $this->_id;\n }", "title": "" }, { "docid": "9179157c8917f53c1755114f821f807a", "score": "0.58996", "text": "function random_hash()\n{\n $chars = \"qwertyuiopasdfghjklzxcvbnm[];',./{}|:<>?1234567890!@#$%^&*()\";\n return sha1(time() . rand(0, 1000) . $chars[rand(0, count($chars))] . microtime());\n}", "title": "" }, { "docid": "70aefbc3eaf6f6144e1f7db03d76d974", "score": "0.5889598", "text": "function recordNumberToHashID($newRecordNum) {\n\t// http://www.hashids.org/ \n\t$hashids = new Hashids\\Hashids(theSalt());\n\treturn $hashids->encrypt($newRecordNum);\n}", "title": "" }, { "docid": "7b82a98b1ce59a1be3b8b4df47ad7c10", "score": "0.58888143", "text": "public function uniqidReal($lenght = 32) {\n if (function_exists(\"random_bytes\")) {\n $bytes = random_bytes(ceil($lenght / 2));\n } elseif (function_exists(\"openssl_random_pseudo_bytes\")) {\n $bytes = openssl_random_pseudo_bytes(ceil($lenght / 2));\n } else {\n throw new Exception(\"no cryptographically secure random function available\");\n }\n return substr(bin2hex($bytes), 0, $lenght);\n }", "title": "" }, { "docid": "91fbb15d9807b403a280a9976b6108aa", "score": "0.58770406", "text": "function upfront_realperson_hash ($value) {\n\t$hash = 5381;\n\t$value = strtoupper($value);\n\tfor ($i = 0; $i < strlen($value); $i++) {\n\t\t$hash = (PHP_INT_SIZE === 8) ? (upfront_left_shift32($hash, 5) + $hash) + ord(substr($value, $i)) : (($hash << 5) + $hash) + ord(substr($value, $i));\n\t}\n\treturn $hash;\n}", "title": "" }, { "docid": "d7703e80e3c048dc0b13e5eac8626894", "score": "0.58699495", "text": "public static function _awesomeHash($a) {\n $b = 16909125; for ($c=0; $c<strlen($a); $c++) {\n $b ^= (GTB_Helper::charCodeAt(self::HASH_SEED, ($c%87))) ^ (GTB_Helper::charCodeAt($a, $c));\n $b = GTB_Helper::unsignedRightShift($b, 23) | $b << 9;\n }\n return '8'. GTB_Helper::hexEncodeU32($b);\n }", "title": "" }, { "docid": "59d325cf44368fdb2de074b626b8fbc7", "score": "0.58551425", "text": "function guidv4($data)\n{\n assert(strlen($data) == 16);\n\n $data[6] = chr(ord($data[6]) & 0x0f | 0x40); // set version to 0100\n $data[8] = chr(ord($data[8]) & 0x3f | 0x80); // set bits 6-7 to 10\n\n return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4));\n}", "title": "" }, { "docid": "6b00f2d24a8dee8df0b01665c69ad8a4", "score": "0.5853071", "text": "function pm_version_hash($file) {\n\tif(!$file) return false;\n\t$full_path = get_template_directory() . $file;\n\treturn hash_file('CRC32',$full_path);\n}", "title": "" }, { "docid": "65ed1f9198bbb332094d926272c20245", "score": "0.58523405", "text": "private function expectedIdPrefix(): string\n {\n return substr(\\hash('sha256', dirname(__DIR__, 8)), 0, 3) . '_';\n }", "title": "" }, { "docid": "1f5b2c74a4b845c92ba8b8d46c8aa29b", "score": "0.58482426", "text": "function _hash($password)\n{\n\t$itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';\n\n\t$random_state = unique_id();\n\t$random = '';\n\t$count = 6;\n\n\tif (strlen($random) < $count)\n\t{\n\t\t$random = '';\n\n\t\tfor ($i = 0; $i < $count; $i += 16)\n\t\t{\n\t\t\t$random_state = md5(unique_id() . $random_state);\n\t\t\t$random .= pack('H*', md5($random_state));\n\t\t}\n\t\t$random = substr($random, 0, $count);\n\t}\n\n\t$hash = _hash_crypt_private($password, _hash_gensalt_private($random, $itoa64), $itoa64);\n\n\tif (strlen($hash) == 34)\n\t{\n\t\treturn $hash;\n\t}\n\n\treturn md5($password);\n}", "title": "" }, { "docid": "83889274b14843d2128acb9b8e042a94", "score": "0.5847197", "text": "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 }", "title": "" }, { "docid": "30d75d2ed9c758fbcc06b9cd2a8daed4", "score": "0.58284116", "text": "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}", "title": "" }, { "docid": "ed9f1ff0a18fce8d8f568a1d8d51a5c7", "score": "0.58226144", "text": "public function getHashId()\n {\n $prefixColumn = static::getHashIdPrefixColumn();\n $prefix = $prefixColumn ? $this->model->attributes[$prefixColumn] : null;\n $hashId = app(HashidGenerator::class)->encode($this->model->getKey());\n\n return ($prefix ? $prefix.'-' : '').$hashId;\n }", "title": "" }, { "docid": "cb8455e00e9a25e03c693f2767bf3293", "score": "0.57955813", "text": "protected function generateID() {\n\t\treturn substr(sha1(microtime()),0,5);\n\t}", "title": "" }, { "docid": "eb55b01d2f16ee99e4afe50cd7f2e68c", "score": "0.57945526", "text": "function _md5_16($string)\r\n {\r\n \treturn pack('H*',md5($string));\r\n }", "title": "" }, { "docid": "6d533a0e661d50cc3b71fa65cb92f63b", "score": "0.57925326", "text": "public function hashIdentifier($identifier) {\n return md5($identifier);\n }", "title": "" }, { "docid": "6b7639cee78626b85984e5fd9ce93cd1", "score": "0.5774556", "text": "function sha1 ($str, $raw_output = false) {}", "title": "" }, { "docid": "4e1c355a1da356da4f9cfed0a60acfaa", "score": "0.5774253", "text": "public function getUniquePublicId() {\r\n\r\n\t\t\t//Seed the random generator\r\n\t\t\tmt_srand($this->makeSeed());\r\n\r\n\t\t\t//Alphanumeric upper/lower array\r\n\t\t\t$alfa = \"1234567890qwrtypsdfghjklzxcvbnm\";\r\n\t\t\t$id = \"\";\r\n\r\n\t\t\t//Loop through and generate the random public id\r\n\t\t\tfor($i = 0; $i < 32; $i ++) {\r\n\t\t\t $id .= $alfa[mt_rand(0, strlen($alfa)-1)];\r\n\t\t\t}\r\n\r\n\t\t\t//If there is a duplicate, run this function recursively\r\n\t\t\tif(!$this->isPublicIdUnique($id)) {\r\n\t\t\t\t$id = $this->getUniquePublicId();\r\n\t\t\t}\r\n\r\n\t\t\t//Return the hash\r\n\t\t\treturn $id;\r\n\t\t}", "title": "" }, { "docid": "2ba934f78f3b8831e53ed3131224abeb", "score": "0.5773329", "text": "public static function uniqidReal($lenght = 6) {\n if (function_exists(\"random_bytes\")) {\n $bytes = random_bytes(ceil($lenght / 2));\n } elseif (function_exists(\"openssl_random_pseudo_bytes\")) {\n $bytes = openssl_random_pseudo_bytes(ceil($lenght / 2));\n } else {\n throw new Exception(\"no cryptographically secure random function available\");\n }\n return substr(bin2hex($bytes), 0, $lenght);\n }", "title": "" }, { "docid": "f8c7a35bc856ecb30bbe0eeea6799006", "score": "0.57705045", "text": "public function testHashDir1000450()\n {\n $dir = FileSystem::getHashDir(1000450);\n $expected = '1000001-1010000';\n PHPUnit_Framework_Assert::assertEquals($expected, $dir);\n\n }", "title": "" }, { "docid": "ece86a9955f505d806de2cb3ca09cf37", "score": "0.5767462", "text": "public function getHash(): string\n {\n return $this->data->hash;\n }", "title": "" }, { "docid": "c5589be4647d0917ce71b8564a6c7fad", "score": "0.57550246", "text": "static function getnerateIdByName($name)\n\t{\n\t\treturn md5(strtolower($name));\n\t}", "title": "" }, { "docid": "2e24d2d08a377b09d7afb8542770147d", "score": "0.57507765", "text": "public function hash() :string\n\t{\n\t\treturn sha1($this->serialize());\n\t}", "title": "" }, { "docid": "ba4589fd051d56102e483efb7ae13027", "score": "0.5737133", "text": "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}", "title": "" }, { "docid": "92ba7702da206e956494f0b8a5f989b1", "score": "0.5735667", "text": "public function buildTransactionID()\n {\n return substr(hash('sha256', mt_rand() . microtime()), 0, 20);\n }", "title": "" }, { "docid": "79de545c9d5c19d90877719a26c7e1cc", "score": "0.5731394", "text": "function isUid($input)\n{\n $pattern = \"/^[a-zA-Z0-9]{64}$/\";\n return preg_match($pattern, $input);\n}", "title": "" }, { "docid": "ce0b478bb91d749a40f6614c07740021", "score": "0.5730368", "text": "static public function makeHash($url){\n\t\t$exists = self::where('url', '=', $url)->first();\n\t\tif ($exists){\n\t\t\treturn $exists->hash;\n\t\t}\n\t\t$hashids = new \\Hashids\\Hashids(\n\t\t\t'a8f8b61b-719a-48c4-a5b5-b67a996fb90e',\n\t\t\t6,\n\t\t\t'abcdefghjkmnopqrstwxyz23456789-'\n\t\t);\n\t\t$short_url = self::create(array('url' => $url, 'hash' => 'a'));\n\t\t$short_url->hash = $hashids->encode($short_url->id);\n\t\t$short_url->save();\n\t\treturn $short_url->hash;\n\t}", "title": "" }, { "docid": "4f4376bbe3911a9c5a9bdedcc6a02507", "score": "0.57299507", "text": "public function getSha1();", "title": "" }, { "docid": "02d4ad421241c1ce0c7e214b567ea37b", "score": "0.57298976", "text": "public static function genhash ($url)\r\n\t{\r\n\t\t$hash = 'Mining PageRank is AGAINST GOOGLE\\'S TERMS OF SERVICE. Yes, I\\'m talking to you, scammer.';\r\n\t\t$c = 16909125;\r\n\t\t$length = strlen($url);\r\n\t\t$hashpieces = str_split($hash);\r\n\t\t$urlpieces = str_split($url);\r\n\t\tfor ($d = 0; $d < $length; $d++)\r\n\t\t{\r\n\t\t\t$c = $c ^ (ord($hashpieces[$d]) ^ ord($urlpieces[$d]));\r\n\t\t\t$c = self::zerofill($c, 23) | $c << 9;\r\n\t\t}\r\n\t\treturn '8' . self::hexencode($c);\r\n\t}", "title": "" }, { "docid": "3655dbd3b8670a5f9d512625bf6962ca", "score": "0.5728946", "text": "function xss_hash()\n\t{\n\t\tif ($this->xss_hash == '')\n\t\t{\n\t\t\tif (phpversion() >= 4.2)\n\t\t\t\tmt_srand();\n\t\t\telse\n\t\t\t\tmt_srand(hexdec(substr(md5(microtime()), -8)) & 0x7fffffff);\n\n\t\t\t$this->xss_hash = md5(time() + mt_rand(0, 1999999999));\n\t\t}\n\n\t\treturn $this->xss_hash;\n\t}", "title": "" }, { "docid": "f1597a59421aa48c7ce101b3e4fb4ddf", "score": "0.57271075", "text": "public function testHashDir10001()\n {\n $dir = FileSystem::getHashDir(10001);\n $expected = '10001-20000';\n PHPUnit_Framework_Assert::assertEquals($expected, $dir);\n\n }", "title": "" }, { "docid": "f4e985aa9ba9d13fca20e35a8bd3f6db", "score": "0.5721236", "text": "private static function getUrlHash() {\n $queryStr = self::getUrlQueryString();\n return strRightFrom($queryStr, '#', 1, true);\n }", "title": "" }, { "docid": "b05b5d9258e008279b62114e829a2308", "score": "0.5717201", "text": "function xss_hash()\t{\r\n\t\tif (phpversion() >= 4.2)\r\n\t\t\tmt_srand();\r\n\t\telse\r\n\t\t\tmt_srand(hexdec(substr(md5(microtime()), -8)) & 0x7fffffff);\r\n\r\n\t\t$output = md5(time() + mt_rand(0, 1999999999));\r\n\r\n\t\treturn $output;\r\n\t}", "title": "" }, { "docid": "91f88413ff4f176535c5b53e365dac2b", "score": "0.5715296", "text": "function makeID() {\n $ip = $_SERVER['REMOTE_ADDR'];\n $userID = md5($ip);\n $userID = substr($userID, 0, 10);\n return $userID;\n }", "title": "" }, { "docid": "d28f5cf24a3e5c7eff13b85d1ddd2e27", "score": "0.57139766", "text": "public function getHash() : string {\n\t\t// sha256 = 64 characters\n\t\treturn hash_hmac('sha256', $this->token, getenv('ENCRYPTION_KEY'));\n\t}", "title": "" }, { "docid": "d9f43291225bd83fb92e30c101086a6d", "score": "0.5710947", "text": "public static function getHash()\n {\n if (null === self::$hash)\n {\n self::$hash = substr(md5(sfConfig::get('sf_root_dir')), -8);\n }\n\n return self::$hash;\n }", "title": "" }, { "docid": "72cd479e198284283c2a9cb2236e2a34", "score": "0.57104933", "text": "private function getHashedIdentifier(string $identifier): string\n {\n // TODO: Use Symfony configuration system instead of accessing $_ENV directly\n return hash_hmac('sha256', $identifier, $_ENV['APP_SECRET']);\n }", "title": "" }, { "docid": "5733ecce7df78267483ee57a136463f7", "score": "0.57095546", "text": "public static function bit_32_unique(){\n $random = mt_rand(25,32);\n return substr(md5(time()), 0, $random);\n }", "title": "" }, { "docid": "78e60ba5195ce1f44692cba0df24cd33", "score": "0.5709037", "text": "function uniqFile($id,$filename,$ext) {\n $file = md5($filename).\"\".uniqid($filename, true);\n return \"pro\".$id.\"\".md5($file).\"le.\".$ext ;\n }", "title": "" }, { "docid": "8f5a468d5e21519a6cd6df4e594a0797", "score": "0.57069", "text": "public function getUserIdentifier(): string\n {\n return (string)$this->key_hash;\n }", "title": "" }, { "docid": "c0f670fb209e860e09a17dc6deddee84", "score": "0.5700284", "text": "function _objectkey($n)\r\n {\r\n \treturn substr($this->_md5_16($this->encryption_key.pack('VXxx',$n)),0,10);\r\n }", "title": "" }, { "docid": "4551740d437140b83f9c16812daa858b", "score": "0.5697718", "text": "private function generateKey(): string\n\t{\n\t\t// `+` and `/` are replaced by `-` and `_`, resp.\n\t\t// The other characters (a-z, A-Z, 0-9) are legal within an URL.\n\t\t// As the number of bytes is divisible by 3, no trailing `=` occurs.\n\t\treturn strtr(base64_encode(random_bytes(3 * self::RANDOM_ID_LENGTH / 4)), '+/', '-_');\n\t}", "title": "" }, { "docid": "ef7d2a2e955c9bf7b39aa21c929d7386", "score": "0.5694268", "text": "public function getSha1() {}", "title": "" }, { "docid": "ef7d2a2e955c9bf7b39aa21c929d7386", "score": "0.5694268", "text": "public function getSha1() {}", "title": "" }, { "docid": "f0aa32e54e8048947b9a4dccdf866910", "score": "0.5690894", "text": "public function getIdHash() {\n return encrypt( [ 'id' => $this->id ] );\n }", "title": "" }, { "docid": "0b1f0a0272d810b1576ef3f30bd523a0", "score": "0.5686079", "text": "function generate_external_id($length = 64) {\n\t $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n\t $charactersLength = strlen($characters);\n\t $randomString = '';\n\t for ($i = 0; $i < $length; $i++) {\n\t $randomString .= $characters[rand(0, $charactersLength - 1)];\n\t }\n\t return $randomString;\n\t}", "title": "" }, { "docid": "b304fceff35384d287806693dfbf851a", "score": "0.56854737", "text": "public static function uid() {\n\t\t$length = 10;\n\t\t$characters = \"0123456789abcdefghijklmnopqrstuvwxyz\";\n\t\t$uid = \"\";\n\t\t\n\t\tdo {\n\t\tfor ($i=0; $i<$length; $i++)\n\t\t\t$uid .= $characters[mt_rand(0, strlen($characters) - 1)];\n\t\t} while (array_key_exists($uid, self::$uids));\n\t\t\n\t\treturn $uid;\n\t}", "title": "" }, { "docid": "8843fd98bcb5222efaa403c515d592bb", "score": "0.568254", "text": "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}", "title": "" }, { "docid": "ded101f3c079104156312eae2fa3c541", "score": "0.5680242", "text": "static function controlHash($mixed){\n\t\t$data = json_encode($mixed);\n\t\tif(json_last_error()!=JSON_ERROR_NONE) $data = $mixed;\n\t\treturn sha1(md5($data).APP_CONTROL_SECRET);\n\t}", "title": "" } ]
49c62d2e61faf8ce844654e4e74df3da
Returns the handler type. When present in a media box, the returned value contains one of the following values, or a value from a derived specification: o vide Video track o soun Audio track o hint Hint track When present in a meta box, the returned value contains an appropriate value to indicate the format of the meta box contents.
[ { "docid": "12a37aab7d0393196f8f4ecf380dcc93", "score": "0.66901416", "text": "public function getHandlerType() \n {\n return $this->_handlerType; \n }", "title": "" } ]
[ { "docid": "998717fc89e6d5e87b08975d9016dee9", "score": "0.6857801", "text": "public static function getHandlerType(): string;", "title": "" }, { "docid": "802259a6bb75ef125fb4fceb907d88a1", "score": "0.60425514", "text": "public function getType()\n {\n $mimeType = preg_replace('#^([^/]+)/.*$#', '$1', $this->getMimeType());\n\n if ($mimeType == 'video') {\n return Media::VIDEO;\n }\n\n if ($mimeType == 'audio') {\n return Media::AUDIO;\n }\n\n if ($mimeType == 'image') {\n return Media::IMAGE;\n }\n\n $extension = $this->getExtension();\n\n if (in_array($extension, $this->imagesExtensions())) {\n return Media::IMAGE;\n }\n\n if (in_array($extension, $this->audiosExtensions())) {\n return Media::AUDIO;\n }\n\n if (in_array($extension, $this->videosExtensions())) {\n return Media::VIDEO;\n }\n\n return Media::OTHER;\n }", "title": "" }, { "docid": "6e319211cbaf110cb22fdb77391541f5", "score": "0.60117596", "text": "private function meta_type() {\n\t\treturn sanitize_key( $this->get_meta_type() );\n\t}", "title": "" }, { "docid": "d8b0e359730ed98942133634c41a61fb", "score": "0.58349705", "text": "public static function getType()\n {\n if ( !empty($_SESSION['pagedialog']) )\n {\n $arr = explode('|',$_SESSION['pagedialog']);\n return strtolower(substr($arr[0],0,1));\n }\n return 'o'; //i=info, e=error, w=warning, o=ok (default)\n }", "title": "" }, { "docid": "176202950f165c08ee091e73c0fca06c", "score": "0.57209355", "text": "abstract public function get_meta_type();", "title": "" }, { "docid": "c2a888088598ca4af73cc88914703557", "score": "0.5683063", "text": "public static function get_content_type() {\n\tif (empty($_SERVER['CONTENT_TYPE'])) {\n\t\treturn null;\n\t}\n\t\n\t// catch the most common formats\n\tif ($_SERVER['CONTENT_TYPE'] == 'application/json') {\n\t\treturn 'json';\n\t}\n\tif ($_SERVER['CONTENT_TYPE'] == 'application/xml') {\n\t\treturn 'xml';\n\t}\n\t\n\t// use a generic method\n\treturn self::get_primary_mime_type($_SERVER['CONTENT_TYPE']);\n}", "title": "" }, { "docid": "883c14c52038ce24a4d607008328cbcd", "score": "0.5650074", "text": "public function getType()\n {\n $type = null;\n if ($this->getParent() instanceof ElementHandler && $this->getParent()->hasAttribute('type')) {\n $type = $this->getParent()->getAttribute('type');\n }\n return $type;\n }", "title": "" }, { "docid": "b1e039036968f865521dcec23370dfde", "score": "0.5646511", "text": "public function getMediaType()\n {\n return MediaTypes::WORD;\n }", "title": "" }, { "docid": "e9fc8cc685f5dd9fa89394f3f4598e79", "score": "0.5575043", "text": "public function getClientTypeFromHandler()\n\t{\n\t\treturn $this->handler->getClientType(\n\t\t\t$this->fields['PS_MODE'] ?? null\n\t\t);\n\t}", "title": "" }, { "docid": "66920a87ae08b397e3d7b57c4593a346", "score": "0.5553284", "text": "public function getType()\n {\n return 'Media';\n }", "title": "" }, { "docid": "9dcdf129bf2c4dcbfa48c815c1f6bb39", "score": "0.55433494", "text": "protected function _getMediaType()\n {\n if ($this->hasData('media_type')) {\n return $this->_getData('media_type');\n }\n return $this->getRequest()->getParam('type');\n }", "title": "" }, { "docid": "b5d1b48ae25ad7ced8d0add54eb50734", "score": "0.5497311", "text": "public function getMediaType()\n {\n return $this->media_type;\n }", "title": "" }, { "docid": "38a42d8bf5c846c0964acadf87584c83", "score": "0.54440206", "text": "public function detectType()\n {\n $types = [\n 'message',\n 'edited_message',\n 'channel_post',\n 'edited_channel_post',\n 'inline_query',\n 'chosen_inline_result',\n 'callback_query',\n ];\n\n return $this->keys()\n ->intersect($types)\n ->pop();\n }", "title": "" }, { "docid": "522ef431ed26c1748ee22c5d598d4f0e", "score": "0.5423586", "text": "public function getMediaType()\n {\n if (array_key_exists(\"mediaType\", $this->_propDict)) {\n return $this->_propDict[\"mediaType\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "25319c9efb42e91457b65fdb22f36fef", "score": "0.54225546", "text": "protected function get_form_type() {\n\t\treturn ( isset( $_GET['form_type'] ) ? sanitize_text_field( $_GET['form_type'] ) : '' );\n\t}", "title": "" }, { "docid": "840beacc56a0985225cc1f22b7caa692", "score": "0.5380246", "text": "public function get_type() {\n\n\t\tswitch ( $this->get_name() ) {\n\t\t\tcase 'length':\n\t\t\tcase 'width':\n\t\t\tcase 'height': return 'dimension';\n\t\t\tdefault: return $this->get_name();\n\t\t}\n\t}", "title": "" }, { "docid": "f6e1a282a49a8e13d46d1ca0f031ff3f", "score": "0.53783375", "text": "private function get_mime_type_for_media() {\n\t\tswitch ( $this->get_extension() ) {\n\t\t\tcase 'aac':\n\t\t\t\treturn 'audio/aac';\n\t\t\tcase 'flac':\n\t\t\t\treturn 'audio/flac';\n\t\t\tcase 'gif':\n\t\t\t\treturn 'image/gif';\n\t\t\tcase 'jpe':\n\t\t\tcase 'jpeg':\n\t\t\tcase 'jpg':\n\t\t\t\treturn 'image/jpeg';\n\t\t\tcase 'm4a':\n\t\t\t\treturn 'audio/m4a';\n\t\t\tcase 'mp3':\n\t\t\t\treturn 'audio/mpeg';\n\t\t\tcase 'png':\n\t\t\t\treturn 'image/png';\n\t\t\tcase 'wav':\n\t\t\t\treturn 'audio/wav';\n\t\t\tdefault:\n\t\t\t\treturn $this->mime_type;\n\t\t}\n\t}", "title": "" }, { "docid": "941650e3ec16b0acb88001657ab71953", "score": "0.53483075", "text": "public function get_featured_media_type() {\n\t\tif ( $media_type = $this->get_fm_field( 'cst_production', 'featured_media', 'featured_media_type' ) ) {\n\t\t\t$video_type = $this->get_fm_field( 'cst_production', 'featured_media', 'featured_video' );\n\t\t\tif ( 'embed_video' === $media_type ) {\n\t\t\t\treturn $media_type;\n\t\t\t}\n\t\t\tif ( 'video' === $media_type && '--disable--' !== $video_type ) {\n\t\t\t\treturn $media_type;\n\t\t\t}\n\t\t\treturn 'image';\n\t\t} else {\n\t\t\treturn 'image';\n\t\t}\n\t}", "title": "" }, { "docid": "1e8e4ea53d65804582786c86f68fac76", "score": "0.5342967", "text": "public function getHandler()\n {\n $type = $this->getType();\n\n return $type->getHandler();\n }", "title": "" }, { "docid": "88a28703d0d869292e82945e2f494479", "score": "0.5308098", "text": "public function get_type() {\r\n\t\treturn 'uc_mp3';\r\n\t}", "title": "" }, { "docid": "ea65b64877b2511b78c431ec7f2d7b34", "score": "0.5306851", "text": "public function getMediaTypes()\n {\n if (array_key_exists(\"mediaTypes\", $this->_propDict)) {\n return $this->_propDict[\"mediaTypes\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "06be3f7a24cb0b12c35970ed1772e85a", "score": "0.53067106", "text": "public function type() {\n list($view, $plain, $raw) = $this->parseView($this->view);\n\n if( isset($view) ) {\n return 'text/html';\n } elseif ( isset($plain) ) {\n return 'text/plain';\n } elseif( isset($raw) ) {\n return 'text/raw';\n }\n }", "title": "" }, { "docid": "0042ccaf36bde26147b14625ea734c55", "score": "0.52930385", "text": "public function getMediaType()\n {\n return $this->getKey();\n }", "title": "" }, { "docid": "0042ccaf36bde26147b14625ea734c55", "score": "0.52930385", "text": "public function getMediaType()\n {\n return $this->getKey();\n }", "title": "" }, { "docid": "8948dbb7d3ea83526383b824f82d21be", "score": "0.52908826", "text": "public function determineContentType()\n {\n $acceptHeader = request()->getHeaderLine('Accept');\n $selectedContentTypes = array_intersect(explode(',', $acceptHeader), $this->allowedContentTypes);\n if (count($selectedContentTypes)) {\n return current($selectedContentTypes);\n }\n \n // handle +json and +xml specially\n if (preg_match('/\\+(json|xml)/', $acceptHeader, $matches)) {\n $mediaType = 'application/' . $matches[1];\n if (in_array($mediaType, $this->allowedContentTypes)) {\n return $mediaType;\n }\n }\n \n if (strpos(PHP_SAPI, 'cli') !== false) {\n $this->defaultContentType = 'text/cli';\n }\n \n return $this->defaultContentType;\n }", "title": "" }, { "docid": "c5bd950acf2ade12955bba6e26bfdc23", "score": "0.5257859", "text": "protected function getScriptHandler()\n {\n if (null !== $typeInfo = $this->scriptType()->first()) {\n // lookup related script type model\n return $typeInfo->class_name;\n }\n\n return null;\n }", "title": "" }, { "docid": "bf6fb6f2aeee35c87e70ca883356ac62", "score": "0.52559316", "text": "function get_Type() {\n\t\tif (!$this->parsed) $this->_parseContent();\n\t\treturn ($this->xsi_type? $this->xsi_type : $this->type);\n\t}", "title": "" }, { "docid": "936ea52874bdd353bfb928d10ebd3360", "score": "0.5254534", "text": "private function getContentType()\n {\n $result = null;\n if ($this->hasHeader('Content-Type')) {\n $result = $this->getHeader('Content-Type')[0];\n }\n\n return $result;\n }", "title": "" }, { "docid": "d99a30e28207e82a9f5f270afe60521d", "score": "0.52401537", "text": "function Guess_Content_Type($handle) {\n\n$handle = strtolower($handle);\n\n$ext = \".\".end(explode(\".\", $handle));\nswitch($ext)\n\t{\n\tcase '.jpg': $content_type = \"image/jpeg\"; break;\n\tcase '.gif': $content_type = \"image/gif\"; break;\n\tcase '.png': $content_type = \"image/png\"; break;\n\tcase '.css': $content_type = \"text/css\"; break;\n\tcase '.js': $content_type = \"application/javascript\"; break;\n\tdefault: $content_type = \"image/jpeg\"; break;\n\t}\n\nreturn $content_type;\n\n}", "title": "" }, { "docid": "8ca6d0bae76d7fda6e8b0c836a842285", "score": "0.5232597", "text": "function getContentType() {\n\t\t$ret = NULL;\n\t\tif( isset( $this->mInfo['content_type_guid'] ) ) {\n\t\t\t$ret = $this->mInfo['content_type_guid'];\n\t\t} elseif( $this->mContentTypeGuid ) {\n\t\t\t// for unloaded classes\n\t\t\t$ret = $this->mContentTypeGuid;\n\t\t} elseif( $this->mType['content_type_guid'] ) {\n\t\t\t// unloaded content might have this\n\t\t\t$ret = $this->mType['content_type_guid'];\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "c8c305b202f6b6bea60b1861bcd36265", "score": "0.52319866", "text": "public function kind()\n {\n return $this->info['kind'];\n }", "title": "" }, { "docid": "c4094c6028503e09297dafe515f9a07e", "score": "0.52186817", "text": "protected function getMediaType() {\n return MediaType::load($this->getEntityBundle());\n }", "title": "" }, { "docid": "65817a1b7bb06689529d726d85775580", "score": "0.5213954", "text": "public function getFormType()\n {\n return 'oo_media_base';\n }", "title": "" }, { "docid": "d73cddf1a7574b27714bdd4065679c11", "score": "0.5190546", "text": "public function getMediaType()\n {\n return $this->type;\n }", "title": "" }, { "docid": "149d779adeb1db5611c4e87a4d550047", "score": "0.51666063", "text": "public function getType(): string\n {\n return self::$BOX_TYPE;\n }", "title": "" }, { "docid": "08f255430d62bed4899efe878d82d561", "score": "0.5158185", "text": "public function getMediaType();", "title": "" }, { "docid": "44f78eed333ede6a68483d965c675ec3", "score": "0.5152887", "text": "public function getScreenType($context){\n\t\tScreen::getScreenSize($sz);\n\t\tif($sz->width>$context->params['longWidth']){\n\t\t\treturn Util::$BIG_SIZE;\n\t\t}else if($sz->width<$context->params['shortWidth']){\n\t\t\treturn Util::$SMALL_SIZE;\n\t\t}else {\n\t\t\treturn Util::$NORMAL_SIZE;\n\t\t}\n//#teaos:endif\n\t}", "title": "" }, { "docid": "ca623b20964804e6e99168abcc0febae", "score": "0.51478994", "text": "function get_resource_type ($handle) {}", "title": "" }, { "docid": "9cbb4a3a684729033cede9fb367eb89c", "score": "0.5125213", "text": "public function get_type() {\n\t\treturn self::CONTROL_TYPE;\n\t}", "title": "" }, { "docid": "5656be3c349e77b265ecf7c46c196061", "score": "0.5120999", "text": "public function get_kind()\r\n\t{\r\n\t\treturn $this->get_attr('kind');\r\n\t}", "title": "" }, { "docid": "8a74558b9f9645c9c77ca2a234f55689", "score": "0.51159644", "text": "public function get_content_handler($handler = null)\n\t{\n\t\tif ( ! empty($this->handler_object))\n\t\t{\n\t\t\treturn $this->handler_object;\n\t\t}\n\n\t\t// When not yet set, use $handler or detect the prefered handler (string = string, otherwise serialize)\n\t\tif (empty($this->content_handler) && empty($handler))\n\t\t{\n\t\t\tif ( ! empty($handler))\n\t\t\t{\n\t\t\t\t$this->content_handler = $handler;\n\t\t\t}\n\t\t\tif (is_string($this->contents))\n\t\t\t{\n\t\t\t\t$this->content_handler = (Config::get('cache.string_handler') !== false) ? Config::get('cache.string_handler') : 'string';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$type = is_object($this->contents) ? get_class($this->contents) : gettype($this->contents);\n\t\t\t\t$this->content_handler = (Config::get('cache.'.$type.'_handler') !== false) ? Config::get('cache.'.$type.'_handler') : 'serialized';\n\t\t\t}\n\t\t}\n\n\t\t$class = 'Cache_Handler_'.ucfirst($this->content_handler);\n\t\t$this->handler_object = new $class();\n\n\t\treturn $this->handler_object;\n\t}", "title": "" }, { "docid": "ee784cd408aac38ba17421dfc3dc6165", "score": "0.51120716", "text": "function osc_resource_type() {\n return (string) osc_resource_field(\"s_content_type\");\n }", "title": "" }, { "docid": "ae0dd2db8a7e279b1a833e0935423ea5", "score": "0.5101962", "text": "protected function _type() {\n if (empty($this->type)) {\n if (!empty($this->data['resource_type_link'])) {\n list($url, $type) = explode('#', $this->data['resource_type_link']);\n $this->type = $type;\n } elseif (!empty($this->data['broadcast_id'])) {\n $this->type = 'broadcast';\n } else {\n return null;\n }\n }\n return $this->type;\n }", "title": "" }, { "docid": "1aa767812f576ac3c81d49de7532c88c", "score": "0.51008046", "text": "function am_get_object_type(): string {\n\tif ( isset( $_POST['data_type'] ) ) {\n\t\tif ( 'post' === $_POST['data_type'] ) {\n\t\t\treturn stripslashes( sanitize_text_field( $_POST['name'] ) );\n\t\t} else {\n\t\t\treturn esc_html__( 'Object', AM_TEXT );\n\t\t}\n\t}\n}", "title": "" }, { "docid": "d1d9f4fc07ad1b5af21eeb8528518b1c", "score": "0.50998837", "text": "function getContentType();", "title": "" }, { "docid": "e2ef411e77ac23f3658a5c6ce606e900", "score": "0.5097751", "text": "public function getClientMediaType()\n {\n return $this->type;\n }", "title": "" }, { "docid": "d1caba5277f567f66680c82c3ffa8d1c", "score": "0.50931996", "text": "public function mediaMetaBox() {\n\t\tglobal $post;\n\t\t$this->theme->set('data', $this->theme->metaToData($post->ID));\n\t\techo $this->theme->render('admin'.DS.'media_meta_box');\n\t}", "title": "" }, { "docid": "6a4d4c0ce4e611d2307194b26f5837cd", "score": "0.50851136", "text": "function siw_get_meta_box( string $meta_box_id ): ?\\RW_Meta_Box {\n\n\tif ( ! function_exists( 'rwmb_get_registry' ) ) {\n\t\treturn null;\n\t}\n\n\t$meta_box_registry = rwmb_get_registry( 'meta_box' );\n\t$meta_box = $meta_box_registry->get( $meta_box_id );\n\treturn is_a( $meta_box, \\RW_Meta_Box::class ) ? $meta_box : null;\n}", "title": "" }, { "docid": "fa453622f8b2b49a600e592bffe5be6d", "score": "0.5078296", "text": "public function Get_Content_Type()\n\t{\n\t\treturn $this->content_type;\n\t}", "title": "" }, { "docid": "660eb5f08a5433bb057ca9b5e1dbb7b0", "score": "0.5076763", "text": "private function get_mime_type() {\n\t\t$pathinfo = pathinfo($this->request_uri);\n\t\t$mime_type = '';\n\t\tswitch ($pathinfo['extension']) {\n\t\t\tcase 'htm' :\n\t\t\tcase 'html': $mime_type = 'text/html';\n\t\t\t break;\n\n\t\t\tcase 'css' : $mime_type = 'text/css';\n\t\t\t break;\n\n\t\t\tcase 'ico' : $mime_type = 'image/x-icon';\n\t\t\t break;\n\n\t\t\tcase 'js' : $mime_type = 'text/javascript';\n\t\t\t break;\n\n\t\t\tcase 'png' : $mime_type = 'image/png';\n\t\t\t break;\n\n\t\t\tcase 'gif' : $mime_type = 'image/gif';\n\t\t\t break;\n\n\t\t\tcase 'jpg' :\n\t\t\tcase 'jpeg': $mime_type = 'image/jpeg';\n\t\t\t break;\n\n\t\t\tcase 'pdf' : $mime_type = 'application/pdf';\n\t\t\t\t\t\t break;\n\n\t\t\tcase 'txt' : $mime_type = 'text/plain';\n\t\t\t\t\t\t break;\n\n\t\t\tcase 'svg' : $mime_type = 'image/svg+xml';\n\t\t\t\t\t\t break;\n\n\t\t\tdefault : $mime_type = 'application/octet-stream';\n\t\t}\n\n\t\treturn $mime_type;\n\t}", "title": "" }, { "docid": "7ed3474c99164082a250af74eed2ca4b", "score": "0.50588775", "text": "function getType(){\n\t\treturn $this->file[\"type\"];\n\t}", "title": "" }, { "docid": "8094993ab819ac65842af6f5eaa8c63d", "score": "0.5048046", "text": "public function getType() {\n\t\treturn $this->getField('codec_type');\n\t}", "title": "" }, { "docid": "caafbe893f21062a3175ac241eab449d", "score": "0.5045911", "text": "public function get_message_type() {\n return $this->messagetype;\n }", "title": "" }, { "docid": "df2c78b734f5f6a75cb1379aa1ece79b", "score": "0.5044699", "text": "public static function guessType($value)\n {\n if ($value === null) {\n return MetaHelper::META_TYPE_NULL;\n }\n if (is_array($value)) {\n return MetaHelper::META_TYPE_ARRAY;\n }\n if (\n is_string($value) &&\n !is_object(json_decode($value)) &&\n !is_array(json_decode($value)) &&\n !preg_match('/^[0-9\\.]+$/', $value)) {\n return MetaHelper::META_TYPE_STRING;\n }\n if (is_string($value) && (is_object(json_decode($value)) || is_array(json_decode($value)))) {\n return MetaHelper::META_TYPE_JSON;\n }\n if ($value instanceof Collection || $value instanceof \\Illuminate\\Support\\Collection) {\n return MetaHelper::META_TYPE_COLLECTION;\n }\n if (($value === true || $value === false) && $value !== 1 && $value !== 0) {\n return MetaHelper::META_TYPE_BOOLEAN;\n }\n if (preg_match('/^[0-9\\.]+$/', $value)) {\n return MetaHelper::META_TYPE_INTEGER;\n }\n return MetaHelper::META_TYPE_STRING;\n }", "title": "" }, { "docid": "93bd9a514e9e32c8933c328a0b4d9dd7", "score": "0.503988", "text": "public function getImageType()\n {\n $data = $this->getData('image_type');\n\n switch($data) {\n case 'image':\n $data = 'Base image';\n break;\n\n case 'small_image':\n $data = 'Small image';\n break;\n\n case 'thumbnail':\n $data = 'Thumbnail';\n break;\n\n case 'media_image':\n $data = 'Swatches';\n break;\n }\n\n return $data;\n }", "title": "" }, { "docid": "8ca050aed54210824ccfa75a61a974ca", "score": "0.5037279", "text": "public function getMediaType() {\r\n\t\treturn $this->_mediaType;\r\n\t}", "title": "" }, { "docid": "d2a6a2d9ecd9217b6f4ef4aa20914844", "score": "0.5033047", "text": "public function get_content_type() {\n return $this->content_type;\n }", "title": "" }, { "docid": "b1864423313d982f2b16cafabee7cf9b", "score": "0.50296646", "text": "public function getContentType()\n {\n return $this->contentTypes[$this->format];\n }", "title": "" }, { "docid": "24f22efed9b905850132875724cb2f7e", "score": "0.50190735", "text": "public function getHandler(): string\n {\n return $this->handler;\n }", "title": "" }, { "docid": "bfb167ce1b33237c506f9f86d857d005", "score": "0.50151855", "text": "public function contentType()\n {\n if ( ! array_key_exists('content_type', $this->attributes)) {\n return null;\n }\n\n return $this->attributes['content_type'];\n }", "title": "" }, { "docid": "74e0cbfe6e9831d515f83b9c09269d54", "score": "0.5014707", "text": "public function kindOf()\n {\n switch ($this->mytype) {\n case 3:\n return 'struct';\n case 2:\n return 'array';\n case 1:\n return 'scalar';\n default:\n return 'undef';\n }\n }", "title": "" }, { "docid": "55cd6ef006c187432a4b6ada8bb96b79", "score": "0.5012772", "text": "abstract public function getMediaType();", "title": "" }, { "docid": "5889a2ed94683ca3efe1262fe551d29d", "score": "0.50063103", "text": "public function getContentType()\n {\n if (array_key_exists(\"contentType\", $this->_propDict)) {\n return $this->_propDict[\"contentType\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "ba9a10b20d02cb22a9933872e8f4c648", "score": "0.5001343", "text": "public function get_type()\r\n\t{\r\n\t\treturn $this->get_attr('type');\r\n\t}", "title": "" }, { "docid": "ff1da5a86bd998b4557d0d4520606dd3", "score": "0.4999634", "text": "function pexeto_get_slider_type() {\r\n\t\tglobal $post;\r\n\t\t$slider_type = null;\r\n\r\n\t\tif ( !empty( $post ) ) {\r\n\t\t\t$page_settings = pexeto_get_post_meta( $post->ID, array( 'slider', 'blog_layout' ) );\r\n\t\t\tif ( !empty( $page_settings['slider'] ) ) {\r\n\t\t\t\t$slider = PexetoCustomPageHelper::get_slider_data_parts( $page_settings['slider'] );\r\n\t\t\t\t$slider_type = $slider[0];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $slider_type;\r\n\t}", "title": "" }, { "docid": "1bac007d38ebb2e2b2e6ee848649e517", "score": "0.4998205", "text": "public function get_handler_class_name() {\n\t\treturn $this->handler_class_name;\n\t}", "title": "" }, { "docid": "d0895f0cc157b90e57c341a4c3d324fc", "score": "0.49972633", "text": "public function getContentType()\n {\n return $this->getHttpHeader('Content-Type', $this->options['content_type']);\n }", "title": "" }, { "docid": "a374f87a7f354d7c70db23fdbe6f9008", "score": "0.499712", "text": "public function detectContentType();", "title": "" }, { "docid": "e394ae081247333de7144cf394e11586", "score": "0.49967146", "text": "public static function get_type(){\n if(isset($_GET['type'])){\n return $_GET['type'];\n }else if(isset($_GET['post_type'])){\n return $_GET['post_type'];\n }else{\n return null;\n }\n }", "title": "" }, { "docid": "b0d834161b4c1063288328d50b7ecd60", "score": "0.49945447", "text": "public function get_content_type() {\n\t\tif ( ! $this->content_type && $this->html ) {\n\t\t\t$this->content_type = apply_filters( 'everest_forms_email_default_content_type', 'text/html', $this );\n\t\t} elseif ( ! $this->html ) {\n\t\t\t$this->content_type = 'text/plain';\n\t\t}\n\n\t\treturn apply_filters( 'everest_forms_email_content_type', $this->content_type, $this );\n\t}", "title": "" }, { "docid": "69020d91233b297d0baf627e648d0a04", "score": "0.4993148", "text": "function getType()\n {\n return $this->sType;\n }", "title": "" }, { "docid": "3c5c8baa70b31065444c554c1fad1005", "score": "0.49904996", "text": "public function returns($type)\n {\n switch ($type) {\n case'img':\n return $this->_imageHandler;\n break;\n\n case'width':\n return $this->_imageWidth;\n break;\n \n case'height':\n return $this->_imageHeight;\n break;\n\n case'mime':\n return $this->_mime;\n break;\n \n case'type':\n return $this->_imageType;\n break;\n\n default:\n return NULL;\n }\n }", "title": "" }, { "docid": "ca527d5fd30a09d452d61dbfce304ded", "score": "0.49851146", "text": "public function getContentType()\n {\n return $this->getAttribute(\"Content-Type\");\n }", "title": "" }, { "docid": "c6b8fb89f928e0aa82ca0fe0d218bc2a", "score": "0.49849638", "text": "public function getType(){\n\t\treturn substr(strrchr($this->imageInfo[\"mime\"], '/'), 1);\n\t}", "title": "" }, { "docid": "f7870be31d02bc8c7ea2cd85ffe717b7", "score": "0.49804786", "text": "protected function type()\n {\n return $this->options['type'];\n }", "title": "" }, { "docid": "b3696cf6aaa475de6b882b1a18d51418", "score": "0.49750188", "text": "function getType() {\n\t\tif (!$this->parsed) $this->_parseContent();\n\t\treturn ($this->xsi_type? $this->xsi_type : $this->type);\n\t}", "title": "" }, { "docid": "157fd6c633b550dd3ab2801eb2c18df9", "score": "0.49690014", "text": "public function getType() {\r\n return $this->file_type;\r\n }", "title": "" }, { "docid": "f51f9bfa06d5f0201fe5a95086dffd18", "score": "0.49656922", "text": "public function getMusicianType()\n\t{\n\t\treturn $this->type;\n\t}", "title": "" }, { "docid": "07fdf44ee5355182a2d024a4ef80cb6f", "score": "0.49604556", "text": "public function getContentType()\n {\n if(!$this->headers->get('CONTENT_TYPE'))\n return null;\n $contentType = $this->headers->get('CONTENT_TYPE');\n if ($contentType) {\n $contentTypeParts = preg_split('/\\s*[;,]\\s*/', $contentType);\n\n return strtolower($contentTypeParts[0]);\n }\n return null;\n }", "title": "" }, { "docid": "e4eee8d324a50ba7328ed2e4694be33d", "score": "0.4954332", "text": "public function getFieldTypeIdentifier()\n {\n return 'keymedia';\n }", "title": "" }, { "docid": "cb4b6cea919d33f8b048d76531b1ee28", "score": "0.4952549", "text": "public static function CONTENT_TYPE_ID()\n\t{\n\t\treturn (GalleryFiltersChild::TEST_CONTENT_TYPE_ID);\n\t}", "title": "" }, { "docid": "223d5d2134fa340f9ca8900e7ec97965", "score": "0.49484673", "text": "public function getContentType();", "title": "" }, { "docid": "223d5d2134fa340f9ca8900e7ec97965", "score": "0.49484673", "text": "public function getContentType();", "title": "" }, { "docid": "223d5d2134fa340f9ca8900e7ec97965", "score": "0.49484673", "text": "public function getContentType();", "title": "" }, { "docid": "223d5d2134fa340f9ca8900e7ec97965", "score": "0.49484673", "text": "public function getContentType();", "title": "" }, { "docid": "223d5d2134fa340f9ca8900e7ec97965", "score": "0.49484673", "text": "public function getContentType();", "title": "" }, { "docid": "223d5d2134fa340f9ca8900e7ec97965", "score": "0.49484673", "text": "public function getContentType();", "title": "" }, { "docid": "223d5d2134fa340f9ca8900e7ec97965", "score": "0.49484673", "text": "public function getContentType();", "title": "" }, { "docid": "223d5d2134fa340f9ca8900e7ec97965", "score": "0.49484673", "text": "public function getContentType();", "title": "" }, { "docid": "223d5d2134fa340f9ca8900e7ec97965", "score": "0.49484673", "text": "public function getContentType();", "title": "" }, { "docid": "c1a55ef47e597f81586709c499b089df", "score": "0.4943202", "text": "public function mimeType()\n {\n return $this->request['type'];\n }", "title": "" }, { "docid": "c14e300fed6c57df1a813254e39a39f2", "score": "0.49424243", "text": "protected static function get_mime():string {\n\t\t\t$mime = $_SERVER['HTTP_ACCEPT'];\n\t\t\treturn $mime;\n\t\t}", "title": "" }, { "docid": "1a4464b27197994b5165a51b4c046c3c", "score": "0.49402642", "text": "public function getContentType()\n {\n return $this->get(self::CONTENT_TYPE);\n }", "title": "" }, { "docid": "54ed54d07c9f3a87381c9593fa30d44e", "score": "0.4937493", "text": "function content_type($content_type);", "title": "" }, { "docid": "1cb2817a3cc155b7f6651bd03e0aa628", "score": "0.4936581", "text": "function getGeneralMediaType($mimeTypeURI){\n\t\t $output = false;\n\t\t if($mimeTypeURI != false){\n\t\t\t\t$uriEx = explode(\"/\", $mimeTypeURI);\n\t\t\t\t$output = $uriEx[count($uriEx) - 2]; //second from the last part of the URI is the general media type\n\t\t }\n\t\t \n\t\t return $output;\t\t \n\t }", "title": "" }, { "docid": "c2d45b0eb45fa3333c4482ba332cee8c", "score": "0.49292794", "text": "final public function getContentType()\n {\n return $this->getValue('content-type');\n }", "title": "" }, { "docid": "038ed427da4e5fc7989224fa11f2791d", "score": "0.49290255", "text": "protected function getType()\n {\n if (request()->has('response_type')) {\n return request()->get('response_type');\n }\n\n if ($this->type) {\n return $this->type;\n }\n\n if (request()->wantsJson() || request()->is('api/*')) {\n return 'json';\n }\n\n if (request()->ajax()) {\n return 'ajax';\n }\n\n return 'http';\n }", "title": "" }, { "docid": "1683704db1139f15a8037b9aab1f19dc", "score": "0.49246", "text": "public function getType()\n {\n return $this->_data['type'];\n }", "title": "" }, { "docid": "4b630bc82af0c716618515d9b5bcc771", "score": "0.49227273", "text": "public function getFormType();", "title": "" }, { "docid": "b7cb8d320f7d210873bf590c13e8efc4", "score": "0.49226752", "text": "public function getMessageType()\n {\n return $this->messageType;\n }", "title": "" } ]
8571b426f755ebe52bf137f263af0889
Set PhraseTrigramSlop option. As with 'ps' but sets default slop factor for 'pf3'. If not specified, 'ps' will be used.
[ { "docid": "5dacaa4d8acf8f7abc6f2fd96fd27cec", "score": "0.733727", "text": "public function setPhraseTrigramSlop(int $phraseTrigramSlop): self\n {\n $this->setOption('phrasetrigramslop', $phraseTrigramSlop);\n\n return $this;\n }", "title": "" } ]
[ { "docid": "6c5d8bc950838af3e9bfd2a92472b9da", "score": "0.779182", "text": "public function setTrigramPhraseSlop($slop) {}", "title": "" }, { "docid": "c135cf9ff91e7545f50f4933c431fede", "score": "0.7079483", "text": "public function setPhraseSlop($slop) {}", "title": "" }, { "docid": "49366ec269db079fd188d59190671be8", "score": "0.66951966", "text": "public function setQueryPhraseSlop($slop) {}", "title": "" }, { "docid": "873969bee9b0d790ac897934e870b4dd", "score": "0.6684229", "text": "public function setBigramPhraseSlop($slop) {}", "title": "" }, { "docid": "dcfbcd499edf9fe9fbf0bf185b57904f", "score": "0.57587683", "text": "public function setPhraseBigramSlop(int $phraseBigramSlop): self\n {\n $this->setOption('phrasebigramslop', $phraseBigramSlop);\n\n return $this;\n }", "title": "" }, { "docid": "6f748cb78ba075957441ec00114af64d", "score": "0.5622477", "text": "public function addTrigramPhraseField($field, $boost, $slop) {}", "title": "" }, { "docid": "f84f7f96f2f889253f3daeb85e1f1f1f", "score": "0.4847133", "text": "public function addPhraseField($field, $boost, $slop) {}", "title": "" }, { "docid": "9d29d820057a56116f2c3f55cc5299d1", "score": "0.47030026", "text": "public function setPhraseTrigramFields(string $phraseTrigramFields): self\n {\n $this->setOption('phrasetrigramfields', $phraseTrigramFields);\n\n return $this;\n }", "title": "" }, { "docid": "cd940ae4405db11eb3d7a19cbb7f151d", "score": "0.4646252", "text": "public function setTrigramPhraseFields($fields) {}", "title": "" }, { "docid": "5fd7d241812dbfe6d6e9c1f71ee34d49", "score": "0.46055356", "text": "public function addBigramPhraseField($field, $boost, $slop) {}", "title": "" }, { "docid": "208fa80f26c1c8908c4226ba78f75382", "score": "0.4498234", "text": "public function setIntbconfusegramsltr($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->intbconfusegramsltr !== $v) {\n $this->intbconfusegramsltr = $v;\n $this->modifiedColumns[ConfigInTableMap::COL_INTBCONFUSEGRAMSLTR] = true;\n }\n\n return $this;\n }", "title": "" }, { "docid": "6ebadd3a8089820656c0dc223bf55254", "score": "0.43493196", "text": "public function setRpp($rpp)\n {\n //Argument 1 must be a string\n Argument::i()->test(1, 'string');\n\n //if it is greater than 100\n if($rpp > 100) {\n //set it to 100\n $rpp = 100;\n }\n\n $this->query['rpp'] = $rpp;\n\n return $this;\n }", "title": "" }, { "docid": "9c6b409776398897a4e0b40e8b556b5c", "score": "0.43284225", "text": "public function setEnableSpokenPunctuationValue($var)\n {\n $this->writeWrapperValue(\"enable_spoken_punctuation\", $var);\n return $this;}", "title": "" }, { "docid": "b2c8b64671f1d4f6577e61afe636225e", "score": "0.43188262", "text": "public function setRpp($rpp){\n\t\t\tif ($rpp >0){\n\t\t\t\t$this->rpp =\"rpp=\".$rpp;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a2a6747a5c90d40ec59099403c948582", "score": "0.42520618", "text": "public function set_jump_size($pgs) {\n\t\t$pgs = (int) $pgs;\n\t\tif ($pgs > 0) {\n\t\t\t$this->jump_size = $pgs;\t\n\t\t}\n\t\telse {\n\t\t\t$this->errors[] = 'set_jump_size() requires an integer greater than 0';\n\t\t}\t\n\t}", "title": "" }, { "docid": "c7df2060b195fa799997c9b251b3ac56", "score": "0.4172931", "text": "public function setPrecision(int $precision);", "title": "" }, { "docid": "4fdea89e9ec40a796f14852d7d99ce0d", "score": "0.41515237", "text": "public function periksa($p)\n {\n if($p=='1')\n {\n $p='Di Setujui Kaprodi';\n }\n else\n {\n $p='Belum Diperiksa';\n }\nreturn $p;\n }", "title": "" }, { "docid": "333e32e0ad7b0a7b4f6ca21e421d59ea", "score": "0.4112269", "text": "public function setTppId($var)\n {\n GPBUtil::checkString($var, True);\n $this->tpp_id = $var;\n\n return $this;\n }", "title": "" }, { "docid": "23d3dfdbad2840c479dd0d0fc2e87661", "score": "0.40946004", "text": "public function setTTS(bool $tts) {\r\n $this->data['tts'] = $tts;\r\n return $this;\r\n }", "title": "" }, { "docid": "d119c59a7a924a806c55166fc272b093", "score": "0.40566623", "text": "public function setTipper($tipper){\n\t\t$this->tipper = $tipper;\n\t}", "title": "" }, { "docid": "d109521598ac03c4a71ff32c43ab5f35", "score": "0.40566504", "text": "public function setProTriPaused ($v)\n {\n\n // Since the native PHP type for this column is string,\n // we will cast the input to a string (if it is not).\n if ( $v !== null && !is_string ($v) )\n {\n $v = (string) $v;\n }\n\n if ( $this->pro_tri_paused !== $v || $v === '' )\n {\n $this->pro_tri_paused = $v;\n }\n }", "title": "" }, { "docid": "c99ceb9d97760dbd7b5f17a9a1360e21", "score": "0.40252396", "text": "public function setPrecision(int $precision)\n {\n $this->precision = $precision;\n }", "title": "" }, { "docid": "c99ceb9d97760dbd7b5f17a9a1360e21", "score": "0.40252396", "text": "public function setPrecision(int $precision)\n {\n $this->precision = $precision;\n }", "title": "" }, { "docid": "e3e99fa31d9c2a1c5f58c53f04f3898b", "score": "0.40236375", "text": "public function setQps($var)\n {\n GPBUtil::checkDouble($var);\n $this->qps = $var;\n\n return $this;\n }", "title": "" }, { "docid": "33f6ce30913632e8b5187e433af32933", "score": "0.4023031", "text": "function setPRT($prt)\n {\n $this->prt = $prt;\n }", "title": "" }, { "docid": "7da66ad289e0ab1e44360c753b3c1957", "score": "0.40064663", "text": "public function setPhraseParams($var)\n {\n $arr = GPBUtil::checkMapField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->phrase_params = $arr;\n\n return $this;\n }", "title": "" }, { "docid": "d7abe298563554628dbc6adc5114ec9d", "score": "0.4001921", "text": "public function setTkSotk($value = null)\n {\n $this->_tk_sotk = $value;\n return $this;\n }", "title": "" }, { "docid": "03aba71739e356e57b811e658f4a0d22", "score": "0.3999894", "text": "public function pttl($key) {\n return $this->returnCommand(['PTTL'], $key, [$key]);\n }", "title": "" }, { "docid": "e864418ea9d0252e928f3250c205c1ef", "score": "0.39441168", "text": "public function setPhrase($value) {\n\t\t$this->paramValues[self::PARAM_EXACTPHRASE] = $value;\n\t}", "title": "" }, { "docid": "d2f6263fd69023528d4b6d87cc365003", "score": "0.38686454", "text": "public function getIntbconfusegramsltr()\n {\n return $this->intbconfusegramsltr;\n }", "title": "" }, { "docid": "573850df9fd321d6932011b40cc6b620", "score": "0.38492087", "text": "function setSpellingSuggestionPhrase($phrase)\n\t{\n\t\t$this->phrase = $phrase;\n\t}", "title": "" }, { "docid": "9d66d8b74e409f944d743e2d29e5b4a7", "score": "0.3847854", "text": "function setFirstThree($ft)\n {\n $this->firstThree = $ft;\n }", "title": "" }, { "docid": "4c9243edd15e364702896c926d87027b", "score": "0.3821778", "text": "public function setQps($var)\n {\n GPBUtil::checkFloat($var);\n $this->qps = $var;\n\n return $this;\n }", "title": "" }, { "docid": "73f123240ee66b7125e350caea591775", "score": "0.3820756", "text": "public function set_options( $options )\n\t{\n\t\t$old_level = error_reporting(-1);\n\t\t$options = $this->merge_options( $options );\n\n \t\t$results = update_option( CONNECTIONS_SPOKE_OPTIONS, $options );\n\t}", "title": "" }, { "docid": "c2561a7c562080fbc90d7c58f0cfe712", "score": "0.3817572", "text": "function rocket_add_tsf_seo_sitemap_option( $options ) {\r\n\t$options['tsf_xml_sitemap'] = 0;\r\n\r\n\treturn $options;\r\n}", "title": "" }, { "docid": "df3c37e84de4a0dae9e99c50e65dc84b", "score": "0.37997425", "text": "public function setPsp($psp)\n {\n $this->psp = $psp;\n }", "title": "" }, { "docid": "92ba737384ff62ac8f6e7d3c6c2cfd79", "score": "0.37868166", "text": "public function setPodtprtpoeoru($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->podtprtpoeoru !== $v) {\n $this->podtprtpoeoru = $v;\n $this->modifiedColumns[PurchaseOrderDetailTableMap::COL_PODTPRTPOEORU] = true;\n }\n\n return $this;\n }", "title": "" }, { "docid": "8524fcc9b7fc3aa855d5d2a688da265c", "score": "0.3786662", "text": "function setPreco($p){\n\t\t$this->preco = $p;\n\t}", "title": "" }, { "docid": "85a71296cc537fb1b19dae29362da819", "score": "0.3785733", "text": "public function setKept($kept)\n {\n $this->_kept = $kept;\n }", "title": "" }, { "docid": "e85af5e388b29bd7f297fb4860a0de83", "score": "0.37703213", "text": "public function setPreferredTerm(bool $preferred_term) {\n $this->preferred_term = $preferred_term;\n }", "title": "" }, { "docid": "8d4d190b6d4c052f3ad391b5a2173874", "score": "0.37581122", "text": "public function setTimeStep($secsPerStep)\n\t{\n\t\t$secs = intval($secsPerStep);\n\t\tif ($secs > 0) {\n\t\t\t$this->secsPerStep = $secs;\n\t\t}\n\t}", "title": "" }, { "docid": "c2d6c84ec92b0e50ed160a7aec4b2b3f", "score": "0.37408054", "text": "protected function setZpTprop($clave) {\n $this->zpTprop = $clave;\n }", "title": "" }, { "docid": "2120afc62939185fc417e33f0b3b638d", "score": "0.3739546", "text": "public function setPodttype($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->podttype !== $v) {\n $this->podttype = $v;\n $this->modifiedColumns[PurchaseOrderDetailTableMap::COL_PODTTYPE] = true;\n }\n\n return $this;\n }", "title": "" }, { "docid": "4829e8ff76ee11db1eaa1088b0011bd2", "score": "0.37345558", "text": "public function __construct($dict) {\n parent::__construct($dict); // Parm's constructor\n #Use parms filter and filterin from Parm \n #$this->filter = $_REQUEST['filter'];\n #$this->opt_stransLit = $_REQUEST['transLit'];\n $this->opt_stransLit = $this->filterin; # rename filterin to opt_stransLit\n if (isset($_REQUEST['dictionary'])) {\n $this->filename = $_REQUEST['dictionary'];\n }else {\n $this->filename = \"query_dump.txt\";\n }\n $this->lastLnum = $_REQUEST['lastLnum']; // file position, for seek&tell\n $this->max = $_REQUEST['max'];\n \n // parms for sanskrit word\n $this->opt_sregexp = $_REQUEST['sregexp'];\n $this->opt_sword = $_REQUEST['sword'];\n \n // parms for non-Sanskrit word\n if (isset($_REQUEST['word'])){\n $this->word = $_REQUEST['word'];\n $this->word = strtolower($this->word);\n }else {\n $this->word=\"\";\n }\n $this->opt_regexp = $_REQUEST['regexp'];\n $this->sopt_case = $_REQUEST['scase'];\n $this->outopt = $_REQUEST['outopt'];\n $this->opt_swordhw = $_REQUEST['swordhw'];\n if (!in_array($this->opt_swordhw,array('both', 'hwonly', 'textonly'))) {\n $this->opt_swordhw = \"hwonly\";\n }\n if (!($this->filename)) {$this->filename = \"query_dump.txt\";}\n if (!($this->max)) {$this->max = 5;}\n if (!($this->lastLnum)) {$this->lastLnum = 0;}\n $this->lastLnum = intval($this->lastLnum);\n if ($this->lastLnum < 0) {\n $this->lastLnum=0;\n }\n if ($this->lastLnum > 25000000) {\n $this->lastLnum = 0;\n } \n #$this->printparms(); # dbg\n }", "title": "" }, { "docid": "cfcd3025591a0e05c426ab67f587fb5c", "score": "0.37283108", "text": "public function setPrefix($p) {\n\t\t$this->prefix = $p;\n\t}", "title": "" }, { "docid": "38c96b570b0deb9bf8db9718446bbae6", "score": "0.3726943", "text": "public function setEnableSpokenPunctuation($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Protobuf\\BoolValue::class);\n $this->enable_spoken_punctuation = $var;\n\n return $this;\n }", "title": "" }, { "docid": "dec95deb41dbe1431a758a511873a274", "score": "0.37186193", "text": "public function setSPF($spf='')\n {\n $this->_spf = strval($spf);\n return $this;\n }", "title": "" }, { "docid": "21e3643bad22acfa11e7be652b758207", "score": "0.37067476", "text": "public function set_penalty ($penalty) {\n $this->penalty = $penalty;\n }", "title": "" }, { "docid": "6c0ba5abf686e551f57d402ed3c2c607", "score": "0.3705656", "text": "final function setPHPTAL(PHPTAL $phptal)\n {\n $this->phptal = $phptal;\n }", "title": "" }, { "docid": "eb7c22764b19576fd953eea928d8471b", "score": "0.37046328", "text": "public function setTkTen($value = null)\n {\n $this->_tk_ten = $value;\n return $this;\n }", "title": "" }, { "docid": "7dfe0b5abb830bdae6becb650a6808fa", "score": "0.3692177", "text": "public function __construct($options = [])\n {\n // Check if the perPage option has been defined, else use default of 30\n if (array_key_exists(\"perPage\", $options)) {\n $this->perPage = $options['perPage']; // set new amount of trips per page (limit)\n }\n $this->getTotalTripsAmount();\n // // Set total amount of trips\n // $this->getTotalTripsAmount();\n }", "title": "" }, { "docid": "703e1db776229d4968b9c0348a26084d", "score": "0.36852145", "text": "public function testSetPuTr3() {\n\n $obj = new Tarifs();\n\n $obj->setPuTr3(10.092018);\n $this->assertEquals(10.092018, $obj->getPuTr3());\n }", "title": "" }, { "docid": "822b1d133222d0aede71d983cc74cb87", "score": "0.36823165", "text": "public function setHasPOS($value)\n {\n $this->hasPOS = $value;\n }", "title": "" }, { "docid": "4b7e103f2c18a3d1754d1b3397dfe36d", "score": "0.36790276", "text": "public function setPresort($presort) {}", "title": "" }, { "docid": "c35c5c6517f4e78b4e3fc5966f33d96d", "score": "0.36770198", "text": "abstract function setPreference($args);", "title": "" }, { "docid": "c74b14e257fcf9ca02da35d624dcf256", "score": "0.36692834", "text": "function set_priority($n = 3)\n\t{\n\t\tif ( ! is_numeric($n))\n\t\t{\n\t\t\t$this->priority = 3;\n\t\t\treturn;\n\t\t}\n\t\n\t\tif ($n < 1 OR $n > 5)\n\t\t{\n\t\t\t$this->priority = 3;\n\t\t\treturn;\n\t\t}\n\t\n\t\t$this->priority = $n;\n\t}", "title": "" }, { "docid": "68e6ddb4d01585f69ff79594773fed2e", "score": "0.36676884", "text": "function rocket_sitemap_add_tsf_sitemap_to_preload_option( $options ) {\r\n\t$options['tsf_xml_sitemap'] = [\r\n\t\t'type' => 'checkbox',\r\n\t\t'container_class' => [\r\n\t\t\t'wpr-field--children',\r\n\t\t],\r\n\t\t'label' => __( 'The SEO Framework XML sitemap', 'rocket' ),\r\n\t\t// translators: %s = Name of the plugin.\r\n\t\t'description' => sprintf( __( 'We automatically detected the sitemap generated by the %s plugin. You can check the option to preload it.', 'rocket' ), 'The SEO Framework' ),\r\n\t\t'parent' => 'sitemap_preload',\r\n\t\t'section' => 'preload_section',\r\n\t\t'page' => 'preload',\r\n\t\t'default' => 0,\r\n\t\t'sanitize_callback' => 'sanitize_checkbox',\r\n\t];\r\n\r\n\treturn $options;\r\n}", "title": "" }, { "docid": "522dfceca352701b1db7d7d6a6d5c50d", "score": "0.36533758", "text": "public function set_per_page( $per_page ) {\n\t\t\t$this->per_page = $per_page;\n\t\t}", "title": "" }, { "docid": "29588b680f067fcf15dc28f0089807fa", "score": "0.3651602", "text": "public function setPrecision(int $precision = null)\n {\n if( ! $this->hasTimePart()){\n // ToDo: should throw Exception ???\n return $this;\n }\n\n $this->precision = $precision;\n\n $this->setLength( (int) $precision );\n\n return $this;\n }", "title": "" }, { "docid": "d6b5be58e833aa0600ece900bb529c13", "score": "0.36438894", "text": "public function setPassPagerPhone($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->pass_pager_phone !== $v) {\n\t\t\t$this->pass_pager_phone = $v;\n\t\t\t$this->modifiedColumns[] = MissionRequestTempPeer::PASS_PAGER_PHONE;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "a703b706c3b6377a06fcb42a83da26e2", "score": "0.36433494", "text": "public function changeSearchModulePriority()\n\t\t\t{\n\t\t\t\t$id = $this->fields_arr['id'];\n\t\t\t\tif($this->fields_arr['opt'] == 'up')\n\t\t\t\t\t{\n\t\t\t\t\t\t//sub priority..\n\t\t\t\t\t\t$priority = $this->fields_arr['priority']-1;\n\t\t\t\t\t\tif(1<=$priority)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$this->updateOldPriority($this->fields_arr['priority'], $priority);\n\t\t\t\t\t\t\t\t$sql = 'UPDATE '.$this->CFG['db']['tbl']['search_settings'].' SET priority ='.$this->dbObj->Param('priority').\n\t\t\t\t\t\t\t\t\t\t' WHERE id = '.$this->dbObj->Param('id');\n\t\t\t\t\t\t\t\t$value_array = array($priority, $this->fields_arr['id']);\n\n\t\t\t\t\t\t\t\t$stmt = $this->dbObj->Prepare($sql);\n\t\t\t\t\t\t\t\t$rs = $this->dbObj->Execute($stmt, $value_array);\n\t\t\t\t\t\t\t\tif (!$rs)\n\t\t\t\t\t\t\t\t\ttrigger_db_error($this->dbObj);\n\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\telseif($this->fields_arr['opt'] == 'down')\n\t\t\t\t\t{\n\t\t\t\t\t\t//Add priority..\n\t\t\t\t\t\t$priority = $this->fields_arr['priority']+1;\n\t\t\t\t\t\t$total = $this->getTotalPriority();\n\t\t\t\t\t\tif($total >= $priority)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$this->updateOldPriority($this->fields_arr['priority'], $priority);\n\t\t\t\t\t\t\t\t$sql = 'UPDATE '.$this->CFG['db']['tbl']['search_settings'].' SET priority ='.$this->dbObj->Param('priority').\n\t\t\t\t\t\t\t\t\t\t' WHERE id = '.$this->dbObj->Param('id');\n\n\t\t\t\t\t\t\t\t$value_array = array($priority, $this->fields_arr['id']);\n\t\t\t\t\t\t\t\t$stmt = $this->dbObj->Prepare($sql);\n\t\t\t\t\t\t\t\t$rs = $this->dbObj->Execute($stmt, $value_array);\n\t\t\t\t\t\t\t\tif (!$rs)\n\t\t\t\t\t\t\t\t\ttrigger_db_error($this->dbObj);\n\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "9319aaa7364f3ff0304a4184d1457418", "score": "0.36419877", "text": "function setPreference($args){\n $cart = $args[0];\n\n // When this becomes too slow, put it to BestItems::setPreference\n\n // recount order ratings\n $this->countOrderRatings();\n\n // recount final ratings\n $this->updateFinalRatings();\n \n }", "title": "" }, { "docid": "e1320de65b9a6958ee9e221445d493e5", "score": "0.36337397", "text": "function setWikiPotions($potions)\r\n\t{\r\n\t\t$this->wikipotions = $potions;\r\n\t}", "title": "" }, { "docid": "6dc77f2cfee138c5578985d3bec03ecb", "score": "0.3621236", "text": "private function numberOfPropositions(\n MultipleChoiceQuestion $modelQuestion,\n $forcedRightId,\n $forcedWrongId,\n $rightId,\n $wrongId,\n &$numberOfRAToAdd,\n &$numberOfWAToAdd\n )\n {\n // number of propositions to use\n $numberOfForcedRightPropositions = count($forcedRightId);\n $numberOfForcedWrongPropositions = count($forcedWrongId);;\n $numberOfRightPropositions = count($rightId);\n $numberOfWrongPropositions = count($wrongId);\n\n //get the max number of propositions parameters\n if ($modelQuestion->getMaxNumberOfPropositions() == 0) {\n $maxNumberOfPropositions = $numberOfRightPropositions + $numberOfWrongPropositions;\n } else {\n $maxNumberOfPropositions = $modelQuestion->getMaxNumberOfPropositions()\n - $numberOfForcedWrongPropositions - $numberOfForcedRightPropositions;\n if ($maxNumberOfPropositions < 0) {\n $maxNumberOfPropositions = 0;\n }\n }\n\n if ($modelQuestion->getMaxNOfRightPropositions() == 0) {\n $maxNumberOfRightPropositions = $numberOfRightPropositions;\n $useMaxForRight = false;\n } else {\n $maxNumberOfRightPropositions = $modelQuestion->getMaxNOfRightPropositions()\n - $numberOfForcedRightPropositions;\n\n if ($maxNumberOfRightPropositions < 0) {\n $maxNumberOfRightPropositions = 0;\n }\n $useMaxForRight = true;\n }\n\n // determine the real possible max number of propositions\n if ($maxNumberOfPropositions > $numberOfRightPropositions + $numberOfWrongPropositions) {\n $maxNumberOfPropositions = $numberOfRightPropositions + $numberOfWrongPropositions;\n }\n\n // determine the real possible max number of right propositions\n if ($maxNumberOfRightPropositions > $numberOfRightPropositions) {\n $maxNumberOfRightPropositions = $numberOfRightPropositions;\n }\n if ($maxNumberOfRightPropositions > $maxNumberOfPropositions) {\n $maxNumberOfRightPropositions = $maxNumberOfPropositions;\n }\n\n // determine the min number of right anwers\n if ($numberOfForcedRightPropositions > 0) {\n $minNumberOfRightPropositions = 0;\n } else {\n $minNumberOfRightPropositions = 1;\n }\n if ($numberOfWrongPropositions + 1 < $maxNumberOfPropositions) {\n $minNumberOfRightPropositions = $maxNumberOfPropositions - $numberOfWrongPropositions;\n if ($minNumberOfRightPropositions > $maxNumberOfRightPropositions) {\n $minNumberOfRightPropositions = $maxNumberOfRightPropositions;\n }\n }\n\n // number of right proposition (RA) and wrong proposition (WA) to add\n if ($useMaxForRight) {\n $numberOfRAToAdd = $maxNumberOfRightPropositions;\n } else {\n $numberOfRAToAdd = rand($minNumberOfRightPropositions, $maxNumberOfRightPropositions);\n }\n $numberOfWAToAdd = $maxNumberOfPropositions - $numberOfRAToAdd;\n if ($numberOfWAToAdd > $numberOfWrongPropositions) {\n $numberOfWAToAdd = $numberOfWrongPropositions;\n }\n\n }", "title": "" }, { "docid": "818c804d5ef83e3746c5cb0e9c307877", "score": "0.3619165", "text": "function search_precedence($needle, $haystack){\n\t/*\n\t2008-09-27 - evaluates the precedence of a specific term, accounting for the plural, in a comma separated list. Max possible value is 1.0\n\tearlier the term appears = higher the proportional value - see my paper workup on WEIGHTING KEYWORDS\t\n\t\n\t*/\n\t//get a clean needle\n\t$needle=trim(preg_replace('/\\s+/',' ',$needle));\n\t//get a clean haystack\n\t$a=explode(',',$haystack);\n\tif(!count($a))return 0;\n\t//clean up terms in a, clear exact repeats\n\tforeach($a as $n=>$v) $a[$n]=trim(preg_replace('/\\s+/',' ',$v));\n\tforeach($a as $n=>$v){\n\t\tif(!$a[$n])continue;\n\t\tif($b[strtolower($a[$n])])$a[$n]=''; //set value to blank, this is a repeat and penalizes the set\n\t\t$b[strtolower($a[$n])]=1;\n\t}\n\t//get constants\n\tif(implode('',$a)=='')return 0;\n\t$c=count($a);\n\tforeach($a as $n=>$v){\n\t\t$i++;\n\t\t$wmax= (2 * $c - 2 * $i + 2) / ($c * $c + $c);\n\t\t$out = search_compare_strings($needle,$a[$n],'tight phrases');\n\t\t#echo '<hr />comparing '. $needle . ' vs. '.$a[$n].', out is: '.$out . '<br />';\n\t\t#echo 'out is '.$out . '<br />';\n\t\t$w += $out * $wmax;\n\t}\n\treturn $w;\n}", "title": "" }, { "docid": "97f24ab57c23f4ecc6df7a5a485236c1", "score": "0.36181477", "text": "public function setProTriOpen ($v)\n {\n\n // Since the native PHP type for this column is string,\n // we will cast the input to a string (if it is not).\n if ( $v !== null && !is_string ($v) )\n {\n $v = (string) $v;\n }\n\n if ( $this->pro_tri_open !== $v || $v === '' )\n {\n $this->pro_tri_open = $v;\n }\n }", "title": "" }, { "docid": "b9015c91cff752880ca1b54740b36be3", "score": "0.36145735", "text": "public function setTva($tva)\n {\n $this->tva = $tva;\n }", "title": "" }, { "docid": "ab72b835d916d5e8dfb3d29b2794c743", "score": "0.36111438", "text": "public function testSetPassPhrase()\n {\n $this->duplicity = $this->getDuplicityMock(array('getVersion'));\n $this->duplicity\n ->expects($this->any())\n ->method('getVersion')\n ->will($this->returnValue('0.6'));\n $this->duplicity->setPassPhrase('abc');\n $this->binary\n ->expects($this->once())\n ->method('run')\n ->with($this->logicalNot($this->stringContains('--no-encryption')),\n $this->equalTo(array('PASSPHRASE' => 'abc')))\n ->will($this->returnValue(0));\n $this->binary\n ->expects($this->once())\n ->method('getOutput')\n ->will($this->returnValue(array('')));\n $this->duplicity->execute();\n\n }", "title": "" }, { "docid": "4a582ddac038bc405530546908a68d9a", "score": "0.3586026", "text": "public function setPageType($s)\n {\n if (!$s || is_null($s)) {\n $this->log(\"Page Type should be a string.\", 'Warning');\n return false;\n }\n $this->options['PageType'] = $s;\n }", "title": "" }, { "docid": "8473ec3a4ec4124d580d29c47b77db9a", "score": "0.35853487", "text": "public function setPhraseFields($fields) {}", "title": "" }, { "docid": "c83aa868bb40a4eb7462363f82e52fcc", "score": "0.35774326", "text": "public static function rulesPattern10($target_index, $prev_pp_1, $this_pp, $dbgme = false)\n {\n\t//prevTag1 è la parola unica, this_word quella precedente che viene ripulita\n\n\t$prev_word1 = $prev_pp_1['form'];\n\t$prev_tag1 = $prev_pp_1['sh-feat'];\n\n\t$this_word = $this_pp['form'];\n\t$this_tag = $this_pp['sh-feat'];\n\n\tif ($dbgme)\n\t echox(\"-- searching pattern 10 with $prev_word1 ($prev_tag1), $this_word ($this_tag dubious)\");\n\n\tNaiMyThoughts::collect(__CLASS__, __METHOD__, \"with $prev_word1 ($prev_tag1), $this_word ($this_tag dubious)\");\n\n\t// formulo le combinazioni BASILARI ART-NOUN tra stessi sessi. SONO\n\tif ($prev_pp_1['features'] == 'ART-M:s' && $this_pp['features'] == 'NOUN-m:s')\n\t self::returnRule($target_index, '10-0', 'NOUN-m:s');\n\tif ($prev_pp_1['features'] == 'ART-M:p' && $this_pp['features'] == 'NOUN-m:p')\n\t self::returnRule($target_index, '10-5', 'NOUN-m:p');\n\tif ($prev_pp_1['features'] == 'ART-F:s' && $this_pp['features'] == 'NOUN-f:s')\n\t self::returnRule($target_index, '10-10', 'NOUN-f:s');\n\tif ($prev_pp_1['features'] == 'ART-F:p' && $this_pp['features'] == 'NOUN-f:p')\n\t self::returnRule($target_index, '10-15', 'NOUN-f:p');\n\n\t// formulo le combinazioni BASILARI di esclusione ART-NOUN tra maschili e femminili\n\tif ($prev_pp_1['features'] == 'ART-M:s' && $this_pp['features'] == 'NOUN-f:s')\n\t self::returnRule($target_index, '10-20', 'NOUN-f:s', - 2);\n\tif ($prev_pp_1['features'] == 'ART-M:p' && $this_pp['features'] == 'NOUN-f:s')\n\t self::returnRule($target_index, '10-25', 'NOUN-f:s', - 2);\n\n\tif ($prev_pp_1['features'] == 'ART-M:s' && $this_pp['features'] == 'NOUN-f:p')\n\t self::returnRule($target_index, '10-30', 'NOUN-f:p', - 2);\n\tif ($prev_pp_1['features'] == 'ART-M:p' && $this_pp['features'] == 'NOUN-f:p')\n\t self::returnRule($target_index, '10-35', 'NOUN-f:p', - 2);\n\n\tif ($prev_pp_1['features'] == 'ART-F:s' && $this_pp['features'] == 'NOUN-m:s')\n\t self::returnRule($target_index, '10-40', 'NOUN-m:s', - 2);\n\tif ($prev_pp_1['features'] == 'ART-F:p' && $this_pp['features'] == 'NOUN-m:s')\n\t self::returnRule($target_index, '10-45', 'NOUN-m:s', - 2);\n\n\tif ($prev_pp_1['features'] == 'ART-F:s' && $this_pp['features'] == 'NOUN-m:p')\n\t self::returnRule($target_index, '10-50', 'NOUN-m:p', - 2);\n\t\n\tif ($prev_pp_1['features'] == 'ART-F:p' && $this_pp['features'] == 'NOUN-m:p')\n\t self::returnRule($target_index, '10-55', 'NOUN-m:p', - 2);\n\t\n\tif ($prev_pp_1['features'] == 'ADV:qty' && $this_tag == 'VER')\n\t self::returnRule($target_index, '10-57', 'VER', - .7);\n\t\n\tif (instr($prev_pp_1['features'], 'VER:impr+pres+2') > 0 && instr($this_pp['features'], 'PPAST:part+past') > 0)\n\t self::returnRule($target_index, '10-60', 'PPAST:part+past+m+s', - 2);\n\n\tif ($prev_word1 == 'are' && $this_pp['features'] == 'VER:ger+pres')\n\t self::returnRule($target_index, '10-75', 'VER');\n\n\tif (preg_match('/^(the|this|those|her)$/i', $prev_word1) && ($this_tag == 'VER' || $this_tag == 'PPAST'))\n\t self::returnRule($target_index, '10-80', 'VER', -2);\n\n\tif (preg_match('/^(the|this|that|those)$/i', $prev_word1) && ($this_tag == 'UNK'))\n\t self::returnRule($target_index, '10-85', 'NOUN');\n\n\tif (preg_match('/^(may|might|can|gonna|wanna)$/i', $prev_word1) && ($this_tag == 'VER' || $this_tag == 'PPAST'))\n\t self::returnRule($target_index, '10-90', 'VER', 3);\n\n\tif ($prev_word1 == 'of' && ($this_tag == 'VER' || $this_tag == 'PPAST'))\n\t self::returnRule($target_index, '10-95', 'VER', - self::$score_two_terms);\n\n\n\tif ($prev_word1 == 'a' && ($this_tag == 'VER' || $this_tag == 'PPAST'))\n\t self::returnRule($target_index, '10-100', 'VER', - self::$score_two_terms);\n\n\tif (preg_match('/^(the|my|your|him|them)$/i', $prev_word1) && ($this_tag == 'VER' || $this_tag == 'PPAST'))\n\t self::returnRule($target_index, '10-105', 'VER', - self::$score_two_terms);\n\n\tif ($prev_word1 == 'in' && ($this_tag == 'VER' || $this_tag == 'PPAST'))\n\t self::returnRule($target_index, '10-110', 'VER', - self::$score_two_terms);\n\n\t\n\tif (preg_match('/^(was)$/i', $prev_word1) && $this_pp['features'] == 'VER:ger+pres')\n\t self::returnRule($target_index, '10-120', 'VER');\n\n\tif ($prev_word1 == 'inside' && ($this_tag == 'VER' || $this_tag == 'PPAST'))\n\t self::returnRule($target_index, '10-125', 'VER', -50);\n\n\t\n\tif ($this_tag == 'PPAST' && $prev_word1 == 'who')\n\t self::returnRule($target_index, '10-190', 'PPAST', self::$score_three_terms);\n\n\tif ($prev_word1 == 'without')\n\t self::returnRule($target_index, '10-225', 'PPAST', -10);\n\t\n\tif (($this_tag == 'ADJ' || $this_tag == 'UNK'))\n\t{\n\t if ($prev_word1 == 'all')\n\t\tself::returnRule($target_index, '10-230', 'ADJ');\n\t}\n\n\tif (($this_tag == 'NOUN' || $this_tag == 'UNK'))\n\t{\n\t if ($prev_word1 == 'going' && $this_tag == 'NOUN')\n\t\tself::returnRule($target_index, '10-65', 'NOUN', - 1);\n\n\t if ($prev_word1 == 'into' && $this_tag == 'NOUN')\n\t\tself::returnRule($target_index, '10-70', 'NOUN', 1);\n\t\n\t if ($prev_word1 == 'this')\n\t\tself::returnRule($target_index, '10-235', 'NOUN');\n\n\t if ($prev_word1 == 'that')\n\t\tself::returnRule($target_index, '10-240', 'NOUN');\n\n\t if ($prev_word1 == 'those')\n\t\tself::returnRule($target_index, '10-245', 'NOUN');\n\t \n\t if ($prev_word1 == 'in')\n\t\tself::returnRule($target_index, '10-330', 'NOUN');\n\t}\n\n\tif (($this_tag == 'VER' || $this_tag == 'UNK'))\n\t{\n\n\t if (preg_match('/^(good|nice)$/i', $prev_word1))\n\t\tself::returnRule($target_index, '10-130', 'VER', -3);\n\t \n\t if (preg_match('/^(gonna|could|should|would)$/i', $prev_word1))\n\t\tself::returnRule($target_index, '10-115', 'VER');\n\n\t if ($prev_word1 == 'i')\n\t\tself::returnRule($target_index, '10-135', 'VER', 3);\n\n\t if ($prev_word1 == 'you')\n\t\tself::returnRule($target_index, '10-140', 'VER');\n\n\t if ($prev_word1 == 'he')\n\t\tself::returnRule($target_index, '10-145', 'VER');\n\n\t if ($prev_word1 == 'she')\n\t\tself::returnRule($target_index, '10-150', 'VER');\n\n\t if ($prev_word1 == 'it' && $this_pp['features'] != 'VER:inf+pres')\n\t\tself::returnRule($target_index, '10-155', 'VER');\n\n\t if ($prev_word1 == 'it' && $this_pp['features'] != 'VER:inf+pres')\n\t\tself::returnRule($target_index, '10-160', 'ADJ');\n\n\t if ($prev_word1 == 'with')\n\t\tself::returnRule($target_index, '10-165', 'VER', - 3);\n\t \n\t if ($prev_word1 == 'every')\n\t\tself::returnRule($target_index, '10-165', 'VER', - 3);\n\n\t if ($prev_word1 == 'each')\n\t\tself::returnRule($target_index, '10-170', 'VER', - 3);\n\n\t if ($prev_word1 == 'in')\n\t\tself::returnRule($target_index, '10-175', 'VER', - 3);\n\t \n\t if ($prev_word1 == 'enough')\n\t\tself::returnRule($target_index, '10-180', 'VER', - 3);\n\t \n\t if ($prev_word1 == 'who')\n\t\tself::returnRule($target_index, '10-185', 'VER', self::$score_three_terms);\n\n\t if ($prev_word1 == 'to')\n\t\tself::returnRule($target_index, '10-195', 'VER', 5);\n\n\t if ($prev_word1 == 'we')\n\t\tself::returnRule($target_index, '10-200', 'VER');\n\n\t if ($prev_word1 == 'us')\n\t\tself::returnRule($target_index, '10-205', 'VER');\n\n\t if ($prev_word1 == 'they')\n\t\tself::returnRule($target_index, '10-210', 'VER');\n\n\t if ($prev_word1 == 'wanna')\n\t\tself::returnRule($target_index, '10-215', 'VER');\n\n\t if ($prev_word1 == 'without')\n\t\tself::returnRule($target_index, '10-220', 'VER', -10);\n\t \n\t if ($prev_word1 == 'non')\n\t\tself::returnRule($target_index, '10-250', 'VER');\n\n\t if ($prev_word1 == 'already')\n\t\tself::returnRule($target_index, '10-255', 'VER');\n\n\t if ($prev_word1 == 'had')\n\t\tself::returnRule($target_index, '10-265', 'VER');\n\n\t if ($prev_word1 == 'if')\n\t\tself::returnRule($target_index, '10-270', 'VER');\n\n\t if ($prev_word1 == 'more')\n\t\tself::returnRule($target_index, '10-275', 'VER', - 2);\n\n\t if ($prev_word1 == 'less')\n\t\tself::returnRule($target_index, '10-280', 'VER', - 2);\n\n\t if ($prev_word1 == 'is')\n\t\tself::returnRule($target_index, '10-285', 'ADJ', 3);\n\t \n\t if ($prev_word1 == 'in')\n\t\tself::returnRule($target_index, '10-300', 'VER', - 3);\n\n\t if ($prev_word1 == 'I')\n\t\tself::returnRule($target_index, '10-305', 'VER');\n\n\t if ($prev_word1 == 'you')\n\t\tself::returnRule($target_index, '10-310', 'VER');\n\n\t if ($prev_word1 == 'she')\n\t\tself::returnRule($target_index, '10-315', 'VER');\n\n\t if ($prev_word1 == 'we')\n\t\tself::returnRule($target_index, '10-320', 'VER');\n\n\t if ($prev_word1 == 'they')\n\t\tself::returnRule($target_index, '10-325', 'VER');\n\n\t if (instr($prev_pp_1['features'], 'impr+pres+2+p') > 0)\n\t\tself::returnRule($target_index, '10-290', 'VER');\n\n\t if ($prev_pp_1['features'] == 'PRO-INDEF-M-S')\n\t\tself::returnRule($target_index, '10-295', 'VER');\n\t}\n\n\n\tif ($prev_word1 == 'keep' && ($this_pp['features'] == 'VER:ger+pres'))\n\t self::returnRule($target_index, '10-335', 'VER');\n\n\tif (instr($this_pp['features'], 'ind+pres') == 0 && instr($this_pp['features'], 'sub+pres') == 0)\n\t{\n\t if (instr($prev_pp_1['features'], '+1+s') > 0 && instr($this_pp['features'], '+2+s') > 0)\n\t\tself::returnRule($target_index, '10-470', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+1+s') > 0 && instr($this_pp['features'], '+3+s') > 0)\n\t\tself::returnRule($target_index, '10-475', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+1+s') > 0 && instr($this_pp['features'], '+1+p') > 0)\n\t\tself::returnRule($target_index, '10-480', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+1+s') > 0 && instr($this_pp['features'], '+2+p') > 0)\n\t\tself::returnRule($target_index, '10-485', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+1+s') > 0 && instr($this_pp['features'], '+3+p') > 0)\n\t\tself::returnRule($target_index, '10-490', 'VER', -10);\n\n\t if (instr($prev_pp_1['features'], '+2+s') > 0 && instr($this_pp['features'], '+1+s') > 0)\n\t\tself::returnRule($target_index, '10-500', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+2+s') > 0 && instr($this_pp['features'], '+3+s') > 0)\n\t\tself::returnRule($target_index, '10-505', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+2+s') > 0 && instr($this_pp['features'], '+1+p') > 0)\n\t\tself::returnRule($target_index, '10-510', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+2+s') > 0 && instr($this_pp['features'], '+2+p') > 0)\n\t\tself::returnRule($target_index, '10-515', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+2+s') > 0 && instr($this_pp['features'], '+3+p') > 0)\n\t\tself::returnRule($target_index, '10-520', 'VER', -10);\n\n\t if (instr($prev_pp_1['features'], '+3+s') > 0 && instr($this_pp['features'], '+1+s') > 0)\n\t\tself::returnRule($target_index, '10-525', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+3+s') > 0 && instr($this_pp['features'], '+2+s') > 0)\n\t\tself::returnRule($target_index, '10-530', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+3+s') > 0 && instr($this_pp['features'], '+1+p') > 0)\n\t\tself::returnRule($target_index, '10-535', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+3+s') > 0 && instr($this_pp['features'], '+2+p') > 0)\n\t\tself::returnRule($target_index, '10-540', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+3+s') > 0 && instr($this_pp['features'], '+3+p') > 0)\n\t\tself::returnRule($target_index, '10-545', 'VER', -10);\n\n\n\t if (instr($prev_pp_1['features'], '+1+p') > 0 && instr($this_pp['features'], '+2+p') > 0)\n\t\tself::returnRule($target_index, '10-550', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+1+p') > 0 && instr($this_pp['features'], '+3+p') > 0)\n\t\tself::returnRule($target_index, '10-555', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+1+p') > 0 && instr($this_pp['features'], '+1+s') > 0)\n\t\tself::returnRule($target_index, '10-560', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+1+p') > 0 && instr($this_pp['features'], '+2+s') > 0)\n\t\tself::returnRule($target_index, '10-565', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+1+p') > 0 && instr($this_pp['features'], '+3+s') > 0)\n\t\tself::returnRule($target_index, '10-570', 'VER', -10);\n\n\t if (instr($prev_pp_1['features'], '+2+p') > 0 && instr($this_pp['features'], '+1+p') > 0)\n\t\tself::returnRule($target_index, '10-575', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+2+p') > 0 && instr($this_pp['features'], '+3+p') > 0)\n\t\tself::returnRule($target_index, '10-580', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+2+p') > 0 && instr($this_pp['features'], '+1+s') > 0)\n\t\tself::returnRule($target_index, '10-585', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+2+p') > 0 && instr($this_pp['features'], '+2+s') > 0)\n\t\tself::returnRule($target_index, '10-590', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+2+p') > 0 && instr($this_pp['features'], '+3+s') > 0)\n\t\tself::returnRule($target_index, '10-595', 'VER', -10);\n\n\t if (instr($prev_pp_1['features'], '+3+p') > 0 && instr($this_pp['features'], '+1+p') > 0)\n\t\tself::returnRule($target_index, '10-600', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+3+p') > 0 && instr($this_pp['features'], '+2+p') > 0)\n\t\tself::returnRule($target_index, '10-605', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+3+p') > 0 && instr($this_pp['features'], '+1+s') > 0)\n\t\tself::returnRule($target_index, '10-610', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+3+p') > 0 && instr($this_pp['features'], '+2+s') > 0)\n\t\tself::returnRule($target_index, '10-615', 'VER', -10);\n\t if (instr($prev_pp_1['features'], '+3+p') > 0 && instr($this_pp['features'], '+3+s') > 0)\n\t\tself::returnRule($target_index, '10-620', 'VER', -10);\n\t}\n\n\tif ($prev_tag1 == 'ADJ')\n\t{\n\t if ($this_pp['features'] == 'VER:ind+pres+3+s')\n\t\tself::returnRule($target_index, '10-726', 'NOUN', 2);\n\t}\n\n\tif ($prev_tag1 == 'ADV')\n\t{\n\t if ($prev_pp_1['features'] != 'ADV:qty' && $prev_pp_1['features'] != 'ADV:how')\n\t {\n\t\tif ($this_tag == 'NOUN')\n\t\t self::returnRule($target_index, '10-785', 'NOUN', - self::$score_two_terms);\n\t }\n\t}\n\n\tif ($prev_tag1 == 'ART')\n\t{\n\t if ($this_tag == 'UNK')\n\t\tself::returnRule($target_index, '10-795', 'NOUN');\n\n\t if ($this_tag == 'DET')\n\t\tself::returnRule($target_index, '10-800', 'DET');\n\n\t if ($this_tag == 'NUM')\n\t\tself::returnRule($target_index, '10-802', 'NUM');\n\t}\n\n\tif ($prev_tag1 == 'ARTPRE')\n\t{\n\t if ($this_tag == 'NOUN')\n\t\tself::returnRule($target_index, '10-805', 'NOUN', 1);\n\t}\n\n\tif ($prev_tag1 == 'NUM' || $prev_tag1 == 'DET' || $prev_tag1 == 'AMOUNT')\n\t{\n\t if ($this_tag == 'NOUN')\n\t\tself::returnRule($target_index, '10-910', 'NOUN');\n\n\t // dopo di un numero generalmente non può esserci un ver!\n\t if ($this_tag == 'PPAST' || $this_tag == 'UNK')\n\t\tself::returnRule($target_index, '10-915', 'NOUN');\n\t}\n\n\tif ($prev_tag1 == 'PRO')\n\t{\n\t if (($this_tag == 'VER' || $this_tag == 'UNK'))\n\t\tself::returnRule($target_index, '10-1010', 'ADV', 0.5);\n\t}\n\n\tif ($prev_tag1 == 'VER')\n\t{\n\t if (!preg_match('/(can|be)/ui', $prev_word1) && $prev_pp_1['features'] == 'VER:inf+pres' && $this_tag == 'NOUN')\n\t\tself::returnRule($target_index, '10-1056', 'NOUN', .4);\n\t}\n\n }", "title": "" }, { "docid": "ce3095b98779bd7ea1896380fc09eaf5", "score": "0.35582083", "text": "public function setPreference($args) {\n $productID = $args[0];\n $scrollCount = $args[1];\n $clickCount = $args[2];\n $displayTime = $args[3];\n $displayCount = $args[4];\n $this->incrementBehavior($productID, $scrollCount, $clickCount,\n $displayTime, $displayCount);\n }", "title": "" }, { "docid": "69b610644a45fd5bd563784b5fa9106c", "score": "0.35544047", "text": "public function _setTestkit3($testkit3) {\n\t\t$this->_testkit3 = $testkit3;\n\t}", "title": "" }, { "docid": "4c0ba7af4722a51b04d7534ee80beaf6", "score": "0.3550071", "text": "public function set_p($p) {\n\t\tif (is_numeric($p)) {\n\t\t\t$this->p = $p;\n\t\t}\n\t\telse {\n\t\t\tthrow new UnexpectedValueException;\n\t\t}\n\t}", "title": "" }, { "docid": "f9a3055dd3c2ed670da904e7a71d7972", "score": "0.35497057", "text": "public function spt($price,$tax=null) {\n\n\t\tif ($tax) \n\t\t\t$p = $this->pricewithtax($price, $tax);\t \n\t\telseif ($this->is_reseller) \n\t\t\t$p = $price;\n\t\telseif ((defined('SHCART_DPC')) && (_v('shcart.showtaxretail'))) \n\t\t\t$p = $this->pricewithtax($price, _v('shcart.tax'));\n\t\telse\n\t\t\t$p = $price;\t\t\n\n\t\treturn ($p);\n\t}", "title": "" }, { "docid": "231ba3adc79c22384c55f7277c6cf107", "score": "0.35321334", "text": "public function SetTotalWords(){\n if($this->total_words === 0){\n $result = pg_query_params($this->corpus->corpuscon,\n \"select count(*) FROM txt_{$this->lang} \n WHERE id BETWEEN $1 AND $2\n AND funct = $3\",\n array($this->address[0],$this->address[1], \"word\"));\n $this->total_words = pg_fetch_row($result)[0]*1;\n }\n\n return $this;\n }", "title": "" }, { "docid": "80c2e06230e113b9e56834a570c350c8", "score": "0.35287365", "text": "public function PTTL($key);", "title": "" }, { "docid": "9d13a4c5e88aac18a387eac16ecf521b", "score": "0.3523876", "text": "public function setMinWords($val)\n {\n $this->_propDict[\"minWords\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "3b79832d06627bd4d533fbc98022fa06", "score": "0.35230604", "text": "private function get_spam_score_threshold() {\n\t\t$value = (float) $this->get_plugin_setting( 'score_threshold_v3' );\n\t\tif ( empty( $value ) ) {\n\t\t\t$value = 0.5;\n\t\t}\n\t\t$this->log_debug( __METHOD__ . '(): ' . $value );\n\n\t\treturn $value;\n\t}", "title": "" }, { "docid": "b0a2762556d979f896cd0b4c96a9ea4d", "score": "0.35224724", "text": "function add_textflow(int $textflow, string $text, string $optlist){}", "title": "" }, { "docid": "1ac94f131ba97b9d1916068e49bc1731", "score": "0.3521564", "text": "public function set_tpls($tpls) {\n\t\tif (is_array($tpls)) {\n\t\t\t$tpls = array_merge(array('firstTpl'=>'','lastTpl'=>'','prevTpl'=>'',\n\t\t\t'nextTpl'=>'','currentPageTpl'=>'','pageTpl'=>'','outerTpl'=>''), $tpls);\n\t\t\tforeach($tpls as $tpl => $v) {\n\t\t\t\t$this->set_tpl($tpl,$v);\n\t\t\t}\n\t\t}\n\t\telse {\t\t\t\n\t\t\t$this->errors[] = \"set_tpls() requires array input.\";\n\t\t}\n\t}", "title": "" }, { "docid": "c053cfbfd3bb2d654ef5b633d9901536", "score": "0.3515543", "text": "public function getS37()\n {\n return $this->s37;\n }", "title": "" }, { "docid": "9900a897d95d5b9039b3876a2c0d3afa", "score": "0.35132638", "text": "public function setPriape($priape){\n\t\t$this->priape = $priape;\n\t}", "title": "" }, { "docid": "1a65fcc2ba08d85840504ef8d769d672", "score": "0.3506301", "text": "public function presort(string $script, $param = null): FluentFM\n {\n return $this->script($script, $param, 'presort');\n }", "title": "" }, { "docid": "bd63281d4781c0461f04db7d815a310f", "score": "0.3504975", "text": "public function removeTrigramPhraseField($field) {}", "title": "" }, { "docid": "317fd8ccb9871271f2ee41410315d7bd", "score": "0.34855378", "text": "protected function _per_page_option()\n {\n if (isset($this->request->query['per_page']) && in_array($this->request->query['per_page'], $this->Setting->per_page_options)) {\n $this->per_page = (int)$this->request->query['per_page'];\n $this->Session->write('per_page', $this->per_page);\n } else if (strlen($this->Session->read('per_page'))) {\n $this->per_page = $this->Session->read('per_page');\n } else {\n $this->per_page = $this->Setting->per_page_options[0];\n }\n return $this->per_page;\n }", "title": "" }, { "docid": "d10a0904d45dd1c939c2c31e50a15b59", "score": "0.3483947", "text": "private function setSrtState(SrtParserState $srtState)\n {\n $this->srtState = $srtState;\n }", "title": "" }, { "docid": "3a587dccc3c5002b6b65d78c2cf627da", "score": "0.34799743", "text": "function evo_lower_wpseo_priority( $html ) {\n return 'low';\n}", "title": "" }, { "docid": "a6a83d04458d290c3eb5915b3e8e7f2f", "score": "0.347969", "text": "public function setPt2px($pt2px) {\n $this->pt2px = $pt2px;\n }", "title": "" }, { "docid": "9f6a2726e9b8f7d1c59edfe19c1d0358", "score": "0.34756657", "text": "function xthreads_plugins_phptpl_activate() { xthreads_plugins_phptpl_reparse(true); }", "title": "" }, { "docid": "5accb15c70cd0c0f8da08baacca21e5d", "score": "0.34725454", "text": "public function setPrecision($precision)\n {\n $this->_precision = (int) $precision;\n return $this;\n }", "title": "" }, { "docid": "53b439b411e694d25772d7b03308bde2", "score": "0.3471352", "text": "public function testSetVpsProtocol()\n {\n $this->_sagepay->setVpsProtocol('2.52');\n $this->assertEquals('2.52', $this->_sagepay->getVpsProtocol());\n }", "title": "" }, { "docid": "f43bdc6d60fb99d4df9eddd3526db28a", "score": "0.3464519", "text": "public function setSimilarityThreshold($val)\n {\n $this->_propDict[\"similarityThreshold\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "30439498a683c160895d4457c39d3874", "score": "0.3460411", "text": "private function _setSettingPriority( $settings )\n\t{\n\t\tif( $this->offsetExists( self::gdprc_PRIVATE_SETT_NAME_PRIO ) ) {\n\t\t\t$prio = $this->offsetGet( self::gdprc_PRIVATE_SETT_NAME_PRIO );\n\t\t\t$this->priority = $prio;\n\t\t} else {\n\t\t\tif( false !== ( $prio = gdprcXmlSettingsHelper::getSettingPriority( $settings ) ) ) {\n\t\t\t\t$this->priority = $prio;\n\t\t\t} else {\n\t\t\t\t$this->priority = self::gdprc_SETTINGS_DEFAULT_PRIO;\n\t\t\t}\t\n\t\t\t$this->offsetSet( self::gdprc_PRIVATE_SETT_NAME_PRIO, $prio );\n\t\t}\t \n\t}", "title": "" }, { "docid": "49d45d1898e3ad31dc1a3086a3072392", "score": "0.34506527", "text": "public function getEnableSpokenPunctuation()\n {\n return $this->enable_spoken_punctuation;\n }", "title": "" }, { "docid": "18ec9b9db7ac31847a455a60fdcd2a7d", "score": "0.34505132", "text": "public function pt($name = null)\n {\n\n // Check if name is set\n if (!is_null($name))\n {\n\n $this->class('pt-' . $name);\n\n } else {\n\n $this->class('pt-auto');\n\n }\n\n return $this;\n\n }", "title": "" }, { "docid": "8d68ef0b0e69175d73315f85c343b58e", "score": "0.34397134", "text": "public function _setPrecio($Precio)\n\t {\n\t $this->Precio = $Precio;\n\t }", "title": "" }, { "docid": "9ebf3a84221e36b0aa154324a9166dba", "score": "0.34378868", "text": "public function set_phishing_signatures_state($state)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n Validation_Exception::is_valid($this->validate_phishing_signatures_state($state));\n\n $this->_set_boolean_parameter('PhishingSignatures', $state);\n }", "title": "" }, { "docid": "268543269726cc15a567789b55ef8dfb", "score": "0.3437325", "text": "function setThreshold($l)\n {\n if ($l !== null)\n $this->threshold = $l;\n }", "title": "" }, { "docid": "597225b08831f18b15984fed95808818", "score": "0.34359333", "text": "function PommoThrottler($p = array(), & $history, &$sent, &$sentBytes) { \n\t\tglobal $pommo;\n\t\t\n\t\t$this->logger =& $pommo->_logger;\n\t\t\n\t\t$this->_targetMPS = floatval($p['MPS']);\n\t\t$this->_targetBPS = floatval($p['BPS']);\n\t\t$this->_domPeriod = floatval($p['DP']);\n\t\t$this->_domMPP = floatval($p['DMPP']);\n\t\t$this->_domBPP = floatval($p['DBPP']);\n\t\t$this->_genesis = $p['genesis'];\n\t\t\n\t\t$this->_domain =& $history;\n\t\t\n\t\t$this->_sentBytes =& $sentBytes;\n\t\t$this->_sentMails =& $sent;\n\t\t\n\t\t$this->_startTime = time();\n\t\t$this->_messages = array ();\n\t\t\n\t\t$this->_mode = $this->smartInit();\n\t\t\n\t\t$this->clearQueue();\n\t\t\n\t\t// alter adjustment to better handle very slow MPS settings\n\t\tif ($this->_targetMPS < 0.35)\n\t\t\t$this->_adjust = 0.002;\n\t\telseif($this->_targetMPS < 0.55)\n\t\t\t$this->_adjust = 0.009;\n\t\telseif($this->_targetMPS < 0.8)\n\t\t\t$this->_adjust = 0.11;\n\t\telse\n\t\t\t$this->_adjust = 0.15;\n\t\t\n\t\t$this->logger->addMsg('bThrottler initialized. [Genesis] ' . $this->_genesis . ' [Queue Size] ' . count($this->_queue) . ' [Target MPS] ' . $this->_targetMPS . ' [Target BPS] ' . $this->_targetBPS . ' [Domain Period] ' . $this->_domPeriod . ' [Domain MPP] ' . $this->_domMPP . ' [Domain BPP] ' . $this->_domBPP, 1);\t\t\n\t}", "title": "" } ]
6c2fb3af072c98549b4bbb022d8f978c
We need to set this property before calling the construct() chain
[ { "docid": "0243d50770ebde8b71b6ce3851ce9f28", "score": "0.0", "text": "function construct() {\n // as we use it in the option_definintion() call.\n $this->link_type = $this->definition['link_type'];\n\n parent::construct();\n $this->additional_fields['sid'] = 'sid';\n $this->additional_fields['nid'] = 'nid';\n }", "title": "" } ]
[ { "docid": "58c64c246bf35b3bdca27e6c17057cf1", "score": "0.75738436", "text": "protected function afterConstruct() {}", "title": "" }, { "docid": "efd4a2eb68c8a49599d48b63a9a23267", "score": "0.7499282", "text": "protected function _construct() {}", "title": "" }, { "docid": "b4e425e88b336f2040e816b9d78c807f", "score": "0.74520874", "text": "protected function __init__() { }", "title": "" }, { "docid": "ab0f4e745ec49c139c75cc1f95dc90de", "score": "0.73301214", "text": "public function __construct()\n\t\t{\n\t\t\t//set parameter for properties\n\t\t}", "title": "" }, { "docid": "0ad300bcde58ec3c28e4484bfbfade37", "score": "0.7324745", "text": "public function __Construct(){\n \n }", "title": "" }, { "docid": "12f0bc7b89cc37c08cd7fd29ebe7ae6f", "score": "0.73145235", "text": "public function _construct() {\n parent::_construct();\n }", "title": "" }, { "docid": "9b7a18e1d63c89bb0c4e1cb3e09dd5a1", "score": "0.7274756", "text": "private function __construct() {\n\t\t\t/* Don't do anything, needs to be initialized via instance() method */\n\t\t}", "title": "" }, { "docid": "d49ed4a16e10abac20a6990a3affc55e", "score": "0.72617394", "text": "private function __construct() {\n\n\t\t\t\n\n\t\t}", "title": "" }, { "docid": "2ca0db111fa86304a73caf432b0ef867", "score": "0.7256405", "text": "public function _construct() {\r\n parent::_construct();\r\n }", "title": "" }, { "docid": "d9a4b9459b72dac207f4aa549cae522b", "score": "0.7255756", "text": "function _construct() {\n parent::_construct();\n }", "title": "" }, { "docid": "0703f34fcc3a02e040f7c2404e531b32", "score": "0.7245932", "text": "protected function __construct() {\n\t\t//Generated by ManagerGenerator::generateConstruct()\n\t}", "title": "" }, { "docid": "39e08316598085641f529fb10d3cded5", "score": "0.71908295", "text": "public function __construct() {\n\t\t// intentionally left empty, to void code from parent::__construct()\n\t}", "title": "" }, { "docid": "3ba95ab3b56f155f407e99f9fbb1e148", "score": "0.7187207", "text": "public function __construct() {\n\t\t\treturn;\n\t\t}", "title": "" }, { "docid": "2555350fe44e32159eec735031ec6f19", "score": "0.71836233", "text": "final private function __construct() {\n\t\t}", "title": "" }, { "docid": "d16b35e5235213c9cbb8e8d9415fc5a4", "score": "0.71625525", "text": "public function __construct() {\n\n\t\t// Eh bien.\n\n\t}", "title": "" }, { "docid": "f64c3fe2da9c1ef4d07ba7bc430597be", "score": "0.712587", "text": "public function _construct()\n {\n parent::_construct();\n }", "title": "" }, { "docid": "90d6c1c3b29be81de178d64548b86014", "score": "0.71155024", "text": "function __construct(){\n\n\t\t$this->init();\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "46980c9d3fef61068d26d496ee010f31", "score": "0.7114878", "text": "public function __construct() {\n\t\tparent::__construct($this);\n\t}", "title": "" }, { "docid": "7c40f5777044be57ec92688f0d3b88c3", "score": "0.71113205", "text": "final private function __construct()\r\n\t\t{\r\n\r\n\t\t}", "title": "" }, { "docid": "62e0584c27edeff5e8816912fe8bb396", "score": "0.71043694", "text": "function _construct() {\n\t\tparent::_construct();\n\t}", "title": "" }, { "docid": "62e0584c27edeff5e8816912fe8bb396", "score": "0.71043694", "text": "function _construct() {\n\t\tparent::_construct();\n\t}", "title": "" }, { "docid": "61517b0213f429081ad6d27b3598bebb", "score": "0.7102401", "text": "private function __construct() {\n\t\t}", "title": "" }, { "docid": "aa87a0f7eb70185747e7e667122452cb", "score": "0.71020365", "text": "public function construct()\n {\n\n }", "title": "" }, { "docid": "b0d7e6155f257fa0dd2318c2e1332791", "score": "0.70914745", "text": "public function __construct(){\n // leave empty, see singleton below\n }", "title": "" }, { "docid": "6b8b1bb15e694ec71ec64f1f2cc7b986", "score": "0.7061679", "text": "protected function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "6b8b1bb15e694ec71ec64f1f2cc7b986", "score": "0.7061679", "text": "protected function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "6b8b1bb15e694ec71ec64f1f2cc7b986", "score": "0.7061679", "text": "protected function __construct() {\n\t\t\n\t}", "title": "" }, { "docid": "5ca420daf0a62113f88cbbf0020f1250", "score": "0.7053205", "text": "public function __construct() {\n\t\t\n\t\t// construct the parent\n\t\tparent::__construct();\n\t\t\n\t}", "title": "" }, { "docid": "467132c3a2eb7b84c19bc65ff5a59d90", "score": "0.7052361", "text": "public function __init()\n {\n return $this;\n }", "title": "" }, { "docid": "6bd592f13b99fdb628b00e1854be4490", "score": "0.70448947", "text": "public function _construct()\r\n\t{\r\n\r\n\t}", "title": "" }, { "docid": "8f8a6425fc4196ca380c42c5937abd28", "score": "0.704382", "text": "private function __construct() {\n \n }", "title": "" }, { "docid": "907c3acbc4c0d706556e2012afdafc46", "score": "0.70286185", "text": "public function __construct () {\n\t\tparent::__construct( get_class( $this ) );\n\t\t//array_unshift( $this->properties_to_set, 'ID', 'name' );\n\t}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.7026239", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.7026239", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.7026239", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.7026239", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.7026239", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.7026239", "text": "protected function __construct() {}", "title": "" }, { "docid": "7cb42ce49071e9d9be1ced642821b0fe", "score": "0.7026239", "text": "protected function __construct() {}", "title": "" }, { "docid": "9764d39d5b562ccd8461566e36441d59", "score": "0.70168793", "text": "public function __construct(){\n\t\t/* calling parent construct */\n\t\tparent::__construct();\n\t}", "title": "" }, { "docid": "c31a961008095c8300e90f3a4b09a4a0", "score": "0.7016393", "text": "public function __construct() {\n\n // Return instance\n return $this;\n }", "title": "" }, { "docid": "f57831d3b17d8eb5bda80c81e5e0579c", "score": "0.70008427", "text": "private function __construct() {\n\t\t\t/* We do nothing here! */\n\t\t}", "title": "" }, { "docid": "cfce2266e481e915c9c880281f61135a", "score": "0.6997259", "text": "public function __construct()\n {\n return parent::__construct($this);\n }", "title": "" }, { "docid": "982b282d6d3706326f97c02079a0fa7d", "score": "0.6993761", "text": "private function __construct( )\n {\n $this->Initialise( );\n }", "title": "" }, { "docid": "982b282d6d3706326f97c02079a0fa7d", "score": "0.6993761", "text": "private function __construct( )\n {\n $this->Initialise( );\n }", "title": "" }, { "docid": "49467dd07b7d9817ff7c727b620e2d20", "score": "0.6982492", "text": "public function __construct()\n\t{\n\t\treturn;\n\t}", "title": "" }, { "docid": "3f7c34cde24d5f9870e9622f3770bfdc", "score": "0.6981768", "text": "public function __construct()\n {\n return $this;\n }", "title": "" }, { "docid": "4de2e52bb50aff5adb6607338972c32c", "score": "0.69721985", "text": "public function __construct() {\r\n\t\t//Nothing for now\r\n\t}", "title": "" }, { "docid": "259b0b506cdc71dda269d64076ea3cb1", "score": "0.69591415", "text": "public function post_construct(){}", "title": "" }, { "docid": "259b0b506cdc71dda269d64076ea3cb1", "score": "0.69591415", "text": "public function post_construct(){}", "title": "" }, { "docid": "0e59379112512b1f4fc1b3ae6ccaa830", "score": "0.6958511", "text": "private function __construct () {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" }, { "docid": "74995656862501c528150a00e0886be5", "score": "0.695646", "text": "private function __construct() {}", "title": "" } ]
7be8852dd1fe1c156cd223ad778081cc
Returns the task list but only for projects whose id is listed
[ { "docid": "a74fd533be165b0746432ca8292a9bfb", "score": "0.66636276", "text": "public function getProjectTasksForSelectProjects($projectIdList) {\n if (count($projectIdList) < 1) return [];\n $fieldNames = [];\n $sql = \"SELECT \n p.category as category, \n p.name as ProjectName,\n pt.name as TaskName, \n u.username, \n pt.`start_date`,\n pt.`due_date`,\n pt.status \n FROM projects AS p \n LEFT JOIN project_has_tasks as pt on pt.project_id = p.id \n LEFT JOIN users as u on pt.user_id=u.id\n WHERE p.id IN (\" . implode(\",\", $projectIdList) . \")\n ORDER BY p.category, p.name;\";\n /** @var CI_DB_mysql_result $result */\n $result = $this->_primaryDatabase->query($sql, []);\n $resultArray = $result->result();\n if ($result->num_rows() > 0) {\n foreach ((array) $resultArray[0] as $fieldName => $fieldValue) $fieldNames[] = $fieldName;\n $resultArray = array_merge([(object) $fieldNames], $resultArray);\n }\n return $resultArray;\n }", "title": "" } ]
[ { "docid": "d5392ac6563a61f2745c31c4228d032f", "score": "0.75748026", "text": "function getProjectList() {\n global $logger;\n\n $projects = Project::getProjects();\n if($projects != NULL) {\n $extproj_id = Config::getInstance()->getValue(Config::id_externalTasksProject);\n $smartyProjects = array();\n foreach($projects as $id => $name) {\n // exclude ExternalTasksProject\n if ($extproj_id == $id) {\n echo \"<script type=\\\"text/javascript\\\">console.log(\\\" getProjectList - project $id: ExternalTasksProject is excluded\\\");</script>\";\n continue;\n }\n\n // exclude SideTasksProjects\n try {\n $p = ProjectCache::getInstance()->getProject($id);\n if ($p->isSideTasksProject()) {\n echo \"<script type=\\\"text/javascript\\\">console.log(\\\" getProjectList - project $id: sideTaskProjects are excluded\\\");</script>\";\n continue;\n }\n } catch (Exception $e) {\n // could not determinate, so the project should be included in the list\n echo \"<script type=\\\"text/javascript\\\">console.log(\\\" getProjectList - project $id: Unknown type, project included anyway\\\");</script>\";\n // nothing to do.\n }\n $smartyProjects[$id] = $name;\n }\n return $smartyProjects;\n } else {\n return NULL;\n }\n}", "title": "" }, { "docid": "c471b7d4a10b5e5d8c1cd4fbfdc6756b", "score": "0.75112015", "text": "function getProjectsTasksAssigned($projectid)\n\t{\n\t\t$ret = array();\n\t\t$project = new Projects($projectid);\n\t\t//$project = $this->getProject($projectid);\n\t\t$dev_tasks = $this->getTaskList();\n\n\t\t//for each tasks if the developer's tasks and the task have the ID push it into the list\n\t\tforeach($dev_tasks as $dev_task)\n\t\t\tforeach($project->getTaskList() as $task)\n\t\t\t\tif($dev_task->getTaskID() == $task->getTaskID())\n\t\t\t\t\tarray_push($ret, $task);\n\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "17e506d7e48a55f1a16d523462ecf6d7", "score": "0.70734113", "text": "function projectTasks($project_id = '')\n {\n\n //validate id\n if (!is_numeric($project_id)) {\n $this->__debugging(__line__, __function__, 0, \"Invalid SQL Data\", '');\n return false;\n }\n \n //_____SQL QUERY___________________________________\n $query = $this->db->query(\"SELECT project_members.*, team_profile.*,\n (SELECT COUNT(tasks_id) FROM tasks\n WHERE tasks.tasks_project_id = $project_id\n AND tasks.tasks_assigned_to_id = project_members.project_members_team_id\n AND tasks.tasks_status = 'pending') AS count_tasks_pending,\n (SELECT COUNT(tasks_id) FROM tasks\n WHERE tasks.tasks_project_id = $project_id\n AND tasks.tasks_assigned_to_id = project_members.project_members_team_id\n AND tasks.tasks_status = 'completed') AS count_tasks_completed,\n (SELECT COUNT(tasks_id) FROM tasks\n WHERE tasks.tasks_project_id = $project_id\n AND tasks.tasks_assigned_to_id = project_members.project_members_team_id\n AND tasks.tasks_status = 'behind schedule') AS count_tasks_behind\n FROM project_members\n LEFT OUTER JOIN team_profile\n ON team_profile.team_profile_id = project_members.project_members_team_id\n WHERE project_members.project_members_project_id = '$project_id'\");\n\n //other results\n $results = $query->result_array();\n\n //debugging data\n $this->__debugging(__line__, __function__, $execution_time, __class__, $results);\n //----------sql & benchmarking end----------\n\n //---return\n return $results;\n }", "title": "" }, { "docid": "a7bc8e3f1033f6405a3338c2b423ff9c", "score": "0.7020693", "text": "function get_rel_tasks_project($id)\n {\n return $this->db->get_where('rel_tasks_project',array('id'=>$id))->row_array();\n }", "title": "" }, { "docid": "5b4f5033d3b5a3ffba1defc72f24d152", "score": "0.6846938", "text": "function get_all_rel_tasks_project($project_id)\n {\n $this->db->order_by('id', 'desc');\n $this->db->where('project_id', $project_id);\n return $this->db->get('rel_tasks_project')->result_array();\n }", "title": "" }, { "docid": "c80ac7c5a02a2b0cab2d746ea438ad70", "score": "0.6638325", "text": "function get_projects( $id ) {\n\t\t$this->db->select( '*,customers.id as customer_id, customers.company as customercompany,customers.namesurname as individual,customers.address as customeraddress,projects.status_id as status, projects.id as id ' );\n\t\t$this->db->join( 'customers', 'projects.customer_id = customers.id', 'left' );\n\t\treturn $this->db->get_where( 'projects', array( 'projects.id' => $id ) )->row_array();\n\t}", "title": "" }, { "docid": "25baac3767f6a32cc96c562db8aee03e", "score": "0.65763974", "text": "public function getProjects();", "title": "" }, { "docid": "c38a6633cb23a68f24dfca6819fce17d", "score": "0.6509954", "text": "public function getUserProjects($id)\n {\n $em = $this->getEntityManager();\n $qb = $em->createQueryBuilder();\n $qb->select('ur.id');\n $qb->from('Vlreleases\\UserBundle\\Entity\\User', 'u');\n $qb->innerJoin('u.projects', 'ur');\n $qb->where(\"u.id='$id'\");\n $result = $qb->getQuery()->getResult(); \n if($result)\n {\n for ($i = '0'; $i < sizeof($result); $i++)\n {\n $id = $result[$i]['id'];\n $qb1 = $em->createQueryBuilder();\n $qb1->select('u.name');\n $qb1->from('Vlreleases\\UserBundle\\Entity\\Project', 'u');\n $qb1->where(\"u.id='$id'\");\n $finalResult[$i] = $qb1->getQuery()->getResult();\n }\n return $finalResult;\n } \n else{\n return $result;\n }\n \n }", "title": "" }, { "docid": "58647cdd5e877b27b8a7b5f5b7cbbe73", "score": "0.6486914", "text": "public function index()\n {\n $business_id = request()->session()->get('user.business_id');\n $is_admin = $this->commonUtil->is_admin(auth()->user(), $business_id);\n $user = request()->session()->get('user');\n $statuses = ProjectTask::taskStatuses();\n \n if (!(auth()->user()->can('superadmin') || $this->moduleUtil->hasThePermissionInSubscription($business_id, 'project_module'))) {\n abort(403, 'Unauthorized action.');\n }\n\n if (request()->ajax()) {\n $project_task = ProjectTask::with(['members', 'createdBy', 'project', 'comments'])\n ->where('business_id', $business_id)\n ->select('*');\n\n //if user is not admin get assiged task only\n $user_id = $user['id'];\n if (empty(request()->get('project_id')) && !$is_admin) {\n $project_task->whereHas('members', function ($q) use ($user_id) {\n $q->where('user_id', $user_id);\n });\n }\n\n //filter by project id\n if (!empty(request()->get('project_id'))) {\n $project_task->where('project_id', request()->get('project_id'));\n }\n\n //filter by assigned to\n if (!empty(request()->get('user_id'))) {\n $user_id = request()->get('user_id');\n $project_task->whereHas('members', function ($q) use ($user_id) {\n $q->where('user_id', $user_id);\n });\n }\n\n // filter by status\n if (!empty(request()->get('status'))) {\n $project_task->where('status', request()->get('status'));\n }\n\n // filter by priority\n if (!empty(request()->get('priority'))) {\n $project_task->where('priority', request()->get('priority'));\n }\n\n // filter by due date\n if (!empty(request()->get('due_date'))) {\n if (request()->get('due_date') == 'overdue') {\n $project_task->where('due_date', '<', Carbon::today())\n ->where('status', '!=', 'completed');\n } elseif (request()->get('due_date') == 'today') {\n $project_task->where('due_date', Carbon::today())\n ->where('status', '!=', 'completed');\n } elseif (request()->get('due_date') == 'less_than_one_week') {\n $project_task->whereBetween('due_date', [Carbon::today(), Carbon::today()->addWeek()])\n ->where('status', '!=', 'completed');\n }\n }\n\n // check if user can crud task\n $project_id = request()->get('project_id');\n $project = Project::find($project_id);\n $is_lead = $this->projectUtil->isProjectLead(auth()->user()->id, $project_id);\n $is_member = $this->projectUtil->isProjectMember(auth()->user()->id, $project_id);\n\n $can_crud = false;\n if ($is_admin || $is_lead) {\n $can_crud = true;\n } elseif ($is_member && (isset($project->settings['members_crud_task']) && $project->settings['members_crud_task'])) {\n $can_crud = true;\n }\n\n if (request()->get('task_view') == 'list_view') {\n return Datatables::of($project_task)\n ->addColumn('action', function ($row) use ($can_crud) {\n $html = '<div class=\"btn-group\">\n <button class=\"btn btn-info dropdown-toggle btn-xs\" type=\"button\" data-toggle=\"dropdown\" aria-expanded=\"false\">\n '. __(\"messages.action\").'\n <span class=\"caret\"></span>\n <span class=\"sr-only\">'\n . __(\"messages.action\").'\n </span>\n </button>\n <ul class=\"dropdown-menu dropdown-menu-left\" role=\"menu\">\n <li>\n <a data-href=\"' . action('\\Modules\\Project\\Http\\Controllers\\TaskController@show', ['id' => $row->id, 'project_id' => $row->project_id]) . '\" class=\"cursor-pointer view_a_project_task\">\n <i class=\"fa fa-eye\"></i>\n '.__(\"messages.view\").'\n </a>\n </li>\n <li>\n <a data-href=\"' . action('\\Modules\\Project\\Http\\Controllers\\TaskController@getTaskStatus', ['id' => $row->id, 'project_id' => $row->project_id]) . '\"class=\"cursor-pointer change_status_of_project_task\">\n <i class=\"fa fa-check\"></i>\n '.__(\"project::lang.change_status\").'\n </a>\n </li>';\n\n if ($can_crud) {\n $html .= '<li>\n <a data-href=\"' . action('\\Modules\\Project\\Http\\Controllers\\TaskController@edit', ['id' => $row->id, 'project_id' => $row->project_id]) . '\" class=\"cursor-pointer edit_a_project_task\">\n <i class=\"fa fa-edit\"></i>\n '.__(\"messages.edit\").'\n </a>\n </li>\n <li>\n <a data-href=\"' . action('\\Modules\\Project\\Http\\Controllers\\TaskController@destroy', ['id' => $row->id, 'project_id' => $row->project_id]) . '\" class=\"cursor-pointer delete_a_project_task\">\n <i class=\"fas fa-trash\"></i>\n '.__(\"messages.delete\").'\n </a>\n </li>';\n }\n\n $html .= '</ul>\n </div>';\n\n return $html;\n })\n ->editColumn('priority', function ($row) {\n $priority = __('project::lang.'.$row->priority);\n\n $html = '<span class=\"label '.$this->priority_colors[$row->priority].'\">'.\n $priority\n .'</span>';\n\n \n return $html;\n })\n ->editColumn('start_date', '\n @if(isset($start_date))\n {{@format_date($start_date)}}\n @endif\n ')\n ->editColumn('due_date', '\n @if(isset($due_date))\n {{@format_date($due_date)}}\n @endif\n ')\n ->editColumn('createdBy', function ($row) {\n return optional($row->createdBy)->user_full_name;\n })\n ->editColumn('project', function ($row) {\n return $row->project->name;\n })\n ->editColumn('members', function ($row) {\n $html = '&nbsp;';\n foreach ($row->members as $member) {\n if (isset($member->media->display_url)) {\n $html .= '<img class=\"user_avatar\" src=\"'.$member->media->display_url.'\" data-toggle=\"tooltip\" title=\"'.$member->user_full_name.'\">';\n } else {\n $html .= '<img class=\"user_avatar\" src=\"https://ui-avatars.com/api/?name='.$member->first_name.'\" data-toggle=\"tooltip\" title=\"'.$member->user_full_name.'\">';\n }\n }\n\n return $html;\n })\n ->editColumn('status', function ($row) {\n if ($row->status == 'completed') {\n $status = __('project::lang.completed');\n $bg = 'bg-green';\n } elseif ($row->status == 'cancelled') {\n $status = __('project::lang.cancelled');\n $bg = 'bg-red';\n } elseif ($row->status == 'on_hold') {\n $status = __('project::lang.on_hold');\n $bg = 'bg-yellow';\n } elseif ($row->status == 'in_progress') {\n $status = __('project::lang.in_progress');\n $bg = 'bg-info';\n } elseif ($row->status == 'not_started') {\n $status = __('project::lang.not_started');\n $bg = 'bg-red';\n }\n\n $href = action(\"\\Modules\\Project\\Http\\Controllers\\TaskController@getTaskStatus\", [\"id\" => $row->id, \"project_id\" => $row->project_id]);\n\n $html = '<span class=\"cursor-pointer change_status_of_project_task label '.$bg.'\" data-href=\"'.$href.'\">\n '.\n $status\n .'</span>';\n\n return $html;\n })\n ->editColumn('subject', '\n <a data-href=\"{{action(\"\\Modules\\Project\\Http\\Controllers\\TaskController@show\", [\"id\" => $id, \"project_id\" => $project_id])}}\" class=\"cursor-pointer view_a_project_task text-black\">\n {{$subject}} <code>{{$task_id}}</code>\n </a>\n ')\n ->removeColumn('id')\n ->rawColumns(['action', 'project', 'subject', 'members', 'priority', 'start_date', 'due_date', 'status', 'createdBy'])\n ->make(true);\n } elseif (request()->get('task_view') == 'kanban') {\n $project_task = $project_task->get()->groupBy('status');\n\n //sort array based on status\n $project_tasks = [];\n foreach ($statuses as $key => $value) {\n if (!isset($project_task[$key])) {\n $project_tasks[$key] = [];\n } else {\n $project_tasks[$key] = $project_task[$key];\n }\n }\n\n $kanban_tasks = [];\n foreach ($project_tasks as $key => $tasks) {\n //get all the card for particular board(status)\n $cards = [];\n foreach ($tasks as $task) {\n $edit = '';\n $delete = '';\n if ($can_crud) {\n $edit = action('\\Modules\\Project\\Http\\Controllers\\TaskController@edit', ['id' => $task->id, 'project_id' => $task->project_id]);\n\n $delete = action('\\Modules\\Project\\Http\\Controllers\\TaskController@destroy', ['id' => $task->id, 'project_id' => $task->project_id]);\n }\n\n $view = action('\\Modules\\Project\\Http\\Controllers\\TaskController@show', ['id' => $task->id, 'project_id' => $task->project_id]);\n\n //if member then get their avatar\n if ($task->members->count() > 0) {\n $assigned_to = [];\n foreach ($task->members as $member) {\n if (isset($member->media->display_url)) {\n $assigned_to[$member->user_full_name] = $member->media->display_url;\n } else {\n $assigned_to[$member->user_full_name] = \"https://ui-avatars.com/api/?name=\".$member->first_name;\n }\n }\n }\n\n $cards[] = [\n 'id' => $task->id,\n 'title' => $task->subject,\n 'project_id' => $task->project_id,\n 'project' => $task->project->name,\n 'subtitle' => $task->task_id,\n 'viewUrl' => $view,\n 'viewUrlClass' => 'view_a_project_task',\n 'editUrl' => $edit,\n 'editUrlClass' => 'edit_a_project_task',\n 'deleteUrl' => $delete,\n 'deleteUrlClass' => 'delete_a_project_task',\n 'hasDescription' => !empty($task->description) ?: false,\n 'hasComments' => ($task->comments->count() > 0) ?: false,\n 'dueDate' => $task->due_date,\n 'assigned_to' => $assigned_to,\n 'tags' => [__('project::lang.'.$task->priority)],\n ];\n }\n\n //get all the card & board title for particular board(status)\n $kanban_tasks[] = [\n 'id' => $key,\n 'title' => __('project::lang.'.$key),\n 'cards' => $cards,\n ];\n }\n\n $output = [\n 'success' => true,\n 'project_tasks' => $kanban_tasks,\n 'msg' => __('lang_v1.success')\n ];\n\n return $output;\n }\n }\n\n $business_id = request()->session()->get('user.business_id');\n $users = User::forDropdown($business_id, false);\n $priorities = ProjectTask::prioritiesDropdown();\n $due_dates = ProjectTask::dueDatesDropdown();\n\n // if not admin get assigned project for filter\n $user_id = null;\n if (!$is_admin) {\n $user_id = $user['id'];\n }\n\n $projects = Project::projectDropdown($business_id, $user_id);\n\n return view('project::my_task.index')\n ->with(compact('users', 'statuses', 'priorities', 'due_dates', 'projects', 'is_admin'));\n }", "title": "" }, { "docid": "4a734be3b7a402d1130f5bb6674917b9", "score": "0.64701176", "text": "public function getProjects($id) {\n try {\n $phdao = new Persons_Persist_Dao_PersonHelped();\n\n $r = $phdao->getProjectsByPerson($id);\n $r = is_null($r) ? array() : $r;\n return $r;\n } catch (Exception $e) {\n throw new Agana_Exception($e->getMessage(), Agana_Exception::EXCEPTION_APP_WARNING, $e);\n ;\n }\n }", "title": "" }, { "docid": "8acddaa059a985a47e9b2589081fbea9", "score": "0.6433784", "text": "function &getTasksByGroupProjectName () {\n\t\treturn $this->getTasksFromSQLwithParams ('SELECT ptv.*,g.group_name,pgl.project_name\n\t\t\tFROM project_task_vw ptv,\n\t\t\t\tproject_assigned_to pat,\n\t\t\t\tgroups g,\n\t\t\t\tproject_group_list pgl\n\t\t\tWHERE ptv.project_task_id=pat.project_task_id\n\t\t\t\tAND pgl.group_id=g.group_id\n\t\t\t\tAND pgl.group_project_id=ptv.group_project_id\n\t\t\t\tAND ptv.status_id=1\n\t\t\t\tAND pat.assigned_to_id=$1\n\t\t\tORDER BY group_name,project_name',\n\t\t\t\t\t\t\t array ($this->User->getID())) ;\n\t}", "title": "" }, { "docid": "065c57af75f9363d3b7ba576152330ab", "score": "0.6433424", "text": "function getRelatedTasks() {\n\t\tif (!$this->relatedtasks) {\n\t\t\t$this->relatedtasks = db_query_params ('SELECT pt.group_project_id,pt.project_task_id,pt.summary,pt.start_date,pt.end_date,pgl.group_id,pt.status_id,pt.percent_complete,ps.status_name\n\t\t\tFROM project_task pt, project_group_list pgl, project_status ps\n\t\t\tWHERE pt.group_project_id = pgl.group_project_id\n AND ps.status_id = pt.status_id\n AND EXISTS (SELECT project_task_id FROM project_task_artifact\n\t\t\t\tWHERE project_task_id=pt.project_task_id\n\t\t\t\tAND artifact_id = $1)',\n\t\t\t\t\t\t\t array ($this->getID())) ;\n\t\t}\n\t\treturn $this->relatedtasks;\n\t}", "title": "" }, { "docid": "6398b02b7a023aa70dec3075ac574c0f", "score": "0.63860005", "text": "public function show($id)\n {\n $projectInfo = Projects::findOrFail($id);\n\n $tasksProject = Projects::findOrFail($id)->taskProject()->paginate(2);\n $projectUsers = DB::table('projects')\n ->join('tasks', 'projects.id', '=', 'tasks.project_id')\n ->join('taskUser', 'tasks.id', '=', 'taskUser.task_id')\n ->join('users', 'taskUser.user_id', '=', 'users.id')\n ->where('projects.id', '=', $id)\n ->select('taskUser.user_id', 'users.id')\n ->get();\n\n $userProjects = array();\n foreach ($projectUsers as $projectUser) {\n $userProjects[] = $projectUser->id;\n }\n $userProjects= array_unique($userProjects);\n \n\n $users = DB::table('users')\n ->whereIn('id', $userProjects)\n ->get();\n $teams = DB::table('teams')->get();\n\n $usersTask = DB::table('users')->get();\n\n return view('admin.project.show', ['teams' => $teams,'usersTask' => $usersTask,'projectInfo' => $projectInfo,'users' => $users ,'tasksProject' => $tasksProject]);\n }", "title": "" }, { "docid": "fda82b21adc25447fa64f45ad73a8a3a", "score": "0.638304", "text": "public function getProjectList() { \n $q = Doctrine_Query::create()->from('Project')\n ->orderBy('id');\n \n return $q->execute(); \n }", "title": "" }, { "docid": "8aff2fb64e9cb9d8f63498e4a718f242", "score": "0.63762534", "text": "public function index($id)\n {\n return $this->taskListRepository->tasks($id);\n }", "title": "" }, { "docid": "0d50f7005cec1622a57ccb9332572374", "score": "0.63760173", "text": "public function getTasksList($team_id, $filter=\"\", $page=1){\n $bdd = $this->connectDB();\n\n $offset_p=($page-1)*MAX_TASK_ROWS;\n $tasks=array();\n\n //1) get results Count\n if($filter==\"\"){\n $str_query='SELECT COUNT(*) AS nb_rows\n FROM task\n WHERE team= ? AND is_closed=0';\n $params=array($team_id);\n }else{\n $str_query='SELECT COUNT(*) AS nb_rows\n FROM task\n LEFT JOIN user\n ON task.assignee=user.id\n WHERE team= ? AND is_closed=0 AND (title LIKE \"%\"?\"%\" OR user.fullname LIKE \"%\"?\"%\" OR status LIKE \"%\"?\"%\")';\n $params=array($team_id,$filter,$filter,$filter);\n }\n\n $rows_count=0;\n\n $req=$bdd->prepare($str_query);\n $req->execute($params);\n if ($req->rowCount()){\n $row = $req->fetch();\n $rows_count=$row['nb_rows'];\n }\n\n $tasks['rows_count'] = $rows_count;\n\n //2) get list of tasks for the team\n $tasks_list=array();\n\n if($filter==\"\"){\n $str_query='SELECT task.id AS id, task.title AS title, IFNULL(user.fullname,\"\") AS fullname,\n status.name as status, task.priority as priority\n FROM task\n LEFT JOIN user\n ON task.assignee=user.id\n LEFT JOIN status\n ON task.status=status.id\n WHERE team= ? AND is_closed=0\n ORDER BY last_modification_date DESC limit '.MAX_TASK_ROWS.' OFFSET '.$offset_p;\n\n }else{\n $str_query='SELECT task.id AS id, task.title AS title, IFNULL(user.fullname,\"\") AS fullname,\n status.name as status, task.priority as priority\n FROM task\n LEFT JOIN user\n ON task.assignee=user.id\n LEFT JOIN status\n ON task.status=status.id\n WHERE team= ? AND is_closed=0 AND (title LIKE \"%\"?\"%\" OR user.fullname LIKE \"%\"?\"%\" OR status LIKE \"%\"?\"%\")\n ORDER BY last_modification_date DESC limit '.MAX_TASK_ROWS.' OFFSET '.$offset_p;\n }\n $req=$bdd->prepare($str_query);\n $req->execute($params);\n\n if ($req->rowCount()){\n while ($row = $req->fetch(PDO::FETCH_ASSOC)) {\n $tasks_list[]=$row;\n }\n }\n\n $tasks['list'] = $tasks_list;\n\n $bdd=null;\n return $tasks;\n }", "title": "" }, { "docid": "32e196d8491df7b0ace6975791f200ff", "score": "0.6362984", "text": "public function all($id, $group)\n {\n return $this->task->where('idprojeto', $id)->where('idgrupo', $group)->paginate();\n }", "title": "" }, { "docid": "0eb3b7c0e1660769eae3cd8d1a698652", "score": "0.6332944", "text": "public function getProjectTasks() {\n $fieldNames = [];\n $sql = \"SELECT \n p.name as ProjectName,\n pt.name as TaskName, \n u.username, \n pt.`start_date`,\n pt.`due_date`,\n pt.status \n FROM projects AS p \n LEFT JOIN project_has_tasks as pt on pt.project_id = p.id \n LEFT JOIN users as u on pt.user_id=u.id;\";\n /** @var CI_DB_mysql_result $result */\n $result = $this->_primaryDatabase->query($sql, []);\n $resultArray = $result->result();\n if ($result->num_rows() > 0) {\n foreach ((array) $resultArray[0] as $fieldName => $fieldValue) $fieldNames[] = $fieldName;\n $resultArray = array_merge([(object) $fieldNames], $resultArray);\n }\n\n return $resultArray;\n }", "title": "" }, { "docid": "09c2283eb9da53f1d31ed3c028906ba4", "score": "0.63221395", "text": "public function getTaskList($params = [])\n {\n $this->sendRequest(\n [\n 'methodName' => 'project.list',\n 'pool_id' => $params['pool_id'] ?? 0,\n 'limit' => $params['limit'] ?? 10,\n 'status' => $params['status'] ?? 'ACTIVE',\n 'sort' => $params['sort'] ?? '-id',\n ]\n );\n\n return $this->result;\n }", "title": "" }, { "docid": "cdc85012e037eb9d8372c83248fcc0ff", "score": "0.62963206", "text": "function getAllSubProjectTasks()\n {\n\t\t$projectTasksBeans = array();\n\n if (!empty($this->project_task_id) && !empty($this->project_id))\n\t\t{\n //select all tasks from a project\n $query = \"SELECT id, project_task_id, parent_task_id FROM project_task WHERE project_id = '{$this->project_id}' AND deleted = 0 ORDER BY project_task_id\";\n\n $result = $this->db->query($query, true, \"Error retrieving child project tasks\");\n\n $projectTasks=array();\n while($row = $this->db->fetchByAssoc($result))\n {\n $projectTasks[$row['id']]['project_task_id'] = $row['project_task_id'];\n $projectTasks[$row['id']]['parent_task_id'] = $row['parent_task_id'];\n }\n\n $potentialParentTaskIds[$this->project_task_id] = $this->project_task_id;\n $actualParentTaskIds=array();\n $subProjectTasks=array();\n\n $startProjectTasksCount=0;\n $endProjectTasksCount=0;\n\n //get all child tasks\n $run = true;\n while ($run)\n {\n $count=0;\n\n foreach ($projectTasks as $id=>$values)\n {\n if (in_array($values['parent_task_id'], $potentialParentTaskIds))\n {\n $potentialParentTaskIds[$values['project_task_id']] = $values['project_task_id'];\n $actualParentTaskIds[$values['parent_task_id']] = $values['parent_task_id'];\n\n $subProjectTasks[$id]=$values;\n $count=$count+1;\n }\n }\n\n $endProjectTasksCount = count($subProjectTasks);\n\n if ($startProjectTasksCount == $endProjectTasksCount)\n {\n $run = false;\n }\n else\n {\n $startProjectTasksCount = $endProjectTasksCount;\n }\n }\n\n foreach($subProjectTasks as $id=>$values)\n {\n //ignore tasks that are parents\n if(!in_array($values['project_task_id'], $actualParentTaskIds))\n {\n $projectTaskBean = BeanFactory::getBean('ProjectTask', $id);\n array_push($projectTasksBeans, $projectTaskBean);\n }\n }\n\t\t}\n\n\t\treturn $projectTasksBeans;\n\t}", "title": "" }, { "docid": "43d49652250bf895e514e7cd032af5d6", "score": "0.62890536", "text": "public function findTasksByProjectId(int $value)\n {\n return $this->createQueryBuilder('t')\n ->andWhere('t.project = :project')\n ->setParameter('project', $value)\n ->andWhere('t.deleted = :deleted')\n ->setParameter('deleted', 0)\n ->orderBy('t.id', 'ASC')\n ->setMaxResults((int)$this->limit)\n ->getQuery()\n ->getResult()\n ;\n }", "title": "" }, { "docid": "f1b997b6fb5a9a9eb37f63f18e7cb356", "score": "0.62654877", "text": "public function getUserTasks($id){\n\t\t$sql = \"SELECT $this->tableUserTask.id_task,task.title, task.description,$this->tableUserTask.assignment_date,$this->tableUserTask.completed FROM {$this->tableUserTask} JOIN task ON $this->tableUserTask.id_task = task.id_task JOIN user ON $this->tableUserTask.id_user = user.id_user WHERE user.id_user='{$id}'\";\n\t\t$query = mysqli_query($this->conn,$sql);\n\t\tif($query){\n\t\t\treturn mysqli_fetch_all($query,MYSQLI_ASSOC);\n\t\t}else{\n\t\t\techo \"No tasks assigned\";\n\t\t}\n\t}", "title": "" }, { "docid": "b013c5406c564a70cd9acc3b26289632", "score": "0.623646", "text": "function getProjects() {\n\n\tglobal $db;\n\treturn $db->getProjectsByGroup ( $GLOBALS [\"targetId\"] );\n\n}", "title": "" }, { "docid": "0eec72aa91a82a9217f24a026e538104", "score": "0.62113535", "text": "function getProject($id = null)\n {\n $where = '';\n if($id) $where = \" AND idproject = '{$id}'\";\n $query = $this->db->query(\"SELECT idproject, title, DATE_FORMAT(startdate,'%m/%d/%Y') as startdate,\n\t\t DATE_FORMAT(enddate,'%m/%d/%Y') as enddate, companyname, companyurl, companycontactperson, companycontactpersonemail,\n\t\t note, active\n FROM project\n WHERE active = 1 {$where}\n ORDER BY idproject DESC\");\n\t\treturn $query; \n /*if($query->num_rows() > 1){\n return $query->result_array();\n }else{\n return $query->row_array();\n }*/\t\n }", "title": "" }, { "docid": "a38005a0b18df45fe6172b2dca25eabf", "score": "0.6199556", "text": "function show_all_tasks_for_project($in_project_id) { \n $query_string = <<< MARKER\n SELECT t.task_id, t.task_name, t.create_date, t.completed_date, t.project_id, t.iteration_id, t.status_id, \n t.size_id, t.description, i.iteration_name\n FROM task t\n LEFT JOIN iteration i ON i.iteration_id = t.iteration_id\n WHERE t.project_id = $in_project_id;\nMARKER;\n $db_output = db_query($query_string);\n while ($row = mysqli_fetch_array($db_output)) {\n $task_name = $row['task_name'];\n $iteration_name = $row['iteration_name'];\n $status_id = $row['status_id'];\n $size_id = $row['size_id'];\n $description = $row['description'];\n $task_info_out = <<<MARKER\n <ul class=\"list-group\">\n <li class=\"list-group-item active\"> <strong>Task: </strong> $task_name</li>\n <li class=\"list-group-item \"> <strong>Iteration: </strong> $iteration_name</li>\n <li class=\"list-group-item \"> <strong>Status: </strong> $status_id</li>\n <li class=\"list-group-item \"> <strong>Size: </strong> $size_id</li>\n <li class=\"list-group-item \"> <strong>Description: </strong> $description</li>\n </ul>\nMARKER;\n echo ($task_info_out);\n }\n}", "title": "" }, { "docid": "3096f99959329eb0cbf372b1a9087cf0", "score": "0.6176056", "text": "public function index($id)\n {\n return $this->repository->findWhere(['projeto_id' => $id]);\n }", "title": "" }, { "docid": "00ddb82f3ef2cc6d53f336a21750b3ed", "score": "0.6173735", "text": "public function listByProjectAction($projectId)\n {\n $this->view->disable();\n\n $parameters = $this->persistent->parameters;\n if (!is_array($parameters)) {\n $parameters = [];\n }\n $parameters['conditions'] = \"project_id = \" . $projectId;\n $parameters['order'] = \"sequence ASC\";\n \n $workflows = Workflow::find($parameters);\n // $this->view->workflows = $workflows;\n // $this->view->setTemplateAfter('content');\n $this->response->setJsonContent($workflows);\n $this->response->send(); \n }", "title": "" }, { "docid": "c35516e161b0a71ab860b0c8fd574710", "score": "0.6136258", "text": "public static function getProjectDetails($id){\n\t\t$db = DemoDB::getConnection();\n\t\tProjectModel::createViewCurrentIteration($db);\n $sql = \"SELECT project.name as project_name, description, project.created_at, first_name, last_name, project_role.name as role_name, deadline, current_iteration.id as iteration_id\n\t\t\t\tFROM project\n INNER JOIN project_member\n\t\t\t\t\tON project.id = project_member.project_id\n INNER JOIN member\n\t\t\t\t\tON member_id = member.id\n INNER JOIN project_role\n\t\t\t\t\tON role_id = project_role.id\n\t\t\t\tLEFT OUTER JOIN current_iteration\n\t\t\t\t\tON project.id = current_iteration.project_id\n\t\t\t\tWHERE project.id = :id;\";\n $stmt = $db->prepare($sql);\n $stmt->bindValue(\":id\", $id);\n\t\t$ok = $stmt->execute();\n\t\tif ($ok) {\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\n }\n\t}", "title": "" }, { "docid": "1339819f59fb311f71f6552ff7c00d75", "score": "0.60896045", "text": "function getProjectList()\n\t{\n\t\t//Update Project List\n\t\t$this->Project_List = null;\n\t\t$assigned_projects_rows = returnRowsDeveloperAssignments($this->getUsername(), 'Project');\n\t\tforeach($assigned_projects_rows as $assigned_project)\n\t\t\t$this->Project_List[] = new Projects( $assigned_project['ClientProjectTask'] );\n\t\treturn $this->Project_List;\n\t}", "title": "" }, { "docid": "eb306c6f2a90073d7542fe64a79f87a9", "score": "0.60740536", "text": "public static function show($id) {\r\n\t\t\tself::check_logged_in();\r\n\t\t\t$tasks = Task::listProject($id);\r\n\t\t\t$project_name = Project::getName($id);\r\n\t\t\t//Kint::dump($tasks);\r\n\t\t\t//View::make('project/show.html', array('tasks' => $tasks));\r\n\t\t\tView::make('project/show.html', array('tasks' => $tasks, 'project_name' => $project_name));\r\n\t\t}", "title": "" }, { "docid": "6ab80a0d6532e792b40f0953a682e0be", "score": "0.6073253", "text": "public function getTasksQueryByProjectID ($projectID, $shownMenu) {\r\n\t\t$db = new DB();\r\n\t\t$db->connect();\r\n\t\t\r\n\t\t$projectID = $db->esc($projectID);\r\n\t\t$taskpropDA = new TaskpropDA();\r\n\t\t\r\n\t\t$whereclause = \"\";\r\n\t\t\r\n\t\tif ($shownMenu == \"all\") {\r\n\t\t\t$whereclause = \"WHERE task.project_id = \".$projectID . \" AND task.active=1\";\r\n\t\t}\r\n\t\t\r\n\t\tif ($shownMenu == \"myopen\") {\r\n\t\t\t$userId = $_SESSION['nobug'.RANDOMKEY.'userId'];\r\n\t\t\t$whereclause = \"WHERE task.project_id = \".$projectID . \" AND task.active=1 AND `status`.isDone = 0 AND `task`.assignee_id = $userId\";\r\n\t\t}\r\n\t\t\r\n\t\tif ($shownMenu == \"open\") {\r\n\t\t\t$whereclause = \"WHERE task.project_id = \".$projectID . \" AND task.active=1 AND `status`.isDone = 0\";\r\n\t\t}\r\n\t\t\r\n\t\tif ($shownMenu == \"closed\") {\r\n\t\t\t$whereclause = \"WHERE task.project_id = \".$projectID . \" AND task.active=1 AND `status`.isDone = 1\";\r\n\t\t}\r\n\t\t\r\n\t\tif ($shownMenu == \"unassigned\") {\r\n\t\t\t$whereclause = \"WHERE task.project_id = \".$projectID . \" AND task.active=1 AND task.assignee_id is null\";\r\n\t\t}\r\n\t\t\r\n\t\t$basesql = \"SELECT task.id, task.summary, task.description, task.active, `status`.name,\r\n\t\t assignee.prename AS assigneePrename, assignee.surname AS assigneeSurname, assignee.id AS assigneeID,\r\n\t\t\t\t\t\t`status`.color, `component`.name AS componentName FROM task\r\n\t\t\t\t\tINNER JOIN `status` ON task.status_id = `status`.id\r\n\t\t\t\t LEFT JOIN `user` AS assignee ON task.assignee_id = assignee.id\r\n\t\t\t\t LEFT JOIN `component` AS `component` ON task.component_id = `component`.id\r\n\t\t\t\t\t$whereclause\r\n\t\t\t\t\tORDER BY task.id DESC\";\r\n\t\treturn $db->query($basesql);\r\n\t}", "title": "" }, { "docid": "bb2a83afd09699c4995e55cec4fd6f10", "score": "0.6062503", "text": "function get_all($client_id) {\r\n $f3 = \\Base::instance();\r\n\r\n $project_short = $f3->get('PARAMS.project');\r\n $client_short = $f3->get('PARAMS.client');\r\n $projects_db=new DB\\SQL\\Mapper($f3->get('DB'),'projects');\r\n $projects=$projects_db->find(array('client_id=?',$client_id),array('order'=>'project_full'));\r\n\r\n $out = array();\r\n foreach($projects as $project)\r\n {\r\n //if($project->active == 0) continue;\r\n $out[] = array(\r\n \"project_id\"=>$project->project_id,\r\n \"client_id\"=>$project->client_id,\r\n \"project_short\"=>$project->project_short,\r\n \"project_full\"=>$project->project_full,\r\n \"description\"=> $projects->description,\r\n \"active\"=>$projects->active,\r\n \"drafts\"=>$projects->drafts,\r\n \"project_url\"=> $f3->get('site.url').$client_short.\"/\".$project->project_short\r\n );\r\n }\r\n\r\n return $out;\r\n }", "title": "" }, { "docid": "8ba548a9f3211fd50fdbbd901c0d71a8", "score": "0.60620356", "text": "public function viewProjectTasks() {\n\n return $this->render('enterprise/task/project_tasks.html.twig', array(\n 'tasks' => array(\n '0' => array(\n 'titre' => 'titre',\n 'priority' => 'High',\n 'category' => 'Bug',\n 'status' => 'New',\n 'progress' => '20%',\n 'datemodif' => '20/05/2015'\n ),\n '1' => array(\n 'titre' => 'titre',\n 'priority' => 'Low',\n 'category' => 'Dev',\n 'status' => 'In Progress',\n 'progress' => '60%',\n 'datemodif' => '03/06/2004'\n ),\n '2' => array(\n 'titre' => 'titre',\n 'priority' => 'Med',\n 'category' => 'Doc',\n 'status' => 'Rejected',\n 'progress' => '20%',\n 'datemodif' => '02/08/2013'\n ),\n '3' => array(\n 'titre' => 'titre',\n 'priority' => 'Med',\n 'category' => 'Dev',\n 'status' => 'Valided',\n 'progress' => '100%',\n 'datemodif' => '02/05/2016'\n )\n )\n )\n );\n }", "title": "" }, { "docid": "dfed8fa8796808110be49cd8857bca78", "score": "0.6046055", "text": "private function getDueTasks($project_id, $tag)\r\n {\r\n\t\t$tag_id = $this->tagModel->getIdByName($project_id, $tag);\r\n if ($tag_id == 0){return array();} /* $tag not found in project */\r\n\t\t\r\n return $this->db->table(TaskModel::TABLE)\r\n ->columns(\r\n TaskModel::TABLE.'.id',\r\n TaskModel::TABLE.'.project_id',\r\n TaskModel::TABLE.'.date_due',\r\n TaskModel::TABLE.'.title'\r\n )\r\n ->join(TaskTagModel::TABLE, 'task_id', 'id')\r\n ->eq(TaskTagModel::TABLE.'.tag_id', $tag_id)\r\n ->eq(TaskModel::TABLE.'.project_id', $project_id)\r\n ->gte(TaskModel::TABLE.'.date_due', strtotime(\"today\"))\r\n ->lt(TaskModel::TABLE.'.date_due', strtotime(\"tomorrow\"))\r\n\t\t\t\t\t->findAll();\r\n }", "title": "" }, { "docid": "553ee178cde87ce56f65bf42b0c021bd", "score": "0.6032316", "text": "public function taskList() {\n return $this->hasMany('Peteryan\\Task', 'ProjectId', 'Id');\n }", "title": "" }, { "docid": "696fd98be4480fb073ec4db7de538228", "score": "0.60308725", "text": "public function getParentTaskLists()\n {\n $me = Auth::user();\n $status = ResponseStatus::OK;\n\n $tasks = Task::select(Task::table. '.id', Task::table. '.' .Task::slug, Task::table. '.' .Task::title)\n ->leftJoin(TaskParticipants::table, TaskParticipants::table. '.' . TaskParticipants::task_id, '=', Task::table. '.id')\n ->where(function ($query) use ($me) {\n $query->orWhere(Task::table . '.' .Task::creator_user_id, $me->id)\n ->orWhere(Task::table . '.' .Task::responsible_person_id, $me->id)\n ->orWhere(TaskParticipants::table . '.' .TaskParticipants::user_id, $me->id);\n })\n ->where(Task::table. '.'. Task::is_template, false)\n ->where(Task::table . '.' .Task::archive, false);\n\n if (request()->has('q')) {\n $query = request()->q;\n $tasks->Where(Task::table. '.' .Task::title, 'like', \"%{$query}%\");\n }\n\n $tasks->groupBy(Task::table. '.id');\n $response = $tasks->get();\n\n if ($response->isEmpty()) {\n $status = ResponseStatus::NOT_FOUND;\n }\n\n return $this->content = array(\n 'data' => $response,\n 'code' => Response::HTTP_OK,\n 'status' => $status\n );\n }", "title": "" }, { "docid": "9b8c16d52a8c8902564f4ca24caccfc7", "score": "0.6025657", "text": "public static function getTasks($params)\r\n {\r\n $database = new Database();\r\n $dbConn = $database->getConnection();\r\n\r\n // select all query\r\n $query = '';\r\n\r\n $query .= \"SELECT c.company_name,p.project_name, u1.nickname as assigned_user_nickname,u2.nickname as creator_user_nickname, COUNT(n.ID) as notes_count, t.* FROM tasks t LEFT JOIN users u1 ON u1.ID=t.assigned_user_id LEFT JOIN users u2 ON u2.ID=t.creator_user_id INNER JOIN projects p ON t.related_table_id=p.ID INNER JOIN companies c ON c.ID=p.company_id LEFT JOIN notes n ON t.ID=n.related_table_id AND n.related_table='tasks' WHERE t.related_table='projects' AND t.status = 'not_started'\";\r\n\r\n if (isset($params['assignedUserId']) && is_numeric($params['assignedUserId']))\r\n $query .= \" AND t.assigned_user_id=\" . $params['assignedUserId'];\r\n\r\n $query .= \" GROUP BY t.ID\";\r\n $query .= \" ORDER BY t.due_date ASC\";\r\n //$query .= \" LIMIT 1000, 500\";\r\n\r\n // prepare query statement\r\n $stmt = $dbConn->prepare($query);\r\n\r\n // execute query\r\n $stmt->execute();\r\n\r\n $numRows = $stmt->rowCount();\r\n\r\n $tasksArray = array();\r\n\r\n if ($numRows > 0) {\r\n // retrieve our table contents\r\n // fetch() is faster than fetchAll()\r\n // http://stackoverflow.com/questions/2770630/pdofetchall-vs-pdofetch-in-a-loop\r\n\r\n while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {\r\n $taskItem = array(\r\n 'ID' => $row['ID'],\r\n 'title' => $row['title'],\r\n 'description' => $row['description'],\r\n 'assignedUserNickname' => $row['assigned_user_nickname'],\r\n 'creatorUserNickname' => $row['creator_user_nickname'],\r\n 'projectName' => $row['project_name'],\r\n 'companyName' => $row['company_name'],\r\n 'dueDate' => $row['due_date'],\r\n 'notesCount' => $row['notes_count']\r\n\r\n );\r\n\r\n array_push($tasksArray, $taskItem);\r\n }\r\n }\r\n\r\n return $tasksArray;\r\n }", "title": "" }, { "docid": "2481bd5c2febbd6eee34d2c22ec68c87", "score": "0.60079396", "text": "public function get_project_all(){\n }", "title": "" }, { "docid": "6969ec819c6298f19b6490cc3690d506", "score": "0.6003171", "text": "function getProductsInProjects($id_project){\n global $db;\n\n $sql = \"SELECT * FROM projects_products WHERE id_project = $id_project\";\n Basic::EventLog(\"Product->getProductsInProjects: \".$sql);\n $res =& $db->query($sql);\n return $res;\n }", "title": "" }, { "docid": "7ecbfa8318a42ac241bef0fdf5ade059", "score": "0.60024107", "text": "public function getSocialProjects($id) {\n try {\n $phdao = new Persons_Persist_Dao_PersonHelped();\n\n $r = $phdao->getSocialProjectsByPerson($id);\n $r = is_null($r) ? array() : $r;\n return $r;\n } catch (Exception $e) {\n throw new Agana_Exception($e->getMessage(), Agana_Exception::EXCEPTION_APP_WARNING, $e);\n ;\n }\n }", "title": "" }, { "docid": "f07616a1348ae33618345622113c4ff8", "score": "0.5998663", "text": "public static function getByProjectId($projectId) {\n return self::find()->select(['id', 'name'])\n ->andWhere(['project_id' => $projectId])\n ->andCompanyId()\n ->asArray()\n ->all();\n }", "title": "" }, { "docid": "b1de05f4ce2a0ec9124b8526dfcb2075", "score": "0.59924334", "text": "public function index($id)\n {\n return TypeOfProjectResourceCollection::collection(projectDetail::where('typeOfProjectId', $id)->paginate(5));\n }", "title": "" }, { "docid": "73fefdd363155ac1e4a7a7ec30b67b0b", "score": "0.5982275", "text": "public function get_project_list_get()\n {\n \t$result = $this->Post_project_model->get_project_list();\n \treturn $this->response($result);\n }", "title": "" }, { "docid": "eb8c4d28092244224dbd642a2ce79254", "score": "0.59785193", "text": "public static function index(Project $project): array\n {\n $company = $project->company;\n $tasks = $project->tasks()\n ->with('list')\n ->with('assignee')\n ->with('author')\n ->with('timeTrackingEntries')\n ->get();\n\n // the goal of the following is to first display tasks without lists,\n // and after this, tasks with lists, grouped by lists.\n // the trick is to do this with a single query, as we don’t want to do\n // multiple queries to slow down the loading speed of the page.\n\n $tasksWithoutLists = $tasks->filter(function ($task) {\n return is_null($task->project_task_list_id);\n });\n $tasksWithoutListsCollection = collect([]);\n foreach ($tasksWithoutLists as $task) {\n $tasksWithoutListsCollection->push(self::getTaskInfo($task, $company));\n }\n\n $tasksWithLists = $tasks->diff($tasksWithoutLists);\n\n // get the list of unique task list ids\n $taskLists = $project->lists;\n $tasksListCollection = collect([]);\n foreach ($taskLists as $taskList) {\n $tasksWithListsCollection = collect([]);\n\n $tasks = $tasksWithLists->filter(function ($task) use ($taskList) {\n return $task->project_task_list_id == $taskList->id;\n });\n\n foreach ($tasks as $task) {\n $tasksWithListsCollection->push(self::getTaskInfo($task, $company));\n }\n\n $tasksListCollection->push([\n 'id' => $taskList->id,\n 'title' => $taskList->title,\n 'description' => $taskList->description,\n 'tasks' => $tasksWithListsCollection,\n ]);\n }\n\n return [\n 'tasks_without_lists' => $tasksWithoutListsCollection,\n 'task_lists' => $tasksListCollection,\n ];\n }", "title": "" }, { "docid": "2a09805595bdaf56ccba50b53d066407", "score": "0.59744704", "text": "public function sendTemplateTasks($id){\n $template=TemplateTask::get()->where('template_project_id',$id);\n return TemplateTaskResource::collection($template);\n }", "title": "" }, { "docid": "b96c6b8805594769981bcac8ae77882d", "score": "0.5968343", "text": "public function getTask($id);", "title": "" }, { "docid": "75ad770720861f07b3f82e1857bc47f2", "score": "0.596188", "text": "function project_by_task($key) {\n $project_key = $this->projects[$this->task_project[$key]];\n $project = $this->parsed_items[$project_key];\n return $project;\n }", "title": "" }, { "docid": "6cbc19854a0973a1790078099ccb00e5", "score": "0.5950806", "text": "public function tasks()\n {\n return $this->hasMany('App\\Model\\Task', 'idproject')->orderBy('lasteditdate', 'DESC');\n }", "title": "" }, { "docid": "f1aeb622d3e60dc170d8be439cbe2aa5", "score": "0.5950503", "text": "function GetProjectList()\n\t{\n\t\t$qry=$this->db->query(\"select DISTINCT rp_projects.projectKey,rp_projects.projectID,rp_projects.projectAddedDate,rp_projects.projectStatus,rp_user_plan_details.planTitle,rp_projects.projectKey,rp_project_details.projectName,rp_users.userEmail,rp_user_details.userFirstName,rp_user_types.userTypeStatus,rp_user_type_details.userTypeName from rp_dbho_user_plans_subdetail,rp_dbho_plan_mapping,rp_projects,rp_project_details,rp_users,rp_user_plan_details,rp_user_details,rp_user_to_type,rp_user_types,rp_user_type_details where rp_projects.projectID=rp_project_details.projectID and rp_projects.projectID=rp_dbho_plan_mapping.objectID and rp_dbho_plan_mapping.objectType='project' and rp_dbho_plan_mapping.planID=rp_dbho_user_plans_subdetail.planID and rp_dbho_user_plans_subdetail.listingType='Project' and rp_user_plan_details.planID=rp_dbho_plan_mapping.planID and rp_projects.userID=rp_users.userID and rp_users.userID=rp_user_details.userID and rp_projects.userID=rp_user_to_type.userID and rp_user_to_type.userTypeID =rp_user_types.userTypeID and rp_user_types.userTypeStatus='Active' and rp_user_types.userTypeID=rp_user_type_details.userTypeID and rp_projects.projectStatus!='Deleted' and rp_user_type_details.languageID=1 and rp_project_details.languageID=1 and rp_project_details.versionID=0 and rp_user_details.languageID=1 ORDER BY rp_projects.projectID DESC \"); \n\t\treturn $qry->result(); \n\t}", "title": "" }, { "docid": "e9a59cdbfa9fc0d9a72093899221fcad", "score": "0.5950234", "text": "function GetProjectsBasedOnTag($tagId = 'All')\n {\n $ret = array();\n $sql = '';\n \n if($tagId == 'All')\n $sql = 'SELECT PROJECT_ID ' .\n ' FROM PROJECTS ';\n else\n $sql = 'SELECT PROJECT_ID ' .\n ' FROM PROJECT_TAGS ' .\n ' WHERE TAG_ID = ' . $tagId;\n \n $result = QueryDB($sql);\n \n while($result != null && $row = $result->fetch_array(MYSQLI_ASSOC))\n $ret[] = $row['PROJECT_ID'];\n \n return $ret;\n }", "title": "" }, { "docid": "befad89c23e62ae13383f019a970c80c", "score": "0.5948956", "text": "public function showTasks($projectID)\n {\n $tasks = DB::table('tasks')\n ->where('projectID', '=', $projectID)\n ->get();\n\n $project = DB::table('projects')\n ->where('id', '=', $projectID)\n ->get();\n // dd($tasks);\n return view('project/tasks.index', ['tasks' => $tasks, 'project' => $project] );\n }", "title": "" }, { "docid": "0174a48ddb248c0609cc2de49b8f6acf", "score": "0.59106946", "text": "public function removeSidetaskProject($project_id) {\n\n $key = array_search($project_id, $this->sidetasksProjectList);\n if (FALSE !== $key) {\n unset($this->sidetasksProjectList[$key]);\n }\n\n $query = \"DELETE FROM `codev_servicecontract_stproj_table` WHERE servicecontract_id = \".$this->id.\" AND project_id = \".$project_id.\";\";\n $result = SqlWrapper::getInstance()->sql_query($query);\n if (!$result) {\n echo \"<span style='color:red'>ERROR: Query FAILED</span>\";\n exit;\n }\n }", "title": "" }, { "docid": "5c096249340089e0fae6b337f56bbffe", "score": "0.5895662", "text": "function GetProjectInfoBasedOnId($projId)\n {\n $ret = '';\n \n $sql = 'SELECT * ' .\n ' FROM PROJECTS ' .\n ' WHERE PROJECT_ID = ' . $projId;\n \n $result = QueryDB($sql);\n \n while($result != null && $row = $result->fetch_array(MYSQLI_ASSOC))\n {\n $info = array();\n $info['name'] = $row['PROJECT_NAME'];\n $info['desc'] = $row['PROJECT_DESC'];\n $info['id'] = $row['PROJECT_ID'];\n $info['timestamp'] = $row['PROJECT_TIMESTAMP'];\n $ret = $info;\n }\n \n return $ret;\n }", "title": "" }, { "docid": "bcdb6394a6ca88112f8773190f507b1c", "score": "0.5881686", "text": "function all_projects(){\n /**\n * @var \\AWorDS\\App\\Models\\Project $project\n */\n $project = $this->set_model();\n $logged_in = $project->login_check();\n if($logged_in){\n $this->set('logged_in', $logged_in);\n $this->set('active_tab', 'projects');\n $this->set('projects', $project->getAll());\n }else $this->redirect();\n }", "title": "" }, { "docid": "a7fce9ad0603a59189adf65c88c5f016", "score": "0.58735347", "text": "protected function getTasksList($data){\n\n\t\t$date_from = $this->dateFormat($data['date_from']);\n\t\t$date_to = $this->dateFormat($data['date_to']);\n\t\t$date_started = $this->dateFormat($data['date_started']);\n\t\t$deadline = $this->dateFormat($data['deadline']);\n\n\n\t\t// Date Created Filter\n\t\t$query = Task::whereDate('created_at', '>=', $date_from)\n\t\t ->whereDate('created_at', '<=', $date_to);\n\n\t\t// Date Started Filter\n\t\tif($date_started){\n\t\t $query = $query->whereDate('start_date', '=', $date_started);\n\t\t}\n\n\t\t// Deadline Filter\n\t\tif($deadline){\n\t\t $query = $query->whereDate('deadline', '=', $deadline);\n\t\t}\n\n\t\t// Status Filter\n\t\tif($data['status'] != 0){\n\t\t $query = $query->where('status', '=', $data['status']);\n\t\t}\n\n\t\t$user = Auth::user();\n\n\t\t// Team member or team leader\n\t\tif($user->user_type == 3 || 4){\n\t\t\t$data['department']\t= $user->department;\n\n\t\t\t// Team member\n\t\t\tif($user->user_type == 4){\n\t\t\t\t$data['assigned_to'] = $user->id;\n\t\t\t}\n\t\t}\n\n\n\n\t\t// Department Filter\n\t\tif($data['department'] != 0){\n\t\t $query = $query->where('department_id', '=', $data['department']);\n\t\t}\n\n\t\t// Assigned to filter\n\t\tif($data['assigned_to'] != 0){\n\t\t $query = $query->where('assigned_to', '=', $data['assigned_to']);\n\t\t}\n\n\t\treturn $query;\n\n\t}", "title": "" }, { "docid": "d3e2d40f6a47d92412791bc71464be04", "score": "0.5872521", "text": "function get ( $id, $get_one = false )\n\t{\t\n $this->db->from('projects');\n\n\t\tif( $get_one )\n {\n $this->db->limit(1,0);\n }\n\t\telse\n {\n $this->db->where( 'id', $id );\n }\n\n\t\t$query = $this->db->get();\n\n\t\tif ( $query->num_rows() > 0 )\n\t\t{\n\t\t\t$row = $query->row_array();\n\t\t if($this->ion_auth->compare_project_groups($row['id']))\n {\n\t\t\treturn array( \n \t'id' => $row['id'],\n \t'name' => $row['name'],\n \t'description' => $row['description'],\n );\n }\n\t\t}\n else\n {\n return array();\n }\n\t}", "title": "" }, { "docid": "89b86b9df8a6fa52c68f858f2606acea", "score": "0.5869103", "text": "public function getProjects()\n {\n }", "title": "" }, { "docid": "c11ee26fc78f9786fce90b47ea9af439", "score": "0.5860085", "text": "public function getAllByProject($project_id)\n {\n $sql = \"SELECT b.id, b.name, b.icon, b.url, b.blank\n FROM {$this->table} b\n WHERE b.project_id = :project_id\";\n\n $query = $this->db->prepare($sql);\n $query->execute([':project_id' => $project_id]);\n\n return $query->fetchAll();\n }", "title": "" }, { "docid": "46f5c95934089bf190ea1d3049a47f52", "score": "0.5858508", "text": "public function getProject($id){\n\n\t\t$this->db->select('*');\n\t\t$this->db->where('id', $id);\n\t\t$query = $this->db->get('project');\n\t\t$row = $query->row();\n\n\t\t$project = array(\n\t\t\t'id' => $row->id,\n\t\t\t'name' => $row->name,\n\t\t\t'aggregate_url' => $row->aggregate_url,\n\t\t\t'description' => $row->description,\n\t\t\t'sample_target' => $row->sample_target,\n\t\t\t'sample_target_bs' => $row->sampel_target_bs,\n\t\t\t'sampling_table' => $row->sampling_frame_table,\n\t\t\t'loc_columns' => $row->alloc_unit_columns,\n\t\t\t'start_date' => $row->start_date,\n\t\t\t'end_date' => $row->finish_date,\n\t\t\t'delete_status' => $row->delete_status,\n\t\t\t'date_created' => $row->date_created\n\t\t );\n\t\t return $project;\t\t\t\t\t\t\n\t}", "title": "" }, { "docid": "0413defdaac73892d81f8f3e03f3329a", "score": "0.5857992", "text": "public function autocompleteAssignedFeed($id = '') {\n\n //start\n $query = $this->projects->newQuery();\n $query->selectRaw(\"project_title AS value, project_id AS id\");\n\n //[filter] project status\n if ($status != '') {\n if ($status == 'active') {\n $query->where('project_status', '!=', 'completed');\n } else {\n $query->where('project_status', '=', $status);\n }\n }\n\n //[filter] search term (optional)\n if ($searchterm != '') {\n $query->where('project_title', 'like', '%' . $searchterm . '%');\n }\n\n //ignore project templates\n $query->where('project_type', 'project');\n\n //[filter] client id\n if (is_numeric($client_id)) {\n $query->where('project_clientid', '=', $client_id);\n }\n\n //[filter] assigned\n if ($limit == 'assigned') {\n $query->whereHas('assigned', function ($q) {\n $q->whereIn('projectsassigned_userid', [auth()->user()->id]);\n });\n }\n\n //return\n return $query->get();\n }", "title": "" }, { "docid": "56d941e0b857f3e5cfb1e6254de79eeb", "score": "0.585638", "text": "public function actionProjecttask()\n {\n $message = \"\";\n if (RoleHelper::checkAccessControl('task', 'view')) {\n if (isset($_GET['id'])) {\n\n $model = Task::model()->findAll(\"id_project=:id\", array(':id' => $_GET['id']));\n }\n $this->render('Projecttask', array('model' => $model, 'title' => $_GET['title'], 'message' => $message));\n } else {\n $message = \"شما اجازه ی مشاهده ی تسک ها را ندارید\";\n $this->render('index', array('message' => $message));\n }\n }", "title": "" }, { "docid": "32c3a673f5a893271f721145e7d6adf6", "score": "0.5855043", "text": "public function get_projects()\n {\n\n $this->db->select(\"*\");\n $this->db->from('pr_projects');\n $this->db->where('approved', 1);\n $this->db->order_by(\"id\", \"desc\");\n\n $query = $this->db->get();\n $result = $query->result();\n return $result;\n\n }", "title": "" }, { "docid": "e01138a70be599d7fac7c6f3e5b378db", "score": "0.58539915", "text": "function getTasks($id){\n $connect = new DBConnection();\n $connect = $connect->getInstance();\n\n\t// sql to delete a record\n\t$sql = \"SELECT * FROM `task` WHERE `iduser` = '$id' and `active` = 1\";\n\n $result = $connect->query($sql);\n\n if($result->num_rows > 0)\n {\n while($row = $result->fetch_assoc())\n { \n \n \t $arr[] = array('idTask' => $row['idTask'], \n \t\t\t\t 'idUser' => $row['idUser'],\n \t\t\t\t 'task' => $row['task'],\n 'description' => $row['description'],\n 'deadline' => $row['deadline'],\n 'worktag' => $row['worktag'], \n 'schooltag' => $row['schooltag'],\n 'familytag' => $row['familytag'],\n 'personaltag' => $row['personaltag'],\n 'notag' => $row['notag'],\n 'usertag' => $row['usertag']); \n }\n echo json_encode($arr);\n }\n else {\n echo 'No Tasks found';\n }\n \n $connect->close();\n }", "title": "" }, { "docid": "04dfa0381f2c01a6d2a3d08d29721388", "score": "0.5853823", "text": "public function show($id, $taskId)\n {\n return $this->repository->findWhere(['project_id'=>$id, 'id'=>$taskId]);\n }", "title": "" }, { "docid": "85814231cbb155ee2e616b8bf76e6ffb", "score": "0.5842242", "text": "public function get_project_by_id ($project_id)\n {\n $this->where('project_id', $project_id);\n $project = $this->get('projects');\n //returns an array\n return $project;\n }", "title": "" }, { "docid": "89204f9a79d1792dd21a6059a2691429", "score": "0.5828651", "text": "function getProject($projectid)\n\t{\n\t\tforeach($this->Project_List as $project)\n\t\t\tif($project->getProjectID() == $projectid)\n\t\t\t\treturn $project;\n\t}", "title": "" }, { "docid": "44eb7b41d34f9a940cefd584266fa200", "score": "0.5810596", "text": "function getTaskList()\n\t{\n\t\t//Update Task List\n\t\t$this->Task_List = null;\n\t\t$assigned_tasks_rows = returnRowsDeveloperAssignments($this->getUsername(), 'Task');\n\t\tforeach($assigned_tasks_rows as $assigned_task)\n\t\t\t$this->Task_List[] = new Tasks( $assigned_task['ClientProjectTask'] );\n\t\treturn $this->Task_List;\n\t}", "title": "" }, { "docid": "f6285c46b21b4e792dc2c9045b0953b1", "score": "0.58091336", "text": "public function listProjects($student_id, $db)\r\n {\r\n $sql = \"SELECT projects.id, project_name FROM projects join\r\n projects_students ON projects.id = projects_students.project_id\r\n JOIN students ON projects_students.student_id = students.id\r\n WHERE students.id = :student_id AND projects.is_deleted = 0\";\r\n\r\n $pst = $db->prepare($sql);\r\n $pst->bindParam(':student_id', $student_id);\r\n $pst->execute();\r\n $p = $pst->fetchAll(PDO::FETCH_OBJ);\r\n return $p;\r\n }", "title": "" }, { "docid": "a892128aac7c53850a8ea6603bcec008", "score": "0.58065945", "text": "private function getAllProjects($get) {\n $projectModel = new ProjectsModel();\n $projectModel->join('priorities', 'priorities.id = projects.priority','Left');\n $projectModel->join('users', 'users.id = projects.responsible','Left');\n\n if(isset($get['keywords']) && trim($get['keywords'])) {\n $projectModel->groupStart();\n $projectModel->like('projects.code', $get['keywords']);\n $projectModel->orLike('projects.name', $get['keywords']);\n $projectModel->orLike('priorities.name', $get['keywords']);\n $projectModel->orLike('projects.assign_to', $get['keywords']);\n $projectModel->groupEnd();\n }\n //coulmn search\n if(isset($get['code_id']) && trim($get['code_id']))\n $projectModel->where('projects.code', $get['code_id']);\n if(isset($get['name']) && trim($get['name']))\n $projectModel->where('projects.name', $get['name']);\n/*\n if(isset($get['priority']) && trim($get['priority']))\n $projectModel->where('priorities.name', $get['priority']);*/\n if(isset($get['priority']) and $get['priority'] != ''){\n $projectModel->like('projects.priority',$get['priority']);\n }\n \n if (!empty($get['start_at'])) \n $projectModel->where('DATE_FORMAT(projects.start_at,\"%Y-%m-%d\") =', date('Y-m-d',strtotime($get['start_at'])));\n if (!empty($get['end_at'])) \n $projectModel->where('DATE_FORMAT(projects.end_at,\"%Y-%m-%d\") =', date('Y-m-d',strtotime($get['end_at'])));\n\n \n $data['totalProject'] = ((new ProjectsModel())->select('count(*) as totalProject')->first())['totalProject'];\n $projectModel->select('projects.id,projects.code,projects.name, priorities.name as priority, CONCAT(users.fname,\" \",users.lname) as responsible,projects.assign_to,projects.start_at,projects.end_at,projects.description, projects.created_at, projects.created_by, projects.updated_at, projects.updated_by, projects.status');\n $projectModel->where('projects.status','1');\n $data['projects'] = $projectModel->orderBy($get['sortby'], $get['sort_order'])->findAll($get['rows'], ($get['pageno']-1)*$get['rows']);\n $data['params'] = $get;\n $prioritiesModel = new PrioritiesModel();\n $query = $prioritiesModel->findAll();\n $data['priorities'] = $query;\n //\n $userModel = new UsersModel();\n $str_query = $userModel->findAll();\n $data['users'] = $str_query;\n // /print_r($data);exit();\n return $data;\n }", "title": "" }, { "docid": "42d2344dfc8e0320fcd2749bcdf0cc53", "score": "0.58051246", "text": "public function tasks($projectGid, $fields = 'name,notes,html_notes,completed,projects.gid')\n {\n try {\n $tasks = $this->client()->tasks->findByProject($projectGid, ['opt_fields' => $fields]);\n\n return array_map(function ($task) {\n return $this->fromAsanaTask($task);\n }, iterator_to_array($tasks));\n } catch (NoAuthorizationError|InvalidTokenError|ForbiddenError $exception) {\n throw new UnauthorizedException($exception->getMessage());\n } catch (NotFoundError $exception) {\n throw new NotFoundException($exception->getMessage());\n }\n }", "title": "" }, { "docid": "91cce6b4521db6e0b09f049ae77eca24", "score": "0.5802858", "text": "function getProjectDetails($project_id)\n\t{\n\t\t\n\t\t$projectArray = array();\n\t\t\n\t\tif($project_id <> '')\n\t\t{\n\t\t\t$sq_data = \"SELECT\n `mrfc_app_project`.*\n , `mrfc_app_pillar`.`title` AS `pillar`\n , `mrfc_app_sector`.`title` AS `sector`\n , `mrfc_app_ministry`.`name` AS `ministry`\n , `mrfc_app_location`.`name` AS `location`\nFROM\n `mrfc_app_project`\n LEFT JOIN `mrfc_app_pillar` \n ON (`mrfc_app_project`.`pillar_id` = `mrfc_app_pillar`.`pillar_id`)\n LEFT JOIN `mrfc_app_sector` \n ON (`mrfc_app_project`.`sector_id` = `mrfc_app_sector`.`sector_id`)\n LEFT JOIN `mrfc_app_ministry` \n ON (`mrfc_app_project`.`ministry_id` = `mrfc_app_ministry`.`ministry_id`)\n LEFT JOIN `mrfc_app_location` \n ON (`mrfc_app_project`.`location_id` = `mrfc_app_location`.`location_id`)\nWHERE (`mrfc_app_project`.`project_id` = \".quote_smart($project_id).\" AND `mrfc_app_project`.`published` =1); \";\n\t\t//echo $sq_data;\n\t\t\t$rs_data = $this->dbQuery($sq_data);\n\t\t\tif($this->recordCount($rs_data)) \n\t\t\t{\n\t\t\t\t$projectArray = $this->fetchRow($rs_data, 'assoc');\t\t\t\t\n\t\t\t}\t\n\t\t}\n\t\treturn $projectArray;\n\t}", "title": "" }, { "docid": "e62559d33ede770c5c2600225823a209", "score": "0.5802187", "text": "public function getPJ_task($id_task)\n {\n return $this->db->get_where('tm_task', array('task_id' => $id_task))->row_array();\n }", "title": "" }, { "docid": "f80220634dcbdea3174b31f4acd4f2ee", "score": "0.5792055", "text": "public function getTasksByVersionID ($versionId) {\r\n\t\t$db = new DB();\r\n\t\t$db->connect();\r\n\t\r\n\t\t$versionId = $db->esc($versionId);\r\n\t\tif ($versionId == \"\") {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\r\n\t\t$permDA = new PermissionDA();\r\n\t\t$projectDA = new ProjectDA();\r\n\t\t$selectedVersion = $projectDA->getVersionById($_GET[\"list\"])->fetch_assoc();\r\n\t\tif ($permDA->isReadOnProjectAllowed($selectedVersion[\"project_id\"])) {\r\n\t\t\t$sql = \"SELECT task.id, task.summary, task.description, task.active, `status`.name,\r\n\t\t\tassignee.prename AS assigneePrename, assignee.surname AS assigneeSurname, assignee.id AS assigneeID,\r\n\t\t\t`status`.color, `component`.name AS componentName, project.`key` AS `key`\r\n\t\t\tFROM task\r\n\t\t\tINNER JOIN `status` ON task.status_id = `status`.id\r\n\t\t\tLEFT JOIN `user` AS assignee ON task.assignee_id = assignee.id\r\n\t\t\tLEFT JOIN `component` AS `component` ON task.component_id = `component`.id\r\n\t\t\tLEFT JOIN `project` AS project ON task.project_id = project.id\r\n\t\t\tWHERE task.version_id = $versionId\r\n\t\t\tORDER BY task.id DESC\";\r\n\t\t\treturn $db->query($sql);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b9c421fda8c98d2d3e1a6ae261bb02d2", "score": "0.5790849", "text": "function VM_projects() { return bList::getListInstance(myOrg_ID,'bList_vm_projects'); }", "title": "" }, { "docid": "dacdd7aa34584ecaf27286f0a0b3daa9", "score": "0.57786644", "text": "function getProjects(){\n\t\t \n\t\t $db = $this->startDB();\n\t\t $result = false;\n\t\t \n\t\t $sql = \"SELECT count(actTab.uuid) AS recCount, project_list.project_id, project_list.project_name\n\t\t FROM \".$this->penelopeTabID.\" AS actTab\n\t\t JOIN space ON actTab.uuid = space.uuid\n\t\t JOIN project_list ON space.project_id = project_list.project_id\n\t\t GROUP BY space.project_id \n\t\t \";\n\t\t \n\t\t $result = $db->fetchAll($sql);\n\t\t if($result){\n\t\t\t\t$projects = array();\n\t\t\t\tforeach($result as $row){\n\t\t\t\t\t $name = $row[\"project_name\"];\n\t\t\t\t\t $count = $row[\"recCount\"] + 0;\n\t\t\t\t\t $uuid = $row[\"project_id\"];\n\t\t\t\t\t $uri = self::projectBaseURI.$uuid;\n\t\t\t\t\t $projects[$uri] = array(\"name\" => $name, \"count\" => $count);\n\t\t\t\t}//end loop\n\t\t\t\t\n\t\t\t\t$projects = $this->orderURIs($projects);\n\t\t\t\t$this->projects = $projects;\n\t\t }//end case with results\n\t \n\t }", "title": "" }, { "docid": "4e2fbb982a0ab173ab183d48ce2110e6", "score": "0.57775193", "text": "public function index()\n {\n // ->paginate(3);\n $tasks = QueryBuilder::for(Task::class)\n ->allowedIncludes(['project', 'user'])\n ->allowedFilters(['completed', 'due_date', Filter::exact('user_id'),Filter::exact('project_id')])\n ->get();\n\n\n return TaskResource::collection($tasks);\n }", "title": "" }, { "docid": "dc623583adf32ae5657b8a2937039b08", "score": "0.57757276", "text": "public function get_projectlist($inc_global = 0, $gid = null, $num = 0, $start = 0)\n {\n $return = array();\n $q_r = '';\n $q_l = 'SELECT `id`, `title`, `uid` FROM '.$this->Tbl['cal_project'].' WHERE 1=1';\n if (!empty($gid)) {\n $q_l .= ' AND `gid`='.doubleval($gid);\n }\n $q_l .= ' AND `uid` '.($inc_global ? ' IN('.$this->uid.',0)' : '='.$this->uid);\n if ($num > 0) {\n $q_r .= ' LIMIT ' . doubleval($start) . ',' . doubleval($num);\n }\n $qid = $this->query($q_l . ' GROUP BY id ORDER BY `uid`, `title`' . $q_r);\n while ($line = $this->assoc($qid)) {\n $return[] = $line;\n }\n return $return;\n }", "title": "" }, { "docid": "af47d9da7c8bb27300184efca3bbab92", "score": "0.57584095", "text": "public function prepareProjectsList() {\n $table = TableRegistry::get('projects');\n $query = $table->find('all');\n $results = $query->all();\n $list = [];\n foreach ($results->toArray() as $project) {\n $list[$project->id] = $this->Project->getName($project->id);\n }\n return $list;\n }", "title": "" }, { "docid": "d336615e2882265ad01422cab5d5a859", "score": "0.575721", "text": "public function getProjectWithUsers($projectID)\n {\n }", "title": "" }, { "docid": "5d66fceb571d6d29447c2d6400c27463", "score": "0.57496583", "text": "public function getProject($id)\n {\n }", "title": "" }, { "docid": "fc8bca71aa34b17a4b2a0f84f571068b", "score": "0.5741681", "text": "function delete_projects( $id ) {\n\t\treturn $this->db->delete( 'projects', array( 'id' => $id ) );\n\t}", "title": "" }, { "docid": "2886f3fe47a82fb54a37b59ce5cf0e87", "score": "0.5740556", "text": "public function getTasks();", "title": "" }, { "docid": "2886f3fe47a82fb54a37b59ce5cf0e87", "score": "0.5740556", "text": "public function getTasks();", "title": "" }, { "docid": "aeaa6ffa3132f1eff9a8ac0f0dd41daf", "score": "0.5739942", "text": "function getPermissions($user_id=0, $project_id=0, $access_id=0, $perm_on=0){\n\t\tGLOBAL $AppUI;\n\t\t$rta=Array();\n//echo \"CTaskPermission::getPermissions()<br>\";\n\n\t\t$whereTasks=\"\";\n\t\t$whereProjects =\"\";\n\t\t$where=\"\";\n\t\tif ( @$user_id != 0 ){\n\t\t\t// Get Assigned tasks\n\t\t\t$sql = \"SELECT task_id FROM user_tasks WHERE user_id=$user_id\";\n\t\t\t$Tasks = db_loadColumn( $sql );\n\t\t\t$whereTasks = count($Tasks)>0 ? \"\\n\\tAND task_id IN (\".implode(',',$Tasks).')':'';\n\t\t\t// Get Denied Projects\n\t\t\t$obj = new CProject();\n\t\t\t$deny = $obj->getDeniedRecords( $user_id );\n\t\t\t$whereProjects = count($deny) > 0 ? \"\\n\\tAND tasks.task_project NOT IN (\".implode(',',$deny).')':'';\n\t\t\t$where .= \"\\n\\tAND \ttask_user_id\t= $user_id \";\n\t\t\tif ($user_id>0){\n\t\t\t\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t\n\n\t\t// set project's filter\n\t\tif (@$project_id>0){\n\t\t\t$where.= \"\\n\\tAND task_permissions.task_project = $project_id\";\n\t\t}elseif(\t@$project_id<0)\t{\n\t\t\t$where.= \"\\n\\tAND task_permissions.task_project = -1\";\n\t\t}\n\t\t//$where.= \"\\n\\tAND task_permissions.task_project = \";\n\t\t//$where.= @$project_id != 0 ? $project_id : \"-1\";\n\n\t\t// set access's filter\n\t\tif (@$access_id!=0){\n\t\t\t$where.= \"\\n\\tAND task_permissions.task_access_id = $access_id\";\n\t\t}\n\n\t\t// set permission's filter\n\t\tif (@$perm_on!=0){\n\t\t\t$where.= \"\\n\\tAND task_permissions.task_permission_on = $perm_on\";\n\t\t}\n\n\n\t\t$sql=\"\nSELECT\ttask_user_id, \n\t\tCONCAT(user_first_name,' ',user_last_name) user_name, \n\t\ttask_access_id,\n\t\taccess_name, \n\t\titem_name, \n\t\tmin(task_permission_value) task_permission_value, \n\t\ttask_permission_on,\n\t\tp.project_id ,\n\t\tp.project_name\nFROM\ttask_permissions\n\t\tLEFT JOIN tasks \n\t\t\tINNER JOIN projects \n\t\t\tON tasks.task_project = projects.project_id\n\t\tON task_access_id=task_access\n\t\tINNER JOIN task_permission_items ON task_permission_on = item_id\n\t\tLEFT JOIN task_access ON task_access_id = access_id\n\t\tLEFT JOIN users on task_user_id = users.user_id\n\t\tLEFT JOIN projects p on p.project_id = task_permissions.task_project\n\t\t\t\t\t\t\t\t\t\t\t\nWHERE\t\t\n\t\tusers.user_id = task_user_id\t\t\n$where\t\t\t\n\nGroup BY \ttask_user_id, task_access_id desc ,access_name, item_name, task_permission_on, project_id , project_name\n\n\t\";\n\t\t//echo \"<pre>$sql</pre>\";\n\t\t$rta=db_loadList( $sql );\t\t\n\t\treturn $rta;\t\n\t}", "title": "" }, { "docid": "f8bd2361e81a086228a24d88a4181611", "score": "0.5738859", "text": "public function getProjects()\n\t{\n\t\t$query = $this->db->getQuery(true);\n\t\t$query->select('id, name, alias')\n\t\t\t->from('#__monitor_projects');\n\n\t\t$this->countItems($query);\n\n\t\tif ($this->list !== null && isset($this->list['fullordering']) && in_array($this->list['fullordering'], $this->orderOptions))\n\t\t{\n\t\t\t$query->order($this->list['fullordering']);\n\t\t}\n\n\t\t$this->db->setQuery($query);\n\n\t\treturn $this->db->loadObjectList();\n\t}", "title": "" }, { "docid": "cc6ac72c226c4df7f556c384a246d30f", "score": "0.57362914", "text": "public function projects_get($id = \"0\",$type=\"0\")\n {\n $sutil = new CILServiceUtil();\n $from = 0;\n $size = 10;\n \n $temp = $this->input->get('from', TRUE);\n if(!is_null($temp))\n {\n $from = intval($temp);\n }\n $temp = $this->input->get('size', TRUE);\n if(!is_null($temp))\n {\n $size = intval($temp);\n }\n \n $search = $this->input->get('search',TRUE);\n \n \n \n if(strcmp($type, \"0\")==0 && is_null($search))\n $result = $sutil->getProject($id,$from,$size);\n else if(strcmp($type, \"Documents\")==0)\n {\n $result = $sutil->getDocumentByProjectID($id,$from,$size);\n }\n else if(!is_null($search))\n {\n $result = $sutil->searchProject($search,$from,$size);\n }\n else\n {\n $result = array();\n $result['Error'] = \"Invalid input:\".$type;\n \n }\n \n $this->response($result);\n \n }", "title": "" }, { "docid": "a02f67762fa27c3743a42d4a57899db5", "score": "0.5731306", "text": "public static function projectList() {\n\t\tif(!Authenticate::isAuthorized()) {\n \t\t throw new NotifyException(\"You are not authorized for this method\", 1);\n \t}\n else {\n\t\t\t$api_end_point = \"project\";\n\t\t\t$request_data=[];\n\t\t\treturn Request::sendRequest($api_end_point, $request_data);\n\t\t}\n\t}", "title": "" }, { "docid": "34cffde8772cec06b4646c2553b9f850", "score": "0.5727787", "text": "public static function getTemplateList($project_id=null)\r\n\t{\r\n\t\tglobal $randomization_global;\r\n\t\t// Get list of templates in order to populate the array (set project_id as key)\r\n\t\t$templateList = array();\r\n\t\t$sql = \"select t.* from redcap_projects_templates t, redcap_projects p where t.project_id = p.project_id\";\r\n\t\t// Don't show templates with randomization enabled if global randomization setting is desabled\r\n\t\t$sql .= \" and p.randomization in \" . ($randomization_global ? \"(0,1)\" : \"(0)\");\r\n\t\t// If project_id was provided, then only return that single project\r\n\t\t$sql .= (is_numeric($project_id) ? \" and t.project_id = $project_id\" : \" order by t.title\");\r\n\t\t$q = db_query($sql);\r\n\t\twhile ($row = db_fetch_assoc($q))\r\n\t\t{\r\n\t\t\t$templateList[$row['project_id']] = array('title'=>$row['title'], 'description'=>$row['description'],\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t 'enabled'=>$row['enabled']);\r\n\t\t}\r\n\t\t// Return array of templates\r\n\t\treturn $templateList;\t\t\r\n\t}", "title": "" }, { "docid": "cdf5a297efadee015698c85958b49880", "score": "0.5726672", "text": "public function show($id)\n {\n \n $tasks = Project::find($id)->tasks();\n $data =$tasks->paginate(5);\n $project_id=$id;\n $tasks_count= Task::where('project_id',$id)->count() ?:1;\n $done_tasks = Task::where('project_id',$id)->where('status','2')->count();\n $progress = floor(($done_tasks/$tasks_count)*100);\n return view('admin.tasks.index',compact('data','project_id','progress'));\n }", "title": "" }, { "docid": "059aa277fae0bd29dd6955c69e81d2e1", "score": "0.57243395", "text": "private function getAllProjects()\n {\n $url = $this->base_uri.'project?expand=description,lead,issueTypes,url,projectKeys';\n $projects = $this->request($url);\n return $projects;\n }", "title": "" }, { "docid": "817f3481bef6a41716bb2856545d0363", "score": "0.5724189", "text": "public function getListOfProjectsAll()\n {\n $projectList = $this->project\n ->select('projects.id','customers.name AS customer_name','projects.project_name','projects.otl_project_code','projects.project_type',\n 'projects.activity_type','projects.project_status','projects.meta_activity','projects.region',\n 'projects.country','projects.technology','projects.description','projects.estimated_start_date','projects.estimated_end_date',\n 'projects.comments','projects.LoE_onshore','projects.LoE_nearshore',\n 'projects.LoE_offshore', 'projects.LoE_contractor', 'projects.gold_order_number', 'projects.product_code', 'projects.revenue', 'projects.win_ratio');\n $projectList->leftjoin('customers', 'projects.customer_id', '=', 'customers.id');\n\n $data = Datatables::of($projectList)->make(true);\n\n return $data;\n }", "title": "" }, { "docid": "51607df851e75680dcfc4a36e520ecd3", "score": "0.5714117", "text": "public function get($id) {\n $sql =<<<SQL\nSELECT * from $this->tableName\nwhere id=?\nSQL;\n\n $pdo = $this->pdo();\n $statement = $pdo->prepare($sql);\n $statement->execute(array($id));\n if($statement->rowCount() === 0) {\n return null;\n }\n\n return new Project($statement->fetch(PDO::FETCH_ASSOC));\n }", "title": "" }, { "docid": "dd6ef5c4eb7f6f0757d25269d1d856f5", "score": "0.5713519", "text": "function get_all_projects() {\n\t\t$this->db->select( '*,customers.company as customercompany,customers.namesurname as individual,customers.address as customeraddress,projects.status_id as status, projects.id as id ' );\n\t\t$this->db->join( 'customers', 'projects.customer_id = customers.id', 'left' );\n\t\t$this->db->order_by( 'projects.id', 'desc' );\n\t\treturn $this->db->get( 'projects' )->result_array();\n\t}", "title": "" }, { "docid": "c156e0876534f622797e744aae8632a8", "score": "0.57083356", "text": "public function show()\n {\n $project = $this->getProject();\n $search = $this->helper->projectHeader->getSearchQuery($project);\n\n if ($this->request->getIntegerParam('show_subtasks') !== 0 ||\n $this->request->getIntegerParam('hide_subtasks') !== 0 ||\n $this->request->getStringParam('direction') !== '' ||\n $this->request->getStringParam('order') !== '') {\n $this->checkReusableGETCSRFParam();\n }\n\n if ($this->request->getIntegerParam('show_subtasks')) {\n session_set('subtaskListToggle', true);\n } elseif ($this->request->getIntegerParam('hide_subtasks')) {\n session_set('subtaskListToggle', false);\n }\n\n if ($this->userSession->hasSubtaskListActivated()) {\n $formatter = $this->taskListSubtaskFormatter;\n } else {\n $formatter = $this->taskListFormatter;\n }\n\n list($order, $direction) = $this->userSession->getListOrder($project['id']);\n $direction = $this->request->getStringParam('direction', $direction);\n $order = $this->request->getStringParam('order', $order);\n $this->userSession->setListOrder($project['id'], $order, $direction);\n\n $paginator = $this->paginator\n ->setUrl('TaskListController', 'show', array('project_id' => $project['id'], 'csrf_token' => $this->token->getReusableCSRFToken()))\n ->setMax(30)\n ->setOrder($order)\n ->setDirection($direction)\n ->setFormatter($formatter)\n ->setQuery($this->taskLexer\n ->build($search)\n ->withFilter(new TaskProjectFilter($project['id']))\n ->getQuery()\n )\n ->calculate();\n\n $this->response->html($this->helper->layout->app('task_list/listing', array(\n 'project' => $project,\n 'title' => $project['name'],\n 'description' => $this->helper->projectHeader->getDescription($project),\n 'paginator' => $paginator,\n )));\n }", "title": "" }, { "docid": "1ab4411ff0c029c197763df7a32d3685", "score": "0.57002586", "text": "public function listProjects()\n {\n\n\t\t$data = ProjectsRepository::findByUser($_SESSION[\"uuid\"]);\n\t\treturn array(\"data\" => $data);\n\n }", "title": "" }, { "docid": "08cbac294384cb3e1e9273ebb90c6e70", "score": "0.5699285", "text": "function contactProjectList($sys, $sunetid) {\n\n list($pmon_pid, $pmon_event_id) = getMonitoringProjectID($sys);\n\n $filter = '[contact_sunetid] = \"' . $sunetid . '\"';\n $data = REDCap::getData($pmon_pid, 'array', null, array('project_id'), $pmon_event_id, null, null, null, null, $filter);\n $records = array();\n foreach ($data as $record_id => $record_info) {\n $records[$record_id] = $record_id;\n }\n\n return $records;\n}", "title": "" }, { "docid": "bce13eb0e89d683af7b6d52efcd5cd85", "score": "0.56964856", "text": "public function getProjects(){\n $projects = Project::all()->sortBy('dead');\n return $projects;\n }", "title": "" }, { "docid": "00f3ba04503864feec31ddc1d425ee34", "score": "0.56961745", "text": "public function actionTasks($id)\n {\n try{\n \t //Verifica si hay algo cargado en la cache del paginador,\n\t //si es asi redirecciona a la pagina indicada\n $task = new Task();\n\t Utils::cargaCache($this -> operacion);\n \n \n \n $model=$this->loadModel($id);\n $this->render('tasks',array(\n 'model'=>$model,\n 'project'=>$model->pbacklogs[0]->project,\n 'task'=>$task,\n 'tasks'=>$task->tasksPerStory($model->id)\n ));\n }catch(Exception $e){\n throw new CHttpException(\"de sistema \", $e -> getMessage());\n }\n }", "title": "" }, { "docid": "ab8f21efe722ca6397b6db5693f7edf1", "score": "0.5681864", "text": "function get_project_by_id(WP_REST_Request $request) {\n\t\t// Set the initial return status\n\t\t$status = 200;\n\t\t// Get the submitted params\n\t\t$params = json_decode(json_encode($request->get_params()));\n\t\t// Build our return object\n\t\t$return_obj = new stdClass;\n\t\t$return_obj->success = true;\n\n\t\t$project = $this->dbconn->get_results( \"SELECT * FROM $this->project_table WHERE id = $params->id AND deleted = 0;\" );\n\t\t$formatted_return = new stdClass;\n\t\tif (!empty($project)) {\n\t\t\t$formatted_return->id = $params->id;\n\t\t\t$formatted_return->name = $project[0]->name;\n\t\t\t$formatted_return->type = $project[0]->type;\n\t\t\t$formatted_return->address = $project[0]->address;\n\t\t\t$formatted_return->start_timestamp = $project[0]->start_timestamp;\n\t\t} else {\n\t\t\t$this->add_error(\"Project does not exist.\");\n\t\t}\n\t\t// Set up the return object appropriately\n\t\t$return_obj->project = $formatted_return;\n\t\t// Format and return our response\n\t\treturn client_format_return($this, $return_obj, $status);\n\t}", "title": "" }, { "docid": "df09f4ae8d2fd37665e88ee2100600d4", "score": "0.5681409", "text": "public function getTasksBySearchquery ($searchquery) {\r\n\t\t$db = new DB();\r\n\t\t$db->connect();\r\n\t\t\r\n\t\t$searchquery = $db->esc($searchquery);\r\n\t\tif ($searchquery == \"\") {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t$permDA = new PermissionDA();\r\n\t\t$allowedProjectOfUsers = $permDA->getAllAllowedProjects($_SESSION['nobug'.RANDOMKEY.'userId']);\r\n\t\tif ($allowedProjectOfUsers != null) {\r\n\t\t\t$projectWhere = \"(\";\r\n\t\t\twhile ($oneProject = $allowedProjectOfUsers->fetch_assoc()) {\r\n\t\t\t\tif ($projectWhere == \"(\") {\r\n\t\t\t\t\t$projectWhere = $projectWhere . $oneProject[\"id\"];\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t$projectWhere = $projectWhere . \",\" . $oneProject[\"id\"];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$projectWhere = $projectWhere . \")\";\r\n\t\t\t\r\n\t\t\t$sql = \"SELECT task.id, task.summary, task.description, task.active, `status`.name,\r\n\t\t assignee.prename AS assigneePrename, assignee.surname AS assigneeSurname, assignee.id AS assigneeID,\r\n\t\t\t\t\t\t`status`.color, `component`.name AS componentName, project.`key` AS `key`\r\n\t\t\t\t\tFROM task\r\n\t\t\t\t\t INNER JOIN `status` ON task.status_id = `status`.id\r\n\t\t\t\t LEFT JOIN `user` AS assignee ON task.assignee_id = assignee.id\r\n\t\t\t\t LEFT JOIN `component` AS `component` ON task.component_id = `component`.id\r\n\t\t\t\t LEFT JOIN `project` AS project ON task.project_id = project.id\r\n\t\t\t\t\tWHERE task.project_id IN $projectWhere AND concat(task.summary, task.description) LIKE '%$searchquery%'\r\n\t\t\t\t\tORDER BY task.id DESC\";\r\n\t\t\treturn $db->query($sql);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "title": "" } ]
687ff5bde83c1e41abaaef97cdc23d58
Gets all the currently loaded mimetypes
[ { "docid": "579704445f25966076c628127bbedefd", "score": "0.7705445", "text": "public function getMimetypes()\n\t{\n\t\treturn $this->mimeTypes;\n\t}", "title": "" } ]
[ { "docid": "71790428422019104ebde51afa29e2d7", "score": "0.7966709", "text": "function mimetypes()\n {\n return json_decode(file_get_contents(__DIR__.'/../../resources/data/mimetypes.json'), true);\n }", "title": "" }, { "docid": "d3fb3b973c3bc37d4fb3290c136293f5", "score": "0.7689171", "text": "public function getMimeTypes()\n {\n return $this->mimeTypes;\n }", "title": "" }, { "docid": "d3fb3b973c3bc37d4fb3290c136293f5", "score": "0.7689171", "text": "public function getMimeTypes()\n {\n return $this->mimeTypes;\n }", "title": "" }, { "docid": "9f4c22cf8ac80939523eb971f0db0b7f", "score": "0.7660928", "text": "function wp_get_mime_types()\n {\n }", "title": "" }, { "docid": "5e0b834fbe60bde17cc3a6755884f242", "score": "0.76051664", "text": "static function loadMimeTypes() {\n\t\tif(@file_exists('/etc/mime.types')) {\n\t\t\t$mimeTypes = file('/etc/mime.types');\n\t\t\tforeach($mimeTypes as $typeSpec) {\n\t\t\t\tif(($typeSpec = trim($typeSpec)) && substr($typeSpec,0,1) != \"#\") {\n\t\t\t\t\t$parts = split(\"[ \\t\\r\\n]+\", $typeSpec);\n\t\t\t\t\tif(sizeof($parts) > 1) {\n\t\t\t\t\t\t$mimeType = array_shift($parts);\n\t\t\t\t\t\tforeach($parts as $ext) {\n\t\t\t\t\t\t\t$ext = strtolower($ext);\n\t\t\t\t\t\t\t$mimeData[$ext] = $mimeType;\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// Fail-over for if people don't have /etc/mime.types on their server. it's unclear how important this actually is\n\t\t} else {\n\t\t\t$mimeData = array(\n\t\t\t\t\"doc\" => \"application/msword\",\n\t\t\t\t\"xls\" => \"application/vnd.ms-excel\",\n\t\t\t\t\"rtf\" => \"application/rtf\",\n\t\t\t);\n\t\t}\n\n\t\tglobal $global_mimetypes;\n\t\t$global_mimetypes = $mimeData;\n\t\treturn $mimeData;\n\t}", "title": "" }, { "docid": "a073db6a97bd25d1170bca445162b98a", "score": "0.7489294", "text": "public static function getCustomMimeTypeList()\n {\n # Returns the system MIME type mapping of extensions to MIME types.\n $out = array();\n $file = fopen( Configuration::mimeTypeList, 'r' );\n while ( ( $line = fgets( $file ) ) !== false ) {\n $line = trim( preg_replace( '/#.*/', '', $line ) );\n if ( ! $line )\n continue;\n $parts = preg_split( '/\\s+/', $line );\n if ( count( $parts ) == 1 )\n continue;\n $type = array_shift( $parts );\n foreach( $parts as $part )\n $out[$part] = $type;\n }\n fclose( $file );\n return $out;\n }", "title": "" }, { "docid": "d7a35be6f40d031f9c954ee7e4b2d024", "score": "0.74108815", "text": "public function supported_mimetypes()\n {\n return $this->mimetypes;\n }", "title": "" }, { "docid": "f70c32805cfb84d345b85c70268c0738", "score": "0.7409444", "text": "private function loadMimetypes() {\n\t\t$qb = $this->dbConnection->getQueryBuilder();\n\t\t$qb->select('id', 'mimetype')\n\t\t\t->from('mimetypes');\n\n\t\t$result = $qb->execute();\n\t\t$results = $result->fetchAll();\n\t\t$result->closeCursor();\n\n\t\tforeach ($results as $row) {\n\t\t\t$this->mimetypes[$row['id']] = $row['mimetype'];\n\t\t\t$this->mimetypeIds[$row['mimetype']] = $row['id'];\n\t\t}\n\t}", "title": "" }, { "docid": "bc7f8c64c2b4ee2bd290f6a425ddfa1c", "score": "0.73348594", "text": "function getMimeTypes() {\r\n $out = array();\r\n if (file_exists('/etc/mime.types')) {\r\n $file = fopen('/etc/mime.types', 'r');\r\n while(($line = fgets($file)) !== false) {\r\n $line = trim(preg_replace('/#.*/', '', $line));\r\n if(!$line)\r\n continue;\r\n $parts = preg_split('/\\s+/', $line);\r\n if(count($parts) == 1)\r\n continue;\r\n $type = array_shift($parts);\r\n foreach($parts as $part)\r\n $out[$part] = $type;\r\n }\r\n fclose($file);\r\n } else {\r\n $out['js'] = 'application/javascript';\r\n $out['png'] = 'image/png';\r\n $out['css'] = 'text/css';\r\n $out['txt'] = 'text/plain';\r\n $out['git'] = 'image/gif';\r\n $out['jpg'] = 'image/jpeg';\r\n $out['svg'] = 'image/svg+xml';\r\n $out['html'] = 'text/html';\r\n $out['ttf'] = 'application/octet-stream';\r\n $out['eot'] = 'application/octet-stream';\r\n $out['woff'] = 'application/octet-stream';\r\n }\r\n return $out;\r\n}", "title": "" }, { "docid": "b985b3638f9c75a95aeaad311cc509ee", "score": "0.72884625", "text": "public function getSupportedMimes()\n {\n if ($this->mimes) {\n return $this->mimes;\n }\n\n $response = $this->get(\n 'mime-types',\n $this->getGuzzleOptions([\n 'headers' => [\n 'Accept' => 'application/json',\n ],\n ])\n );\n\n return $this->mimes = json_decode($response->getBody(), true);\n }", "title": "" }, { "docid": "98dd81e15ab709f4292eb172d6e23505", "score": "0.7279866", "text": "static public function getAllowedMimeTypes()\n\t{\n\t\t$result = [];\n\t\t\n\t\tforeach(DB::table('dx_files_headers')->select('content_type')->get() as $row)\n\t\t{\n\t\t\t$result[] = $row->content_type;\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "9b2f68c5901b6a33a9a798d305cc2ab1", "score": "0.72722715", "text": "function fut_get_available_file_types() {\n\n\t// Serve v2 for new installs, and for old installs having multiple mime types support enabled.\n\t$file = ! get_option( 'file_upload_types' ) || 'enabled' === get_option( 'file_upload_types_multiple_mimes' ) ? 'file-types-list-v2' : 'file-types-list';\n\n\t$mime_types_serialized = trim( file_get_contents( dirname( FILE_UPLOAD_TYPES_PLUGIN_FILE ) . '/assets/' . $file . '.json' ) ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents\n\n\treturn json_decode( $mime_types_serialized, true );\n}", "title": "" }, { "docid": "c43e82a53f78e0637a4bb60901fd285a", "score": "0.7171634", "text": "public static function getMediaTypes(): array;", "title": "" }, { "docid": "05d05bd8be0830ca79d5903a02027b49", "score": "0.7111947", "text": "public function getSupportedMimeTypes()\n {\n return array_keys($this->convertersByMimeType);\n }", "title": "" }, { "docid": "6a5b0c21d4d6d5d13eff05d2a0ea09c0", "score": "0.7094204", "text": "function get_post_mime_types()\n {\n }", "title": "" }, { "docid": "86aee74e388c29df37d29fa5fd73702c", "score": "0.70793146", "text": "public static function exts_by_mime($type)\n \t{\n \t\tstatic $types = array();\n\n \t\t// Fill the static array\n \t\tif (empty($types))\n \t\t{\n \t\t\tforeach (Kohana::$config->load('mimes_fix') as $ext => $mimes)\n \t\t\t{\n \t\t\t\tforeach ($mimes as $mime)\n \t\t\t\t{\n \t\t\t\t\tif ($mime == 'application/octet-stream')\n \t\t\t\t\t{\n \t\t\t\t\t\t// octet-stream is a generic binary\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}\n\n \t\t\t\t\tif ( ! isset($types[$mime]))\n \t\t\t\t\t{\n \t\t\t\t\t\t$types[$mime] = array( (string) $ext);\n \t\t\t\t\t}\n \t\t\t\t\telseif ( ! in_array($ext, $types[$mime]))\n \t\t\t\t\t{\n \t\t\t\t\t\t$types[$mime][] = (string) $ext;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\treturn isset($types[$type]) ? $types[$type] : FALSE;\n \t}", "title": "" }, { "docid": "c5610453777385bff932e15a200f6d94", "score": "0.7048611", "text": "protected function get_media_types()\n {\n }", "title": "" }, { "docid": "f253aeb85a8167056d0883e50263ab17", "score": "0.7023502", "text": "public static function getAvailableMimetypes()\n {\n return [\n 'image/jpeg',\n 'image/pjpeg',\n 'image/png',\n 'image/svg',\n 'video/mp4',\n 'video/webm',\n 'video/ogg',\n 'video/quicktime',\n 'video/3gpp',\n 'video/3gpp2',\n 'video/x-m4v',\n 'video/x-matroska',\n ];\n }", "title": "" }, { "docid": "068bc779326a06ba14b1f8c14bbd3e9b", "score": "0.6907799", "text": "function accepted_mimes() {\n if(isset($this['accept'])) {\n preg_match_all('#[a-z-\\*]+/[a-z-\\*]+#', $this['accept'], $matches);\n if(isset($matches[0])) return $matches[0];\n }\n \n return array();\n }", "title": "" }, { "docid": "52fa33a34cc482abcd2d27ec4d569fbe", "score": "0.69073147", "text": "function get_available_post_mime_types($type = 'attachment')\n {\n }", "title": "" }, { "docid": "d9132481633aa28ae80e8d6b4d92a34d", "score": "0.68947303", "text": "public function getAllMimeTypes(string $extension): array;", "title": "" }, { "docid": "c57c1a73ea0350f465b7836afc709a89", "score": "0.68750584", "text": "public static function exts_by_mime($type)\r\n {\r\n static $types = array();\r\n\r\n // Fill the static array\r\n if (empty($types))\r\n {\r\n $mimes = Core::config('mimes');\r\n foreach ($mimes as $ext => $ms)\r\n {\r\n foreach ($ms as $mime)\r\n {\r\n if ($mime == 'application/octet-stream')\r\n {\r\n // octet-stream is a generic binary\r\n continue;\r\n }\r\n\r\n if (!isset($types[$mime]))\r\n {\r\n $types[$mime] = array((string)$ext);\r\n }\r\n elseif (!in_array($ext, $types[$mime]))\r\n {\r\n $types[$mime][] = (string)$ext;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return isset($types[$type])?$types[$type]:false;\r\n }", "title": "" }, { "docid": "45e57acd863c2f0c30742489bf5aaf31", "score": "0.68360883", "text": "public function getFileTypes() {\r\n return $this->fileTypes;\r\n }", "title": "" }, { "docid": "9f6f6c335f1d8d9398ed49fc62976409", "score": "0.68269134", "text": "public function getImageTypes()\n\t{\n\t\treturn json_decode(json_encode($this->types));\n\t}", "title": "" }, { "docid": "7ba506c061daae4a273783c2bb899e6d", "score": "0.6808042", "text": "public function getAllExtensions(string $mimeType): array;", "title": "" }, { "docid": "d7cf034f217476275cae79d1556f6ce7", "score": "0.6776985", "text": "public function getFileTypes()\n {\n return $this->upload_types;\n }", "title": "" }, { "docid": "7351e75d7b368ecc2d7f33918bffdc60", "score": "0.67743194", "text": "function getTypes(){\n\t\t\t//opens up the types file\n\t\t\t$types_file_handle = new MarkUpFile('../Lib/fileTypes.txt'); \n\t\t\t$types_file_arrayList = $types_file_handle->Read();\n\t\t\t$types_file_handle->Close();\n\t\t\t//types is the array that holds all of the types\n\t\t\t$types = array();\n\t\t\t//loads all the types in to types\n\t\t\tforeach($types_file_arrayList as $single_type){\n\t\t\t\t$types = array_merge($types, array(new fileType($single_type[2], $single_type[1], $single_type[3])));\n\t\t\t}\n\t\t\treturn $types;\n\t\t}", "title": "" }, { "docid": "8dd23ca048ce8a6e0b08df1fdcfadb1e", "score": "0.6762229", "text": "public function getFileTypes()\n {\n return $this->fileTypes;\n }", "title": "" }, { "docid": "281b6da3a4555a7a7545b81d841819dc", "score": "0.6738337", "text": "public function fileTypes()\n {\n return $this->_fileTypes;\n }", "title": "" }, { "docid": "a00d15620c19f74283bb2ed396207b19", "score": "0.6715769", "text": "public function getMimeTypeToExtensionMap()\n {\n return $this->mimeTypeToExtension;\n }", "title": "" }, { "docid": "25acf58e44744a72a94caf35650e0374", "score": "0.66955906", "text": "public static function getTypes() {\n\t\treturn array(self::TYPE_FILE, self::TYPE_SOURCE, self::TYPE_THUMBNAIL);\n\t}", "title": "" }, { "docid": "b020acd4527510f19afac0b0b16b6274", "score": "0.6689186", "text": "public function getSupportedMIMETypes(): array\n {\n $mime = null;\n $mimeTypes = [];\n\n $response = preg_split(\"/\\n/\", $this->request('mime-types')) ?: [];\n\n foreach($response as $line)\n {\n if(preg_match('/^\\w+/', $line))\n {\n $mime = trim($line);\n $mimeTypes[$mime] = ['alias' => []];\n }\n else\n {\n [$key, $value] = preg_split('/:\\s+/', trim($line));\n\n if($key == 'alias')\n {\n $mimeTypes[$mime]['alias'][] = $value;\n }\n else\n {\n $mimeTypes[$mime][$key] = $value;\n }\n }\n }\n\n\n return $mimeTypes;\n }", "title": "" }, { "docid": "a5d7327f6e878b39331b850e1bb0dc6a", "score": "0.6616778", "text": "public function getAllowedMimeTypes()\n {\n if($this->getOption('allowed_mime_types'))\n {\n return $this->getOption('allowed_mime_types');\n }\n return sfConfig::get('app_rt_asset_allowed_mime_types', rtAssetToolkit::getCommonMimeTypes());\n }", "title": "" }, { "docid": "05cd631cd4d50b7123bf44c33000b529", "score": "0.66092217", "text": "public static function getMimeTypes($mimeType = null) {\n\t\t// Format input\n\t\tif (!is_null($mimeType)) {\n\t\t\t$mimeType = explode(';', $mimeType);\n\t\t\t$mimeType = trim(array_shift($mimeType));\n\t\t}\n\t\t// \n\t\tif (!self::$_mimeTypes) {\n\t\t\tself::$_mimeTypes = require_once dirname(__FILE__) . '/mime-types.data.php';\n\t\t}\n\t\t// Return\n\t\treturn is_null($mimeType) ? self::$_mimeTypes : self::$_mimeTypes[$mimeType];\n\t}", "title": "" }, { "docid": "ca5f872a69db8242caa72aa769d1cfaf", "score": "0.6601162", "text": "public function getExtensionToMimeTypeMap()\n {\n return $this->extensionToMimeType;\n }", "title": "" }, { "docid": "0e06d72b7ba63f2d2a040e80a118b223", "score": "0.6588348", "text": "function wp_get_ext_types()\n {\n }", "title": "" }, { "docid": "b45b9e522dea45fccd248d2035e005c9", "score": "0.65862566", "text": "public function findAllTypes(): array {\n $bundle_type = $this->entityTypeManager->getDefinition('media')->getBundleEntityType();\n $media_types = $this->entityTypeManager->getStorage($bundle_type)->loadMultiple();\n\n $mpx_types = [];\n foreach ($media_types as $type) {\n /** @var \\Drupal\\media\\Entity\\MediaType $type */\n if ($type->getSource() instanceof Media) {\n $mpx_types[] = $type;\n }\n }\n\n return $mpx_types;\n }", "title": "" }, { "docid": "5e31c88d2140b926bec824837dbedd2b", "score": "0.65140694", "text": "public function getMimetype();", "title": "" }, { "docid": "69cca26b55fdeb8bc9a12703e7c78c27", "score": "0.6452442", "text": "protected function getTypes() {}", "title": "" }, { "docid": "1dad6114e25011ce94995431a7691152", "score": "0.64435863", "text": "public static function ext_by_mime($type)\n \t{\n \t\treturn current(File::exts_by_mime($type));\n \t}", "title": "" }, { "docid": "16afb3311da30f030f1e26915a201c16", "score": "0.6443121", "text": "public function getAllTypes() {\n if (empty($this->_data)) {\n $this->_load();\n }\n\n return $this->_data;\n }", "title": "" }, { "docid": "5036b98b2650b707f1fc38e49f555219", "score": "0.6443121", "text": "function getMimeType() ;", "title": "" }, { "docid": "672322e2210b50d16110061cdbadd9d3", "score": "0.64421123", "text": "public function filetypes()\n\t{\n\t}", "title": "" }, { "docid": "8ac6d588a5e1f75f0c4fdc52c1d8a8d6", "score": "0.6436755", "text": "public function getMimeTypes()\n {\n $content_types = $this->response->getHeader('Content-Type');\n\n if (count($content_types) > 0) {\n return explode(';', $content_types[0]);\n }\n\n return null;\n }", "title": "" }, { "docid": "e22346f2f20fb32ef7ff45e078f78175", "score": "0.64100015", "text": "public function getMimeType() {}", "title": "" }, { "docid": "e22346f2f20fb32ef7ff45e078f78175", "score": "0.64099336", "text": "public function getMimeType() {}", "title": "" }, { "docid": "e22346f2f20fb32ef7ff45e078f78175", "score": "0.640882", "text": "public function getMimeType() {}", "title": "" }, { "docid": "b3479dbe0fced5279167653790b1ba36", "score": "0.6398638", "text": "public function getTypeLoaders(): array\n {\n return $this->typeLoaders;\n }", "title": "" }, { "docid": "333dc1214eb08e83674ba104a5ee1259", "score": "0.6387046", "text": "public static function getAllowedMimeTypes()\n {\n return ['image/jpeg', 'image/png'];\n }", "title": "" }, { "docid": "93d1b85ff6b695b7977bdd08ee4a2a08", "score": "0.63844025", "text": "public static function getList()\n {\n return get_loaded_extensions();\n }", "title": "" }, { "docid": "b47a9b2f0f4a74b938117f2035fad2e9", "score": "0.6350559", "text": "public static function getTypes();", "title": "" }, { "docid": "23649ee220f978f7f204cf5aca78f09f", "score": "0.6350032", "text": "protected function getExtensions()\n {\n $type = new FileUploadType($this->validation);\n\n return array(\n // register the type instances with the PreloadedExtension\n new ValidatorExtension($this->mockValidator()),\n new PreloadedExtension(array($type), array()),\n );\n }", "title": "" }, { "docid": "772ef93a5a3b8edb49b9c0f4a5547f7a", "score": "0.6349612", "text": "public function allowedMimes()\n {\n return ['jpeg', 'png', 'jpg', 'csv', 'txt', 'pdf', 'mp4', 'mov', 'ogg', 'qt'];\n }", "title": "" }, { "docid": "ca297e23f8311b59bc66613921acf7cf", "score": "0.63342535", "text": "public function getMimeType();", "title": "" }, { "docid": "ca297e23f8311b59bc66613921acf7cf", "score": "0.63342535", "text": "public function getMimeType();", "title": "" }, { "docid": "ca297e23f8311b59bc66613921acf7cf", "score": "0.63342535", "text": "public function getMimeType();", "title": "" }, { "docid": "ca297e23f8311b59bc66613921acf7cf", "score": "0.63342535", "text": "public function getMimeType();", "title": "" }, { "docid": "ad479363600d62858938c8ce77045655", "score": "0.6331046", "text": "private function get_type_options() {\n\t\tglobal $wpdb, $updraftcentral_host_plugin;\n\t\t$options = array();\n\n\t\tif (!function_exists('get_post_mime_types')) {\n\t\t\tglobal $updraftplus;\n\t\t\t// For a much later version of WP the \"get_post_mime_types\" is located\n\t\t\t// in a different folder. So, we make sure that we have it loaded before\n\t\t\t// actually using it.\n\t\t\tif (version_compare($updraftplus->get_wordpress_version(), '3.5', '>=')) {\n\t\t\t\trequire_once(ABSPATH.WPINC.'/post.php');\n\t\t\t} else {\n\t\t\t\t// For WP 3.4, the \"get_post_mime_types\" is located in the location provided below.\n\t\t\t\trequire_once(ABSPATH.'wp-admin/includes/post.php');\n\t\t\t}\n\t\t}\n\n\t\t$post_mime_types = get_post_mime_types();\n\t\t$type_options = $wpdb->get_col(\"SELECT `post_mime_type` FROM {$wpdb->posts} WHERE `post_type` = 'attachment' AND `post_status` = 'inherit' GROUP BY `post_mime_type` ORDER BY `post_mime_type` DESC\");\n\n\t\tforeach ($post_mime_types as $mime_type => $label) {\n\t\t\tif (!wp_match_mime_types($mime_type, $type_options)) continue;\n\t\t\t$options[] = array('label' => $label[0], 'value' => esc_attr($mime_type));\n\t\t}\n\n\t\t$options[] = array('label' => $updraftcentral_host_plugin->retrieve_show_message('unattached'), 'value' => 'detached');\n\t\treturn $options;\n\t}", "title": "" }, { "docid": "344e33f98ad2c3cbd267ea0cdc5eb220", "score": "0.63291556", "text": "public static function _mime_types($ext = '')\n {\n $mimes = array(\n 'xl' => 'application/excel',\n 'js' => 'application/javascript',\n 'hqx' => 'application/mac-binhex40',\n 'cpt' => 'application/mac-compactpro',\n 'bin' => 'application/macbinary',\n 'doc' => 'application/msword',\n 'word' => 'application/msword',\n 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n 'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',\n 'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template',\n 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',\n 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',\n 'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide',\n 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n 'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',\n 'xlam' => 'application/vnd.ms-excel.addin.macroEnabled.12',\n 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12',\n 'class' => 'application/octet-stream',\n 'dll' => 'application/octet-stream',\n 'dms' => 'application/octet-stream',\n 'exe' => 'application/octet-stream',\n 'lha' => 'application/octet-stream',\n 'lzh' => 'application/octet-stream',\n 'psd' => 'application/octet-stream',\n 'sea' => 'application/octet-stream',\n 'so' => 'application/octet-stream',\n 'oda' => 'application/oda',\n 'pdf' => 'application/pdf',\n 'ai' => 'application/postscript',\n 'eps' => 'application/postscript',\n 'ps' => 'application/postscript',\n 'smi' => 'application/smil',\n 'smil' => 'application/smil',\n 'mif' => 'application/vnd.mif',\n 'xls' => 'application/vnd.ms-excel',\n 'ppt' => 'application/vnd.ms-powerpoint',\n 'wbxml' => 'application/vnd.wap.wbxml',\n 'wmlc' => 'application/vnd.wap.wmlc',\n 'dcr' => 'application/x-director',\n 'dir' => 'application/x-director',\n 'dxr' => 'application/x-director',\n 'dvi' => 'application/x-dvi',\n 'gtar' => 'application/x-gtar',\n 'php3' => 'application/x-httpd-php',\n 'php4' => 'application/x-httpd-php',\n 'php' => 'application/x-httpd-php',\n 'phtml' => 'application/x-httpd-php',\n 'phps' => 'application/x-httpd-php-source',\n 'swf' => 'application/x-shockwave-flash',\n 'sit' => 'application/x-stuffit',\n 'tar' => 'application/x-tar',\n 'tgz' => 'application/x-tar',\n 'xht' => 'application/xhtml+xml',\n 'xhtml' => 'application/xhtml+xml',\n 'zip' => 'application/zip',\n 'mid' => 'audio/midi',\n 'midi' => 'audio/midi',\n 'mp2' => 'audio/mpeg',\n 'mp3' => 'audio/mpeg',\n 'mpga' => 'audio/mpeg',\n 'aif' => 'audio/x-aiff',\n 'aifc' => 'audio/x-aiff',\n 'aiff' => 'audio/x-aiff',\n 'ram' => 'audio/x-pn-realaudio',\n 'rm' => 'audio/x-pn-realaudio',\n 'rpm' => 'audio/x-pn-realaudio-plugin',\n 'ra' => 'audio/x-realaudio',\n 'wav' => 'audio/x-wav',\n 'bmp' => 'image/bmp',\n 'gif' => 'image/gif',\n 'jpeg' => 'image/jpeg',\n 'jpe' => 'image/jpeg',\n 'jpg' => 'image/jpeg',\n 'png' => 'image/png',\n 'tiff' => 'image/tiff',\n 'tif' => 'image/tiff',\n 'eml' => 'message/rfc822',\n 'css' => 'text/css',\n 'html' => 'text/html',\n 'htm' => 'text/html',\n 'shtml' => 'text/html',\n 'log' => 'text/plain',\n 'text' => 'text/plain',\n 'txt' => 'text/plain',\n 'rtx' => 'text/richtext',\n 'rtf' => 'text/rtf',\n 'vcf' => 'text/vcard',\n 'vcard' => 'text/vcard',\n 'xml' => 'text/xml',\n 'xsl' => 'text/xml',\n 'mpeg' => 'video/mpeg',\n 'mpe' => 'video/mpeg',\n 'mpg' => 'video/mpeg',\n 'mov' => 'video/quicktime',\n 'qt' => 'video/quicktime',\n 'rv' => 'video/vnd.rn-realvideo',\n 'avi' => 'video/x-msvideo',\n 'movie' => 'video/x-sgi-movie'\n );\n if (array_key_exists(strtolower($ext), $mimes)) {\n return $mimes[strtolower($ext)];\n }\n return 'application/octet-stream';\n }", "title": "" }, { "docid": "0097e67a6bb162adb461f1f3ba548942", "score": "0.63270324", "text": "private function loadContentTypes()\n\t\t{\n\t\t\t$query = $this->contentTypeQuery;\n\t\t\t$list = $this->bridge->packData($query);\n\t\t\t$this->contentTypes = $list;\n\t\t\t\n\t\t\t/*\n\t\t\t*\tgenerate new contentTypes [Folder, File]\n\n\t\t\t*/\n\n\t\t\tif (count($this->contentTypes) == 0)\n\t\t\t{\n\t\t\t\t/*\n\t\t\t\t*\tINSERT INTO contentType VALUES (null, 'Folder', null)\n\t\t\t\t*\tINSERT INTO contentType VALUES (null, 'File', null)\n\t\t\t\t*/\n\n\t\t\t\t$qrs = array();\n\t\t\t\tarray_push($qrs, [\"'Folder'\", \"'_'\"]);\n\t\t\t\tarray_push($qrs, [\"'File'\", \"'_'\"]);\n\n\t\t\t\t$ts = $this->logContentType($qrs);\n\t\t\t\t#var_dump($ts);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$r= 1;\n\t\t\t\t#var_dump($this->contentTypes);\n\t\t\t\t#$arrayName = array(0 => [\"'Folderr'\", \"null\"], );\n\t\t\t\t#$this->logContentType($arrayName);\n\t\t\t}\t\t\t\n\t\t}", "title": "" }, { "docid": "8a00f87d83e6ec6fe1fb7c21d5cc44a1", "score": "0.6323955", "text": "public static function getTypes(): array\n {\n return self::getRelevancyTypes();\n }", "title": "" }, { "docid": "cc21845376292f488efb1d28a97431c2", "score": "0.63197637", "text": "private function getAllowedFileTypes()\n {\n return str_replace('.', '', config('media.allowed', ''));\n }", "title": "" }, { "docid": "fb7f90010ad52cb456e245932be0ef6e", "score": "0.63052285", "text": "function mimes_types(string $p_mime_type) {\n global $mimes;\n\n if (!isset($mime_types) || count($mime_types) == 0) {\n if (is_file(APPPATH.'config/mimes.php')) {\n include(APPPATH.'config/mimes.php');\n } else {\n return null;\n }\n\n $mime_types = $mimes;\n unset($mimes);\n }\n\n return (!isset($mime_types[$p_mime_type])) ? null : $mime_types[$p_mime_type];\n}", "title": "" }, { "docid": "5ea72791e5593edd2471a09243fdd0d1", "score": "0.62913084", "text": "function &ListContentTypes()\n\t{\n\t\tglobal $gCms;\n\t\t$contenttypes =& $gCms->contenttypes;\n\t\t\n\t\tif (isset($gCms->variables['contenttypes']))\n\t\t{\n\t\t\t$variables =& $gCms->variables;\n\t\t\treturn $variables['contenttypes'];\n\t\t}\n\t\t\n\t\t$result = array();\n\t\t\n\t\treset($contenttypes);\n\t\twhile (list($key) = each($contenttypes))\n\t\t{\n\t\t\t$value =& $contenttypes[$key];\n\t\t\t$result[] = $value->type;\n\t\t}\n\t\t\n\t\t$variables =& $gCms->variables;\n\t\t$variables['contenttypes'] =& $result;\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "acf70b06b14c74a6f92fdc62995599f6", "score": "0.6286715", "text": "public static function _mime_types($ext = '')\n {\n }", "title": "" }, { "docid": "ebfe7e95162d449e5f6dc7e4e911875a", "score": "0.62850755", "text": "function get_image_file_types() {\n return array( \n 'gif',\n 'jpg',\n 'jpeg',\n 'png',\n 'wbmp',\n );\n }", "title": "" }, { "docid": "fbefa632fc01d1bbe5a5712f916680c6", "score": "0.6283352", "text": "public function mime_types( $mimes ) {\r\n\r\n\t\t$mimes['ttf'] = 'font/ttf';\r\n\t\t$mimes['woff'] = 'font/woff';\r\n\t\t$mimes['svg'] = 'font/svg';\r\n\t\t$mimes['eot'] = 'font/eot';\r\n\r\n\t\treturn $mimes;\r\n\r\n\t}", "title": "" }, { "docid": "4bcd572c3cd579fb1c401af81ae50205", "score": "0.62701744", "text": "public static function ext_by_mime($type)\r\n {\r\n return current(File::exts_by_mime($type));\r\n }", "title": "" }, { "docid": "e02b613d4d0329b59d488d01436bc2f6", "score": "0.6252165", "text": "protected function getAllAvailableMediaTypesOptions() {}", "title": "" }, { "docid": "a9e8d42858271f6663f74ab5e6e2534d", "score": "0.62384033", "text": "public static function getContentTypes() {\n $contentTypes = Content::$contentTypes;\n return $contentTypes;\n }", "title": "" }, { "docid": "d6977c9b972cb677eea138568fd6b996", "score": "0.6232616", "text": "private static function initialize()\n {\n $fileName = ExtensionManagementUtility::extPath('extractor') . 'Resources/Private/mime.types';\n $fh = fopen($fileName, 'r');\n if (is_resource($fh)) {\n while (($buffer = fgets($fh, 1024)) !== false) {\n if ($buffer{0} === '#') {\n continue;\n }\n list($mimeType, $extensions) = GeneralUtility::trimExplode(TAB, $buffer, true);\n $extensions = GeneralUtility::trimExplode(' ', $extensions, true);\n static::$mimeTypesMapping[$mimeType] = $extensions;\n foreach ($extensions as $extension) {\n static::$extensionsMapping[$extension] = $mimeType;\n }\n }\n fclose($fh);\n }\n }", "title": "" }, { "docid": "970032cb34108496d63c41a49e54aca3", "score": "0.6227949", "text": "function get_mime_type($filename) {\n\t $mime_types = array(\n\t 'txt' => 'text/plain',\n\t 'htm' => 'text/html',\n\t 'html' => 'text/html',\n\t 'php' => 'text/html',\n\t 'css' => 'text/css',\n\t 'js' => 'application/javascript',\n\t 'json' => 'application/json',\n\t 'xml' => 'application/xml',\n\t 'swf' => 'application/x-shockwave-flash',\n\t 'flv' => 'video/x-flv',\n\t\n\t // images\n\t 'png' => 'image/png',\n\t 'jpe' => 'image/jpeg',\n\t 'jpeg' => 'image/jpeg',\n\t 'jpg' => 'image/jpeg',\n\t 'gif' => 'image/gif',\n\t 'bmp' => 'image/bmp',\n\t 'ico' => 'image/vnd.microsoft.icon',\n\t 'tiff' => 'image/tiff',\n\t 'tif' => 'image/tiff',\n\t 'svg' => 'image/svg+xml',\n\t 'svgz' => 'image/svg+xml',\n\t\n\t // archives\n\t 'zip' => 'application/zip',\n\t 'rar' => 'application/x-rar-compressed',\n\t 'exe' => 'application/x-msdownload',\n\t 'msi' => 'application/x-msdownload',\n\t 'cab' => 'application/vnd.ms-cab-compressed',\n\t\n\t // audio/video\n\t 'mp3' => 'audio/mpeg',\n\t 'qt' => 'video/quicktime',\n\t 'mov' => 'video/quicktime',\n\t\n\t // adobe\n\t 'pdf' => 'application/pdf',\n\t 'psd' => 'image/vnd.adobe.photoshop',\n\t 'ai' => 'application/postscript',\n\t 'eps' => 'application/postscript',\n\t 'ps' => 'application/postscript',\n\t\n\t // ms office\n\t 'doc' => 'application/msword',\n\t 'rtf' => 'application/rtf',\n\t 'xls' => 'application/vnd.ms-excel',\n\t 'ppt' => 'application/vnd.ms-powerpoint',\n\t\n\t // open office\n\t 'odt' => 'application/vnd.oasis.opendocument.text',\n\t 'ods' => 'application/vnd.oasis.opendocument.spreadsheet',\n\t );\n\t\n\t $ext = strtolower(array_pop(explode('.',$filename)));\n\t if (array_key_exists($ext, $mime_types)) {\n\t return $mime_types[$ext];\n\t }\n\t elseif (function_exists('finfo_open')) {\n\t $finfo = finfo_open(FILEINFO_MIME);\n\t $mimetype = finfo_file($finfo, $filename);\n\t finfo_close($finfo);\n\t return $mimetype;\n\t }\n\t else {\n\t return 'application/octet-stream';\n\t }\n\t}", "title": "" }, { "docid": "ecd075a58e3c3882dc53f415c801f45d", "score": "0.6226378", "text": "public static function getAvailableContentTypes()\n {\n return array(\n self::TYPE_TEXT_HTML => self::TYPE_TEXT_HTML,\n self::TYPE_TEXT_CSS => self::TYPE_TEXT_CSS,\n self::TYPE_TEXT_JAVASCRIPT => self::TYPE_TEXT_JAVASCRIPT\n );\n }", "title": "" }, { "docid": "6935f3b8388bcbec1fab47988b6af67f", "score": "0.6219544", "text": "protected function get_types() : array {\n\t\treturn Animation_Util::get_types();\n\t}", "title": "" }, { "docid": "fc1bf57ee08c3626ee32a4689f5a5cd9", "score": "0.6213014", "text": "public function getImageTypes();", "title": "" }, { "docid": "99c560f054a0a05a77d4362a1bbe2c71", "score": "0.6207319", "text": "function fn_get_ext_mime_types($key = 'ext')\n{\n $types = array (\n 'zip' => 'application/zip',\n 'tgz' => 'application/tgz',\n 'rar' => 'application/rar',\n\n 'exe' => 'application/exe',\n 'com' => 'application/com',\n 'bat' => 'application/bat',\n\n 'png' => 'image/png',\n 'jpeg' => 'image/jpeg',\n 'jpg' => 'image/jpeg',\n 'gif' => 'image/gif',\n 'bmp' => 'image/bmp',\n 'ico' => 'image/x-icon',\n 'swf' => 'application/x-shockwave-flash',\n\n 'csv' => 'text/csv',\n 'txt' => 'text/plain',\n 'xml' => 'application/xml',\n 'doc' => 'application/msword',\n 'xls' => 'application/vnd.ms-excel',\n 'ppt' => 'application/vnd.ms-powerpoint',\n 'pdf' => 'application/pdf',\n\n 'css' => 'text/css',\n 'js' => 'text/javascript'\n );\n\n if ($key == 'mime') {\n $types = array_flip($types);\n }\n\n return $types;\n}", "title": "" }, { "docid": "f8566fd7bdea42b620cb7bb13a51c891", "score": "0.62045854", "text": "public static function getAvailableTypes()\n {\n return array(\n self::IMG,\n self::WEB,\n self::NEWS,\n self::SHOP,\n );\n }", "title": "" }, { "docid": "bf9b3386c97e4d179a376384efba5fcc", "score": "0.61954004", "text": "function _mime_content_type($filename) {\n $finfo = finfo_open();\n $fileinfo = finfo_file($finfo, $filename, FILEINFO_MIME);\n finfo_close($finfo);\n return reset(explode(\";\",$fileinfo));\n \n \n //hiphop workaround hiphop does not work with inotify\n //exec(\"file \".str_replace(\" \",\"\\ \",$filename).\" --mime\",$output);\n \n $half = explode(\": \",$output[0]);\n $done = explode(\"; \",$half[1]);\n return $done[0];\n }", "title": "" }, { "docid": "8769cd209cf5a63712bf6ba2cc8ee31f", "score": "0.61947644", "text": "function get_mimetype($filename)\n {\n $mime_types = array(\n 'txt' => 'text/plain',\n 'htm' => 'text/html',\n 'html' => 'text/html',\n 'php' => 'text/html',\n 'css' => 'text/css',\n 'js' => 'application/javascript',\n 'json' => 'application/json',\n 'xml' => 'application/xml',\n 'swf' => 'application/x-shockwave-flash',\n 'flv' => 'video/x-flv',\n\n // images\n 'png' => 'image/png',\n 'jpe' => 'image/jpeg',\n 'jpeg' => 'image/jpeg',\n 'jpg' => 'image/jpeg',\n 'gif' => 'image/gif',\n 'bmp' => 'image/bmp',\n 'ico' => 'image/vnd.microsoft.icon',\n 'tiff' => 'image/tiff',\n 'tif' => 'image/tiff',\n 'svg' => 'image/svg+xml',\n 'svgz' => 'image/svg+xml',\n\n // archives\n 'zip' => 'application/zip',\n 'rar' => 'application/x-rar-compressed',\n 'exe' => 'application/x-msdownload',\n 'msi' => 'application/x-msdownload',\n 'cab' => 'application/vnd.ms-cab-compressed',\n\n // audio/video\n 'mp3' => 'audio/mpeg',\n 'qt' => 'video/quicktime',\n 'mov' => 'video/quicktime',\n\n // adobe\n 'pdf' => 'application/pdf',\n 'psd' => 'image/vnd.adobe.photoshop',\n 'ai' => 'application/postscript',\n 'eps' => 'application/postscript',\n 'ps' => 'application/postscript',\n\n // ms office\n 'doc' => 'application/msword',\n 'rtf' => 'application/rtf',\n 'xls' => 'application/vnd.ms-excel',\n 'ppt' => 'application/vnd.ms-powerpoint',\n 'docx' => 'application/msword',\n 'xlsx' => 'application/vnd.ms-excel',\n 'pptx' => 'application/vnd.ms-powerpoint',\n\n\n // open office\n 'odt' => 'application/vnd.oasis.opendocument.text',\n 'ods' => 'application/vnd.oasis.opendocument.spreadsheet',\n );\n\n $ext = strtolower(array_pop(explode('.', $filename)));\n\n if (function_exists('mime_content_type'))\n {\n $mimetype = mime_content_type($filename);\n return $mimetype;\n }\n elseif (function_exists('finfo_open'))\n {\n $finfo = finfo_open(FILEINFO_MIME);\n $mimetype = finfo_file($finfo, $filename);\n finfo_close($finfo);\n return $mimetype;\n }\n elseif (array_key_exists($ext, $mime_types))\n {\n return $mime_types[$ext];\n }\n else\n {\n return 'application/octet-stream';\n }\n }", "title": "" }, { "docid": "99a436315cb359639a3ecf4eec06d879", "score": "0.6180316", "text": "private function get_configured_typesets() {\n $typeslist = (string)$this->get_config('filetypes');\n\n $util = new \\core_form\\filetypes_util();\n $sets = $util->normalize_file_types($typeslist);\n\n return $sets;\n }", "title": "" }, { "docid": "2671460dac0d3ca975aa48d740460763", "score": "0.6169345", "text": "public static function mimes_by_ext($extension)\r\n {\r\n $mimes = Core::config('mimes');\r\n\r\n return isset($mimes[$extension])?((array)$mimes[$extension]):array();\r\n }", "title": "" }, { "docid": "9eba7bc18a0c8b78d75d90058def7d0f", "score": "0.61639607", "text": "static public function getThemeResourceTypes();", "title": "" }, { "docid": "3c720a14250982f3e2d9cb38023818b9", "score": "0.6160291", "text": "public function getExtensionAllowed()\n {\n return array_merge($this->imageTypes, $this->videoTypes, $this->documentTypes);\n }", "title": "" }, { "docid": "0f94cd339f2e4f85a8707d47a0f6dd04", "score": "0.6157862", "text": "public function getTypes()\n {\n return array_values($this->resourceTypes);\n }", "title": "" }, { "docid": "b22d2a153643b1a4e7dabb4d3a4c89a0", "score": "0.61524147", "text": "public static function getFileExtensions($mimeType)\n {\n if (empty(static::$mimeTypesMapping)) {\n static::initialize();\n }\n\n $extensions = array();\n if (isset(static::$mimeTypesMapping[strtolower($mimeType)])) {\n $extensions = static::$mimeTypesMapping[strtolower($mimeType)];\n }\n\n return $extensions;\n }", "title": "" }, { "docid": "5c71d3cebfa379fb66a2c8068f00f6b2", "score": "0.6151277", "text": "function get_allowed_mime_types($user = \\null)\n {\n }", "title": "" }, { "docid": "fb39fc6eadbd7b66c0bb91d7a5178c01", "score": "0.61510414", "text": "public function fileExtensions($mimeType);", "title": "" }, { "docid": "50b7e8169a31e9e77e8ce23d52880588", "score": "0.6144039", "text": "public static function getTypes() {\n\t\treturn [\n\t\t\t'text' => self::RESOURCE_TYPE_TEXT,\n\t\t\t'img' => self::RESOURCE_TYPE_IMG\n\t\t];\n\t}", "title": "" }, { "docid": "26566c6625abe664a1f1c97d874d4bc9", "score": "0.6139413", "text": "public function get_allowed_content_object_types()\n {\n return array(File::class);\n }", "title": "" }, { "docid": "92603d2058f64c3bc97366c4cda18dcd", "score": "0.6139", "text": "function my_custom_mime_types( $mimes ) {\n\t$mimes['svg'] = 'image/svg+xml';\n\t$mimes['svgz'] = 'image/svg+xml';\n\t$mimes['doc'] = 'application/msword';\n\t \n\t// Optional. Remove a mime type.\n\tunset( $mimes['exe'] );\n\t \n\treturn $mimes;\n\t}", "title": "" }, { "docid": "67291084fc56fca59d6b223d66ea32b4", "score": "0.61367565", "text": "protected function loadTypes()\n {\n return array(\n new RecaptchaType(\n $this->app['salberts_recaptcha2.public_key'],\n $this->app['salberts_recaptcha2.enabled'],\n $this->app['salberts_recaptcha2.ajax'],\n $this->app['salberts_recaptcha2.locale_key']\n )\n );\n }", "title": "" }, { "docid": "439866c4b7f3fbe90a1cdd379703d0b6", "score": "0.61313134", "text": "function raamdev_custom_mime_media_types( $mimes ) {\n\t$mimes = array_merge( $mimes, array(\n\t\t'epub|mobi' => 'application/octet-stream'\n\t) );\n\treturn $mimes;\n}", "title": "" }, { "docid": "b50eb96889aa47cdda3d50abd4ca8d0b", "score": "0.6121075", "text": "public static function getAllForcedTypes()\n {\n return array(\n self::FT_3GP,\n self::FT_AL,\n self::FT_BMP,\n self::FT_GIF,\n self::FT_JPG,\n self::FT_PNG,\n self::FT_TONE,\n self::FT_UL,\n self::FT_XMP,\n self::FT_STW\n );\n }", "title": "" }, { "docid": "c03f11e34a0850de41e8060ed4c43846", "score": "0.61177546", "text": "public static function getLoadedExtensionListArray() {}", "title": "" }, { "docid": "23ba1b60f675f21d51a748c3ec25c7b2", "score": "0.61153907", "text": "public function getRegisteredExtensions();", "title": "" }, { "docid": "ac179228b54ecd5f066abaa03b9c3754", "score": "0.610968", "text": "public function getSupportedTypes () {\n $templateFolders = scandir($this->templatePath);\n $supportedList = [];\n\n foreach ($templateFolders as $folder) {\n if ($folder !== '.' && $folder !== '..') {\n $templates = scandir($this->templatePath . '/' . $folder);\n\n foreach ($templates as $template) {\n if ($template !== '.' && $template !== '..') {\n $xml = $this->loadTemplate($folder . '.' . substr($template, 0, -4));\n\n $supportedList[] = [\n 'type' => [\n 'code' => $xml->Meta[0]->Type['Code'],\n 'description' => $xml->Meta->Type,\n ],\n 'country' => [\n 'code' => $xml->Meta[0]->Country['Code'],\n 'name' => $xml->Meta->Country,\n 'internationalName' => $xml->Meta[0]->Country['International'],\n ],\n 'notation' => $folder . '.' . substr($template, 0, -4),\n ];\n }\n }\n }\n }\n\n return $supportedList;\n }", "title": "" }, { "docid": "561cb9ac07a8a8821364ff34dc197023", "score": "0.6105602", "text": "function get_imagify_mime_type() {\n\t_deprecated_function( __FUNCTION__ . '()', '1.7', 'imagify_get_mime_types()' );\n\n\treturn imagify_get_mime_types();\n}", "title": "" }, { "docid": "6c6b3643261eaf2c7841ce5e93ef4747", "score": "0.6101942", "text": "public static function get_all() {\n global $CFG;\n // Get directory listing (excluding simpletest, CVS, etc)\n $list = core_component::get_plugin_list('forumngtype');\n\n $results = array();\n foreach ($list as $name => $location) {\n $results[] = self::get_new(str_replace('forumngtype_', '', $name));\n }\n return $results;\n }", "title": "" }, { "docid": "2e0b86fe96cac788ed16ac479aa747ef", "score": "0.6092476", "text": "public function get_types()\n\t{\n\t\treturn $this->driver_query('type_list', FALSE);\n\t}", "title": "" }, { "docid": "d208cfa01bccd3c1394bf65659c73bc0", "score": "0.60847574", "text": "public function mime_types( $mimes ) {\n\n\t\t$mimes['woff2'] = 'font/woff2';\n\t\t$mimes['woff'] = $this->get_mime( 'woff' ); \n\t\t$mimes['ttf'] = $this->get_mime( 'ttf' );\n\t\t$mimes['eot'] = $this->get_mime( 'eot' ); \n\t\t$mimes['svg'] = $this->get_mime( 'svg' );\n\n\t\treturn $mimes;\n\n\t}", "title": "" } ]
957b48f0773b9285ca7d42ceb1439449
List the rewards of the specified user. This call takes into account all confirmed awards, but not pending or refused awards.
[ { "docid": "9ce0e26de4083f89a861fcc9741a95f2", "score": "0.0", "text": "public function usersList()\n {\n $em = $this->em;\n $serializer = $this->get('serializer');\n $emUsers = $em->getRepository(UsersVPS::class)->findAll();\n $emCompanies = $em->getRepository(CompaniesVPN::class);\n $final = [];\n foreach ($emUsers as $item) {\n $company = $emCompanies->findOneBy([\n 'id' => $item->getCompanyId()\n ]);\n\n $final[] = [\n 'companyId' => $item->getCompanyId(),\n 'companyName' => $company->getName(),\n 'email' => $item->getEmail(),\n 'id' => $item->getId(),\n 'name' => $item->getName()\n ];\n }\n $json = $serializer->serialize($final, 'json');\n return new JsonResponse($json, 200);\n }", "title": "" } ]
[ { "docid": "cdcdf0cc499560844a9783675921c8ba", "score": "0.68349165", "text": "public function getUserRewards($user_id) {\n $rewards = array();\n $tempArray = array();\n $stmt = $this->conn->prepare(\"SELECT * FROM Redeem INNER JOIN Reward on Redeem.Reward_ID = Reward.Reward_ID Where `User_ID` = ? ORDER BY `Redeem_Created` DESC\");\n $stmt->bind_param(\"i\", $user_id);\n if ($stmt->execute()) {\n\n $results = $stmt->get_result();\n while($row = $results->fetch_object()){\n $tempArray = $row;\n array_push($rewards, $tempArray);\n }\n $stmt->close();\n \n return $rewards;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "6ab9e15c6f615cc0d88a551931993cc9", "score": "0.6502185", "text": "public function index()\n {\n $userRewards = UserReward::all();\n return $userRewards;\n }", "title": "" }, { "docid": "8028e98f07e0c7fd7e7bd158919bedb5", "score": "0.58187306", "text": "public function getRewards() {\n try{ \n $rewards = EcosystemReward::getRewards(Auth::user()->ecosystem_id);\n return $this->renderSuccess(trans('messages.reward_retrieved_successfully'),$rewards);\n } \n catch(\\Exception $e){\n UtilityHelper::logException(__METHOD__, $e);\n return $this->renderFailure(trans('messages.error.exception'), Response::HTTP_OK);\n }\n \n }", "title": "" }, { "docid": "c2041c0901f1a3687a649612610bbaab", "score": "0.5573139", "text": "public function process_rewards($rewardid, $userid) {\r\n\t\t switch($reward_id) {\r\n \r\n /*********************************\r\n -> Unlock -> Level 5 Reward 3\r\n -> +2 Skills for your profile\r\n **********************************/\r\n case 32:\r\n /* Put your custom code here associated with Level 5 Reward 3 reward. */\r\n break;\r\n \r\n /*********************************\r\n -> Unlock -> Level 5 Reward 2\r\n -> +2.5% Faster bid refresh rate\r\n **********************************/\r\n case 31:\r\n /* Put your custom code here associated with Level 5 Reward 2 reward. */\r\n break;\r\n \r\n /*********************************\r\n -> Unlock -> Level 5 Reward 1\r\n -> +1 Extra bids per month\r\n **********************************/\r\n case 30:\r\n /* Put your custom code here associated with Level 5 Reward 1 reward. */\r\n break;\r\n \r\n /*********************************\r\n -> Unlock -> Skills\r\n -> Increase the total number of skills allowed for your profile\r\n **********************************/\r\n case 19:\r\n /* Put your custom code here associated with Skills reward. */\r\n break;\r\n \r\n /*********************************\r\n -> Unlock -> Bids\r\n -> Increase the number of bids you received per month.\r\n **********************************/\r\n case 18:\r\n /* Put your custom code here associated with Bids reward. */\r\n break;\r\n \r\n /*********************************\r\n -> Unlock -> The Network Slot\r\n -> Increase the number of network slots in your contact list.\r\n **********************************/\r\n case 17:\r\n /* Put your custom code here associated with The Network Slot reward. */\r\n break;\r\n \r\n }\r\n\t}", "title": "" }, { "docid": "0d930d3aacd1f1d7932be0ba180855a0", "score": "0.55197966", "text": "public function index()\n {\n $user = Auth::user();\n $employee = $user->employee;\n if ($user->can('manage rewards')) {\n $rewards = Reward::with(['recognizer', 'rewarded'])->orderBy('is_approved')->get();\n } else {\n $rewards = Reward::where('is_approved', true)\n ->with(['recognizer', 'rewarded'])\n ->orderBy('created_at', 'desc')\n ->get();\n }\n\n return view('rewards.feed')->with([\n 'rewards' => $rewards,\n 'receivedPoints' => $employee->reward_received,\n 'leftPoints' => $employee->reward_left,\n 'employees' => Employee::all()->toJson()\n ]);\n }", "title": "" }, { "docid": "1b4d36f5c44502bc480fae3fae7b51bb", "score": "0.54800075", "text": "public function checkForAwards($user)\n {\n $awards = Award::all();\n foreach ($awards as $award) {\n $klass = $award->getReference($award, $user);\n if ($klass) {\n $klass->handle();\n }\n }\n }", "title": "" }, { "docid": "0bcaf4d0b4f56b3f7cd91835ad8345be", "score": "0.5321398", "text": "public static function list_answered($user)\n {\n $answered_list = json_decode(Storage::get('answers/' . $user->username), true);\n $ret = array();\n foreach ($answered_list as $q => $a) {\n $qno = explode(\"q\", $q)[1];\n array_push($ret, $qno);\n }\n\n return $ret;\n }", "title": "" }, { "docid": "b321c788c0e733268879fc31638a2ed2", "score": "0.53069717", "text": "public function getAllRewards() {\n $rewards = array();\n $tempArray = array();\n $stmt = $this->conn->prepare(\"SELECT * FROM Reward WHERE Reward_For_Sale = 1\");\n if ($stmt->execute()) {\n\n $results = $stmt->get_result();\n while($row = $results->fetch_object()){\n $tempArray = $row;\n array_push($rewards, $tempArray);\n }\n $stmt->close();\n \n return $rewards;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "9e9811c91505ff61acc58087f9e79021", "score": "0.5236688", "text": "public function retrieveSkillRewards($id, &$result)\n {\n $result = true;\n $sql = \"\nSELECT\n QUESTS.QUESTID AS CURRENTQUESTID,\n SKILLS.SKILLNAME AS SKILLNAME,\n QUESTSKILLREWARDS.XPREWARD AS XP,\n QUESTSKILLREWARDS.OPTIONAL AS OPTIONAL,\n QUESTSKILLREWARDS.CONDITIONAL AS CONDITIONAL,\n QUESTSKILLREWARDS.COMMENT AS COMMENT\nFROM\n QUESTS\nINNER JOIN\n QUESTSKILLREWARDS\n ON\n QUESTS.QUESTID = QUESTSKILLREWARDS.QUESTID\nINNER JOIN\n SKILLS\n ON\n QUESTSKILLREWARDS.SKILLID = SKILLS.SKILLID\nWHERE\n QUESTS.QUESTID = ?\n\";\n $data = array($id);\n return $this->makeStatement($sql, $data, SQLType::Retrieve, false, $result);\n }", "title": "" }, { "docid": "b4e3f269eec7d8e29180a66055ef22e5", "score": "0.5224953", "text": "public function userBooks(User $user)\n {\n $this->authorize('view', $user);\n\n $books = $user->books()->latest();\n\n if (request()->has('due') && request('due'))\n $books->whereNull('returned_at');\n\n return BookLog::collection($books->paginate(50));\n }", "title": "" }, { "docid": "da48e1fe1b1d7a9f54eb8a7377975585", "score": "0.50760466", "text": "public function list(User $user)\n {\n return isset(PolicyService::getPermissions($user)['list-roles']);\n }", "title": "" }, { "docid": "1c1fcc0e1ade430bd54b9b539cadd515", "score": "0.5070312", "text": "public function index($user)\n {\n return view('requests.user_requests', $this->user->getUserRelations('followers', $user, FALSE, 'all'));\n }", "title": "" }, { "docid": "faaf3a42ff64cd722b036b2d40909a39", "score": "0.50391966", "text": "public function show($id)\n {\n $userReward = UserReward::findOrFail($id);\n return $userReward;\n }", "title": "" }, { "docid": "16e96ced5366ea8feb3a1d2386a8cb55", "score": "0.48994184", "text": "function hrb_get_user_reviews( $user = '', $args = array() ) {\n\t$user = get_the_hrb_userdata( $user );\n\n\tif ( isset( $args['posts_per_page'] ) ) {\n\t\t$page = max( 1, get_query_var( 'paged' ) );\n\t\t$limit = $args['posts_per_page'];\n\t\t$offset = $limit * ( $page - 1 );\n\t} else {\n\t\t$limit = 0;\n\t\t$offset = 0;\n\t}\n\n\t$defaults = array(\n\t\t'number' => $limit,\n\t\t'offset' => $offset,\n\t);\n\t$args = wp_parse_args( $args, $defaults );\n\n\tif ( isset( $args['filter_review_relation'] ) && 'authored' == $args['filter_review_relation'] ) {\n\t\t$reviews = appthemes_get_user_authored_reviews( $user->ID, $args );\n\t} else {\n\t\t$reviews = appthemes_get_user_reviews( $user->ID, $args );\n\t}\n\treturn $reviews->reviews;\n}", "title": "" }, { "docid": "d83498a8529a60cf92138b3461229799", "score": "0.48652303", "text": "public function getAwards($force = false)\r\n\t{\r\n\t\tif ($force)\r\n\t\t{\r\n\t\t\t$this->_awards = null;\r\n\t\t}\r\n\t\t\r\n\t\tif ($this->_awards == null)\r\n\t\t{\r\n\t\t\t$data = $this->_api->getUrl(\"bf3/awardsPopulateStats/{$this->_id}/1/\");\r\n\t\t\t$data = json_decode($data, true);\r\n\t\t\tif (!is_array($data['data']['awards']))\r\n\t\t\t{\r\n\t\t\t\tthrow new BattlelogException('Invalid awards data');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$ribbons = $data['data']['awards']['AwardGroup_Ribbons'];\r\n\t\t\t$medals = $data['data']['awards']['AwardGroup_Medals'];\r\n\t\t\t$locale = $data['data']['bf3GadgetsLocale']['awards'];\r\n\t\t\t\r\n\t\t\t$result = array();\r\n\t\t\t$result['ribbons'] = array();\r\n\t\t\t$result['medals'] = array();\r\n\t\t\t\r\n\t\t\tforeach ($ribbons as $ribbon)\r\n\t\t\t{\r\n\t\t\t\t$id = (int) substr($ribbon['unlockId'], 1);\r\n\t\t\t\t$result['ribbons'][$id] = array(\r\n\t\t\t\t\t\t'id'\t\t=> $id,\r\n\t\t\t\t\t\t'unlockId'\t=> $ribbon['unlockId'],\r\n\t\t\t\t\t\t'name'\t\t=> $this->_api->translate($locale[$ribbon['unlockId']]['name']),\r\n\t\t\t\t\t\t'taken'\t\t=> $ribbon['unlocked'] == 100 ? true: false,\r\n\t\t\t\t\t\t'amount'\t=> (int) $ribbon['actualValue'],\r\n\t\t\t\t\t\t'image' => array(\r\n\t\t\t\t\t\t\t\t'small' => BattlelogUtils::getRibbonImage($id, 'small'),\r\n\t\t\t\t\t\t\t\t'medium' => BattlelogUtils::getRibbonImage($id, 'medium'),\r\n\t\t\t\t\t\t\t\t'large' => BattlelogUtils::getRibbonImage($id, 'large')\r\n\t\t\t\t\t\t)\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tforeach ($medals as $medal)\r\n\t\t\t{\r\n\t\t\t\t$id = (int) substr($medal['unlockId'], 1);\r\n\t\t\t\t$result['medals'][$id] = array(\r\n\t\t\t\t\t\t'id'\t\t=> $id,\r\n\t\t\t\t\t\t'unlockId'\t=> $medal['unlockId'],\r\n\t\t\t\t\t\t'name'\t\t=> $this->_api->translate($locale[$medal['unlockId']]['name']),\r\n\t\t\t\t\t\t'taken'\t\t=> $medal['unlocked'] == 100 ? true: false,\r\n\t\t\t\t\t\t'amount'\t=> (int) $medal['actualValue'],\r\n\t\t\t\t\t\t'image' => array(\r\n\t\t\t\t\t\t\t\t'small' => BattlelogUtils::getMedalImage($id, 'small'),\r\n\t\t\t\t\t\t\t\t'medium' => BattlelogUtils::getMedalImage($id, 'medium'),\r\n\t\t\t\t\t\t\t\t'large' => BattlelogUtils::getMedalImage($id, 'large')\r\n\t\t\t\t\t\t)\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->_awards = $result;\r\n\t\t}\r\n\t\t\r\n\t\treturn $this->_awards;\r\n\t}", "title": "" }, { "docid": "e081df2857f4def15e3954f08fede600", "score": "0.48385552", "text": "public function findAllTwitts(User $user)\n {\n $this->initRsm();\n $rsq = $this->_em->createNativeQuery(\"\n SELECT\n twts.twitt_tittle,\n twts.twitt_message,\n twts.twitt_time,\n twts.twitt_id,\n u.display_name,\n u.user_id,\n \tIFNULL( (SELECT twitter_follow_user.user_user_id\n FROM twitter_follow_user\n \t\t WHERE user_user_follow_id = twts.user_user_id\n \t\t\tAND user_user_id = ? ),-1) as is_follow\n FROM twitts as twts\n LEFT JOIN user as u ON u.user_id = twts.user_user_id\n ORDER BY twts.twitt_time DESC\", $this->rsm);\n\n $rsq->setParameter(1, $user->getUserId());\n return $rsq->getResult();\n }", "title": "" }, { "docid": "62fe736c7ca6dc90f6dfd1c212d312a1", "score": "0.47930676", "text": "public function findFollowedTwitts(User $user)\n {\n $this->initRsm();\n $rsq = $this->_em->createNativeQuery(\"\n SELECT\n twts.twitt_tittle,\n twts.twitt_message,\n twts.twitt_time,\n u.display_name,\n u.user_id,\n \ttfu.user_user_id as is_follow\n FROM twitts as twts\n LEFT JOIN user as u ON u.user_id = twts.user_user_id\n LEFT JOIN twitter_follow_user as tfu ON tfu.user_user_follow_id = u.user_id\n WHERE tfu.user_user_id = ?\n ORDER BY twts.twitt_time DESC\",$this->rsm);\n\n $rsq->setParameter(1, $user->getUserId());\n return $rsq->getResult();\n }", "title": "" }, { "docid": "80dbf01b76cd5e9fe1f62834578bd155", "score": "0.47905153", "text": "public function index(User $user)\n {\n if (Gate::denies('my_quizzes', $user->id)) {\n abort(403, 'Sorry, you don\\'t have access to this page');\n }\n\n $ids = $user->likeds->pluck('quiz_id')->toArray();\n $liked = QuizRepozitory::getAllUsersQuizzes($ids);\n $quizzes = static::getQuizzesPhoto($liked);\n $liked = $quizzes->chunk(6);\n\n return view('my_quizzes', compact('liked'));\n }", "title": "" }, { "docid": "150f664e34445dfc3bb7a422e9fd9ee8", "score": "0.4788702", "text": "public function getLists($user, $reverse = null)\n\t{\n\t\t// Check the rate limit for remaining hits\n\t\t$this->checkRateLimit('lists', 'list');\n\n\t\t// Determine which type of data was passed for $user\n\t\tif (is_numeric($user))\n\t\t{\n\t\t\t$data['user_id'] = $user;\n\t\t}\n\t\telseif (is_string($user))\n\t\t{\n\t\t\t$data['screen_name'] = $user;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// We don't have a valid entry\n\t\t\tthrow new RuntimeException('The specified username is not in the correct format; must use integer or string');\n\t\t}\n\n\t\t// Check if reverse is specified.\n\t\tif (!is_null($reverse))\n\t\t{\n\t\t\t$data['reverse'] = $reverse;\n\t\t}\n\n\t\t// Set the API path\n\t\t$path = '/lists/list.json';\n\n\t\t// Send the request.\n\t\treturn $this->sendRequest($path, 'GET', $data);\n\t}", "title": "" }, { "docid": "8b01d37f1b24e135441d67a4b77c7d7f", "score": "0.4779554", "text": "public function getAllCompletedQuizForUser($user)\n {\n $closed_quiz = $this->repository->findBy(array(\n 'user_id' => $user->getId(),\n 'is_active' => true,\n 'is_closed' => true,\n ), array(\n 'started_at' => 'DESC',\n ));\n return $closed_quiz;\n }", "title": "" }, { "docid": "4dbdaa8b4f0ccdc9a6821979f07a7a52", "score": "0.47664654", "text": "public function getAwards() {\n return $this->awards;\n }", "title": "" }, { "docid": "3554f9b9ae6b0b33335da32d05c9932e", "score": "0.47605786", "text": "public function create_quick_links( $actions, $user ) {\n\n\t\t$user_manager = new UR_Admin_User_Manager( $user );\n\n\t\tif ( ! $user_manager->can_status_be_changed_by( get_current_user_id() ) ) {\n\t\t\treturn $actions;\n\t\t}\n\n\t\t$approve_link = add_query_arg(\n\t\t\tarray(\n\t\t\t\t'action' => 'approve',\n\t\t\t\t'user' => $user->ID,\n\t\t\t)\n\t\t);\n\t\t$approve_link = remove_query_arg( array( 'new_role' ), $approve_link );\n\t\t$approve_link = wp_nonce_url( $approve_link, 'ur_user_change_status' );\n\n\t\t$deny_link = add_query_arg(\n\t\t\tarray(\n\t\t\t\t'action' => 'deny',\n\t\t\t\t'user' => $user->ID,\n\t\t\t)\n\t\t);\n\t\t$deny_link = remove_query_arg( array( 'new_role' ), $deny_link );\n\t\t$deny_link = wp_nonce_url( $deny_link, 'ur_user_change_status' );\n\n\t\t$approve_action = '<a style=\"color:#086512\" href=\"' . esc_url( $approve_link ) . '\">' . _x( 'Approve', 'The action on users list page', 'user-registration' ) . '</a>';\n\t\t$deny_action = '<a style=\"color:#e20707\" href=\"' . esc_url( $deny_link ) . '\">' . _x( 'Deny', 'The action on users list page', 'user-registration' ) . '</a>';\n\n\t\t$user_status = $user_manager->get_user_status();\n\n\t\tif ( isset( $user_status['login_option'] ) && 'admin_approval' === $user_status['login_option'] ) {\n\t\t\tif ( 0 == $user_status['user_status'] ) {\n\t\t\t\t$actions['ur_user_deny_action'] = $deny_action;\n\t\t\t\t$actions['ur_user_approve_action'] = $approve_action;\n\t\t\t} elseif ( 1 == $user_status['user_status'] ) {\n\t\t\t\t$actions['ur_user_deny_action'] = $deny_action;\n\t\t\t} elseif ( -1 == $user_status['user_status'] ) {\n\t\t\t\t$actions['ur_user_approve_action'] = $approve_action;\n\t\t\t}\n\t\t}\n\n\t\treturn $actions;\n\t}", "title": "" }, { "docid": "2547fc36dddbf48d68db58a182531203", "score": "0.47465515", "text": "function vf_get_user_wishlist($user) {\n $levels = WLMAPI::wlmapi_get_member_levels($current_user->ID);\n\n $wishlistRoles = [];\n foreach ($levels as $level) {\n if ($level->Active && !$level->Cancelled && !$level->Expired) {\n $wishlistRoles[] = $level->Name; \n }\n }\n if (is_array($levels)) {\n $roles = array();\n if (isset($user['roles']))\n $roles = explode(',', $user['roles']);\n\n $roles = array_merge($roles, $wishlistRoles);\n $roles = array_unique($roles);\n $user['roles'] = implode(',', $roles); \n }\n return $user;\n }", "title": "" }, { "docid": "96a1bd71cba3f9791ee8ea6de266d430", "score": "0.4698783", "text": "public function view_history($quiz_id, $user_id) {\n return $this->db->select()\n ->from('quiz_result')\n ->join(\"$this->_table\", \"$this->_table.quiz_id = quiz_result.quiz_id\")\n ->join('user', 'user.user_id = quiz_result.user_id')\n ->where('quiz_result.quiz_id', $quiz_id)\n ->where('quiz_result.user_id', $user_id)\n ->get()->result();\n }", "title": "" }, { "docid": "49c173683ca15341131a954bfab70976", "score": "0.46797347", "text": "public function onUserStateChanged(UserStateChanged $event): void\n {\n $this->checkForAwards($event->user);\n }", "title": "" }, { "docid": "9d9646b11c0ad596196c2a5393698c61", "score": "0.4672606", "text": "public function list(User $user)\n {\n return $user->hasAnyRole(['admin', 'curator']);\n }", "title": "" }, { "docid": "f348db4d02ea70e065268a470f2b4ffe", "score": "0.46642202", "text": "public function show(UserSkills $userSkills)\n {\n //\n }", "title": "" }, { "docid": "c80faa84dcc4bfe44a358557a0efd541", "score": "0.46614116", "text": "public function getUserAchievements($user, $types = [])\n {\n $userId = $user instanceof User ? $user->getUserId() : $user;\n $types = empty($types) ? Achievement::getAllTypesList() : $types;\n $types = is_array($types) ? implode(',', $types) : $types;\n\n return $this->getResourceCollection(new Route(\n self::USER_ACHIEVEMENTS_ROUTE,\n ['userId' => $userId],\n ['types' => $types]\n ), 'achievements', 'Wonnova\\SDK\\Model\\Achievement');\n }", "title": "" }, { "docid": "5f4705a410fa41f2afcf77e6138b2709", "score": "0.46472606", "text": "private function seedScoringAnswersFor(User $user, int $yesAmt = 1, int $noAmt = 1)\n\t{\n\t\t$totalCount = $yesAmt + $noAmt;\n\t\t$item = factory(Item::class)->create(['user_id' => $user->getKey()]);\n\t\t/** @var ItemRentalRequest[] $requests */\n\t\t$requests = factory(ItemRentalRequest::class, $totalCount)\n\t\t\t->create(['item_id' => $item->getKey(), 'status' => 'accepted', 'borrow_on' => Carbon::now()->subDays(2000)]);\n\t\t$itemRentals = [];\n\t\t$userQuestionAnswers = [];\n\t\t$count = 0;\n\n\t\tforeach ($requests as $request) {\n\t\t\t$itemRental = factory(ItemRental::class)->create(['item_rental_request_id' => $request->getKey()]);\n\t\t\t$itemRentals[] = $itemRental;\n\n\t\t\t$data = [\n\t\t\t\t'question_id' => Question::USER_SCORER_QUESTION_ID,\n\t\t\t\t'answer_id' => ($count >= $yesAmt) ? Answer::NO : Answer::YES,\n\t\t\t\t'item_rental_id' => $itemRental->getKey(),\n\t\t\t];\n\n\t\t\t$userQuestionAnswers[] = factory(UserQuestionAnswer::class)->create($data);\n\t\t\t$count++;\n\t\t}\n\n\t}", "title": "" }, { "docid": "54931c5df6225cf043bc985da25288d3", "score": "0.46174228", "text": "public function get_follow_recommendations($user_id, $limit = 5)\n\t{\n\t\t$user = $this->_db->query(Database::SELECT, \"SELECT pregnancy_due_date FROM wp_users WHERE wp_users.ID = \".$user_id)->current();\n\t\t$children = $this->_db->query(Database::SELECT, \"SELECT id, birthdate FROM wp_user_children WHERE wp_user_children.wp_user_id = \".$user_id);\n\n\t\t// Combine the children year query\n\t\t$year_children = array();\n\t\tforeach ($children as $child)\n\t\t{\n\t\t\t$year = date('Y', strtotime($child['birthdate']));\n\t\t\t$year_children[] = \"(wp_user_children.birthdate BETWEEN '\".$year.\"-01-01' AND '\".$year.\"-12-31')\";\n\t\t}\n\n\t\t$year_children = ( ! empty($year_children)) ? 'AND ('.implode(' OR ', $year_children).')' : '';\n\t\t$pregnant = ($user['pregnancy_due_date'] >= date('Y-m-d')) ? \"AND pregnancy_due_date >= '\".date('Y-m-d').\"'\" : '';\n\t\t$count_children = (count($children) > 0) ? 'HAVING count_children = '.count($children) : '';\n\n\t\t$start_date = date('Y-m-d 00:00:00', strtotime('-1 month'));\n\t\t$end_date = date('Y-m-d 00:00:00');\n\n\t\treturn $this->_db->query(Database::SELECT, \"\n\t\t\tSELECT wp_users.ID, wp_users.user_nicename, wp_users.display_name, wp_users.biography, COUNT(wp_user_children.id) count_children\n\t\t\tFROM wp_users\n\t\t\tLEFT JOIN wp_user_children ON (wp_user_children.wp_user_id = wp_users.ID)\n\t\t\tWHERE (\n\t\t\t\twp_users.ID IN (SELECT post_author FROM wp_posts WHERE post_date BETWEEN '\".$start_date.\"' AND '\".$end_date.\"')\n\t\t\t\tOR wp_users.ID IN (SELECT user_id FROM wp_comments WHERE comment_date BETWEEN '\".$start_date.\"' AND '\".$end_date.\"')\n\t\t\t)\n\t\t\tAND (wp_users.ID NOT IN (SELECT following_id FROM followers WHERE follower_id = \".$user_id.\"))\n\t\t\tAND wp_users.ID != \".$user_id.\"\n\t\t\t\".\n\t\t\t$year_children.\n\t\t\t$pregnant.\"\n\t\t\tGROUP BY wp_users.ID\n\t\t\t\".$count_children.\"\n\t\t\tLIMIT \".$limit\n\t\t)->as_array();\n\t}", "title": "" }, { "docid": "712102ee3d4d4e16c2bf38316e382069", "score": "0.46165738", "text": "protected function get_role_list(/**\n * Filters the returned array of roles for a user.\n *\n * @since 4.4.0\n *\n * @param string[] $role_list An array of user roles.\n * @param WP_User $user_object A WP_User object.\n */\n$user_object) {}", "title": "" }, { "docid": "9e5ab0c10d0685c4f5f29e9bcb004edc", "score": "0.461347", "text": "protected function get_role_list($user_object)\n {\n }", "title": "" }, { "docid": "5095e3edd3c5e25a086be619e43a46d5", "score": "0.4601714", "text": "function wc_talk_users_to_rate_nav( $nav_items, $user_id, $username ) {\n\tif ( ! wp_idea_stream_is_rating_disabled() ) {\n\t\t$is_user_to_rate = (bool) wp_idea_stream_get_idea_var( 'is_user_to_rate' );\n\n\t\t$nav_items['to_rate'] = array(\n\t\t\t'title' => __( 'To rate', 'wc-talk' ),\n\t\t\t'url' => wc_talk_users_get_user_to_rate_url( $user_id, $username ),\n\t\t\t'current' => $is_user_to_rate,\n\t\t\t'slug' => 'to-rate',\n\t\t);\n\n\t\t// Avoid the Published nav to wrongly be the \"current\" one if viewing the not rated talks\n\t\tif ( ! empty( $is_user_to_rate ) ) {\n\t\t\t$nav_items['profile']['current'] = false;\n\t\t}\n\t}\n\n\treturn $nav_items;\n}", "title": "" }, { "docid": "87e9d41fa34018fb4bf8c32c143b696f", "score": "0.45903826", "text": "public function giveOwnRights($user)\n {\n return $this->service->giveOwnRights($user);\n }", "title": "" }, { "docid": "f90fea4da56a316dd01c1368a40e3c80", "score": "0.4588333", "text": "function userRewards():int {\n $gamepoints = (12 / (int)$_SESSION['attempts']) * 1000;\n $points = $gamepoints + (int)filter_input(INPUT_COOKIE, 'userpoints');\n\n setcookie('userpoints', $points, 0, '/', 'localhost');\n $level = (int)filter_input(INPUT_COOKIE, 'userlevel');\n if ($level == 2) {\n $level++;\n setcookie('userlevel', $level, 0, '/', 'localhost');\n }\n $dbconnection = DBConnectionFactory::getConnection();\n $user = new User((int)filter_input(INPUT_COOKIE, 'userid'),\n filter_input(INPUT_COOKIE, 'username'),\n $level, $points);\n $dbuser = new UserDAO($user, $dbconnection);\n $dbuser->updateStatus();\n return $gamepoints;\n}", "title": "" }, { "docid": "7098b6949ac49bcf60de8127a112cec4", "score": "0.4581199", "text": "function rewardUser($giverId, $receiverId, $points) {\n defineSendLoveAPI();\n\n $params = array (\n 'action' => 'reward_user',\n 'api_key' => REWARDER_API_KEY,\n 'giver_id' => $giverId,\n 'receiver_id' => $receiverId,\n 'points' => $points,\n );\n\n $referer = (empty($_SERVER['HTTPS'])?'http://':'https://').$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];\n $retval = json_decode(postRequest (REWARDER_API_URL, $params, array(CURLOPT_REFERER => $referer)), true);\n\n if ($retval['status'] == \"ok\") {\n return $retval['data'];\n } else {\n return -1;\n }\n}", "title": "" }, { "docid": "433bf8873ebfa656d7f4f1c31ec63d70", "score": "0.4575373", "text": "public function getUserRolesList($user) {\n \n $userRolesList = $this->em->getRepository('AppBundle:UserRoles') \n -> findBy(array());\n\n return $userRolesList;\n }", "title": "" }, { "docid": "e9de70c30746ade2556e82b3cb101a29", "score": "0.45443732", "text": "public function isRatedBy($user)\n {\n return Interaction::isRelationExists($this, 'raters', $user);\n }", "title": "" }, { "docid": "41c7799ad9e1eaecfd6b531f6ad916a2", "score": "0.45440885", "text": "public function index()\n {\n \n // check if PRO User has paid last month's due,\n // downgrade if not \n $user_id = Auth::user()->id;\n $user = User::whereId($user_id)->firstOrFail();\n $wallet = EWallet::where('user_id', $user->id)->get()->first();\n $uplines = $user->getUplines();\n \n\n if ($user->isPro() && !$user->hasPaidLastMonthDue() && !$user->registeredThisMonth()) // not paid last month due and didnt registered this month\n $user->downgrade('basic');\n\n $ranks = Rank::all();\n $transactions = CreditDebit::where('user_id', $user->id)->get();\n\n\n $first_referrals = User::where('recruited_by', $user->id)->get();\n \n foreach ($first_referrals as $first_referral)\n {\n $second_referrals = User::where('recruited_by', $first_referral->id)->get();\n\n if ($second_referrals->count()>0)\n {\n foreach($second_referrals as $second_referral)\n {\n // get 3rd level referrals \n $third_referrals = User::where('recruited_by', $second_referral->id)->get();\n if ($third_referrals->count()>0)\n {\n foreach($third_referrals as $third_referral)\n {\n $first_referrals->push($third_referral);\n }\n }\n\n\n $first_referrals->push($second_referral);\n }\n } \n }\n //print_r($first_referrals);exit();\n return view('home', compact('ranks','first_referrals', 'second_referrals','transactions','wallet'));\n \n }", "title": "" }, { "docid": "d39aa065eba1cd8782f13614a2054900", "score": "0.45245486", "text": "function user_answers()\n\t{\n\t\tglobal $ibforums, $std, $print;\n\n\t\tif (!$ibforums->member['g_is_supmod'])\n\t\t{\n\t\t\t$this->error(\"access_denied\");\n\t\t}\n\n\t\t$qid = intval($ibforums->input['quiz_id']);\n\n\t\t$memberid = intval($ibforums->input['userid']);\n\n\t\tif (!$qid)\n\t\t{\n\t\t\t$this->error(\"cannot_find_quiz\");\n\t\t}\n\n\t\t/*\n\t\t if($ibforums->member['id'] <= 0) {\n\t\t $this->error(\"guest_cant_play\");\n\t\t }\n\n\t\t */\n\n\t\t// Get the Quiz settings\n\n\t\t$quiz = $this->get_quiz_settings($qid);\n\n\t\tif ($quiz['quiz_status'] == 'CLOSED')\n\t\t{\n\t\t\t$quiz['quiz_status'] = $ibforums->lang['quiz_is_closed'];\n\t\t} else\n\t\t{\n\t\t\t$quiz['quiz_status'] = $ibforums->lang['quiz_is_open'];\n\t\t}\n\n\t\t$quiz['quiz_desc'] = str_replace(\"\\n\", \"<br>\", $quiz['quiz_desc']);\n\t\t$quiz['post'] = str_replace(\"\\n\", \"<br>\", $quiz['post']);\n\n\t\t$this->nav = array(\n\t\t\t\"<a href='{$ibforums->base_url}act=quiz'>{$ibforums->lang['quiz_nav']}</a>\",\n\t\t\t\"<a href='{$ibforums->base_url}act=quiz&code=show&quiz_id={$qid}'>{$quiz['quizname']}</a>\",\n\t\t\t$ibforums->lang['user_answers']\n\t\t);\n\n\t\t$this->page_title = $ibforums->lang['user_answers'];\n\n\t\t// Get all the groups\n\n\t\t$this->mem_titles = $this->get_groups_settings();\n\n\t\t// Get all the member params\n\n\t\t$member = $this->get_member($memberid);\n\n\t\t// Get all the member answers for the Quiz\n\n\t\t$user_answers = $this->get_user_answers($memberid, $qid);\n\n\t\t// $member['answers'] = stripslashes($user_answers['answers']);\n\n\t\t$member['time'] = $std->get_date($user_answers['time']);\n\t\t$member['time_took'] = $user_answers['time_took'];\n\t\t$member['amount_right'] = $user_answers['amount_right'];\n\n\t\t$answers = unserialize($user_answers['answers']);\n\n\t\t//foreach($answers as $k=>$v) echo $k.\"=\".$v.\"<br>\\n\";\n\n\t\t$member['num_of_questons'] = count($answers);\n\n\t\tforeach ($answers as $num => $answer)\n\t\t{\n\t\t\tif (is_array($answer))\n\t\t\t{\n\t\t\t\t$answers[$num] = implode(\"\\n\", $answer);\n\t\t\t}\n\t\t}\n\n\t\t//foreach($user_answers as $k=>$v) echo $k.\"=\".$v.\"<br>\\n\";\n\t\t// Get all the Quiz questions\n\n\t\t$quiz['questions'] = $this->get_quiz_questions($qid);\n\n\t\t// Count total/real questions\n\n\t\t$quiz['real_questions'] = 0;\n\t\t$quiz['total_questions'] = 0;\n\n\t\tforeach ($quiz['questions'] as $q)\n\t\t{\n\n\t\t\t// foreach($q as $k=>$v) echo $k.\"=\".$v.\"<br>\";\n\n\t\t\t$quiz['total_questions']++;\n\t\t\tif ($q['type'] != 'opinion')\n\t\t\t\t$quiz['real_questions']++;\n\t\t}\n\n\t\t// Make Header\n\n\t\t$this->output .= View::make(\"quiz.quiz_u_a_header\", ['settings' => $quiz, 'member' => $member]);\n\n\t\t// Loop for all the questions\n\n\t\tforeach ($quiz['questions'] as $q)\n\t\t{\n\n\t\t\t//echo $answers[$q['mid']].\"<br>\";\n\n\t\t\t$q['question'] = str_replace(\"\\n\", \"<br>\", $q['question']);\n\n\t\t\t$q['user_answer'] = $answers[$q['mid']];\n\n\t\t\t$this->output .= View::make(\"quiz.user_answer\", ['info' => $q]);\n\t\t}\n\t}", "title": "" }, { "docid": "0263092966b6412437124337924b436d", "score": "0.45217538", "text": "public static function getAllUsersRides($user) {\n $query = sprintf(\" SELECT id FROM %s WHERE creator_id = %s ORDER BY date_created DESC \",\n self::DB_TABLE,\n $user\n );\n $db = Db::instance();\n $result = $db->lookup($query);\n if(!mysql_num_rows($result))\n return null;\n else {\n $objects = array();\n while($row = mysql_fetch_assoc($result)) {\n $objects[] = self::loadById($row['id']);\n }\n return ($objects);\n }\n }", "title": "" }, { "docid": "e46df9a6f3520e1a46df2e69d23c4210", "score": "0.4519714", "text": "public function list_movies($username)\n {\n $user = User::where('username', $username)->first();\n\n // Does the movie exist?\n if(empty($user)) {\n abort(404);\n }\n\n $movies = $user->movies;\n\n // Do the movies exist?\n if($movies->count() == 0) {\n return view('list.none-found', [\n 'user' => $user\n ]);\n }\n\n // Build a list of available filters\n $filters = [];\n foreach($movies as $movie) {\n $genres = explode(', ', $movie->genre);\n foreach($genres as $genre) {\n if(!in_array($genre, $filters)) {\n $filters[] = $genre;\n }\n }\n }\n\n // Is the user logged in? If so, get a list of their movies \n $user_movies = [];\n $user_movies_ids = [];\n $user_watched_ids = [];\n if(Auth::check()) {\n $user_movies = Auth::user()->movies();\n $user_movies_ids = $user_movies->pluck('movies.id')->toArray();\n $user_watched_ids = $user_movies->where('has_watched', true)->pluck('movies.id')->toArray();\n }\n \n // Build share button text \n $current_url = \\Request::fullUrl();\n $tweet_text = rawurlencode('Check out my Must Watch list on '. config('app.name') .' '. $current_url);\n $fb_text = $tweet_text;\n\n return view('list.view', [\n 'user' => $user,\n 'movies' => $movies,\n 'filters' => $filters,\n 'current_url' => $current_url,\n 'tweet_text' => $tweet_text,\n 'fb_text' => $fb_text,\n 'user_movies' => $user_movies,\n 'user_movies_ids' => $user_movies_ids,\n 'user_watched_ids' => $user_watched_ids,\n ]);\n }", "title": "" }, { "docid": "11e17304d1eb0082681f0ba206987ab1", "score": "0.45192978", "text": "public function get_employee_awards() {\n\t\t$session = $this->session->userdata('username');\n\t\t$id = $session['user_id'];\n\t\t$query = $this->db->query(\"SELECT * FROM xin_awards where employee_id IN($id) order by award_id desc\");\n\t\t return $query->result();\n\t}", "title": "" }, { "docid": "2e54bcaba8384f1d56e71e6d11e9b862", "score": "0.4508334", "text": "public function getAllByUser(User $user)\n {\n return $user\n ->relationships()\n ->with([\n 'message',\n \n ])\n ->orderBy('updated_at', 'desc')\n ->get()\n ->pluck('message')\n ->sortByDesc(function ($message) {\n return $message->updated_at;\n });\n }", "title": "" }, { "docid": "024c7a7e64aba09139437e75ff6256c2", "score": "0.44924033", "text": "public function purchaseReward($user_id, $reward_id) {\n // check the item is in stock and for sale\n if ($this->reward_available($reward_id)) {\n\n $reward_points = $this->getRewardPoints($reward_id);\n $user_points = $this->getUsersPoints($user_id);\n // if they have enough points \n if ($reward_points <= $user_points) {\n $points_updated = $this->subtractPoints($user_id, $reward_points);\n if ($points_updated !== false) {\n \n $updated_stock = $this->subtractStock($reward_id);\n if ($updated_stock !== false) {\n \n $purchased = $this->createPurchase($user_id, $reward_id);\n return $purchased; \n }\n } \n }\n }\n return false;\n }", "title": "" }, { "docid": "ab0147064daee72c158939073060ae57", "score": "0.44694927", "text": "public function show(Reward $reward)\n {\n //\n }", "title": "" }, { "docid": "468c5259c8d970c2d23c4190dd46b294", "score": "0.44618365", "text": "public function index(User $user)\n {\n return $this->singleResponse(\n new UserResource( $user->load('roles') ),\n 200\n );\n }", "title": "" }, { "docid": "48225661197111130fa1413126a86bea", "score": "0.44499007", "text": "public function history($user_id = null)\n {\n // Check user primary type\n if($this->current_user->primary_type == 'parent') {\n if(isset($this->students[$user_id])) {\n $this->session->set_userdata('switch_student_id', $user_id);\n } else {\n redirect('dashboard/'.$user_id);\n return;\n }\n } else {\n $user_id = $this->current_user->id;\n }\n\n $view_data = [\n 'user' => $this->_internal_api('user_rabipoint', 'get_detail', [\n 'user_id' => $user_id\n ]),\n 'is_contract' => FALSE\n ];\n\n // params pagination\n $page = !empty($_GET['p']) && is_numeric($_GET['p']) ? $_GET['p'] : 1;\n $limit = PAGINATION_DEFAULT_LIMIT;\n $offset = ($page - 1) * $limit;\n\n // get list rabipoint of user\n $list_points = $this->_api('point_exchange')->get_list([\n 'limit' => $limit,\n 'offset' => $offset,\n 'user_id' => $user_id\n ]);\n\n // response list rabipoint of user\n if (isset($list_points['result'])) {\n $res = $list_points['result'];\n $view_data['list_points'] = $res;\n $view_data['pagination'] = [\n 'page' => (int) $page,\n 'items_per_page' => (int) $limit,\n 'total' => (int) $res['total'],\n 'offset' => (int) $offset + 1,\n 'limit' => $offset + $limit > $res['total'] ? $res['total'] : (int) $offset + $limit\n ];\n }\n\n // Get contract monthly payment of this student\n $contract = $this->_api('user_contract')->get_detail([\n 'user_id' => $user_id\n ]);\n\n if (isset($contract['result']) && $contract['result']['status'] == 'under_contract') {\n $view_data['is_contract'] = TRUE;\n }\n\n $view_data['user_id'] = $user_id;\n return $this->_render($view_data);\n }", "title": "" }, { "docid": "219ad9908d167b4912670f28571b3bdb", "score": "0.44400108", "text": "public function onUserStatsChanged(UserStatsChanged $event): void\n {\n $this->checkForAwards($event->user);\n }", "title": "" }, { "docid": "60d511800acedf82149321949b08eaee", "score": "0.44234475", "text": "public function getList()\n {\n $ostObj = $this->instantiateOSTSDKForV2Api();\n $redemptionsService = $ostObj->services->redemptions;\n $params = array();\n $params['user_id'] = $this->environmentVariables['userId'];\n $response = $redemptionsService->getList($params)->wait();\n $this->isSuccessResponse($response);\n }", "title": "" }, { "docid": "4134c2f8d17d0dbb11bed9d651054ced", "score": "0.44194555", "text": "private static function getActions(User $user): array\n {\n $actions = [];\n\n if (static::can(UsersPolicy::ability('show'), [$user]))\n $actions[] = LinkAction::action('show', route('admin::auth.users.show', [$user]), false)\n ->size('sm');\n\n if (static::can(UsersPolicy::ability('update'), [$user]))\n $actions[] = LinkAction::action('edit', route('admin::auth.users.edit', [$user]), false)\n ->size('sm');\n\n if (static::can(UsersPolicy::ability('activate'), [$user]))\n $actions[] = ButtonAction::action($user->isActive() ? 'deactivate' : 'activate', false)\n ->attributeIf($user->isDeletable(), 'onclick', \"Foundation.\\$emit('auth::users.activate', \".json_encode(['id' => $user->uuid, 'status' => $user->isActive() ? 'activated' : 'deactivated']).\")\")\n ->size('sm')\n ->setDisabled($user->isSuperAdmin());\n\n if (static::can(UsersPolicy::ability('restore'), [$user]) && $user->trashed())\n $actions[] = ButtonAction::action('restore', false)\n ->attribute('onclick', \"window.Foundation.\\$emit('auth::users.restore', \".json_encode(['id' => $user->uuid]).\")\")\n ->size('sm');\n\n if (static::can(UsersPolicy::ability('delete'), [$user]))\n $actions[] = ButtonAction::action('delete', false)\n ->attributeIf($user->isDeletable(), 'onclick', \"window.Foundation.\\$emit('auth::users.delete', \".json_encode(['id' => $user->uuid]).\")\")\n ->size('sm')\n ->setDisabled($user->isNotDeletable());\n\n return $actions;\n }", "title": "" }, { "docid": "b97cd810efca8b0281d440a8b13de6de", "score": "0.44175574", "text": "public function userBooks(User $user) {\n return Book::where('user_id', $user->id)\n ->orderBy('read_order')\n ->get();\n }", "title": "" }, { "docid": "10210823c854138095869b2a144b4e6e", "score": "0.44108975", "text": "public function index(User $user)\n {\n $aseguradoras = $user->aseguradoras;\n\n return $this->showAll($aseguradoras);\n }", "title": "" }, { "docid": "b27ffe40fd9d7b73112dbc2182f03b23", "score": "0.43914434", "text": "public function userCardList($userId)\r\n {\r\n $userData = Auth::user();\r\n\r\n if($userData->user_type != 'admin') {\r\n $response = api_create_response(2, $this->failureText, 'Not allowed.');\r\n return response()->json($response, $this->statusCodes->bad_request);\r\n }\r\n\r\n $data = CardModel::where('user_id', $userId)->orderBy('is_default' , 'DESC')->get();\r\n \r\n if(count($data)) {\r\n $this->responseStatusCode = $this->statusCodes->success;\r\n $response = api_create_response($data, $this->successText, 'Card List.');\r\n }\r\n else {\r\n $this->responseStatusCode = $this->statusCodes->not_found;\r\n $response = api_create_response(2, $this->failureText, 'No Card Found.');\r\n }\r\n \r\n return response()->json($response, $this->responseStatusCode);\r\n }", "title": "" }, { "docid": "fe63cc4ccf9d9ebcf60cd621a9a2b603", "score": "0.43719295", "text": "public function getUserAbilitiesList($user, $campusSession) {\n return json_decode($this->service(\"user/abilities/\" . $campusSession . \"/getAbilityList/\" . $user));\n }", "title": "" }, { "docid": "0ca2185cfde8f1024386e9a6416dcdc8", "score": "0.4362281", "text": "function get_applied_object_roles( $user = '' ) {\n\t\tif ( is_object( $user ) ) {\n\t\t\t$cache_flag = 'rs_object-roles';\t\t\t// v 1.1: changed cache key from \"object_roles\" to \"object-roles\" to match new key format for blog, term roles\n\t\t\t$cache = $user->cache_get($cache_flag);\n\t\t\t\n\t\t\t$limit = '';\n\t\t\t$u_g_clause = $user->get_user_clause('');\n\t\t} else {\n\t\t\t$cache_flag = 'rs_applied_object-roles';\t// v 1.1: changed cache key from \"object_roles\" to \"object-roles\" to match new key format for blog, term roles\n\t\t\t$cache_id = 'all';\n\t\t\t$cache = wpp_cache_get($cache_id, $cache_flag);\n\t\t\t\n\t\t\t$u_g_clause = '';\n\t\t}\n\t\t\n\t\tif ( is_array($cache) )\n\t\t\treturn $cache;\n\t\t\n\t\t$role_handles = array();\n\t\t\t\n\t\tglobal $wpdb;\n\t\t\n\t\t// object roles support date limits, but content date limits (would be redundant and a needless performance hit)\n\t\t$duration_clause = scoper_get_duration_clause( '', $wpdb->user2role2object_rs );\n\n\t\tif ( $role_names = scoper_get_col(\"SELECT DISTINCT role_name FROM $wpdb->user2role2object_rs WHERE role_type='rs' AND scope='object' $duration_clause $u_g_clause\") )\n\t\t\t$role_handles = scoper_role_names_to_handles($role_names, 'rs', true); //arg: return role keys as array key\n\t\t\n\t\tif ( is_object($user) ) {\n\t\t\t$user->cache_force_set($role_handles, $cache_flag);\n\t\t} else\n\t\t\twpp_cache_force_set($cache_id, $role_handles, $cache_flag);\n\t\t\n\t\treturn $role_handles;\n\t}", "title": "" }, { "docid": "4563242593f3fefaced7b66c425ded38", "score": "0.43606284", "text": "public function list(array $userIds, int $page, bool $includeDeactivated = false): array;", "title": "" }, { "docid": "a4ed3ba68b7691840b507d66bb34c2cd", "score": "0.43557236", "text": "public function findAllByAccessQuery(User $user = null) {\n $result = $this->createQueryBuilder('t')\n ->orderBy('t.name', 'ASC')\n ->getQuery()\n ;\n\n return $result;\n }", "title": "" }, { "docid": "2193c35c44b721c116fde7ab727a87a9", "score": "0.433842", "text": "public function recycleList()\n {\n $recyclesNumber = recycles::getItemsNumber(0, 0, -1);\n /*********************** snow 判断传入的最大的页码值是否超过最大值.*************************************/\n $curPage = $this->request->getGet('curPage', 'intval', 1);\n //>>判断输入的页码是否超过最大值.\n $startPos = getStartOffset($curPage, $recyclesNumber);\n $recycles = recycles::getItems(0, 0, -1,$startPos); //>>修改传入开始值\n /*********************** snow 判断传入的最大的页码值是否超过最大值.*************************************/\n\n $userIds = array_merge(array_keys(array_spec_key($recycles, 'user_id')), array_keys(array_spec_key($recycles, 'target_user_id')));\n $users = users::getItemsById($userIds);\n\n self::$view->setVar('recycles', $recycles);\n self::$view->setVar('users', $users);\n self::$view->setVar('pageList', getPageList($recyclesNumber, DEFAULT_PER_PAGE));\n self::$view->render('user_recyclelist');\n }", "title": "" }, { "docid": "a80e8afdfd4387c171de56666ff18646", "score": "0.4335959", "text": "public function showUserRoles($userId)\n {\n $user = User::select([\n 'id',\n 'email',\n 'first_name',\n 'last_name'\n ])->with('roles')\n ->where('id', $userId)\n ->where('status', config('constants.user_status.ACTIVE'))\n ->first();\n\n $roles = Role::all();\n\n return [\n 'user' => $user,\n 'roles' => $roles\n ];\n }", "title": "" }, { "docid": "1535ee2af089a2996bfa4090f96111e5", "score": "0.4324293", "text": "public function getReputation($user)\n {\n $questionPoints = array_reduce($user->questions, function ($carry, $item) {\n $carry += $item->question->vote->score;\n return $carry;\n });\n\n $postPoints = array_reduce($user->posts, function ($carry, $item) {\n $carry += $item->vote->score;\n return $carry;\n });\n\n $commentPoints = array_reduce($user->comments, function ($carry, $item) {\n $carry += $item->vote->score;\n return $carry;\n });\n\n $points =\n ($questionPoints * 2) +\n ($postPoints * 3) +\n ($commentPoints * 1);\n\n // Algorithm for reputation points\n $reputation =\n (count($user->questions) * 2) +\n (count($user->posts) * 3) +\n (count($user->comments) * 1) + $points;\n\n return $reputation;\n }", "title": "" }, { "docid": "8bd899e46021a294cc3f7a525ac2a408", "score": "0.43227163", "text": "function zg_luck_action_offer(\\stdClass $game_user) {\n $offer = $game_user->actions_max;\n $comment = '';\n zg_alter('luck_action_offer', $game_user, $offer, $comment);\n return [$offer, $comment];\n}", "title": "" }, { "docid": "8351da8aaa7aba37b3a018999d521e0d", "score": "0.43160027", "text": "public function followers($user)\n\t{\n\t\t$this->url = GH_USER_API.'/show/'.$user.'/followers';\n\n\t\treturn $this->connect();\n\t}", "title": "" }, { "docid": "d608b9853091a9700045188c448ef958", "score": "0.43136284", "text": "public function getUserListUnderLead($user_id)\n {\n $finalUserIDsArray = [];\n\n $userListArray = User::where('mentor_id', $user_id)->pluck('id')->toArray();\n\n $projectArray = Project::where('lead_id', $user_id)->pluck('id');\n\n $projectResourceIDs = ProjectResource::whereIn('project_id', $projectArray)->where('domain_id', '!=', 1)->distinct('user_id')->pluck('user_id')->toArray();\n\n $finalUserIDsArray = array_unique(array_merge($userListArray, $projectResourceIDs));\n\n array_push($finalUserIDsArray, $user_id);\n\n $model = User::whereIn('id', $finalUserIDsArray)->get();\n\n if ($model->first()) {\n return $this->dispatchResponse(200, \"User List\", $model);\n } else {\n return $this->dispatchResponse(200, \"No Records Found!!\", null);\n }\n }", "title": "" }, { "docid": "4147679df1413389ba0d73af6cce284e", "score": "0.43064225", "text": "public function show(User $user)\n {\n if (Auth::user()->hasPermissionTo('view users')) {\n $loans = Loan::all();\n $books = Book::all();\n return view('users.record', compact('user','loans', 'books'));\n }else{\n return redirect()->back()->with('error','Do not have permission');\n }\n }", "title": "" }, { "docid": "b28519df974bfd473976ee615d9f10a0", "score": "0.43040365", "text": "public function getRewardpointsEarn();", "title": "" }, { "docid": "4a7093129c3c9023635d3f93309cb337", "score": "0.43001077", "text": "public function index(User $user)\n {\n $auth_user = request()->get('auth_user')->first();\n\n if($auth_user['superuser'] or $auth_user['id'] == $user->id){\n return response(['data' => $user->wishlist()->get()]);\n }\n return response(['message' => 'Permission denied!', 'code' => 403]);\n }", "title": "" }, { "docid": "a2ea6922c96cbf97f8df1e652230491b", "score": "0.4288951", "text": "public function getSubmittedQuizList($user_id)\n\t{\n\t\t$this->db->select(\"quiz_submitted.*,users.name\");\n\t\t$this->db->from('quiz_submitted');\n\t\t$this->db->where('quiz_id', $user_id);\n\t\t$this->db->join('users', 'users.id = quiz_submitted.submitted_by ', 'left');\n\t\t// $this->db->where('is_submitted', '1');\n\t\t$query = $this->db->get();\n\t\t$result = $query->result_array();\n\t\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "25450d81fc0c5e5c1cdf6fb0b81c0915", "score": "0.4285736", "text": "function testMessageAndNotificationOnReward() {\n require_once(drupal_get_path('module', 'os_poker') . \"/scheduler.class.php\");\n\n $player = CUserManager::instance()->User($this->skel_user->uid);\n\n $rew = $player->Rewards();\n\n CPoker::GiveReward(\"reward1\", $player, $rew);\n\n /*\n * Go to message box and check there is a message\n */\n $this->drupalGet('poker/messagebox');\n\n $this->assertText(\n \"You just won reward \" . $rew[\"reward1\"][\"name\"],\n t('Reward message received')\n );\n\n $this->drupalGet('poker/messages/receive');\n $this->assertRaw(json_encode(array(\n 'type' => 'os_poker_imsg',\n 'body' => array(\n 'text' => '<div class=\"poker_reward_reward1\">You just won reward Newcomer : Player sits down at the table for the first time</div>',\n 'title' => 'Reward',\n )\n )), t('Ingame notification for reward found.'));\n }", "title": "" }, { "docid": "8d1b07626b12e56c1882a204684efc93", "score": "0.4282283", "text": "public function getDrivingLessonsForStudent($user){\n $string = \"SELECT users.idUser, users.name, users.surname, drivinglessons.date, drivinglessons.time, drivinglessons.done, drivinglessons.idLesson\".\n \" FROM drivinglessons\".\n \" INNER JOIN users ON drivinglessons.idStudent=users.idUser\".\n \" WHERE drivinglessons.idStudent=\".$user->idUser;\n $query = $this->db->query($string);\n return $query->result();\n }", "title": "" }, { "docid": "ee6fc64ac53d21e10b6dfe3843d5a148", "score": "0.42784345", "text": "public function getUserResponses()\n {\n return $this->hasMany(UserResponse::className(), ['quiz_id' => 'id']);\n }", "title": "" }, { "docid": "c846759b40df54a72486d9f58da852cf", "score": "0.4277228", "text": "function zg_render_user_debates_list(&$user) {\n $game = check_plain(arg(0));\n $arg2 = check_plain(arg(2));\n\n if (!property_exists($user, 'display')) {\n $user->display = new \\stdClass();\n }\n\n $user->display->icon = $game . '_clan_' . $user->party_icon . '.png';\n $user->display->clan_acronym = '';\n if (strlen($user->clan_acronym)) {\n $user->display->clan_acronym = \"($user->clan_acronym)\";\n\n $icon_path = file_directory_path() . '/images/' . $game . '_clan_' .\n strtolower($user->clan_acronym) . '.png';\n\n if (file_exists($_SERVER['DOCUMENT_ROOT'] . base_path() . $icon_path)) {\n $user->display->icon = $game . '_clan_' . strtolower($user->clan_acronym) . '.png';\n }\n }\n\n if ($user->is_clan_leader) {\n $user->display->clan_acronym .= '*';\n }\n\n $user->display->level = $user->level;\n $user->display->location = $user->location;\n\n $player_class = 'player_username player-' . drupal_strtolower($user->values);\n $last_access = REQUEST_TIME - strtotime($user->last_access);\n firep([REQUEST_TIME, strtotime($user->last_access), $last_access], 'last access times');\n if ($last_access < 300) {\n $player_class .= ' online_now';\n }\n elseif ($last_access < 900) {\n $player_class .= ' online_recently';\n }\n else {\n $player_class .= ' not_online';\n }\n\n $user->display->username = '<a class=\"' . $player_class . '\" href=\"/' . $game .\n '/user/' . $arg2 . '/id:' . $user->id . '\">' . $user->username . '</a>' .\n '<span class=\"player_clan\">' . $user->display->clan_acronym . '</span>';\n\n if (strlen($user->ep_name)) {\n $user->display->username = '<span class=\"player_seat\">' . $user->ep_name .\n '</span> ' . $user->display->username;\n }\n\n $user->display->debates_list =\n '<div class=\"user-display user-display-debates-list\">' .\n '<img class=\"clan-icon\" src=\"/sites/default/files/images/' .\n $user->display->icon . '\"/>' . $user->display->username .\n ' <span class=\"player_level\">(' . $user->display->level . '/' .\n $user->display->location . ')</span></div>';\n return $user->display->debates_list;\n}", "title": "" }, { "docid": "23fca6df5f74702d14dfa2b50c78f4d4", "score": "0.42759395", "text": "public function mfollowAction(int $user_id) {\n if(!Session::exists(USER_SESSION_NAME)) Router::redirect('');\n if($user_id == Session::get(USER_SESSION_NAME)) Router::redirect('');\n\n $result = $this->FollowModel->follow($user_id);\n if($result == \"followed\" || $result == \"unfollowed\") {\n $res = $this->UsersModel->findFirst(['conditions'=>'user_id = ?', 'bind'=>[$user_id]]);\n Router::redirect('user/'.str_replace([\" \"], [\"-\"], $res->username).'-'.$res->user_id);\n }\n }", "title": "" }, { "docid": "21f10c077cc69752e209349168d125f8", "score": "0.42758867", "text": "public function borrowedBooksAdmin(User $user)\n {\n $books = DB::table('books')\n ->join('pivots', function ($join) {\n $join->on('books.id', '=', 'pivots.book_id');\n })->get();\n return view('library.admin.borrow',compact('books'));\n }", "title": "" }, { "docid": "6d232ee34ee35822ca09652bd88ac98b", "score": "0.42720336", "text": "public function userCards(User $user, ApiClient $apiClient): Response\n {\n if (empty($user->getCardNumbers())) {\n return null;\n }\n\n $cards = [];\n $errorMessage = null;\n\n foreach ($user->getCardNumbers() as $cardNumber) {\n $response = $apiClient->request('GET', '/cards/code-'.$cardNumber);\n $errorMessage = $response[\"errorMessage\"];\n if ($response[\"errorMessage\"]) {\n break;\n }\n\n $cards[] = $response[\"res\"];\n\n }\n\n return $this->render('component/_user_cards.html.twig', [\n 'cards' => $cards,\n 'errorMessage' => $errorMessage\n ]);\n }", "title": "" }, { "docid": "1087c4b867dba934e21f133ab3abb197", "score": "0.42718393", "text": "public function getUserStatusInQuests($user)\n {\n $userId = $user instanceof User ? $user->getUserId() : $user;\n return $this->getResourceCollection(new Route(self::USER_QUESTS_STATUS_ROUTE, [\n 'userId' => $userId\n ]), 'quests', 'Wonnova\\SDK\\Model\\Quest');\n }", "title": "" }, { "docid": "aca0e8e7440358834133139979ea23e1", "score": "0.42666104", "text": "public function index( User $user )\n {\n $teams = Team::where('owner_id', $user->id )->get();\n\n return $this->showAll($teams);\n }", "title": "" }, { "docid": "99feaf32caa8ea59c4dbf828addcb562", "score": "0.42621446", "text": "public function index(User $user)\n {\n $roles = Role::all();\n $users = User::paginate(10);\n //dump($roles);\n //dump($users);\n return view('users.index',[\n 'users' => $users,\n 'roles' => $roles,\n 'flatSelectedRoles'=>$user->roles()->pluck('id')->toArray()\n ]);\n }", "title": "" }, { "docid": "ffc63f87e50d32af4aaa104d451d82b3", "score": "0.4255785", "text": "public function show(User $user)\n {\n\n $user->person->get();\n $user->roles;\n return response([\"user\"=>$user]);\n }", "title": "" }, { "docid": "cf74e51ab6a524fbc61abeb4087fcf36", "score": "0.4246635", "text": "public function actionAuctionsByUser($user)\n {\n $searchModel = new AuctionSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams, $user);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "6b8fa993582cc15d697cdf3961d92d6c", "score": "0.42451826", "text": "public function userList()\n {\n $getUser = User::with('hasDetails', 'hasOrder')->where('role_id',2)->orderBy('id', 'desc')->get();\n if(count($getUser)!=0){\n $returnData=[];\n foreach($getUser as $user){\n $details = [\n 'userInfo'=>$user->hasDetails,\n 'orderInfo'=>$user->hasOrder\n ];\n array_push($returnData,$details);\n }\n return GetResponses::returnData($returnData);\n }\n return GetResponses::noRecords();\n }", "title": "" }, { "docid": "b4bbbd0a72299c4186efb0b3727ba6a1", "score": "0.42442912", "text": "public function relations(User $user) {\n if (! Gate::any(['full-access'], $user)) {\n abort(403);\n }\n\n $employee_role = User::getRole('employee');\n $all_employees = User::where('role', $employee_role)->get();\n $manager_to = $user->employees()->pluck('employee_id')->toArray();\n return view('users.relation', [\n 'user' => $user,\n 'all_employees' => $all_employees,\n 'manager_to' => $manager_to,\n ]);\n }", "title": "" }, { "docid": "272fb6f763adf2b395fef6f174a90478", "score": "0.42404997", "text": "public function findUserTwitts(User $user)\n {\n $this->initRsm();\n $rsq = $this->_em->createNativeQuery(\"\n SELECT\n twts.twitt_tittle,\n twts.twitt_message,\n twts.twitt_time,\n twts.twitt_id,\n u.display_name,\n u.user_id\n FROM twitts as twts\n LEFT JOIN user as u ON u.user_id = twts.user_user_id\n WHERE twts.user_user_id = ?\n ORDER BY twts.twitt_time DESC\",$this->rsm);\n\n $rsq->setParameter(1, $user->getUserId());\n return $rsq->getResult();\n }", "title": "" }, { "docid": "0de4760669fb789b269a2a3ebb6c7783", "score": "0.42259225", "text": "function byUser() {\n\t\tif ( !$this->Auth->user('is_admin') ) {\n\t\t\treturn $this->redirect([\"action\" => \"mine\"]);\n\t\t}\n\n\t\t$this->loadModel(\"Users\");\n\t\t$users = $this->Users->find(\"all\")->where([\"is_active\" => 1])->order(['last' => 'ASC','first' => 'asc']);\n\n\t\t$this->set('lister', $users);\n\t\t$this->set('action', 'user');\n\t\t$this->set('title', \"View Payroll By User\");\n\n\t\t$this->render(\"lister\");\n\t}", "title": "" }, { "docid": "b593e60a4327dbeb46a7c06ff7dd720d", "score": "0.4221692", "text": "public function findFollowingTimelines(User $user)\n {\n return $user->getSubscriptions();\n }", "title": "" }, { "docid": "ec50f9bc37c18748c85c7796ca066f3c", "score": "0.4219946", "text": "public function getDrivingLessonsForTeacher($user){\n $string = \"SELECT users.idUser, users.name, users.surname, drivinglessons.date, drivinglessons.time, drivinglessons.done, drivinglessons.idLesson\".\n \" FROM drivinglessons\".\n \" INNER JOIN users ON drivinglessons.idStudent=users.idUser\".\n \" WHERE drivinglessons.idTeacher=\".$user->idUser;\n $query = $this->db->query($string);\n return $query->result();\n }", "title": "" }, { "docid": "1fc83b4886b5f668dec83e8dbf0a1fcd", "score": "0.4217291", "text": "public function recentOrders(array $relations = [], int $result = 5, int $user_id = null)\n {\n if ($user_id) {\n return $this->model\n ->with($relations)\n ->where('user_id', '=', $user_id)\n ->limit($result)\n ->get();\n }\n\n return $this->model\n ->with($relations)\n ->orderBy('created_at', 'desc')\n ->limit($result)\n ->get();\n }", "title": "" }, { "docid": "c2dde540708c82e3e07d62c2606e2291", "score": "0.4210468", "text": "public function borrowedbooks(User $user){\n $books = auth()->user()->book()->get();\n return view('library.student.studenthome', compact('books'));\n }", "title": "" }, { "docid": "c5ffd62142267ad05327b03aab435a8c", "score": "0.42055103", "text": "public function index(Recepti $recepti, User $user)\n {\n $recepti = Recepti::latest()->get();\n $random = Recepti::inRandomOrder()->first();\n $random1 = Recepti::inRandomOrder()->first();\n //dd($random);\n return view('home', compact('recepti', 'random', 'random1'));\n }", "title": "" }, { "docid": "4a2bb71892b5b58e93d206e2a7e2acec", "score": "0.41959956", "text": "public function timeline($user_id){\n $user_id = Hashids::decode($user_id)[0];\n $timelines = Timeline::where('user_id',$user_id)->orderBy('date', 'desc')->get();\n \n //dd($timelines->toArray());\n \n return view('admin.users.timeline', compact('timelines'));\n }", "title": "" }, { "docid": "6295d553ffc421a5969e22ea2024573b", "score": "0.41944772", "text": "public function getAllByUser($user_id)\n {\n return $this->db->table(self::TABLE)->eq('user_id', $user_id)->desc('date_effective')->findAll();\n }", "title": "" }, { "docid": "3c6c1a2a9402b3b16c55938edbd4ca72", "score": "0.41923484", "text": "public static function read(User $user) {\n $DB = MyPDO::getInstance();\n \n // Load the rights\n $SQL = \"SELECT `\".self::DBF_RIG_CODE.\"` FROM `\".self::DB_USERRIGHT.\"`, `\".self::DB_RIGHT.\n \"` WHERE `\".self::DBF_URI_USER.\"`=:id AND `\".self::DBF_URI_RIGHT.\"`=`\".self::DBF_RIG_ID.\"`\";\n if(($request = $DB->prepare($SQL)) && $request->execute(array(':id' => $user->getId()))) {\n while($row = $request->fetch()) {\n $user->addRight($row[self::DBF_RIG_CODE]);\n }\n return true;\n }\n else \n return false;\n }", "title": "" }, { "docid": "eb23a6bc79a8cf287049fdb162fa8237", "score": "0.41854233", "text": "public function viewList(User $user)\n {\n return $user->isAdmin();\n }", "title": "" }, { "docid": "1d5acb8c1bdf9be07fdd063f8728bab7", "score": "0.41853565", "text": "public function query(User $model)\n {\n $referrals = $model->newQuery()\n ->select(['users.id', 'users.email AS user_name', 'user_referrals.link', 'u2.email AS referral_name'])\n ->leftJoin('user_referrals', 'user_referrals.id', '=', 'users.id')\n ->leftJoin('users AS u2', 'u2.id', '=', 'user_referrals.referral_id');\n\n return $this->applyScopes($referrals);\n }", "title": "" }, { "docid": "f00386506d38179bcaea95330e54afee", "score": "0.41800758", "text": "public function generateRewards(int $count): array\n {\n $rewards = [];\n\n while ($count--) {\n $rewards[] = $this->generateReward();\n }\n\n return $rewards;\n }", "title": "" }, { "docid": "98e64bb7d38584eb7130d0f0f2d75ef4", "score": "0.41789854", "text": "function wc_talk_users_get_user_to_rate_url( $user_id = 0, $user_nicename = '' ) {\n\tglobal $wp_rewrite;\n\n\t// Bail if no user id provided\n\tif ( empty( $user_id ) ) {\n\t\treturn false;\n\t}\n\n\t// Pretty permalinks\n\tif ( $wp_rewrite->using_permalinks() ) {\n\t\t$url = $wp_rewrite->root . wp_idea_stream_user_slug() . '/%' . wp_idea_stream_user_rewrite_id() . '%/to-rate';\n\n\t\t// Get username if not passed\n\t\tif ( empty( $user_nicename ) ) {\n\t\t\t$user_nicename = wp_idea_stream_users_get_user_data( 'id', $user_id, 'user_nicename' );\n\t\t}\n\n\t\t$url = str_replace( '%' . wp_idea_stream_user_rewrite_id() . '%', $user_nicename, $url );\n\t\t$url = home_url( user_trailingslashit( $url ) );\n\n\t// Unpretty permalinks\n\t} else {\n\t\t$url = add_query_arg( array( wp_idea_stream_user_rewrite_id() => $user_id, 'is_to_rate' => '1' ), home_url( '/' ) );\n\t}\n\n\t/**\n\t * Filter the rates profile url once WC Talk has built it\n\t *\n\t * @param string $url To rate profile Url\n\t * @param int $user_id the user ID\n\t * @param string $user_nicename the username\n\t */\n\treturn apply_filters( 'wc_talk_users_get_user_to_rate_url', $url, $user_id, $user_nicename );\n}", "title": "" }, { "docid": "56c6c4adcc87c5285082ea6a9bfdd1ea", "score": "0.41786295", "text": "public function following($user)\n\t{\n\t\t$this->url = GH_USER_API.'/show/'.$user.'/following';\n\n\t\treturn $this->connect();\n\t}", "title": "" }, { "docid": "fd70426aa0b0e21e974004289454e6ae", "score": "0.41753188", "text": "public function index()\n {\n $data = VentureAwards::all();\n return view('admin.ventureawards.index', compact('data'));\n }", "title": "" }, { "docid": "b122a5b7ca05492303ec16d713e9332a", "score": "0.41746768", "text": "public function getalluser(User $user)\n {\n return DB::table('users')\n ->select('*')\n ->join('user_roles','user_roles.id','=','users.role_id')\n ->get();\n }", "title": "" }, { "docid": "60629f095e6101f5d7732d9a512eb73a", "score": "0.4171769", "text": "public function list(User $user): bool\n {\n return true;\n }", "title": "" }, { "docid": "a523d479cf2555cd6672947cb2ae5a6b", "score": "0.41657668", "text": "public function forUser(User $user)\n {\n\n // Following:\n $query = 'SELECT id, username, name, team, team2, team3, team4, team5 FROM users WHERE id IN (SELECT follow_id FROM follows WHERE user_id = ?)';\n\n $following = DB::select($query, [$user->id]);\n\n foreach($following as $key => $value) {\n $query = 'SELECT id FROM follows WHERE user_id = ? AND follow_id = ? LIMIT 1';\n $following[$key]->follow_id = DB::select($query, [$user->id, $value->id])[0]->id;\n }\n\n // Not Following:\n $query = 'SELECT id, username, name, team, team2, team3, team4, team5 FROM users WHERE id\n NOT IN (SELECT follow_id FROM follows WHERE user_id = ?)';\n $not_following = DB::select($query, [$user->id]);\n\n return [\n 'following' => $following,\n 'not_following' => $not_following\n ];\n }", "title": "" } ]
ec8302a22915d7c8d6509eac66c6354c
Tests Phalcon\Filter :: get()/set()/has() get()
[ { "docid": "0ba4d6ad9c14c82629d9a577cb158d27", "score": "0.6493134", "text": "public function filterFilterLocatorGetSetHasGet(UnitTester $I)\n {\n $I->wantToTest('Filter\\Filter - get()/set()/has() - get()');\n $services = [\n 'helloFilter' => function () {\n return new HelloService();\n },\n ];\n\n $locator = new Filter($services);\n $actual = $locator->has('helloFilter');\n $I->assertTrue($actual);\n\n $class = Closure::class;\n $actual = $locator->get('helloFilter');\n $I->assertInstanceOf($class, $actual);\n }", "title": "" } ]
[ { "docid": "edde90c70ee3a0d8c08856236cf9c3e2", "score": "0.69585896", "text": "public function filterFilterGetSetHasGetSame(UnitTester $I)\n {\n $I->wantToTest('Filter\\Filter - get()/set()/has() - get() - same');\n\n $locator = new Filter(['helloFilter' => HelloService::class]);\n $actual = $locator->has('helloFilter');\n $I->assertTrue($actual);\n\n /** @var object $service */\n $expected = 'Hello Phalcon [count: 1]';\n $actual = $locator->get('helloFilter')('Phalcon');\n $I->assertSame($expected, $actual);\n\n $expected = 'Hello Phalcon [count: 2]';\n $actual = $locator->get('helloFilter')('Phalcon');\n $I->assertSame($expected, $actual);\n }", "title": "" }, { "docid": "1c4231d539391e85cbdc524b0eac4b6a", "score": "0.6372284", "text": "public function filterFilterGetSetHasSet(UnitTester $I)\n {\n $I->wantToTest('Filter\\Filter - get()/set()/has() - set()');\n $locator = new Filter();\n\n $actual = $locator->has('helloFilter');\n $I->assertFalse($actual);\n\n $locator->set(\n 'helloFilter',\n function () {\n return new HelloService();\n }\n );\n $actual = $locator->has('helloFilter');\n $I->assertTrue($actual);\n }", "title": "" }, { "docid": "63fa4949aa2b6ea054e6cd87823fc132", "score": "0.60673434", "text": "public function filterFilterGetSetHasHas(UnitTester $I)\n {\n $I->wantToTest('Filter\\Filter - get()/set()/has() - has()');\n $services = [\n 'helloFilter' => function () {\n return new HelloService();\n },\n ];\n\n $locator = new Filter($services);\n\n $actual = $locator->has('helloFilter');\n $I->assertTrue($actual);\n }", "title": "" }, { "docid": "98cbabf34ea786b5418b0e697a2e4fe9", "score": "0.5826102", "text": "public function hasGet(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "20aa192fbef6a77d97162696f1505295", "score": "0.57645", "text": "public function getFilterValue(): string;", "title": "" }, { "docid": "cae4f5e6905eee5c4c90faa1c40d465f", "score": "0.5698933", "text": "public function testFilters() {\n\t\t$this->object->resetFilters();\n\n\t\t// Empty\n\t\t$this->assertTrue(count($this->object->getFilters()) == 1);\n\n\t\ttry {\n\t\t\t$this->object->getFilter('Test');\n\t\t\t$this->assertTrue(false);\n\t\t} catch (Exception $e) {\n\t\t\t$this->assertTrue(true);\n\t\t}\n\n\t\ttry {\n\t\t\t$this->object->getFilterByTag('example');\n\t\t\t$this->assertTrue(false);\n\t\t} catch (Exception $e) {\n\t\t\t$this->assertTrue(true);\n\t\t}\n\n\t\t$this->object->addFilter(new TestFilter());\n\n\t\t// Empty, Test\n\t\t$this->assertTrue(count($this->object->getFilters()) == 2);\n\n\t\t$this->assertInstanceOf('\\mjohnson\\decoda\\filters\\Filter', $this->object->getFilter('Test'));\n\t\t$this->assertInstanceOf('\\mjohnson\\decoda\\filters\\Filter', $this->object->getFilterByTag('example'));\n\n\t\t$this->object->resetFilters();\n\n\t\t// Empty\n\t\t$this->assertTrue(count($this->object->getFilters()) == 1);\n\t}", "title": "" }, { "docid": "29b54fb77021bc31ddd73f93159b1b1b", "score": "0.5649417", "text": "public function filterFilterGetSetHasSetClosure(UnitTester $I)\n {\n $I->wantToTest('Filter\\Filter - get()/set()/has() - set() closure');\n $locator = new Filter();\n\n $actual = $locator->has('testappend');\n $I->assertFalse($actual);\n\n $locator->set(\n 'testappend',\n function ($input) {\n return $input . 'test';\n }\n );\n\n $value = 'cheese';\n $actual = $locator->sanitize($value, 'testappend');\n\n $expected = $value . 'test';\n $I->assertSame($expected, $actual);\n }", "title": "" }, { "docid": "df367deb6b4db1461511ae7c8406c2af", "score": "0.5631793", "text": "public function testGetProperty()\n\t{\n\t\t$this->_instance->bind(array('get_test' => 'get_test_value'));\n\t\t$this->assertEquals('get_test_value', $this->_instance->get_test);\n\t}", "title": "" }, { "docid": "46f2d7a2fd1c1709a7dad2b98214cc0c", "score": "0.56186914", "text": "public function testFilter()\n {\n $studentRepository = new StudentRepository();\n $response = $studentRepository->filter([\n 'filter' => 'Filter',\n 'age_min' => null,\n 'age_max' => null,\n 'score_min' => 5,\n 'score_max' => null,\n ]);\n $this->assertEquals(Student::all(), $response);\n }", "title": "" }, { "docid": "8fe5e5eecf4c690636bacfb0a9c23659", "score": "0.56051415", "text": "public function hasFilter(): bool;", "title": "" }, { "docid": "6c4adea0ba1aa2ba23d52f97aedff3d6", "score": "0.5594873", "text": "public function getFilter();", "title": "" }, { "docid": "ce21044358b2ecb46f2a340232222da2", "score": "0.55801916", "text": "public function testCreateFilter()\n {\n }", "title": "" }, { "docid": "9700087545308147ae506e4968fb6da3", "score": "0.55720484", "text": "public function testMultipleValueFilter()\n {\n $controller = $this->getMockBuilder(JsonApiEnabledInterface::class)->disableOriginalConstructor()->getMock();\n $apiConfig = new Config(\n new ApiConfig(\"\\stdClass\", null, null, null, $this->getRequestBodyDecoderMock(), false),\n new CreateConfig($this->getModelFactoryMock()),\n new IndexConfig(),\n new UpdateConfig(),\n new DeleteConfig()\n );\n $controller->method('getJsonApiConfig')->willReturn($apiConfig);\n\n $requestDecoder = $this->getRequestDecoder($controller);\n\n // test single value\n $request = new Request(['filter' => ['myfield' => 'value12']]);\n $result = $requestDecoder->decode($request);\n $this->assertEquals([\n 'myfield' => 'value12',\n ], $result->query->get('filter'));\n\n // test simple case\n $request = new Request(['filter' => ['myfield' => 'value1,value2']]);\n $result = $requestDecoder->decode($request);\n $this->assertEquals([\n 'myfield' => [\n 'value1',\n 'value2',\n ],\n ], $result->query->get('filter'));\n }", "title": "" }, { "docid": "8a085a6e1873502ede6d2b20200ab606", "score": "0.55629045", "text": "protected function getFilterProperty()\n {\n return null;\n }", "title": "" }, { "docid": "9476767b4b76df2db5b33340fc82303f", "score": "0.55253035", "text": "public function __get(string $name)\n {\n return $this->getFilter($name);\n }", "title": "" }, { "docid": "32bb4a31a82f0fc0527f7f98a349597c", "score": "0.55245167", "text": "public function getFilter(): string;", "title": "" }, { "docid": "ec2c6c854825b5ae094986b320c735bd", "score": "0.5523659", "text": "protected function manage_get( $get ){\n\t\tparent::manage_get( $get );\n\t\t\n\t\t// si on a appuyé sur le bouton VALIDER\n\t\tif( isset( $get['submit_filtred']) ){\n\t\t\t// On met tous les GET qui nous intéresse dans notre tableau de filtre.\n\t\t\tfor( $i=0; isset( $get['filter'.$i] ) and isset( $get['select'.$i] ); $i++ ){\n\t\t\t\t$this->add_filter( $get['filter'.$i], $get['select'.$i] );\n\t\t\t\t$this->filtering = true;\n\t\t\t}\n\t\t\tif( $i == 0 )\n\t\t\t\t$this->filtering = false;\n\t\t\t\t\n\t\t\tif( $this->get_debug() )\n\t\t\tforeach( $this->filters as $key => $value ){\n\t\t\t\techo \"Value : $value<br/>\";\n\t\t\t\tforeach( $value as $key2 => $value2 ){\n\t\t\t\t\techo \"- Key : $key2 = $value2 <br/>\";\n\t\t\t\t} \n\t\t\t} \n\t\t}\n\t}", "title": "" }, { "docid": "0c2a1629d1b8085d8164c8aeafd620f4", "score": "0.5514291", "text": "public function testGetAdminFilter() {\n \n return $this->getAdminFilter();\n }", "title": "" }, { "docid": "8768d552dcb4495e2f3158ceefa305ab", "score": "0.5503265", "text": "public function hasFilter() {\n return $this->_has(1);\n }", "title": "" }, { "docid": "1aae46379157dd1f1f8727c097591449", "score": "0.5467388", "text": "public function testFilter()\n {\n $dirtyVal = '456Garbage text';\n $expectedResult = 456;\n $filterInstance = new Filter();\n $cleanVal = $filterInstance->filter($dirtyVal, FILTER::TYPE_INTEGER);\n $this->assertEquals($expectedResult, $cleanVal);\n }", "title": "" }, { "docid": "a5c969861c156c5e85eb8458156b3dff", "score": "0.5465771", "text": "public function testGetFilter()\n {\n }", "title": "" }, { "docid": "c93d90f497cfce27d26a740b82a90885", "score": "0.5449652", "text": "public function filter($value);", "title": "" }, { "docid": "30d2ef12d1e8ffe51923d59e9b1591d8", "score": "0.5431217", "text": "function get($key = '', $default = null, $filter = null)\n {\n return call_user_func_array([$this->Get, 'get'], func_get_args());\n }", "title": "" }, { "docid": "de980bdb1af3da53839bbbe032b32a09", "score": "0.5431196", "text": "protected function setFilter($name, $value)\n {\n if (isset($this->filterTypes[$name])) {\n $this->filters[$name] = $value;\n $this->_nested = null;\n return;\n }\n $key = $name;\n $elements = explode(\":\", $name, 2);\n $operator = null;\n if (count($elements) > 1) {\n list($name, $operator) = $elements;\n } else {\n $name = $elements[0];\n }\n if ($name == 'visible' || $name == 'visibility') {\n $this->useVisibility = false;\n if ($name == 'visible') {\n $this->objectFilters[] = array('visibility', $value);\n } else {\n $this->objectFilters[] = array($key, $value);\n }\n } elseif ($name == 'path' || $name == 'section' || $name == 'state' || $name == 'depth' || $name == 'class_identifier' || $name == 'class_name' || $name == 'priority' || $name == 'name') {\n $this->objectFilters[] = array($key, $value);\n } elseif ($name == 'published' || $name == 'modified' || $name == 'modified_subnode') {\n if ($value instanceof \\DateTime) {\n $value = $value->getTimestamp();\n }\n $this->objectFilters[] = array($key, $value);\n } elseif ($name == 'node_id') {\n if (is_object($value)) {\n if ($value instanceof \\eZContentObjectTreeNode) {\n $value = $value->attribute('node_id');\n } elseif ($value instanceof \\eZContentObject) {\n $value = $value->attribute('main_node_id');\n }\n }\n $this->objectFilters[] = array($key, $value);\n } elseif ($name == 'contentobject_id') {\n if (is_object($value)) {\n if ($value instanceof \\eZContentObjectTreeNode) {\n $value = $value->attribute('contentobject_id');\n } elseif ($value instanceof \\eZContentObject) {\n $value = $value->attribute('id');\n }\n }\n $this->objectFilters[] = array($key, $value);\n } elseif ($name == 'path_element') {\n if (is_object($value)) {\n if ($value instanceof \\eZContentObjectTreeNode) {\n $value = $value->attribute('contentobject_id');\n } elseif ($value instanceof \\eZContentObject) {\n $value = $value->attribute('id');\n }\n }\n $this->objectFilters[] = array($key, $value);\n } elseif ($name == 'class_identifier') {\n if (is_object($value)) {\n if ($value instanceof \\eZContentClass) {\n $value = $value->attribute('identifier');\n } elseif ($value instanceof \\eZContentObjectTreeNode || $value instanceof \\eZContentObject) {\n $value = $value->attribute('class_identifier');\n }\n }\n $this->objectFilters[] = array($key, $value);\n } elseif ($name == 'class_name') {\n if (is_object($value)) {\n if ($value instanceof \\eZContentClass) {\n $value = $value->attribute('name');\n } elseif ($value instanceof \\eZContentObjectTreeNode || $value instanceof \\eZContentObject) {\n $value = $value->attribute('class_name');\n }\n }\n $this->objectFilters[] = array($key, $value);\n } else {\n // Detect class/attribute strings and use them as filters\n // If not they are placed as object filters\n if (strpos($name, \"/\") !== false) {\n $this->objectFilters[] = array($key, $value);\n } else {\n $this->filters[$name] = $value;\n }\n }\n $this->_nested = null;\n }", "title": "" }, { "docid": "4fade3e9c2f070cc1b6d8c1e3c31e34a", "score": "0.54265344", "text": "public function is_get() {\n return $this->method == 'get';\n }", "title": "" }, { "docid": "4fe00cc131281c00e9729f28a90052f3", "score": "0.5374627", "text": "public function getFilter()\n {\n return $this->value;\n }", "title": "" }, { "docid": "2f63867d624870dd2dadd407cbf760ac", "score": "0.5369966", "text": "public function testFiltering()\n {\n $this->getManager();\n\n $result = $this->getFilerManger()->execute(new Request());\n\n $actual = [];\n foreach ($result->getResult() as $doc) {\n $actual[] = $doc->getId();\n }\n\n $this->assertCount(1, $actual);\n }", "title": "" }, { "docid": "070fc6433eda7e5a1c5b17890f263645", "score": "0.53495675", "text": "public function __get($value);", "title": "" }, { "docid": "9d790b30a0d08ab5e23ef124a3b75719", "score": "0.53328043", "text": "public function get($name)\n {\n return $this->filters[$name];\n }", "title": "" }, { "docid": "ff3cc9018111b13406a067cce175790a", "score": "0.5332791", "text": "public function testGetFilters()\n {\n }", "title": "" }, { "docid": "e98e7e21d6509377bef40c1798fbf9e5", "score": "0.531659", "text": "public function testGetFilters()\n {\n $filters = $this->extension->getFilters();\n $this->assertEquals(count($filters), 1);\n $filter = $filters[0];\n $this->assertInstanceOf('\\Twig_SimpleFilter', $filter);\n $this->assertEquals($filter->getName(), 'time_ago');\n }", "title": "" }, { "docid": "a5c6ca5fd09187ba30eb60d635988fd5", "score": "0.5297638", "text": "private function get_filter_by_attributes_query_vars()\n {\n }", "title": "" }, { "docid": "a5c6ca5fd09187ba30eb60d635988fd5", "score": "0.5297638", "text": "private function get_filter_by_attributes_query_vars()\n {\n }", "title": "" }, { "docid": "26345d5d1862bffdc9683d32d2657b27", "score": "0.52854854", "text": "public function prefilter()\n {\n // TODO:logger\n }", "title": "" }, { "docid": "df471196ac6e73b4ad7932d730dae9c8", "score": "0.52794856", "text": "abstract protected function getFilters();", "title": "" }, { "docid": "5a53e3af1ec523e3414d030c3e07d93c", "score": "0.5274791", "text": "public function test_get_with_save()\n {\n $this->settings->get('test.x', 22);\n $this->assertEquals(null, $this->settings->get('test'));\n\n $this->settings->get('general.on', false, true);\n $this->assertEquals(['on' => false], $this->settings->get('general'));\n }", "title": "" }, { "docid": "ffb89fa1c58c742c5a94ad3e4199ab88", "score": "0.52734065", "text": "function via_get() {\n return $this->via('get');\n }", "title": "" }, { "docid": "6cfb1132109494d6e5b89635c2bf6251", "score": "0.5271921", "text": "public function filterFilterCustomHas(UnitTester $I)\n {\n $I->wantToTest('Filter\\Filter - custom has()');\n\n $services = [\n 'ipv4' => IPv4::class,\n ];\n\n $locator = new Filter($services);\n\n $I->assertTrue(\n $locator->has('ipv4')\n );\n }", "title": "" }, { "docid": "0ae71c2d12e488cf834098a1e7f319ea", "score": "0.5270188", "text": "public function getFilters(){ }", "title": "" }, { "docid": "27b3db3e18d465059bf9ffe40123dcbd", "score": "0.5236879", "text": "protected function setWhereFilters() : ApiGetService\n {\n if(count($this->where_filters) === 0){\n return $this;\n }\n\n // Traverse prepared filters\n foreach($this->where_filters as $column => $value){\n // {column}:{operator} = {value}\n $column_operator = preg_split('/[:\\s]+/', $column);\n\n // Split value by \" , \"\n $splited_value = preg_split('/[,]+/', $value);\n\n //... and if {value} is not scalar\n if(count($splited_value) > 1){\n // ... we know that we will have SQL IN operator in WHERE\n $in_operator = true;\n }\n // ... else we are good with simple \" = \"\n else{\n $in_operator = false;\n }\n\n // Depending on $in_operator, we know if we are using IN or =\n $this->builder\n ->when($in_operator ,\n // If it is true, we are using IN\n function ($query) use($column_operator, $splited_value){\n if(isset($column_operator[1]) && $column_operator[1] == \"eq\"){\n\n return $query->whereIn($column_operator[0], $splited_value);\n\n }elseif(isset($column_operator[1]) && $column_operator[1] == \"ne\"){\n\n return $query->whereNotIn($column_operator[0], $splited_value);\n\n }else{\n\n return $query->whereIn($column_operator[0], $splited_value);\n }\n },\n // Else, we are using scalar operators...\n function ($query) use($column_operator, $splited_value) {\n\n return $query->where($column_operator[0],\n ((isset($column_operator[1]) && $column_operator[1] != \"\") ? $this->api_operators[$column_operator[1]] : \"=\"),\n $splited_value[0]);\n });\n }\n\n return $this;\n }", "title": "" }, { "docid": "0f357d8dba600004d3010a71af4037e1", "score": "0.52287614", "text": "public function getFilters() {}", "title": "" }, { "docid": "983fdb6d9c6e6af5b63edd88b46e4cf5", "score": "0.52169734", "text": "protected function getParam($key, $filter = TRUE){\r\n\t\t$method = strtolower($this->method);\r\n\t\tif(isset($this->request->$method[$key])){\r\n\t\t\t$value = $this->request->$method[$key];\r\n\t\t}else{\r\n\t\t\t$value = NULL;\r\n\t\t}\r\n\r\n\t\tif($filter){\r\n\t\t\t$value = Security::filter($value);\r\n\t\t}\r\n\r\n\t\treturn $value;\r\n\t}", "title": "" }, { "docid": "7df8121f63b0894fd2e42fdd53dd136b", "score": "0.52087635", "text": "public function getBy($key, $value);", "title": "" }, { "docid": "0960f908748d134355c7f78897cfa249", "score": "0.5203008", "text": "function wp_get_duotone_filter_property($preset)\n {\n }", "title": "" }, { "docid": "c263d9bf80480f08da3c0d5ff1b98b2c", "score": "0.5186692", "text": "public function testSetFiltersByOption()\n {\n $mockFilter = $this->getMock('Formagic_Filter_Interface');\n $formagic = new Formagic(array(\n 'filters' => $mockFilter\n ));\n $formagic->getItemHolder()->hasFilter('Abstract');\n }", "title": "" }, { "docid": "7caa195517194413ec7b351f0e3cc98e", "score": "0.5185948", "text": "abstract public function getFilters();", "title": "" }, { "docid": "f551483ba5cf04220a794019755f26bc", "score": "0.5181973", "text": "public function isGet(): bool \r\n {\r\n return $this -> method() === 'GET' ? true : false;\r\n }", "title": "" }, { "docid": "f9672b492de4ee920fbd96f092b9d1c4", "score": "0.51778203", "text": "abstract public function get() ;", "title": "" }, { "docid": "79175a143893415ca33705c02db9303b", "score": "0.51773757", "text": "public function filter() {\n\n }", "title": "" }, { "docid": "002780e18216e081e6dfc4ff3b816f73", "score": "0.5172869", "text": "public function isFilterQuery() {\r\n if (isset($_GET['subject']) && $_GET['subject'] !== '' || isset($_GET['resource_type']) && $_GET['resource_type'] !== '' || isset($_GET['letter']) && $_GET['letter'] !== '' || isset($_GET['status']) && $_GET['status'] !== '' ) {\r\n\r\n foreach ($_GET as $key => $value) {\r\n if ($this->doesSupport('filter')) {\r\n $value = filter_var(urlencode($value), FILTER_SANITIZE_STRING); // secure variables\r\n } else {\r\n $value = urlencode($value);\r\n }\r\n switch($key) { // make them available to the entire class\r\n case 'q':\r\n $this->q = $value;\r\n break;\r\n case 'db_q':\r\n $this->q = $value;\r\n break;\r\n case 'subject':\r\n if ( strpos ( urldecode($value), '.') !== false) {\r\n $values = explode('.', $value);\r\n $this->subject = $values;\r\n } else {\r\n $this->subject = ucfirst($value);\r\n } \r\n break;\r\n case 'resource_type':\r\n if ( strpos ( urldecode($value), '.') !== false) {\r\n $values = explode('.', $value);\r\n $this->resource_type = $values;\r\n } else {\r\n $this->resource_type = ucfirst($value);\r\n } \r\n break;\r\n case 'letter':\r\n if ( strpos ( urldecode($value), '.') !== false) {\r\n $values = explode('.', $value);\r\n $this->letter = $values;\r\n } else {\r\n $this->letter = ucfirst($value);\r\n } \r\n break;\r\n case 'status':\r\n if ( strpos ( urldecode($value), '.') !== false) {\r\n $values = explode('.', $value);\r\n $this->status = $values;\r\n } else {\r\n $this->status = ucfirst($value);\r\n }\r\n break;\r\n case 'num':\r\n $this->num = $value;\r\n break;\r\n case 'numgm':\r\n $this->numgm = $value;\r\n break;\r\n case 'format':\r\n $this->format = $value;\r\n break;\r\n }\r\n }\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "29d6cf95a2b76a04c0532eb47e76e93e", "score": "0.5171693", "text": "function getFilter()\n\t{\n\t\treturn $this->_filter;\n\t}", "title": "" }, { "docid": "1bdda992d90b1a56589504806038f1ca", "score": "0.5162197", "text": "public function testGetReplenishmentByFilter()\n {\n }", "title": "" }, { "docid": "56385b7123b618628fb96f96a4a4668e", "score": "0.5159748", "text": "public function parseUrlUsingFilterEnabled()\n {\n $query = new ControllerQuery($this->enabledFilters, '/test');\n $url = $query->setFilters(['name' => 'Batman', 'alias' => 'Fatherless'])\n ->build();\n\n $this->assertEquals(\n 'http://www.comicvine.com/api/test/?limit=100&offset=0&filter=name:Batman,alias:Fatherless',\n $url\n );\n }", "title": "" }, { "docid": "d57ac3dd761dd7d8898bd929fed8e499", "score": "0.5157383", "text": "public function testGetterAndSetter()\n {\n\n $this->checkAttribute('Name', 'name1');\n $this->checkManyToOne('Country', 'Country', 'Countries');\n $this->checkManyToOne('Competition');\n\n }", "title": "" }, { "docid": "db4a7bd82de94d30fcf73feef115f18f", "score": "0.51551324", "text": "public function filter() {\r\n\t\t$this->resource->filter();\r\n\t}", "title": "" }, { "docid": "f572320c83ffa9db88f3077838bd2b79", "score": "0.5154994", "text": "public function filter(&$fetcher, $value){\n\t\treturn false;\t\n\t}", "title": "" }, { "docid": "8d06d83bb779fd877ba2314161479d51", "score": "0.5148496", "text": "public function testIndexCanFilterData(): void\n {\n $model = new ModelTest();\n $model->name = 'Test 1';\n $model->save();\n\n $model = new ModelTest();\n $model->name = 'Test 2';\n $model->save();\n\n /** @var TestResponse $response1 */\n $response1 = $this->get(\n route('model-tests.index') . '?' . http_build_query(\n [\n 'name' => 'Test 1'\n ]\n ),\n [\n 'Accept' => 'application/json'\n ]\n );\n\n /** @var JsonResponse $response */\n $response = $response1->baseResponse;\n $data = $response->getData();\n\n $this->responseIsJson($response1);\n\n $this->assertEquals(1, $data->total);\n $this->assertEquals(1, count($data->data));\n }", "title": "" }, { "docid": "de5db0ca01ce2a41d628aaa474d0a1f4", "score": "0.51477027", "text": "public function __get( $value );", "title": "" }, { "docid": "46f748c24fa73bdb4c4be1e01694e613", "score": "0.51458335", "text": "public function isFilteredByAttribute()\n {\n return $this->getConfigFlag(self::FILTER_BY_ATTRIBUTE);\n }", "title": "" }, { "docid": "f0470e890db6fdd0309115f58714a6c3", "score": "0.5130829", "text": "public function filterSet()\n {\n return (! empty($_GET['taken']) || ! empty($_GET['location']) || ! empty($_GET['activity']) || ! empty($_GET['altitude']) || ! empty($_GET['country']) || ! empty($_GET['resort']) || ! empty($_GET['month']) || ! empty($_GET['year']) || ! empty($_GET['tag']));\n }", "title": "" }, { "docid": "2b6cecf71c39c51802b38c46b1f5c9d8", "score": "0.51301265", "text": "public function get_filter()\n {\n return $this->filter;\n }", "title": "" }, { "docid": "399f2376485a18a8446b2bdb90c5187a", "score": "0.5129757", "text": "public function testGet(): void\n {\n self::assertSame($this->value['foo'], $this->class->get('foo', false));\n }", "title": "" }, { "docid": "b19068e28497f5c6e52fa0c91137b3fe", "score": "0.5121834", "text": "public function getFilters(): FilterCollection;", "title": "" }, { "docid": "e61a89f1f788d5555a5552b7f2b5e539", "score": "0.5121274", "text": "public function getFilters(): array;", "title": "" }, { "docid": "2be4d370ec6359f46a081e8183ec0943", "score": "0.5117462", "text": "public function testPersistanceGet() {\n\t\t// the values are still retrievable.\n\t\t$this->assertEquals( 'remember', $this->cache->get( 'keep' ) );\n\t}", "title": "" }, { "docid": "dbeb2f72dc59e2b366f6f023adc2a5bd", "score": "0.5115091", "text": "function getFilter() {\n\t\treturn $this->_filter;\n\t}", "title": "" }, { "docid": "b6da213e3cf23e16b06e57cd0c8650c9", "score": "0.5114799", "text": "function filter($request){\r\n global $context;\r\n $i= new $this->model;\r\n\r\n if(!$this->authRequired){\r\n $i->supperUser();\r\n }\r\n\r\n foreach($request->get as $key=>$value){\r\n if($i->field_exists($key)){\r\n $i->where($key,$value);\r\n }\r\n }\r\n\r\n $data=$i->get();\r\n\r\n if($request->UseApi() ){\r\n json_success(\"Success\",$data);//where(['id','<','50'])->orderBy('id','desc')->limit(2,1)->\r\n }else{\r\n return $this->view(compact('data'));\r\n }\r\n }", "title": "" }, { "docid": "5019c0b5f067f4e9bda12363a5b610bd", "score": "0.5108409", "text": "public function testSearchForProductByAttribute()\n {\n // full results flag returns the full data set for the product\n }", "title": "" }, { "docid": "10bc874a84367e239a23c5599cab427b", "score": "0.5100857", "text": "public function testGetSecurityExclusionUsingGet()\n {\n }", "title": "" }, { "docid": "a5bd5dc944d2be362255310b66f1ceef", "score": "0.5093844", "text": "public function isFilterable(): bool;", "title": "" }, { "docid": "de457302aa73fa963019a2c45ac28569", "score": "0.5091371", "text": "public function getParam($param, $filters=null);", "title": "" }, { "docid": "bf2ffa47cec3e1596e7812d2bec77f58", "score": "0.5085877", "text": "public function testArrayAccessGet(): void\n {\n $validator = new Validator();\n $validator\n ->add('email', 'alpha', ['rule' => 'alphanumeric'])\n ->add('title', 'cool', ['rule' => 'isCool', 'provider' => 'thing']);\n $this->assertSame($validator['email'], $validator->field('email'));\n $this->assertSame($validator['title'], $validator->field('title'));\n }", "title": "" }, { "docid": "a3674e159f690abeac7892be7ed9c12c", "score": "0.50842804", "text": "public function filtersExist();", "title": "" }, { "docid": "18d24562e1fa0f02615b28a0332fa99e", "score": "0.5083519", "text": "public function has_filters()\n {\n }", "title": "" }, { "docid": "81a206a275c179c6da5945d753f7f439", "score": "0.5079471", "text": "public function testCanGet()\n {\n self::$apcu = [];\n $this->sut->add('myKey', 'myValue');\n $this->assertSame('myValue', $this->sut->get('myKey'));\n }", "title": "" }, { "docid": "dbaa267467c33cb267e29e37ac7efa50", "score": "0.50768965", "text": "public function testFilterBoolean()\n {\n $dirtyVal = 'This will be casted to true';\n $expectedResult = true;\n $filterInstance = new Filter();\n $cleanVal = $filterInstance->filterBool($dirtyVal);\n $this->assertEquals($expectedResult, $cleanVal);\n $dirtyFalseVal = 0; //Will be casted to false\n $expectedFalseResult = false;\n $cleanFalse = $filterInstance->filterBool($dirtyFalseVal);\n $this->assertEquals($expectedFalseResult, $cleanFalse);\n }", "title": "" }, { "docid": "d98679fc299a6be1cf40d9924dde1be2", "score": "0.50591403", "text": "function testPersonSearchByBoolean() {\n\t\t$this->setUrl('/search/advanced?r=per&q[per_can_call][value]=FALSE');\n\t\t$this->app->go();\n\t\t$this->assertPattern('/id=\"qb_per_can_call\"/', $this->view->output);\n\t\t$this->assertPattern('/<th>Can Call<\\/th>/', $this->view->output);\n\t\t$this->assertPattern('/<td><img src=\"\\/graphics\\/tactile\\/false.png\" alt=\"f\" \\/><\\/td>/', $this->view->output);\n\t\t$collection = $this->view->get('collection');\n\t\t$this->assertIsA($collection, 'Omelette_PersonCollection');\n\t\t$names = $collection->pluck('name');\n\t\t$this->assertEqual($names, array('Greg Jones', 'Simon Kamina'));\n\t}", "title": "" }, { "docid": "489de54c4cb0bd2113cd4cbd003bbf56", "score": "0.5054796", "text": "public function get($name, $default = null, $filter = 'string')\n\t{\n\t\treturn parent::get($name, $default, $filter);\n\t}", "title": "" }, { "docid": "2f0802db02c9af6172848c3927533859", "score": "0.5054316", "text": "private function get_filter_by_attributes_query()\n {\n }", "title": "" }, { "docid": "2f0802db02c9af6172848c3927533859", "score": "0.50537694", "text": "private function get_filter_by_attributes_query()\n {\n }", "title": "" }, { "docid": "e0949f1efa183893cd1803246a0d75d7", "score": "0.505289", "text": "public function testSearchUsingGET()\n {\n\n }", "title": "" }, { "docid": "6e4a310efc9d180148ce7156bada33ac", "score": "0.5047887", "text": "public function get($key = null, $filter = true)\n {\n return $this->param($key, $filter, INPUT_GET);\n }", "title": "" }, { "docid": "86049785bf208b3e19fccc0c1a832e3a", "score": "0.5044391", "text": "public function filters()\n {\n return array(\n 'value' => array(\n array(array($this, 'check_for_array_or_object')),\n )\n );\n }", "title": "" }, { "docid": "4b75158d64c2fb82b9ade5e7899ba8f0", "score": "0.50389767", "text": "public function hasParam(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "4b75158d64c2fb82b9ade5e7899ba8f0", "score": "0.50389767", "text": "public function hasParam(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "4b75158d64c2fb82b9ade5e7899ba8f0", "score": "0.50389767", "text": "public function hasParam(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "4b75158d64c2fb82b9ade5e7899ba8f0", "score": "0.50389767", "text": "public function hasParam(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "4b75158d64c2fb82b9ade5e7899ba8f0", "score": "0.50389767", "text": "public function hasParam(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "4b75158d64c2fb82b9ade5e7899ba8f0", "score": "0.50389767", "text": "public function hasParam(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "4b75158d64c2fb82b9ade5e7899ba8f0", "score": "0.50389767", "text": "public function hasParam(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "4b75158d64c2fb82b9ade5e7899ba8f0", "score": "0.50389767", "text": "public function hasParam(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "34a11e6283ccb2a154572f52702befff", "score": "0.50385207", "text": "public function testSearchFilterDatabase()\n {\n $this->post($this->loginRoute(), [\n 'email' => 'admin@shuttlebd.com',\n 'password' => 'secret'\n ]);\n $response = $this->post($this->filterRoute(), [\n 'pickuppoint'=>'Mirpur',\n 'droppoint'=>'Mirpur'\n ]);\n $response->content(['attributes']);\n $this->assertIsObject($response);\n\n\n\n\n\n\n }", "title": "" }, { "docid": "48bc6b1a65df7ecdafd36749bf47b983", "score": "0.50356025", "text": "function get();", "title": "" }, { "docid": "bec8f6c9cb4789d63e60e1d325f38545", "score": "0.50324476", "text": "public function testGetSuppliersUsingGET()\n {\n }", "title": "" }, { "docid": "4380ec7ef8b26fa982037d331223ac50", "score": "0.5030983", "text": "function getFilters();", "title": "" }, { "docid": "2178e3b7674111ce411e1d09f7bef489", "score": "0.5019685", "text": "abstract protected function logicFilter($key, $valueK, $op, $v);", "title": "" }, { "docid": "6029038ca1600f4dc6d0b75316787ec2", "score": "0.5004518", "text": "public function setFilter($val)\n {\n $this->_propDict[\"filter\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "89ed24928dbcee2a114e997a7039439e", "score": "0.50039464", "text": "public function testGetSecurityExclusionAllUsingGet()\n {\n }", "title": "" }, { "docid": "6957ea7ff8e5dd2865352d9a2d081b5b", "score": "0.5002039", "text": "public function testRemoveOnNotExistingKeyWithValues()\n {\n $this->filter->value('test')->remove();\n\n $result = $this->filter->filter(['test2' => 'test']);\n\n $this->assertEquals(['test2' => 'test'], $result);\n }", "title": "" }, { "docid": "9b9039678886d5d768f4693f2ba5fd23", "score": "0.50019664", "text": "public function get_filtering()\r\n\t{\r\n\t\treturn $this->filtering->get_value();\r\n\t}", "title": "" } ]
e965bd09944c4af064f2905605dc89a3
Validate and return a value without affecting the dataset
[ { "docid": "6ab02aab04233ccc5768d7c9791a08f3", "score": "0.0", "text": "public function cast(string $name, $value) {\n\n\t\t\tif (!isset($this->validators[$name])) return null;\n\n\t\t\ttry {\n\n\t\t\t\tif (null !== ($value = $this->validators[$name]($value))) return $value;\n\n\t\t\t\telse return $this->data[$name];\n\t\t\t}\n\n\t\t\tcatch (TypeError $e) { return $this->data[$name]; }\n\t\t}", "title": "" } ]
[ { "docid": "52b4cca01794892e3ec9a5bad7272a12", "score": "0.69722897", "text": "public function validateData();", "title": "" }, { "docid": "afeb31ecce99e773e5831f156d881b07", "score": "0.6944224", "text": "protected function validateValue() {\n return;\n }", "title": "" }, { "docid": "e7943664a30bc534f054211095d2f0d6", "score": "0.6885728", "text": "public function isValueValid();", "title": "" }, { "docid": "439dc3dd9757d889d405f21c658b6ffb", "score": "0.67179286", "text": "public function validateDataValue(){\n $tf = TestFields::model()->findByPk($this->field_id);\n $valid_values = explode('/', $tf->format);\n //print \"possible data values: \"; print_r($valid_values);\n if ($tf->format !='Text' && !in_array($this->data, $valid_values)){\n $msg = '\"'.$this->data.'\" is not one the valid formats ('.$tf->format.')';\n //print \"error msg = $msg\";\n\n $this->addError('data', $msg);\n }\n $in_value = trim($this->data);\n if (strlen($in_value) == 0){\n $this->addError('data', 'data are not allowed to be blank');\n }\n }", "title": "" }, { "docid": "c5e4fcac7632bb5a8429e62ef7720153", "score": "0.6679646", "text": "public function shouldReportValue();", "title": "" }, { "docid": "b771f271bc1308379cd64fe3e1c1eeb6", "score": "0.65765566", "text": "#[ReturnTypeWillChange]\n public function valid()\n {\n return $this->data->valid();\n }", "title": "" }, { "docid": "545129413b3c272085b55afb20a29cf8", "score": "0.6467885", "text": "public function getValid();", "title": "" }, { "docid": "7b4544533a7c63dacb87ca4bf17105b0", "score": "0.646071", "text": "public static function SetterValidData() {\n\t}", "title": "" }, { "docid": "71663a613cbea962f1a6030fc806fc8e", "score": "0.6315058", "text": "function trj_golem_validate_get($trj_golem_data) {\n\t\t// Nothing to validate\n\t\treturn $trj_golem_data;\n\t}", "title": "" }, { "docid": "441e476fae63b65a6c0c3e754610a299", "score": "0.6306854", "text": "private function valdata($data){\n\t if(isset($data)){\t\n\t $datatrans=explode(\"-\",$data);\n\t $valida = checkdate($datatrans[1],$datatrans[2],$datatrans[0]);\n\t } else { \n\t $valida=false; \t\n\t }\n\t return $valida;\n\t}", "title": "" }, { "docid": "de4fc69c9e9788a6c9e6dff5a30ff469", "score": "0.6297652", "text": "public function getNotValid();", "title": "" }, { "docid": "22c9195d3ec2fc011344acf303366f4d", "score": "0.62799644", "text": "protected function isValueValid(): bool\n {\n return false;\n }", "title": "" }, { "docid": "574c4892a97a0c203b711b65edcc7806", "score": "0.6236822", "text": "function can_only_have_one_value();", "title": "" }, { "docid": "98b5a12183a209923a6bd7187b9e1c7e", "score": "0.6229888", "text": "public function validate()\n\t{\n\t\t$data = (array) $this->data;\n\t\tforeach ($this->rules as $key => $ruleSet) {\n\t\t\tif (isset($ruleSet['isNullable']) && !isset($data[$key])) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$value = isset($data[$key]) ? $data[$key] : '';\n\t\t\t$dataValue = new DataValue(\n\t\t\t\t$value,\n\t\t\t\t$this->getLabel($key),\n\t\t\t\t$this->messages\n\t\t\t);\n\t\t\t$dataValue->isRequired();\n\t\t\tif (!$dataValue->validate()) {\n\t\t\t\t$this->addErrors($dataValue->getErrors());\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tforeach ($ruleSet as $rule => $param) {\n\t\t\t\tif (!\\in_array($rule, $dataValue->methods)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$params = [$param];\n\t\t\t\tif (\\is_string($param) && $param[0] === '@') {\n\t\t\t\t\t$subKey = \\ltrim($param, '@');\n\t\t\t\t\t$params = [$data[$subKey], $this->getLabel($subKey)];\n\t\t\t\t}\n\t\t\t\t\\call_user_func_array([$dataValue, $rule], $params);\n\t\t\t}\n\t\t\tif (!$dataValue->validate()) {\n\t\t\t\t$this->addErrors($dataValue->getErrors());\n\t\t\t}\n\t\t}\n\t\treturn empty($this->errors);\n\t}", "title": "" }, { "docid": "d6b420ac80d29624dd459ff3159946de", "score": "0.6161877", "text": "function validate( $value );", "title": "" }, { "docid": "e22433f7dd0f1c296950ac68e5a1bbb5", "score": "0.6145834", "text": "function IsValid($val){}", "title": "" }, { "docid": "e58a0ce8ba3639f9c5b9d9d06718cd12", "score": "0.6135752", "text": "function is_restricted_to_one_value();", "title": "" }, { "docid": "f3885e19bc201e81bc93a700554e850e", "score": "0.612027", "text": "function validate_data($key,$value){\n $keysInt = [\n 'id',\n 'status',\n 'type',\n 'tipo',\n 'type_payment'\n ];\n if (in_array($key,$keysInt)){\n return empty($value) ? 0 : intval($value);\n }\n $keysFloat = [\n 'value',\n 'valor',\n 'price',\n 'preco'\n ];\n if (in_array($key,$keysFloat)){\n return empty($value) ? 0 : floatval($value);\n }\n return empty($value) ? null : $value;\n}", "title": "" }, { "docid": "55bfb3fa5d0a85ec6fd39dc33b4d121a", "score": "0.60832876", "text": "public function getValueData();", "title": "" }, { "docid": "e51568f059ea407a1b4bd71bce2af601", "score": "0.60787576", "text": "public abstract function validate($data);", "title": "" }, { "docid": "83e9c752d0d320480a7ca703494fd357", "score": "0.6045652", "text": "public function validate($value);", "title": "" }, { "docid": "83e9c752d0d320480a7ca703494fd357", "score": "0.6045652", "text": "public function validate($value);", "title": "" }, { "docid": "cfe7a2d287d8bab1cf3cc4ee54b36e8c", "score": "0.60176694", "text": "function getValue(&$record) { return(false); }", "title": "" }, { "docid": "dcbc2d97626b10ba9b583320abe0a748", "score": "0.5992757", "text": "public function getValue(): mixed;", "title": "" }, { "docid": "dcbc2d97626b10ba9b583320abe0a748", "score": "0.5992757", "text": "public function getValue(): mixed;", "title": "" }, { "docid": "6ca62765fdc755fb23b130901b72fea5", "score": "0.599251", "text": "public function valueCheck() {\n $varRegex = '/^[G,L,T]F@[-,$-&,*,_,a-zA-Z][-,$-&,*,_,a-zA-Z0-9]*$/';\n\n if ( preg_match( '/^int@\\S*/', $this->wordToControl, $match ) == 0 ) {\n if ( preg_match( '/^bool@(true|false)/', $this->wordToControl, $match ) == 0 ) {\n if ( preg_match( '/^string@(?!.*\\\\\\\\[^[0-9]])(?:\\p{L}|\\d|[[:print:]])*(?<!(\\\\\\\\[0-9]{0})|(\\\\\\\\[0-9]{1})|(\\\\\\\\[0-9]{2})|(\\\\\\\\))$/u', $this->wordToControl, $match ) == 0 ) {\n return PARSE_ERR;\n } \n }\n }\n }", "title": "" }, { "docid": "b1e5f332bef62a61c1756797ea0b2c3e", "score": "0.59833944", "text": "function is_valid_val($data, $index, $mandatory = false, $feild_name = '') {\r\n if (is_array($data) && isset($data [$index]) && $data [$index] !== '')\r\n return $data [$index];\r\n else {\r\n if (!is_array($data) && $data !== '') // If normal valid variable, return its value\r\n return $data;\r\n\r\n if ($mandatory) { // If mandatory, print mandatory message and stop execution\r\n if ($feild_name == '') {\r\n $feild_name = ucwords(str_replace('_', ' ', $index));\r\n }\r\n echo get_json(sprintf(lang('field_is_mandatory'), $feild_name), 'Error', false);\r\n exit();\r\n } else\r\n return;\r\n }\r\n}", "title": "" }, { "docid": "822489c23c1d8d899af0d6bc4f125011", "score": "0.59631896", "text": "abstract protected function evaluateIsValid();", "title": "" }, { "docid": "e791a58fb14a6ebae90deef358e9e31f", "score": "0.59498227", "text": "function validate($value)\r\n {\r\n \treturn $this->negate xor empty($value);\r\n }", "title": "" }, { "docid": "adc4c21fd374c6e4ac0baa9afe71926e", "score": "0.5915135", "text": "public function validate($data): Either;", "title": "" }, { "docid": "8fe9e5e399d50e1e5d76d1702f7f9050", "score": "0.58908564", "text": "abstract public function getValue();", "title": "" }, { "docid": "0efd62aa7717cff7c82f3995b5fb18ae", "score": "0.5883138", "text": "abstract public function validate();", "title": "" }, { "docid": "d62595640ae2febfa09f18dac1cb6887", "score": "0.5855733", "text": "public function valid()\n\t{\n\t\treturn $this->Data->valid();\n\t}", "title": "" }, { "docid": "0ebd546755f01cf3595add39dcd5f95e", "score": "0.58514017", "text": "public function check_field_value($data){\n\n\t\t$this->db->where('company_id', $company);\n\t\t$this->db->where('udf_label', $value);\n\t\t$query = $this->db->get('employee_udf_column');\n\n $count = $query->num_rows();\n echo $count;\n if ($count === 0) {\n \treturn true;\n }\n else{\n \treturn false;\n }\n\t}", "title": "" }, { "docid": "3dd8e972cc22a32ac010d6c69cb1f3a9", "score": "0.58432007", "text": "public function value(): mixed\n {\n if ($this->status == self::ERROR) {\n throw new InvalidDataException(...$this->errors);\n }\n\n if ($this->value instanceof Pure) {\n return ($this->value)();\n }\n\n return $this->value;\n }", "title": "" }, { "docid": "c5857d1aa2539f2eb1c4304b0272c3ab", "score": "0.5834977", "text": "public function hasValidValue(): bool\n {\n $validator = new DataValidator();\n\n return $validator->isValid($this);\n }", "title": "" }, { "docid": "5299af517ce4082b779d25fdd1daf8d4", "score": "0.58325255", "text": "abstract protected function validate();", "title": "" }, { "docid": "20c8c99c742904005444a2b641c1dbeb", "score": "0.58114725", "text": "public function validate($value) {\r\n\t\t$ret = parent::validate($value);\r\n\t\tif ($ret->is_ok() && !is_null($value)) {\r\n\t\t\tif (!in_array($value, $this->allowed)) {\r\n\t\t\t\t$ret->append(tr(\r\n\t\t\t\t\t'Value %val not allowed on %field',\r\n\t\t\t\t\t'core',\r\n\t\t\t\t\tarray(\r\n\t\t\t\t\t\t'%field' => $this->get_field_name_translation(),\r\n\t\t\t\t\t\t'%val' => $value\r\n\t\t\t\t\t)\r\n\t\t\t\t));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $ret;\r\n\t}", "title": "" }, { "docid": "4fc605c2b5a31f26fd5177634c1aac17", "score": "0.5809577", "text": "public abstract function validate();", "title": "" }, { "docid": "0b018bbdb3f54cfbd7eaeeeba8c47c7c", "score": "0.57919186", "text": "protected abstract function doValidate($value);", "title": "" }, { "docid": "9573ee4c155bc0eb9840d93ce932e802", "score": "0.57912374", "text": "public function validate()\n {\n parent::validate();\n $data = $this->_data;\n if ($data['rok_maturity'] < 1980\n || $data['rok_maturity'] > 2030) {\n throw new InvalidDataException(\"{$data['rok_maturity']} is not valid rok_maturity\");\n }\n\n if (!is_numeric($data['koresp_kam'])\n || $data['koresp_kam'] < 0\n || $data['koresp_kam'] > 2) {\n throw new InvalidDataException('Invalid koresp_kam value');\n }\n\n if ($data['koresp_kam'] == self::KORESP_ELSE && is_null($data['koresp_adresa'])) {\n throw new InvalidDataException('koresp_adresa must be set with KORESP_ELSE');\n }\n\n }", "title": "" }, { "docid": "4ee821c29ce795bfe011110cf309042b", "score": "0.57800984", "text": "public static function validate(&$value) {\n if (isset($value)) {\n return $value;\n } else {\n return \"0\";\n }\n }", "title": "" }, { "docid": "c1bf660042bb2e41a1cd4ae59fe16d1a", "score": "0.57730556", "text": "public function correctData(){}", "title": "" }, { "docid": "9cbc79fdb53e6dd721b982ee44f96083", "score": "0.5772097", "text": "public function get_forced_value();", "title": "" }, { "docid": "4774242f36c22604c8b36fcb4b169569", "score": "0.5767216", "text": "function isDataValid() \n {\n $isValid = parent::isDataValid();\n \n /*\n * check here for specific cases not covered by simple Field\n * Definitions.\n */\n \n // Example : error checking\n // NOTE: a custom error label [error_UniqueModuleName] is used\n // for the error. This error label is created in the Page Labels\n // form.\n // Make sure that module name doesn't already exist...\n// if ($isValid) {\n \n// $isValid = $this->dataManager->isUniqueModuleName();\n// $this->formErrors[ 'module_name' ] = $this->labels->getLabel( '[error_UniqueModuleName]');\n/// }\n \n // now return result\n return $isValid;\n \n }", "title": "" }, { "docid": "1711a400bcdba70f1701af7a544f3a75", "score": "0.576374", "text": "function validate() {}", "title": "" }, { "docid": "e3de0b7ba6b0f503da43a52fba2b082c", "score": "0.5763645", "text": "function validate_providing_appreciation($val)\n{\n return _validate_appreciation($val);\n}", "title": "" }, { "docid": "54f52b5aa7fb672767dbca7a8ec0d17c", "score": "0.57449484", "text": "public function validate() {\n if (!empty($this->value)) {\n parent::validate();\n }\n }", "title": "" }, { "docid": "54f52b5aa7fb672767dbca7a8ec0d17c", "score": "0.57449484", "text": "public function validate() {\n if (!empty($this->value)) {\n parent::validate();\n }\n }", "title": "" }, { "docid": "c8985c981b21458424fd20401f970c93", "score": "0.5726115", "text": "private function blockValueValidation() {\n $oQuery = new QueryProcessingClass();\n $aParts = $oQuery->queryToArray($this->query);\n\n if($aParts['tipo'] === 'UPDATE') {\n $limitW = pow(10, 9);\n if($aParts['W'] < -$limitW OR $aParts['W'] > $limitW) {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "348045e65af4a557cc910e5374a91643", "score": "0.5725827", "text": "public function value(): mixed;", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "54f555cf081d286836bb378302d85ba6", "score": "0.5724895", "text": "public function getValue();", "title": "" }, { "docid": "9bfaeeaa1abbc90a61a856f9dba78b51", "score": "0.5724869", "text": "function isDataValid() \r\n {\r\n $isValid = parent::isDataValid();\r\n \r\n /*\r\n * check here for specific cases not covered by simple Field\r\n * Definitions.\r\n */\r\n \r\n // Example : error checking\r\n // NOTE: a custom error label [error_UniqueModuleName] is used\r\n // for the error. This error label is created in the Page Labels\r\n // form.\r\n // Make sure that module name doesn't already exist...\r\n// if ($isValid) {\r\n \r\n// $isValid = $this->dataManager->isUniqueModuleName();\r\n// $this->formErrors[ 'module_name' ] = $this->labels->getLabel( '[error_UniqueModuleName]');\r\n/// }\r\n \r\n // now return result\r\n return $isValid;\r\n \r\n }", "title": "" }, { "docid": "b9eb03dae0464ef80ef1342fa9ca15fc", "score": "0.5723859", "text": "public function validate();", "title": "" }, { "docid": "b9eb03dae0464ef80ef1342fa9ca15fc", "score": "0.5723859", "text": "public function validate();", "title": "" }, { "docid": "b9eb03dae0464ef80ef1342fa9ca15fc", "score": "0.5723859", "text": "public function validate();", "title": "" }, { "docid": "b9eb03dae0464ef80ef1342fa9ca15fc", "score": "0.5723859", "text": "public function validate();", "title": "" }, { "docid": "b9eb03dae0464ef80ef1342fa9ca15fc", "score": "0.5723859", "text": "public function validate();", "title": "" }, { "docid": "b9eb03dae0464ef80ef1342fa9ca15fc", "score": "0.5723859", "text": "public function validate();", "title": "" }, { "docid": "b9eb03dae0464ef80ef1342fa9ca15fc", "score": "0.5723859", "text": "public function validate();", "title": "" }, { "docid": "b9eb03dae0464ef80ef1342fa9ca15fc", "score": "0.5723859", "text": "public function validate();", "title": "" }, { "docid": "b9eb03dae0464ef80ef1342fa9ca15fc", "score": "0.5723859", "text": "public function validate();", "title": "" }, { "docid": "b9eb03dae0464ef80ef1342fa9ca15fc", "score": "0.5723859", "text": "public function validate();", "title": "" }, { "docid": "b9eb03dae0464ef80ef1342fa9ca15fc", "score": "0.5723859", "text": "public function validate();", "title": "" }, { "docid": "01aef70ed86544e1fd3342357ffbf8a0", "score": "0.5718992", "text": "public function get_validate_data(){\n return $this->validate_data;\n }", "title": "" }, { "docid": "630779a5bec61c988853e7767a09d2a0", "score": "0.57159454", "text": "public function validate(Data $input): array;", "title": "" }, { "docid": "8aa18ac06ee4a512cc1476d8d81f02a0", "score": "0.5709454", "text": "public function passValidationForParam();", "title": "" }, { "docid": "e671ca04cb6b0d344329f6fe6bbe3680", "score": "0.5706838", "text": "public function val();", "title": "" }, { "docid": "1956fb30506790b6e3fb4bfeafdd0549", "score": "0.5689997", "text": "protected function validateElementValues() {\n\t\t}", "title": "" }, { "docid": "e7f9f408908a84a83b2c8257a85fd5e4", "score": "0.56849074", "text": "protected function validate()\n {\n return $this->isBlank();\n }", "title": "" }, { "docid": "28e224593ac3a6b4d80ae948a086222d", "score": "0.5670656", "text": "function IsValidTotalFactura() {\n}", "title": "" }, { "docid": "5a4ebdc83874b9d4f7f0b062c2ea5f01", "score": "0.56680036", "text": "public function valid ();", "title": "" }, { "docid": "5a4ebdc83874b9d4f7f0b062c2ea5f01", "score": "0.56680036", "text": "public function valid ();", "title": "" }, { "docid": "5a4ebdc83874b9d4f7f0b062c2ea5f01", "score": "0.56680036", "text": "public function valid ();", "title": "" }, { "docid": "c749bedc417afbc29a3616ef813e4fde", "score": "0.566693", "text": "public function valid()\n {\n return current($this->propertyData);\n }", "title": "" }, { "docid": "456271b19be775b1ed9254a701e91d72", "score": "0.5662441", "text": "public function validate(){\n\t\t\t$a = true; \n\t\t\tif(\n\t\t\t!validate($this->compound_id, 'index') ||\n\t\t\t!validate($this->name, 'name') ||\n\t\t\t!validate($this->value, 'decimal' ) ||\n\t\t\t!validate($this->metric, 'name' ) \n\t\t\t){ $a = false; \n\t\t\t//echo \"<p>Global failed </p>\"; \n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t$this->valid = $a; \n\t\t\t//echo \"<p>Valid ? End of Compound Validate \".($a == true? \"A will be detected!\" : \"A won't be detected\").\"</p>\";\n\t\t}", "title": "" }, { "docid": "6c3d3b1afee9c4237a0e2b039d5592c3", "score": "0.5654289", "text": "public function valid();", "title": "" }, { "docid": "6c3d3b1afee9c4237a0e2b039d5592c3", "score": "0.5654289", "text": "public function valid();", "title": "" } ]
0c6ae4a7b0d77faf380d0ff021a3f031
Set the primary key
[ { "docid": "33b577db4983974359f9fedcea74ee17", "score": "0.8160283", "text": "public function setPrimaryKey($key=\"id\")\n {\n $this->primaryKey = $key;\n }", "title": "" } ]
[ { "docid": "09e9ad27a947a0431fe0437d273eed53", "score": "0.83332145", "text": "public function setPrimarykey($key) {\n\n $this->primaryKey = $key;\n\n }", "title": "" }, { "docid": "c8865505490e718bdc527cba423b1a7c", "score": "0.78957444", "text": "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "title": "" }, { "docid": "c8865505490e718bdc527cba423b1a7c", "score": "0.78957444", "text": "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "title": "" }, { "docid": "c8865505490e718bdc527cba423b1a7c", "score": "0.78957444", "text": "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "title": "" }, { "docid": "c8865505490e718bdc527cba423b1a7c", "score": "0.78957444", "text": "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "title": "" }, { "docid": "c8865505490e718bdc527cba423b1a7c", "score": "0.78957444", "text": "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "title": "" }, { "docid": "c8865505490e718bdc527cba423b1a7c", "score": "0.78957444", "text": "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "title": "" }, { "docid": "c8865505490e718bdc527cba423b1a7c", "score": "0.78957444", "text": "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "title": "" }, { "docid": "c8865505490e718bdc527cba423b1a7c", "score": "0.78957444", "text": "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "title": "" }, { "docid": "c8865505490e718bdc527cba423b1a7c", "score": "0.78957444", "text": "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "title": "" }, { "docid": "c8865505490e718bdc527cba423b1a7c", "score": "0.78957444", "text": "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "title": "" }, { "docid": "c8865505490e718bdc527cba423b1a7c", "score": "0.78957444", "text": "public function setPrimaryKey($key)\n\t{\n\t\t$this->setId($key);\n\t}", "title": "" }, { "docid": "8e600f9284206a52ca149af27a63dd9e", "score": "0.78105897", "text": "public function setPrimaryKey($key)\n\t{\n\t\t$this->setIdPersona($key);\n\t}", "title": "" }, { "docid": "18f430649f91398ad6220a588f5f1f02", "score": "0.7807687", "text": "public function setPrimaryKey($key)\n {\n $this->setId($key);\n }", "title": "" }, { "docid": "18f430649f91398ad6220a588f5f1f02", "score": "0.7807687", "text": "public function setPrimaryKey($key)\n {\n $this->setId($key);\n }", "title": "" }, { "docid": "18f430649f91398ad6220a588f5f1f02", "score": "0.7807687", "text": "public function setPrimaryKey($key)\n {\n $this->setId($key);\n }", "title": "" }, { "docid": "18f430649f91398ad6220a588f5f1f02", "score": "0.7807687", "text": "public function setPrimaryKey($key)\n {\n $this->setId($key);\n }", "title": "" }, { "docid": "18f430649f91398ad6220a588f5f1f02", "score": "0.7807687", "text": "public function setPrimaryKey($key)\n {\n $this->setId($key);\n }", "title": "" }, { "docid": "18f430649f91398ad6220a588f5f1f02", "score": "0.7807687", "text": "public function setPrimaryKey($key)\n {\n $this->setId($key);\n }", "title": "" }, { "docid": "18f430649f91398ad6220a588f5f1f02", "score": "0.7807687", "text": "public function setPrimaryKey($key)\n {\n $this->setId($key);\n }", "title": "" }, { "docid": "18f430649f91398ad6220a588f5f1f02", "score": "0.7807687", "text": "public function setPrimaryKey($key)\n {\n $this->setId($key);\n }", "title": "" }, { "docid": "18f430649f91398ad6220a588f5f1f02", "score": "0.7807687", "text": "public function setPrimaryKey($key)\n {\n $this->setId($key);\n }", "title": "" }, { "docid": "c469cd2bbdc5574a0a95f7a8cc834132", "score": "0.7740361", "text": "public function setPrimary($key){\n $this->primary = $key;\n }", "title": "" }, { "docid": "583ac9660d52cf0d184951b24d769078", "score": "0.7726834", "text": "public function setPrimaryKey($key)\n\t{\n\t\t$this->setCoForense($key);\n\t}", "title": "" }, { "docid": "e0072716544192ce1d18ce0c9f7e0724", "score": "0.7645084", "text": "public function setPrimaryKey($key)\n {\n $this->setIdsucursal($key);\n }", "title": "" }, { "docid": "ebf0708b613934e4be7f9b269c3bff28", "score": "0.7627304", "text": "function setPrimaryKey($inKey) {\n\t\tlist($ID) = explode(self::PRIMARY_KEY_SEPARATOR, $inKey);\n\t\t$this->setID($ID);\n\t}", "title": "" }, { "docid": "e78a94bf700be9f3c8693a04eac9923b", "score": "0.75585353", "text": "public function setPrimaryKey($key)\n\t{\n\t\t$this->setCoSeqModulo($key);\n\t}", "title": "" }, { "docid": "15d23b69e54cf59ba6fe6fed4837851b", "score": "0.7464895", "text": "public function setPrimaryKey($key)\n\t{\n\t\t$this->setElementId($key);\n\t}", "title": "" }, { "docid": "6d58fd45f2f963014d2d7795ceb0b545", "score": "0.74372476", "text": "public function setPrimaryKey($key)\n\t{\n\t\t$this->setCoOrgao($key);\n\t}", "title": "" }, { "docid": "2e7d54be875f6e670e1512666d73981b", "score": "0.7416003", "text": "public function setPrimaryKey($key)\n {\n $this->setDataId($key);\n }", "title": "" }, { "docid": "1d9e732c8a6949450e593ae3acd33e87", "score": "0.74029", "text": "public function setPrimaryKey($key)\n\t{\n\t\t$this->setIdInstExterna($key);\n\t}", "title": "" }, { "docid": "518e7a74a92a7f7d326dbde168e45a49", "score": "0.72874814", "text": "public function setPrimaryKey($key)\n {\n $this->setGroupPK($key);\n }", "title": "" }, { "docid": "fd66aed40fdc53cf3a0d7b23d7d9fba5", "score": "0.72442454", "text": "public function setPrimaryKey($name);", "title": "" }, { "docid": "bc358f114ae6db14e0708c4e02437d99", "score": "0.7239312", "text": "public function setPrimaryKey($key)\n {\n $this->setZinummer($key);\n }", "title": "" }, { "docid": "eb8bfd7ca3e7ddb6b772032575861c48", "score": "0.7228442", "text": "public function setPrimaryKey(?int $key = null): void\n {\n $this->setId($key);\n }", "title": "" }, { "docid": "21bff9b58009e0d2e74c08dd205bc753", "score": "0.71885014", "text": "public function setPrimaryKey($key)\n {\n $this->setIntbconfkey($key);\n }", "title": "" }, { "docid": "bedee54b77d7596c28483c7f113b10d9", "score": "0.71884066", "text": "public function setPrimaryKey($value)\n {\n $this->primaryKey = $value;\n return $this;\n }", "title": "" }, { "docid": "b6b1f87c4ca7b06f826522547c819322", "score": "0.7155258", "text": "public function setOldPrimaryKey($value)\n\t{\n\t\t$this->_pk=$value;\n\t}", "title": "" }, { "docid": "c173bb08e3b1afe1139082d982dbb103", "score": "0.7110635", "text": "protected function setPrimaryKey($field)\n {\n $my_class = $this->getClass();\n self::$_description[$my_class]['primary_key'] = $field;\n }", "title": "" }, { "docid": "134863282cb2d679254ee0180901aca0", "score": "0.70985836", "text": "function setPrimaryKey($id) {\n\t\t//if(!$id) throw new Dormio_Exception(\"No primary key given\");\n\t\tDormio::$logger && Dormio::$logger->log(\"setPrimaryKey: {$id}\");\n\t\tif($this->_updated) throw new Dormio_Exception(\"Unsaved data for {$this} ({$id})\");\n\t\t$this->_data = array('pk' => $id);\n\t\t$this->_updated = array();\n\t\t$this->_hydrated = false;\n\t}", "title": "" }, { "docid": "cbb775f54dcf69eb8206c48bdab88238", "score": "0.7093118", "text": "public function setPrimaryKey(?int $key = null): void\n {\n $this->setIdAccount($key);\n }", "title": "" }, { "docid": "40b5d9960a9d540bceba91ff2bcd11d4", "score": "0.70460325", "text": "public function setPrimaryKey($key)\n {\n $this->primaryKey = $key;\n return $this;\n }", "title": "" }, { "docid": "b9a4bab9fbd5fb167221842fbc3377a5", "score": "0.7039192", "text": "public static function primary_key() {\n\t\treturn static::$_primary_key;\n\t}", "title": "" }, { "docid": "218f0a90586d9c862f28dc7f05022cde", "score": "0.6984121", "text": "public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}", "title": "" }, { "docid": "cd79b83c2f0c317b9c4d17ae5b0b5471", "score": "0.6932521", "text": "public static function primary_key()\n\t{\n\t\treturn 'id';\n\t}", "title": "" }, { "docid": "19ea7ee4424dd3c5f8f2f9bc4c7b6b9d", "score": "0.6917742", "text": "public function setKeyName($key)\n {\n $this->primaryKey = $key;\n }", "title": "" }, { "docid": "e317c724b8a8b1558ba893c8027b8a6e", "score": "0.6913274", "text": "public function setPrimaryKey($primaryKey)\n {\n\t$this->primaryKey = $primaryKey;\n\treturn $this;\n }", "title": "" }, { "docid": "148f4d3bac658e8fda139e543e628b75", "score": "0.6894722", "text": "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_activ') && $val_id !== '') $this->iid_activ = (int)$val_id; \n if (($nom_id == 'id_dl') && $val_id !== '') $this->iid_dl = (int)$val_id; \n if (($nom_id == 'dl_tabla') && $val_id !== '') $this->sdl_tabla = $val_id;\n }\n }\n }", "title": "" }, { "docid": "df65325d8a63583ceedc4d1e662d465d", "score": "0.6878321", "text": "function primary($name=null) {\n $name = is_null($name) ? $this->lastField : $name;\n $this->key = \" PRIMARY KEY (`$name`)\";\n return $this;\n }", "title": "" }, { "docid": "bcce5dda7aa0d54204db1345661cb3c2", "score": "0.68683857", "text": "public function setPrimaryKeyName($name) {\n\t\t$this->_primaryKeyName = $name;\n\t}", "title": "" }, { "docid": "045df4e7bed7fd61f6a067119823a5a2", "score": "0.68615234", "text": "public function primary_key() {\n $field = $this->_primary_key;\n return $this->$field;\n }", "title": "" }, { "docid": "e14f7db9177a551423af6c2c5a9c8fab", "score": "0.6857774", "text": "public function setPrimaryKey($keys)\n {\n $this->setSessionid($keys[0]);\n $this->setRecno($keys[1]);\n }", "title": "" }, { "docid": "39bdfc7239a53334026c328b524de9b8", "score": "0.6851555", "text": "public function getPrimaryKey();", "title": "" }, { "docid": "39bdfc7239a53334026c328b524de9b8", "score": "0.6851555", "text": "public function getPrimaryKey();", "title": "" }, { "docid": "39bdfc7239a53334026c328b524de9b8", "score": "0.6851555", "text": "public function getPrimaryKey();", "title": "" }, { "docid": "39bdfc7239a53334026c328b524de9b8", "score": "0.6851555", "text": "public function getPrimaryKey();", "title": "" }, { "docid": "39bdfc7239a53334026c328b524de9b8", "score": "0.6851555", "text": "public function getPrimaryKey();", "title": "" }, { "docid": "39bdfc7239a53334026c328b524de9b8", "score": "0.6851555", "text": "public function getPrimaryKey();", "title": "" }, { "docid": "39bdfc7239a53334026c328b524de9b8", "score": "0.6851555", "text": "public function getPrimaryKey();", "title": "" }, { "docid": "b4af06c4cb8a2002de0216ec2d145948", "score": "0.6827524", "text": "public function setPrimaryKey($key)\n {\n $this->setMoveId($key);\n }", "title": "" }, { "docid": "3e6968a63e524e331e42c723dc6238bd", "score": "0.6810565", "text": "public function setPrimaryKey($key)\n {\n $this->setCscpcompnbr($key);\n }", "title": "" }, { "docid": "00be6f3d444b2b0455e7be8219ab6fbe", "score": "0.6803076", "text": "public function setKeyName(string $key)\n {\n $this->primaryKey = $key;\n }", "title": "" }, { "docid": "101cc89b253585cbb7639ccb2a6fe2f2", "score": "0.6762464", "text": "public function getPrimaryKey()\n {\n return $this->primaryKey;\n }", "title": "" }, { "docid": "101cc89b253585cbb7639ccb2a6fe2f2", "score": "0.6762464", "text": "public function getPrimaryKey()\n {\n return $this->primaryKey;\n }", "title": "" }, { "docid": "101cc89b253585cbb7639ccb2a6fe2f2", "score": "0.6762464", "text": "public function getPrimaryKey()\n {\n return $this->primaryKey;\n }", "title": "" }, { "docid": "bc403e20aea79aefd27de9d894741d5d", "score": "0.673632", "text": "public function set_primary_key( $primary_key ) {\n\t\t$this->primary_key = $primary_key;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "165224f1d00871767b647d6f7bcdd149", "score": "0.67326504", "text": "public function PrimaryKey() {\n\t\t\treturn $this->strCursoDocenteId;\n\t\t}", "title": "" }, { "docid": "88ea8166826113af35d8b2e4bbb5fab9", "score": "0.67185855", "text": "public function setPrimaryKey($primaryKey)\n {\n $this->primaryKey = $primaryKey;\n return $this;\n }", "title": "" }, { "docid": "f8c4551ee2bd67be7b80c663c7af04c9", "score": "0.67131513", "text": "public function getPrimaryKey()\n {\n return $this->primary_key;\n }", "title": "" }, { "docid": "0284f13c148dc85c3a6102f81b88ba1a", "score": "0.6662409", "text": "public function setPrimaryKey($keys)\n {\n $this->setPohdnbr($keys[0]);\n $this->setPodtline($keys[1]);\n }", "title": "" }, { "docid": "f4a4deaccb44b93548594c8d5cf680e6", "score": "0.66541183", "text": "public static function setPk($pk)\r\n {\r\n static::$_pk = $pk;\r\n }", "title": "" }, { "docid": "203696d6e3f9232f367fa9f1ea2047c0", "score": "0.66502535", "text": "public function setAsPrimaryKey($isPrimaryKey = true)\n {\n $this->Constraints['primaryKey'] = (boolean)$isPrimaryKey;\n $this->PrimaryKey = (boolean)$isPrimaryKey;\n }", "title": "" }, { "docid": "676e7c21369332636e0dd319186f217f", "score": "0.6645445", "text": "public function getPrimaryKey()\r\n {\r\n return $this->_primary;\r\n }", "title": "" }, { "docid": "dc694a021117a8b499022a46ac1ce75d", "score": "0.6627447", "text": "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_activ') && $val_id !== '') $this->iid_activ = (int)$val_id; \n }\n }\n }", "title": "" }, { "docid": "70b79aadaa28c814d17c6bb45649a0b2", "score": "0.661234", "text": "protected function initPrimaryKey() {\n\n include_once 'creole/metadata/PrimaryKeyInfo.php';\n\n\n // columns have to be loaded first\n if (!$this->colsLoaded) $this->initColumns();\n\n // Primary Keys\n $result = pg_query($this->dblink, \"select ta.attname, ia.attnum\n from pg_attribute ta, pg_attribute ia, pg_class c, pg_index i\n where c.relname = '\".$this->name.\"_pkey'\n AND c.oid = i.indexrelid\n AND ia.attrelid = i.indexrelid\n AND ta.attrelid = i.indrelid\n AND ta.attnum = i.indkey[ia.attnum-1]\n ORDER BY ia.attnum\");\n\n if (!$result) {\n throw new SQLException(\"Could not list primary keys for table: \" . $this->name, pg_last_error($this->dblink));\n }\n\n // Loop through the returned results, grouping the same key_name together\n // adding each column for that key.\n\n while($row = pg_fetch_assoc($result)) {\n $name = $row[\"attname\"];\n if (!isset($this->primaryKey)) {\n $this->primaryKey = new PrimaryKeyInfo($name);\n }\n $this->primaryKey->addColumn($this->columns[ $name ]);\n }\n\n $this->pkLoaded = true;\n }", "title": "" }, { "docid": "0910a07b785831e0f755176c50c9a91a", "score": "0.66116583", "text": "public function primary()\n {\n\n return IModel::DEFAULT_PRIMARY_KEY;\n }", "title": "" }, { "docid": "7ad7545e6191f54d6a9ac4d34b98697a", "score": "0.6610154", "text": "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_item') && $val_id !== '') $this->iid_item = (int)$val_id; \n }\n }\n }", "title": "" }, { "docid": "2f11085f59fb20199a38ede21002a5e0", "score": "0.6584789", "text": "public function setPK($value)\r\n {\r\n $pk = $this->getPkName();\r\n return $this->$pk = $value;\r\n }", "title": "" }, { "docid": "8d3c1c54af9d8e9732ba4bd849e4f473", "score": "0.6573105", "text": "abstract public function getPK();", "title": "" }, { "docid": "1cd6e422f9a20b0ccd115d36efa57b73", "score": "0.6565027", "text": "public function getPrimaryKey()\n {\n return $this->pk;\n }", "title": "" }, { "docid": "92461198e4ad69a302826a4a4294a335", "score": "0.6539445", "text": "public function setPrimaryKey(array $primary_key)\n {\n $this->primary_key = $primary_key;\n\n return $this;\n }", "title": "" }, { "docid": "4c435edf4c01b9de47ec30f94d875d3c", "score": "0.6533136", "text": "public static function get_primary_key()\r\n {\r\n return 'mail_id';\r\n }", "title": "" }, { "docid": "2812198f95055ea066ef5c2499462189", "score": "0.6481796", "text": "public function setPrimary_key($a_id = '')\n {\n if (is_array($a_id)) {\n $this->aPrimary_key = $a_id;\n foreach ($a_id as $nom_id => $val_id) {\n if (($nom_id == 'id_tipo_dossier') && $val_id !== '') $this->iid_tipo_dossier = (int)$val_id; \n }\n }\n }", "title": "" }, { "docid": "28075b9213bf194ef701c969a395a5e8", "score": "0.64556414", "text": "public function setKey($id) {\n\t\t$this->key=$id;\n\t}", "title": "" }, { "docid": "00de6319df514fcf7817b053e9a33a32", "score": "0.6433139", "text": "private function primaryKeyName() {\n\t\treturn $this->owner->getMetaData()->tableSchema->primaryKey;\n\t}", "title": "" }, { "docid": "66065923ead77a814681bd9ea31186ec", "score": "0.6422385", "text": "public function getPrimaryKey(){\n\t\t$primary = $this->info('primary');\n\t\t/*this works on row set object and not on table object return $this->_getPrimaryKey();*/\n\t\treturn $primary;\n\t}", "title": "" }, { "docid": "c53dc1cf6ad6a291316d88d707af3d8e", "score": "0.6382671", "text": "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "title": "" }, { "docid": "c53dc1cf6ad6a291316d88d707af3d8e", "score": "0.6382671", "text": "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "title": "" }, { "docid": "c53dc1cf6ad6a291316d88d707af3d8e", "score": "0.6382671", "text": "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "title": "" }, { "docid": "c53dc1cf6ad6a291316d88d707af3d8e", "score": "0.6382671", "text": "function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}", "title": "" }, { "docid": "2ea694069cf1b1f8d5032985632cf455", "score": "0.6382329", "text": "public function primaryKey()\n {\n return 'id';\n }", "title": "" }, { "docid": "2ea694069cf1b1f8d5032985632cf455", "score": "0.6382329", "text": "public function primaryKey()\n {\n return 'id';\n }", "title": "" }, { "docid": "7398deec4ed016f11c5cedf0e1a3d54d", "score": "0.6378149", "text": "public static function primaryKey()\n {\n return parent::primaryKey();\n }", "title": "" }, { "docid": "ff774aa3587cf6888817141c1ff49f73", "score": "0.6359812", "text": "public function primaryKey()\n\t{\n\t}", "title": "" }, { "docid": "376a32fb114ca4aaeb8c2c89748bee50", "score": "0.63457924", "text": "function getPrimaryKey() {\n\t\treturn parent::getPrimaryKey();\n\t}", "title": "" }, { "docid": "136b1af6dbbc12dc6e2eaf7f02a5716b", "score": "0.6344461", "text": "function pk_set($key, $value=null) {\n\t\treturn pk_value($key, $value);\n\t}", "title": "" }, { "docid": "900228798ada7bc7227b2cb5509805bb", "score": "0.6315131", "text": "abstract public function get_primary_key($object);", "title": "" }, { "docid": "fb5e01329058b346d25c6cd57a24785e", "score": "0.6294996", "text": "protected static function primary_key_field() {\n return static ::$primary_key_field;\n }", "title": "" }, { "docid": "8b30b2b89c4124ecf328f019bbe2356e", "score": "0.629492", "text": "function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_activ' => $this->iid_activ, 'id_dl' => $this->iid_dl, 'dl_tabla' => $this->sdl_tabla);\n }\n return $this->aPrimary_key;\n }", "title": "" }, { "docid": "dc0f9be7d1bef18d2a600d551e4e3d52", "score": "0.62904876", "text": "public function set_persistent_id($v) {$this->id=$v;}", "title": "" } ]
778954c5f71a62d5603bf9b0deef2ac3
Check that stdWrap_addParams works properly. Show: Delegates to method addParams. Parameter 1 is $content. Parameter 2 is $conf['addParams.']. Returns the return value.
[ { "docid": "4a5241dd8da0309ec93d972f259cdba0", "score": "0.7789987", "text": "public function stdWrap_addParams() {}", "title": "" } ]
[ { "docid": "62db15b755ca0f2a82ab8479ea0c8a9b", "score": "0.5950433", "text": "public static function add_params( $params ) {\n\n\t\t\t// Save re-usable strings in var\n\t\t\t$s_video = __( 'Video', 'total' );\n\t\t\t$s_no = __( 'No', 'total' );\n\t\t\t$s_yes = __( 'Yes', 'total' );\n\n\t\t\t// Array of params to add\n\t\t\t$add_params = array();\n\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'User Access', 'total' ),\n\t\t\t\t'param_name' => 'vcex_user_access',\n\t\t\t\t'weight' => 99,\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'All', 'total' ) => '',\n\t\t\t\t\t__( 'Logged in', 'total' ) => 'logged_in',\n\t\t\t\t\t__( 'Logged out', 'total' ) => 'logged_out',\n\t\t\t\t\t__( 'Custom', 'total' ) => 'custom',\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Custom User Access', 'total' ),\n\t\t\t\t'param_name' => 'vcex_user_access_callback',\n\t\t\t\t'description' => __( 'Enter your callback function name here.', 'total' ),\n\t\t\t\t'weight' => 99,\n\t\t\t\t'dependency' => array( 'element' => 'vcex_user_access', 'value' => 'custom' ),\n\t\t\t);\n\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'vcex_visibility',\n\t\t\t\t'heading' => __( 'Visibility', 'total' ),\n\t\t\t\t'param_name' => 'visibility',\n\t\t\t\t'weight' => 99,\n\t\t\t);\n\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Local Scroll ID', 'total' ),\n\t\t\t\t'param_name' => 'local_scroll_id',\n\t\t\t\t'description' => __( 'Unique identifier for local scrolling links.', 'total' ),\n\t\t\t\t'weight' => 99,\n\t\t\t);\n\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Minimum Height', 'total' ),\n\t\t\t\t'description' => __( 'Adds a minimum height to the row so you can have a row without any content but still display it at a certain height. Such as a background with a video or image background but without any content.', 'total' ),\n\t\t\t\t'param_name' => 'min_height',\n\t\t\t);\n\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Equal Column Heights', 'total' ),\n\t\t\t\t'param_name' => 'match_column_height',\n\t\t\t\t'value' => array(\n\t\t\t\t\t$s_no => '',\n\t\t\t\t\t$s_yes => 'yes',\n\t\t\t\t),\n\t\t\t);\n\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Typography Style', 'total' ),\n\t\t\t\t'param_name' => 'typography_style',\n\t\t\t\t'value' => array_flip( wpex_typography_styles() ),\n\t\t\t);\n\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Max Width', 'total' ),\n\t\t\t\t'param_name' => 'max_width',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'None', 'total' ) => '',\n\t\t\t\t\t'10%' => '10',\n\t\t\t\t\t'20%' => '20',\n\t\t\t\t\t'30%' => '30',\n\t\t\t\t\t'40%' => '40',\n\t\t\t\t\t'50%' => '50',\n\t\t\t\t\t'60%' => '60',\n\t\t\t\t\t'70%' => '70',\n\t\t\t\t\t'80%' => '80',\n\t\t\t\t),\n\t\t\t\t'description' => __( 'The max width is done by setting a percentage margin on the left and right of your row. You can visit the Design Options tab to enter custom percentage margins yourself if you prefer', 'total' ),\n\t\t\t\t'dependency' => array( 'element' => 'full_width', 'is_empty' => true ),\n\t\t\t);\n\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Inner Column Gap', 'total' ),\n\t\t\t\t'param_name' => 'column_spacing',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'Default', 'total' ) => '',\n\t\t\t\t\t'0px' => '0px',\n\t\t\t\t\t'1px' => '1',\n\t\t\t\t\t'5px' => '5',\n\t\t\t\t\t'10px' => '10',\n\t\t\t\t\t'20px' => '20',\n\t\t\t\t\t'30px' => '30',\n\t\t\t\t\t'40px' => '40',\n\t\t\t\t\t'50px' => '50',\n\t\t\t\t\t'60px' => '60',\n\t\t\t\t),\n\t\t\t\t'description' => __( 'Alter the inner column spacing.', 'total' ),\n\t\t\t\t'weight' => 40,\n\t\t\t);\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'vcex_ofswitch',\n\t\t\t\t'heading' => __( 'Full-Width Columns On Tablets', 'total' ),\n\t\t\t\t'param_name' => 'tablet_fullwidth_cols',\n\t\t\t\t'vcex' => array( 'off' => 'no', 'on' => 'yes', ),\n\t\t\t\t'std' => 'no',\n\t\t\t\t'description' => __( 'Enable to make all columns inside this row full-width for tablets.', 'total' ),\n\t\t\t);\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'vcex_ofswitch',\n\t\t\t\t'heading' => __( 'Float Columns Right', 'total' ),\n\t\t\t\t'param_name' => 'columns_right',\n\t\t\t\t'vcex' => array( 'off' => 'no', 'on' => 'yes', ),\n\t\t\t\t'std' => 'no',\n\t\t\t\t'description' => __( 'Most useful when you want to alternate content such as an image to the right and content to the left but display the image at the top on mobile.', 'total' ),\n\t\t\t);\n\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'vcex_ofswitch',\n\t\t\t\t'heading' => __( 'Offset Overlay Header', 'total' ),\n\t\t\t\t'param_name' => 'offset_overlay_header',\n\t\t\t\t'vcex' => array( 'off' => 'no', 'on' => 'yes', ),\n\t\t\t\t'std' => 'no',\n\t\t\t\t'description' => __( 'Check this box to add an offset spacing before this row equal to the height of your header to prevent issues with the header Overlay when enabled.', 'total' ),\n\t\t\t);\n\n\t\t\t// Parallax\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'vcex_ofswitch',\n\t\t\t\t'heading' => __( 'Enable parallax for mobile devices', 'total' ),\n\t\t\t\t'param_name' => 'parallax_mobile',\n\t\t\t\t'vcex' => array( 'off' => 'no', 'on' => 'yes', ),\n\t\t\t\t'std' => 'no',\n\t\t\t\t'description' => __( 'Parallax effects would most probably cause slowdowns when your site is viewed in mobile devices. By default it is disabled.', 'total' ),\n\t\t\t\t'group' => __( 'Parallax', 'total' ),\n\t\t\t\t'dependency' => array(\n\t\t\t\t\t'element' => 'parallax',\n\t\t\t\t\t'value' => 'vcex_parallax',\n\t\t\t\t),\n\t\t\t);\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Parallax Style', 'total' ),\n\t\t\t\t'param_name' => 'parallax_style',\n\t\t\t\t'group' => __( 'Parallax', 'total' ),\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'Cover', 'total' ) => '',\n\t\t\t\t\t__( 'Fixed and Repeat', 'total' ) => 'fixed-repeat',\n\t\t\t\t\t__( 'Fixed and No-Repeat', 'total' ) => 'fixed-no-repeat',\n\t\t\t\t),\n\t\t\t\t'dependency' => array(\n\t\t\t\t\t'element' => 'parallax',\n\t\t\t\t\t'value' => 'vcex_parallax',\n\t\t\t\t),\n\t\t\t);\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Parallax Direction', 'total' ),\n\t\t\t\t'param_name' => 'parallax_direction',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'Up', 'total' ) => '',\n\t\t\t\t\t__( 'Down', 'total' ) => 'down',\n\t\t\t\t\t__( 'Left', 'total' ) => 'left',\n\t\t\t\t\t__( 'Right', 'total' ) => 'right',\n\t\t\t\t),\n\t\t\t\t'group' => __( 'Parallax', 'total' ),\n\t\t\t\t'dependency' => array(\n\t\t\t\t\t'element' => 'parallax',\n\t\t\t\t\t'value' => 'vcex_parallax',\n\t\t\t\t),\n\t\t\t);\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Parallax Speed', 'total' ),\n\t\t\t\t'param_name' => 'parallax_speed',\n\t\t\t\t'description' => __( 'The movement speed, value should be between 0.1 and 1.0. A lower number means slower scrolling speed. Be mindful of the background size and the dimensions of your background image when setting this value. Faster scrolling means that the image will move faster, make sure that your background image has enough width or height for the offset.', 'total' ),\n\t\t\t\t'group' => __( 'Parallax', 'total' ),\n\t\t\t\t'dependency' => array(\n\t\t\t\t\t'element' => 'parallax',\n\t\t\t\t\t'value' => 'vcex_parallax',\n\t\t\t\t),\n\t\t\t);\n\n\t\t\t// Video\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Video Background', 'total' ),\n\t\t\t\t'param_name' => 'video_bg',\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'None', 'total' ) => '',\n\t\t\t\t\t__( 'Youtube', 'total' ) => 'youtube',\n\t\t\t\t\t__( 'Self Hosted', 'total' ) => 'self_hosted',\n\t\t\t\t),\n\t\t\t\t'group' => $s_video,\n\t\t\t\t'description' => __( 'Video backgrounds do not display on mobile because mobile devices do not allow the auto playing of videos it is recommended to apply a standard background image or color as a fallback for mobile devices.', 'total' ),\n\t\t\t);\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Video URL: MP4 URL', 'total' ),\n\t\t\t\t'param_name' => 'video_bg_mp4',\n\t\t\t\t'dependency' => array(\n\t\t\t\t\t'element' => 'video_bg',\n\t\t\t\t\t'value' => 'self_hosted',\n\t\t\t\t),\n\t\t\t\t'group' => $s_video,\n\t\t\t);\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Video URL: WEBM URL', 'total' ),\n\t\t\t\t'param_name' => 'video_bg_webm',\n\t\t\t\t'dependency' => array(\n\t\t\t\t\t'element' => 'video_bg',\n\t\t\t\t\t'value' => 'self_hosted',\n\t\t\t\t),\n\t\t\t\t'group' => $s_video,\n\t\t\t);\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Video URL: OGV URL', 'total' ),\n\t\t\t\t'param_name' => 'video_bg_ogv',\n\t\t\t\t'dependency' => array(\n\t\t\t\t\t'element' => 'video_bg',\n\t\t\t\t\t'value' => 'self_hosted',\n\t\t\t\t),\n\t\t\t\t'group' => $s_video,\n\t\t\t);\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'dropdown',\n\t\t\t\t'heading' => __( 'Background Overlay', 'total' ),\n\t\t\t\t'param_name' => 'wpex_bg_overlay',\n\t\t\t\t'group' => __( 'Overlay', 'total' ),\n\t\t\t\t'value' => array(\n\t\t\t\t\t__( 'None', 'total' ) => '',\n\t\t\t\t\t__( 'Color', 'total' ) => 'color',\n\t\t\t\t\t__( 'Dark', 'total' ) => 'dark',\n\t\t\t\t\t__( 'Dotted', 'total' ) => 'dotted',\n\t\t\t\t\t__( 'Diagonal Lines', 'total' ) => 'dashed',\n\t\t\t\t),\n\t\t\t);\n\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'colorpicker',\n\t\t\t\t'heading' => __( 'Background Overlay Color', 'total' ),\n\t\t\t\t'param_name' => 'wpex_bg_overlay_color',\n\t\t\t\t'group' => __( 'Overlay', 'total' ),\n\t\t\t\t'dependency' => array( 'element' => 'wpex_bg_overlay', 'value' => array( 'color', 'dark', 'dotted', 'dashed' ) ),\n\t\t\t);\n\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Background Overlay Opacity', 'total' ),\n\t\t\t\t'param_name' => 'wpex_bg_overlay_opacity',\n\t\t\t\t'dependency' => array( 'element' => 'wpex_bg_overlay', 'value' => array( 'color', 'dark', 'dotted', 'dashed' ) ),\n\t\t\t\t'group' => __( 'Overlay', 'total' ),\n\t\t\t\t'description' => '0.65',\n\t\t\t);\n\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'textfield',\n\t\t\t\t'heading' => __( 'Background Position', 'total' ),\n\t\t\t\t'param_name' => 'wpex_bg_position',\n\t\t\t\t'group' => __( 'Design Options', 'total' ),\n\t\t\t\t'description' => __( 'Enter your custom background position. Example: \"center center\"', 'total' ),\n\t\t\t\t'weight' => -2,\n\t\t\t\t'dependency' => array( 'element' => 'parallax', 'is_empty' => true ),\n\t\t\t);\n\n\t\t\t$add_params[] = array(\n\t\t\t\t'type' => 'vcex_ofswitch',\n\t\t\t\t'heading' => __( 'Center Row Content (deprecated)', 'total' ),\n\t\t\t\t'param_name' => 'center_row',\n\t\t\t\t'vcex' => array( 'off' => 'no', 'on' => 'yes', ),\n\t\t\t\t'std' => 'no',\n\t\t\t\t'dependency' => array( 'element' => 'full_width', 'is_empty' => true ),\n\t\t\t\t'description' => __( 'Use this option is used to center the inner content horizontally in your row when using the \"Full Screen\" layout for your post/page. This was added prior to the stretch row setting it is now best to use the no-sidebar layout and the stretch row function to achive full-screen sections. If enable certain settings such as the \"Content position\" may not work correctly.', 'total' ),\n\t\t\t);\n\n\t\t\t// Hidden fields = Deprecated params, these should be removed on save\n\t\t\t$deprecated_params = array(\n\t\t\t\t'id',\n\t\t\t\t'style',\n\t\t\t\t'bg_color',\n\t\t\t\t'bg_image',\n\t\t\t\t'bg_style',\n\t\t\t\t'border_style',\n\t\t\t\t'border_color',\n\t\t\t\t'border_width',\n\t\t\t\t'margin_top',\n\t\t\t\t'margin_bottom',\n\t\t\t\t'margin_left',\n\t\t\t\t'padding_top',\n\t\t\t\t'padding_bottom',\n\t\t\t\t'padding_left',\n\t\t\t\t'padding_right',\n\t\t\t\t'no_margins',\n\t\t\t\t'video_bg_overlay',\n\t\t\t\t'match_column_height', // converted to equal_height in 4.0\n\t\t\t);\n\n\t\t\tforeach ( $deprecated_params as $param ) {\n\n\t\t\t\t$add_params[] = array(\n\t\t\t\t\t'type' => 'hidden',\n\t\t\t\t\t'param_name' => $param,\n\t\t\t\t);\n\n\t\t\t}\n\n\t\t\t// Apply filters for child theming\n\t\t\t// @deprecated in Total 4.0 since it's not really needed\n\t\t\t// $add_params = apply_filters( 'wpex_vc_row_custom_params', $add_params );\n\n\t\t\t$params['vc_row'] = $add_params;\n\n\t\t\treturn $params;\n\n\t\t}", "title": "" }, { "docid": "5db21b1cee15cdcdbf53d341bafee3b7", "score": "0.5722094", "text": "public function addParams( $value){\n return $this->_add(2, $value);\n }", "title": "" }, { "docid": "7655367c4aaf07c89dbef3fe397f1ee8", "score": "0.56360793", "text": "public function getAddParameters();", "title": "" }, { "docid": "c7c99f72f92c13dd20893f44173d826b", "score": "0.5591939", "text": "public function addParameters($params){\n if(is_array($params)){\n foreach($params as $key=>$val){\n $this->parameters[$key] = $val;\n }\n }\n }", "title": "" }, { "docid": "edd638ab24042f5170561eed3b4c3b39", "score": "0.5570268", "text": "abstract public function add(array $params);", "title": "" }, { "docid": "fe206256b5546007ede9e2a4835ac287", "score": "0.5523633", "text": "public function addParameters(\\automation\\Task\\ParametersEntry $value){\n return $this->_add(2, $value);\n }", "title": "" }, { "docid": "c7a5591f16483ff974644d230de2ee55", "score": "0.55128217", "text": "function addParams($params) {\n\t\tforeach ($params as &$v) {\n\t\t\t$this->params[] = $v;\n\t\t}\n\t}", "title": "" }, { "docid": "844e34610c18b5c8e388f0bd4e87d169", "score": "0.5455227", "text": "public function addAction($params)\n {\n }", "title": "" }, { "docid": "a7f59475d065747e984183a9783169f7", "score": "0.5390749", "text": "function FillParams($params,$editing = false)\n {\n // content property parameters\n $parameters = array('extra1','extra2','extra3','image','thumbnail');\n foreach ($parameters as $oneparam)\n\t{\n\t if (isset($params[$oneparam]))\n\t {\n\t $this->SetPropertyValue($oneparam, $params[$oneparam]);\n\t }\n\t}\n\n // go through the list of base parameters\n // setting them from params\n \n // title\n if (isset($params['title']))\n\t{\n\t $this->mName = $params['title'];\n\t}\n\n // menu text\n if (isset($params['menutext']))\n\t{\n\t $this->mMenuText = $params['menutext'];\n\t}\n\n // parent id\n if( isset($params['parent_id']) )\n\t{\n\t if ($this->mParentId != $params['parent_id'])\n\t {\n\t $this->mHierarchy = '';\n\t $this->mItemOrder = -1;\n\t }\n\t $this->mParentId = $params['parent_id'];\n\t}\n\n // active\n if (isset($params['active']))\n\t{\n\t $this->mActive = $params['active'];\n\t if( $this->DefaultContent() )\n\t {\n\t $this->mActive = 1;\n\t }\n\t}\n \n // show in menu\n if (isset($params['showinmenu']))\n\t{\n\t $this->mShowInMenu = $params['showinmenu'];\n\t}\n\n // alias\n $tmp = '';\n if( isset($params['alias']) )\n\t{\n\t $tmp = trim($params['alias']);\n\t}\n if( !$editing || isset($params['alias']) )\n\t{\n\t // the alias param may not exist (depending upon permissions)\n\t // this method will set the alias to the supplied value if it is set\n\t // or auto-generate one, when adding a new page.\n\t $this->SetAlias($tmp);\n\t}\n\n // target\n if (isset($params['target']))\n\t{\n\t $val = $params['target'];\n\t if( $val == '---' )\n\t {\n\t $val = '';\n\t }\n\t $this->SetPropertyValue('target', $val);\n\t} \n\n // title attribute\n if (isset($params['titleattribute']))\n\t{\n\t $this->mTitleAttribute = $params['titleattribute'];\n\t}\n\n // accesskey\n if (isset($params['accesskey']))\n\t{\n\t $this->mAccessKey = $params['accesskey'];\n\t}\n\n // tab index\n if (isset($params['tabindex']))\n\t{\n\t $this->mTabIndex = $params['tabindex'];\n\t}\n\n // cachable\n if (isset($params['cachable']))\n\t{\n\t $this->mCachable = $params['cachable'];\n\t}\n else\n\t{\n\t $this->_handleRemovedBaseProperty('cachable','mCachable');\n\t}\n\n // secure\n if (isset($params['secure']))\n\t{\n\t $this->mSecure = $params['secure'];\n\t}\n else\n\t{\n\t $this->_handleRemovedBaseProperty('secure','mSecure');\n\t}\n\n // url\n if (isset($params['page_url']))\n\t{\n\t $this->mURL = $params['page_url'];\n\t}\n else\n\t{\n\t $this->_handleRemovedBaseProperty('page_url','mURL');\n\t}\n\n // owner\n if (isset($params[\"ownerid\"]))\n\t{\n\t $this->SetOwner($params[\"ownerid\"]);\n\t}\n\t \n // additional editors\n if (isset($params[\"additional_editors\"]))\n\t{\n\t $addtarray = array();\n\t if( is_array($params['additional_editors']) )\n\t {\n\t foreach ($params[\"additional_editors\"] as $addt_user_id)\n\t\t{\n\t\t $addtarray[] = $addt_user_id;\n\t\t}\n\t }\n\t $this->SetAdditionalEditors($addtarray);\n\t}\n }", "title": "" }, { "docid": "bd253d0673ee32bfad71cbc79e8407ed", "score": "0.53233474", "text": "public function addConfig($parameters, $parm_value, $parm_text) {\n\n $current_user = $_SERVER['REMOTE_USER'];\n\n $data = array('PARAMETERS' => $parameters,\n 'PARM_VALUE' => $parm_value,\n 'PARM_TEXT' => $parm_text,\n 'ADD_USER' => $current_user,\n 'CHANGE_USER' => $current_user\n );\n\n $this->insert($data);\n }", "title": "" }, { "docid": "bdb68e562ae9071324f06b3f87f13e3c", "score": "0.5306354", "text": "public static function add($params)\n {\n // witch case on strtolower of 'action'\n switch(strtolower($params['action']))\n {\n // click\n case 'click':\n self::$_response[] = array(\n 'action' => 'click',\n 'id' => $params['id'],\n 'delay' => $params['delay']\n );\n break;\n\n // endOfAjax\n case 'endofajax':\n self::$_response[] = array(\n 'action' => 'endOfAjax'\n );\n break;\n\n // httpRequest\n case 'httprequest':\n self::$_response[] = array(\n 'action' => 'httpRequest',\n 'uri' => $params['uri'],\n 'delay' => $params['delay']\n );\n break;\n\n // innerHtml\n case 'innerhtml':\n self::$_response[] = array(\n 'action' => 'innerHtml',\n 'id' => $params['id'],\n 'innerHtml' => $params['innerHtml']\n );\n break;\n\n // setAttr\n case 'setattr':\n self::$_response[] = array(\n 'action' => 'setAttr',\n 'attr' => $params['attr'],\n 'id' => $params['id'],\n 'value' => $params['value']\n );\n break;\n\n // setLoading (On or Off)\n case 'setloading':\n self::$_response[] = array(\n 'action' => 'setLoading',\n 'value' => strtolower($params['value'])\n );\n\n if (strtolower($params['value']) == 'off') {\n self::$_response[] = array(\n 'action' => 'endOfAjax'\n );\n } // if\n break;\n\n // Token\n case 'token':\n self::$_response[] = array(\n 'action' => 'token',\n 'token' => $params['token']\n );\n break;\n\n // default\n default:\n trigger_error(\"Ajax::add($param[action])\");\n break;\n } // end switch\n\n self::$_max++;\n }", "title": "" }, { "docid": "504997ced33df07534ede2c250945559", "score": "0.5273865", "text": "public function addParam($name, $value)\n\t{\n\t\t// Encode the parameter pair\n\t\tif ($nvpair = MFCGI_Record::encodePair($name, $value)) {\n\n\t\t\t// Is there space for the pair in the current list?\n\t\t\tif ((strlen($this->content) + strlen($nvpair)) > (MFCGI::MAX_LENGTH - 8)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t// Add the encoded pair to the list\n\t\t\t$this->content .= $nvpair;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "447bc1dd9512c021416e1cde6f0a69f0", "score": "0.5227255", "text": "public function injectSysParamsValue($input)\n\t{\n\t\t$output\t= $input;\n\t\t$sysParams\t= array();\n\t\t$paramsValue= array();\n\n\t\t$sysParams[]\t= '#rasta-sitetitle#';\n\t\t$paramsValue[]\t= $this->site['wb_title'];\n\t\t$sysParams[]\t= '#rasta-site-description#';\n\t\t$paramsValue[]\t= $this->site['wb_description'];\n\t\t$sysParams[]\t= '#rasta-site-keywords#';\n\t\t$paramsValue[]\t= $this->site['wb_keywords'];\n\t\t$sysParams[]\t= '#rasta-site-authors#';\n\t\t$paramsValue[]\t= $this->site['wb_authors'];\n\n\t\t$sysParams[]\t= '#rasta-slogantext#';\n\t\t$paramsValue[]\t= $this->page['wb_page_slogan'];\n\t\t$sysParams[]\t= '#rasta-pagetitle#';\n\t\t$paramsValue[]\t= $this->page['wb_page_title'];\n\t\t$sysParams[]\t= '#rasta-page-description#';\n\t\t$paramsValue[]\t= $this->page['description'];\n\t\t$sysParams[]\t= '#rasta-page-keywords#';\n\t\t$paramsValue[]\t= $this->page['keywords'];\n\t\t$sysParams[]\t= '#rasta-page-authors#';\n\t\t$paramsValue[]\t= $this->page['authors'];\n\n\t\t$sysParams[]\t= '#rasta-host-root#';\n\t\t$paramsValue[]\t= $this->docroot.'/'.WBSiD;\n\t\t$sysParams[]\t= '#rasta-thumbs-root#';\n\t\t$paramsValue[]\t= $this->docroot.'/'.WBSiD.'/.thumbs';\n\t\t\n\n\t\t$sysParams[]\t= '#rasta-skinroot#';\n\t\t$paramsValue[]\t= ($this->skin['wbs_id']>0)?$this->docroot.'/'.WBSiD.'/files'.$this->skin['skin_path']:$this->skin['skin_path'];\n\n\t\t$sysParams[]\t= '#rasta-feedlink-rss#';\n\t\t$paramsValue[]\t= $this->feedlink_rss;\n\t\t$sysParams[]\t= '#rasta-feedlink-atom#';\n\t\t$paramsValue[]\t= $this->feedlink_atom;\n\n\n\t\t$output\t= str_replace($sysParams, $paramsValue, $input);\n\t\treturn $output;\n\t}", "title": "" }, { "docid": "5835d7cd4a025c4fb427c484828236dc", "score": "0.51537067", "text": "public function addAuthParams(array &$params, BlockchainConfigInterface $blockchainConfig);", "title": "" }, { "docid": "0147bbc9134951ef6dee0e1b9116c129", "score": "0.5147842", "text": "protected function _checkParams()\n {}", "title": "" }, { "docid": "ae5c7df56fee862f99848dba0e9d5985", "score": "0.513945", "text": "static function apiConfigAdd ($paramsa)\n {\n $to = $paramsa[\"_to\"] ?? \"\";\n $to = preg_replace(\"/[^a-zA-Z0-9-]/\", \"\", $to);\n $to = strtolower($to);\n\n if ($to != \"\") {\n // https://www.php.net/manual/fr/function.array-filter.php\n $filteras = array_filter($paramsa, function($v, $k) {\n if ($k[0] == \"_\") return false;\n return true;\n }, ARRAY_FILTER_USE_BOTH);\n\n Form::addJson(\"debug_commandConfigAdd\", $filteras);\n $json = json_encode($filteras, JSON_PRETTY_PRINT);\n File::create(\"xoom-data/my-config-$to.json\", $json); \n }\n }", "title": "" }, { "docid": "9756e6f285c636ad6fbfaae49d425338", "score": "0.51020473", "text": "function check_sidebar_params( $params ) {\n\t\tglobal $wp_registered_widgets;\n\n\t\t$settings_getter = $wp_registered_widgets[ $params[0]['widget_id'] ]['callback'][0];\n\t\t$settings = $settings_getter->get_settings();\n\t\t$settings = $settings[ $params[1]['number'] ];\n\n\t\tif ( $params[0][ 'after_widget' ] == '<div class=\"clr\"></div></div></div>' && isset( $settings[ 'title' ] ) && empty( $settings[ 'title' ] ) ){\n\t\t\t$params[0][ 'before_widget' ] .= '<div class=\"widget-contentbox\">';\n\t\t}\n\n\t\treturn $params;\n\t}", "title": "" }, { "docid": "e0b1909fb5ff7af208bb57f7340e1e83", "score": "0.506424", "text": "public function addContent($content);", "title": "" }, { "docid": "c875e3acec1496dfc7606b276cac40d6", "score": "0.5053565", "text": "public function addVcParams() {\n\n\t\t\tforeach( WPBMap::getAllShortCodes() as $base => $element ) {\n\n\t\t\t\tif( $this->settings['reset_shortcodes'] && ! in_array( $base, array_merge( $this->settings['support'], array_keys( $this->app['config.factory']->get('shortcodes.shortcodes') ) ) ) ) {\n\t\n\t\t\t\t\tWPBMap::dropShortcode( $base );\n\t\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tforeach( $this->settings['params'] as $param ) {\n\n\t\t\t\tforeach( $param['shortcodes'] as $shortcode ) {\n\n\t\t\t\t\tvc_add_param( $shortcode, $param );\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "093973b17667c3d05fd46eebe1a8427b", "score": "0.50502306", "text": "public static function getParams(&$params)\n\t{\n\t\t$params->def('url', '');\n\t\t$params->def('scrolling', 'auto');\n\t\t$params->def('height', '200');\n\t\t$params->def('height_auto', '0');\n\t\t$params->def('width', '100%');\n\t\t$params->def('add', '1');\n\t\t$params->def('name', 'wrapper');\n\n\t\t$url = $params->get('url');\n\n\t\tif ($params->get('add'))\n\t\t{\n\t\t\t// Adds 'http://' if none is set\n\t\t\tif (substr($url, 0, 1) == '/')\n\t\t\t{\n\t\t\t\t// Relative url in component. use server http_host.\n\t\t\t\t$url = 'http://' . $_SERVER['HTTP_HOST'] . $url;\n\t\t\t}\n\t\t\telseif (!strstr($url, 'http') && !strstr($url, 'https'))\n\t\t\t{\n\t\t\t\t$url = 'http://' . $url;\n\t\t\t}\n\t\t}\n\n\t\t// Auto height control\n\t\tif ($params->def('height_auto'))\n\t\t{\n\t\t\t$load = 'onload=\"iFrameHeight()\"';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$load = '';\n\t\t}\n\n\t\t$params->set('load', $load);\n\t\t$params->set('url', $url);\n\n\t\treturn $params;\n\t}", "title": "" }, { "docid": "1cc6c7abf2fba4bbbf6cd1c8f9800096", "score": "0.5023696", "text": "private function moveParamAnnotations($content)\n {\n $doc = new DocBlock($content);\n $params = $doc->getAnnotationsOfType('param');\n\n // nothing to do if there are no param annotations\n if (empty($params)) {\n return $content;\n }\n\n $others = $doc->getAnnotationsOfType(['throws', 'return']);\n\n if (empty($others)) {\n return $content;\n }\n\n // get the index of the final line of the final param annotation\n $end = end($params)->getEnd();\n\n $line = $doc->getLine($end);\n\n // move stuff about if required\n foreach ($others as $other) {\n if ($other->getStart() < $end) {\n // we're doing this to maintain the original line indexes\n $line->setContent($line->getContent().$other->getContent());\n $other->remove();\n }\n }\n\n return $doc->getContent();\n }", "title": "" }, { "docid": "b228fb7a0ddc72c60d2fe7ff5cd46bd4", "score": "0.50202996", "text": "protected function checkParams()\n {\n\n }", "title": "" }, { "docid": "5acd1bc910d580275d22e6ad8af8ffc3", "score": "0.50148827", "text": "public function add($content, $configurations) {\n\t\t$htmlHeader = '';\n\t\t$errorMsg = '<div style=\"color:red\"><b>plugin ecorss error</b> : ';\n\t\t//loop around the feed\n\t\tforeach ($configurations as $config) {\n\t\t\tif (is_array($config)){\n\n\t\t\t\tif (isset($config['typeNum'])) {\n\t\t\t\t\t$title = isset($config['title']) ? $config['title'] : '';\n\t\t\t\t\t$feed = isset($config['feed']) ? $config['feed'] : 'atom';\n\t\t\t\t\tswitch($feed) {\n\t\t\t\t\t\tcase 'rss' :\n\t\t\t\t\t\t\t$feed = 'application/rss+xml';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'atom' :\n\t\t\t\t\t\tdefault :\n\t\t\t\t\t\t\t$feed = 'application/atom+xml';\n\t\t\t\t\t}\n\n\t\t\t\t\t# Define the URL of the feed\n\t\t\t\t\t$conf['data'] = 'leveluid:0';\n\t\t\t\t\t$rootPid = $this->cObj->stdWrap('',$conf); //return the id of the root page\n\t\t\t\t\t$feedURL = $this->cObj->getTypoLink_URL($rootPid, array(\"type\" => $config['typeNum']));\n\t\t\t\t\t//$feedURL = $this->cObj->getTypoLink_URL($GLOBALS['TSFE']->id, array(\"type\" => $config['typeNum']));\n\n\t\t\t\t\t# Define the <link>\n\t\t\t\t\t$htmlHeader .= '<link rel=\"alternate\" type=\"'.$feed.'\" title=\"'.$title.'\" href=\"'.$feedURL.'\" />'.chr(10);\n\t\t\t\t} else {\n\t\t\t\t\tprint $errorMsg.'parameter typeNum is missing in TypoScript. Try something like this in setup: page.headerData.xxx.myFeed.typeNum = yyy'.'</div>';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$GLOBALS['TSFE']->additionalHeaderData[$this->getClassName()] = $htmlHeader;\n\n\t\t/*\n\t\t * feed example :\n\t\t * http://www.oreillynet.com/pub/feed/20 (atom)\n\t\t * http://www.oreillynet.com/pub/feed/20?format=rss1\n\t\t * http://www.oreillynet.com/pub/feed/20?format=rss2\n\t\t */\n\t}", "title": "" }, { "docid": "046b1919187ca3a5d1b1723bab156216", "score": "0.50136966", "text": "private static function insertParams( $html, $params )\n\t\t{\n\n\t\t\t$params = array_merge( $params, self::$_params );\n\t\t\tdx( $params, 'Wiki Template Params' );\n\n\t\t\tforeach( $params as $key => $param ) {\n\t\t\t\t$key = is_int( $key ) ? $key + 1 : $key;\n\t\t\t\t$html = str_replace( '$'.$key, $param, $html );\n\t\t\t}\n\t\t\treturn $html;\n\t\t}", "title": "" }, { "docid": "ab6fdf6801367df75f6618540819d179", "score": "0.49975458", "text": "function hook_salesforce_push_params_alter() {}", "title": "" }, { "docid": "127255be13f68746da2fec015a2cb80f", "score": "0.49815744", "text": "public function addParams($params = NULL) \n\t{\n\t if (is_array($params)) {\n\t $this->_params = array_merge($params, $this->_params);\n\t }\n\t return $this;\n\t}", "title": "" }, { "docid": "671152cb64f6f09654ee88dbb5a076e7", "score": "0.49477983", "text": "public function knack_add_params(){\n\n\t\t#VC ROW PARAMS\n\t\tvc_add_param(\"vc_row\", array(\n\t\t\t\"type\" => \"dropdown\",\n\t\t\t\"class\" => \"\",\n\t\t\t\"heading\" => \"Padding (Row)\",\n\t\t\t'category' => esc_html__( 'Knack', 'js_composer' ),\n\t\t\t\"param_name\" => \"row_padding\",\n\t\t\t\"value\" => array(\n\t\t\t\t\"None\" => \"knack_row_padding_none\",\n\t\t\t\t\"Top and Bottom\" => \"knack_row_padding_top_bottom\",\n\t\t\t\t\"Top Only\" => \"knack_row_padding_top\",\n\t\t\t\t\"Bottom Only\" => \"knack_row_padding_bottom\",\n\t\t\t),\n\t\t\t'description' => esc_html__( 'Select the row padding (Top, Bottom)', 'js_composer' ),\n\t\t));\n\n\t\tvc_add_param(\"vc_row\", array(\n\t\t\t\"type\" => \"dropdown\",\n\t\t\t\"class\" => \"\",\n\t\t\t\"heading\" => \"Margin (Row)\",\n\t\t\t'category' => esc_html__( 'Knack', 'js_composer' ),\n\t\t\t\"param_name\" => \"row_margin\",\n\t\t\t\"value\" => array(\n\t\t\t\t\"None\" => \"knack_row_margin_none\",\n\t\t\t\t\"Top and Bottom\" => \"knack_row_margin_top_bottom\",\n\t\t\t\t\"Top Only\" => \"knack_row_margin_top\",\n\t\t\t\t\"Bottom Only\" => \"knack_row_margin_bottom\",\n\t\t\t),\n\t\t\t'std' => 'knack_row_margin_top_bottom',\n\t\t\t'description' => esc_html__( 'Select the row margin (Top, Bottom)', 'js_composer' ),\n\t\t));\n\n\t}", "title": "" }, { "docid": "dcf1097d3f9646905f2212d280920915", "score": "0.4937991", "text": "public function updateParams() {\n\t\tif(! is_dir($this->Dir))\n\t\t\treturn 0;\n\t\tif($this->ID == 0)\n\t\t\treturn 0;\n\n\t\t$success = true;\n\t\tglobal $dbcnf;\n\t\trequire_once\"CORE/extension_params.tbl.php\";\n\t\t$DBparams = new DBObj_CORE_extension_params;\n\t\t$DBparams->extensionId = $this->Name;\n\t\t$DBparams->find(false);\n\t\twhile($DBparams->fetch()) {\n\t\t\tif(!array_key_exists($DBparams->paramName,$this->params))\n\t\t\t\t$DBparams->delete();\n\t\t}\n\t\tforeach($this->params as $key => $val) {\n\t\t\t$DBparams = new DBObj_CORE_extension_params;\n\t\t\t$DBparams->extensionId = $this->Name;\n\t\t\t$DBparams->paramName = $key;\n\t\t\t$DBparams->find(false);\n\t\t\t$act = \"insertion\";\n\t\t\tif($DBparams->fetch()) {\n\t\t\t\t$act = \"modification\";\n\t\t\t}\n\t\t\t$DBparams->description = $val->description;\n\t\t\t$DBparams->type = (int)$val->type;\n\t\t\t$DBparams->param = $val->getExtendToText( false);\n\t\t\tif($DBparams->id>0)\n\t\t\t\t$DBparams->update();\n\t\t\telse {\n\t\t\t\t$DBparams->extensionId = $this->Name;\n\t\t\t\t$DBparams->paramName = $key;\n\t\t\t\t$DBparams->value = $val->defaultvalue;\n\t\t\t\t$DBparams->insert();\n\t\t\t}\n\t\t\tglobal $connect;\n\t\t\tif( $connect->isFailed()) {\n\t\t\t\t$this->message .= \"$act du paramètre:\".$key.\" \".$connect->errorMsg.\"{[newline]}\";\n\t\t\t\t$success = false;\n\t\t\t}\n\t\t\telse $this->message .= $act.\" du paramètre:\".$key.\"{[newline]}\";\n\t\t}\n\t\treturn $success;\n\t}", "title": "" }, { "docid": "9b3f7b19acac9401e00f16b2dd936f27", "score": "0.49298742", "text": "public static function modify_params( $params ) {\n\n\t\t\t// Save re-usable strings in var\n\t\t\t$parallax_tab = __( 'Parallax', 'total' );\n\t\t\t$s_video = __( 'Video', 'total' );\n\n\t\t\t$params['vc_row'] = array(\n\n\t\t\t\t'el_id' => array(\n\t\t\t\t\t'weight' => 99\n\t\t\t\t),\n\n\t\t\t\t'el_class' => array(\n\t\t\t\t\t'weight' => 99,\n\t\t\t\t),\n\n\t\t\t\t'css_animation' => array(\n\t\t\t\t\t'weight' => 99,\n\t\t\t\t),\n\n\t\t\t\t'full_width' => array(\n\t\t\t\t\t'weight' => 99,\n\t\t\t\t),\n\n\t\t\t\t'content_placement' => array(\n\t\t\t\t\t'weight' => 99,\n\t\t\t\t),\n\n\t\t\t\t// Change gap description\n\t\t\t\t'gap' => array(\n\t\t\t\t\t'heading' => __( 'Outer Column Gap', 'total' ),\n\t\t\t\t\t'description' => __( 'Alters the outer column gap to be used when adding backgrounds to your columns. To increase the default space between the columns without backgrounds use the \"Outer Column Gap\" setting instead.', 'total' ),\n\t\t\t\t\t'weight' => 40,\n\t\t\t\t),\n\n\t\t\t\t// Move video parallax setting\n\t\t\t\t'video_bg_parallax' => array(\n\t\t\t\t\t'group' => $s_video,\n\t\t\t\t\t'dependency' => array(\n\t\t\t\t\t\t'element' => 'video_bg',\n\t\t\t\t\t\t'value' => 'youtube',\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t\t// Move youtube url\n\t\t\t\t'video_bg_url' => array(\n\t\t\t\t\t'group' => $s_video,\n\t\t\t\t\t'dependency' => array(\n\t\t\t\t\t\t'element' => 'video_bg',\n\t\t\t\t\t\t'value' => 'youtube',\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t\t// Move video parallax speed\n\t\t\t\t'parallax_speed_video' => array(\n\t\t\t\t\t'group' => $s_video,\n\t\t\t\t\t'dependency' => array(\n\t\t\t\t\t\t'element' => 'video_bg',\n\t\t\t\t\t\t'value' => 'youtube',\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t\t// Alter Parallax dropdown\n\t\t\t\t'parallax' => array(\n\t\t\t\t\t'group' => $parallax_tab,\n\t\t\t\t\t'value' => array(\n\t\t\t\t\t\t__( 'Advanced Parallax', 'total' ) => 'vcex_parallax',\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t\t// Alter Parallax image location\n\t\t\t\t'parallax_image' => array(\n\t\t\t\t\t'group' => $parallax_tab,\n\t\t\t\t),\n\n\t\t\t\t// Alter Parallax speed location\n\t\t\t\t'parallax_speed_bg' => array(\n\t\t\t\t\t'group' => $parallax_tab,\n\t\t\t\t\t'dependency' => array(\n\t\t\t\t\t\t'element' => 'parallax',\n\t\t\t\t\t\t'value' => array( 'content-moving', 'content-moving-fade' ),\n\t\t\t\t\t),\n\t\t\t\t),\n\n\t\t\t\t// Move design options\n\t\t\t\t'css' => array(\n\t\t\t\t\t'group' => __( 'Design Options', 'total' ),\n\t\t\t\t\t'weight' => -1,\n\t\t\t\t),\n\n\t\t\t\t/* Change items to use vcex_ofswitch\n\t\t\t\t// @todo\n\t\t\t\t'full_height' => array(\n\t\t\t\t\t'type' => 'vcex_ofswitch',\n\t\t\t\t\t'vcex' => array( 'off' => '', 'on' => 'yes', ),\n\t\t\t\t\t'std' => '',\n\t\t\t\t),*/\n\n\t\t\t);\n\n\t\t\treturn $params;\n\n\t\t}", "title": "" }, { "docid": "9309e50596e8a192835bb91406d03a2e", "score": "0.4925112", "text": "function prepare_parameters($orig_params, $add_params) {\n if(!$orig_params || !is_array($orig_params)) {\n $orig_params = array();\n }\n\n if($add_params && is_array($add_params)) {\n foreach ($add_params as $key => &$val) {\n $orig_params[$key] = $val;\n }\n }\n\n return $orig_params;\n}", "title": "" }, { "docid": "39766e253129374ac9feab07f389ed6c", "score": "0.49224657", "text": "public function add($parameters, $action)\n {\n $place = count($this->map);\n $this->map[$place] = array();\n $this->map[$place]['params'] = new ParametersExpectation($parameters);\n $this->map[$place]['content'] = $action;\n }", "title": "" }, { "docid": "61b370ff5d17c06eeac6835a958509d5", "score": "0.49139127", "text": "function addParam($param) {\n\t\t$this->params[] = $param;\n\t}", "title": "" }, { "docid": "0c6326ae0708aa755ee529256c206a68", "score": "0.49119857", "text": "private function setParams($params) {\n array_push($this->params, $params);\n }", "title": "" }, { "docid": "ddc69eea59296e9f01904a3a674337bc", "score": "0.49092764", "text": "public function addParams(array $params)\n {\n $this->params = array_merge($this->params, $params);\n }", "title": "" }, { "docid": "220efc07259146ec25e1e692f489a86d", "score": "0.4904432", "text": "public static function addSignature(&$params){\r\n\t\t$api_key = self::getConfig('api_security_key');\r\n\t\t$params['timestamp'] = str_pad(time(), 10, '0', STR_PAD_LEFT);\r\n\t\t$t = self::getCompressedParameterString($params);\r\n\t\t$params['sig'] = md5($t.$api_key);\r\n\t}", "title": "" }, { "docid": "206b6eb47d9e9d7bd7e0f26f6eb3c01c", "score": "0.48892677", "text": "public function addUsage(...$params);", "title": "" }, { "docid": "324bff3c2f3e976301639be1be461098", "score": "0.48874038", "text": "protected static function addOutputParameters(XMLElement $wrapper, array &$errors = array(), array $settings = null, $handle = null) {\n $div = new XMLElement('div', false, array(\n 'id' => 'xml',\n 'class' => 'pickable'\n ));\n\n $frame = new XMLElement('div', null, array('class' => 'frame filters-duplicator'));\n $frame->setAttribute('data-interactive', 'data-interactive');\n\n $ol = new XMLElement('ol');\n $ol->setAttribute('data-add', __('Add parameter'));\n $ol->setAttribute('data-remove', __('Remove parameter'));\n\n if (isset($settings[self::getClass()], $settings[self::getClass()]['paramoutput']) && is_array($settings[self::getClass()]['paramoutput']) && !empty($settings[self::getClass()]['paramoutput'])) {\n $ii = 0;\n foreach ($settings[self::getClass()]['paramoutput'] as $param => $xpath) {\n if (is_array($param)) {\n $param = $xpath['param'];\n $xpath = $xpath['xpath'];\n }\n\n $param = General::sanitize($param);\n $xpath = General::sanitize($xpath);\n\n $li = static::addOutputParameterDuplicatorItem(false, $ii, $param, $xpath);\n $ol->appendChild($li);\n $ii++;\n }\n }\n\n // Add the template\n $li = static::addOutputParameterDuplicatorItem();\n $ol->appendChild($li);\n\n $frame->appendChild($ol);\n $div->appendChild($frame);\n\n $wrapper->appendChild($div);\n }", "title": "" }, { "docid": "63409c18fc1271b2e97d08a42e3aa48e", "score": "0.48795265", "text": "public function addParam(string $param, mixed $value): static;", "title": "" }, { "docid": "81d98614600358ff65f06b91dbd1363a", "score": "0.487784", "text": "protected function checkParams($params)\n {\n return true;\n }", "title": "" }, { "docid": "5a6877cf7e18a5a071b80cd473a30dac", "score": "0.4875681", "text": "public function editConfigContent($params, $content, $key, $str = FALSE)\n\t{\n\t\t$pattern = '/\\n\\$config\\[\\'OPTION\\'\\] = .*/';\t\n\t\t$replace = \"\\n\".'$config[\\'OPTION\\'] = ';\n\n\t\t$p = str_replace('OPTION', $key, $pattern);\n\t\t$r = str_replace('OPTION', $key, $replace);\n\n\t\tif ($str) \n\t\t{\n\t\t\t$r .= \"'\".$params[$key].\"';\";\n\t\t} \n\t\telse \n\t\t{\n\t\t\t$r .= $params[$key].';';\n\t\t}\t\t\t\n\n\t\treturn preg_replace($p, $r, $content);\t\t\n\t}", "title": "" }, { "docid": "48f3797b9b5d9fe68ee8d13868a37748", "score": "0.48651692", "text": "function FillParams($params, $editing = false)\n\t{\t\tstatic $func_called = false;\n\t\tif($func_called) return;\n\t\t#---\n\t\t\n\t\tif(isset($params['content_type']))\n\t\t{\n\t\t\t$AdvancedContent =& cms_utils::get_module('AdvancedContent');\n\t\t\t\n\t\t\t$parameters = array_merge(array('pagedata', 'searchable', 'disable_wysiwyg'), $this->_advancedAttribs);\n\t\t\t\n\t\t\t$this->_contentBlocksLoaded = false;\n\t\t\t$this->mTemplateId = isset($params['template_id']) ? $params['template_id'] : $this->mTemplateId;\n\t\t\t$this->mType = $params['content_type'];\n\t\t\t\n\t\t\tif($this->mType == 'content2' || $this->mType == 'content')\n\t\t\t{\n\t\t\t\t# add content blocks\n\t\t\t\t$this->_parse_template();\n\t\t\t\t\n\t\t\t\t$this->mParentId = isset($params['parent_id']) ? $params['parent_id'] : $this->mParentId;\n\t\t\t\t\n\t\t\t\tif(check_permission(get_userid(), 'Manage AdvancedContent Options') && $AdvancedContent->GetPreference('use_advanced_pageoptions', 0))\n\t\t\t\t{\n\t\t\t\t\t$params['feu_access'] = isset($params['feu_access']) && is_array($params['feu_access']) ? $params['feu_access'] : ($editing ? $this->CleanArray(explode(',',$this->GetPropertyValue('feu_access'))) : $this->CleanArray(explode(',',$AdvancedContent->GetPreference('feu_access'))));\n\t\t\t\t\t# if page has no parents but wants to inherit -> remove inheritance\n\t\t\t\t\tif($this->mParentId <= 0 && in_array(-1, $params['feu_access']))\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach($params['feu_access'] as $k=>$v)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($v == -1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tunset($params['feu_access'][$k]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t# if there is still inheritance -> check if there actually is any feu group selected by parents\n\t\t\t\t\t$_feuAccess = array();\n\t\t\t\t\tif(in_array(-1, $params['feu_access']))\n\t\t\t\t\t{\n\t\t\t\t\t\t# $_feuAccess contains all feu groups (of current page as well as of all parent pages)\n\t\t\t\t\t\t$_feuAccess = $this->InheritParentProp('feu_access', $params['feu_access']);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t# if we have selected any feu group -> disable caching and search\n\t\t\t\t\tif(count($_feuAccess) || (count($params['feu_access']) && !in_array(-1, $params['feu_access'])))\n\t\t\t\t\t{\n\t\t\t\t\t\t$params['cachable'] = false;\n\t\t\t\t\t\t$this->mCachable = false;\n\t\t\t\t\t\t$params['searchable'] = false;\n\t\t\t\t\t}\n\t\t\t\t\t$params['feu_access'] = implode(',', $params['feu_access']);\n\t\t\t\t\t\n\t\t\t\t\t$params['redirect_page'] = isset($params['redirect_page']) ? $params['redirect_page'] : ($editing ? $this->GetPropertyValue('redirect_page') : $AdvancedContent->GetPreference('redirect_page'));\n\t\t\t\t\tif($this->mParentId <= 0 && $params['redirect_page'] == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$params['redirect_page'] = '';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$params['feu_action'] = isset($params['feu_action']) ? $params['feu_action'] : ($editing ? $this->GetPropertyValue('feu_action') : $AdvancedContent->GetPreference('feu_action',1));\n\t\t\t\t\tif($this->mParentId <= 0 && $params['feu_action'] == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$params['feu_action'] = 1;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$params['hide_menu_item'] = isset($params['hide_menu_item']) ? $params['hide_menu_item'] : ($editing ? $this->GetPropertyValue('hide_menu_item') : $AdvancedContent->GetPreference('hide_menu_item',0));\n\t\t\t\t\tif($this->mParentId <= 0 && $params['hide_menu_item'] == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$params['hide_menu_item'] = 0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t/* do this on validation\n\t\t\t\t\tif($params['feu_access'] && $params['hide_menu_item'] == 2)\n\t\t\t\t\t{\n\t\t\t\t\t\t$params['hide_menu_item'] = $AdvancedContent->GetPreference('hide_menu_item',0);\n\t\t\t\t\t}\n\t\t\t\t\t*/\n\t\t\t\t\t\n\t\t\t\t\t$params['inherit_feu_params'] = isset($params['inherit_feu_params']) ? true : ($editing ? $this->GetPropertyValue('inherit_feu_params') : $AdvancedContent->GetPreference('inherit_feu_params'));\n\t\t\t\t\tif($this->ParentId() <= 0 && $params['inherit_feu_params'])\n\t\t\t\t\t{\n\t\t\t\t\t\t\t$params['inherit_feu_params'] = false;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif($params['inherit_feu_params']) {\n\t\t\t\t\t\t\t$params['feu_params'] = -1;\n\t\t\t\t\t\t\t$params['feu_params_smarty'] = -1;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$params['inherit_custom_params'] = isset($params['inherit_custom_params']) ? true : ($editing ? $this->GetPropertyValue('inherit_custom_params') : $AdvancedContent->GetPreference('inherit_custom_params'));\n\t\t\t\t\tif($this->ParentId() <= 0 && $params['inherit_custom_params'])\n\t\t\t\t\t{\n\t\t\t\t\t\t\t$params['inherit_custom_params'] = false;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif($params['inherit_custom_params']) {\n\t\t\t\t\t\t\t$params['custom_params'] = -1;\n\t\t\t\t\t\t\t$params['custom_params_smarty'] = -1;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$params['use_expire_date'] = isset($params['use_expire_date']) ? $params['use_expire_date'] : ($editing ? $this->GetPropertyValue('use_expire_date') : $AdvancedContent->GetPreference('use_expire_date'));\n\t\t\t\t\tif($this->mParentId <= 0 && $params['use_expire_date'] == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$params['use_expire_date'] = 0;\n\t\t\t\t\t}\n\t\t\t\t\tif($params['use_expire_date'] == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$params['start_date'] = -1;\n\t\t\t\t\t\t$params['end_date'] = -1;\n\t\t\t\t\t}\n\t\t\t\t\telse if($params['use_expire_date'] == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$params['start_date'] = '';\n\t\t\t\t\t\t$params['end_date'] = '';\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(isset($params['start_date']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$params['start_date'] = $params['start_date']['time'] + ($params['start_date']['date'] / 1000);\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$params['start_date'] = ($editing && $this->GetPropertyValue('start_date') ? $this->GetPropertyValue('start_date') : strtotime('+' . $AdvancedContent->GetPreference(\"start_date\",'1 week')));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(isset($params['end_date']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$params['end_date'] = $params['end_date']['time'] + ($params['end_date']['date'] / 1000);\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$params['end_date'] = ($editing && $this->GetPropertyValue('end_date') ? $this->GetPropertyValue('end_date') : strtotime('+' . $AdvancedContent->GetPreference(\"end_date\",'1 week'), $params['start_date']));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t# do the content property parameters\n\t\t\t\tforeach ($parameters as $oneparam)\n\t\t\t\t{\n\t\t\t\t\tif (isset($params[$oneparam]))\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->SetPropertyValueNoLoad($oneparam, $params[$oneparam]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(check_permission(get_userid(), 'Manage AdvancedContent Options') && $AdvancedContent->GetPreference('use_advanced_pageoptions', 0) && $this->GetPropertyValue('use_expire_date') && ($this->GetProperty('start_date') > time() || $this->GetProperty('end_date') < time()))\n\t\t\t\t{\n\t\t\t\t\t$params['active'] = false;\n\t\t\t\t\t$this->mActive = false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t# metadata\n\t\t\t\t$this->mMetadata = isset($params['metadata']) ? $params['metadata'] : $this->mMetadata;\n\t\t\t\t\n\t\t\t\t# contentblocks\n\t\t\t\tforeach($this->_contentBlocks as $blockId => $contentBlock)\n\t\t\t\t{\n\t\t\t\t\t$value = $contentBlock->FillBlockParams($params, $editing);\n\t\t\t\t\tif($value == '' && !$contentBlock->GetBlockProperty('allow_none'))\n\t\t\t\t\t{\n\t\t\t\t\t\t$value = $contentBlock->GetBlockProperty('default');\n\t\t\t\t\t\tif($contentBlock->GetBlockProperty('smarty'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$value = $this->DoSmarty($value);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t#$this->AddExtraProperty($blockId); # is done by _register_content_block()\n\t\t\t\t\t$this->SetPropertyValueNoLoad($blockId, $value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tparent::FillParams($params, $editing);\n\t\t\n\t\t# Why is FillParams called twice?!?\n\t\t$func_called = true;\n\t\t#---\n\t}", "title": "" }, { "docid": "855f64966ce79e2e0355d79bc31bba01", "score": "0.4859749", "text": "public function validateParams($params)\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "d449f45d85489fb4204e11c9be0b79ab", "score": "0.48442143", "text": "public function add(array $shell_options = []): bool\n\t{\n\t\t$camera_mode = $this->__get_camera_mode($shell_options);\n\n\t\tLog::info('log_msg_make_parameter_json', $this->svid);\n\t\t$template = ParamsJsonUtility::template($camera_mode);\n\n\t\tif (empty($template)) {\n\t\t\tLog::error('log_msg_load_params_failed');\n\t\t\tthrow new InvalidArgumentException(__('Load parameter.json template failed'));\n\t\t}\n\n\t\t$template = $this->_preset($template, $shell_options);\n\t\treturn $this->_add($template) ? CODE_SUCCESS : CODE_FAILED;\n\t}", "title": "" }, { "docid": "46c28b64ca3e817a368714a4a095afaa", "score": "0.48440626", "text": "public function addParameters(\\automation\\EnqueueClusterOperationRequest\\ParametersEntry $value){\n return $this->_add(2, $value);\n }", "title": "" }, { "docid": "78025de8ae25af55f6bde24287a68202", "score": "0.48286277", "text": "private function addSolrParams($params) {\n\n // Loop through conditions to add them into the query.\n foreach ($params as $param) {\n // Set the condition in the query.\n $this->query->setOption('solr_param_' . $param['parameter'], $param['value']);\n }\n }", "title": "" }, { "docid": "a212ff21640f034cce130a00373eca6a", "score": "0.48250815", "text": "function addSensorParam($param = array())\n\t{\n\t\t$this->_warnFunctionMissing( 'addSensorParam' );\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d9ee8dd2715053f59f6f1b7a88f00c52", "score": "0.48125327", "text": "public function put ($pContent = null, $pGetParams)\n {\n //to do \n }", "title": "" }, { "docid": "511077dcdd5f4704d33a04eaa239a877", "score": "0.48024106", "text": "public function addParams(...$params) {\n if ($params === null) {\n throw new InvalidArgumentException(\"Params cannot be null\");\n }\n if (is_array($params[0])) {\n $params = $params[0];\n }\n $this->params = $params;\n }", "title": "" }, { "docid": "4c5a405590482fcade5e026308f9648f", "score": "0.4801683", "text": "function setParams($params);", "title": "" }, { "docid": "793ca5fcd79721b12a21295f11d1267c", "score": "0.47874874", "text": "protected function createAdditionalCommentsParams()\n\t{\n\t}", "title": "" }, { "docid": "a885447d399ebcd762314fd6648086be", "score": "0.4786985", "text": "public function add($params = null) {\n $this->autoRender = false;\n $params = $this->request->data; \n $user_id = $this->user_save($params, SALESREP_ROLE, 'validate');\n if (is_array($user_id) && !empty($user_id)) {\n $error_msg = $this->format_validation_message($user_id);\n echo json_encode(array('result' => 0, 'error' => $error_msg));\n exit;\n }\n $this->BullhornConnection->BHConnect();\n $url = $_SESSION['BH']['restURL'] . '/entity/ClientContact?BhRestToken=' . $_SESSION['BH']['restToken'];\n $params['dateAdded'] = time();\n $post_params = json_encode($params);\n $req_method = 'PUT';\n $response = $this->BullhornCurl->curlFunction($url, $post_params, $req_method);\n\n if (isset($response['changedEntityId']) && !empty($response['changedEntityId'])) {\n $params['bullhorn_entity_id'] = $response['changedEntityId'];\n $access_token = $this->user_save($params, SALESREP_ROLE, 'save');\n $response['access_token'] = $access_token;\n $response['bullhorn_entity_id'] = strval($response['changedEntityId']);\n $response['result'] = 1;\n } else {\n $response = array('result' => 0, 'error' => 'Sorry, We faced failure in sales representative signup process');\n }\n echo json_encode($response);\n }", "title": "" }, { "docid": "74c20ff5f034c82adb6b3791c810beb9", "score": "0.47861472", "text": "function addSpecificParamsForPreview($params) {\n return $params;\n }", "title": "" }, { "docid": "4488c9899950dcf669f0fc5e3d610398", "score": "0.47819677", "text": "protected function _addStandardParams($method, &$params)\n {\n // Select the correct data format.\n if ($this->_facebook->dataFormat == Horde_Service_Facebook::DATA_FORMAT_ARRAY) {\n $params['format'] = $this->_facebook->internalFormat;\n } else {\n $params['format'] = $this->_facebook->dataFormat;\n }\n\n $params['method'] = $method;\n $params['api_key'] = $this->_facebook->apiKey;\n $params['call_id'] = microtime(true);\n if ($params['call_id'] <= $this->_last_call_id) {\n $params['call_id'] = $this->_last_call_id + 0.001;\n }\n $this->_last_call_id = $params['call_id'];\n if (!isset($params['v'])) {\n $params['v'] = '1.0';\n }\n if (!empty($this->_facebook->useSslResources)) {\n $params['return_ssl_resources'] = true;\n }\n }", "title": "" }, { "docid": "acd053686c9ef13acdc6b4f893d488c1", "score": "0.47749993", "text": "public function _checkParams()\n {\n if ($this->asCtrl->forThisAs) {\n if (isset($this->asCfg->cfg['maxWords'])) {\n if ($this->asCfg->cfg['maxWords'] < MIN_WORDS) {\n $this->asCfg->cfg['maxWords'] = MIN_WORDS;\n }\n if ($this->asCfg->cfg['maxWords'] > MAX_WORDS) {\n $this->asCfg->cfg['maxWords'] = MAX_WORDS;\n }\n }\n if (isset($this->asCfg->cfg['minChars'])) {\n if ($this->asCfg->cfg['minChars'] < MIN_CHARS) {\n $this->asCfg->cfg['minChars'] = MIN_CHARS;\n }\n if ($this->asCfg->cfg['minChars'] > MAX_CHARS) {\n $this->asCfg->cfg['minChars'] = MAX_CHARS;\n }\n }\n }\n }", "title": "" }, { "docid": "04e98283457e4b4015266ec8646e7ccd", "score": "0.47711796", "text": "function churchcal_addAddition($params) {\n $i = new CTInterface();\n $i->setParam(\"cal_id\");\n $i->setParam(\"add_date\");\n $i->setParam(\"with_repeat_yn\");\n $i->addModifiedParams();\n\n db_insert(\"cc_cal_add\")\n ->fields($i->getDBInsertArrayFromParams($params))\n ->execute(false);\n}", "title": "" }, { "docid": "c6b088d0505a35a18591d1a8a8c21b01", "score": "0.47683316", "text": "function setParams($param_array) \n {\n \n $mainframe =& JFactory::getApplication();\n $db = JFactory::getDbo();\n \n \n if ( count($param_array) > 0 ) {\n // read the existing component value(s)\n $db = JFactory::getDbo();\n $db->setQuery('SELECT params FROM #__extensions WHERE name = \"com_sportsmanagement\"');\n $params = json_decode( $db->loadResult(), true );\n //$mainframe->enqueueMessage(JText::_('setParams params_array<br><pre>'.print_r($param_array,true).'</pre>' ),'');\n //$mainframe->enqueueMessage(JText::_('setParams params aus db<br><pre>'.print_r($params,true).'</pre>' ),'');\n // add the new variable(s) to the existing one(s)\n foreach ( $param_array as $name => $value ) {\n $params[ (string) $name ] = (string) $value;\n }\n //$mainframe->enqueueMessage(JText::_('setParams params neu<br><pre>'.print_r($params,true).'</pre>' ),'');\n // store the combined new and existing values back as a JSON string\n $paramsString = json_encode( $params );\n $db->setQuery('UPDATE #__extensions SET params = ' .\n $db->quote( $paramsString ) .\n ' WHERE name = \"com_sportsmanagement\"' );\n $db->query();\n }\n \n }", "title": "" }, { "docid": "ee785055e5300175b35647ff9e87375d", "score": "0.476242", "text": "public function stdWrap_append() {}", "title": "" }, { "docid": "71e34a946b8791b8ff5faa29dbe549fd", "score": "0.47546986", "text": "public function setParameters(array $params)\n\t {\n\t \tforeach ($params as $key => $value)\n\t \t{\n\t \t\tswitch ($key)\n\t \t\t{\n\t \t\t\tcase $this->identification: // section\n\t \t\t\t\tforeach($value as $key => $value) {\n\t \t\t\t\t\t// validate section fields name\n\t \t\t\t\t\tif(!array_key_exists($key, $this->json['params']['identification'])) {\n\t \t\t\t\t\t\tthrow new InvalidArgumentException(\"$key is not valid for identification section.\");\n\t \t\t\t\t\t}\n\t \t\t\t\t\t$this->json['params']['identification'][$key] = $value;\n\t \t\t\t\t}\n\t \t\t\t\tbreak;\n\t \t\t\t\t \n\t \t\t\tcase $this->payment:\n\t \t\t\t\tforeach($value as $key => $value) {\n\t \t\t\t\t\t// validate section fields name\n\t \t\t\t\t\tif(!array_key_exists($key, $this->json['params']['payment'])) {\n\t \t\t\t\t\t\tthrow new InvalidArgumentException(\"$key is not valid for payment section\");\n\t \t\t\t\t\t}\n\t \t\t\t\t\t$this->validate($key, $value); // validator for field values\n\t \t\t\t\t\t \n\t \t\t\t\t\t$this->json['params']['payment'][$key] = $value;\n\t \t\t\t\t\t \n\t \t\t\t\t}\n\t \t\t\t\tbreak;\n\t \t\t\t\t \n\t \t\t\tcase $this->account:\n\t \t\t\t\tforeach ($value as $key => $value) {\n\t \t\t\t\t\t// validate section fields name\n\t \t\t\t\t\tif(!array_key_exists($key, $this->json['params']['account'])) {\n\t \t\t\t\t\t\tthrow new InvalidArgumentException(\"$key is not valid for account section\");\n\t \t\t\t\t\t}\n\t \t\t\t\t\t$this->validate($key, $value); // validator for field values\n\t \t\t\t\t\t \n\t \t\t\t\t\t$this->json['params']['account'][$key] = $value;\n\t \t\t\t\t}\n\t \t\t\t\t \n\t \t\t\t\tbreak;\n\t \t\t\t\t \n\t \t\t\tcase $this->frontend:\n\t \t\t\t\tforeach ($value as $key => $value) {\n\t \t\t\t\t\t// validate section field name\n\t \t\t\t\t\tif(!array_key_exists($key, $this->json['params']['frontend'])) {\n\t \t\t\t\t\t\tthrow new InvalidArgumentException(\"$key is not valid for frontend section\");\n\t \t\t\t\t\t}\n\t \t\t\t\t\t$this->validate($key, $value);\n\t \t\t\t\t\t \n\t \t\t\t\t\t$this->json['params']['frontend'][$key] = $value;\n\t \t\t\t\t}\n\t \t\t\t\t \n\t \t\t\t\tbreak;\n\t \t\t\t\t \n\t \t\t\tcase $this->customer:\n\t \t\t\t\tforeach ($value as $key => $value) {\n\t \t\t\t\t\t// validate section fields name\n\t \t\t\t\t\tif(!array_key_exists($key, $this->json['params']['customer'])) {\n\t \t\t\t\t\t\tthrow new InvalidArgumentException(\"$key is not valid for customer section\");\n\t \t\t\t\t\t}\n\t \t\t\t\t\tforeach($value as $k => $v) {\n\t \t\t\t\t\t\t// validate sub-section fields name\n\t \t\t\t\t\t\tif(!array_key_exists($k, $this->json['params']['customer'][$key])) {\n\t \t\t\t\t\t\t\tthrow new InvalidArgumentException(\"$k is not valid for $key sub-section of customer section\");\n\t \t\t\t\t\t\t}\n\t \t\t\t\t\t\t$this->json['params'][$this->customer][$key][$k] = $v;\n\t \t\t\t\t\t}\n\t \t\t\t\t}\n\t \t\t\t\tbreak;\n\t \t\t\t\t \n\t \t\t\tcase $this->merchant:\n\t \t\t\t\tforeach($value as $key => $value) {\n\t \t\t\t\t\t$this->json['params'][$this->merchant][$key] = $value;\n\t \t\t\t\t}\n\t \t\t\t\tbreak;\n\t \t\t\t\t \n\t \t\t\tdefault:\n\t \t\t\t\tthrow new OutOfBoundsException(\"You should set predefined parameter group!\");\n\t \t\t}\n\t \t}\t \t\n\t }", "title": "" }, { "docid": "3ff3daf16828a5b74f197431911f6231", "score": "0.47536966", "text": "private static function _addSignature($params) {\n self::_ksortRecursive($params);\n $signature = http_build_query($params);\n $signature = urldecode($signature);\n $params['signature'] = hash_hmac('sha1', $signature,\n self::AUTHORIZATION_SECRET);\n return $params;\n }", "title": "" }, { "docid": "916b50b1ead3444a315bbd8df86508e3", "score": "0.47536665", "text": "public function add($site_id, $page_id, $content_id, array $params)\n {\n $result = false;\n\n $content = $params['heading'] . Dlayer_Config::CONTENT_DELIMITER .\n $params['date'] . Dlayer_Config::CONTENT_DELIMITER . $params['content'];\n\n $data_id = $this->existingDataIdOrFalse($site_id, $content, 'BlogPost');\n\n if ($data_id === false) {\n $data_id = $this->addData($site_id, $params['name'], $content);\n }\n\n if ($data_id !== false) {\n $sql = \"INSERT INTO `user_site_page_content_item_blog_post` \n (\n `site_id`, \n `page_id`, \n `content_id`, \n `heading_id`, \n `format`,\n `data_id`\n ) \n VALUES \n (\n :site_id, \n :page_id, \n :content_id, \n :heading_id, \n :format,\n :data_id\n )\";\n $stmt = $this->_db->prepare($sql);\n $stmt->bindValue(':site_id', $site_id, PDO::PARAM_INT);\n $stmt->bindValue(':page_id', $page_id, PDO::PARAM_INT);\n $stmt->bindValue(':content_id', $content_id, PDO::PARAM_INT);\n $stmt->bindValue(':heading_id', $params['type'], PDO::PARAM_INT);\n $stmt->bindValue(':format', $params['format'], PDO::PARAM_INT);\n $stmt->bindValue(':data_id', $data_id, PDO::PARAM_INT);\n $result = $stmt->execute();\n }\n\n return $result;\n }", "title": "" }, { "docid": "174ddc387ab250bb9f8621d1bd78ad27", "score": "0.47482878", "text": "public function add() {\n\n\t for ($i = 0;$i < func_num_args();$i++) {\n\t \t$param = func_get_arg($i);\n\t\t\tif (is_array($param)) {\n\t\t\t\tforeach($param as $c) {\n\t\t\t\t\t$this->add($c);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->add_single($param);\n\t\t\t}\n\t }\n\t}", "title": "" }, { "docid": "a4eb788f2a2c516d9356b38f434048d0", "score": "0.4739104", "text": "function ajouter_extension_parametre($param){\n\t\tif (in_array($param, $this->extensions_parametres))\n\t\t\treturn true;\n\t\t\n\t\tif (find_in_path('cfg/params/'.$param.'.php')){\n\t\t\t$this->extensions_parametres[] = $param;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "92b22bc5327d8b877b742ce266f6ba5f", "score": "0.47390532", "text": "public function stdWrap_insertData() {}", "title": "" }, { "docid": "3e9078e0c75493a6ac2a9d923613f016", "score": "0.47357872", "text": "public function addToContent(string $param, string $value): void\n {\n $this->content[$param] = $value;\n\n }", "title": "" }, { "docid": "aaea9e409829f20fb27a8af1c7249ec0", "score": "0.47263658", "text": "public function addCustomParameter($param, $value)\n {\n if (extension_loaded('newrelic')) {\n newrelic_add_custom_parameter($param, $value);\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "72e2c53843a356aca61d1598c7f03173", "score": "0.47171277", "text": "function sed_check_params($params) \n {\n $res = array();\n foreach ($params as $key => $val)\n {\n if (!empty($val)) { $res[$key] = $val; }\n }\n return $res; \n }", "title": "" }, { "docid": "c37736b36e149ede3743f6162a4e4ce5", "score": "0.47168502", "text": "public function addTopic($topicTitle, $content, $section, $userArr){\n $sql = \"CALL P_ADD_TOPIC(?,?,?,?,@p_result)\";\n $paramAttr = [];\n $paramAttr[] = $userArr[\"userId\"];\n $paramAttr[] = $topicTitle;\n $paramAttr[] = $content;\n $paramAttr[] = $section;\n $resultAttr = DB::callProcedure($sql,$paramAttr);\n if($resultAttr['@p_result']==1){\n return 1;\n }\n return 0;\n }", "title": "" }, { "docid": "9ab2464f75cb3b48fc5155da58c4e354", "score": "0.47086817", "text": "function agregar_parametros($parametros=array())\n\t{\n\t\t$this->parametros_ws = $parametros;\t\t\n\t}", "title": "" }, { "docid": "c3a2f1f49a88733833e8b5c53b6ee650", "score": "0.47060397", "text": "function setParams($param_array) \n {\n $mainframe =& JFactory::getApplication();\n $db = JFactory::getDbo();\n /*\n if ( count($param_array) > 0 )\n {\n // store the combined new and existing values back as a JSON string\n $paramsString = json_encode( $param_array );\n $db->setQuery('UPDATE #__extensions SET params = ' .\n $db->quote( $paramsString ) .\n ' WHERE name = \"joomleague\" and type =\"component\"' );\n $db->query();\n $mainframe->enqueueMessage(JText::_('Joomleague Konfiguration gesichert'),'');\n }\n */ \n \n if ( count($param_array) > 0 ) {\n // read the existing component value(s)\n $db = JFactory::getDbo();\n $db->setQuery('SELECT params FROM #__extensions WHERE name = \"joomleague\" and type =\"component\"');\n $params = json_decode( $db->loadResult(), true );\n //$mainframe->enqueueMessage(JText::_('setParams params<br><pre>'.print_r($params,true).'</pre>' ),'');\n // add the new variable(s) to the existing one(s)\n foreach ( $param_array as $name => $value ) {\n $params[ (string) $name ] = (string) $value;\n }\n // store the combined new and existing values back as a JSON string\n $paramsString = json_encode( $params );\n $db->setQuery('UPDATE #__extensions SET params = ' .\n $db->quote( $paramsString ) .\n ' WHERE name = \"joomleague\" and type =\"component\"' );\n $db->query();\n } \n \n }", "title": "" }, { "docid": "75afc1dc837c351018a38df2a5283131", "score": "0.4698868", "text": "function ws_images_add($params, $service)\n{\n global $conf, $user, $logger;\n\n foreach ($params as $param_key => $param_value)\n {\n $logger->debug(sprintf(\n '[pwg.images.add] input param \"%s\" : \"%s\"',\n $param_key,\n is_null($param_value) ? 'NULL' : $param_value\n ), 'WS');\n }\n\n if ($params['image_id'] > 0)\n {\n $query = '\nSELECT COUNT(*)\n FROM '. IMAGES_TABLE .'\n WHERE id = '. $params['image_id'] .'\n;';\n list($count) = pwg_db_fetch_row(pwg_query($query));\n if ($count == 0)\n {\n return new PwgError(404, 'image_id not found');\n }\n }\n\n // does the image already exists ?\n if ($params['check_uniqueness'])\n {\n if ('md5sum' == $conf['uniqueness_mode'])\n {\n $where_clause = \"md5sum = '\".$params['original_sum'].\"'\";\n }\n if ('filename' == $conf['uniqueness_mode'])\n {\n $where_clause = \"file = '\".$params['original_filename'].\"'\";\n }\n\n $query = '\nSELECT COUNT(*)\n FROM '. IMAGES_TABLE .'\n WHERE '. $where_clause .'\n;';\n list($counter) = pwg_db_fetch_row(pwg_query($query));\n if ($counter != 0)\n {\n return new PwgError(500, 'file already exists');\n }\n }\n\n // due to the new feature \"derivatives\" (multiple sizes) introduced for\n // Piwigo 2.4, we only take the biggest photos sent on\n // pwg.images.addChunk. If \"high\" is available we use it as \"original\"\n // else we use \"file\".\n remove_chunks($params['original_sum'], 'thumb');\n\n if (isset($params['high_sum']))\n {\n $original_type = 'high';\n remove_chunks($params['original_sum'], 'file');\n }\n else\n {\n $original_type = 'file';\n }\n\n $file_path = $conf['upload_dir'].'/buffer/'.$params['original_sum'].'-original';\n\n merge_chunks($file_path, $params['original_sum'], $original_type);\n chmod($file_path, 0644);\n\n include_once(PHPWG_ROOT_PATH.'admin/include/functions_upload.inc.php');\n\n $image_id = add_uploaded_file(\n $file_path,\n $params['original_filename'],\n null, // categories\n isset($params['level']) ? $params['level'] : null,\n $params['image_id'] > 0 ? $params['image_id'] : null,\n $params['original_sum']\n );\n\n $info_columns = array(\n 'name',\n 'author',\n 'comment',\n 'date_creation',\n );\n\n $update = array();\n foreach ($info_columns as $key)\n {\n if (isset($params[$key]))\n {\n $update[$key] = $params[$key];\n }\n }\n\n if (count(array_keys($update)) > 0)\n {\n single_update(\n IMAGES_TABLE,\n $update,\n array('id' => $image_id)\n );\n }\n\n $url_params = array('image_id' => $image_id);\n\n // let's add links between the image and the categories\n if (isset($params['categories']))\n {\n ws_add_image_category_relations($image_id, $params['categories']);\n\n if (preg_match('/^\\d+/', $params['categories'], $matches))\n {\n $category_id = $matches[0];\n\n $query = '\nSELECT id, name, permalink\n FROM '. CATEGORIES_TABLE .'\n WHERE id = '. $category_id .'\n;';\n $result = pwg_query($query);\n $category = pwg_db_fetch_assoc($result);\n\n $url_params['section'] = 'categories';\n $url_params['category'] = $category;\n }\n }\n\n // and now, let's create tag associations\n if (isset($params['tag_ids']) and !empty($params['tag_ids']))\n {\n set_tags(\n explode(',', $params['tag_ids']),\n $image_id\n );\n }\n\n invalidate_user_cache();\n\n return array(\n 'image_id' => $image_id,\n 'url' => make_picture_url($url_params),\n );\n}", "title": "" }, { "docid": "ccc19f9b7184e526d70f92c928cc5b8d", "score": "0.46945468", "text": "private function addContextParams(&$params) {\n\t\t\n\t\tif((isset($this->installID) && isset($this->installSecret)) && (!empty($this->installID) && !empty($this->installSecret))) {\n\t\t\t$params['installID'] = $this->installID;\n\t\t\t$params['installSecret'] = $this->installSecret;\n\t\t} else {\n\t\t\tthrow new LucidGeckoException('Missing install context information for the application. It is not possible to call an API method without an InstallID and InstallSecret specified.');\n\t\t}\n\t\t\n\t\tif(isset($this->contactCompany) && array_key_exists('GUID', $this->contactCompany) && !empty($this->contactCompany['GUID'])) {\n\t\t\t$params['contactCompanyGUID'] = $this->contactCompany['GUID'];\n\t\t}\n\t\t\n\t\tif(isset($this->person) && array_key_exists('GUID', $this->person) && !empty($this->person['GUID'])) {\n\t\t\t$params['personGUID'] = $this->person['GUID'];\n\t\t}\n\t\t\t\t\n\t\t//User information does not always have to be passed.\n\t\tif(!array_key_exists('userID',$params) || !array_key_exists('userSecret',$params)) {\n\t\t\tif(isset($this->user)) {\n\t\t\t\t$params['userID'] = $this->user['ID'];\n\t\t\t\t$params['userGUID'] = $this->user['GUID'];\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "8e20333d9b80d7461fbcdb6e5c837bef", "score": "0.46787485", "text": "public function AddParameter($value){\r\n if(!isset($this->params))\r\n $this->params = array();\r\n \r\n //array_push($this->params, $value);\r\n\t$this->params[] = $value;\r\n }", "title": "" }, { "docid": "6214990bf535e981c6c56eb59cb0e899", "score": "0.46773776", "text": "public function addHiddenForParams(&$params, $pObj) {\n //Enable function\n\t\t$found=false;\n if ($pObj->conf['extra.']['saveParamsFromUrl'] && $GLOBALS['TSFE']->loginUser == 0) {\n if (isset($pObj->piVars['paramsFromUrl'])) {\n $params['hiddenArray']['paramsFromUrl'] = '<input type=\"hidden\" name=\"tx_t3registration_pi1[paramsFromUrl]\" value=\"' . $pObj->piVars['paramsFromUrl'] . '\" />';\n } else {\n $paramsWhitelist = (isset($pObj->conf['extra.']['saveParamsFromUrl.']['list']) || isset($pObj->conf['extra.']['saveParamsFromUrl.']['list.'])) ? $pObj->cObj->stdWrap($pObj->conf['extra.']['saveParamsFromUrl.']['list'], $pObj->conf['extra.']['saveParamsFromUrl.']['list.']) : '';\n $paramsList = explode('&', urldecode(t3lib_div::getIndpEnv('QUERY_STRING')));\n $paramToSave = array();\n if (is_array($paramsList) && count($paramsList)) {\n foreach ($paramsList as $item) {\n $tempSingleParam = explode('=', $item);\n if (t3lib_div::inList($paramsWhitelist, $tempSingleParam[0])) {\n\t\t\t\t\t\t\t$found = true;\n $paramToSave[] = htmlentities(strip_tags($item));\n }\n }\n }\n if (count($paramToSave) > 0 && $found) {\n $params['hiddenArray']['paramsFromUrl'] = '<input type=\"hidden\" name=\"tx_t3registration_pi1[paramsFromUrl]\" value=\"' . implode(',', $paramToSave) . '\" />';\n }\n }\n }\n }", "title": "" }, { "docid": "aa6d2fd2c76c53bee3c03486ca6998f8", "score": "0.4674629", "text": "public function getAddUrl($params = array())\n {\n $GLOBALS['no_compress'] = true;\n\n $browser = $GLOBALS['injector']->getInstance('Horde_Browser');\n if ($browser->hasFeature('javascript')) {\n if ($browser->hasFeature('dom')) {\n $addurl = Horde::url('add.php', true, -1)->add('iframe', 1);\n $url = \"javascript:(function(){o=document.createElement('div');o.id='overlay';o.style.background='#000';o.style.position='absolute';o.style.top=0;o.style.left=0;o.style.width='100%';o.style.height='100%';o.style.zIndex=5000;o.style.opacity=.8;document.body.appendChild(o);i=document.createElement('iframe');i.id='frame';i.style.zIndex=5001;i.style.border='thin solid #000';i.src='$addurl'+'&title=' + encodeURIComponent(document.title) + '&url=' + encodeURIComponent(location.href);i.style.position='absolute';i.style.width='350px';i.style.height='150px';i.style.left='100px';i.style.top='100px';document.body.appendChild(i);l=document.createElement('a');l.style.position='absolute';l.style.background='#ccc';l.style.color='#000';l.style.border='thin solid #000';l.style.display='block';l.style.top='250px';l.style.left='100px';l.style.zIndex=5001;l.style.padding='5px';l.appendChild(document.createTextNode('\" . _(\"Close\") . \"'));l.onclick=function(){var o=document.getElementById('overlay');o.parentNode.removeChild(o);var i=document.getElementById('frame');i.parentNode.removeChild(i);this.parentNode.removeChild(this);};document.body.appendChild(l);})()\";\n } else {\n $addurl = Horde::url('add.php', true, -1)->add('popup', 1);\n $url = \"javascript:d = new Date(); w = window.open('$addurl' + '&amp;title=' + encodeURIComponent(document.title) + '&amp;url=' + encodeURIComponent(location.href) + '&amp;d=' + d.getTime(), d.getTime(), 'height=200,width=400'); w.focus();\";\n }\n } else {\n // Fallback to a regular URL\n $url = Horde::url('add.php', true)->add($params);\n }\n\n return $url;\n }", "title": "" }, { "docid": "fe0bb537a8ab7a20d65b03aac06ca765", "score": "0.46725", "text": "public function hookActionObjectAddressAddAfter($params)\n {\n if (isset($params['object']->test_input) && $params['object']->test_input) {\n $objTestHelper = new WkTestHelper();\n $this->saveFieldValue($objTestHelper, $params['object']);\n }\n }", "title": "" }, { "docid": "451ce01be7946cf2cab039b32c01f0d7", "score": "0.4672159", "text": "public function addParams($params)\n {\n if(!is_array($params)) {\n return $this;\n }\n if(!is_array($this->params)) {\n $this->params = array();\n }\n $this->params = array_merge($this->params, $params);\n\n return $this;\n }", "title": "" }, { "docid": "f4c0ec1abcd4ce2344d56c59ca108961", "score": "0.46685773", "text": "public function hasParams(): bool\n {\n return vscf_message_info_custom_params_has_params_php($this->ctx);\n }", "title": "" }, { "docid": "cd3eb60cee7cc2d0a15028a4b12150d2", "score": "0.46685305", "text": "function add_parametro($params)\r\n {\r\n $this->db->insert('parametros',$params);\r\n return $this->db->insert_id();\r\n }", "title": "" }, { "docid": "b32a8a3aeb6067b9bb73dfa187641fa0", "score": "0.4646383", "text": "public function setParams($params);", "title": "" }, { "docid": "16f76d1ad014bef7b7b0cf4db460e30d", "score": "0.46441612", "text": "private static function _bakeActionParams(array $params, $addDefaultValues=TRUE)\n {\n $contents = array();\n\n foreach ($params as $param) {\n $content = '';\n\n if (isset($param['passed_by_ref']) === TRUE && $param['passed_by_ref'] === TRUE) {\n $content .= '&';\n }\n\n $content .= '$'.$param['name'];\n\n if (isset($param['value']) === TRUE && $addDefaultValues === TRUE) {\n $content .= '='.$param['value'];\n }\n\n $contents[] = $content;\n }\n\n $contents = implode(', ', $contents);\n\n return $contents;\n\n }", "title": "" }, { "docid": "861601772543f7fe330e73c91af0550f", "score": "0.46357632", "text": "public function validateParams($params);", "title": "" }, { "docid": "1b7f13c3ef735c48ea7d8fed822a5596", "score": "0.46319643", "text": "private function setParams($params){\n if(isset($params)){\n if(is_array($params)){\n foreach($params as $key=>$param){\n $this->$key = $param;\n }\n }\n }\n $this->setCallingAndInitFiles();\n return $this->checkForRequiredParams();\n }", "title": "" }, { "docid": "9478591dc9ecadb0535f798a9bc74857", "score": "0.46311343", "text": "public function params() {\n\n $sc_settings = array(\n \"base\" => 'vc_row',\n \"name\" => __(\"Row\", 'cleanstart'),\n \"description\" => __('Create an section to add content', 'cleanstart'),\n \"class\" => '',\n \"weight\" => 1,\n \"category\" => __('Content', 'js_composer'),\n \"icon\" => \"icon-wpb-row\",\n 'is_container' => true,\n 'show_settings_on_create' => false,\n 'js_view' => 'VcRowView',\n \"params\" => array(\n\n array(\n \"param_name\" => \"title_header\", \n \"type\" => \"textfield\", \n \"heading\" => __(\"Header Text\", 'cleanstart'), \n \"value\" => '', \n \"description\" => __(\"Leave empty to remain invisible\", 'cleanstart'), \n \"admin_label\" => false, \n ),\n\n array(\n \"param_name\" => \"title_subheader\", \n \"type\" => \"textfield\", \n \"heading\" => __(\"Subheader Text\", 'cleanstart'), \n \"value\" => '', \n \"description\" => __(\"Enter a subheader text for the section\", 'cleanstart'), \n \"admin_label\" => false, \n ),\n\n array(\n \"param_name\" => \"title_style\", \n \"type\" => \"dropdown\",\n \"heading\" => __(\"Header style\", 'cleanstart'),\n \"value\" => array('Fancy'=>'fancy', 'Elegant'=>'elegant'),\n \"description\" => __(\"Choose a layout for your header/subheader texts\", 'cleanstart'),\n \"admin_label\" => false, \n ),\n\n array(\n \"param_name\" => \"background\",\n \"type\" => \"dropdown\",\n \"heading\" => __(\"Color setup\", 'cleanstart'),\n \"value\" => array('Light'=>'light_section', 'Dark'=>'dark_section', 'Skin colored'=>'skincolored_section'),\n \"description\" => __(\"Choose a color setup for this section\", 'cleanstart'),\n \"admin_label\" => false, \n ),\n array(\n \"param_name\" => \"background_image\",\n \"type\" => \"attach_image\",\n \"heading\" => __(\"Background Image\", 'cleanstart'),\n \"value\" => '',\n \"description\" => __(\"Upload/select a background image for this section\", 'cleanstart'),\n \"admin_label\" => false, \n ),\n array(\n \"param_name\" => \"parallax\",\n \"type\" => \"dropdown\",\n \"heading\" => __(\"Parallax effect\", 'cleanstart'),\n \"value\" => array('Disable'=>'off', 'Enable'=>'on'),\n \"description\" => __(\"Effect will be visible only if you have set a background image\", 'cleanstart'),\n \"admin_label\" => false, \n ),\n array(\n \"param_name\" => \"top_margin\",\n \"type\" => \"dropdown\",\n \"heading\" => __(\"Remove top margin\", 'cleanstart'),\n \"value\" => array('No'=>'off', 'Yes'=>'on'),\n \"description\" => __(\"ATTENTION: select 'Yes' to remove possible top margin on top\", 'cleanstart'),\n \"admin_label\" => false, \n ),\n array(\n \"param_name\" => \"triangles\",\n \"type\" => \"dropdown\",\n \"heading\" => __(\"Top Side Corners\", 'cleanstart'),\n \"value\" => array('Hide'=>'off', 'Show'=>'on'),\n \"description\" => __(\"Enable/disable the top side corners effect\", 'cleanstart'),\n \"admin_label\" => false \n ),\n array(\n \"param_name\" => \"section_id\", \n \"type\" => \"textfield\", \n \"heading\" => __(\"Section ID\", 'cleanstart'), \n \"value\" => '', \n \"description\" => __(\"Give your section a unique ID \", 'cleanstart'), \n \"admin_label\" => false, \n ),\n array(\n \"param_name\" => \"extra_class\", \n \"type\" => \"textfield\", \n \"heading\" => __(\"Extra class\", 'cleanstart'), \n \"value\" => '', \n \"description\" => __(\"Give your extra class(es) \", 'cleanstart'), \n \"admin_label\" => false, \n ),\n )\n );\n\n return $sc_settings;\n }", "title": "" }, { "docid": "96ff7395792bf875b88afa8dbe24bdaf", "score": "0.46176365", "text": "private function addParams($params_array)\n {\n if (empty($this->params) && is_array($params_array)) {\n $keys = array_keys($params_array);\n foreach ($keys as $x => &$key) {\n $this->binder($key, $params_array[$key]);\n }\n }\n }", "title": "" }, { "docid": "f8e68d5ef20dae480c22a5a8ecb1c2a1", "score": "0.46170184", "text": "function getParams() {\n global $config;\n\n if (isset($_GET['moss'])) {\n $params['moss'] = $_GET['moss'];\n }\n\n if (isset($_GET['lines'])) {\n $params['lines'] = $_GET['lines'];\n } else {\n $params['lines'] = 0;\n }\n\n if (isset($_GET['no_lines'])) {\n $params['no_lines'] = $_GET['no_lines'];\n } else {\n $params['no_lines'] = false;\n }\n\n\n if (isset($_GET['no_per'])) {\n $params['no_per'] = $_GET['no_per'];\n } else {\n $params['no_per'] = false;\n }\n\n if (isset($_GET['no_width'])) {\n $params['no_width'] = $_GET['no_width'];\n } else {\n $params['no_width'] = false;\n }\n\n $config['params'] = $params;\n}", "title": "" }, { "docid": "6e889e196c6303d50dd1a9bf6f7a78bf", "score": "0.4611329", "text": "function setParams(DynamicValue $p_params):void\n {\n $this->params=$p_params;\n }", "title": "" }, { "docid": "946e3a82a53da7167aa55cbedb743084", "score": "0.4609764", "text": "static private function treatClientParams()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "a6b71800420cbfea347ebe538b1f86a9", "score": "0.4606113", "text": "public function addParam($name, $value)\n\t{\t\t \n\t\tif (!is_array($value)) {\n\n\t\t\t$this->_params[$name] = $this->_toJsPrimitive($value);\n\n\t\t} else {\n\t\t\t\n\t\t\tif (is_object($value) || $this->_isAssoc($value)) {\n\t\n\t\t\t\t$this->_params[$name] = json_encode($value);\n\t\n\t\t\t} else {\n\n\t\t\t\t$array = '[{items}]';\n\n\t\t\t\t$items_string = '';\n\n\t\t\t\tforeach ($value as $item) {\n\t\t\t\t\t$items_string .= $this->_toJsPrimitive($item) . ',';\n\t\t\t\t}\n\n\t\t\t\t$items_string = substr($items_string, 0, -1);\n\n\t\t\t\t$array = str_replace('{items}', $items_string, $array);\n\n\t\t\t\t$this->_params[$name] = $array;\n\n\n\t\t\t}\n\t\t}\n\t\t\n\n\t}", "title": "" }, { "docid": "d39adb1737986b55f8ae1f497b1e6fce", "score": "0.4592319", "text": "protected function logParams()\n {\n if (!$this->params) {\n return;\n }\n if (!$this->types) {\n $this->debug->log('parameters', $this->params);\n return;\n }\n $params = array();\n foreach ($this->params as $name => $value) {\n $params[$name] = array(\n 'value' => $value,\n );\n if (!isset($this->types[$name])) {\n continue;\n }\n $type = $this->types[$name];\n $params[$name]['type'] = $type; // integer value\n if (isset(self::$constants[$type])) {\n $params[$name]['type'] = new Abstraction(Abstracter::TYPE_CONST, array(\n 'name' => self::$constants[$type],\n 'value' => $type,\n ));\n }\n }\n $this->debug->table('parameters', $params);\n }", "title": "" }, { "docid": "ede6dba3bf6bb0bd2b97da985f163497", "score": "0.45918375", "text": "abstract public function appParams();", "title": "" }, { "docid": "57331b96f8ee2349b8bcf8cde6159246", "score": "0.45906055", "text": "public function add_ppp_secret($param){\n $input = array(\n 'command' => '/ppp/secret/add'\n );\n $out = array_merge($input, $param);\n return $this->query($out);\n }", "title": "" }, { "docid": "425468b9cf6261acaf2dda4c9f51ff30", "score": "0.45896056", "text": "public function addEvent($params)\n\t{\n\t\t$p['message'] = (string) json_encode($params);\n\n\t\t$result = $this->post_request($p);\n\n\t\t$this->_result = $result;\n\t\treturn $this->_result;\n\t}", "title": "" }, { "docid": "cbedcd6ee25f37d283c365ab16b75bbc", "score": "0.45759144", "text": "public abstract function addCustomParameter($name, $value);", "title": "" }, { "docid": "e9c82f2744c70096f600d177981bd5ed", "score": "0.45717537", "text": "protected function _configure_parameters($parms)\n\t{\n\t\tif ( ! is_array($parms))\n\t\t{\n\t\t\t$parms = array();\n\t\t}\n\n\t\t$custom = Arr::path($this->_service_config, 'custom.parms', array());\n\t\tif (is_array($custom) AND count($custom) > 0)\n\t\t{\n\t\t\t// Process removals\n\t\t\t$remove = Arr::get($custom, 'remove', FALSE);\n\t\t\tif (is_array($remove) AND count($remove) > 0)\n\t\t\t{\n\t\t\t\tforeach ($remove as $name)\n\t\t\t\t{\n\t\t\t\t\tif (array_key_exists($name, $parms))\n\t\t\t\t\t{\n\t\t\t\t\t\tunset($parms[$name]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Process additions\n\t\t\t$add = Arr::get($custom, 'add', FALSE);\n\t\t\tif (is_array($add) AND count($add) > 0)\n\t\t\t{\n\t\t\t\tforeach ($add as $name => $value)\n\t\t\t\t{\n\t\t\t\t\t$temp = Arr::get($parms, $name);\n\t\t\t\t\tif (empty($temp))\n\t\t\t\t\t{\n\t\t\t\t\t\t$parms[$name] = $value;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Configure authentication parameters that are passed as request parameters (instead of via HTTP headers)\n\t\treturn $this->_configure_auth_parms($parms);\n\t}", "title": "" }, { "docid": "d902647973a1fee33b8819e1d95ed8ec", "score": "0.45698932", "text": "function _loadParams($pluginid, $extraParams) {}", "title": "" }, { "docid": "2cad6229ae34b5bdf74c0ecb99b85a03", "score": "0.4567245", "text": "function privAdd($p_filedescr_list, &$p_result_list, &$p_options)\n {\n }", "title": "" }, { "docid": "702cbacf574c239b746c143b0ea87b29", "score": "0.4564101", "text": "public function onPrepareComponentParams($params)\n\t{\n\t\t$this->errorCollection = new Main\\ErrorCollection();\n\n\t\t$params['PATH_TO_PAYMENT'] = trim((string)($params['PATH_TO_PAYMENT'] ?? ''));\n\t\tif ($params['PATH_TO_PAYMENT'] === '')\n\t\t{\n\t\t\t$params['PATH_TO_PAYMENT'] = '/personal/order/payment/';\n\t\t}\n\t\telseif (mb_substr($params['PATH_TO_PAYMENT'], -1) !== '/')\n\t\t{\n\t\t\t$params['PATH_TO_PAYMENT'] .= '/';\n\t\t}\n\n\t\t$params['SET_TITLE'] = (string)($params['SET_TITLE'] ?? 'Y');\n\n\t\tif (!isset($params[\"ELIMINATED_PAY_SYSTEMS\"]) || !is_array($params[\"ELIMINATED_PAY_SYSTEMS\"]))\n\t\t{\n\t\t\t$params[\"ELIMINATED_PAY_SYSTEMS\"] = array();\n\t\t}\n\n\t\t$params['REFRESH_PRICES'] = (string)($params['REFRESH_PRICES'] ?? 'N');\n\t\tif ($params['REFRESH_PRICES'] === 'Y')\n\t\t{\n\t\t\t$this->isRefreshPrice = true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$params['REFRESH_PRICES'] = 'N';\n\t\t}\n\n\t\t$params['ALLOW_INNER'] = (string)($params['ALLOW_INNER'] ?? 'N');\n\t\tif ($params['ALLOW_INNER'] !== 'Y')\n\t\t{\n\t\t\t$params['ALLOW_INNER'] = 'N';\n\t\t}\n\t\t$params['ONLY_INNER_FULL'] = (string)($params['ONLY_INNER_FULL'] ?? 'N');\n\t\tif ($params['ONLY_INNER_FULL'] !== 'Y')\n\t\t{\n\t\t\t$params['ONLY_INNER_FULL'] = 'N';\n\t\t}\n\t\tif (!CBXFeatures::IsFeatureEnabled('SaleAccounts'))\n\t\t{\n\t\t\t$params['ALLOW_INNER'] = 'N';\n\t\t\t$params['ONLY_INNER_FULL'] = 'N';\n\t\t}\n\n\t\t// region Hidden parameters\n\t\t$params['NAME_CONFIRM_TEMPLATE'] = 'confirm_template';\n\n\t\t$params['TEMPLATE_PATH'] = $this->getTemplateName();\n\n\t\tif (empty($params['ACCOUNT_NUMBER']))\n\t\t{\n\t\t\t$this->errorCollection->setError(new Main\\Error(Loc::getMessage(\"SOPC_ERROR_ORDER_NOT_EXISTS\")));\n\t\t}\n\n\t\tif (empty($params['PAYMENT_NUMBER']))\n\t\t{\n\t\t\t$this->errorCollection->setError(new Main\\Error(Loc::getMessage(\"SOPC_ERROR_PAYMENT_NOT_EXISTS\")));\n\t\t}\n\n\t\t$params['INNER_PAYMENT_SUM'] = (float)($params['INNER_PAYMENT_SUM'] ?? 0);\n\t\t$params['AJAX_DISPLAY'] = (string)($params['AJAX_DISPLAY'] ?? 'N');\n\t\t$params['NEW_PAY_SYSTEM_ID'] = (int)($params['NEW_PAY_SYSTEM_ID'] ?? 0);\n\t\t$params['RETURN_URL'] = trim((string)($params['RETURN_URL'] ?? ''));\n\t\t// endregion\n\n\t\treturn $params;\n\t}", "title": "" }, { "docid": "926f338730697444d4a2dd47e20ee0f3", "score": "0.45604107", "text": "static public function treatInParams() \n\t{\n\t\t\n\t}", "title": "" }, { "docid": "c1692e6595fdc0f16f71aae5f4e9c43e", "score": "0.45588806", "text": "public function addHttpParam(IAmRequestParam $oParam);", "title": "" }, { "docid": "93dcf86afd88c985b73ddd2f2c0fc412", "score": "0.45560333", "text": "private function additionalParameters(array $params,array $extra, $extraDefaults=[]){\n $params=array_merge($params,$extra);\n\n $params=$this->addDefaultValues($params, $extraDefaults);\n\n return $params;\n }", "title": "" } ]
7aef93469e8e1a3a8758f47ee0b2ad19
Operation deleteIntegrationHubWithHttpInfo Delete Integration Hub
[ { "docid": "2ee8f973d086fd63dcec0528929ef4c4", "score": "0.638367", "text": "public function deleteIntegrationHubWithHttpInfo($integration_hub_id)\n {\n $returnType = 'string';\n $request = $this->deleteIntegrationHubRequest($integration_hub_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 204:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n 'string',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 400:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Funeralzone\\LookerClient\\Model\\Error',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 404:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Funeralzone\\LookerClient\\Model\\Error',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" } ]
[ { "docid": "4f3dfa2efbf306e9ba98da94fe21579b", "score": "0.6304176", "text": "protected function deleteIntegrationHubRequest($integration_hub_id)\n {\n // verify the required parameter 'integration_hub_id' is set\n if ($integration_hub_id === null || (is_array($integration_hub_id) && count($integration_hub_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $integration_hub_id when calling deleteIntegrationHub'\n );\n }\n\n $resourcePath = '/integration_hubs/{integration_hub_id}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($integration_hub_id !== null) {\n $resourcePath = str_replace(\n '{' . 'integration_hub_id' . '}',\n ObjectSerializer::toPathValue($integration_hub_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n \n if($headers['Content-Type'] === 'application/json') {\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass) {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n // array has no __toString(), so we should encode it manually\n if(is_array($httpBody)) {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));\n }\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "ca605bc3ec5cb2e35c3b89cd85d6a563", "score": "0.592482", "text": "public function deleteIntegrationHubAsyncWithHttpInfo($integration_hub_id)\n {\n $returnType = 'string';\n $request = $this->deleteIntegrationHubRequest($integration_hub_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "9e675b9533ea0c7e23cdb9ebf0ed1803", "score": "0.54692394", "text": "private function deleteApiEndpoint()\n {\n $websiteId = $this->context->getRequest()->getParam('website');\n\n $scope = 'default';\n $scopeId = '0';\n\n if ($websiteId) {\n $scope = 'websites';\n $scopeId = $websiteId;\n }\n\n $this->resourceConfig->deleteConfig(\n \\Dotdigitalgroup\\Email\\Helper\\Config::PATH_FOR_API_ENDPOINT,\n $scope,\n $scopeId\n );\n }", "title": "" }, { "docid": "7adea6bb5fc05d2e592777a6b0ee7ed1", "score": "0.5286783", "text": "public function delete()\n {\n $this->_api->doRequest(\"DELETE\", \"{$this->getBaseApiPath()}\");\n }", "title": "" }, { "docid": "c5107c247d55018e5e831ec03382cf71", "score": "0.5276121", "text": "public function deleteIntegrationWithHttpInfo($integrationId)\n {\n $returnType = '\\PureCloudPlatform\\Client\\V2\\Model\\Integration';\n $request = $this->deleteIntegrationRequest($integrationId);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\Integration',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 400:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 401:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 403:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 404:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 413:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 415:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 429:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 500:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 503:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 504:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PureCloudPlatform\\Client\\V2\\Model\\ErrorBody',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "119554ecbf4a3adf1c5e244b35e2acbf", "score": "0.5197494", "text": "public function deleteVpnGateway($request);", "title": "" }, { "docid": "0582a9ca8d8a6fd16a797ea6e90a6725", "score": "0.51949966", "text": "public function deleteIntegrationAsyncWithHttpInfo($integrationId)\n {\n $returnType = '\\PureCloudPlatform\\Client\\V2\\Model\\Integration';\n $request = $this->deleteIntegrationRequest($integrationId);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "757d6ad9ffd8bf0b6dfd9251101636e5", "score": "0.5179022", "text": "public function delEntityWithHttpInfo()\n {\n // parse inputs\n $resourcePath = \"/{uuid}\";\n $httpBody = '';\n $queryParams = [];\n $headerParams = [];\n $formParams = [];\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json']);\n if (!is_null($_header_accept)) {\n $headerParams['Accept'] = $_header_accept;\n }\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']);\n\n // default format to json\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\n\n \n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n } elseif (count($formParams) > 0) {\n $httpBody = $formParams; // for HTTP post (form)\n }\n // make the API Call\n try {\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\n $resourcePath,\n 'DELETE',\n $queryParams,\n $httpBody,\n $headerParams,\n null,\n '/{uuid}'\n );\n\n return [null, $statusCode, $httpHeader];\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n\n throw $e;\n }\n }", "title": "" }, { "docid": "5f17a7cce1965dab5df1bb09fcf32b93", "score": "0.5080083", "text": "public function deleteWithHttpInfo($request)\n {\n $request = $this->deleteRequest($request);\n \n $response = $this->callClient($request);\n return [null, $response->getStatusCode(), $response->getHeaders()];\n }", "title": "" }, { "docid": "737d6f7ef4d8be59302d43ed9809f410", "score": "0.49652138", "text": "public function deleteAddonWithHttpInfo($body = null)\n {\n // parse inputs\n $resourcePath = \"/addon/delete\";\n $httpBody = '';\n $queryParams = array();\n $headerParams = array();\n $formParams = array();\n $_header_accept = $this->apiClient->selectHeaderAccept(array('application/json'));\n if (!is_null($_header_accept)) {\n $headerParams['Accept'] = $_header_accept;\n }\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(array('application/json'));\n\n // query params\n if ($body !== null) {\n $queryParams['body'] = $this->apiClient->getSerializer()->toQueryValue($body);\n }\n // default format to json\n $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\n\n \n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n } elseif (count($formParams) > 0) {\n $httpBody = $formParams; // for HTTP post (form)\n }\n // make the API Call\n try {\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\n $resourcePath,\n 'DELETE',\n $queryParams,\n $httpBody,\n $headerParams,\n '\\Swagger\\Client\\Model\\InlineResponse2003',\n '/addon/delete'\n );\n\n return array($this->apiClient->getSerializer()->deserialize($response, '\\Swagger\\Client\\Model\\InlineResponse2003', $httpHeader), $statusCode, $httpHeader);\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\Swagger\\Client\\Model\\InlineResponse2003', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n case 404:\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\Swagger\\Client\\Model\\ErrorModel', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n }\n\n throw $e;\n }\n }", "title": "" }, { "docid": "7d3c96a7e7645e19cb6b6490bdf3a039", "score": "0.4933157", "text": "public function sendDelete($endpoint, array $data = array());", "title": "" }, { "docid": "f49ae32e4b756ad2fa633060faf39298", "score": "0.4917367", "text": "public function v1WebhooksDeletePostWithHttpInfo($body)\n {\n $returnType = '';\n $request = $this->v1WebhooksDeletePostRequest($body);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "bd1d9f57095e60043f081cffb855579a", "score": "0.4895796", "text": "public function deleteVendorBusinessByBusinessId(request $request)\n\t{\n\n\t\t$business_id\t\t=\t$request->input('business_id');\n\t\t$business = Business::find($business_id);\n\t\tif (is_null($business)) {\n\t\t\t# code...\n\t\t\t$resultarray=array(\n\t\t\t\t 'flag'=>\"false\", \n\t\t\t\t 'status'=>\"202\" ,\t\t \n\t\t\t\t 'message'=>'business not found'\n\t\t\t\t \n\t\t\t\t);\n\t\t\t\techo json_encode($resultarray);\n\t\t\t\treturn;\n\t\t}\n\t\tif (!empty($business_id)) {\n\t\t\t# code...\n\t\t\t\n\t\t\t$business_img_del = BusinessImage::where('business_id','=',$business_id)->get();\n\t\t\t\n\t\t\t$destinationPath = 'uploads/business_images'; // upload path\n\t\t\tfor ($i=0; $i < count($business_img_del); $i++) { \n\t\t\t\t# code...\n\t\t\t\t\n\t\t\t\t@unlink($destinationPath.$business_img_del[$i]->image);\n\t\t\t}\n\n\t\t\t\n\t\t\t$business_img_del = BusinessImage::where('business_id',$business_id)->delete();\n\t\t\t\t$business_del = Business::where('id',$business_id)->delete();\n\t\t\tif ($business_del && $business_img_del) {\n\t\t\t\t# code...\n\t\t\t\t$resultarray=array(\n\t\t\t\t 'flag'=>\"true\", \n\t\t\t\t 'status'=>\"200\",\t \n\t\t\t\t 'message'=>'business deleted successfully'\n\t\t\t\t \n\t\t\t\t);\n\t\t\t\techo json_encode($resultarray);\n\t\t\t}else{\n\t\t\t\t$resultarray=array(\n\t\t\t\t 'flag'=>\"false\", \n\t\t\t\t 'status'=>\"201\",\n\t\t\t\t \t\t \n\t\t\t\t 'message'=>'unable to delete'\n\t\t\t\t \n\t\t\t\t);\n\t\t\t\techo json_encode($resultarray);\n\n\t\t\t}\n\n\t\t}else{\n\t\t\t$resultarray=array(\n\t\t\t 'flag'=>\"false\", \n\t\t\t 'status'=>\"501\", \t\t \n\t\t\t 'message'=>'Missing Parameter'\n\t\t\t);\n\t\t\techo json_encode($resultarray);\n\t\t}\n\n\t}", "title": "" }, { "docid": "f1f4f48960e385e9a434032dd4ba6e59", "score": "0.4889197", "text": "public function destroy(Request $request, $slack)\n {\n try{\n\n if(!check_access(['A_DELETE_BUSINESS_REGISTER'], true)){\n throw new Exception(\"Invalid request\", 400);\n }\n\n $business_register_detail = BusinessRegisterModel::select('id')->whereNotNull('closing_date')->where('slack', $slack)->first();\n if (empty($business_register_detail)) {\n throw new Exception(\"Invalid business register provided\", 400);\n }\n $business_register_id = $business_register_detail->id;\n\n DB::beginTransaction();\n\n BusinessRegisterModel::where('id', $business_register_id)->delete();\n\n $order = [];\n $order['register_id'] = NULL;\n $order['updated_at'] = now();\n $order['updated_by'] = $request->logged_user_id;\n\n $action_response = OrderModel::where('register_id', $business_register_id)\n ->update($order);\n\n DB::commit();\n\n $forward_link = route('business_registers');\n\n return response()->json($this->generate_response(\n array(\n \"message\" => \"Business register deleted successfully\", \n \"data\" => $slack,\n \"link\" => $forward_link\n ), 'SUCCESS'\n ));\n\n }catch(Exception $e){\n return response()->json($this->generate_response(\n array(\n \"message\" => $e->getMessage(),\n \"status_code\" => $e->getCode()\n )\n ));\n }\n }", "title": "" }, { "docid": "1da366a04c7b44016cd075da6b2ec88b", "score": "0.48660985", "text": "public function deleteByNameAndLanguageAsyncWithHttpInfo($waba_id, $name, $language)\n {\n $returnType = '\\YCloud\\Client\\Model\\WhatsappTemplate';\n $request = $this->deleteByNameAndLanguageRequest($waba_id, $name, $language);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n if ($returnType === '\\SplFileObject') {\n $content = $response->getBody(); //stream goes to serializer\n } else {\n $content = (string) $response->getBody();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n (string) $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "34077cf97da75213fcd4aa37c59dff2b", "score": "0.48481354", "text": "public function v1WebhooksDeletePostAsyncWithHttpInfo($body)\n {\n $returnType = '';\n $request = $this->v1WebhooksDeletePostRequest($body);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n return [null, $response->getStatusCode(), $response->getHeaders()];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "186d6f30d1845bd95215519b81d4eb60", "score": "0.48240522", "text": "public function delete(): int {\n\t\tif (!isset($this->postParams['endpoint']) || !is_string($this->postParams['endpoint'])) {\n\t\t\tthrow new InputException(['endpoint' => 'Missing endpoint parameter']);\n\t\t}\n\t\treturn empty($this->reqParams['platform'])\n\t\t\t? $this->removeSubscription($this->postParams['endpoint'])\n\t\t\t: $this->removeSubscriptionPlatform($this->postParams['endpoint'], $this->reqParams['platform']);\n\t}", "title": "" }, { "docid": "501012d967e25eba4f826e2b2de9c5ed", "score": "0.48053542", "text": "public function createIntegrationHubWithHttpInfo($body = null, $fields = null)\n {\n $returnType = '\\Funeralzone\\LookerClient\\Model\\IntegrationHub';\n $request = $this->createIntegrationHubRequest($body, $fields);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Funeralzone\\LookerClient\\Model\\IntegrationHub',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 404:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Funeralzone\\LookerClient\\Model\\Error',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 429:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Funeralzone\\LookerClient\\Model\\Error',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "9a3afa250276d9f9ca8512f417607d16", "score": "0.48024932", "text": "public function allIntegrationHubsWithHttpInfo($fields = null)\n {\n $returnType = '\\Funeralzone\\LookerClient\\Model\\IntegrationHub[]';\n $request = $this->allIntegrationHubsRequest($fields);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Funeralzone\\LookerClient\\Model\\IntegrationHub[]',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 400:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Funeralzone\\LookerClient\\Model\\Error',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 404:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Funeralzone\\LookerClient\\Model\\Error',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "87000f86552b6c649a738be26ef41d47", "score": "0.4796005", "text": "function terminus_api_site_delete($site_uuid) {\n $realm = 'site';\n $uuid = $site_uuid;\n $path = '';\n $method = 'DELETE';\n return terminus_request($realm, $uuid, $path, $method);\n}", "title": "" }, { "docid": "b5b15fde0fda61397ae8a0d51cd7c3bf", "score": "0.47888437", "text": "public function deleteAsyncWithHttpInfo($request)\n {\n $request = $this->deleteRequest($request);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) {\n return [null, $response->getStatusCode(), $response->getHeaders()];\n },\n function ($exception) {\n $this->handleClientException($exception);\n }\n );\n }", "title": "" }, { "docid": "75da84847184059eca96c4fd25cf8814", "score": "0.47717562", "text": "public function testDeleteConversationsMessagingIntegrationsFacebookIntegrationId()\n {\n }", "title": "" }, { "docid": "55a75b5da978811a0a99f0c3ae18de02", "score": "0.47446793", "text": "public function deleteOidcTestConfigWithHttpInfo($test_slug)\n {\n $returnType = 'string';\n $request = $this->deleteOidcTestConfigRequest($test_slug);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 204:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n 'string',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 400:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Swagger\\Client\\Model\\Error',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 403:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Swagger\\Client\\Model\\Error',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 404:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Swagger\\Client\\Model\\Error',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "dad645854f5e2dc4a73353bf3508af83", "score": "0.47439426", "text": "public function delete(DeleteTestRequest $request)\n {\n $result = Apiato::call('Test@DeleteTestAction', [$request]);\n\n // ..\n }", "title": "" }, { "docid": "95ff5f93fc733080eb7e439faf78d075", "score": "0.4736352", "text": "public function delete ($url, $parameters = array())\n {\n \t$response = $this->weixinOAuthRequest->delete($url, $parameters); \t\n \treturn $response;\n }", "title": "" }, { "docid": "0d32e89fa6aeebc45508525b87afa029", "score": "0.47230747", "text": "public function imagesDeleteAsyncWithHttpInfo($id, $tenant_id = null)\n {\n $returnType = '\\Aurigma\\AssetStorage\\Model\\ImageDto';\n $request = $this->imagesDeleteRequest($id, $tenant_id);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n if ($returnType === '\\SplFileObject') {\n $content = $response->getBody(); //stream goes to serializer\n } else {\n $content = (string) $response->getBody();\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n (string) $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "05e9a3c073dbed33e1d94a138313255b", "score": "0.4704443", "text": "public function httpDelete($path)\n {\n $url = new Uri($this->apiBaseUri . $path);\n\n $request = new Request('DELETE', $url, $this->buildHeaders());\n\n $response = $this->httpClient->sendRequest($request);\n\n switch ($response->getStatusCode()) {\n case 200:\n case 201:\n return $this->handleResponse($response);\n default:\n return $this->handleErrorResponse($response);\n }\n }", "title": "" }, { "docid": "87177b6e2aa6e17ccd770aa86b6e9d30", "score": "0.46969718", "text": "public function integrationHubWithHttpInfo($integration_hub_id, $fields = null)\n {\n $returnType = '\\Funeralzone\\LookerClient\\Model\\IntegrationHub';\n $request = $this->integrationHubRequest($integration_hub_id, $fields);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Funeralzone\\LookerClient\\Model\\IntegrationHub',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 400:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Funeralzone\\LookerClient\\Model\\Error',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 404:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Funeralzone\\LookerClient\\Model\\Error',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "07e7a64a0d5342e10428aeecf41461b0", "score": "0.46929654", "text": "protected function deleteIntegrationRequest($integrationId)\n {\n // verify the required parameter 'integrationId' is set\n if ($integrationId === null || (is_array($integrationId) && count($integrationId) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $integrationId when calling deleteIntegration'\n );\n }\n\n $resourcePath = '/api/v2/integrations/{integrationId}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($integrationId !== null) {\n $resourcePath = str_replace(\n '{' . 'integrationId' . '}',\n ObjectSerializer::toPathValue($integrationId),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n \n if($headers['Content-Type'] === 'application/json') {\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass) {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n // array has no __toString(), so we should encode it manually\n if(is_array($httpBody)) {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));\n }\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'DELETE',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "3aa1e47ed50e30a29eb2f82faf79c161", "score": "0.46838382", "text": "protected function HTTPdelete($path, array $parameters = array(), $requestHeaders = array())\n {\n $response = $this->client->getHttpClient()->delete(\n $path,\n $parameters,\n $requestHeaders\n );\n\n return ResponseMediator::getContent($response);\n }", "title": "" }, { "docid": "6f79fb76ec012a8763a521f61b0397d8", "score": "0.4670136", "text": "public function deleteByNameAsyncWithHttpInfo($waba_id, $name)\n {\n $returnType = '\\YCloud\\Client\\Model\\WhatsappTemplate[]';\n $request = $this->deleteByNameRequest($waba_id, $name);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n if ($returnType === '\\SplFileObject') {\n $content = $response->getBody(); //stream goes to serializer\n } else {\n $content = (string) $response->getBody();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n (string) $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "aaf94eb9e436fc597cf5064a701848b8", "score": "0.4670114", "text": "public function deleteOidcTestConfigAsyncWithHttpInfo($test_slug)\n {\n $returnType = 'string';\n $request = $this->deleteOidcTestConfigRequest($test_slug);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "b02ddf0a9448ecd129a2b3a8841a8a32", "score": "0.4650595", "text": "public function del(string $uri, array $params): ResponseInterface;", "title": "" }, { "docid": "b6864a8fe839f27264ae8f47b95da946", "score": "0.462381", "text": "public function delete($url, $parameters = array())\r\n {\r\n $response = $this->weixinOAuthRequest->delete($url, $parameters);\r\n return $response;\r\n }", "title": "" }, { "docid": "ac362d5024b9460ad6247abad70f4045", "score": "0.46185476", "text": "public function testDeleteConversationsMessagingIntegrationsLineIntegrationId()\n {\n }", "title": "" }, { "docid": "ea670d518d5f9bc436f5fa7f8cc4241c", "score": "0.46162656", "text": "public function delete_webhook()\n\t{\n\t\t$this->_endpoit = 'deleteWebhook';\n\t\t$this->_fields = array();\n\t\t$this->_response = $this->_send_request();\n\t\treturn $this->_response;\n\t}", "title": "" }, { "docid": "c048b92a18615efca90e16562527c40c", "score": "0.4607096", "text": "public function testGetWithHttpDelete() {\n\n $server['REQUEST_METHOD'] = 'DELETE';\n\n $request = ServerRequestFactory::fromGlobals($server, ['var' => 'set']);\n $this->assertEquals('set', $request->get('var'));\n }", "title": "" }, { "docid": "3050b4e6fc5f25442d7b03bab15bc0c4", "score": "0.45992237", "text": "public function delete($uri, $body = null, array $headers = []): ResponseInterface;", "title": "" }, { "docid": "79a129abf025e630b5411ab585d2ffa4", "score": "0.45908022", "text": "function httpDelete($req, $params) {\n\t\t$ch = curl_init($req); \n\t\tcurl_setopt($ch, CURLOPT_POST, true);\n\t\tcurl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');\n\t\t$access_token = $this->getSession();\n\t\tif ($access_token) {\n\t\t\tcurl_setopt($ch,CURLOPT_HTTPHEADER,array('Authorization: Bearer '.$access_token));\n\t\t}\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\t$qs = http_build_query($params);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $qs);\n\t\t$response = curl_exec($ch); \n\t\tcurl_close($ch);\n\t\t$response = json_decode($response,true);\n\t\tif (isset($response['error'])) {\n\t\t\texit('AppDotNetPHP<br>Error accessing: <br>'.$req.'<br>Error code: '.$response['error']['code']);\n\t\t} else {\n\t\t\treturn $response;\n\t\t}\n\t}", "title": "" }, { "docid": "43a8927e8ffa9a95727ccd414a4618e6", "score": "0.45863104", "text": "public function test_sendDelete_called_callApiAndReturnOk()\n {\n $responseBody = $this->getResponseMock_Ok();\n\n $data = '/feature-1';\n\n $expected = $this->getResponseMock_Ok();\n\n $this->curl_double->delete(self::ENDPOINT.\"/feature-1\",\n Argument::any(),\n true,\n [\"x-api-key: \".self::API_KEY.\"\", \"Content-Type: application/json; charset=utf-8\"]\n )->willReturn($this->getResponseObject($responseBody));\n\n $sut = $this->getSut();\n\n $actual = $sut->sendDelete($data);\n\n $this->assertEquals($expected, $actual);\n }", "title": "" }, { "docid": "e58da713db10c6c2a9467303d2583965", "score": "0.45800433", "text": "public function destroy(Request $request, $id)\n {\n $user = $request->user();\n $bridge = \\App\\Bridge::findOrFail($id);\n\n if ($user['admin'] !== 1 && $user['id'] !== $bridge['created_by']) {\n return $this->apiErr(222003, 'Not Authorized');\n }\n\n $bridge->status = 1;\n $bridge->updated_by = $user['id'];\n $bridge->save();\n\n return $this->apiOk(true);\n }", "title": "" }, { "docid": "8345294f62cfcecca2db882247d55cd5", "score": "0.4575361", "text": "public function deleteVpnConnection($request);", "title": "" }, { "docid": "5546a67b7607be327eabc80ddfefbc92", "score": "0.45746526", "text": "public function delete($uri, $params = null);", "title": "" }, { "docid": "43f96051e76583552f0b7dc4fcbddd3b", "score": "0.4561536", "text": "function delete(string $url, string $auth = \"\", string $message = \"\"): SalsahResponse {\n return $this->makeJsonRequest(self::METHOD_DELETE, $auth, $url, [], $message);\n }", "title": "" }, { "docid": "d047c90701bd641b4a296bd5e975d37e", "score": "0.45563588", "text": "public function deleteWebhook()\n {\n return $this->sendRequest('deleteWebhook', array());\n }", "title": "" }, { "docid": "1a812c05aa95d1b3832d3e15b2b854d6", "score": "0.45560002", "text": "public function deleteCustomerGateway($request);", "title": "" }, { "docid": "82a656cc40f718d92ba85b657f9aa669", "score": "0.455352", "text": "public function testDeleteRoute()\n {\n print \"\\nTesting delete route.\\n\";\n\n $passingWrongParameters = $this\n ->withHeaders(['Accept' => 'application/json'])\n ->json(\"delete\", route('api.v1.products.index').\"/28?api_token=kxBDR7b01xC4VNg2o97F5SSs4XCcJyn9y6dxkaYkwF5odjeL9OpQDAMjW7cS\");\n\n $passingWrongParameters\n ->assertStatus(204);\n }", "title": "" }, { "docid": "30c2cbcc06e7f0cd284ff4d324a1d02a", "score": "0.45452747", "text": "public function testDeleteMessage()\n {\n $pushwooshMock = new PushwooshMock();\n\n // At the beginning no pushwoosh requests have been sent\n $this->assertCount(0, $pushwooshMock->getPushwooshRequests());\n\n // Test call\n $deleteMessageRequest = DeleteMessageRequest::create();\n $deleteMessageResponse = $pushwooshMock->deleteMessage($deleteMessageRequest);\n\n $this->assertNotNull($deleteMessageResponse);\n $this->assertSame(200, $deleteMessageResponse->getStatusCode());\n $this->assertSame('OK', $deleteMessageResponse->getStatusMessage());\n $this->assertTrue($deleteMessageResponse->isOk());\n\n // One more requests has been send\n $this->assertCount(1, $pushwooshMock->getPushwooshRequests());\n $this->assertSame($deleteMessageRequest, $pushwooshMock->getPushwooshRequests()[0]);\n }", "title": "" }, { "docid": "8ea85c8e95449ef617cfdf751e1658e9", "score": "0.45349988", "text": "public function createIntegrationHubAsyncWithHttpInfo($body = null, $fields = null)\n {\n $returnType = '\\Funeralzone\\LookerClient\\Model\\IntegrationHub';\n $request = $this->createIntegrationHubRequest($body, $fields);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "caa650d8c03a985a038635e017b9f989", "score": "0.4531418", "text": "public function delete($params = [])\n {\n $this->getRequest()\n ->setMethod(HttpRequestMethod::DELETE)\n ->setParams($params);\n\n return $this->handle($this->getRequest());\n }", "title": "" }, { "docid": "21391374812abfaac8a48f415ccff7b9", "score": "0.45299768", "text": "function ciniki_wineproduction_notificationDelete(&$ciniki) {\n //\n // Find all the required and optional arguments\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'prepareArgs');\n $rc = ciniki_core_prepareArgs($ciniki, 'no', array(\n 'tnid'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Tenant'),\n 'notification_id'=>array('required'=>'yes', 'blank'=>'yes', 'name'=>'Notification'),\n ));\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n $args = $rc['args'];\n\n //\n // Check access to tnid as owner\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'wineproduction', 'private', 'checkAccess');\n $rc = ciniki_wineproduction_checkAccess($ciniki, $args['tnid'], 'ciniki.wineproduction.notificationDelete');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n\n //\n // Get the current settings for the notification\n //\n $strsql = \"SELECT id, uuid \"\n . \"FROM ciniki_wineproduction_notifications \"\n . \"WHERE tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND id = '\" . ciniki_core_dbQuote($ciniki, $args['notification_id']) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.wineproduction', 'notification');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( !isset($rc['notification']) ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.wineproduction.42', 'msg'=>'Notification does not exist.'));\n }\n $notification = $rc['notification'];\n\n //\n // Check for any dependencies before deleting\n //\n\n //\n // Check if any modules are currently using this object\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'objectCheckUsed');\n $rc = ciniki_core_objectCheckUsed($ciniki, $args['tnid'], 'ciniki.wineproduction.notification', $args['notification_id']);\n if( $rc['stat'] != 'ok' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.wineproduction.43', 'msg'=>'Unable to check if the notification is still being used.', 'err'=>$rc['err']));\n }\n if( $rc['used'] != 'no' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.wineproduction.44', 'msg'=>'The notification is still in use. ' . $rc['msg']));\n }\n\n //\n // Queued notifications\n //\n $strsql = \"SELECT id, uuid \"\n . \"FROM ciniki_wineproduction_notification_queue \"\n . \"WHERE notification_id = '\" . ciniki_core_dbQuote($ciniki, $args['notification_id']) . \"' \"\n . \"AND ciniki_wineproduction_notifications.tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.wineproduction', 'item');\n if( $rc['stat'] != 'ok' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.wineproduction.61', 'msg'=>'Unable to load item', 'err'=>$rc['err']));\n }\n $queue = isset($rc['rows']) ? $rc['rows'] : array();\n\n //\n // Start transaction\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbTransactionStart');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbTransactionRollback');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbTransactionCommit');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbDelete');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'objectDelete');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbAddModuleHistory');\n $rc = ciniki_core_dbTransactionStart($ciniki, 'ciniki.wineproduction');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n\n //\n // Clear the queue\n //\n foreach($queue as $item) {\n $rc = ciniki_core_objectDelete($ciniki, $args['tnid'], 'ciniki.wineproduction.notification_queue',\n $item['id'], $item['uuid'], 0x04);\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.wineproduction');\n return $rc;\n }\n }\n\n //\n // Remove the notification\n //\n $rc = ciniki_core_objectDelete($ciniki, $args['tnid'], 'ciniki.wineproduction.notification',\n $args['notification_id'], $notification['uuid'], 0x04);\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.wineproduction');\n return $rc;\n }\n\n //\n // Commit the transaction\n //\n $rc = ciniki_core_dbTransactionCommit($ciniki, 'ciniki.wineproduction');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n\n //\n // Update the last_change date in the tenant modules\n // Ignore the result, as we don't want to stop user updates if this fails.\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'tenants', 'private', 'updateModuleChangeDate');\n ciniki_tenants_updateModuleChangeDate($ciniki, $args['tnid'], 'ciniki', 'wineproduction');\n\n return array('stat'=>'ok');\n}", "title": "" }, { "docid": "09eb0ec1710ecc4a87b9b82b30c51bf5", "score": "0.4528141", "text": "public function testDeleteConversationsMessagingIntegrationsTwitterIntegrationId()\n {\n }", "title": "" }, { "docid": "b4c777d25d49c5a6718a2692f6617c39", "score": "0.45034292", "text": "protected function integrationHubRequest($integration_hub_id, $fields = null)\n {\n // verify the required parameter 'integration_hub_id' is set\n if ($integration_hub_id === null || (is_array($integration_hub_id) && count($integration_hub_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $integration_hub_id when calling integrationHub'\n );\n }\n\n $resourcePath = '/integration_hubs/{integration_hub_id}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n // query params\n if ($fields !== null) {\n $queryParams['fields'] = ObjectSerializer::toQueryValue($fields);\n }\n\n // path params\n if ($integration_hub_id !== null) {\n $resourcePath = str_replace(\n '{' . 'integration_hub_id' . '}',\n ObjectSerializer::toPathValue($integration_hub_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n \n if($headers['Content-Type'] === 'application/json') {\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass) {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n // array has no __toString(), so we should encode it manually\n if(is_array($httpBody)) {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));\n }\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "709824bab3bf03e32e22035eb01e5030", "score": "0.44954813", "text": "public function delImageBDD($id) {\n \n $sql = 'DELETE FROM works WHERE id = :id';\n \n $response = $this->executeRequest($sql, array(\n 'id' => $id\n ));\n return $response;\n \n }", "title": "" }, { "docid": "36b99e09020c5c5ed1d1cddd04a4d994", "score": "0.44949636", "text": "public function deleted(ChatInfo $chatInfo)\n {\n //\n }", "title": "" }, { "docid": "48737d7030208c23df534d3592c18d11", "score": "0.44932607", "text": "public function deleteSample($sample)\n {\n return $this->performRequest('DELETE', \"/samples/{$sample}\");\n }", "title": "" }, { "docid": "1fe24b8054f5d110f115f815be1725aa", "score": "0.44902474", "text": "public function integrationHubAsyncWithHttpInfo($integration_hub_id, $fields = null)\n {\n $returnType = '\\Funeralzone\\LookerClient\\Model\\IntegrationHub';\n $request = $this->integrationHubRequest($integration_hub_id, $fields);\n\n return $this->client\n ->sendAsync($request, $this->createHttpClientOption())\n ->then(\n function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n },\n function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $exception->getRequest()->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n );\n }", "title": "" }, { "docid": "a2492fc3b532481f1dc2a4ef2e464a48", "score": "0.44812128", "text": "protected function httpDelete(string $path, array $parameters = [], array $requestHeaders = []): ResponseInterface\n {\n try {\n $response = $this->httpClient->sendRequest(\n $this->requestBuilder->create('DELETE', $path, $requestHeaders, $this->createRequestBody($parameters))\n );\n } catch (Psr18\\NetworkExceptionInterface $e) {\n throw HttpServerException::networkError($e);\n }\n\n return $response;\n }", "title": "" }, { "docid": "bd8ce73e61875e44bcd0b14c6d6deff4", "score": "0.44690442", "text": "public function deleteAction(Request $request, Signaler $signaler)\n {\n $form = $this->createDeleteForm($signaler);\n $form->handleRequest($request);\n\n if ($form->isSubmitted() && $form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->remove($signaler);\n $em->flush();\n }\n\n return $this->redirectToRoute('signaler_index');\n }", "title": "" }, { "docid": "5127f5eaf58a14e3e0eb46716dbeff62", "score": "0.44658872", "text": "public function testBiosDelete()\n {\n }", "title": "" }, { "docid": "0f4961bd6f11a2eef3cb8774b459542d", "score": "0.4463071", "text": "public function actionDelete()\n\t{\n $id = Yii::app()->request->getParam('id' ,0);\n $ret['response'] = array(\n 'code' => 0,\n 'msg' => '删除BMS信息成功!'\n );\n $ret['data'] = array();\n $result = $this->loadModel($id)->delete();\n\n if (!$result) {\n $ret['response'] = array(\n 'code' => -1,\n 'msg' => '删除BMS信息失败!'\n );\n }\n\n echo json_encode($ret);\n\t}", "title": "" }, { "docid": "650ce026da98e704731d3a4dba48c18e", "score": "0.44609264", "text": "public function testDelete()\n {\n $user = factory(User::class)->create([\n 'is_active' => true,\n 'role_id' => 1\n ]);\n\n $subscription = factory(Subscription::class)->create([\n 'project_id' => factory(Project::class)->create([\n 'partner_id' => factory(Partner::class)->create()->id\n ])->id\n ]);\n\n $response = $this->post(\n '/api/subscriptions/'. $subscription->id .'/delete',\n [\n ],\n [\n 'api-key' => $user->api_token\n ]\n );\n\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "df6abbce28b109ff63eaf82186d9fc52", "score": "0.44546223", "text": "public function attachment_delete(Request $request) {\n $attachment = Attachment::findOrFail($request->attachment_id);\n\n $log = new LogSystem;\n $log->module_id = 33;\n $log->activity_type_id = 6;\n $log->description = \"Padam Affidavit - Dokumen Sokongan\";\n $log->data_old = json_encode($attachment);\n $log->url = $request->fullUrl();\n $log->method = strtoupper($request->method());\n $log->ip_address = $request->ip();\n $log->created_by_user_id = auth()->id();\n $log->save();\n\n Storage::disk('uploads')->delete($attachment->url);\n $attachment->delete();\n\n return response()->json(['status' => 'success', 'title' => 'Berjaya!', 'message' => 'Data telah dipadam.']);\n }", "title": "" }, { "docid": "461d45ec586ed09b82398d35ea1b3c03", "score": "0.4450553", "text": "public function deleteOAuth2ClientWithHttpInfo($id)\n {\n // verify the required parameter 'id' is set\n if ($id === null) {\n throw new \\InvalidArgumentException('Missing the required parameter $id when calling deleteOAuth2Client');\n }\n // parse inputs\n $resourcePath = \"/clients/{id}\";\n $httpBody = '';\n $queryParams = [];\n $headerParams = [];\n $formParams = [];\n $_header_accept = $this->apiClient->selectHeaderAccept(['application/json']);\n if (!is_null($_header_accept)) {\n $headerParams['Accept'] = $_header_accept;\n }\n $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(['application/json']);\n\n // path params\n if ($id !== null) {\n $resourcePath = str_replace(\n \"{\" . \"id\" . \"}\",\n $this->apiClient->getSerializer()->toPathValue($id),\n $resourcePath\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n } elseif (count($formParams) > 0) {\n $httpBody = $formParams; // for HTTP post (form)\n }\n // make the API Call\n try {\n list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\n $resourcePath,\n 'DELETE',\n $queryParams,\n $httpBody,\n $headerParams,\n null,\n '/clients/{id}'\n );\n\n return [null, $statusCode, $httpHeader];\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 404:\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\HydraSDK\\Model\\GenericError', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n case 500:\n $data = $this->apiClient->getSerializer()->deserialize($e->getResponseBody(), '\\HydraSDK\\Model\\GenericError', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n }\n\n throw $e;\n }\n }", "title": "" }, { "docid": "51c722264da1de2e70054174fd16f0c0", "score": "0.4448561", "text": "function delete($url, $parameters = array()) { \n $response = $this->oAuthRequest($url, 'DELETE', $parameters); \n if ($this->format === 'json' && $this->decode_json) { \n return json_decode($response, true); \n } \n return $response; \n }", "title": "" }, { "docid": "3430133a370114fb9a9c90620e86a387", "score": "0.44470862", "text": "public function delete($form_guid)\n {\n $endpoint = \"https://api.hubapi.com/forms/v2/forms/{$form_guid}\";\n\n return $this->client->request('delete', $endpoint);\n }", "title": "" }, { "docid": "461ae39182ae31a72aef05ef001c57be", "score": "0.44395325", "text": "public function attachment_delete(Request $request) {\n $attachment = Attachment::findOrFail($request->attachment_id);\n\n $log = new LogSystem;\n $log->module_id = 28;\n $log->activity_type_id = 6;\n $log->description = \"Padam Borang F - Dokumen Sokongan\";\n $log->data_old = json_encode($attachment);\n $log->url = $request->fullUrl();\n $log->method = strtoupper($request->method());\n $log->ip_address = $request->ip();\n $log->created_by_user_id = auth()->id();\n $log->save();\n\n Storage::disk('uploads')->delete($attachment->url);\n $attachment->delete();\n\n return response()->json(['status' => 'success', 'title' => 'Berjaya!', 'message' => 'Data telah dipadam.']);\n }", "title": "" }, { "docid": "ccdb3be588ffedffcecf8655aac7be8a", "score": "0.44377604", "text": "public function attachment_delete(Request $request) {\n $attachment = Attachment::findOrFail($request->attachment_id);\n\n $log = new LogSystem;\n $log->module_id = 51;\n $log->activity_type_id = 6;\n $log->description = \"Padam Pengurusan Surat - Dokumen Sokongan\";\n $log->data_old = json_encode($attachment);\n $log->url = $request->fullUrl();\n $log->method = strtoupper($request->method());\n $log->ip_address = $request->ip();\n $log->created_by_user_id = auth()->id();\n $log->save();\n\n Storage::disk('uploads')->delete($attachment->url);\n $attachment->delete();\n\n return response()->json(['status' => 'success', 'title' => 'Berjaya!', 'message' => 'Data telah dipadam.']);\n }", "title": "" }, { "docid": "0fc0584cefb4340fc6fe4a425e04d07b", "score": "0.44373342", "text": "public function deleteCouponsWithHttpInfo($applicationId, $campaignId, $value = null, $createdBefore = null, $createdAfter = null, $startsAfter = null, $startsBefore = null, $expiresAfter = null, $expiresBefore = null, $valid = null, $batchId = null, $usable = null, $referralId = null, $recipientIntegrationId = null, $exactMatch = false)\n {\n $request = $this->deleteCouponsRequest($applicationId, $campaignId, $value, $createdBefore, $createdAfter, $startsAfter, $startsBefore, $expiresAfter, $expiresBefore, $valid, $batchId, $usable, $referralId, $recipientIntegrationId, $exactMatch);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? (string) $e->getResponse()->getBody() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "6898b0d0c598d4daed031fab5a378e06", "score": "0.4436927", "text": "public function deleteBeauticianKit(DeleteBeauticianKitRequest $request) {\n $input = $request->all();\n $response = BeauticianServiceProvider::saveDeleteBeauticianKit($input);\n return $this->sendJsonResponse($response);\n }", "title": "" }, { "docid": "7e3dd707540bd8f975d7f5a951552c13", "score": "0.44320616", "text": "public function delete(MessageInterface $message);", "title": "" }, { "docid": "6d0447e4288c32ae8d0684f24dc99644", "score": "0.4431226", "text": "public function api_delete()\n {\n\t\t$id = (int)$this->input->post('id', TRUE);\n if (!$id) {\n\t\t\t$this->output->set_status_header(404);\t\n\t\t\techo json_encode(\n [\n 'status' => 'error',\n 'message' => $id\n\t\t\t\t]\n );\n\t\t\texit;\n\t\t}\n\t\t\n\t\tif ($this->Artikel_Model->destroy($id)) {\n\t\t$this->output->set_status_header(201);\n\t\techo json_encode(\n [\n 'status' => 'ok',\n 'message' => 'Success delete'\n ]\n );\n\t\t} else {\n $this->output->set_status_header(404);\n echo json_encode(\n [\n 'status' => FALSE,\n 'message' => 'Required id'\t\n ]\n );\n\t\t}\n }", "title": "" }, { "docid": "acd4c05ff6c8bd94ed402fcc3224c09c", "score": "0.442829", "text": "public function deleteResource(RequestBagInterface $request) : ResponseBagInterface;", "title": "" }, { "docid": "dd3dcf685f58b40cad77394e23449b5c", "score": "0.44247591", "text": "public function DeleteNotification(ValidateNotificationIdRequest $request){\n $notification_id = $request->notification_id;\n UserNotification::where(\"id\",$notification_id)->delete();\n\n return response()->success(ResponseMessage::COMMON_MESSAGE);\n }", "title": "" }, { "docid": "7e0044cee9d4d93e87c9a85f209aa245", "score": "0.44215375", "text": "public function destroy(Request $request)\n {\n $resp = $this->band->destroyBand($request['id']);\n if( $resp )\n return response()->json($resp);\n else\n return response()->json(['message'=>'Banda no encontrada'],404);\n }", "title": "" }, { "docid": "8da109ca7ffd8f2291545f5a7efcd457", "score": "0.44203597", "text": "public function delete(string $url, RequestOptionsInterface $requestOptions) : ResponseInterface;", "title": "" }, { "docid": "565a1256640bf9c46218d6544fa78ad0", "score": "0.44180706", "text": "public function deleteVSwitch($request)\n {\n $runtime = new RuntimeOptions([]);\n\n return $this->deleteVSwitchWithOptions($request, $runtime);\n }", "title": "" }, { "docid": "de5d59beeb52aac32c963a7dae9492c1", "score": "0.441616", "text": "public function deleteAction(HttpServletRequestInterface $servletRequest, HttpServletResponseInterface $servletResponse)\n {\n\n // check if the necessary params has been specified and are valid\n $sampleId = $servletRequest->getParameter(RequestKeys::SAMPLE_ID, FILTER_VALIDATE_INT);\n if ($sampleId == null) {\n throw new \\Exception(sprintf('Can\\'t find requested %s', RequestKeys::SAMPLE_ID));\n }\n\n // delete the entity\n $this->getProxy(ProxyKeys::SAMPLE_PROCESSOR)->delete($sampleId);\n\n // reload all entities and render the dialog\n $this->indexAction($servletRequest, $servletResponse);\n }", "title": "" }, { "docid": "82366586178c9fe800620ce01cfcc27c", "score": "0.44116044", "text": "public function delete($url, $payload = '');", "title": "" }, { "docid": "dfa2d5f6f9510cdbb934e937929a956a", "score": "0.44090313", "text": "public function destroy($slack)\n {\n try{\n\n if(!check_access(['A_DELETE_ORDER'], true)){\n throw new Exception(\"Invalid request\", 400);\n }\n\n $order_detail = OrderModel::select('id')->where('slack', $slack)->first();\n $order_id = $order_detail->id;\n $order_products = OrderProductModel::where('order_id', $order_id)->get()->toArray();\n\n DB::beginTransaction();\n\n array_walk($order_products, function (&$item, $key){\n\n $product = ProductModel::find($item['product_id']);\n $product->increment('quantity', $item['quantity']);\n\n });\n\n OrderProductModel::where('order_id', $order_id)->delete();\n OrderModel::where('id', $order_id)->delete();\n\n DB::commit();\n\n $forward_link = route('orders');\n\n return response()->json($this->generate_response(\n array(\n \"message\" => \"Order deleted successfully\", \n \"data\" => $slack,\n \"link\" => $forward_link\n ), 'SUCCESS'\n ));\n\n }catch(Exception $e){\n return response()->json($this->generate_response(\n array(\n \"message\" => $e->getMessage(),\n \"status_code\" => $e->getCode()\n )\n ));\n }\n }", "title": "" }, { "docid": "9798edbf930021672e62532ec3f89447", "score": "0.44089016", "text": "public function makeDeleteRequest(string $url, array $data = [], array $requestHeaders = []): ResponseInterface;", "title": "" }, { "docid": "56062a0f2366dff8109e2541d80fff2b", "score": "0.4399093", "text": "public function testDeleteApiWithoutId()\n {\n $this->getManager();\n $response = $this->sendApiRequest('DELETE', '/api/v3/person');\n\n $this->assertEquals(Response::HTTP_BAD_REQUEST, $response->getStatusCode());\n }", "title": "" }, { "docid": "6f377315d571b10c481943c1a8dcfd0e", "score": "0.43978676", "text": "protected function updateIntegrationHubRequest($integration_hub_id, $body, $fields = null)\n {\n // verify the required parameter 'integration_hub_id' is set\n if ($integration_hub_id === null || (is_array($integration_hub_id) && count($integration_hub_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $integration_hub_id when calling updateIntegrationHub'\n );\n }\n // verify the required parameter 'body' is set\n if ($body === null || (is_array($body) && count($body) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $body when calling updateIntegrationHub'\n );\n }\n\n $resourcePath = '/integration_hubs/{integration_hub_id}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n // query params\n if ($fields !== null) {\n $queryParams['fields'] = ObjectSerializer::toQueryValue($fields);\n }\n\n // path params\n if ($integration_hub_id !== null) {\n $resourcePath = str_replace(\n '{' . 'integration_hub_id' . '}',\n ObjectSerializer::toPathValue($integration_hub_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n \n if($headers['Content-Type'] === 'application/json') {\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass) {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n // array has no __toString(), so we should encode it manually\n if(is_array($httpBody)) {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));\n }\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'PATCH',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "b66d6dc3df7778d76d0c426e21f1e019", "score": "0.43877253", "text": "public function deleteConnectorWithHttpInfo($space_id, $external_id) {\n\t\t// verify the required parameter 'space_id' is set\n\t\tif (is_null($space_id)) {\n\t\t\tthrow new \\InvalidArgumentException('Missing the required parameter $space_id when calling deleteConnector');\n\t\t}\n\t\t// verify the required parameter 'external_id' is set\n\t\tif (is_null($external_id)) {\n\t\t\tthrow new \\InvalidArgumentException('Missing the required parameter $external_id when calling deleteConnector');\n\t\t}\n\t\t// header params\n\t\t$headerParams = [];\n\t\t$headerAccept = $this->apiClient->selectHeaderAccept([]);\n\t\tif (!is_null($headerAccept)) {\n\t\t\t$headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept;\n\t\t}\n\t\t$headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType([]);\n\n\t\t// query params\n\t\t$queryParams = [];\n\t\tif (!is_null($space_id)) {\n\t\t\t$queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id);\n\t\t}\n\t\tif (!is_null($external_id)) {\n\t\t\t$queryParams['externalId'] = $this->apiClient->getSerializer()->toQueryValue($external_id);\n\t\t}\n\n\t\t// path params\n\t\t$resourcePath = '/payment-web-app/delete-connector';\n\t\t// default format to json\n\t\t$resourcePath = str_replace('{format}', 'json', $resourcePath);\n\n\t\t// form params\n\t\t$formParams = [];\n\t\t\n\t\t// for model (json/xml)\n\t\t$httpBody = '';\n\t\tif (isset($tempBody)) {\n\t\t\t$httpBody = $tempBody; // $tempBody is the method argument, if present\n\t\t} elseif (!empty($formParams)) {\n\t\t\t$httpBody = $formParams; // for HTTP post (form)\n\t\t}\n\t\t// make the API Call\n\t\ttry {\n\t\t\t$response = $this->apiClient->callApi(\n\t\t\t\t$resourcePath,\n\t\t\t\t'POST',\n\t\t\t\t$queryParams,\n\t\t\t\t$httpBody,\n\t\t\t\t$headerParams,\n\t\t\t\tnull,\n\t\t\t\t'/payment-web-app/delete-connector'\n );\n\t\t\treturn new ApiResponse($response->getStatusCode(), $response->getHeaders());\n\t\t} catch (ApiException $e) {\n\t\t\tswitch ($e->getCode()) {\n case 442:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Wallee\\Sdk\\Model\\ClientError',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 542:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\Wallee\\Sdk\\Model\\ServerError',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n\t\t\t}\n\t\t\tthrow $e;\n\t\t}\n\t}", "title": "" }, { "docid": "2c751869a93e98dd87c8612946a0fb0e", "score": "0.43842548", "text": "function hostcontrol_RequestDelete($params)\n{\n $api_client = new HostControlAPIClient(HostControlHelper::getApiUrl($params), $params['ApiKey']);\n $domainname = strtolower($params[\"sld\"] . \".\" . $params[\"tld\"]);\n\n try\n {\n $api_client->domain->delete($domainname);\n }\n catch(HostControlAPIClientError $e)\n {\n HostControlHelper::debugLog($params, 'delete-domain', array($domainname), $e);\n return array('error' => $e->getMessage());\n }\n\n return true;\n}", "title": "" }, { "docid": "aabe0cfe08735f170429b37cc5a16d9e", "score": "0.43836105", "text": "public function delete(Request $request): Response;", "title": "" }, { "docid": "2cc1a7ca1ecba189df831a50f81df3b0", "score": "0.43781278", "text": "function delete($url, $parameters = array()) {\r\n $response = $this->oAuthRequest($url, 'DELETE', $parameters);\r\n if ($this->format === 'json' && $this->decode_json) {\r\n return json_decode($response, true);\r\n }\r\n return $response;\r\n }", "title": "" }, { "docid": "46effbefcf90e26e37aa3c4af41e9ee1", "score": "0.4369113", "text": "public function restDelete($segments=array(), $request_url='/')\n {\n \n $_DELETE = array();\n parse_str(file_get_contents('php://input'), $_DELETE);\n \n $url_matches_param = array();\n \n switch ($request_url) {\n \n default:\n self::pageNotFound();\n break;\n \n }// end switch ($action_level_one_id)\n \n }", "title": "" }, { "docid": "8a741604b9b174cf0fbe6c4d9a05b56e", "score": "0.43676913", "text": "public function delete(\\Symfony\\Component\\HttpFoundation\\Request $request, array $params)\n {\n }", "title": "" }, { "docid": "ae5592a6b848dcfaa1d4a6b42dcb542e", "score": "0.43640342", "text": "function delete($url, $parameters = array()) {\n\t\t$response = $this->oAuthRequest($url, 'DELETE', $parameters);\n\t\tif ($this->format === 'json' && $this->decode_json) {\n\t\t\treturn json_decode($response, true);\n\t\t}\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "78c42caf9fddbf49e6867892e22e1ca0", "score": "0.43638828", "text": "public function bindersDeleteByIdWithHttpInfo($binder_id)\n {\n $returnType = '';\n $request = $this->bindersDeleteByIdRequest($binder_id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n return [null, $statusCode, $response->getHeaders()];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "bd566187bb68129476a3ca686172ce9f", "score": "0.436281", "text": "protected function createIntegrationHubRequest($body = null, $fields = null)\n {\n\n $resourcePath = '/integration_hubs';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n // query params\n if ($fields !== null) {\n $queryParams['fields'] = ObjectSerializer::toQueryValue($fields);\n }\n\n\n // body params\n $_tempBody = null;\n if (isset($body)) {\n $_tempBody = $body;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n \n if($headers['Content-Type'] === 'application/json') {\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass) {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n // array has no __toString(), so we should encode it manually\n if(is_array($httpBody)) {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));\n }\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "0e927e631afc414935eaa10830985ab8", "score": "0.43610603", "text": "public function deleteSubscription(Subscription $subscription, ?User $user = null): TestResponse\n {\n return $this->actingAs($user ?: User::factory()->admin()->create())\n ->delete('subscriptions/'.$subscription->id);\n }", "title": "" }, { "docid": "ec631052cc3486e714644364e5f7f890", "score": "0.4359574", "text": "public function deleteAccount()\n {\n # DELETE /accounts/{accountId}\n }", "title": "" }, { "docid": "2d4f0d4f5b5ab0a86f1f10a4d31b84ce", "score": "0.43592137", "text": "public function testDeleteUnknownProduct()\n {\n $client = $this->createAuthenticatedClient('admin@bilemo.com', 'password');\n $client->request(\n 'DELETE',\n '/api/products/300'\n );\n $this->assertSame(Response::HTTP_NO_CONTENT, $client->getResponse()->getStatusCode());\n }", "title": "" }, { "docid": "3dc719ad03940ed721615e361169c7ec", "score": "0.4354716", "text": "public function testDeleteSubscriber()\n {\n // Get auth token\n $token = $this->authenticate();\n\n // use factory to create Subscriber record\n $subscriber = factory(\\App\\Subscriber::class)->create();\n \n // delete subscriber\n $response = $this->withHeaders([\n 'Authorization' => 'Bearer '. $token,\n ])->json('DELETE', route('subscribers.destroy', $subscriber->id));\n \n // test successful response\n $response->assertStatus(200);\n }", "title": "" }, { "docid": "6970b7c8046a2c48f02876ff0a5f582d", "score": "0.43542227", "text": "public function testExampleL84_47b5ff897f26e9c943cee5c06034181d()\n {\n $client = $this->getClient();\n // tag::47b5ff897f26e9c943cee5c06034181d[]\n $params = [\n 'index' => 'twitter',\n 'id' => '1',\n 'routing' => 'kimchy',\n ];\n $response = $client->delete($params);\n // end::47b5ff897f26e9c943cee5c06034181d[]\n\n $curl = 'DELETE /twitter/_doc/1?routing=kimchy';\n\n // TODO -- make assertion\n }", "title": "" }, { "docid": "a06a723eb11348e56e1d43f2ad87bc0f", "score": "0.4353525", "text": "public function deleteVpnGatewayWithOptions($request, $runtime)\n {\n Utils::validateModel($request);\n $query = [];\n if (!Utils::isUnset($request->clientToken)) {\n $query['ClientToken'] = $request->clientToken;\n }\n if (!Utils::isUnset($request->ownerAccount)) {\n $query['OwnerAccount'] = $request->ownerAccount;\n }\n if (!Utils::isUnset($request->ownerId)) {\n $query['OwnerId'] = $request->ownerId;\n }\n if (!Utils::isUnset($request->regionId)) {\n $query['RegionId'] = $request->regionId;\n }\n if (!Utils::isUnset($request->resourceOwnerAccount)) {\n $query['ResourceOwnerAccount'] = $request->resourceOwnerAccount;\n }\n if (!Utils::isUnset($request->resourceOwnerId)) {\n $query['ResourceOwnerId'] = $request->resourceOwnerId;\n }\n if (!Utils::isUnset($request->vpnGatewayId)) {\n $query['VpnGatewayId'] = $request->vpnGatewayId;\n }\n $req = new OpenApiRequest([\n 'query' => OpenApiUtilClient::query($query),\n ]);\n $params = new Params([\n 'action' => 'DeleteVpnGateway',\n 'version' => '2016-04-28',\n 'protocol' => 'HTTPS',\n 'pathname' => '/',\n 'method' => 'POST',\n 'authType' => 'AK',\n 'style' => 'RPC',\n 'reqBodyType' => 'formData',\n 'bodyType' => 'json',\n ]);\n\n return DeleteVpnGatewayResponse::fromMap($this->callApi($params, $req, $runtime));\n }", "title": "" }, { "docid": "517d6ae1a133d832ddcbdb2a631f8913", "score": "0.43531248", "text": "function delete($url, $parameters = array()) {\n\t\t$response = $this->oAuthRequest($url, \"DELETE\", $parameters);\n\t\tif ($this->format === \"json\" && $this->decodeJson) {\n\t\t\treturn json_decode($response);\n\t\t}\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "cd273a947fc1613482c5da1a42cc23be", "score": "0.4351253", "text": "public function postAdminTestQuestionRemove(Request $request) {\n $testquestion = TestQuestion::where('testid', $request->inputTestID)\n ->where('questionid', $request->inputQuestionID);\n $question = Question::find($request->inputQuestionID);\n\n $testquestion->delete();\n\n return Response::json($question);\n }", "title": "" } ]
40fda614087a0d5416f48ccd85ea8404
Create a new Topic in Board
[ { "docid": "2614389d15852e864eed9954bfab24ba", "score": "0.61318934", "text": "public function postAction(Board $board)\n {\n $topic = new Topic();\n $topic->setBoard($board);\n\n $form = $this->formFactory->create('forum_topic', $topic);\n\n if ($this->request->getMethod() == 'POST') {\n $form->bindRequest($this->request);\n\n if ($form->isValid()) {\n $this->manager->create($topic);\n $this->session->getFlashBag()->add('success', 'Topic posted successfully.');\n return new RedirectResponse($this->router->generate('forum_topic_view', array('id' => $topic->getId())));\n }\n }\n\n return $this->templating->renderResponse('CourtyardForumBundle:Topics:post.html.twig', array(\n 'board' => $board,\n 'form' => $form->createView()\n ));\n }", "title": "" } ]
[ { "docid": "ce083994bda1821f82e23c789f59056c", "score": "0.7263659", "text": "public function create()\n {\n return $this->topicService->create();\n }", "title": "" }, { "docid": "ac28634ca23ad39deb7f4ac82bbf4e0c", "score": "0.7217617", "text": "public static function newTopic($name) {\n Database::executeQueryReturnSingle(\"INSERT INTO topics VALUES (DEFAULT, ?)\", array($name));\n }", "title": "" }, { "docid": "7657394847355271e22c1e660afa5f8a", "score": "0.7194934", "text": "public function topic_create(Request $request){\n if (!Auth::user()->hasAccess('forum.create')) {\n return redirect()->back()->withErrors(['You do not have permission to view this content']);\n }\n\n $categoryList = ChatterCategory::pluck('name', 'id');\n if(isset($request->save) && !empty($request->save)) {\n $this->validate($request, [\n 'chatter_category_id' => array('required', 'Integer'),\n 'title' => array('required','String'),\n ]);\n\n $request->merge(array('slug' => str_slug($request->title)));\n $request->merge(array('user_id' => Auth::user()->id));\n $discussion = ChatterDiscussion::create($request->except(['save']));\n\n //To prevent errors on the front end we also need to to create a post to belong to the new topic\n $post_data = array('chatter_discussion_id' => $discussion->id, 'user_id' => Auth::user()->id, 'body' => 'Initial Post');\n ChatterPost::create($post_data);\n return redirect('/forum-topics')->with('status', 'Topic added successfully.');\n }\n return view('forums/topic-create', compact('categoryList'));\n }", "title": "" }, { "docid": "e04ecfcd90883301012d311e8c5c41e8", "score": "0.705439", "text": "public function create()\n {\n return view('Admin.Topic.create');\n }", "title": "" }, { "docid": "ed0db737d922fec9b3cede91fdda3a76", "score": "0.6998586", "text": "public function create()\n {\n $title = 'Create Topic';\n return view('topic.create', compact('title'));\n }", "title": "" }, { "docid": "4c0a3e55b76cb40958edeb7807eda0a5", "score": "0.69770133", "text": "public function creating(ProgramPresentationTopic $model)\n {\n\n }", "title": "" }, { "docid": "400028a17525315497cb28c205e6cdbd", "score": "0.6974603", "text": "public function create()\n\t{\n //return view('conferenceChair.createTopic');\n\n }", "title": "" }, { "docid": "96e685c0bba5aa6c8937565c4f7ed00a", "score": "0.6946792", "text": "public function create()\n {\n return view('subject.topic.addTopic');\n }", "title": "" }, { "docid": "cdbf30ad656e8548acfc2d1cbddaf039", "score": "0.69249195", "text": "public function create()\n {\n $topics = \\App\\Topic::all();\n return view('admin/topic/create', compact('topics'));\n }", "title": "" }, { "docid": "0e9c938923c0a8c440e8ca7f8dab6b77", "score": "0.69244623", "text": "public function createNewTopic()\n {\n $class = $this->getObjectClass();\n\n return new $class();\n }", "title": "" }, { "docid": "c50ee88bd02568f4be348548b12bc7fb", "score": "0.6877154", "text": "public function create()\n {\n return view('topic.create');\n }", "title": "" }, { "docid": "c5296980c4cf75487b5b8511be499a20", "score": "0.68361586", "text": "public function create()\n {\n if (!Auth::check())\n {\n return redirect('login');\n }\n \n $topic = new Topic;\n return view('topic.create',['topic'=>$topic,'page'=>'AddTopic']);\n }", "title": "" }, { "docid": "7bab6135c8434d6d8bc9ffc0a62a9e63", "score": "0.68326443", "text": "public function processAddTopic() {\n\t\n\n\t\t$loclat = $_POST['loclat'];\n\t\t$loclong = $_POST['loclong'];\n\t\t$point = $loclat.\" \".$loclong;\n\t\t$locstr = \"GeomFromText('POINT(\".$loclat.\" \".$loclong.\")',0)\";\n\t\t$newTopic = new Topic(array(\n\t\t\t'title' => $_POST['title'],\n\t\t\t'post' => $_POST['post'],\n\t\t\t'location' => $locstr,\n\t\t\t'user_id' => $this->currUser->get('id')\n\t\t));\n\t\t\n\t\t$added = $this->processInsert($newTopic, 'Topic');\n\t\tif(!$added) {\n\t\t\theader('Location: '.BASE_URL.'/addTopic');\n\t\t}\n\t\telse {\n\t\t\theader('Location: '.BASE_URL.'/view/'.$added->get('id'));\n\t\t}\n\t\texit();\n\t}", "title": "" }, { "docid": "68620547365128be8da83f00523d6dab", "score": "0.6780264", "text": "public function create()\n {\n $alphabet = $this->repository->getAlphabet();\n $categories = Category::all();\n\n return view('pages.topics.create-topic', compact('categories', 'alphabet'));\n }", "title": "" }, { "docid": "e51baeb5bdcf5bc92a22c3bb73ce59d1", "score": "0.67364514", "text": "public function store(HandleCreateTopicRequest $request)\n {\n $topic = Topic::create([\n 'name' => $request->topic_name,\n 'slug' => str_slug($request->topic_name, '-'),\n 'category_id' => $request->category_id,\n 'user_id' => Auth::user()->id,\n 'status' => 0,\n 'view_count' => 0,\n ]);\n foreach ($request->content as $key => $question) {\n foreach ($request->explain[$key] as $explain) {\n $question = Question::create([\n 'content' => Purifier::clean($question),\n 'explain' => Purifier::clean($explain),\n ]);\n $question->topics()->sync($topic->id, false);\n }\n $corrected = $question->correct_ans;\n $correct = $request->correct_ans[$key];\n foreach ($request->answer[$key] as $k => $content) {\n $answer = Answer::create([\n 'question_id' => $question->id,\n 'content' => $content,\n ]);\n $answer->question()->associate($question->id);\n for ($i = 0; $i < count($correct); $i++) {\n if ($k == (int) $correct[$i]) {\n $corrected[$i] = $answer->id;\n $question->correct_ans = $corrected;\n }\n $question->save();\n }\n }\n }\n Session::flash('success', __('translate.request'));\n\n return redirect()->route('create-topics.index', $topic->user_id);\n }", "title": "" }, { "docid": "c9b7ecf20c91208faed1d334883c88bf", "score": "0.67112213", "text": "function processTopic() {\n\t\n\t$topic = $_POST['topic'];\n\t$description = $_POST['description'];\n\t$date = $_POST['date'];\n\t$format = $_POST['format'];\n\t$author = $_POST['author'];\n\t\t\n\tglobal $wpdb;\n\t$table_name = $wpdb->prefix . \"topic_manager\"; \n\t\n\tif (!empty($topic)) {\n\t$insertedTopic = $wpdb->insert( $table_name, array( 'topic' => $topic, 'description' => $description, 'status' => 'open', 'date' => $date, 'format' => $format, 'author' => $author), array( '%s', '%s', '%s', '%s', '%s' ) );\n\t}\n\t\n\t// check for affected rows\n}", "title": "" }, { "docid": "72a38b06bbd1dbc6f84f74122b09ce44", "score": "0.67041564", "text": "public function create()\n {\n //\n\t\treturn view('admin/topics/create');\n }", "title": "" }, { "docid": "277c88333fc247214f2f90e00a9a3105", "score": "0.6701464", "text": "public function bbpress_add_new_topic_link() {\n\t\tif ( bbp_current_user_can_access_create_topic_form() ) :\n\t\t\t?>\n\t\t\t&emsp;<a href=\"#new-post\">Start a new topic</a>\n\t\t\t<?php\n\t\tendif;\n\t}", "title": "" }, { "docid": "7b883064b4fbf8db23962d11472e819e", "score": "0.6685018", "text": "public function create()\n {\n $topic_id = Uuid::uuid4();\n\n return view('canvas::topics.create', compact('topic_id'));\n }", "title": "" }, { "docid": "21bb9b55060f8f13bf72629fe1322a4d", "score": "0.66749996", "text": "public function new_topic_link() {\n\t\tif (\n\t\t\tbbp_is_single_forum()\n\t\t||\n\t\t\tbbp_is_single_view() && in_array( bbp_get_view_id(), array( 'plugin', 'reviews', 'theme' ) )\n\t\t) {\n\t\t\t$btn = null;\n\t\t\t$is_reviews = 'reviews' === bbp_get_view_id();\n\n\t\t\tif ( bbp_current_user_can_access_create_topic_form() ) {\n\t\t\t\t$btn = sprintf(\n\t\t\t\t\t'<a class=\"button button-secondary create-topic\" href=\"#new-topic-0\">%s</a>',\n\t\t\t\t\t$is_reviews ? __( 'Create Review', 'wporg-forums' ) : __( 'Create Topic', 'wporg-forums' )\n\t\t\t\t);\n\t\t\t} elseif ( ! bbp_is_forum_closed() && ! is_user_logged_in() ) {\n\t\t\t\t$btn = sprintf(\n\t\t\t\t\t'<a class=\"button button-secondary create-topic login\" href=\"%s\">%s</a>',\n\t\t\t\t\twp_login_url(),\n\t\t\t\t\t$is_reviews ? __( 'Log in to Create a Review', 'wporg-forums' ) : __( 'Log in to Create a Topic', 'wporg-forums' )\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif ( $btn ) {\n\t\t\t\t$searchform = get_search_form( [ 'echo' => false ] );\n\n\t\t\t\techo '<div class=\"bbp-create-topic-wrapper\">';\n\t\t\t\tif ( $searchform ) {\n\n\t\t\t\t\t// Output create button alongside search form except for reviews, which already have the button in a section rendered above this one.\n\t\t\t\t\tif( $is_reviews ) {\n\t\t\t\t\t\techo $searchform;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tprintf(\n\t\t\t\t\t\t\t/* translators: 1: markup for forums search field which is primary action, 2: markup for button to create topic */\n\t\t\t\t\t\t\t__( '%1$s or %2$s', 'wporg-forums' ),\n\t\t\t\t\t\t\t$searchform,\n\t\t\t\t\t\t\t$btn\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\techo $btn;\n\t\t\t\t}\n\t\t\t\techo \"</div>\\n\";\n\t\t\t}\n\n\t\t\tremove_filter( 'bbp_template_before_pagination_loop', array( $this, 'new_topic_link' ) );\n\t\t}\n\t}", "title": "" }, { "docid": "3bcafab90090160d4a3fe26f892fc1d3", "score": "0.6659802", "text": "public function create() {\n\n $query = 'INSERT INTO\n ' . $this->table . '\n SET\n topic = :topic,\n createdat = :createdat,\n user_id = :user_id';\n \n $stmt = $this->conn->prepare($query);\n\n $this->topic = htmlspecialchars(strip_tags($this->topic));\n $this->createdat = htmlspecialchars(strip_tags($this->createdat));\n $this->user_id = htmlspecialchars(strip_tags($this->user_id));\n \n $stmt->bindParam(':topic', $this->topic);\n $stmt->bindParam(':createdat', $this->createdat);\n $stmt->bindParam(':user_id', $this->user_id);\n\n if ($stmt->execute()) {\n\n return true;\n } else {\n\n return false;\n }\n }", "title": "" }, { "docid": "72180311f39988be2d09010de8dedcca", "score": "0.66164356", "text": "public function addTopic(){\n $content = _get(\"content\");\n $topicTitle = _get(\"topic_title\");\n $section = _get(\"section\");\n $useArr = $_SESSION[\"user\"];\n $result = $this->topicModel->addTopic($topicTitle, $content, $section, $useArr);\n if($result == 1){\n parent::redirect(\"listTopics\");\n }else{\n $this->view = View::build(\"failure\");\n }\n }", "title": "" }, { "docid": "20f6ce78770d048b5d545c2254dd4349", "score": "0.66124105", "text": "function topicsCreateDraft() {\n\tglobal $wpdb;\n\t$newDraftID = $_GET['draft'];\n\t$table_name = $wpdb->prefix . \"topic_manager\";\n\t$draftAuthor = get_current_user_id();\n\t\n\t$createDraft = $wpdb->get_row( \"SELECT topic, description FROM $table_name WHERE id = '$newDraftID' \" );\n\t\n\t// Create draft post object\n $draft_post = array(\n 'post_title' => $createDraft->topic,\n 'post_content' =>$createDraft->description,\n 'post_status' => 'draft',\n 'post_author' => $draftAuthor\n );\n\n $newPost = wp_insert_post( $draft_post );\n \n}", "title": "" }, { "docid": "d4428d637044e41d54bcb30eddf5389a", "score": "0.65724885", "text": "public function run()\n {\n factory(App\\Topic::class, 50)->create(['exam_id' => 1]);\n }", "title": "" }, { "docid": "0ad1a0f1c18b49fecea87dff08e3d0ad", "score": "0.6572283", "text": "private static function createSpamTopic()\n {\n $forumid = self::getID();\n\n return Forum_Topic::add($forumid, \"__SPAM__\");\n }", "title": "" }, { "docid": "a4959e77f983d0b99a70a5fadfb82ae6", "score": "0.6560165", "text": "public function addTopic(Request $request)\n {\n $this->validate($request, [\n 'topic' => 'required'\n ]);\n\n $topic = new Topic();\n $topic->user_id = Auth::user()->id;\n $topic->nameTopic = $request->topic;\n $topic->save();\n\n return redirect('/homePage/manageTopic')->with('addTopic-success', 'Success Add Topic');\n }", "title": "" }, { "docid": "01d738bbadfb21e43f712d13993a8cdd", "score": "0.65347797", "text": "function _add_topic() {\n\t\tif (!in_array($_SESSION['admin_group'], array(1, 6))) {\n\t\t\treturn 'Access denied';\n\t\t}\n\t\t$FORUM_ID = $_GET['id'];\n\t\t// Get child accouts for the current poster\n\t\t$all_posters_users = main()->get_data('forum_posters_users', 3600);\n\t\t$_users_array = $all_posters_users[$_SESSION['admin_id']];\n\t\tunset($all_posters_users);\n\t\tif (empty($_users_array)) {\n\t\t\treturn _e('No user accounts specified for you.');\n\t\t}\n\t\tif (main()->is_post()) {\n\t\t\t$_POST['user_id'] = intval($_POST['user_id']);\n\t\t\tif (empty($_POST['user_id']) || !isset($_users_array[$_POST['user_id']])) {\n\t\t\t\t_re('User id required');\n\t\t\t}\n\t\t\tif (empty($_POST['name'])) {\n\t\t\t\t_re('Topic name required');\n\t\t\t}\n\t\t\tif (empty($_POST['text'])) {\n\t\t\t\t_re('Topic text required');\n\t\t\t}\n\t\t\tif (!common()->_error_exists()) {\n\t\t\t\tdb()->INSERT('forum_future_posts', array(\n\t\t\t\t\t'poster_id'\t\t\t=> intval($_SESSION['admin_id']),\n\t\t\t\t\t'forum_id'\t\t\t=> intval($_POST['forum']),\n\t\t\t\t\t'topic_id'\t\t\t=> 0,\n\t\t\t\t\t'future_topic_id'\t=> 0,\n\t\t\t\t\t'user_id'\t\t\t=> intval($_POST['user_id']),\n\t\t\t\t\t'user_name'\t\t\t=> _es($_users_array[$_POST['user_id']]),\n\t\t\t\t\t'date'\t\t\t\t=> strtotime($_POST['date']),\n\t\t\t\t\t'subject'\t\t\t=> _es($_POST['desc']),\n\t\t\t\t\t'text'\t\t\t\t=> _es($_POST['text']),\n\t\t\t\t\t'new_topic'\t\t\t=> 1,\n\t\t\t\t\t'topic_title'\t\t=> _es($_POST['name']),\n\t\t\t\t\t'active'\t\t\t=> 1,\n\t\t\t\t));\n\t\t\t\treturn js_redirect('./?object='.$_GET['object'].'&action=view_forum&id='.$_POST['forum']);\n\t\t\t}\n\t\t}\n\t\tif (empty($_POST['date'])) {\n\t\t\t$_POST['date'] = time() + rand($this->NEXT_DATE_MIN, $this->NEXT_DATE_MAX);\n\t\t}\n\t\t$_parents_array = module('manage_forum')->_prepare_parents_for_select();\n\t\t$replace = array(\n\t\t\t'form_action'\t=> './?object='.$_GET['object'].'&action='.$_GET['action'].'&id='.$_GET['id'],\n\t\t\t'error_message'\t=> _e(),\n\t\t\t'name'\t\t\t=> _prepare_html($_POST['name']),\n\t\t\t'desc'\t\t\t=> _prepare_html($_POST['desc']),\n\t\t\t'text'\t\t\t=> _prepare_html($_POST['text']),\n\t\t\t'forum_box'\t\t=> common()->select_box('forum', $_parents_array, $_GET['id'], false),\n\t\t\t'users_box'\t\t=> common()->select_box('user_id', $_users_array, $_POST['user_id'], false),\n\t\t\t'date'\t\t\t=> date('Y-m-d H:i:s', !is_numeric($_POST['date']) ? strtotime($_POST['date']) : $_POST['date']),\n\t\t\t'back'\t\t\t=> back('./?object='.$_GET['object'].'&action=view_forum&id='.$_GET['id']),\n\t\t\t'next_date_min'\t=> intval($this->NEXT_DATE_MIN),\n\t\t\t'next_date_max'\t=> intval($this->NEXT_DATE_MAX),\n\t\t);\n\t\treturn tpl()->parse('manage_forum/future_topic_form', $replace);\n\t}", "title": "" }, { "docid": "5dcbc4ab78156a792b8356c507a6d80c", "score": "0.6521002", "text": "function putTopic($board_id, $subject, $message, $user_id = 0, $options = Array()) {\n\tglobal $db_prefix, $ID_MEMBER, $modSettings, $user_info;\n\n\t\trequire_once($this->config['Path']['Auth_Local'] . 'Sources/Subs-Post.php');\n\n\t\t// Clean the strings\n\t\t$subject = $this->formatPutTopic($subject);\n\t\t$message = $this->formatPutTopic($message);\n\n\t\t$msgOptions = Array(\n\t\t\t'icon' => $options['icon'],\n\t\t\t'smileys_enabled' => true,\n\t\t\t'subject' => $subject,\n\t\t\t'body' => $message,\n\t\t);\n\n\t\t$topicOptions = Array(\n\t\t\t'board' => $board_id,\n\t\t\t'lock_mode' => $options['locked'],\n\t\t\t'sticky_mode' => $options['sticky'],\n\t\t\t'mark_as_read' => true,\n\t\t);\n\n\t\t$posterOptions = Array(\n\t\t\t'id' => ($user_id ? $user_id : $ID_MEMBER),\n\t\t\t'update_post_count' => $options['update_post_count'],\n\t\t);\n\n\t\t$topic_id = createPost($msgOptions, $topicOptions, $posterOptions);\n\n\t\treturn $topic_id;\n\n\t}", "title": "" }, { "docid": "27550c030bf91bb644df6375c539e9e3", "score": "0.65112567", "text": "public function store()\n {\n $data = [\n 'id' => request('id'),\n 'name' => request('name'),\n 'slug' => request('slug'),\n ];\n\n $messages = [\n 'required' => __('canvas::validation.required'),\n 'unique' => __('canvas::validation.unique'),\n ];\n\n validator($data, [\n 'name' => 'required',\n 'slug' => 'required|'.Rule::unique('canvas_topics', 'slug')->ignore(request('id')).'|regex:/^[a-z0-9]+(?:-[a-z0-9]+)*$/i',\n ], $messages)->validate();\n\n $topic = new Topic(['id' => request('id')]);\n $topic->fill($data);\n $topic->save();\n\n return redirect(route('canvas.topic.edit', $topic->id))->with('notify', __('canvas::nav.notify.success'));\n }", "title": "" }, { "docid": "daf16fed13b8d6e5be85a64ae5f8ff82", "score": "0.6492063", "text": "public function store(TopicRequest $request)\n {\n $topic = new Topic;\n $form = $request->all();\n unset($form['_token']);\n $topic->user_id = Auth::user()->id;\n $topic->fill($form)->save();\n return redirect('/topic');\n }", "title": "" }, { "docid": "9a37460013cb2d7cb904356320769835", "score": "0.64868987", "text": "function new_topic($personal_topic=false,$member_id=NULL,$img_path='',$text=NULL) // Type\n\t{\n\t\tif (!$personal_topic)\n\t\t{\n\t\t\t$forum_id=get_param_integer('id');\n\t\t} else\n\t\t{\n\t\t\t$forum_id=NULL;\n\t\t}\n\n\t\t// Breadcrumbs etc\n\t\tif ($personal_topic)\n\t\t{\n\t\t\tcheck_specific_permission('use_pt');\n\n\t\t\tbreadcrumb_set_parents(array(array('_SEARCH:forumview:pt',do_lang_tempcode('PERSONAL_TOPICS'))));\n\n\t\t\t$username=mixed();\n\t\t\t$username=($member_id==get_member())?false:$GLOBALS['FORUM_DRIVER']->get_username($member_id);\n\t\t\tif (is_null($username)) warn_exit(do_lang_tempcode('USER_NO_EXIST'));\n\n\t\t\t$staff_help_url=brand_base_url().'/docs'.strval(ocp_version()).'/pg/tut_correspondance';\n\t\t} else\n\t\t{\n\t\t\tif (!is_null($forum_id))\n\t\t\t{\n\t if (!has_category_access(get_member(),'forums',strval($forum_id))) access_denied('CATEGORY_ACCESS'); // Can happen if trying to reply to a stated whisper made to you in a forum you don't have access to\n\t\t\t}\n\n\t\t\t$staff_help_url=NULL;\n\n\t\t\t$tree=ocf_forum_breadcrumbs($forum_id,NULL,NULL,false);\n\t\t\tbreadcrumb_add_segment($tree,do_lang_tempcode('ADD_TOPIC'));\n\t\t}\n\n\t\t$hidden_fields=new ocp_tempcode();\n\t\t$specialisation=new ocp_tempcode();\n\n\t\tglobal $NON_CANONICAL_PARAMS;\n\t\t$NON_CANONICAL_PARAMS[]='quote';\n\n\t\t// Where to post to\n\t\t$map=array('page'=>'_SELF','type'=>'_add_reply');\n\t\t$redirect=get_param('redirect','');\n\t\tif ($redirect!='') $map['redirect']=$redirect;\n\t\t$post_url=build_url($map,'_SELF');\n\n\t\t// Title\n\t\t$specialisation->attach(form_input_line(do_lang_tempcode('TITLE'),'','title',post_param('title',''),true,1));\n\n\t\t// Where it goes to\n\t\tif ($personal_topic)\n\t\t{\n\t\t\tif ($member_id==get_member())\n\t\t\t{\n\t\t\t\t$specialisation->attach(form_input_username_multi(do_lang_tempcode('TO'),'','to_member_id_',array(),1,true,1));\n\t\t\t\tcheck_specific_permission('use_pt');\n\t\t\t} else\n\t\t\t{\n\t\t\t\t$hidden_fields->attach(form_input_hidden('member_id',strval($member_id)));\n\t\t\t}\n\t\t\t$threaded=false;\n\t\t} else\n\t\t{\n\t\t\t$hidden_fields->attach(form_input_hidden('forum_id',strval($forum_id)));\n\t\t\t$_threaded=$GLOBALS['FORUM_DB']->query_value_null_ok('f_forums','f_is_threaded',array('id'=>$forum_id));\n\t\t\tif (is_null($_threaded)) warn_exit(do_lang_tempcode('MISSING_RESOURCE'));\n\t\t\t$threaded=($_threaded==1);\n\t\t}\n\n\t\t// Description\n\t\tif ((get_option('is_on_topic_descriptions')=='1') && (!$threaded))\n\t\t\t$specialisation->attach(form_input_line(do_lang_tempcode('DESCRIPTION'),'','description',post_param('description',''),false,2));\n\n\t\t// Set up some post details\n\t\t$post=post_param('post','');\n\t\t$quote=get_param_integer('quote',-1);\n\t\tif ($quote!=-1)\n\t\t{\n\t\t\t$_postdetails=$this->attach_quotes(array($quote));\n\t\t\t$post=$_postdetails->evaluate();\n\t\t}\n\t\tif (!$personal_topic)\n\t\t{\n\t\t\tlist($post_templates,$post2)=$this->post_templates($forum_id);\n\t\t\tif ($post=='') $post=$post2;\n\t\t\t$specialisation->attach($post_templates);\n\t\t}\n\t\tif (get_option('is_on_topic_emoticons')=='1')\n\t\t\t$specialisation->attach($this->choose_topic_emoticon($img_path));\n\n\t\tif (is_guest())\n\t\t{\n\t\t\t$specialisation->attach(form_input_line(do_lang_tempcode('GUEST_NAME'),new ocp_tempcode(),'poster_name_if_guest',do_lang('GUEST'),true));\n\t\t}\n\n\t\t/*if (has_specific_permission(get_member(),'decide_comment_type'))\tThreaded topics not implemented (yet?)\n\t\t{\n\t\t\t$topic_types=new ocp_tempcode();\n\t\t\t$topic_types->attach(form_input_list_entry('0',get_option('threaded_topics_default')=='0',do_lang_tempcode('LINEAR_TOPIC')));\n\t\t\t$topic_types->attach(form_input_list_entry('1',get_option('threaded_topics_default')=='1',do_lang_tempcode('THREADED_TOPIC')));\n\t\t\t$specialisation->attach(form_input_list(do_lang_tempcode('TOPIC_TYPE'),do_lang_tempcode('DESCRIPTION_TOPIC_TYPE'),'topic_type',do_lang('GUEST'),$topic_types));\n\t\t} else\n\t\t{\n\t\t\t$hidden_fields->attach(form_input_hidden('topic_type',get_option('threaded_topics_default')));\n\t\t}*/\n\n\t\t// Various kinds of tick options\n\t\tif ((!$personal_topic) && (ocf_may_moderate_forum($forum_id,get_member())))\n\t\t{\n\t\t\t$moderation_options=array(\n\t\t\t\t\t\t\t\tarray(do_lang_tempcode('OPEN'),'open',true,do_lang_tempcode('DESCRIPTION_OPEN')),\n\t\t\t\t\t\t\t\tarray(do_lang_tempcode('EMPHASISED'),'is_emphasised',false,do_lang_tempcode('DESCRIPTION_EMPHASISED')),\n\t\t\t\t\t\t\t\tarray(do_lang_tempcode('PINNED'),'pinned',false,do_lang_tempcode('DESCRIPTION_PINNED')),\n\t\t\t\t\t\t);\n\t\t\tif (addon_installed('unvalidated'))\n\t\t\t\t$moderation_options[]=array(do_lang_tempcode('VALIDATED'),'validated',true,do_lang_tempcode('DESCRIPTION_VALIDATED'));\n\t\t\tif (get_value('disable_sunk')!=='1')\n\t\t\t\t$moderation_options[]=array(do_lang_tempcode('SUNK'),'sunk',false,do_lang_tempcode('DESCRIPTION_SUNK'));\n\t\t\tif (!$personal_topic) $moderation_options[]=array(do_lang_tempcode('CASCADING'),'cascading',false,do_lang_tempcode('DESCRIPTION_CASCADING'));\n\t\t} else\n\t\t{\n\t\t\t$hidden_fields->attach(form_input_hidden('open','1'));\n\t\t\t$hidden_fields->attach(form_input_hidden('validated','1'));\n\t\t\t$moderation_options=array();\n\t\t}\n\t\t$hidden_fields->attach(form_input_hidden('from_url',get_self_url(true)));\n\t\t$options=array();\n\t\tif (!is_guest())\n\t\t{\n\t\t\tif (get_value('disable_skip_sig')!=='1')\n\t\t\t{\n\t\t\t\tif (addon_installed('ocf_signatures'))\n\t\t\t\t\t$options[]=array(do_lang_tempcode('SKIP_SIGNATURE'),'skip_sig',false,do_lang_tempcode('DESCRIPTION_SKIP_SIGNATURE'));\n\t\t\t}\n\t\t\tif (get_option('is_on_anonymous_posts')=='1')\n\t\t\t\t$options[]=array(do_lang_tempcode('_MAKE_ANONYMOUS_POST'),'anonymous',false,do_lang_tempcode('MAKE_ANONYMOUS_POST_DESCRIPTION'));\n\t\t}\n\t\t$options[]=array(do_lang_tempcode('ADD_TOPIC_POLL'),'add_poll',false,do_lang_tempcode('DESCRIPTION_ADD_TOPIC_POLL'));\n\t\t$specialisation2=new ocp_tempcode();\n\t\tif (count($options)==1) // Oh, actually we know this was just the option to add a poll, so show simply\n\t\t{\n\t\t\t$specialisation->attach(form_input_tick(do_lang_tempcode('ADD_TOPIC_POLL'),do_lang_tempcode('DESCRIPTION_ADD_TOPIC_POLL'),'add_poll',false));\n\t\t} else\n\t\t{\n\t\t\t$specialisation2->attach(form_input_various_ticks($options,''));\n\t\t}\n\t\tif (count($moderation_options)!=0)\n\t\t{\n\t\t\t$specialisation2->attach(form_input_various_ticks($moderation_options,'',NULL,do_lang_tempcode('MODERATION_OPTIONS')));\n\t\t}\n\n\t\t// Custom fields?\n\t\trequire_code('fields');\n\t\tif (has_tied_catalogue('topic'))\n\t\t{\n\t\t\tappend_form_custom_fields('topic',NULL,$specialisation,$hidden_fields);\n\t\t}\n\t\tif (has_tied_catalogue('post'))\n\t\t{\n\t\t\tappend_form_custom_fields('post',NULL,$specialisation,$hidden_fields);\n\t\t}\n\n\t\tif (is_null($text))\n\t\t\t$text=new ocp_tempcode();\n\n\t\t// CAPTCHA?\n\t\tif (addon_installed('captcha'))\n\t\t{\n\t\t\trequire_code('captcha');\n\t\t\tif (use_captcha())\n\t\t\t{\n\t\t\t\t$specialisation->attach(form_input_captcha());\n\t\t\t\t$text->attach(paragraph(do_lang_tempcode('FORM_TIME_SECURITY')));\n\t\t\t}\n\t\t}\n\n\t\t// Note about points?\n\t\tif (addon_installed('points'))\n\t\t{\n\t\t\t$login_url=build_url(array('page'=>'login','type'=>'misc','redirect'=>get_self_url(true,true)),get_module_zone('login'));\n\t\t\t$_login_url=escape_html($login_url->evaluate());\n\t\t\tif ((is_guest()) && ((get_forum_type()!='ocf') || (has_actual_page_access(get_member(),'join')))) $text->attach(paragraph(do_lang_tempcode('NOT_LOGGED_IN_NO_CREDIT',$_login_url)));\n\t\t}\n\n\t\t// Needs validating?\n\t\tif ((!is_null($forum_id)) && (!has_specific_permission(get_member(),'bypass_validation_midrange_content','topics',array('forums',$forum_id))))\n\t\t{\n\t\t\t$text->attach(paragraph(do_lang_tempcode('WILL_NEED_VALIDATING')));\n\t\t}\n\n\t\t// Awards?\n\t\tif (addon_installed('awards'))\n\t\t{\n\t\t\trequire_code('awards');\n\t\t\t$specialisation->attach(get_award_fields('topic'));\n\t\t\t$specialisation->attach(get_award_fields('post'));\n\t\t}\n\n\t\t// Render form\n\t\t$posting_form=get_posting_form(do_lang($personal_topic?'ADD_PERSONAL_TOPIC':'ADD_TOPIC'),$post,$post_url,$hidden_fields,$specialisation,NULL,'',$specialisation2,NULL,$this->_post_javascript().(function_exists('captcha_ajax_check')?captcha_ajax_check():''));\n\n\t\t// Work out title to show\n\t\tif (!$personal_topic)\n\t\t{\n\t\t\t$forum_name=$GLOBALS['FORUM_DB']->query_value_null_ok('f_forums','f_name',array('id'=>$forum_id));\n\t\t\tif (is_null($forum_name)) warn_exit(do_lang_tempcode('MISSING_RESOURCE'));\n\t\t}\n\t\tif ($personal_topic)\n\t\t{\n\t\t\tif ($username===false)\n\t\t\t{\n\t\t\t\t$title=do_lang_tempcode('_ADD_PERSONAL_TOPIC_UNKNOWN');\n\t\t\t} else\n\t\t\t{\n\t\t\t\t$title=do_lang_tempcode('_ADD_PERSONAL_TOPIC',escape_html($username));\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\t$title=do_lang_tempcode('_ADD_TOPIC',escape_html($forum_name));\n\t\t}\n\t\t$_title=get_page_title($title,false);\n\n\t\treturn do_template('POSTING_SCREEN',array('_GUID'=>'ba5308fe0a8f9f9a24988209423a3a16','STAFF_HELP_URL'=>$staff_help_url,'TEXT'=>$text,'TITLE'=>$_title,'POSTING_FORM'=>$posting_form));\n\t}", "title": "" }, { "docid": "2e24ea8cc46093a63fa5031b97128839", "score": "0.64863336", "text": "public function store(TopicRequest $request)\n {\n $topic = Topic::create($request->all());\n if ($request->tags) {\n TagService::TagsHandler($topic, explode(',', $request->tags));\n }\n $topic->generated_description = MarkdownService::baseConvert($topic->description);\n $topic->save();\n $topic->tags = $topic->tags()->get();\n return $this->setStatusCode(201)->respond($topic);\n }", "title": "" }, { "docid": "382dd24e0bb0a5075b20c3d3ae8739a9", "score": "0.6472466", "text": "public function store(Request $request)\n {\n \n $this->validate($request, [\n 'title' => 'required',\n 'category_id' => 'required',\n 'description' => 'required'\n ]);\n\n $topic = Topic::create([\n 'user_id' => Auth::id(),\n 'title' => $request->title,\n 'category_id' => $request->category_id,\n 'description' => $request->description \n ]);\n\n Session::flash('success', 'You started new Topic');\n\n return redirect()->route('topics.create');\n }", "title": "" }, { "docid": "6c21fe40d779e8d8e6eb09c6608a0736", "score": "0.64715433", "text": "public function insert_topic($datos){\n $this->db->insert('topic', $datos); \n }", "title": "" }, { "docid": "b6006195ba3a555a4f33c6b4e32308af", "score": "0.6432023", "text": "public function create()\n {\n return view('topics.create');\n }", "title": "" }, { "docid": "b6006195ba3a555a4f33c6b4e32308af", "score": "0.6432023", "text": "public function create()\n {\n return view('topics.create');\n }", "title": "" }, { "docid": "b6006195ba3a555a4f33c6b4e32308af", "score": "0.6432023", "text": "public function create()\n {\n return view('topics.create');\n }", "title": "" }, { "docid": "accf47da5eac50277238a79c90dead9a", "score": "0.6408726", "text": "public function createTopic( $topicName, $topicContent, $topicSource, $topicType) \n {\n $topicAdditiveModel = new TopicAdditiveModel();\n $userTopicModel = new UserTopicModel();\n $masterModel = new MasterModel();\n \n /* begin of the transaction */\n $topicAdditiveModel->getAdapter()->beginTransaction();\n /* get userName from master */\n $master = $masterModel->fetchRow('userID = 0');\n $userName = $master['userName'];\n try\n {\n /* insert new topicName into table topicName */\n $this->insert( array( 'topicName' => $topicName));\n \n /* get auto-created topicID and insert topicData + topicID in table topic */\n $topicIDRow = $this->fetchRow( $this->select()->where( 'topicName = ?' , $topicName));\n $topicID = $topicIDRow['topicID'];\n $topicAdditiveModel->insert( array( 'topicID' => $topicID, \n 'topicContent' => $topicContent, \n 'topicSource' => $topicSource, \n 'topicType' => $topicType));\n \n /* add connection between the topic and the master to usertopic-db */\n $userTopicModel->insert( array( 'userID' => 0,\n 'topicID' => $topicID,\n 'userName' => $userName, \n 'master' => 1,\n 'hash' => md5( rand(1, 1000) . microtime(). $topicID)));\n \n /* commit transaction */\n $query = $topicAdditiveModel->getAdapter()->commit();\n }\n catch(Exception $e) //transaction failed, rollback\n {\n $topicAdditiveModel->getAdapter()->rollBack();\n return null;\n }\n return $topicID;\n }", "title": "" }, { "docid": "ded18c336ddb4d751ccd22fd7959f2b6", "score": "0.64086205", "text": "abstract protected function prepareTopicSingle(/* tx_egovapi_domain_model_topic */ $topic);", "title": "" }, { "docid": "e335f02164fb6ae2d4430864a8cb9063", "score": "0.6394092", "text": "public function store(Request $request)\n {\n if(Auth::user())\n {\n //Creating unique ID (might need to change later)\n $topicUUID = Carbon::now()->timestamp;\n $slug=str_slug($request->topic, \"-\");\n\n //if cannot convert to slug, then use normal text\n if(empty($slug))\n $slug=$request->topic;\n\n //Creat slug\n $topicSlug = $slug . '-' . $topicUUID;\n\n //Generate tag list for topic table\n $taglist = implode(\",\", $request->tags);\n\n $topic = new Topics();\n $topic->uuid = $topicUUID;\n $topic->uid = Auth::user()->uuid;\n $topic->anon = $request->anon;\n $topic->topic = clean($request->topic);\n $topic->text = clean($request->text);\n $topic->channel = $request->channel;\n $topic->tags = $taglist;\n\n //Check if this post is anon if it easy, we manually verify\n if(!$request->anon)\n $topic->verified = 1;\n\n\n $topic->slug = clean(str_replace(\" \", \"-\", $topicSlug));\n\n $topic->save();\n\n\n //If topic is anon\n if($request->anon)\n Event::fire(new AnonPost($topic->id));\n\n\n //Tags - to store in tags table\n $tag_data = array();\n $count=0;\n\n //Insert tags in another table\n foreach($request->tags as $tag)\n {\n //Master link of tags\n $tag_data[$count] = array( 'topic_uuid'=> $topicUUID,\n 'title' => clean($tag),\n 'channel_id'=> $request->channel,\n 'created_at'=> date(\"Y-m-d H:i:s\")\n );\n $count++;\n }\n Tags::insert($tag_data);\n //end tags\n\n //if user is the one created question, we set them to follow topic automatically\n $request = new Request();\n $request->topic = $topicUUID;\n $this->follow($request);\n\n\n return $topicUUID;\n\n }else{\n return redirect()->action('HomeController@index');\n }\n }", "title": "" }, { "docid": "d82bd2851d31b986a4e72f28253285fa", "score": "0.63756245", "text": "public function actionCreate()\n {\n\n $model = new CreateForumTopicForm();\n\n // Ajax Validation\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'forum-topic-create-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n\n if (isset($_POST['CreateForumTopicForm'])) {\n\n $model->attributes = $_POST['CreateForumTopicForm'];\n\n if ($model->validate()) {\n\n $forumTopic = new ForumTopic();\n $forumTopic->title = $model->title;\n if($model->space){\n $space = Space::model()->findByAttributes(array('guid' => $model->space));\n $forumTopic->space_id = $space->id;\n }\n $forumTopic->save();\n \n $forumPost = new ForumPost();\n $forumPost->forum_topic_id = $forumTopic->id;\n $forumPost->message = $model->message;\n if ($forumTopic->space_id == null)\n $contentContainer = User::model()->findByAttributes(array('id' => Yii::app()->user->id));\n else\n $contentContainer = Space::model()->findByAttributes(array('id' => $forumTopic->space_id));\n $forumPost->content->container = $contentContainer;\n $forumPost->save();\n // Redirect to the new created Space\n $this->htmlRedirect($this->createUrl('//forumblog/forum'));\n }\n }\n\n $this->renderPartial('create', array('model' => $model), false, true);\n }", "title": "" }, { "docid": "612d69e081f71a7216736d52f12cf9c2", "score": "0.6364117", "text": "public function run()\n {\n Topic::create([\n 'title' => 'Travel',\n ]);\n Topic::create([\n 'title' => 'Food',\n ]);\n Topic::create([\n 'title' => 'Animals',\n ]);\n Topic::create([\n 'title' => 'Other',\n ]);\n }", "title": "" }, { "docid": "c3e96a0283d3b83ae44bd7e8c581a7c7", "score": "0.6361228", "text": "public function store(TopicRequest $request)\n {\n $topic = new Topic();\n $topic->language_id = $request->get('language_id');\n $topic->user_id = Auth::user()->id;\n $topic->title = $request->get('title');\n $topic->content = $request->get('content');\n\n $language = Language::findOrFail($request->get('language_id'));\n $tags = [];\n\n foreach ($request->all() as $key => $value) {\n if (strpos($key, 'tag-') === 0) {\n $tags[] = $value;\n }\n }\n\n if (count($tags) < 1) {\n return redirect()->back()->with('warning', __('Tags') . ' ' . __('is required'));\n }\n\n if ($request->hasFile('attachment')) {\n $path = Storage::disk('public')->put(config('customize.attachment_dir'), $request->file('attachment'));\n $topic->attachment = config('customize.storage_dir') . $path;\n }\n\n if ($topic->save()) {\n static::createTag($tags, $topic->id);\n\n return redirect()->route('home-topic-show', [\n 'language_slug' => $language->slug,\n 'id' => $topic->id\n ])->with('success', $topic->title . ' ' . __('has been created'));\n } else {\n return redirect()->back()->with('error', __('Action Failed'));\n }\n }", "title": "" }, { "docid": "3043f328019f43eb3bc31a0c88f8f894", "score": "0.6328076", "text": "public function addtopicAction(){\n\t\t\n\t\tglobal $mySession; \n \n \t\t$this->view->pageHeading = \"Create Help Section Topic\";\n\t\t$this->view->pageDescription = \"add new Help Section topic\";\n\t\t$this->view->pageIcon = \"fa fa-cog\";\t\t\n\t\t$this->view->showEditorUpload = \"Help Section Topic\"; \t\t\t\t\n \t\t$form = new Application_Form_StaticForm();\n\t\t$form->faqtopic();\n\t\t \t\t\n \t\tif($this->getRequest()->isPost()) {\n \t\t\t\n\t\t\t$data_form = $this->getRequest()->getPost();\n\t\t\t\n \t\t\tif($form->isValid($data_form)){\n\t\t\t\t\n\t\t\t\t$data_to_insert = $form->getValues() ;\n\t\t\t\t$is_insert = $this->modelStatic->add(\"faq_topic\",$data_to_insert);\n\t\t\t\tif($is_insert->success){\n\t\t\t\t\t$mySession->successMsg = \" Faq Topic Successfully Created \";\n\t\t\t\t\t$this->redirect('privatepanel/faq/topics');\n \t\t\t\t}\n \t\t\t\t$mySession->errorMsg = $is_insert->message;\n \t\t\t}else{\n\t\t\t\t$mySession->errorMsg = \" Please Check Information Again ... ! \";\n \t\t\t}\n\t\t }\n \t\t $this->view->form =$form;\n \t\t $this->_helper->getHelper('viewRenderer')->renderScript(\"add.phtml\");\n \t}", "title": "" }, { "docid": "c16da6c184dd8bb0d9ca0c9625498fe6", "score": "0.6305081", "text": "public function __construct(Topic $topic)\n {\n $this->topic = $topic;\n }", "title": "" }, { "docid": "a7b3cae1c399ffaf9a2ff4a55b14872d", "score": "0.6296888", "text": "public static function postTopic($board, $user, $topic = array())\n\t{\n\t\t$time = time();\n\n\t\tif (!is_array($board))\n\t\t\t$board = self::getBoard($board);\n\n\t\tif (!$board) throw new Exception('need board to post topic');\n\n\t\t/**\n\t\t * 1. Insert topic\n\t\t * 2. Insert the post\n\t\t * 3. Update the board\n\t\t * 4. Update user\n\t\t */\n\n\t\tdb::query('INSERT INTO `'.self::$table_topics.'` SET \n\t\t\tboard_id = '.$board['lft'].',\n\t\t\ttitle = '.db::sanitize($topic['title']).', \n\t\t\tauthor_id = '.$user->id.',\n\t\t\tpost_date = '.$time.',\n\t\t\tlast_post_date = '.$time.',\n\t\t\tlast_post_author = '.$user->id);\n\n\t\t$topic_id = db::insertId();\n\n\t\t$parse = new BBCodeParser();\n\t\t$parse->parse($topic['body']);\n\n\t\t// insert the post\n\t\tdb::query('INSERT INTO '.self::$table_posts.' SET\n\t\t\ttitle = '.db::sanitize($topic['title']).',\n\t\t\tauthor_id = '.$user->id.',\n\t\t\tpost_date = '.$time.',\n\t\t\tbody = '.db::sanitize($parse->save()).',\n\t\t\tpost_ip = '.db::sanitize('0').',\n\t\t\ttopic_post = 1,\n\t\t\ttopic_id = '.$topic_id);\n\n\t\tdb::query('UPDATE '.self::$table_boards.' SET\n\t\t\ttopics = topics + 1,\n\t\t\tlatest_topic = '.$topic_id.'\n\t\t\tWHERE lft <= '.$board['lft'].' AND rgt >= '.$board['rgt']);\n\n\t\t$user->topics++;\n\t\t$user->update();\n\n\t\tBoardStats::up('topics', 1);\n\n\t\treturn $topic_id;\n\t}", "title": "" }, { "docid": "88efd77c2b1269a57ea463d71ff545ba", "score": "0.62790996", "text": "public function create()\n {\n\n $topics = Topic::all();\n return view('question.create', compact('topics'));\n }", "title": "" }, { "docid": "bf46c0daf9e0c343453e24f8a24c1f0a", "score": "0.6276978", "text": "public function testSubcribleTopic()\n {\n $topicName = FcmSenderService::getTopicByInvestorId(\"1234567-a\");\n $this->fcmService->registerTopic(\"abcde-123\", $topicName);\n\n $this->assertTrue(true);\n }", "title": "" }, { "docid": "2dbbb0ba924d6ad294078d29b2da3a04", "score": "0.62702405", "text": "function _ef_search_add_topic($tid, $keywords) {\n\t$term = _ef_search_get_topics($tid);\n\t$term = implode('', $term);\n\t$keywords = _clean_keywords($keywords);\n\tif (!empty($keywords)) {\n\t\tdb_insert('ef_search_topics')\n \t->fields(array(\n \t \t'tid' => $tid,\n \t'term' => $term,\n \t'keywords' => $keywords,\n \t))\n \t->execute();\n drupal_set_message('Changes have been saved.');\n }\n else {\n \tdrupal_set_message('Cannot save term without related keywords');\n }\n}", "title": "" }, { "docid": "6daa4b78baa8f451c863dd6ea1fa7b05", "score": "0.6265882", "text": "public function run()\n { \n $topic = new Topic;\n $topic->name = '東方神起';\n $topic->detail = '~東方神起好きな人集まれ~';\n $topic->tags = json_encode(['ユノ','チャンミン','歌手']);\n $topic->image_id = 10;\n $topic->save();\n\n $topic = new Topic;\n $topic->name = '天童覚';\n $topic->detail = '覚君推しのためのトピックです(^^*)';\n $topic->tags = json_encode(['バレー','ハイキュー']);\n $topic->image_id = 11;\n $topic->save();\n\n $topic = new Topic;\n $topic->name = '赤葦京治';\n $topic->detail = '赤葦推しのためのトピックです(^^*)';\n $topic->tags = json_encode(['ハイキュー!!','漫画','あかーし']);\n $topic->image_id = 12;\n $topic->save();\n\n $topic = new Topic;\n $topic->name = '灰羽リエーフ';\n $topic->detail = 'リエーフ推しのためのトピックです(^^*)';\n $topic->tags = json_encode(['音駒高校排球部','バレーボール','ハイキュー']);\n $topic->image_id = 13;\n $topic->save();\n \n $topic = new Topic;\n $topic->name = '東海オンエア';\n $topic->detail = 'てつや/しばゆー/りょう/としみつ/夢丸/虫眼鏡';\n $topic->tags = json_encode(['ユーチューバー','youtuber','岡崎']);\n $topic->image_id = 14;\n $topic->save();\n\n $topic = new Topic;\n $topic->name = 'WANIMA';\n $topic->detail = 'ワニマ/バンド/歌手';\n $topic->tags = json_encode(['熊本','バンドマン','わにま']);\n $topic->image_id = 15;\n $topic->save();\n\n $topic = new Topic;\n $topic->name = '炎炎ノ消防隊';\n $topic->detail = '祝!!第二期!!';\n $topic->tags = json_encode(['講談社','アニメ']);\n $topic->image_id = 16;\n $topic->save();\n\n $topic = new Topic;\n $topic->name = 'ハイキュー!';\n $topic->detail = 'ハイキュー好きな人話しましょう!';\n $topic->tags = json_encode(['漫画','アニメ','バレーボール']);\n $topic->image_id = 17;\n $topic->save();\n\n $topic = new Topic;\n $topic->name = '漫画好きのためのトピック';\n $topic->detail = 'みんなで好きな漫画について語りたいです!ジャンル不問!出版社不問!';\n $topic->tags = json_encode(['まんが','マンガ']);\n $topic->image_id = 18;\n $topic->save();\n\n $topic = new Topic;\n $topic->name = 'The Warking Dead';\n $topic->detail = 'ウォーキングデッド/海外ドラマ';\n $topic->tags = json_encode(['TWD','アメリカ']);\n $topic->image_id = 19;\n $topic->save();\n\n $topic = new Topic;\n $topic->name = 'THE MENTALIST';\n $topic->detail = 'サイモンベイカー/パトリックジェーン';\n $topic->tags = json_encode(['海外ドラマ','スーパー!ドラマTV','FOX']);\n $topic->image_id = 20;\n $topic->save();\n\n $topic = new Topic;\n $topic->name = 'スタジオジブリ';\n $topic->detail = '千と千尋の神隠し/ハウルの動く城/風の谷のナウシカ/もののけ姫/などなど、たくさんのジブリ作品のお話をしましょう!';\n $topic->tags = json_encode(['ジブリ','宮崎駿']);\n $topic->image_id = 21;\n $topic->save();\n }", "title": "" }, { "docid": "83da5e93cf8700cd2741525f0987d00c", "score": "0.6231166", "text": "public function store(Request $request)\n {\n $this->validate($request, [\n 'topic' => 'required',\n ]);\n $user = Auth::user();\n $user->topics()->create($request->all());\n return redirect('topics')->with('success', 'Created Successfully.');\n }", "title": "" }, { "docid": "98cd4fb1c36404dd32920c245cffcd9b", "score": "0.62307197", "text": "public function create()\n {\n $user = Auth::user();\n $topics = Topic::all()->where('user_id', $user->id)->pluck('name', 'id')->all();\n\n return View::make('task.create', compact('topics'));\n }", "title": "" }, { "docid": "9484471caf27583debb1329f40b8aa5b", "score": "0.6216892", "text": "public function create($slug)\n {\n $p_language = Language::where('slug', $slug)->first();\n\n if (!$p_language) {\n return redirect()->route('home');\n }\n\n return view('home.create_topic', [\n 'p_language' => $p_language\n ]);\n }", "title": "" }, { "docid": "1f53ca32f01ea34c5cbab59892b8a34d", "score": "0.6200533", "text": "public function create(Topic $topic)\n {\n \n return view('teacher.exercise.create',compact('topic'));\n }", "title": "" }, { "docid": "af72010d554b586773b53436df0bbc8d", "score": "0.6176244", "text": "public function store(TopicFormRequest $request)\n {\n // Educator: group_id = 2\n\n if(auth()->user()->group_id == 2)\n {\n\n $topic = new Topic;\n\n $topic->lesson_id = $request->input('lesson_id');\n $topic->title = $request->input('title');\n $topic->body = $request->input('body');\n $topic->user_id = $request->input('user_id');\n $topic->status = $request->input('status');\n $topic->save();\n\n return redirect()->back()->with('success', 'You have created a new lesson successfully.');\n }\n else\n {\n return redirect('/')->with('error', 'Something went wrong. Access denied.');\n }\n }", "title": "" }, { "docid": "f7a19b14fabf22fe00287e545f2f4980", "score": "0.6175584", "text": "public function __construct(Topic $topic)\n {\n //the constructer receives the Topic model, but will only serialize the model's ID. When the queue job need the model, it will go to database and get it using the ID. This means the Topic mdoel we give here must be saved in database first (to generate the ID by database). So, in TopicObserver, we dispatch the job in \"saved\" function\n $this->topic = $topic;\n }", "title": "" }, { "docid": "16f1cc84cd4c5a988b7deb7afe7ef372", "score": "0.61603206", "text": "public static function addTopic($data) {\r\n\t\tif (!is_array($data)) return false;\r\n\t\t$data = self::_cookData($data);\r\n\t\treturn self::_getDao()->insert($data);\r\n\t}", "title": "" }, { "docid": "6c565a46fa498e10c439fc2521b3405b", "score": "0.6140444", "text": "public function create()\n {\n $this->data[\"topics\"] = Topic::all();\n $this->data[\"form\"] = \"add\";\n return view(\"admin.pages.posts\",$this->data);\n }", "title": "" }, { "docid": "84767d45e691015c1bb422c76bd2cfbb", "score": "0.6129991", "text": "public function store(Request $request)\n {\n $rules = [\n 'name' => 'required|unique:topics',\n ];\n\n $this->validate($request, $rules);\n\n $campos = $request->all();\n $topic = Topic::create($campos);\n\n return $this->showOne($topic, 201);\n }", "title": "" }, { "docid": "f17ded34d29912b41d2fb560b546771e", "score": "0.61186534", "text": "public function store(TopicRequest $request)\n {\n $request->request->add(['user_id' => Auth::user()->id]);\n $result = $this->service->create($request->except('_token'));\n\n if ($result) {\n return redirect(route('topics.index'))->with('message', 'Successfully created');\n }\n\n return redirect(route('topics.index'))->with('message', 'Failed to create');\n }", "title": "" }, { "docid": "07d20348b21812d84aa1d0bd2af824c9", "score": "0.60854435", "text": "public function create() {\n $disciplines = Discipline::pluck('discipline_name', 'id')->all();\n return view('topics.create', compact('disciplines'));\n }", "title": "" }, { "docid": "b0406ee39672b26d1448c2d588f71858", "score": "0.6080159", "text": "public function store(Request $request)\n {\n $request->validate([\n 'topic' => 'required'\n ]);\n\n Topic::create([\n 'topic' => $request->topic\n ]);\n\n return redirect('/topic/create')->with('status', 'Topic added!');\n }", "title": "" }, { "docid": "bbde448a4adc5eadaf2cdbbd01f42cf8", "score": "0.6076058", "text": "function setTopic(string $topic, string $reason = '');", "title": "" }, { "docid": "cb8ad8c791e7a0c60266c38875933948", "score": "0.60691285", "text": "public function createAction(Request $request, $forumId)\n {\n //check if user logged in\n if (false === $this->get('security.context')->isGranted('ROLE_USER')) {\n throw new AccessDeniedException();\n }\n\n //create new topic\n $topicManager = $this->get('xaben.forum.topicmanager');\n $topic = $topicManager->getNewTopic($forumId);\n $form = $this->createForm(new TopicType(), $topic);\n\n if ($request->getMethod() == 'POST') {\n $form->bind($request);\n if ($form->isValid()) {\n foreach ($topic->getPosts() as $post) {\n $this->getDoctrine()->getManager()->persist($post);\n }\n $this->getDoctrine()->getManager()->persist($topic);\n $this->getDoctrine()->getManager()->flush();\n\n return $this->redirect($this->generateUrl('XabenForumBundle_topics', array('forumId' => $forumId)));\n }\n }\n\n return $this->render('XabenForumBundle:Default:newtopic.html.twig', array(\n 'form' => $form->createView(),\n 'forumId' => $forumId,\n ));\n }", "title": "" }, { "docid": "6fc4288af48a0a7b2f667b23d2afc95b", "score": "0.6051819", "text": "public function create_my_post() {\n\n $post_title = filter_input(INPUT_POST, \"post_title\");\n $post_content = filter_input(INPUT_POST, \"post_content\");\n $topics = filter_input(INPUT_POST, \"topics\");\n $topics_tax = filter_input(INPUT_POST, \"topics_tax\");\n\n //special fields\n $topics = json_decode($topics, false);\n $topics_tax = json_decode($topics_tax, false);\n\n //create the wp_post\n // insert the post and set the category\n $post_id = wp_insert_post(array(\n 'post_type' => 'post',\n 'post_title' => $post_title,\n 'post_content' => $post_content,\n 'post_status' => 'auto-draft',\n 'comment_status' => 'open', // if you prefer\n 'ping_status' => 'open', // if you prefer\n 'post_author' => get_current_user_id()\n ), TRUE);\n\n if ($post_id) {\n\n //the folders\n foreach ($topics as $topic) {\n if (strlen($topic) > 0) {\n add_post_meta($post_id, 'folder_parent', intval($topic));\n }\n }\n\n if (isset($topics_tax)) {\n for ($i = 0; $i < count($topics_tax); $i++) {\n $topics_tax[$i] = intval($topics_tax[$i]); //they must be integers\n }\n $resp = wp_set_object_terms($post_id, $topics_tax, 'topics', false);\n }\n\n $resp = array(\n \"status\" => \"success\",\n \"url\" => get_permalink($post_id)\n );\n } else {\n $resp = array(\n \"status\" => \"failure\",\n );\n }\n echo json_encode($resp);\n\n exit(0);\n }", "title": "" }, { "docid": "de8f7400bde7ba071a8d0c0923a683b7", "score": "0.5997892", "text": "public function run()\n {\n foreach (['topic1', 'topic2'] as $topic) {\n Topic::firstOrCreate([\n 'name' => $topic\n ]);\n }\n }", "title": "" }, { "docid": "bedea7454e51e73517786b0628313fd2", "score": "0.59767646", "text": "public function create($id)\n {\n if (Auth::guest()) {\n App::abort(403, 'Unauthorized action.');\n }\n $group = Group::findOrFail($id);\n return view('topic.create', compact('group'));\n }", "title": "" }, { "docid": "de5565408d6e16a7e2e003c49a5cc4e5", "score": "0.5970106", "text": "function new_post()\n\t{\n\t\trequire_code('ocf_posts2');\n\n\t\tglobal $NON_CANONICAL_PARAMS;\n\t\t$NON_CANONICAL_PARAMS[]='quote';\n\t\t$NON_CANONICAL_PARAMS[]='intended_solely_for';\n\n\t\t$topic_id=get_param_integer('id');\n\t\t$parent_id=either_param_integer('parent_id',NULL);\n\t\t$intended_solely_for=get_param_integer('intended_solely_for',-1);\n\t\t$post=post_param('post',NULL); // Copy existing post into box (from quick reply 'more options' button)\n\t\tif (is_null($post))\n\t\t{\n\t\t\t$quotes=array();\n\t\t\t$quote=get_param_integer('quote',-1);\n\t\t\tif ($quote==-1)\n\t\t\t{\n\t\t\t\t$quotes=$this->get_markers();\n\n\t\t\t} else $quotes[]=$quote;\n\t\t\t$post=$this->attach_quotes($quotes);\n\t\t}\n\n\t\t$topic_info=$GLOBALS['FORUM_DB']->query_select('f_topics',array('*'),array('id'=>$topic_id),'',1);\n\t\tif (!array_key_exists(0,$topic_info)) warn_exit(do_lang_tempcode('MISSING_RESOURCE'));\n\t\t$forum_id=$topic_info[0]['t_forum_id'];\n\t\t$topic_title=$topic_info[0]['t_cache_first_title'];\n\t\tif ($topic_title=='') $topic_title=$GLOBALS['FORUM_DB']->query_value_null_ok('f_posts','p_title',array('p_topic_id'=>$topic_id));\n\t\tif (is_null($topic_title)) $topic_title='';\n\t\tif (!is_null($forum_id))\n\t\t{\n if (!has_category_access(get_member(),'forums',strval($forum_id))) access_denied('CATEGORY_ACCESS'); // Can happen if trying to reply to a stated whisper made to you in a forum you don't have access to\n\t\t} else\n\t\t{\n\t\t\t// It must be a Private Topic. Do we have access?\n\t\t\t$from=$topic_info[0]['t_pt_from'];\n\t\t\t$to=$topic_info[0]['t_pt_to'];\n\n\t\t\tif (($from!=get_member()) && ($to!=get_member()) && (!ocf_has_special_pt_access($topic_id)) && (!has_specific_permission(get_member(),'view_other_pt')))\n\t\t\t{\n\t\t\t\taccess_denied('SPECIFIC_PERMISSION','view_other_pt');\n\t\t\t}\n\t\t}\n\t\t$this->handle_topic_breadcrumbs($forum_id,$topic_id,$topic_title,do_lang_tempcode('ADD_POST'));\n\n\t\tif ($topic_info[0]['t_is_open']==0)\n\t\t{\n\t\t\t$may_moderate_forum=ocf_may_moderate_forum($forum_id);\n\t\t\tif (!$may_moderate_forum)\n\t\t\t{\n\t\t\t\twarn_exit(do_lang_tempcode('TOPIC_IS_CLOSED'));\n\t\t\t}\n\t\t}\n\n\t\t$hidden_fields=new ocp_tempcode();\n\t\t$hidden_fields->attach(form_input_hidden('topic_id',strval($topic_id)));\n\t\t$hidden_fields->attach(form_input_hidden('from_url',get_self_url(true,false,array('type'=>get_param('type','misc')))));\n\n\t\t$map=array('page'=>'_SELF','type'=>'_add_reply','parent_id'=>$parent_id);\n\t\t$test=get_param_integer('kfs'.(is_null($forum_id)?'':strval($forum_id)),-1);\n\t\tif (($test!=-1) && ($test!=0)) $map['kfs'.(is_null($forum_id)?'':strval($forum_id))]=$test;\n\t\t$test=get_param_integer('threaded',-1);\n\t\tif ($test!=-1) $map['threaded']=$test;\n\t\t$post_url=build_url($map,'_SELF');\n\n\t\t// Certain aspects relating to the posting system\n\t\t$specialisation=new ocp_tempcode();\n\t\tif (get_option('is_on_post_titles')=='1')\n\t\t\t$specialisation->attach(form_input_line(do_lang_tempcode('TITLE'),'','title',post_param('title',''),false,1));\n\t\tif (ocf_may_moderate_forum($forum_id,get_member()))\n\t\t{\n\t\t\t$moderation_options=array(\n\t\t\t\t\t\t\t\tarray(do_lang_tempcode('EMPHASISED'),'is_emphasised',false,do_lang_tempcode('DESCRIPTION_EMPHASISED'))\n\t\t\t\t\t\t);\n\t\t\tif (addon_installed('unvalidated'))\n\t\t\t\t$moderation_options[]=array(do_lang_tempcode('VALIDATED'),'validated',true,do_lang_tempcode('DESCRIPTION_VALIDATED'));\n\t\t\t//if ($intended_solely_for==-1) $moderation_options[]=array(do_lang_tempcode('CASCADING'),'cascading',false,do_lang_tempcode('DESCRIPTION_CASCADING'));\n\t\t} else\n\t\t{\n\t\t\t$moderation_options=array();\n\t\t\t$hidden_fields->attach(form_input_hidden('validated','1'));\n\t\t}\n\t\t$options=array();\n\t\tif (!is_guest())\n\t\t{\n\t\t\tif (get_value('disable_skip_sig')!=='1')\n\t\t\t{\n\t\t\t\tif (addon_installed('ocf_signatures'))\n\t\t\t\t\t$options[]=array(do_lang_tempcode('SKIP_SIGNATURE'),'skip_sig',false,do_lang_tempcode('DESCRIPTION_SKIP_SIGNATURE'));\n\t\t\t}\n\t\t\tif (get_option('is_on_anonymous_posts')=='1')\n\t\t\t\t$options[]=array(do_lang_tempcode('_MAKE_ANONYMOUS_POST'),'anonymous',false,do_lang_tempcode('MAKE_ANONYMOUS_POST_DESCRIPTION'));\n\t\t}\n\t\t$specialisation2=form_input_various_ticks($options,'');\n\t\tif (count($moderation_options)!=0) $specialisation2->attach(form_input_various_ticks($moderation_options,'',NULL,do_lang_tempcode('MODERATION_OPTIONS')));\n\n\t\tif (!is_null($forum_id))\n\t\t{\n\t\t\t$post_templates=$this->post_templates($forum_id);\n\t\t\t$specialisation->attach($post_templates[0]);\n\t\t\tif (((is_object($post)) && ($post->is_empty())) || ($post==='')) $post=$post_templates[1];\n\t\t}\n\n\t\t$_intended_solely_for='';\n\t\tif ($intended_solely_for!=-1)\n\t\t{\n\t\t\t$_intended_solely_for=$GLOBALS['FORUM_DRIVER']->get_username($intended_solely_for);\n\t\t\tif (is_null($_intended_solely_for)) $_intended_solely_for='';\n\t\t}\n\t\tif (ocf_may_make_personal_topic())\n\t\t{\n\t\t\tif (($_intended_solely_for!='') || (get_value('no_inline_pp_advertise')!=='1'))\n\t\t\t\t$specialisation->attach(form_input_username(do_lang_tempcode('WHISPER'),do_lang_tempcode('DESCRIPTION_WHISPER'),'intended_solely_for',$_intended_solely_for,false));\n\t\t}\n\n\t\tif (is_guest())\n\t\t{\n\t\t\t$specialisation->attach(form_input_line(do_lang_tempcode('GUEST_NAME'),'','poster_name_if_guest',do_lang('GUEST'),true));\n\t\t}\n\n\t\trequire_code('fields');\n\t\tif (has_tied_catalogue('post'))\n\t\t{\n\t\t\tappend_form_custom_fields('post',NULL,$specialisation,$hidden_fields);\n\t\t}\n\n\t\t$text=new ocp_tempcode();\n\n\t\tif (addon_installed('captcha'))\n\t\t{\n\t\t\trequire_code('captcha');\n\t\t\tif (use_captcha())\n\t\t\t{\n\t\t\t\t$specialisation->attach(form_input_captcha());\n\t\t\t\t$text->attach(paragraph(do_lang_tempcode('FORM_TIME_SECURITY')));\n\t\t\t}\n\t\t}\n\n\t\tif (addon_installed('points'))\n\t\t{\n\t\t\t$login_url=build_url(array('page'=>'login','type'=>'misc','redirect'=>get_self_url(true,true)),get_module_zone('login'));\n\t\t\t$_login_url=escape_html($login_url->evaluate());\n\t\t\tif ((is_guest()) && ((get_forum_type()!='ocf') || (has_actual_page_access(get_member(),'join')))) $text->attach(paragraph(do_lang_tempcode('NOT_LOGGED_IN_NO_CREDIT',$_login_url)));\n\t\t}\n\n\t\tif ((!is_null($forum_id)) && (!has_specific_permission(get_member(),'bypass_validation_lowrange_content','topics',array('forums',$forum_id))))\n\t\t{\n\t\t\t$text->attach(paragraph(do_lang_tempcode('WILL_NEED_VALIDATING')));\n\t\t}\n\n\t\t// Awards?\n\t\tif (addon_installed('awards'))\n\t\t{\n\t\t\trequire_code('awards');\n\t\t\t$specialisation->attach(get_award_fields('post'));\n\t\t}\n\n\t\t// Moderator reply\n\t\tif (ocf_may_moderate_forum($forum_id,get_member()))\n\t\t{\n\t\t\trequire_code('ocf_forums2');\n\n\t\t\t$specialisation2->attach(do_template('FORM_SCREEN_FIELD_SPACER',array('SECTION_HIDDEN'=>true,'TITLE'=>do_lang_tempcode('TOPIC_MODERATION'))));\n\t\t\t$specialisation2->attach(form_input_line(do_lang_tempcode('TITLE'),'','new_title',$topic_title,false));\n\t\t\t$specialisation2->attach(form_input_tree_list(do_lang_tempcode('DESTINATION_FORUM'),do_lang_tempcode('DESCRIPTION_DESTINATION_FORUM'),'to',NULL,'choose_forum',array(),false,is_null($forum_id)?'':strval($forum_id)));\n\t\t\t$options=array(\n\t\t\t\t\t\t\t\tarray(do_lang_tempcode('OPEN'),'open',$topic_info[0]['t_is_open']==1,do_lang_tempcode('DESCRIPTION_OPEN')),\n\t\t\t\t\t\t\t\tarray(do_lang_tempcode('PINNED'),'pinned',$topic_info[0]['t_pinned']==1,do_lang_tempcode('DESCRIPTION_PINNED')),\n\t\t\t\t\t\t);\n\t\t\tif (addon_installed('unvalidated'))\n\t\t\t{\n\t\t\t\tif ($topic_info[0]['t_validated']==0)\n\t\t\t\t{\n\t\t\t\t\t$topic_info[0]['t_validated']=get_param_integer('validated',0);\n\t\t\t\t\tif ($topic_info[0]['t_validated']==1) attach_message(do_lang_tempcode('WILL_BE_VALIDATED_WHEN_SAVING'));\n\t\t\t\t}\n\n\t\t\t\t$options[]=array(do_lang_tempcode('VALIDATED'),'topic_validated',$topic_info[0]['t_validated']==1,do_lang_tempcode('DESCRIPTION_VALIDATED'));\n\t\t\t}\n\t\t\tif (get_value('disable_sunk')!=='1')\n\t\t\t\t$moderation_options[]=array(do_lang_tempcode('SUNK'),'sunk',$topic_info[0]['t_sunk']==1,do_lang_tempcode('DESCRIPTION_SUNK'));\n\t\t\tif (!is_null($forum_id)) $options[]=array(do_lang_tempcode('CASCADING'),'cascading',$topic_info[0]['t_cascading']==1,do_lang_tempcode('DESCRIPTION_CASCADING'));\n\t\t\t$specialisation2->attach(form_input_various_ticks($options,''));\n\t\t\tif (addon_installed('calendar'))\n\t\t\t\t$specialisation2->attach(form_input_date__scheduler(do_lang_tempcode('OCF_PUBLICATION_TIME'),do_lang_tempcode('OCF_DESCRIPTION_PUBLICATION_TIME'),'schedule',true,true,true));\n\t\t}\n\n\t\t$topic_posts=new ocp_tempcode();\n\t\t$posts=$GLOBALS['FORUM_DB']->query('SELECT *,p.id AS id FROM '.$GLOBALS['FORUM_DB']->get_table_prefix().'f_posts p LEFT JOIN '.$GLOBALS['FORUM_DB']->get_table_prefix().'translate t ON '.db_string_equal_to('language',user_lang()).' AND t.id=p.p_post WHERE p_topic_id='.strval($topic_id).' AND (p_intended_solely_for IS NULL OR p_intended_solely_for='.strval(get_member()).' OR p_poster='.strval(get_member()).') AND p_validated=1 ORDER BY p_time DESC,p.id DESC',20);\n\t\tforeach ($posts as $row)\n\t\t{\n\t\t\t$topic_posts->attach(do_template('OCF_POSTING_SCREEN_POST',array('TITLE'=>$row['p_title'],'ID'=>strval($row['id']),'POSTER'=>strval($row['p_poster']),'POST'=>ocf_show_isolated_post($row,true))));\n\t\t}\n\t\tif (!$topic_posts->is_empty()) $topic_posts=do_template('OCF_POSTING_SCREEN_POSTS',array('_GUID'=>'3d3b14cf3a48b2a16eed5b1bd92b1187','POSTS'=>$topic_posts));\n\n\t\tif (is_object($post)) $post=$post->evaluate();\n\t\t$posting_form=get_posting_form(do_lang('ADD_POST'),$post,$post_url,$hidden_fields,$specialisation,NULL,$topic_posts->evaluate(),$specialisation2,NULL,$this->_post_javascript());\n\n\t\t$title=get_page_title('_ADD_POST',true,array(escape_html($topic_title)));\n\n\t\tif (post_param_integer('add_poll',0)==1)\n\t\t{\n\t\t\t// Show it worked / Refresh\n\t\t\t$url=build_url(array('page'=>'_SELF','type'=>'add_poll'),'_SELF');\n\t\t\treturn redirect_screen($title,$url,do_lang_tempcode('SUCCESS'));\n\t\t}\n\n\t\treturn do_template('POSTING_SCREEN',array('_GUID'=>'ca2eab9a9ffdab267a48eb7be48ccdc0','TEXT'=>$text,'TITLE'=>$title,'POSTING_FORM'=>$posting_form));\n\t}", "title": "" }, { "docid": "020bffafa36af777ee0c3d27906d04be", "score": "0.5970048", "text": "public function store(Request $request)\n {\n $topic = new Topic; //create empty model object\n //initialize the model's property topicname\n //with data entered into form's control\n //topicname\n //we have access to form controls through\n //$request parameter\n $topic->topicname = $request->topicname;\n \n //save model into DB table\n if (!$topic->save()) {\n \n $err = $topic->getErrors();\n //get errors descriptions\n //go back to the form with error messages\n return redirect()->\n action('TopicController@create')->\n with('errors',$err)->withInput();\n }\n //if saving to DB table was successful\n return redirect()->action('TopicController@create')->\n with('message','New topic '.$topic->\n topicname.' has been added with id='.$topic->id.'!');\n //go back to the form with success message\n }", "title": "" }, { "docid": "0ac7b7a8d625a1d1bd98d68ba2ae3aeb", "score": "0.5954338", "text": "public function createNewBoard($board);", "title": "" }, { "docid": "15bb2515af1129d8e98c494a7045d3d2", "score": "0.5947122", "text": "public function create()\n {\n $activePolls = Poll::where('active', 1)->get();\n return view('topics.create')->with('categories', Category::all())\n ->with('polls', $activePolls);\n }", "title": "" }, { "docid": "40db758bc1c6fd04d07a485d9e209c5c", "score": "0.5938743", "text": "public function store(Request $request)\n {\n $validated = $request->validate([\n 'title' => 'required|unique:topics',\n 'content' => 'required'\n ]);\n\n Topic::create([\n 'title' => $request->title,\n 'content' => $request->content,\n 'slug' => Str::slug($request->title),\n 'user_id' => Auth::id()\n ]);\n\n session()->flash(\"success\", \"Votre topic à été crée avec succés.\");\n\n return redirect()->route('topics.index'); \n }", "title": "" }, { "docid": "9aebdfad51827d6f328ec51f5dbcc304", "score": "0.592797", "text": "public function allocateTopic($context)\n {\n $fdt = $context->formdata();\n if ($fdt->haspost('topicStudent'))\n {\n $formins = explode(',', $fdt->mustpost('topicStudent'));\n $topicid = $formins[0]; \n $studentid = $formins[1];\n $userController = new UserController();\n $userController->allocateTopic($studentid, $topicid);\n $context->divert('/allocate/all', FALSE, '', FALSE);\n }\n else\n {\n return 'error/form.twig';\n }\n }", "title": "" }, { "docid": "87bcd59bc231eec895796f44d63a05cf", "score": "0.59229493", "text": "public function AddTopic($user_id,$name) {\n if($user_id!=2) return NULL;\n $gcmresult=$this->send_topic($name);\n return $gcmresult;\n }", "title": "" }, { "docid": "a0c32d9ff9b35dd1ea3082c8cfcc060e", "score": "0.58863527", "text": "private function createSubject(){\n if(empty($this->params['title']) || empty($this->params['message'])){\n $this->response['empty'] = \"Empty message\";\n return;\n }\n \n $subject = Subject::init( htmlentities($this->params['title'], ENT_QUOTES),\n htmlentities($this->params['message'], ENT_QUOTES),\n $this->user->getId() );\n $insertedID = SubjectManager::init()->insert($subject);\n $insertedID ? $subject->setId($insertedID) : NULL;\n $insertedID ? $this->response['created'] = ForumController::formateSubject($subject) :\n $this->response['error'] = \"Subject insertion failed\";\n }", "title": "" }, { "docid": "fa7bf02cae8377d731ff661b7b1b8cbe", "score": "0.5885659", "text": "public function run()\n {\n factory(App\\Topic::class)->create(['name' => 'Sport', 'description' => 'Sport description']);\n factory(App\\Topic::class)->create(['name' => 'Science', 'description' => 'Science description']);\n factory(App\\Topic::class)->create(['name' => 'Literature', 'description' => 'Literature description']);\n factory(App\\Topic::class)->create(['name' => 'Health', 'description' => 'Health description']);\n factory(App\\Topic::class)->create(['name' => 'News', 'description' => 'News description']);\n factory(App\\Topic::class)->create(['name' => 'Art', 'description' => 'Art description']);\n\n\n }", "title": "" }, { "docid": "594c6dbcea7c99d4f45da6bafb01ea4f", "score": "0.58800244", "text": "function createArticleEntry($topic_id, $forum_id, $thumbnail_url, $preview_text) {\r\n\r\n global $eos_config, $db;\r\n $error = \"\";\r\n \r\n // Ensure we have a topic_id.\r\n if(is_null($topic_id)) {\r\n \r\n return false;\r\n }\r\n \r\n // If the provided thumbnail is invalid, get a default one.\r\n if(is_null($thumbnail_url) || !strlen($thumbnail_url) || !isValidURL($thumbnail_url) || !imageIsAcceptable($thumbnail_url)) {\r\n \r\n $thumbnail = getDefaultArticleThumbnail($forum_id);\r\n }\r\n \r\n // Rehost external thumbnail URLs, revert to default thumbnail on failure.\r\n if(!isLocalURL($thumbnail_url)) {\r\n \r\n $filename_ext = pathinfo($thumbnail_url, PATHINFO_EXTENSION);\r\n $filename = base_convert(time(), 10, 36) . '_' . $topic_id . '.' . $filename_ext;\r\n $dir = $eos_config['public_root'] . $eos_config['articles_thumbnails_dir'];\r\n if(!uploadExternalImage($thumbnail_url, $dir, $filename)) {\r\n \r\n $thumbnail = getDefaultArticleThumbnail($forum_id);\r\n \r\n } else {\r\n \r\n $thumbnail = $dir . $filename;\r\n }\r\n }\r\n\r\n // Sanitize, etc. the preview text.\r\n $preview = stripImages($preview_text);\r\n $preview = smiley_text($preview);\r\n $preview = str_replace(\"\\n\", ' ', $preview);\r\n $preview = str_replace(\"\\t\", ' ', $preview);\r\n $preview = preg_replace(\"/[[:blank:]]+/\", ' ', $preview);\r\n $preview = censor_text($preview);\r\n $preview = stripBBCode($preview);\r\n $preview = trim($preview);\r\n $preview = getShortenedText($preview, $eos_config['articles_max_preview_length']);\r\n\r\n // Post to the DB (also determine if it is an update or an insert).\r\n $sql_arr = array(\r\n 'topic_id' => $topic_id,\r\n 'preview' => encodeText($preview),\r\n 'thumbnail' => encodeText($thumbnail)\r\n );\r\n\r\n // See whether or not topic_id is in the table already.\r\n $sql ='SELECT count(topic_id) AS total FROM ' . $eos_config['articles_table'] . ' WHERE topic_id = ' . (int) $topic_id;\r\n $result = $db->sql_query($sql);\r\n $count = (int) $db->sql_fetchfield('founder_count');\r\n $db->sql_freeresult($result);\r\n \r\n if($count == 0) {\r\n $sql = 'INSERT INTO ' . $eos_config['articles_table'] . ' ' . $db->sql_build_array('INSERT', $sql_arr);\r\n } else {\r\n $sql = 'UPDATE ' . $eos_config['articles_table'] . ' ' . $db->sql_build_array('UPDATE', $sql_arr) . ' WHERE topic_id = ' . (int) $topic_id;\r\n }\r\n \r\n $db->sql_query($sql);\r\n \r\n return true;\r\n}", "title": "" }, { "docid": "186b9ab311164c784124f34a16c873e3", "score": "0.5879772", "text": "public function store(Request $request)\n {\n $subjectID = $request->get('idInput');\n $topic = Topic::create([\n 'subjectID'=>$request->get('idInput'),\n 'topic'=>$request->get('topicInput'),\n 'description'=>$request->get('topicDescInput'),\n ]);\n return redirect()->route('subject.edit',$subjectID);\n }", "title": "" }, { "docid": "65114b375fdbf8162f15f8b247749c62", "score": "0.58656025", "text": "public function store(Request $request)\n {\n return new TopicResource(Topic::create($request->all()));\n }", "title": "" }, { "docid": "41f714f152fcf5c6b2d74b5d092c770d", "score": "0.586428", "text": "function move_topic() // Type\n\t{\n\t\t$topic_id=get_param_integer('id');\n\t\t$topic_info=$GLOBALS['FORUM_DB']->query_select('f_topics',array('t_forum_id','t_cache_first_title'),array('id'=>$topic_id),'',1);\n\t\tif (!array_key_exists(0,$topic_info)) warn_exit(do_lang_tempcode('MISSING_RESOURCE'));\n\t\t$forum_id=$topic_info[0]['t_forum_id'];\n\n\t\t$this->handle_topic_breadcrumbs($topic_info[0]['t_forum_id'],$topic_id,$topic_info[0]['t_cache_first_title'],do_lang_tempcode('MOVE_TOPIC'));\n\n\t\t$this->check_has_mod_access($topic_id);\n\n\t\t$post_url=build_url(array('page'=>'_SELF','type'=>'_move_topic','id'=>$topic_id),'_SELF');\n\n\t\trequire_code('ocf_forums2');\n\n\t\t// Certain aspects relating to the posting system\n\t\t$fields=new ocp_tempcode();\n\t\t$fields->attach(form_input_line(do_lang_tempcode('TITLE'),'','title',$topic_info[0]['t_cache_first_title'],false));\n\t\t$fields->attach(form_input_tree_list(do_lang_tempcode('DESTINATION_FORUM'),do_lang_tempcode('DESCRIPTION_DESTINATION_FORUM'),'to',NULL,'choose_forum',array(),true,strval($forum_id)));\n\t\t$fields->attach(form_input_line(do_lang_tempcode('REASON'),do_lang_tempcode('DESCRIPTION_REASON'),'description','',false));\n\n\t\t$fields->attach(do_template('FORM_SCREEN_FIELD_SPACER',array('TITLE'=>do_lang_tempcode('ACTIONS'))));\n\t\t$fields->attach(form_input_tick(do_lang_tempcode('REDIRECT_TO_TOPIC'),do_lang_tempcode('DESCRIPTION_REDIRECT_TO_TOPIC'),'redir_topic',false));\n\n\t\t$topic_title=$topic_info[0]['t_cache_first_title'];\n\t\t$title=get_page_title('_MOVE_TOPIC',true,array(escape_html($topic_title)));\n\t\t$submit_name=do_lang_tempcode('MOVE_TOPIC');\n\t\treturn do_template('FORM_SCREEN',array('_GUID'=>'313fd175ccd376caa32794fedad21ac6','SKIP_VALIDATION'=>true,'STAFF_HELP_URL'=>brand_base_url().'/docs'.strval(ocp_version()).'/pg/tut_mod','HIDDEN'=>'','TITLE'=>$title,'FIELDS'=>$fields,'TEXT'=>'','SUBMIT_NAME'=>$submit_name,'URL'=>$post_url));\n\t}", "title": "" }, { "docid": "f5f1d2f0a2e98875ab5f605445b3ccea", "score": "0.58591735", "text": "public static function saveAction() {\n\n\t\t$guid = get_input('topic_guid');\n\t\tif (!$guid) {\n\t\t\t$action = 'create';\n\t\t\t$entity = new \\hypeJunction\\Discussion();\n\t\t\t$container_guid = get_input('container_guid');\n\t\t\t$container = get_entity($container_guid);\n\t\t} else {\n\t\t\t$action = 'update';\n\t\t\t$entity = get_entity($guid);\n\t\t\tif (!$entity instanceof \\hypeJunction\\Discussion || !$entity->canEdit()) {\n\t\t\t\tregister_error(elgg_echo('discussion:topic:notfound'));\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t$container = $entity->getContainerEntity();\n\t\t}\n\n\t\tif (!$container || !$container->canWriteToContainer(0, 'object', \\hypeJunction\\Discussion::SUBTYPE)) {\n\t\t\tregister_error(elgg_echo('discussion:error:permissions'));\n\t\t\treturn false;\n\t\t}\n\n\t\t$title = htmlspecialchars(get_input('title', '', false), ENT_QUOTES, 'UTF-8');\n\t\t$description = get_input('description');\n\n\t\tif (!$title || !$description) {\n\t\t\tregister_error(elgg_echo('discussion:error:missing'));\n\t\t\treturn false;\n\t\t}\n\n\n\t\t$entity->title = $title;\n\t\t$entity->description = $description;\n\t\t$entity->status = get_input('status', 'open');\n\t\t$entity->access_id = get_input('access_id', $container->access_id);\n\t\t$entity->container_guid = $container->guid;\n\t\t$entity->threads = (bool) get_input('threads');\n\t\t$entity->tags = string_to_tag_array(get_input('tags', ''));\n\n\t\t$result = $entity->save();\n\n\t\tif (!$result) {\n\t\t\tregister_error(elgg_echo('discussion:error:notsaved'));\n\t\t\treturn false;\n\t\t}\n\n\t\tif (elgg_is_active_plugin('hypeAttachments')) {\n\t\t\thypeapps_attach_uploaded_files($entity, 'uploads', [\n\t\t\t\t'origin' => 'discussion',\n\t\t\t\t'container_guid' => $entity->guid,\n\t\t\t\t'access_id' => $entity->access_id,\n\t\t\t]);\n\t\t}\n\n\t\tif ($action == 'update') {\n\t\t\tsystem_message(elgg_echo('discussion:topic:updated'));\n\t\t} else {\n\t\t\tsystem_message(elgg_echo('discussion:topic:created'));\n\t\t\telgg_create_river_item([\n\t\t\t\t'view' => 'river/object/discussion/create',\n\t\t\t\t'action_type' => 'create',\n\t\t\t\t'subject_guid' => elgg_get_logged_in_user_guid(),\n\t\t\t\t'object_guid' => $entity->guid,\n\t\t\t\t'target_guid' => $entity->container_guid,\n\t\t\t]);\n\t\t}\n\n\t\treturn $entity;\n\t}", "title": "" }, { "docid": "31ddb4eda99dc6b7ca0cc2b82a94ba5f", "score": "0.5857341", "text": "public function create(Request $request)\n {\n $topiccategory = new TopicCategory();\n $topiccategory->pk_smaldt = $topiccategory->getNextID();\n $topiccategory->stenldt = $request->tenloaidetai;\n $topiccategory->sghichu = $request->ghichu;\n $topiccategory->save();\n return redirect()->route('admin.topiccategory.index')->with([\n 'flash_level' => 'success',\n 'flash_message' => 'Thêm loại đề tài thành công'\n ]);\n }", "title": "" }, { "docid": "1d75a814632ff4e02338ef6e9abf5928", "score": "0.5848154", "text": "public function create()\n {\n $this->data['template'] = $this->category->bySlug(Session::get('topic'))->template;\n\n $this->data['categories'] = $this->category->all();\n $this->data['galleries'] = $this->gallery->all();\n $this->data['statuses'] = array(\n 'unpublished'=>'Unpublished',\n 'published'=>'Published'\n );\n return View::make('admin.posts.create',$this->data);\n }", "title": "" }, { "docid": "db37318e0d29dedd3261fa761acaa7c6", "score": "0.5834673", "text": "public function run()\n {\n $faker = Faker\\Factory::create('zh_TW');\n $faker->addProvider(new EmanueleMinotto\\Faker\\PlaceholdItProvider($faker));\n $this->faker = $faker;\n\n for ($i = 0; $i < 50; $i++) {\n $data = [\n 'category' => rand(0, 1) ? 'article' : 'news',\n 'title' => $faker->realText($faker->numberBetween(10, 20)),\n 'images' => $this->randImage(rand(2, 5)),\n 'date' => $faker->dateTimeBetween('now', '10 years')->format('Y-m-d H:i:s')\n ];\n Topic::create($data);\n }\n }", "title": "" }, { "docid": "0ea7d6405cfbfbb05d7c7741ba098596", "score": "0.58221763", "text": "function sink_topic() // Type\n\t{\n\t\t$topic_id=get_param_integer('id');\n\t\trequire_code('ocf_topics_action');\n\t\trequire_code('ocf_topics_action2');\n\t\tocf_edit_topic($topic_id,NULL,NULL,NULL,NULL,NULL,1,NULL,'');\n\t\treturn $this->redirect_to('SINK_TOPIC',$topic_id);\n\t}", "title": "" }, { "docid": "02f11bd6c88587c0e88379704eedaf10", "score": "0.5813291", "text": "function delete_topic() // Type\n\t{\n\t\t$topic_id=get_param_integer('id');\n\t\t$post_url=build_url(array('page'=>'_SELF','type'=>'_delete_topic','id'=>$topic_id),'_SELF');\n\n\t\t$topic_info=$GLOBALS['FORUM_DB']->query_select('f_topics',array('*'),array('id'=>$topic_id),'',1);\n\t\tif (!array_key_exists(0,$topic_info)) warn_exit(do_lang_tempcode('MISSING_RESOURCE'));\n\t\t$this->handle_topic_breadcrumbs($topic_info[0]['t_forum_id'],$topic_id,$topic_info[0]['t_cache_first_title'],do_lang_tempcode('DELETE_TOPIC'));\n\n\t\t$this->check_has_mod_access($topic_id);\n\n\t\t// Certain aspects relating to the posting system\n\t\t$fields=new ocp_tempcode();\n\t\t$hidden=new ocp_tempcode();\n\t\t$hidden->attach(build_keep_post_fields());\n\t\t$hidden->attach(build_keep_form_fields());\n\t\t$fields->attach(form_input_tree_list(do_lang_tempcode('DESTINATION_TOPIC'),do_lang_tempcode('DESCRIPTION_DESTINATION_TOPIC'),'select_topic_id',NULL,'choose_forum_topic',array(),false));\n\t\t$fields->attach(form_input_integer(do_lang_tempcode('ALT_FIELD',do_lang_tempcode('DESTINATION_TOPIC_ID')),do_lang_tempcode('DESCRIPTION_DESTINATION_TOPIC'),'manual_topic_id',NULL,false));\n\t\t$fields->attach(form_input_line(do_lang_tempcode('REASON'),do_lang_tempcode('DESCRIPTION_REASON'),'reason','',false));\n\n\t\t$topic_title=$GLOBALS['FORUM_DB']->query_value('f_topics','t_cache_first_title',array('id'=>$topic_id));\n\t\t$title=get_page_title('_DELETE_TOPIC',true,array(escape_html($topic_title)));\n\t\t$submit_name=do_lang_tempcode('DELETE');\n\t\t$text=paragraph(do_lang_tempcode('DELETE_TOPIC_TEXT'));\n\t\treturn do_template('FORM_SCREEN',array('_GUID'=>'00b84f337de3683bfcdb60ea3086afa0','SKIP_VALIDATION'=>true,'STAFF_HELP_URL'=>brand_base_url().'/docs'.strval(ocp_version()).'/pg/tut_mod','HIDDEN'=>$hidden,'TITLE'=>$title,'FIELDS'=>$fields,'TEXT'=>$text,'SUBMIT_NAME'=>$submit_name,'URL'=>$post_url));\n\t}", "title": "" }, { "docid": "a9eb1bde9371858eb90f065222014fc6", "score": "0.5811779", "text": "public function add(Request $request) {\n $newDesclipline = new Topic();\n $newDesclipline->topic_name = $request['name'];\n $newDesclipline->createdby = Auth::user()->id;\n if ($newDesclipline->save()) {\n return json_encode(array('status' => true));\n } else {\n return json_encode(array('status' => false));\n }\n }", "title": "" }, { "docid": "8521b29473c858e9f52403fdbaa586b4", "score": "0.5810555", "text": "public function testWhenTopicIsSetCorrectly()\n {\n $this->class->set_topic('news');\n\n $this->assertTrue($this->class->has_topic());\n }", "title": "" }, { "docid": "b4b008e7acc7a0c35afb00209ede1b14", "score": "0.5805897", "text": "public function topic()\n {\n return new Api\\Topic($this->httpClient);\n }", "title": "" }, { "docid": "65ef9b909ee6024d8a94934597edf992", "score": "0.58052206", "text": "protected function prepareTopic() {\n\t\t/** @var tx_egovapi_domain_repository_topicRepository $topicRepository */\n\t\t$topicRepository = tx_egovapi_domain_repository_factory::getRepository('topic');\n\n\t\tswitch ($this->settings['mode']) {\n\t\t\tcase 'LIST':\n\t\t\t\t/** @var tx_egovapi_domain_repository_domainRepository $domainRepository */\n\t\t\t\t$domainRepository = tx_egovapi_domain_repository_factory::getRepository('domain');\n\n\t\t\t\t$restrictDomain = FALSE;\n\t\t\t\t$domain = null;\n\t\t\t\tif ($this->settings['domain']) {\n\t\t\t\t\t$domain = $domainRepository->findById($this->settings['domain']);\n\t\t\t\t\t$restrictDomain = TRUE;\n\t\t\t\t}\n\t\t\t\tif ($restrictDomain && !$domain) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif ($this->settings['topics']) {\n\t\t\t\t\t// Static list of topics to show\n\t\t\t\t\t$topics = array();\n\t\t\t\t\t$ids = t3lib_div::trimExplode(',', $this->settings['topics']);\n\t\t\t\t\tforeach ($ids as $id) {\n\t\t\t\t\t\t$topic = $topicRepository->findById($id);\n\t\t\t\t\t\t// Only use topics related to current domain\n\t\t\t\t\t\tif ($topic && (!$restrictDomain || $topic->getDomain() == $domain)) {\n\t\t\t\t\t\t\t$topics[] = $topic;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$topics = $topicRepository->findAll($domain);\n\t\t\t\t}\n\n\t\t\t\t$this->prepareTopicList($domain, $topics);\n\t\t\t\tbreak;\n\n\t\t\tcase 'SINGLE':\n\t\t\t\t$requestedId = isset($this->parameters['topic']) ? $this->parameters['topic'] : 0;\n\t\t\t\t$id = $requestedId;\n\t\t\t\tif ($this->settings['topics']) {\n\t\t\t\t\t// Static list of topics to show, take first one\n\t\t\t\t\t// if requested id is not authorized\n\t\t\t\t\t$ids = t3lib_div::trimExplode(',', $this->settings['topics']);\n\t\t\t\t\t$id = t3lib_div::inArray($ids, $requestedId) ? $requestedId : $ids[0];\n\t\t\t\t}\n\n\t\t\t\t$topic = $topicRepository->findById($id);\n\t\t\t\t$this->prepareTopicSingle($topic);\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "e166a2d7f67c126a057ea2c1e8c6a746", "score": "0.58031195", "text": "function assembleGameTopic($queue_forum)\n{\n\n$uid = $bitfield = $options = ''; // will be modified by generate_text_for_storage\n\t$allow_bbcode = $allow_smilies = $allow_urls = true;\n\t$message = 'bonus2!';\n\tgenerate_text_for_storage($message, $uid, $bitfield, $options, $allow_bbcode, $allow_urls, $allow_smilies);\n\t\t\t\t\t\n// New Topic Example\n\t$data = array( \n // General Posting Settings\n 'forum_id' => $queue_forum, // The forum ID in which the post will be placed. (int)\n 'topic_id' => 0, // Post a new topic or in an existing one? Set to 0 to create a new one, if not, specify your topic ID here instead.\n 'icon_id' => false, // The Icon ID in which the post will be displayed with on the viewforum, set to false for icon_id. (int)\n\n // Defining Post Options\n 'enable_bbcode' => true, // Enable BBcode in this post. (bool)\n 'enable_smilies' => true, // Enabe smilies in this post. (bool)\n 'enable_urls' => true, // Enable self-parsing URL links in this post. (bool)\n 'enable_sig' => true, // Enable the signature of the poster to be displayed in the post. (bool)\n\n // Message Body\n 'message' => $message, // Your text you wish to have submitted. It should pass through generate_text_for_storage() before this. (string)\n 'message_md5' => md5($message),// The md5 hash of your message\n\n // Values from generate_text_for_storage()\n 'bbcode_bitfield' => $bitfield, // Value created from the generate_text_for_storage() function.\n 'bbcode_uid' => $uid, // Value created from the generate_text_for_storage() function.\n\n // Other Options\n\t//Automatically lock the topic so that the game mod can work on it.\n 'post_edit_locked' => 1, // Disallow post editing? 1 = Yes, 0 = No\n 'topic_title' => $subject, // Subject/Title of the topic. (string)\n\n // Email Notification Settings\n 'notify_set' => false, // (bool)\n 'notify' => false, // (bool)\n 'post_time' => 0, // Set a specific time, use 0 to let submit_post() take care of getting the proper time (int)\n 'forum_name' => '', // For identifying the name of the forum in a notification email. (string)\n\n // Indexing\n 'enable_indexing' => true, // Allow indexing the post? (bool)\n\n // 3.0.6\n 'force_approved_state' => true, // Allow the post to be submitted without going into unapproved queue\n\t'autolock_time'\t\t\t=> 0,\n\t'autolock_input'\t\t=> ''\n\t);\n\n\treturn $data;\n}", "title": "" }, { "docid": "6e453a6705c9433bb41ad8061f135ef9", "score": "0.58028245", "text": "public function createMainDiscussion();", "title": "" }, { "docid": "a1cb5913e203f8bd043a43393442c691", "score": "0.5792689", "text": "function cascade_topic() // Type\n\t{\n\t\t$topic_id=get_param_integer('id');\n\t\trequire_code('ocf_topics_action');\n\t\trequire_code('ocf_topics_action2');\n\t\tocf_edit_topic($topic_id,NULL,NULL,NULL,NULL,NULL,NULL,1,'');\n\t\treturn $this->redirect_to('CASCADE_TOPIC',$topic_id);\n\t}", "title": "" }, { "docid": "c5303c2e5978fe55b004df8a3f042357", "score": "0.57894367", "text": "public function create(Request $request, $params)\n {\n $this->requireRole('TEACHER');\n\n if (!isset($params['topic_id'])) {\n header('Location: /topics');\n }\n\n /** @var Topic $topic */\n $topic = $this->entityManager->find('\\QcmBundle\\Entity\\Topic', $params['topic_id']);\n\n if (!isset($topic)) {\n header('Location: /topics');\n }\n\n $description = $request->post['description'];\n\n if (!isset($description)) {\n header('Location: /topic/' . $topic->getId());\n }\n\n $user = $this->get('session-manager')->getCurrentUser();\n\n $question = new Question();\n $question->setAuthor($user);\n $question->setDescription($description);\n $question->setTopic($topic);\n\n $this->entityManager->persist($question);\n $this->entityManager->flush();\n\n header('Location: /topic/' . $topic->getId());\n }", "title": "" }, { "docid": "4510a34a3663928f2ec6d1830dbaeedb", "score": "0.5783501", "text": "public function publish(string $topic, $message) : void;", "title": "" }, { "docid": "8e70a9c507f07382ab98019f87b9d531", "score": "0.5782284", "text": "public function action_create()\n {\n if(Valid::not_empty($_POST))\n {\n if(Model::factory('subject')->create_subject($_POST))\n $this->request->redirect($this->data['role'].'/subjects');\n\n }\n $this->setTitle('New Subject')\n ->view('subjects/create', $this->data)\n ->render();\n }", "title": "" }, { "docid": "c205bf822719a0a7d5bc83ad25d155eb", "score": "0.5779936", "text": "function _edit_topic() // Type\n\t{\n\t\t$topic_id=get_param_integer('id');\n\t\t$cascading=post_param_integer('cascading',fractional_edit()?INTEGER_MAGIC_NULL:0);\n\t\t$pinned=post_param_integer('pinned',fractional_edit()?INTEGER_MAGIC_NULL:0);\n\t\t$sunk=post_param_integer('sunk',fractional_edit()?INTEGER_MAGIC_NULL:0);\n\t\t$open=post_param_integer('open',fractional_edit()?INTEGER_MAGIC_NULL:0);\n\t\t$validated=post_param_integer('validated',fractional_edit()?INTEGER_MAGIC_NULL:0);\n\t\t$title=post_param('title');\n\n\t\trequire_code('ocf_topics_action');\n\t\trequire_code('ocf_topics_action2');\n\n\t\tocf_edit_topic($topic_id,post_param('description',STRING_MAGIC_NULL),post_param('emoticon',STRING_MAGIC_NULL),$validated,$open,$pinned,$sunk,$cascading,post_param('reason',STRING_MAGIC_NULL),$title);\n\n\t\trequire_code('fields');\n\t\tif (has_tied_catalogue('topic'))\n\t\t{\n\t\t\tsave_form_custom_fields('topic',strval($topic_id));\n\t\t}\n\n\t\tif (addon_installed('awards'))\n\t\t{\n\t\t\trequire_code('awards');\n\t\t\thandle_award_setting('topic',strval($topic_id));\n\t\t}\n\n\t\treturn $this->redirect_to('EDIT_TOPIC',$topic_id);\n\t}", "title": "" }, { "docid": "97529c45e3537800b71642dd3b979cfa", "score": "0.5771427", "text": "function create_CPTs ()\n\t{\n\t\t\n\t\n\t\t$naming = getTopicNaming();\t\t\n\t\t$singular = $naming[2];\n\t\t$plural = pluralize($singular);\n\t\n\t\t//Topics\n\t\t$labels = array(\n\t\t\t'name' => $plural,\n\t\t\t'singular_name' => $singular,\n\t\t\t'menu_name' => $plural,\n\t\t\t'name_admin_bar' => $plural,\n\t\t\t'add_new' => 'Add New '.$singular,\n\t\t\t'add_new_item' => 'Add New '.$singular,\n\t\t\t'new_item' => 'New '.$singular,\n\t\t\t'edit_item' => 'Edit '.$singular,\n\t\t\t'view_item' => 'View '.$plural,\n\t\t\t'all_items' => 'All '.$plural,\n\t\t\t'search_items' => 'Search '.$plural,\n\t\t\t'parent_item_colon' => '',\n\t\t\t'not_found' => 'No '.$plural.' found.',\n\t\t\t'not_found_in_trash' => 'No '.$plural.' found in Trash.'\n\t\t);\n\t\n\t\t$args = array(\n\t\t\t'labels' => $labels,\n\t\t\t'public' => true,\n\t\t\t'publicly_queryable' => true,\n\t\t\t'show_ui' => true,\n\t\t\t'show_in_nav_menus'\t => false,\n\t\t\t'show_in_menu' => false,\n\t\t\t'query_var' => true,\n\t\t\t'rewrite' => array( 'slug' => 'session-pages' ),\n\t\t\t'capability_type' => 'post',\n\t\t\t'has_archive' => true,\n\t\t\t'hierarchical' => false,\n\t\t\t'show_in_rest'\t\t => true,\t\t\n\t\t\t\n\t\t\t'supports' => array( 'title', 'editor', 'revisions' )\n\t\t\t\n\t\t);\n\t\t\n\t\tregister_post_type( 'session_page', $args );\t\n\t\t\n\t}", "title": "" }, { "docid": "ee019f1649ddc364151128ce39ade069", "score": "0.5764839", "text": "public function create()\n {\n // no create since we dont need to create new Messages anyway - they are created in the 'front' end from the regular users\n }", "title": "" }, { "docid": "c5da78facc1b064090055df57e5e7ca0", "score": "0.57551235", "text": "private function createPost(){\n if(empty($this->params['message'])){\n $this->response['empty'] = \"Empty message\";\n return;\n }\n \n $post = Post::init( htmlentities($this->params['message'], ENT_QUOTES),\n $this->user->getId(), $this->params['idSubject'] );\n $inserted = PostManager::init()->insert($post);\n $inserted ? $post->setId($inserted) : NULL;\n $inserted ? $this->response['created'] = ForumController::formatePost(\n $post, $this->user->getPseudo(),TRUE)\n : $this->response['error'] = \"Post insertion failed\";\n }", "title": "" } ]
58998b61c4aa58b4a503e7dbe380f2c9
Updates the comment number for posts with trackbacks
[ { "docid": "d16be84fea96bae69f32667908c55d7c", "score": "0.53075296", "text": "function filterPostComments($posts) {\n foreach ($posts as $key => $p) {\n if ($p->comment_count <= 0) { return $posts; }\n $comments = get_approved_comments((int)$p->ID);\n $comments = array_filter($comments, \"stripTrackback\");\n $posts[$key]->comment_count = sizeof($comments);\n }\n return $posts;\n}", "title": "" } ]
[ { "docid": "b406fc332cde9fd960742306d2e92f13", "score": "0.7154978", "text": "public function upCommentCount()\n {\n Doctrine_Query::create()->update('CheckIn c')->set('c.comment_count', 'c.comment_count + 1')->where('c.id = ?', $this->getId())->execute();\n }", "title": "" }, { "docid": "0b7ea87e5235692830e6de0c8c4cf09f", "score": "0.68830216", "text": "public function increaseCommentCount()\n {\n \tif($this->comment_count != null)\n \t\t$this->comment_count++;\n \telse\n \t\t$this->comment_count = 1;\n \t$this->save();\n }", "title": "" }, { "docid": "ed98ed48add672fcf5f4d7cc6844040e", "score": "0.6877076", "text": "private function updateCountsComment()\n {\n $this->commentManager->updateCommentsCount();\n }", "title": "" }, { "docid": "57e3f41455541b1a5d729a83742441e8", "score": "0.6859901", "text": "function update_comment_count() {\r\n\t$factory = DbConnectionFactory::getInstance();\r\n\r\n\t$posts_query = 'SELECT id, ( '\r\n\t. 'SELECT COUNT( * ) '\r\n\t. 'FROM wp_comments '\r\n\t. 'WHERE comment_post_ID = id '\r\n\t. ') AS count '\r\n\t. 'FROM wp_posts '\r\n\t. 'WHERE ( '\r\n\t. 'SELECT COUNT( * ) '\r\n\t. 'FROM wp_comments '\r\n\t. 'WHERE comment_post_ID = id '\r\n\t. ') >0';\r\n\r\n\t$update_posts = 'UPDATE wp_posts SET comment_count = ? WHERE ID = ?';\r\n\t$wp = $factory->getConnection('WordPress');\r\n\t$posts = $wp->query($posts_query, MYSQLI_USE_RESULT);\r\n\r\n\t$update_post = $factory->getConnection('WordPress');\r\n\t$update_post_stmt = $update_post->prepare($update_posts);\r\n\r\n\twhile ($post = $posts->fetch_assoc()) {\r\n\t\t$update_post_stmt->bind_param(\r\n\t\t\t'ii',\r\n\t\t$post['count'],\r\n\t\t$post['id']);\r\n\t\t$update_post_stmt->execute();\r\n\t}\r\n\r\n\t$update_post_stmt->close();\r\n\t$update_post->close();\r\n\t$posts->close();\r\n\t$wp->close();\r\n}", "title": "" }, { "docid": "c5020977db542b716edcbce1e6fe8198", "score": "0.68219626", "text": "function wp_update_comment_count_now($post_id)\n {\n }", "title": "" }, { "docid": "e220f59d45596d1482634b3f94f59cd0", "score": "0.6627905", "text": "public function updateCommentCount()\n {\n $this->comment_count = $this->comments()->count();\n\n $this->save();\n }", "title": "" }, { "docid": "316497485998cbbbca7a584faa0c6b9f", "score": "0.6588946", "text": "function wp_update_comment_count($post_id, $do_deferred = \\false)\n {\n }", "title": "" }, { "docid": "543f92b26baa4ee4af7acdcca703cd42", "score": "0.632757", "text": "function update_counter($post_id) {\n $this->db->where('id', urldecode($post_id));\n $this->db->select('views_count');\n $count = $this->db->get('tb_posts')->row();\n // then increase by one\n $this->db->where('id', urldecode($post_id));\n $this->db->set('views_count', ($count->views_count + 1));\n $this->db->update('tb_posts');\n }", "title": "" }, { "docid": "bda60055f5c4f9525cca4f063ed2af4b", "score": "0.61774844", "text": "function comments_number($zero = \\false, $one = \\false, $more = \\false, $post = 0)\n {\n }", "title": "" }, { "docid": "f536a413f7972a225c6f7ec26d738103", "score": "0.6129497", "text": "protected function _afterSave()\r\n {\r\n $this->updatePostCommentCount();\r\n parent::_afterSave();\r\n }", "title": "" }, { "docid": "117a7dc344fa1af008cb36e9ad6002cc", "score": "0.61224145", "text": "function dsq_comments_number($comment_text) {\n\tglobal $post;\n\n\tif ( dsq_can_replace() ) {\n\t\treturn '<span class=\"dsq-postid\" rel=\"'.htmlspecialchars(dsq_identifier_for_post($post)).'\">View Comments</span>';\n\t} else {\n\t\treturn $comment_text;\n\t}\n}", "title": "" }, { "docid": "db180bc2335ab62c5f099b96fbeab69b", "score": "0.6088541", "text": "function get_comments_number($post = 0)\n {\n }", "title": "" }, { "docid": "c5d0f1f7d9ecce47808c72dd67f9a0df", "score": "0.60731214", "text": "public function updateDislikedCount($comment_id)\n {\n $comment = new Comment();\n\n try {\n $db = DB::conn();\n $db->begin();\n\n $update = $db->query('UPDATE comment SET disliked = disliked + 1 WHERE id = ?', array($comment_id));\n\n $db->commit();\n } catch (Exception $e) {\n $db->rollback();\n }\n }", "title": "" }, { "docid": "136cb77aa480a7affdbce0368a7c643c", "score": "0.6064601", "text": "function dsq_dash_comment_counts() {\n\tglobal $wpdb;\n// taken from wp-includes/comment.php - WP 2.8.5\n\t$count = $wpdb->get_results(\"\n\t\tSELECT comment_approved, COUNT( * ) AS num_comments \n\t\tFROM {$wpdb->comments} \n\t\tWHERE comment_type != 'trackback'\n\t\tAND comment_type != 'pingback'\n\t\tGROUP BY comment_approved\n\t\", ARRAY_A );\n\t$total = 0;\n\t$approved = array('0' => 'moderated', '1' => 'approved', 'spam' => 'spam');\n\t$known_types = array_keys( $approved );\n\tforeach( (array) $count as $row_num => $row ) {\n\t\t$total += $row['num_comments'];\n\t\tif ( in_array( $row['comment_approved'], $known_types ) )\n\t\t\t$stats[$approved[$row['comment_approved']]] = $row['num_comments'];\n\t}\n\n\t$stats['total_comments'] = $total;\n\tforeach ( $approved as $key ) {\n\t\tif ( empty($stats[$key]) )\n\t\t\t$stats[$key] = 0;\n\t}\n\t$stats = (object) $stats;\n?>\n<style type=\"text/css\">\n#dashboard_right_now .inside,\n#dashboard_recent_comments div.trackback {\n\tdisplay: none;\n}\n</style>\n<script type=\"text/javascript\">\njQuery(function($) {\n\t$('#dashboard_right_now').find('.b-comments a').html('<?php echo $stats->total_comments; ?>').end().find('.b_approved a').html('<?php echo $stats->approved; ?>').end().find('.b-waiting a').html('<?php echo $stats->moderated; ?>').end().find('.b-spam a').html('<?php echo $stats->spam; ?>').end().find('.inside').slideDown();\n \t$('#dashboard_recent_comments div.trackback').remove();\n \t$('#dashboard_right_now .inside table td.last a, #dashboard_recent_comments .inside .textright a.button').attr('href', 'edit-comments.php?page=disqus');\n});\n</script>\n<?php\n}", "title": "" }, { "docid": "f69481d3cb0f25b3617cb8cf668347bc", "score": "0.60259116", "text": "function tempera_number_comments() { ?>\n\t\t\t<h3 id=\"comments-title\"><i class=\"icon-replies\" ></i>\n\t\t\t\t<?php printf( _n( 'One Comment:', '%1$s Comments:', get_comments_number(), 'tempera' ),\n\t\t\t\tnumber_format_i18n( get_comments_number() )); ?>\n\t\t\t</h3>\n<?php }", "title": "" }, { "docid": "3340df154501489c65575121897bfe59", "score": "0.6021152", "text": "function iterateComments(){\n $this->commentsNumber += 1;\n }", "title": "" }, { "docid": "3dcebbe43ce95b4bd93b89fdab36d935", "score": "0.5982461", "text": "function wap8_trackbacks( $comment ) {\n$GLOBALS['comment'] = $comment; ?>\n<li><?php printf( __( '%s', 'designcrumbs' ), get_comment_author_link() ) ?> <?php edit_comment_link( __( 'Edit', 'designcrumbs' ), '<span>', '</span>' ); ?>\n<?php\n}", "title": "" }, { "docid": "2a78c7ab5e9f268a2f47e103da123bb8", "score": "0.5980539", "text": "protected function postUpdate($entity) {\n $this->commentsRecount($entity);\n }", "title": "" }, { "docid": "e5519705999695d83e19af40a73ba604", "score": "0.5845667", "text": "public function commentAction() {\r\n $data = json_decode($_POST['data'], true);\r\n if (empty($data['comments'])) {\r\n exit('access deny!');\r\n }\r\n\r\n if (stristr($data['sourceid'], 'nav_fun_')) {\r\n $id = intval(str_ireplace('nav_fun_', '', $data['sourceid']));\r\n $info = Nav_Service_NewsDB::getRecordDao()->get($id);\r\n if (!empty($info['id'])) {\r\n $total = $info['c_num'] + 1;\r\n Nav_Service_NewsDB::getRecordDao()->update(array('c_num' => $total), $id);\r\n $rcKey = 'NAV_FUN_OP:' . intval($info['id']);\r\n Common::getCache()->hSet($rcKey, 'c_num', $total);\r\n }\r\n }\r\n\r\n $addData = array(\r\n 'content' => trim($data['comments'][0]['content']),\r\n 'ctime' => substr($data['comments'][0]['ctime'], 0, 10),\r\n 'ip' => $data['comments'][0]['ip'],\r\n 'cmtid' => $data['comments'][0]['cmtid'],\r\n 'userid' => $data['comments'][0]['user']['userid'],\r\n 'sourceid' => $data['sourceid'],\r\n 'url' => $data['url'],\r\n 'created_at' => Common::getTime(),\r\n );\r\n\r\n // error_log(date('Y-m-d H:i:s') . \" \" . Common::jsonEncode($addData) . \"\\n\", 3, '/tmp/3g_changyan_comment');\r\n User_Service_Changyan::getDao()->insert($addData);\r\n\r\n exit;\r\n }", "title": "" }, { "docid": "8daf55fad6b59995e8d1ef25c91b696e", "score": "0.5833213", "text": "function nb_get_post_number_of_comments( $object, $field_name, $request ) {\n return (int) get_comments_number( );\n\n}", "title": "" }, { "docid": "d9d96c67617985c9f72da0a745c2b180", "score": "0.5800303", "text": "public function updateLikedCount($comment_id)\n {\n $comment = new Comment();\n \n try {\n $db = DB::conn();\n $db->begin();\n\n $update = $db->query('UPDATE comment SET liked = liked + 1 WHERE id = ?', array($comment_id));\n\n $db->commit();\n } catch (Exception $e) {\n $db->rollback();\n }\n }", "title": "" }, { "docid": "54a4cb633243eee467f267367750c3a0", "score": "0.5766108", "text": "function dp_trackback_source ($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment; ?>\n<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID() ?>\">\n<div id=\"comment-<?php comment_ID(); ?>\">\n<div class=\"comment-author vcard clearfix\">\n<?php printf(__('<cite class=\"comment_author_name icon-home\">%s</cite>'), get_comment_author_link()) ?>\n<div class=\"comment-meta commentmetadata\"><a href=\"<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>\"><?php printf(__('%1$s at %2$s','DigiPress'), get_comment_date(), get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)',''),' ','') ?></div>\n</div>\n<?php if ($comment->comment_approved == '0') : ?>\n<p><?php _e('Your trackback is awaiting moderation.', 'DigiPress') ?></p>\n<?php endif; ?>\n<div><?php comment_text() ?></div>\n</div>\n<?php }", "title": "" }, { "docid": "2aab7acfab18b4a325b140b2dfcf4cbb", "score": "0.574781", "text": "function deleteTrackbackComment ($id)\n{\n global $_TABLES;\n\n $cid = addslashes ($id);\n $result = DB_query (\"SELECT sid,type FROM {$_TABLES['trackback']} WHERE cid = '$cid'\");\n list ($sid, $type) = DB_fetchArray ($result);\n $url = PLG_getItemInfo($type, $sid, 'url');\n\n if (TRB_allowDelete ($sid, $type)) {\n TRB_deleteTrackbackComment ($id);\n if ($type == 'article') {\n DB_query (\"UPDATE {$_TABLES['stories']} SET trackbacks = trackbacks - 1 WHERE (sid = '$sid')\");\n }\n $msg = 62;\n } else {\n $msg = 63;\n }\n if (strpos ($url, '?') === false) {\n $url .= '?msg=' . $msg;\n } else {\n $url .= '&amp;msg=' . $msg;\n }\n\n return COM_refresh ($url);\n}", "title": "" }, { "docid": "29dc3efe142d8a72814becac4ed98959", "score": "0.57347685", "text": "protected function afterSave()\n {\n if($this->isNewRecord && $this->status==Comment::STATUS_APPROVED)\n Post::model()->updateCounters(array('commentCount'=>1), \"id={$this->postId}\");\n }", "title": "" }, { "docid": "48baa9d302b4da9abcbbe5f07654fabd", "score": "0.5721667", "text": "function get_pending_comments_num($post_id)\n {\n }", "title": "" }, { "docid": "5073eea85b04539cb26790a64a20a74c", "score": "0.5699028", "text": "function twentytwelve_comment($comment, $args, $depth) {\n $GLOBALS['comment'] = $comment;\n switch ($comment->comment_type) :\n case 'pingback' :\n case 'trackback' :\n // Display trackbacks differently than normal comments.\n ?>\n <li <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>\">\n <p><?php _e('Pingback:', 'twentytwelve'); ?> <?php comment_author_link(); ?> <?php edit_comment_link(__('(Edit)', 'twentytwelve'), '<span class=\"edit-link\">', '</span>'); ?></p>\n <?php\n break;\n default :\n // Proceed with normal comments.\n global $post;\n ?>\n <li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n <article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n <header class=\"comment-meta comment-author vcard\">\n <?php\n echo get_avatar($comment, 44);\n printf('<cite class=\"fn\">%1$s %2$s</cite>', get_comment_author_link(),\n // If current post author is also comment author, make it known visually.\n ( $comment->user_id === $post->post_author ) ? '<span> ' . __('Post author', 'twentytwelve') . '</span>' : ''\n );\n printf('<a href=\"%1$s\"><time datetime=\"%2$s\">%3$s</time></a>', esc_url(get_comment_link($comment->comment_ID)), get_comment_time('c'),\n /* translators: 1: date, 2: time */ sprintf(__('%1$s at %2$s', 'twentytwelve'), get_comment_date(), get_comment_time())\n );\n ?>\n </header><!-- .comment-meta -->\n\n <?php if ('0' == $comment->comment_approved) : ?>\n <p class=\"comment-awaiting-moderation\"><?php _e('Your comment is awaiting moderation.', 'twentytwelve'); ?></p>\n <?php endif; ?>\n\n <section class=\"comment-content comment\">\n <?php comment_text(); ?>\n <?php edit_comment_link(__('Edit', 'twentytwelve'), '<p class=\"edit-link\">', '</p>'); ?>\n </section><!-- .comment-content -->\n\n <div class=\"reply\">\n <?php comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'twentytwelve'), 'after' => ' <span>&darr;</span>', 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?>\n </div><!-- .reply -->\n </article><!-- #comment-## -->\n <?php\n break;\n endswitch; // end comment_type check\n }", "title": "" }, { "docid": "cdbc6883f18e2979769ef4b7899f15f0", "score": "0.569483", "text": "function update_comments_count($id) {\n global $db;\n $total_comments = $this->count_topic_comments($id);\n if (!userid())\n $userid = 0;\n else\n $userid = userid();\n\n $db->update(tbl($this->gp_topic_tbl), array(\"total_replies\", \"last_poster\", \"last_post_time\"), array($total_comments, $userid, now()), \" topic_id='$id'\");\n }", "title": "" }, { "docid": "35f90537140b69353729ba11333f9d6f", "score": "0.56688774", "text": "function wpb_set_post_views($postID) {\n $count_key = 'wpb_post_views_count';\n $count = get_post_meta($postID, $count_key, true);\n if($count==''){\n $count = 0;\n delete_post_meta($postID, $count_key);\n add_post_meta($postID, $count_key, '0');\n }else{\n $count++;\n update_post_meta($postID, $count_key, $count);\n }\n}", "title": "" }, { "docid": "925c8ffc3a0253f47c7ffa3c1d438ca1", "score": "0.565979", "text": "public function postComments()\n {\n $comments = $this->initialData();\n $this->assertCount(3, json_decode($comments->postComments(1)));\n }", "title": "" }, { "docid": "718fadb788147e5f97e929df3b2561a5", "score": "0.56380785", "text": "function update_comment_cache($comments, $update_meta_cache = \\true)\n {\n }", "title": "" }, { "docid": "3641adef1915e19ba3e37067b1d47966", "score": "0.56299806", "text": "protected function _afterDelete()\r\n {\r\n $this->updatePostCommentCount();\r\n parent::_afterDelete();\r\n\r\n }", "title": "" }, { "docid": "c68fe26a1e95968a12e4fd106be20694", "score": "0.55985343", "text": "function pelham_comment( $comment, $args, $depth ) {\n $GLOBALS['comment'] = $comment;\n switch ( $comment->comment_type ) :\n case 'pingback' :\n case 'trackback' :\n // Display trackbacks differently than normal comments.\n ?>\n <li <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>\">\n <p><?php _e( 'Pingback:', 'twentytwelve' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', 'twentytwelve' ), '<span class=\"edit-link\">', '</span>' ); ?></p>\n <?php\n break;\n default :\n // Proceed with normal comments.\n global $post;\n ?>\n <li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n <article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n <header class=\"comment-meta comment-author vcard\">\n <?php\n echo get_avatar( $comment, 44 );\n printf( '<cite class=\"fn\">%1$s %2$s</cite>',\n get_comment_author_link(),\n // If current post author is also comment author, make it known visually.\n ( $comment->user_id === $post->post_author ) ? '<span> ' . __( 'Post author', 'twentytwelve' ) . '</span>' : ''\n );\n printf( '<a href=\"%1$s\"><time datetime=\"%2$s\">%3$s</time></a>',\n esc_url( get_comment_link( $comment->comment_ID ) ),\n get_comment_time( 'c' ),\n /* translators: 1: date, 2: time */\n sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() )\n );\n ?>\n </header><!-- .comment-meta -->\n\n <?php if ( '0' == $comment->comment_approved ) : ?>\n <p class=\"comment-awaiting-moderation\"><?php _e( 'Your comment is awaiting moderation.', 'twentytwelve' ); ?></p>\n <?php endif; ?>\n\n <section class=\"comment-content comment\">\n <?php comment_text(); ?>\n <?php edit_comment_link( __( 'Edit', 'twentytwelve' ), '<p class=\"edit-link\">', '</p>' ); ?>\n </section><!-- .comment-content -->\n\n <div class=\"reply\">\n <?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply', 'twentytwelve' ), 'after' => ' <span>&darr;</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n </div><!-- .reply -->\n </article><!-- #comment-## -->\n <?php\n break;\n endswitch; // end comment_type check\n}", "title": "" }, { "docid": "5e1db46795e0e11e1bc7601352bbfe9a", "score": "0.5592147", "text": "function mpcth_comment( $comment, $args, $depth ) {\r\n\t$GLOBALS['comment'] = $comment;\r\n\r\n\tif(get_comment_author_email() == get_the_author_meta('email')){\r\n\t\t$author = \"comment_author\";\r\n\t} else {\r\n\t\t$author =\"\";\r\n\t}\r\n\r\n\tswitch ( $comment->comment_type ) :\r\n\t\tcase 'pingback' :\r\n\t\tcase 'trackback' :\r\n\t\t// Display trackbacks differently than normal comments.\r\n\t?>\r\n\t<li <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>\">\r\n\t\t<p><?php _e('Pingback:', 'mpcth'); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __('(Edit)', 'mpcth'), '<span class=\"edit-link\">', '</span>' ); ?></p>\r\n\t<?php\r\n\t\t\tbreak;\r\n\t\tdefault :\r\n\r\n\t\t// Proceed with normal comments.\r\n\t\tglobal $post;\r\n\t?>\r\n\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\r\n\t\t<article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\r\n\t\t\t<header class=\"comment-meta comment-author vcard\">\r\n\t\t\t\t<?php\r\n\t\t\t\t\techo get_avatar( $comment, 80 );\r\n\t\t\t\t\tprintf('<cite>%1$s </cite>',\r\n\t\t\t\t\t\tget_comment_author_link(),\r\n\t\t\t\t\t\t// If current post author is also comment author, make it known visually.\r\n\t\t\t\t\t\t( $comment->user_id === $post->post_author ) ? '<span> ' . __('Post author', 'mpcth') . '</span>' : ''\r\n\t\t\t\t\t);\r\n\t\t\t\t\tprintf('- <a href=\"%1$s\"><time datetime=\"%2$s\">%3$s</time></a>',\r\n\t\t\t\t\t\tesc_url( get_comment_link( $comment->comment_ID ) ),\r\n\t\t\t\t\t\tget_comment_time( 'c' ),\r\n\t\t\t\t\t\t/* translators: 1: date, 2: time */\r\n\t\t\t\t\t\tsprintf( __('%1$s at %2$s', 'mpcth'), get_comment_date(), get_comment_time() )\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\tcomment_reply_link( array_merge( $args, array( 'reply_text' => __('reply', 'mpcth'), 'before' => ' - ', 'after' => '', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) );\r\n\r\n\t\t\t\t\techo (($author != \"\") ? ' - <span>' . __('author', 'mpcth') . '</span>' : '');\r\n\t\t\t\t\techo '<a class=\"comment-fold mpcth-sc-icon-up-open\" href=\"#\"></a>';\r\n\r\n\t\t\t\t?>\r\n\t\t\t</header><!-- .comment-meta -->\r\n\r\n\t\t\t<?php if ( '0' == $comment->comment_approved ) : ?>\r\n\t\t\t\t<p class=\"comment-awaiting-moderation\"><?php _e('Your comment is awaiting moderation.', 'mpcth'); ?></p>\r\n\t\t\t<?php endif; ?>\r\n\r\n\t\t\t<section class=\"comment-content comment\">\r\n\t\t\t\t<?php comment_text(); ?>\r\n\t\t\t\t\r\n\t\t\t</section><!-- .comment-content -->\r\n\t\t</article><!-- #comment-## -->\r\n\t<?php\r\n\t\tbreak;\r\n\tendswitch; // end comment_type check\r\n}", "title": "" }, { "docid": "945f9af39c46d78c2ded64f91b7d1630", "score": "0.55876374", "text": "function frmwrk_comment( $comment, $args, $depth ) {\n\t$GLOBALS['comment'] = $comment;\n\tswitch ( $comment->comment_type ) :\n\t\tcase 'pingback' :\n\t\tcase 'trackback' :\n\t\t// Display trackbacks differently than normal comments.\n\t?>\n\t<li <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>\">\n\t\t<p><?php _e( 'Pingback:', 'frmwrk' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', 'frmwrk' ), '<span class=\"edit-link\">', '</span>' ); ?></p>\n\t<?php\n\t\t\tbreak;\n\t\tdefault :\n\t\t// Proceed with normal comments.\n\t\tglobal $post;\n\t?>\n\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n\t\t<article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n\t\t\t<header class=\"comment-meta comment-author vcard\">\n\t\t\t\t<?php\n\t\t\t\t\techo get_avatar( $comment, 44 );\n\t\t\t\t\tprintf( '<cite class=\"fn\">%1$s %2$s</cite>',\n\t\t\t\t\t\tget_comment_author_link(),\n\t\t\t\t\t\t// If current post author is also comment author, make it known visually.\n\t\t\t\t\t\t( $comment->user_id === $post->post_author ) ? '<span> ' . __( 'Post author', 'frmwrk' ) . '</span>' : ''\n\t\t\t\t\t);\n\t\t\t\t\tprintf( '<a href=\"%1$s\"><time datetime=\"%2$s\">%3$s</time></a>',\n\t\t\t\t\t\tesc_url( get_comment_link( $comment->comment_ID ) ),\n\t\t\t\t\t\tget_comment_time( 'c' ),\n\t\t\t\t\t\t/* translators: 1: date, 2: time */\n\t\t\t\t\t\tsprintf( __( '%1$s at %2$s', 'frmwrk' ), get_comment_date(), get_comment_time() )\n\t\t\t\t\t);\n\t\t\t\t?>\n\t\t\t</header><!-- .comment-meta -->\n\n\t\t\t<?php if ( '0' == $comment->comment_approved ) : ?>\n\t\t\t\t<p class=\"comment-awaiting-moderation\"><?php _e( 'Your comment is awaiting moderation.', 'frmwrk' ); ?></p>\n\t\t\t<?php endif; ?>\n\n\t\t\t<section class=\"comment-content comment\">\n\t\t\t\t<?php comment_text(); ?>\n\t\t\t\t<?php edit_comment_link( __( 'Edit', 'frmwrk' ), '<p class=\"edit-link\">', '</p>' ); ?>\n\t\t\t</section><!-- .comment-content -->\n\n\t\t\t<div class=\"reply\">\n\t\t\t\t<?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply', 'frmwrk' ), 'after' => ' <span>&darr;</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n\t\t\t</div><!-- .reply -->\n\t\t</article><!-- #comment-## -->\n\t<?php\n\t\tbreak;\n\tendswitch; // end comment_type check\n}", "title": "" }, { "docid": "855d92f301aac5fc700a9c3a8c663f46", "score": "0.5576438", "text": "function get_comments_number_text($zero = \\false, $one = \\false, $more = \\false, $post = 0)\n {\n }", "title": "" }, { "docid": "987a4bf42c687a09a4c774d8f357c162", "score": "0.5575672", "text": "public function getCommentCounts() {\n $this->allowJSONP(true);\n\n $vanilla_identifier = val('vanilla_identifier', $_GET);\n if (!is_array($vanilla_identifier)) {\n $vanilla_identifier = [$vanilla_identifier];\n }\n\n $vanilla_identifier = array_unique($vanilla_identifier);\n\n $finalData = array_fill_keys($vanilla_identifier, 0);\n $misses = [];\n $cacheKey = 'embed.comments.count.%s';\n $originalIDs = [];\n foreach ($vanilla_identifier as $foreignID) {\n $hashedForeignID = foreignIDHash($foreignID);\n\n // Keep record of non-hashed identifiers for the reply\n $originalIDs[$hashedForeignID] = $foreignID;\n\n $realCacheKey = sprintf($cacheKey, $hashedForeignID);\n $comments = Gdn::cache()->get($realCacheKey);\n if ($comments !== Gdn_Cache::CACHEOP_FAILURE) {\n $finalData[$foreignID] = $comments;\n } else {\n $misses[] = $hashedForeignID;\n }\n }\n\n if (sizeof($misses)) {\n $countData = Gdn::sql()\n ->select('ForeignID, CountComments')\n ->from('Discussion')\n ->where('Type', 'page')\n ->whereIn('ForeignID', $misses)\n ->get()->resultArray();\n\n foreach ($countData as $row) {\n // Get original identifier to send back\n $foreignID = $originalIDs[$row['ForeignID']];\n $finalData[$foreignID] = $row['CountComments'];\n\n // Cache using the hashed identifier\n $realCacheKey = sprintf($cacheKey, $row['ForeignID']);\n Gdn::cache()->store($realCacheKey, $row['CountComments'], [\n Gdn_Cache::FEATURE_EXPIRY => 60\n ]);\n }\n }\n\n $this->setData('CountData', $finalData);\n $this->DeliveryMethod = DELIVERY_METHOD_JSON;\n $this->DeliveryType = DELIVERY_TYPE_DATA;\n $this->render();\n }", "title": "" }, { "docid": "b10505cb9e30d49214c0bdd1384efe98", "score": "0.55745524", "text": "function update_comment_meta($comment_id, $meta_key, $meta_value, $prev_value = '')\n {\n }", "title": "" }, { "docid": "95743ce44f9404ff25dfbce891c185de", "score": "0.5571356", "text": "public function UpdateCommentsCount($pluginid=null,$objectid=null)\n {\n global $DB;\n\n //SD322: added parameters to make it usable for other tasks, too\n if(!empty($pluginid) && !empty($objectid))\n {\n $plugin_id = (int)$pluginid;\n $object_id = (int)$objectid;\n }\n else\n {\n $plugin_id = $this->plugin_id;\n $object_id = $this->object_id;\n }\n\n $count = $DB->query_first('SELECT COUNT(*) com_count FROM {comments}'.\n ' WHERE pluginid = %d AND objectid = %d'.\n ' AND approved = 1',\n $plugin_id, $object_id);\n $count = empty($count['com_count']) ? 0 : (int)$count['com_count'];\n\n $DB->query('DELETE FROM {comments_count}'.\n ' WHERE plugin_id = %d AND object_id = %d',\n $plugin_id, $object_id);\n $DB->query('INSERT INTO {comments_count} (plugin_id, object_id, count)'.\n ' VALUES (%d, %d, %d)',\n $plugin_id, $object_id, $count);\n\n $this->comments_count_md_arr[$plugin_id][$object_id] = $count;\n\n // Save \"Comments Count\"-array back to cache\n if(isset($this->CacheObj) && ($this->CacheObj->IsActive()))\n {\n //SD342 remove cache file an re-count\n $this->InitCommentsCount(true);\n }\n\n return true;\n\n }", "title": "" }, { "docid": "b88b68713b78a07da88e43930ef9618c", "score": "0.55701554", "text": "function setPostViews($postID) {\n $countKey = 'post_views_count';\n $count = get_post_meta($postID, $countKey, true);\n // die(var_dump($count));\n if($count==''){\n $count = 0;\n delete_post_meta($postID, $countKey);\n add_post_meta($postID, $countKey, '0');\n }else{\n $count++;\n update_post_meta($postID, $countKey, $count);\n }\n}", "title": "" }, { "docid": "e5169aef04e8f0f19c1af24fa6305229", "score": "0.55531025", "text": "function twentytwelve_comment( $comment, $args, $depth ) {\n\t$GLOBALS['comment'] = $comment;\n\tswitch ( $comment->comment_type ) :\n\t\tcase 'pingback' :\n\t\tcase 'trackback' :\n\t\t// Display trackbacks differently than normal comments.\n\t?>\n\t<li <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>\">\n\t\t<p><?php _e( 'Pingback:', 'twentytwelve' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', 'twentytwelve' ), '<span class=\"edit-link\">', '</span>' ); ?></p>\n\t<?php\n\t\t\tbreak;\n\t\tdefault :\n\t\t// Proceed with normal comments.\n\t\tglobal $post;\n\t?>\n\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n\t\t<article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n\t\t\t<header class=\"comment-meta comment-author vcard\">\n\t\t\t\t<?php\n\t\t\t\t\techo get_avatar( $comment, 44 );\n\t\t\t\t\tprintf( '<cite><b class=\"fn\">%1$s</b> %2$s</cite>',\n\t\t\t\t\t\tget_comment_author_link(),\n\t\t\t\t\t\t// If current post author is also comment author, make it known visually.\n\t\t\t\t\t\t( $comment->user_id === $post->post_author ) ? '<span>' . __( 'Post author', 'twentytwelve' ) . '</span>' : ''\n\t\t\t\t\t);\n\t\t\t\t\tprintf( '<a href=\"%1$s\"><time datetime=\"%2$s\">%3$s</time></a>',\n\t\t\t\t\t\tesc_url( get_comment_link( $comment->comment_ID ) ),\n\t\t\t\t\t\tget_comment_time( 'c' ),\n\t\t\t\t\t\t/* translators: 1: date, 2: time */\n\t\t\t\t\t\tsprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() )\n\t\t\t\t\t);\n\t\t\t\t?>\n\t\t\t</header><!-- .comment-meta -->\n\n\t\t\t<?php if ( '0' == $comment->comment_approved ) : ?>\n\t\t\t\t<p class=\"comment-awaiting-moderation\"><?php _e( 'Your comment is awaiting moderation.', 'twentytwelve' ); ?></p>\n\t\t\t<?php endif; ?>\n\n\t\t\t<section class=\"comment-content comment\">\n\t\t\t\t<?php comment_text(); ?>\n\t\t\t\t<?php edit_comment_link( __( 'Edit', 'twentytwelve' ), '<p class=\"edit-link\">', '</p>' ); ?>\n\t\t\t</section><!-- .comment-content -->\n\n\t\t\t<div class=\"reply\">\n\t\t\t\t<?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply', 'twentytwelve' ), 'after' => ' <span>&darr;</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n\t\t\t</div><!-- .reply -->\n\t\t</article><!-- #comment-## -->\n\t<?php\n\t\tbreak;\n\tendswitch; // end comment_type check\n}", "title": "" }, { "docid": "cbaf707dd33c553884cc36cb424dead1", "score": "0.55530226", "text": "function twentytwelve_comment( $comment, $args, $depth ) {\n\t$GLOBALS['comment'] = $comment;\n\tswitch ( $comment->comment_type ) :\n\t\tcase 'pingback' :\n\t\tcase 'trackback' :\n\t\t// Display trackbacks differently than normal comments.\n\t?>\n\t<li <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>\">\n\t\t<p><?php _e( 'Pingback:', 'twentytwelve' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', 'twentytwelve' ), '<span class=\"edit-link\">', '</span>' ); ?></p>\n\t<?php\n\t\t\tbreak;\n\t\tdefault :\n\t\t// Proceed with normal comments.\n\t\tglobal $post;\n\t?>\n\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n\t\t<article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n\t\t\t<header class=\"comment-meta comment-author vcard\">\n\t\t\t\t<?php\n\t\t\t\t\techo get_avatar( $comment, 44 );\n\t\t\t\t\tprintf( '<cite><b class=\"fn\">%1$s</b> %2$s</cite>',\n\t\t\t\t\t\tget_comment_author_link(),\n\t\t\t\t\t\t// If current post author is also comment author, make it known visually.\n\t\t\t\t\t\t( $comment->user_id === $post->post_author ) ? '<span>' . __( 'Post author', 'twentytwelve' ) . '</span>' : ''\n\t\t\t\t\t);\n\t\t\t\t\tprintf( '<a href=\"%1$s\"><time datetime=\"%2$s\">%3$s</time></a>',\n\t\t\t\t\t\tesc_url( get_comment_link( $comment->comment_ID ) ),\n\t\t\t\t\t\tget_comment_time( 'c' ),\n\t\t\t\t\t\t/* translators: 1: date, 2: time */\n\t\t\t\t\t\tsprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() )\n\t\t\t\t\t);\n\t\t\t\t?>\n\t\t\t</header><!-- .comment-meta -->\n\t\t\t<?php if ( '0' == $comment->comment_approved ) : ?>\n\t\t\t\t<p class=\"comment-awaiting-moderation\"><?php _e( 'Your comment is awaiting moderation.', 'twentytwelve' ); ?></p>\n\t\t\t<?php endif; ?>\n\t\t\t<section class=\"comment-content comment\">\n\t\t\t\t<?php comment_text(); ?>\n\t\t\t\t<?php edit_comment_link( __( 'Edit', 'twentytwelve' ), '<p class=\"edit-link\">', '</p>' ); ?>\n\t\t\t</section><!-- .comment-content -->\n\t\t\t<div class=\"reply\">\n\t\t\t\t<?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply', 'twentytwelve' ), 'after' => ' <span>&darr;</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n\t\t\t</div><!-- .reply -->\n\t\t</article><!-- #comment-## -->\n\t<?php\n\t\tbreak;\n\tendswitch; // end comment_type check\n}", "title": "" }, { "docid": "0d75f428ae614c3c5f25c05a110a0d7c", "score": "0.5552542", "text": "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}", "title": "" }, { "docid": "ec2fc0a753cc8d3bfc46414aa37b03e6", "score": "0.5547282", "text": "public function incrementNumPosts()\n {\n $this->numPosts++;\n }", "title": "" }, { "docid": "a09a3bbc020ddf3784a13a4d340bab42", "score": "0.55449504", "text": "function twentytwelve_comment( $comment, $args, $depth ) {\n\t$GLOBALS['comment'] = $comment;\n\tswitch ( $comment->comment_type ) :\n\t\tcase 'pingback' :\n\t\tcase 'trackback' :\n\t\t// Display trackbacks differently than normal comments.\n\t?>\n\t<li <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>\">\n\t\t<p><?php _e( 'Pingback:', 'twentytwelve' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', 'twentytwelve' ), '<span class=\"edit-link\">', '</span>' ); ?></p>\n\t<?php\n\t\t\tbreak;\n\t\tdefault :\n\t\t// Proceed with normal comments.\n\t\tglobal $post;\n\t?>\n\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n\t\t<article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n\t\t\t<header class=\"comment-meta comment-author vcard\">\n\t\t\t\t<?php\n\t\t\t\t\techo get_avatar( $comment, 44 );\n\t\t\t\t\tprintf( '<cite class=\"fn\">%1$s %2$s</cite>',\n\t\t\t\t\t\tget_comment_author_link(),\n\t\t\t\t\t\t// If current post author is also comment author, make it known visually.\n\t\t\t\t\t\t( $comment->user_id === $post->post_author ) ? '<span> ' . __( 'Post author', 'twentytwelve' ) . '</span>' : ''\n\t\t\t\t\t);\n\t\t\t\t\tprintf( '<a href=\"%1$s\"><time pubdate datetime=\"%2$s\">%3$s</time></a>',\n\t\t\t\t\t\tesc_url( get_comment_link( $comment->comment_ID ) ),\n\t\t\t\t\t\tget_comment_time( 'c' ),\n\t\t\t\t\t\t/* translators: 1: date, 2: time */\n\t\t\t\t\t\tsprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() )\n\t\t\t\t\t);\n\t\t\t\t?>\n\t\t\t</header><!-- .comment-meta -->\n\n\t\t\t<?php if ( '0' == $comment->comment_approved ) : ?>\n\t\t\t\t<p class=\"comment-awaiting-moderation\"><?php _e( 'Your comment is awaiting moderation.', 'twentytwelve' ); ?></p>\n\t\t\t<?php endif; ?>\n\n\t\t\t<section class=\"comment-content comment\">\n\t\t\t\t<?php comment_text(); ?>\n\t\t\t\t<?php edit_comment_link( __( 'Edit', 'twentytwelve' ), '<p class=\"edit-link\">', '</p>' ); ?>\n\t\t\t</section><!-- .comment-content -->\n\n\t\t\t<div class=\"reply\">\n\t\t\t\t<?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply <span>&darr;</span>', 'twentytwelve' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n\t\t\t</div><!-- .reply -->\n\t\t</article><!-- #comment-## -->\n\t<?php\n\t\tbreak;\n\tendswitch; // end comment_type check\n}", "title": "" }, { "docid": "a00fe95c0d6b79ec1387180fcdd73dbc", "score": "0.5543249", "text": "function setPostViews($postID) {\r\n $count_key = 'post_views_count';\r\n $count = get_post_meta($postID, $count_key, true);\r\n if($count==''){\r\n add_post_meta($postID, $count_key, '1');\r\n }else{\r\n $count++;\r\n update_post_meta($postID, $count_key, $count);\r\n }\r\n}", "title": "" }, { "docid": "c56aa328220a15e1dc5d44f99f5a679f", "score": "0.5540172", "text": "function setPostViews($postID) {\n $count_key = 'post_views_count';\n $count = get_post_meta($postID, $count_key, true);\n if($count==''){\n $count = 0;\n delete_post_meta($postID, $count_key);\n add_post_meta($postID, $count_key, '0');\n }else{\n $count++;\n update_post_meta($postID, $count_key, $count);\n }\n}", "title": "" }, { "docid": "c56aa328220a15e1dc5d44f99f5a679f", "score": "0.5540172", "text": "function setPostViews($postID) {\n $count_key = 'post_views_count';\n $count = get_post_meta($postID, $count_key, true);\n if($count==''){\n $count = 0;\n delete_post_meta($postID, $count_key);\n add_post_meta($postID, $count_key, '0');\n }else{\n $count++;\n update_post_meta($postID, $count_key, $count);\n }\n}", "title": "" }, { "docid": "c56aa328220a15e1dc5d44f99f5a679f", "score": "0.5540172", "text": "function setPostViews($postID) {\n $count_key = 'post_views_count';\n $count = get_post_meta($postID, $count_key, true);\n if($count==''){\n $count = 0;\n delete_post_meta($postID, $count_key);\n add_post_meta($postID, $count_key, '0');\n }else{\n $count++;\n update_post_meta($postID, $count_key, $count);\n }\n}", "title": "" }, { "docid": "b4b1c20a652a657dcb4fcb600f47e19d", "score": "0.552388", "text": "protected function comment($cmntdata) {\n\t\t//$usercomment\t= array();\n\t\t$pid \t\t\t= $cmntdata->pid;\n\t\t$user_id \t\t= $cmntdata->user_id;\n\t\t$reddit_id \t\t= $cmntdata->name;\n\t\t$comment \t\t= $cmntdata->comment;\n\t\t$data = array(\n\t\t\t'reddit_id' \t=> $reddit_id,\n\t\t\t'post_id'\t\t=> $pid,\n\t\t\t'comment'\t\t=> $comment, \n\t\t\t'user_id'\t\t=> $user_id\n\t\t);\n\t\t$result\t\t\t\t= $this->db->insert('appcomments', $data);\n\t\t//add activity\n\t\t$activity_data= array(\n\t\t\t'reddit_id' \t=> $reddit_id,\n\t\t\t'post_id'\t\t=> $pid,\n\t\t\t'mode'\t\t\t=> '2', \n\t\t\t'user_id'\t\t=> $user_id\n\t\t\n\t\t);\t\t\n\t\tif ($result) {\n\t\t\t$activity\t\t\t\t= $this->db->insert('activity', $activity_data);\n\t\t\t//pr($activity);die;\n\t\t\t$username \t\t\t\t= $this->app_model->getUsernameById($user_id);\n\t\t\t$usercomment['commentdata'][0]['comment'] \t= $comment; \n\t\t\t$usercomment['commentdata'][0]['username'] \t= $username['username']; \n\t\t\t$usercomment['commentdata'][0]['user_id'] \t= $user_id; \n\t\t\t$sql = \"select commentcount from appstats where post_id= \".$pid;\n\t\t\t$query = $this->db->query($sql);\n\t\t\tif ($query->num_rows() > 0) {\n\t\t\t\t$commentcount \t\t= $query->row_array();\n\t\t\t\t$commentcount['commentcount'] = $commentcount['commentcount']+1;\n\t\t\t\t$update_comment \t= \"UPDATE appstats SET commentcount= \".$commentcount['commentcount'].\" WHERE post_id=\".$pid;\n\t\t\t\tif($this->db->query($update_comment)){\n\t\t\t\t\t//$usercomment['commentdata'][0]['commentcount'] = $commentcount['commentcount'];\n\t\t\t\t}\n\t\t\t} else { // this is for first time\n\t\t\t\t$statsdata = array(\n\t\t\t\t\t'reddit_id' \t=> $reddit_id,\n\t\t\t\t\t'likecount'\t\t=> '',\n\t\t\t\t\t'viewcount'\t\t=> '', \n\t\t\t\t\t'commentcount'\t=> 1, //first time increament\n\t\t\t\t\t//'user_id'\t\t=> $user_id,\n\t\t\t\t\t'post_id'\t\t=> $pid\n\t\t\t\t); \n\t\t\t\t$result\t\t\t\t= $this->db->insert('appstats', $statsdata);\n\t\t\t\tif ($result) {\n\t\t\t\t\t$sql \t= \"select commentcount from appstats where post_id='$pid'\";\n\t\t\t\t\t$query \t= $this->db->query($sql);\n\t\t\t\t\tif ($query->num_rows() > 0) {\n\t\t\t\t\t\t$commentcount \t\t= $query->row_array();\n\t\t\t\t\t\t//$usercomment['commentdata'][0]['commentcount'] = $commentcount['commentcount'];\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->trueResponse($usercomment,'success', $encode = true);\n\t\t}\n\t}", "title": "" }, { "docid": "f6b5127bc1254b1f9daaa11922f154b3", "score": "0.5521576", "text": "function twentytwelve_comment( $comment, $args, $depth ) {\n\t$GLOBALS['comment'] = $comment;\n\tswitch ( $comment->comment_type ) :\n\t\tcase 'pingback' :\n\t\tcase 'trackback' :\n\t\t// Display trackbacks differently than normal comments.\n\t?>\n\t<li <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>\">\n\t\t<p><?php _e( 'Pingback:', 'twentytwelve' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', 'twentytwelve' ), '<span class=\"edit-link\">', '</span>' ); ?></p>\n\t<?php\n\t\t\tbreak;\n\t\tdefault :\n\t\t// Proceed with normal comments.\n\t\tglobal $post;\n\t?>\n\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n\t\t<article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n\t\t\t<header class=\"comment-meta comment-author vcard\">\n\t\t\t\t<?php\n\t\t\t\t\techo get_avatar( $comment, 44 );\n\t\t\t\t\tprintf( '<cite class=\"fn\">%1$s %2$s</cite>',\n\t\t\t\t\t\tget_comment_author_link(),\n\t\t\t\t\t\t// If current post author is also comment author, make it known visually.\n\t\t\t\t\t\t( $comment->user_id === $post->post_author ) ? '<span> ' . __( 'Post author', 'twentytwelve' ) . '</span>' : ''\n\t\t\t\t\t);\n\t\t\t\t\tprintf( '<a href=\"%1$s\"><time datetime=\"%2$s\">%3$s</time></a>',\n\t\t\t\t\t\tesc_url( get_comment_link( $comment->comment_ID ) ),\n\t\t\t\t\t\tget_comment_time( 'c' ),\n\t\t\t\t\t\t/* translators: 1: date, 2: time */\n\t\t\t\t\t\tsprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() )\n\t\t\t\t\t);\n\t\t\t\t?>\n\t\t\t</header><!-- .comment-meta -->\n\n\t\t\t<?php if ( '0' == $comment->comment_approved ) : ?>\n\t\t\t\t<p class=\"comment-awaiting-moderation\"><?php _e( 'Your comment is awaiting moderation.', 'twentytwelve' ); ?></p>\n\t\t\t<?php endif; ?>\n\n\t\t\t<section class=\"comment-content comment\">\n\t\t\t\t<?php comment_text(); ?>\n\t\t\t\t<?php edit_comment_link( __( 'Edit', 'twentytwelve' ), '<p class=\"edit-link\">', '</p>' ); ?>\n\t\t\t</section><!-- .comment-content -->\n\n\t\t\t<div class=\"reply\">\n\t\t\t\t<?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply', 'twentytwelve' ), 'after' => ' <span>&darr;</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n\t\t\t</div><!-- .reply -->\n\t\t</article><!-- #comment-## -->\n\t<?php\n\t\tbreak;\n\tendswitch; // end comment_type check\n}", "title": "" }, { "docid": "f20b89780916ba00918743abc9eff97b", "score": "0.55206203", "text": "function wpb_set_post_views( $postID ) {\n $count_key = 'wpb_post_views_count';\n $count = get_post_meta( $postID, $count_key, true );\n\n if( $count=='' ){\n $count = 0;\n delete_post_meta( $postID, $count_key );\n add_post_meta( $postID, $count_key, '0' );\n }else{\n $count++;\n update_post_meta( $postID, $count_key, $count );\n }\n}", "title": "" }, { "docid": "5401e480b7887bb974bcdd73f74d6b6b", "score": "0.5511564", "text": "function wyz_business_post_comments_toggle() {\n\t$nonce = filter_input( INPUT_POST, 'nonce' );\n\n\tif ( ! wp_verify_nonce( $nonce, 'wyz_ajax_custom_nonce' ) ) {\n\t\twp_die( 'busted' );\n\t}\n\n\tglobal $current_user;\n\twp_get_current_user();\n\n\t$_post_id = intval( $_POST['post-id'] );\n\t$_user_id = $current_user->ID;\n\t$_comm_stat = $_POST['comm-stat'];\n\t$_post = get_post( $_post_id );\n\n\tif ( ! $_post || ( $_user_id != $_post->post_author && ! user_can( $_user_id, 'manage_options' ) ) ) {\n\t\twp_die( false );\n\t}\n\t\n\tif ( 'open' == $_comm_stat || 'closed' == $_comm_stat ) { \n\t\t$_post->comment_status = $_comm_stat;\n\t}\n\twp_update_post( $_post );\n\twp_die( true );\n}", "title": "" }, { "docid": "8a49a1865773564a55c732224bcf7741", "score": "0.5510066", "text": "function view_counter_single_post($pid){\t\r\n\tif($_SERVER['HTTP_REFERER'] == '' || !strstr($_SERVER['HTTP_REFERER'],$_SERVER['REQUEST_URI']))\r\n\t{\r\n\t\t$viewed_count = get_post_meta($pid,'viewed_count',true);\r\n\t\t$viewed_count_daily = get_post_meta($pid,'viewed_count_daily',true);\r\n\t\t$daily_date = get_post_meta($pid,'daily_date',true);\r\n\t\r\n\t\tupdate_post_meta($pid,'viewed_count',$viewed_count+1);\r\n\tif(get_post_meta($pid,'daily_date',true) == date('Y-m-d')){\r\n\t\t\tupdate_post_meta($pid,'viewed_count_daily',$viewed_count_daily+1);\r\n\t\t} else {\r\n\t\t\tupdate_post_meta($pid,'viewed_count_daily','1');\r\n\t\t}\r\n\t\tupdate_post_meta($pid,'daily_date',date('Y-m-d'));\r\n\t}\r\n}", "title": "" }, { "docid": "aff00dbd9beee82b0ca9f067d2116439", "score": "0.5497917", "text": "function labs_comment( $comment, $args, $depth ) {\n\t$GLOBALS['comment'] = $comment;\n\tswitch ( $comment->comment_type ) :\n\t\tcase 'pingback' :\n\t\tcase 'trackback' :\n\t?>\n<li class=\"post pingback\">\n <p>\n <?php _e( 'Pingback:', 'labs' ); ?>\n <?php comment_author_link(); ?>\n <?php edit_comment_link( __( 'Edit', 'labs' ), '<span class=\"edit-link\">', '</span>' ); ?>\n </p>\n <?php\n\t\t\tbreak;\n\t\tdefault :\n\t?>\n<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n <article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n <div class=\"comment-meta\">\n <div class=\"comment-author vcard\">\n <?php\n\t\t\t\t\t\t$avatar_size = 32;\n\t\t\t\t\t\tif ( '0' != $comment->comment_parent )\n\t\t\t\t\t\t\t$avatar_size = 32;\n\n\t\t\t\t\t\techo get_avatar( $comment, $avatar_size );\n\n\t\t\t\t\t\t/* translators: 1: comment author, 2: date and time */\n\t\t\t\t\t\tprintf( __( '%1$s | %2$s <span class=\"says\">said:</span>', 'labs' ),\n\t\t\t\t\t\t\tsprintf( '<span class=\"fn\">%s</span>', get_comment_author_link() ),\n\t\t\t\t\t\t\tsprintf( '<a href=\"%1$s\"><time datetime=\"%2$s\">%3$s</time></a>',\n\t\t\t\t\t\t\t\tesc_url( get_comment_link( $comment->comment_ID ) ),\n\t\t\t\t\t\t\t\tget_comment_time( 'Y-m-d' ),\n\t\t\t\t\t\t\t\t/* translators: 1: date, 2: time */\n\t\t\t\t\t\t\t\tsprintf( __( '%1$s at %2$s', 'labs' ), get_comment_date('Y-m-d'), get_comment_time('G:i') )\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t?>\n <?php edit_comment_link( __( 'Edit', 'labs' ), '<span class=\"edit-link\">', '</span>' ); ?>\n </div>\n <!-- .comment-author .vcard -->\n \n <?php if ( $comment->comment_approved == '0' ) : ?>\n <em class=\"comment-awaiting-moderation\">\n <?php _e( 'Your comment is awaiting moderation.', 'labs' ); ?>\n </em> <br />\n <?php endif; ?>\n </div>\n <!-- .comment-meta -->\n \n <div class=\"comment-content\">\n <?php comment_text(); ?>\n </div>\n <div class=\"reply\">\n <?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply <span>&darr;</span>', 'labs' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n </div>\n <!-- .reply --> \n </article>\n <!-- #comment-## -->\n \n <?php\n\t\t\tbreak;\n\tendswitch;\n}", "title": "" }, { "docid": "75d25f1eb6181aa1e6443bd844e8e64b", "score": "0.5496286", "text": "function quasar_set_post_views(){\n\tglobal $post;\n\tif(!$post) return;\n\t\n\tif(!is_single()) return;\n\t\n\t$count_key = 'post_views_count';\n\t$count = get_post_meta($post->ID, $count_key, true);\n\tif ($count == '') {\n\t\t$count = 0;\n\t\tdelete_post_meta($post->ID, $count_key);\n\t\tadd_post_meta($post->ID, $count_key, '0');\n\t} else {\n\t\t$count++;\n\t\tupdate_post_meta($post->ID, $count_key, $count);\n\t}\n}", "title": "" }, { "docid": "74ab40f3d7def69ee80720a05d74d52b", "score": "0.5491515", "text": "function my_custom_comment( $comment, $args, $depth ) {\n\t\n\t$GLOBALS['comment'] = $comment;\n\n\t// Display trackbacks differently than normal comments.\n\tswitch ( $comment->comment_type ) :\n\n\n\t\t// pingback or trackback\n\t\tcase 'pingback' :\n\t\tcase 'trackback' :\n\t\t?>\n\t\t\n\t\t\t<li id=\"comment-<?php comment_ID(); ?>\" <?php comment_class(); ?>>\n\t\t\t<p>Pingback: <?php comment_author_link(); ?></p>\n\t\t<?php\n\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t// normal comment\n\t\tdefault :\n\t\tglobal $post;\n\t\t?>\n\t\t\n\t\t<li id=\"li-comment-<?php comment_ID(); ?>\" <?php comment_class(); ?>>\t\n\t\t\t<section id=\"comment-<?php comment_ID(); ?>\" class=\"row\">\n\t\t\t\n\t\t\t\t<header class=\"comment-author vcard\">\n\t\t\t\t\t\n\t\t\t\t\t<div class=\"avatar\"><?php echo get_avatar( $comment, 60 ); ?></div>\n\t\t\t\t\t\n\t\t\t\t\t<div class=\"meta comment-meta\">\n\t\n\t\t\t\t\t\t<p class=\"name\">\n\t\t\t\t\t\t\t<?php \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tprintf( '<b class=\"fn\">%1$s</b> %2$s', get_comment_author_link(),\n\t\t\t\t\t\t\t\t// If current post author is also comment author, make it known visually.\n\t\t\t\t\t\t\t\t( $comment->user_id === $post->post_author ) ? '<span>Post author</span>' : '' );\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t</p>\n\t\n\t\t\t\t\t\t<p class=\"time\">\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tprintf( '<a href=\"%1$s\"><time datetime=\"%2$s\">%3$s</time></a>',\n\t\t\t\t\t\t\t\tesc_url( get_comment_link( $comment->comment_ID ) ),\n\t\t\t\t\t\t\t\tget_comment_time( 'c' ),\n\t\t\t\t\t\t\t\t/* translators: 1: date, 2: time */\n\t\t\t\t\t\t\t\tsprintf( '%1$s at %2$s', get_comment_date( 'm/d/y' ), get_comment_time() ) );\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t</p>\n\t\n\t\t\t\t\t\t<?php edit_comment_link( 'Edit comment', '<p class=\"edit-link\">', '</p>' ); ?>\n\t\t\t\t\t\n\t\t\t\t\t</div><!-- meta -->\n\t\t\t\t</header><!-- comment-author -->\n\t\t\t\t\n\t\t\t\t<article class=\"comment-content content\">\n\t\t\t\t\n\t\t\t\t\t<?php \n\t\t\t\t\t\t\n\t\t\t\t\t\tif ( '0' == $comment->comment_approved ) echo( '<p class=\"comment-awaiting-moderation\">Your comment is awaiting moderation.</p>' );\n\t\n\t\t\t\t\t\tcomment_text();\n\t\t\t\t\t\t\n\t\t\t\t\t?>\n\t\t\t\t\t\n\t\t\t\t\t<p class=\"reply-link\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t<?php comment_reply_link( array_merge( $args, array( 'reply_text' => 'Reply', 'after' => ' <span>&darr;</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n\t\t\t\t\t\t\n\t\t\t\t\t</p>\n\t\t\t\t\t\t\n\t\t\t\t</article><!-- .comment-content -->\n\t\n\t\n\t\t\t</section><!-- #comment-## -->\n\t\t\n\t\t<?php\n\t\tbreak;\n\t\t\n\tendswitch; // end comment_type check\n\t\n}", "title": "" }, { "docid": "37cbe2c187ee5fde2f58b242fb3944e9", "score": "0.54673016", "text": "function tp_count_post_views () {\t\n // Garante que vamos tratar apenas de posts\n if ( is_single() ) {\n \n // Precisamos da variável $post global para obter o ID do post\n global $post;\n \n // Se a sessão daquele posts não estiver vazia\n if ( empty( $_SESSION[ 'tp_post_counter_' . $post->ID ] ) ) {\n \n // Cria a sessão do posts\n $_SESSION[ 'tp_post_counter_' . $post->ID ] = true;\n \n // Cria ou obtém o valor da chave para contarmos\n $key = 'tp_post_counter';\n $key_value = get_post_meta( $post->ID, $key, true );\n \n // Se a chave estiver vazia, valor será 1\n if ( empty( $key_value ) ) { // Verifica o valor\n $key_value = 1;\n update_post_meta( $post->ID, $key, $key_value );\n } else {\n // Caso contrário, o valor atual + 1\n $key_value += 1;\n update_post_meta( $post->ID, $key, $key_value );\n } // Verifica o valor\n \n } // Checa a sessão\n \n } // is_single\n \n return;\n \n }", "title": "" }, { "docid": "1253dd9e895d4ce8ae5b15698c364445", "score": "0.5464541", "text": "function twentytwelve_comment( $comment, $args, $depth ) {\n\t\t$GLOBALS['comment'] = $comment;\n\t\tswitch ( $comment->comment_type ) :\n\t\t\tcase 'pingback':\n\t\t\tcase 'trackback':\n\t\t\t\t// Display trackbacks differently than normal comments.\n\t\t?>\n\t\t<li <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>\">\n\t\t<p><?php _e( 'Pingback:', 'twentytwelve' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', 'twentytwelve' ), '<span class=\"edit-link\">', '</span>' ); ?></p>\n\t<?php\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t// Proceed with normal comments.\n\t\t\t\tglobal $post;\n\t\t?>\n\t\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n\t\t<article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n\t\t\t<header class=\"comment-meta comment-author vcard\">\n\t\t\t\t<?php\n\t\t\t\t\techo get_avatar( $comment, 44 );\n\t\t\t\t\tprintf(\n\t\t\t\t\t\t'<cite><b class=\"fn\">%1$s</b> %2$s</cite>',\n\t\t\t\t\t\tget_comment_author_link(),\n\t\t\t\t\t\t// If current post author is also comment author, make it known visually.\n\t\t\t\t\t\t( $comment->user_id === $post->post_author ) ? '<span>' . __( 'Post author', 'twentytwelve' ) . '</span>' : ''\n\t\t\t\t\t);\n\t\t\t\t\tprintf(\n\t\t\t\t\t\t'<a href=\"%1$s\"><time datetime=\"%2$s\">%3$s</time></a>',\n\t\t\t\t\t\tesc_url( get_comment_link( $comment->comment_ID ) ),\n\t\t\t\t\t\tget_comment_time( 'c' ),\n\t\t\t\t\t\t/* translators: 1: date, 2: time */\n\t\t\t\t\t\tsprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() )\n\t\t\t\t\t);\n\t\t\t\t\t?>\n\t\t\t\t</header><!-- .comment-meta -->\n\n\t\t\t\t<?php if ( '0' == $comment->comment_approved ) : ?>\n\t\t\t\t<p class=\"comment-awaiting-moderation\"><?php _e( 'Your comment is awaiting moderation.', 'twentytwelve' ); ?></p>\n\t\t\t<?php endif; ?>\n\n\t\t\t\t<section class=\"comment-content comment\">\n\t\t\t\t<?php comment_text(); ?>\n\t\t\t\t<?php edit_comment_link( __( 'Edit', 'twentytwelve' ), '<p class=\"edit-link\">', '</p>' ); ?>\n\t\t\t\t</section><!-- .comment-content -->\n\n\t\t\t\t<div class=\"reply\">\n\t\t\t\t<?php\n\t\t\t\tcomment_reply_link(\n\t\t\t\t\tarray_merge(\n\t\t\t\t\t\t$args, array(\n\t\t\t\t\t\t\t'reply_text' => __( 'Reply', 'twentytwelve' ),\n\t\t\t\t\t\t\t'after' => ' <span>&darr;</span>',\n\t\t\t\t\t\t\t'depth' => $depth,\n\t\t\t\t\t\t\t'max_depth' => $args['max_depth'],\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n?>\n\t\t\t\t</div><!-- .reply -->\n\t\t\t</article><!-- #comment-## -->\n\t\t<?php\n\t\t\t\tbreak;\n\t\tendswitch; // end comment_type check\n\t}", "title": "" }, { "docid": "9844ae432a68ddd394a0a5e0b202f643", "score": "0.54562724", "text": "public function updateDepth()\n {\n $parent = $this->ParentComment();\n if ($parent && $parent->exists()) {\n $parent->updateDepth();\n $this->Depth = $parent->Depth + 1;\n } else {\n $this->Depth = 1;\n }\n }", "title": "" }, { "docid": "84b744873d276a39e57bb31b47a72371", "score": "0.5451053", "text": "static function pretty_comments_number() {\n\t\tglobal $post;\n\t\tprintf(\n\t\t\t/* translators: %s represents a number */\n\t\t\t_n( '%s Comment', '%s Comments', get_comments_number(), 'cargopress-pt' ), number_format_i18n( get_comments_number() )\n\t\t);\n\t}", "title": "" }, { "docid": "9230ad14bc53bed237bf8c7973ce97c3", "score": "0.5446132", "text": "public function subtractDislikedCount($comment_id)\n {\n $comment = new Comment();\n \n try {\n $db = DB::conn();\n $db->begin();\n\n $update = $db->query('UPDATE comment SET disliked = disliked - 1 WHERE id = ?', array($comment_id));\n\n $db->commit();\n } catch (Exception $e) {\n $db->rollback();\n }\n }", "title": "" }, { "docid": "9dc8392900d10d4ca47c9be1db993752", "score": "0.54396313", "text": "function _prime_comment_caches($comment_ids, $update_meta_cache = \\true)\n {\n }", "title": "" }, { "docid": "5469b4d401e6742f955043cdc137f4aa", "score": "0.5426487", "text": "public function incrementPendingEntriesCount()\n\t{\n\t\t$this->setPendingEntriesCount($this->getPendingEntriesCount() + 1); \n\t\t$this->save();\n\t}", "title": "" }, { "docid": "05fca866b90753613065655a36773e32", "score": "0.54260945", "text": "function incrementPost()\n {\n $member_handler = &zarilia_gethandler( 'member' );\n return $member_handler->updateUserByField( $this, 'posts', $this->getVar( 'posts' ) + 1 );\n }", "title": "" }, { "docid": "47bd7a96cb87fbd1d8b912b5bee4c81f", "score": "0.5424538", "text": "public static function updateNumberOfViews($id, $numberOfViews) {\n $numberOfViews++;\n $db = Db::getInstance();\n $req = $db->prepare(\"Update blogPost set noOfViews = $numberOfViews WHERE blogPostID=:id\");\n $req->bindParam(':id', $id);\n $req->execute();\n}", "title": "" }, { "docid": "655c6a0a0a5882de200d17a0eab19b0b", "score": "0.5424256", "text": "function flexfour_comment( $comment, $args, $depth ) {\n\t$GLOBALS['comment'] = $comment;\n\tswitch ( $comment->comment_type ) :\n\t\tcase 'pingback' :\n\t\tcase 'trackback' :\n\t\t// Display trackbacks differently than normal comments.\n\t?>\n\t<li <?php comment_class(); ?> id=\"comment-<?php comment_ID(); ?>\">\n\t\t<p><?php _e( 'Pingback:', 'flexfour' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', 'flexfour' ), '<span class=\"edit-link\">', '</span>' ); ?></p>\n\t<?php\n\t\t\tbreak;\n\t\tdefault :\n\t\t// Proceed with normal comments.\n\t\tglobal $post;\n\t?>\n\t<li <?php comment_class(); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n\t\t<article id=\"comment-<?php comment_ID(); ?>\" class=\"comment\">\n\t\t\t<header class=\"comment-meta comment-author vcard\">\n\t\t\t\t<?php\n\t\t\t\t\t\n\t\t\t\t\tprintf( '<cite class=\"fn\">%1$s %2$s</cite>',\n\t\t\t\t\t\tget_comment_author_link(),\n\t\t\t\t\t\t// If current post author is also comment author, make it known visually.\n\t\t\t\t\t\t( $comment->user_id === $post->post_author ) ? '<span> ' . __( 'Post author', 'flexfour' ) . '</span>' : ''\n\t\t\t\t\t);\n\t\t\t\t\tprintf( '<a href=\"%1$s\"><time datetime=\"%2$s\" itemprop=\"commentTime\">%3$s</time></a>',\n\t\t\t\t\t\tesc_url( get_comment_link( $comment->comment_ID ) ),\n\t\t\t\t\t\tget_comment_time( 'c' ),\n\t\t\t\t\t\t/* translators: 1: date, 2: time */\n\t\t\t\t\t\tsprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() )\n\t\t\t\t\t);\n\t\t\t\t?>\n\t\t\t</header><!-- .comment-meta -->\n\n\t\t\t<?php if ( '0' == $comment->comment_approved ) : ?>\n\t\t\t\t<p class=\"comment-awaiting-moderation\"><?php _e( 'Your comment is awaiting moderation.', 'flexfour' ); ?></p>\n\t\t\t<?php endif; ?>\n\n\t\t\t<section class=\"comment-content comment\" itemprop=\"commentText\">\n\t\t\t\t<?php comment_text(); ?>\n\t\t\t\t<?php edit_comment_link( __( 'Edit', 'flexfour' ), '<p class=\"edit-link\">', '</p>' ); ?>\n\t\t\t</section><!-- .comment-content -->\n\n\t\t\t<div class=\"reply\" itemprop=\"replyToUrl\">\n\t\t\t\t<?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply', 'flexfour' ), 'after' => ' <span>&darr;</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>\n\t\t\t</div><!-- .reply -->\n\t\t</article><!-- #comment-## -->\n\t<?php\n\t\tbreak;\n\tendswitch; // end comment_type check\n\t\n\t}", "title": "" }, { "docid": "9365dfe63a9042d4f7c44c887a78e9c7", "score": "0.5421959", "text": "function bdpp_trending_post_count() {\n\t\t\n\t\t$prefix\t\t= BDPP_META_PREFIX;\n\t\t$post_id \t= isset( $_POST['post_id'] ) ? bdpp_clean_number( $_POST['post_id'] ) : '';\n\t\t\n\t\tif( !empty( $post_id ) ) {\n\t\t\t\n\t\t\t// Getting existing views\n\t\t\t$views = get_post_meta( $post_id, $prefix.'post_views', true );\n\t\t\t$views = !empty( $views ) ? $views : 0;\n\n\t\t\t// Update view\n\t\t\tupdate_post_meta( $post_id, $prefix.'post_views', ($views+1) );\n\n\t\t\t$result['success'] = 1;\n\t\t} else {\n\t\t\t$result['success'] = 0;\n\t\t}\n\t\twp_send_json($result);\n\t}", "title": "" }, { "docid": "16810e827ec584d2cf98d83b59f51b01", "score": "0.54200613", "text": "function updateHitCount($short_url_id){\n\t\t$this->query('UPDATE short_urls SET hit_count = hit_count + 1, modified = NOW() WHERE id='.$short_url_id);\n\t}", "title": "" }, { "docid": "9e6e5717ab091b5238bf9616776fad94", "score": "0.5410434", "text": "function trackback($trackback_url, $title, $excerpt, $ID)\n {\n }", "title": "" }, { "docid": "7204ed9e96c6acbd8d3ffb05b96538a2", "score": "0.5398102", "text": "public function getCommentCount(): int;", "title": "" }, { "docid": "72b3024d4f14032b0f569909c951a2d3", "score": "0.5391958", "text": "function fbComments_cacheAllCommentCounts() {\n\tglobal $fbc_options;\n\tfbComments_log('In ' . __FUNCTION__ . '()');\n\n\t$fb = fbComments_getFbApi();\n\t$posts = get_posts(array('numberposts' => -1)); // Retrieve all posts\n\n\tif ($posts) {\n\t\tfbComments_log(sprintf(' Looping through %d posts', count($posts)));\n\t\tforeach ($posts as $post) {\n\t\t\t$xid = $fbc_options['xid'] . \"_post{$post->ID}\";\n\t\t\t$query = array(\n\t\t\t\t'method' => 'fql.query',\n\t\t\t\t'query'\t => 'SELECT count FROM comments_info WHERE app_id=\"' . $fb->getAppId() . '\" AND xid=\"' . $xid . '\"'\n\t\t\t);\n\n\t\t\ttry {\n\t\t\t\tfbComments_log(\" Retrieving Facebook comment count for post with xid=$xid\");\n\t\t\t\t$result = $fb->api($query);\n\n\t\t\t\tif ($result) {\n\t\t\t\t\tupdate_option(\"fbComments_commentCount_$xid\", $result[0]['count']);\n\t\t\t\t}\n\t\t\t} catch (FacebookApiException $e) {\n\t\t\t\tfbComments_log(\" FAILED to retrieve Facebook comment count for post with xid=$xid error: $e\");\n\t\t\t}\n\t\t}\n\t}\n}", "title": "" }, { "docid": "5cc2fd0b172e481b7d132eb7f43c91e5", "score": "0.53888404", "text": "function wyz_bus_post_load_comments() {\n\t$nonce = filter_input( INPUT_POST, 'nonce' );\n\n\tif ( ! wp_verify_nonce( $nonce, 'wyz_ajax_custom_nonce' ) ) {\n\t\twp_die( 'busted' );\n\t}\n\n\t$_post_id = intval( $_POST['post-id'] );\n\t$_offset = intval( $_POST['offset'] );\n\n\tif( '' == $_post_id || '' == $_offset ) wp_die( false );\n\n\t$args = array(\n\t\t'status' => 'approve',\n\t\t'post_id' => $_post_id\n\t);\n\t$comments = get_comments( $args );\n\t$output = '';\n\t$count = 0;\n\tforeach ( $comments as $comment) {\n\t\tif(!$count++ )continue;\n\t\t$output .= WyzBusinessPost::get_the_comment( $comment );\n\t}\n\n\twp_die( $output );\n\t//wp_die( array( $output, $count ) );\n}", "title": "" }, { "docid": "902963c9ce5ff9e72c1999ef17efe856", "score": "0.5382563", "text": "function postCommentNotify($id, $postId){\r\n $commentManager = new CommentsManager();\r\n $notify = $commentManager->postNotify($id);\r\n}", "title": "" }, { "docid": "f06c1c31c4c6149bc40ad69da8207828", "score": "0.53759074", "text": "protected function updateCommentForUpdatableVersionsAction() {}", "title": "" }, { "docid": "e9147cb7db5fb2a1276a28cf67965598", "score": "0.53661376", "text": "function subh_set_post_view( $postID ) {\r\n $count_key = 'post_views_count';\r\n $count = (int) get_post_meta( $postID, $count_key, true );\r\n if ( $count < 1 ) {\r\n delete_post_meta( $postID, $count_key );\r\n add_post_meta( $postID, $count_key, '0' );\r\n } else {\r\n $count++;\r\n update_post_meta( $postID, $count_key, (string) $count );\r\n }\r\n}", "title": "" }, { "docid": "e5be2fb97701d41874f0afa2852f6f3e", "score": "0.53657556", "text": "public function getCommentCount()\n {\n return $this->commentCount = $this->get()->comment_count;\n }", "title": "" }, { "docid": "a3822bf6ee8c7c6378d248fc46c56fe3", "score": "0.5362566", "text": "function td_comment( $comment, $args, $depth ) {\r\n $GLOBALS['comment'] = $comment;\r\n\r\n $td_isPingTrackbackClass = '';\r\n\r\n if($comment->comment_type == 'pingback') {\r\n $td_isPingTrackbackClass = 'pingback';\r\n }\r\n\r\n if($comment->comment_type == 'trackback') {\r\n $td_isPingTrackbackClass = 'trackback';\r\n }\r\n\r\n if (!empty($comment->comment_author_email)) {\r\n $td_comment_auth_email = $comment->comment_author_email;\r\n } else {\r\n $td_comment_auth_email = '';\r\n }\r\n\r\n $td_article_date_unix = @strtotime(\"{$comment->comment_date_gmt} GMT\");\r\n //print_r($td_article_date_unix);\r\n\r\n\r\n\t?>\r\n <li class=\"comment <?php echo $td_isPingTrackbackClass ?>\" id=\"comment-<?php comment_ID() ?>\">\r\n\t\t\t<article>\r\n\t <footer>\r\n <?php\r\n\t //echo get_template_directory_uri() . \"/images/avatar.jpg\";\r\n\t //echo get_avatar($td_comment_auth_email, 50, get_template_directory_uri() . \"/images/avatar.jpg\");\r\n\t echo get_avatar($td_comment_auth_email, 50);\r\n ?>\r\n <cite><?php comment_author_link() ?></cite>\r\n\r\n <a class=\"comment-link\" href=\"#comment-<?php comment_ID() ?>\">\r\n <time pubdate=\"<?php echo $td_article_date_unix ?>\"><?php comment_date() ?> at <?php comment_time() ?></time>\r\n </a>\r\n </footer>\r\n\r\n <div class=\"comment-content\">\r\n <?php if ($comment->comment_approved == '0') { ?>\r\n <em><?php echo __td('Your comment is awaiting moderation', TD_THEME_NAME); ?></em>\r\n <?php }\r\n comment_text(); ?>\r\n </div>\r\n\r\n\t <div class=\"comment-meta\" id=\"comment-<?php comment_ID() ?>\">\r\n <?php comment_reply_link(array_merge( $args, array(\r\n 'depth' => $depth,\r\n 'max_depth' => $args['max_depth'],\r\n 'reply_text' => __td('Reply', TD_THEME_NAME),\r\n 'login_text' => __td('Log in to leave a comment', TD_THEME_NAME)\r\n )))\r\n ?>\r\n </div>\r\n </article>\r\n <?php\r\n\r\n}", "title": "" }, { "docid": "09e50bc52d0f3377e50cddb662724897", "score": "0.5350439", "text": "function likeComment() {\n if ($this->getRequestMethod() != \"POST\") {\n $this->response('', 406);\n }\n $data = json_decode(file_get_contents(\"php://input\"),true);\n $id = (int)$data['id'];\n if ($id > 0) {\n $query = \"select * from comments where id=$id;\"; \n $r = $this->conn->query($query) or die($this->conn->error.__LINE__);\n if($r->num_rows > 0) {\n $query = \"update comments set likes = likes + 1 where id =$id;\";\n $r = $this->conn->query($query) or die($this->conn->error.__LINE__); \n $this->response('', 200);\n } else {\n $this->response('', 204);\n }\n } else {\n $this->response('', 400);\n }\n }", "title": "" }, { "docid": "88aaa4f1ce471ec1b3e95bc2d3272f5a", "score": "0.5324201", "text": "protected function increment(){\n $count = $this->model->getClickCount();\n $count++;\n $this->model->setClickCount($count);\n $this->model->save(false);\n \n }", "title": "" }, { "docid": "6de3aa5c65a45ed7ae083183e585770e", "score": "0.5315814", "text": "protected function afterDelete()\n {\n if($this->status==Comment::STATUS_APPROVED)\n Post::model()->updateCounters(array('commentCount'=>-1), \"id={$this->postId}\");\n }", "title": "" }, { "docid": "89545194af7050221af9be275c33bb28", "score": "0.5315298", "text": "public function reportComment() {\n $commentId = $this->request->getParameter(\"comId\");\n $postId = $this->request->getParameter(\"postId\");\n $this->comment->report($commentId);\n $this->redirect('Post','index/'.$postId);\n }", "title": "" }, { "docid": "44466be59d4be7b46619daaf06925977", "score": "0.53092444", "text": "private function comment_edit_submit( ) {\n\n if ( ! ( in('post_ID') || in('comment_ID') || in('comment_parent') ) ) ferror(-500481, \"None of post_ID, comment_ID, comment_parent has provided.\");\n $comment_ID = in( 'comment_ID' );\n $update = $comment_ID ? true : false;\n \n \n if ( $update ) {\n $comment = get_comment( $comment_ID );\n $post_ID = $comment->comment_post_ID;\n }\n else {\n $post_ID = in('post_ID');\n if ( empty( $post_ID ) ) {\n $comment = get_comment(in('comment_parent'));\n $post_ID = $comment->comment_post_ID;\n }\n }\n forum()->setCategoryByPostID($post_ID);\n\n\n\n //\n if ( $update ) { // update\n $this->endIfNotMyComment( $comment_ID );\n remove_filter( 'pre_comment_content', 'wp_filter_kses' );\n $re = wp_update_comment([\n 'comment_ID' => $comment_ID,\n 'comment_content' => in('comment_content')\n ]);\n add_filter( 'pre_comment_content', 'wp_filter_kses' );\n\n if ( ! $re ) {\n // error or content has not changed.\n }\n }\n else { // new\n $user_ID = $this->get_post_author();\n $user = get_user_by( 'id', $user_ID );\n $comment_ID = wp_insert_comment([\n 'comment_post_ID' => $post_ID,\n 'comment_parent' => in('comment_parent'),\n 'comment_author' => $user->user_login,\n 'user_id' => $user_ID,\n 'comment_content' => in('comment_content'),\n 'comment_approved' => 1,\n ]);\n if ( ! $comment_ID ) {\n $this->errorResponse(-50302, \"Comment was not created\");\n }\n }\n\n //$this->updateFileWithPost( FORUM_COMMENT_POST_NUMBER + $comment_ID );\n\n // $url = get_permalink( $post_ID ) . '#comment-' . $comment_ID ; // this is not used.\n\n //\n $files = in('files');\n if ( $files ) {\n $arr = explode('| |', $files);\n $files = array_filter( $arr );\n comment()->meta( $comment_ID, 'files', $files );\n }\n\n\n\n // Save All extra input into post meta.\n comment()->saveAllMeta( $comment_ID );\n\n\n $o = [ 'post_ID' => $post_ID, 'comment_ID' => $comment_ID ];\n // if ( in('response') == 'ajax' ) $o['comment'] = comment()->get_comment_with_meta( $comment_ID );\n $this->response( $o );\n }", "title": "" }, { "docid": "39cad65f90f0828bf5048c771749db60", "score": "0.53073454", "text": "function wpachievements_wordpress_comment($cid, $status){\r\n if( !empty($cid) ){\r\n $cdata = get_comment($cid);\r\n if( $cdata->user_id ){\r\n if($status == 1){\r\n $uid=$cdata->user_id; $postid='';\r\n if(function_exists('is_multisite') && is_multisite()){\r\n $comm_count = (int)get_blog_option(1, 'wpachievements_comm_min_count');\r\n $comm_deduct = (int)get_blog_option(1, 'wpachievements_comm_min_deduct');\r\n } else{\r\n $comm_count = (int)get_option('wpachievements_comm_min_count');\r\n $comm_deduct = (int)get_option('wpachievements_comm_min_deduct');\r\n }\r\n if( empty($comm_count) || $comm_count < 1 ){\r\n $comm_count = 1;\r\n }\r\n if( !empty($comm_count) ){\r\n if( str_word_count($cdata->comment_content) >= $comm_count ){\r\n $type='comment_added';\r\n if( !function_exists(WPACHIEVEMENTS_CUBEPOINTS) && !function_exists(WPACHIEVEMENTS_MYCRED) ){\r\n if(function_exists('is_multisite') && is_multisite()){\r\n $points = (int)get_blog_option(1, 'wpachievements_comment_points');\r\n } else{\r\n $points = (int)get_option('wpachievements_comment_points');\r\n }\r\n }\r\n if(empty($points)){$points=0;}\r\n wpachievements_new_activity($type, $uid, $postid, $points);\r\n } else{\r\n $type='comment_added_bad';\r\n if( !empty($comm_deduct) && $comm_deduct > 0 ){\r\n $points=$comm_deduct;\r\n } else{\r\n $points=0;\r\n }\r\n if(empty($points)){$points=0;}\r\n wpachievements_new_activity($type, $uid, $postid, -$points);\r\n }\r\n } else{\r\n $type='comment_added';\r\n if( !function_exists(WPACHIEVEMENTS_CUBEPOINTS) && !function_exists(WPACHIEVEMENTS_MYCRED) ){\r\n if(function_exists('is_multisite') && is_multisite()){\r\n $points = (int)get_blog_option(1, 'wpachievements_comment_points');\r\n } else{\r\n $points = (int)get_option('wpachievements_comment_points');\r\n }\r\n }\r\n if(empty($points)){$points=0;}\r\n wpachievements_new_activity($type, $uid, $postid, $points);\r\n }\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "1df662dd0f0b75c93d7d65eca52a8a5b", "score": "0.53009367", "text": "public function getCommentCount();", "title": "" }, { "docid": "540584a294579de392da315ff30722ac", "score": "0.5291655", "text": "function mocca_count_comment($cat_name_posts_count) {\n $comment_arg = array(\n 'status' => 'approve'\n );\n $comment_count = 0;\n\n $all_comment = get_comments($comment_arg);\n\n foreach ($all_comment as $comment) {\n $post_id = $comment->comment_post_ID;\n if(! in_category($cat_name_posts_count, $post_id)) {\n continue;\n }\n $comment_count++;\n }\n echo $comment_count;\n }", "title": "" }, { "docid": "07086d161aa25ca4b941bf2cb658e653", "score": "0.52896416", "text": "public function setCommentsCount($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (int) $v;\n\t\t}\n\n\t\tif ($this->comments_count !== $v || $this->isNew()) {\n\t\t\t$this->comments_count = $v;\n\t\t\t$this->modifiedColumns[] = PostPeer::COMMENTS_COUNT;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "7d87b85964863e2f9fe891236c4f4ba0", "score": "0.5288485", "text": "public function update(Request $request, HashtagPostComment $hashtagPostComment)\n {\n //\n }", "title": "" }, { "docid": "117073cb745b4b3ee7690a16955f44a1", "score": "0.52799296", "text": "protected function comments_bubble($post_id, $pending_comments)\n {\n }", "title": "" }, { "docid": "b5d014293ba83ef2d5c2b3495824adfe", "score": "0.52779174", "text": "public function subtractLikedCount($comment_id)\n {\n $comment = new Comment();\n\n try {\n $db = DB::conn();\n $db->begin();\n \n $update = $db->query('UPDATE comment SET liked = liked - 1 WHERE id = ?', array($comment_id));\n\n $db->commit();\n } catch (Exception $e) {\n $db->rollback();\n }\n }", "title": "" }, { "docid": "a5b377edc2f6389c9c7c2b627004136a", "score": "0.5273612", "text": "private function update_fb_comment($post, $comment, $parent_id = null) {\n $wp_comment_id = $this->get_wp_comment_for_fb($post->ID, $comment->id);\n\n if (!$wp_comment_id) {\n if (preg_match('/((\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d))T((\\d\\d):(\\d\\d):(\\d\\d))/', $comment->created_time, $matches)) {\n $gmdate = \"{$matches[1]} {$matches[5]}\";\n } else {\n $gmdate = gmdate('Y-m-d H:i:s');\n }\n\n $comment_data = array(\n 'comment_post_ID' => $post->ID,\n 'comment_author' => $comment->from->name,\n 'comment_content' => $comment->message,\n 'comment_date' => get_date_from_gmt($gmdate),\n 'comment_date_gmt' => $gmdate,\n 'comment_approved' => '1',\n 'comment_type' => 'facebook',\n 'comment_author_url' => 'http://facebook.com/profile.php?id='.$comment->from->id\n );\n\n if (!is_null($parent_id)) {\n $comment_data['comment_parent'] = $parent_id;\n }\n\n $wp_comment_id = $this->wp_new_comment($comment_data);\n\n if ($wp_comment_id && !is_wp_error($wp_comment_id)) {\n wp_update_comment_count($post->ID);\n update_comment_meta($wp_comment_id, 'fb_comment', $comment);\n update_comment_meta($wp_comment_id, 'fb_comment_id', $comment->id);\n update_comment_meta($wp_comment_id, 'fb_commenter_id', $comment->from->id);\n } else {\n // print_r($wp_comment_id);\n }\n }\n\n if ($comment->comments) {\n foreach($comment->comments->data as $reply) {\n $this->update_fb_comment($post, $reply, $wp_comment_id);\n }\n }\n }", "title": "" }, { "docid": "39990301fb52e99a6461552458a80189", "score": "0.527193", "text": "public function updated(Post $post)\n {\n // Category\n if ($post->category != $post->getOriginal('category')) {\n Category::find($post->category)->increment('num');\n Category::find($post->getOriginal('category'))->decrement('num');\n }\n\n\n // Tag\n if ($post->tags != $post->getOriginal('tags')) {\n Tag::whereIn('id', explode(',', $post->tags))->increment('num');\n Tag::whereIn('id', explode(',', $post->getOriginal('tags')))->decrement('num');\n }\n }", "title": "" }, { "docid": "6be07e09daf7d1274e751734d2fca527", "score": "0.526814", "text": "function customSetPostViews($postID)\n{\n $countKey = 'post_views_count';\n $count = get_post_meta($postID, $countKey, true);\n if ($count == '') {\n $count = 0;\n delete_post_meta($postID, $countKey);\n add_post_meta($postID, $countKey, '1');\n } else {\n $count++;\n update_post_meta($postID, $countKey, $count);\n }\n}", "title": "" }, { "docid": "ac6d7de3416a8ce751cb2d25beec8e69", "score": "0.52661866", "text": "public function updateComments($content_id, $total_num) {\n\t\t$contentObj = $this->get($content_id);\n\t\tif ($contentObj && !$contentObj->isNew()) {\n\t\t\t$contentObj->setVar('content_comments', $total_num);\n\t\t\t$this->insert($contentObj, true);\n\t\t}\n\t}", "title": "" }, { "docid": "ace79fc9ba1f1aac54a7aa86f1b6d392", "score": "0.52612454", "text": "function _update_posts_count_on_delete($post_id, $post)\n {\n }", "title": "" }, { "docid": "dac190bbd7524ed492b42d99e5309b87", "score": "0.5251077", "text": "function wp_cache_set_comments_last_changed()\n {\n }", "title": "" }, { "docid": "01d5077e1ff3fdbcaee1c61258925dd7", "score": "0.52495754", "text": "protected function postInsert($entity) {\n $this->commentsRecount($entity);\n }", "title": "" }, { "docid": "bee99417f4cf77326fd89be17d8f1753", "score": "0.5248248", "text": "function animo_comment( $comment, $args, $depth ) {\n $GLOBALS['comment'] = $comment;\n switch ( $comment->comment_type ) :\n case 'pingback' :\n case 'trackback' :\n ?>\n <li <?php comment_class('comment'); ?> id=\"li-comment-<?php comment_ID(); ?>\">\n <div class=\"media-body\"><?php _e( 'Pingback:', 'animo' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'animo' ), ' ' ); ?></div>\n </li>\n <?php\n break;\n\n default :\n $class = array('comment_wrap');\n if ($depth > 1) {\n $class[] = 'chaild';\n }\n ?>\n <!-- Comment Item -->\n <li <?php comment_class('comment'); ?> id=\"comment-<?php comment_ID(); ?>\">\n\n <div class=\"comment-body\">\n <figure class=\"comment-avatar\">\n <?php echo get_avatar( $comment, 45 ); ?>\n </figure>\n\n <div class=\"comment-content\">\n <div class=\"comment-meta\">\n <h6><?php comment_author_link();?></h6>\n <time><?php echo comment_date(get_option('date_format')) ?>, <?php echo comment_date(get_option('time_format')) ?></time>\n </div>\n <?php if ( $comment->comment_approved == '0' ) : ?>\n <em><?php _e( 'Your comment is awaiting moderation.', 'animo' ); ?></em>\n <?php endif; ?>\n <?php comment_text(); ?>\n\n <div class=\"comment-rate\">\n <a href=\"#\" class=\"up\"><i class=\"fa fa-angle-up\"></i></a>\n <a href=\"#\" class=\"down\"><i class=\"fa fa-angle-down\"></i></a>\n </div>\n <?php $reply = get_comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => 2 ) ) );\n if (!empty($reply)): ?>\n <?php echo wp_kses_post($reply); ?>\n <?php endif;\n edit_comment_link( __( 'Edit', 'animo' ), '', '' );\n ?>\n\n <!--share comment-->\n\n </div>\n </div>\n <?php\n break;\n endswitch;\n}", "title": "" }, { "docid": "717fe3684febabaeed3c921748727e1d", "score": "0.52481663", "text": "function register_block_core_comments_pagination_numbers()\n {\n }", "title": "" }, { "docid": "c95851a3f68f82a72719de4e74e579f0", "score": "0.5227555", "text": "function updateCommentTotal($db, $postID){\n $query = \"UPDATE Discussions SET numComment= numComment + 1 WHERE PostID = ? \";\n\n //prepare and bind database $query\n $stmt = $db->stmt_init();\n $stmt->prepare($query);\n $stmt->bind_param('i', $postID);\n $sucess = $stmt->execute();\n\n //check for query error\n if(!$sucess || $db->affected_rows == 0){\n echo \"ERROR: \" . $db->error . \"for query\"; // error statement\n return;\n }\n\n $stmt->close(); //close stmt\n //echo \"it worked, session stored!\";\n}", "title": "" }, { "docid": "f889de3c5755ee3b83408db11a750ef1", "score": "0.5222", "text": "public function commentsAction()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t$user = Application_Model_User::getAuth();\r\n\r\n\t\t\t$id = $this->_request->getPost('id');\r\n\r\n\t\t\tif (!v::intVal()->validate($id))\r\n\t\t\t{\r\n\t\t\t\tthrow new RuntimeException('Incorrect post value: ' .\r\n\t\t\t\t\tvar_export($id, true));\r\n\t\t\t}\r\n\r\n\t\t\tif (!Application_Model_News::checkId($id, $post, ['join'=>false]))\r\n\t\t\t{\r\n\t\t\t\tthrow new RuntimeException('Incorrect post ID');\r\n\t\t\t}\r\n\r\n\t\t\t$start = $this->_request->getPost('start', 0);\r\n\r\n\t\t\tif (!v::intVal()->validate($start))\r\n\t\t\t{\r\n\t\t\t\tthrow new RuntimeException('Incorrect start value: ' .\r\n\t\t\t\t\tvar_export($start, true));\r\n\t\t\t}\r\n\r\n\t\t\t$limit = 30;\r\n\t\t\t$model = new Application_Model_Comments;\r\n\t\t\t$comments = $model->findAllByNewsId($id, [\r\n\t\t\t\t'limit' => $limit,\r\n\t\t\t\t'start' => $start,\r\n\t\t\t\t'owner_thumbs' => [[55,55]]\r\n\t\t\t]);\r\n\r\n\t\t\t$response = ['status' => 1];\r\n\r\n\t\t\tif (count($comments))\r\n\t\t\t{\r\n\t\t\t\tforeach ($comments as $comment)\r\n\t\t\t\t{\r\n\t\t\t\t\t$response['data'][] = My_ViewHelper::render('post/_comment', [\r\n\t\t\t\t\t\t'user' => $user,\r\n\t\t\t\t\t\t'comment' => $comment,\r\n\t\t\t\t\t\t'post' => $post,\r\n\t\t\t\t\t\t'limit' => 250\r\n\t\t\t\t\t]);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$count = max($post->comment - ($start + $limit), 0);\r\n\r\n\t\t\t\tif ($count > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t$response['label'] = $model->viewMoreLabel($count);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception $e)\r\n\t\t{\r\n\t\t\tMy_Log::exception($e);\r\n\t\t\t$response = [\r\n\t\t\t\t'status' => 0,\r\n\t\t\t\t'message' => $e instanceof RuntimeException ? $e->getMessage() :\r\n\t\t\t\t\t'Internal Server Error'\r\n\t\t\t];\r\n\t\t}\r\n\r\n\t\t$this->_helper->json($response);\r\n\t}", "title": "" } ]
0bc738c1d38579aa19e191f2f9f8665f
Notification the specified resource from storage.
[ { "docid": "47481dca84d970c37f4ada410464c9a0", "score": "0.0", "text": "public function notification()\n {\n $date = date('Y-m-d');\n\n $info = DB::table('rekod')\n ->join('jalans', 'rekod.jalan', '=', 'jalans.id')\n ->join('tamen', 'rekod.taman', '=', 'tamen.id')\n ->select('jalans.jalan', 'tamen.taman', 'rekod.tamat_ccc')\n ->where('notis', $date)\n ->get();\n\n if ($info) {\n # code...\n if ($info->count() > 0) {\n # code...\n $id = DB::table('users')->pluck('id');\n $user = User::find($id);\n Notification::send($user, new notisRekod($info));\n }\n }\n\n }", "title": "" } ]
[ { "docid": "e28f237e92df21077d6469233700611c", "score": "0.64485276", "text": "public function push($storage, Notification $notification);", "title": "" }, { "docid": "939df2bcdda87034cc7366bef7181aa0", "score": "0.57325983", "text": "protected function notify($resource)\n {\n foreach ($this->getListeners() as $listener) {\n $listener->onLoaded($resource);\n }\n }", "title": "" }, { "docid": "023896fc04c46577b8506975df3b0f56", "score": "0.56827295", "text": "public function getNotifications($storage);", "title": "" }, { "docid": "81b9f31df3dcea3f84a7e49505a9b546", "score": "0.5613868", "text": "private function retrieve_notifications_from_storage($user_id)\n {\n }", "title": "" }, { "docid": "24dae383ef96f6cd3c2ae0eb901b0e6e", "score": "0.5317595", "text": "public function update_storage()\n {\n }", "title": "" }, { "docid": "d64e8100798a7d2ed747b99b814909f6", "score": "0.5274898", "text": "public function dismiss($storage, $notificationId);", "title": "" }, { "docid": "35b3541aa771bf78d9fb281f8f7e404d", "score": "0.5242326", "text": "public function markAsReadAction()\n {\n $id = (int)$this->getParam('id');\n $notification = Notification::getById($id);\n\n if (!$notification) {\n throw new Exception('Notification not found');\n }\n\n $this->changeStatus($notification);\n $this->_helper->json([\n \"success\" => true,\n ]);\n }", "title": "" }, { "docid": "d67ff6e711438c520c409e557e958e7a", "score": "0.5240248", "text": "function notifyOldest($resource) {\n\t$items = $resource['items'];\n\t\n\t// clean up old caches\n\t$s = scandir('data');\n\tforeach ($s as $f) {\n\t\tif (substr($f, 0, 7) == 'oldest-' && filemtime('data/'.$f) < time() - 3600 * 24 * 60) {\n\t\t\t@unlink('data/'.$f);\n\t\t}\n\t}\n\t\n\t$oldestDate = $oldestItem = 0;\n\t\n\t// get the oldest unchecked and not already notified todoist id\n\tforeach ($items as $item) {\n\t\tif (!$item['checked'] && !file_exists('data/oldest-'.$item['id'])) {\n\t\t\t$added = strtotime($item['date_added']);\n\t\t\tif ($oldestDate == 0 || $oldestDate > $added) {\n\t\t\t\t$oldestDate = $added;\n\t\t\t\t$oldestItem = $item;\n\t\t\t}\n\t\t}\n\t}\n\t\n\tif ($oldestDate) {\n\t\t// post via telegram\n\t\tsendTelegramMsg('🗓 *Old Todoist Items*: '.$oldestItem['content'].' (from '.date('Y-m-d', $oldestDate).')');\n\t\ttouch('data/oldest-'.$oldestItem['id']);\n\t}\n}", "title": "" }, { "docid": "098925348d663157dbf83a330d29f379", "score": "0.5197844", "text": "public function notification(){}", "title": "" }, { "docid": "46b4f2f84f34004b04bb04b1d5ad2f8f", "score": "0.5160914", "text": "protected function get_stored_notifications()\n {\n }", "title": "" }, { "docid": "7fa7323735ca22c15cfa4866e023dcb7", "score": "0.51449513", "text": "public function setResource($resource);", "title": "" }, { "docid": "58d5142b37ce0114e53d3fe56c2f6c03", "score": "0.51448023", "text": "protected function storeVersion(PuliResource $resource)\n {\n if (null !== $this->changeStream) {\n $this->changeStream->append($resource);\n }\n }", "title": "" }, { "docid": "e90b2ce1980798efd402b4d915841983", "score": "0.5116935", "text": "public function notification(){\n\t\t}", "title": "" }, { "docid": "4e9683b74e39038734164359cb9de526", "score": "0.5112756", "text": "public function notify();", "title": "" }, { "docid": "4e9683b74e39038734164359cb9de526", "score": "0.5112756", "text": "public function notify();", "title": "" }, { "docid": "4e9683b74e39038734164359cb9de526", "score": "0.5112756", "text": "public function notify();", "title": "" }, { "docid": "14df46264a7f7b6a0310af873a487c89", "score": "0.5100668", "text": "public function notify($id);", "title": "" }, { "docid": "14df46264a7f7b6a0310af873a487c89", "score": "0.5100668", "text": "public function notify($id);", "title": "" }, { "docid": "111aff7dc652d737e04484d721049c98", "score": "0.5100532", "text": "public function setResource($resource) { $this->resource = $resource; }", "title": "" }, { "docid": "04aa481434b78563cbc6ede8a72eaa82", "score": "0.50694877", "text": "public function manage_notification()\n {\n }", "title": "" }, { "docid": "4429d104f3dc0839046b4587d330dd40", "score": "0.5044233", "text": "public function markNotificationRead(Request $request) {\n $validator = Validator::make($request->all(), [\n 'id' => 'required|exists:notifications,id',\n ]);\n\n if ($validator->fails()) {\n return $validator->errors()->all();\n }\n\n $notification = Notification::where('id',$request->id)->first();\n if($notification == null || $notification->user != Auth::user()) {\n return \"invalid_permissions\";\n }\n $notification->read = 1;\n $notification->save();\n return \"success\";\n }", "title": "" }, { "docid": "f27743df89d0239f2015c4de268d4d69", "score": "0.5042705", "text": "public function notify() {}", "title": "" }, { "docid": "6fd12939ad43e0b8465f714deb95dc17", "score": "0.50074023", "text": "protected function storeResources()\n {\n try {\n $this->storage->get('version');\n } catch (\\Exception $e) {\n $this->storeVersion();\n }\n\n $resources = $this->resources(['format' => 'json']);\n $this->storage->put('resources', $resources);\n }", "title": "" }, { "docid": "85903cb3f0b0c6a0c62b54e3f5a1a7dd", "score": "0.4970448", "text": "public function markNotificationsAsRead() {\n\n $notificationDetails = Notifications::getUnread(\\Auth::user()->id);\n\n // Make current notifications as read\n event(new NotificationsWereRead($notificationDetails['notifications']));\n }", "title": "" }, { "docid": "169e7ff199fe2d3fd26aa3cd15c56c20", "score": "0.49547625", "text": "protected function notification()\n {\n }", "title": "" }, { "docid": "169e7ff199fe2d3fd26aa3cd15c56c20", "score": "0.49547625", "text": "protected function notification()\n {\n }", "title": "" }, { "docid": "44121a9e8bdfe8a54c5f9513b73a10c2", "score": "0.49500012", "text": "public function handle_notification()\n {\n }", "title": "" }, { "docid": "0cf043d5b505aa95f053d1642a75f42c", "score": "0.49282807", "text": "public function broadcastOn()\n {\n $requisitionStorageId = 2;\n return new PrivateChannel('storage.'.$requisitionStorageId);\n }", "title": "" }, { "docid": "4f61842919d79057a0b7f487870c6453", "score": "0.49162441", "text": "public function markRead()\n {\n $ids = \\Request::get('ids');\n foreach ($ids as $id) {\n $notification = \\Auth::user()->notifications->find($id);\n $notification->read_at = date('Y-m-d H:i:s');\n $notification->save();\n }\n echo json_encode('ok');\n }", "title": "" }, { "docid": "e0c513c82c944008d275fc6f457afb42", "score": "0.49081728", "text": "public function forceDeleted(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "de2d52f9def3aad6f8d87d580d39c262", "score": "0.4887954", "text": "public function update() {\n\t\t$this->storage->updateStorage();\n\t}", "title": "" }, { "docid": "3154c9fcd220c4f6bd7c0fa1c7ad8d7a", "score": "0.48848853", "text": "public function writeToResource(string $identifier, $resource) {\n list($id, $url) = Frontify::extractIdAndToken($identifier);\n $this->getClient()->get(\n $url,\n [\n 'sink' => $resource\n ]\n );\n }", "title": "" }, { "docid": "ffe72767894ad1b7b623947ad042be7f", "score": "0.48785546", "text": "public function getPublicPersistentResourceUri(Resource $resource) {}", "title": "" }, { "docid": "7fb15a8d031da80ff034288633af1c58", "score": "0.4866389", "text": "protected abstract function get_notification();", "title": "" }, { "docid": "4c65e30023bb947387f6e75962467f6f", "score": "0.48356622", "text": "public function notification(){\n\n \n\n\n\n }", "title": "" }, { "docid": "49fb7bb1b6ddc5bf8fc6b836dab973c4", "score": "0.48267522", "text": "public function markAsRead($user, string $notificationId);", "title": "" }, { "docid": "a9fc35ed368703c4e9b683721de14e7f", "score": "0.48250374", "text": "public function notify()\n {\n }", "title": "" }, { "docid": "4f1aa6d73f0e359f1d2e397b473e3b37", "score": "0.4824572", "text": "abstract protected function get_notification();", "title": "" }, { "docid": "fd4b5a55f4172283d12ff6d271b3d605", "score": "0.48162183", "text": "public function isChanged(IResource $resource);", "title": "" }, { "docid": "916b983daa0892c901c7aba5d93d03d2", "score": "0.47868443", "text": "public function enqueue(Notification $notification) {\n\t\t$ret = $this->save($notification);\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "37108bd4e9980edb19beaeabf547e6e2", "score": "0.47777966", "text": "public function lastModified($resourceIdentifier);", "title": "" }, { "docid": "ec39dbdb7a3e7e0d48d91376c0470077", "score": "0.47755364", "text": "public function onNotify(NotificationEvent $event);", "title": "" }, { "docid": "d687c3763366075a4d0f57dad80268d2", "score": "0.47561288", "text": "public function notification()\n {\n\n }", "title": "" }, { "docid": "8e7ba10acdf81722571c5e04895ab091", "score": "0.47478005", "text": "public function registerStorage($property, StorageInterface $storage)\n {\n $this->storage->put($property, $storage);\n }", "title": "" }, { "docid": "161550d3134b1f831deddbbcc361ebcd", "score": "0.47321615", "text": "public function testUpdateNotification()\n {\n }", "title": "" }, { "docid": "ba832a924767aa795afa02d6b61f08c3", "score": "0.47308597", "text": "public function read(StorageInterface $storage);", "title": "" }, { "docid": "5ffb64e8ac5a3ba02f39de298fa08211", "score": "0.4723053", "text": "public function restored(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "0df76315e8ac6b73a5f99ff0a17088bd", "score": "0.4714448", "text": "public function notifyErrorReadingResources(RemoteResource $remoteResource);", "title": "" }, { "docid": "8e5d7bf05e99134a2b42c87e3d05c0bc", "score": "0.46828383", "text": "function _local_storage_notice() {}", "title": "" }, { "docid": "2eb74bc8e6b636b8e63176948cd7eeeb", "score": "0.46810836", "text": "protected function has_stored_notifications()\n {\n }", "title": "" }, { "docid": "0b16dcc71a9e95d2e0dfe72b03cee3a6", "score": "0.4663758", "text": "protected function loadResource($resource): void {\n $this->resource = $resource;\n }", "title": "" }, { "docid": "42e54171e678e68c69f2360da6f403c9", "score": "0.46535245", "text": "protected function get_notification()\n {\n }", "title": "" }, { "docid": "42e54171e678e68c69f2360da6f403c9", "score": "0.46535245", "text": "protected function get_notification()\n {\n }", "title": "" }, { "docid": "42e54171e678e68c69f2360da6f403c9", "score": "0.46531898", "text": "protected function get_notification()\n {\n }", "title": "" }, { "docid": "e2c18b837bf34e8390d7e3de25e6805f", "score": "0.46512347", "text": "function notify();", "title": "" }, { "docid": "c418b9e878ab744bb708781773d8b043", "score": "0.46510068", "text": "public function notifyErrorWritingResources(RemoteResource $remoteResource);", "title": "" }, { "docid": "99b72d7990488697b3f62a5f95070f82", "score": "0.46474427", "text": "public function NotificationRead(){\n\t\tinclude 'connect.php';\n\t\t$req = $bdd->prepare(\"UPDATE user SET Notification=0 WHERE UID=:UID\");\n\t\t$req->execute(array(\n\t\t\t\"UID\"=>$this->getUID()\n\t\t));\n\t}", "title": "" }, { "docid": "dc209fe70e28f7e0bdb372c33da2323b", "score": "0.46464097", "text": "public function notify($event);", "title": "" }, { "docid": "63b4be2743ab09622dd7e94deac1275a", "score": "0.4646314", "text": "private function getIncomingStorageInvoice():StorageInvoice\n {\n return $this->invoice->incomingStorageInvoice;\n }", "title": "" }, { "docid": "9ffc64be8c6db413148a006b70f576d0", "score": "0.463848", "text": "public function lock(Storable $storable): StorageLock;", "title": "" }, { "docid": "341beb6ac3a02384b94a3daacdef68bd", "score": "0.46272486", "text": "public function notifyAction()\n\t{\n\t\tif($this->identity > 0 && $this->_request->isXmlHttpRequest()) {\n\t\t\n\t\t\t$resourceId = (int) str_replace('a_notify_','',$this->_request->getParam('rsrc_id'));\n\t\t\t$user_id = Zend_Auth::getInstance()->getIdentity()->user_id;\n\t\n\t\t\t// Turns off automatic rendering to the template\n\t\t\t$this->_helper->viewRenderer->setNoRender();\n\t \n\t \t// select options\n\t $options = array('rsrc_id'\t=>\t$resourceId,\n\t \t\t\t\t 'user_id'\t=>\t$user_id\n\t \t\t\t);\n\t \n\t if ($notifyId = DatabaseObject_UserResourceNotify::getNotify($this->db, $options)) {\n\t \t// We got a notify, so we must delete it\n\t \t$notify = new DatabaseObject_UserResourceNotify($this->db);\n\t \t$notify->load($notifyId);\n\t \t$notify->delete();\n\t \t\n\t \t$notified = \"false\";\n\t } else {\n\t \t// Nothing was returned so it's a new notify\n\t \t$notify = new DatabaseObject_UserResourceNotify($this->db);\n\t \t$notify->user_id = $user_id;\n\t \t$notify->rsrc_id = $resourceId;\n\t \t$notify->notify_status = DatabaseObject_UserResourceNotify::NOTIFIED_NO ;\n\t \t$notify->save();\n\t\n\t \t$notified = \"true\";\n\t }\n\t \n\t $output = $notified;\n\t \n\t echo $output;\n\t\t} else {\n\t\t\tdie(\"Access Denied\");\n\t\t}\n\t}", "title": "" }, { "docid": "f926d67103b49c3b708938347c012581", "score": "0.46012723", "text": "public function updateResource($resourceId, $record);", "title": "" }, { "docid": "92c7ba99645b593ef4782d62962c98c8", "score": "0.46007055", "text": "public function add($resource)\n {\n if (!isset($this->added[$path = $resource->getPath()])) {\n $this->queue->add($resource);\n $this->added[$path] = true;\n }\n }", "title": "" }, { "docid": "d7e4f2fcd0415798972ac65c9546cf29", "score": "0.45997488", "text": "public function setStorage(StorageInterface $storage);", "title": "" }, { "docid": "476d4732e207a92de0e2d97d86dc1f3a", "score": "0.45991382", "text": "public function setResource($resource)\n {\n $this->resource = $resource;\n }", "title": "" }, { "docid": "476d4732e207a92de0e2d97d86dc1f3a", "score": "0.45991382", "text": "public function setResource($resource)\n {\n $this->resource = $resource;\n }", "title": "" }, { "docid": "476d4732e207a92de0e2d97d86dc1f3a", "score": "0.45991382", "text": "public function setResource($resource)\n {\n $this->resource = $resource;\n }", "title": "" }, { "docid": "2d6cfc6e53eb7773be3c9aed0285e8db", "score": "0.45877248", "text": "public function getStorage();", "title": "" }, { "docid": "2d6cfc6e53eb7773be3c9aed0285e8db", "score": "0.45877248", "text": "public function getStorage();", "title": "" }, { "docid": "1bda57c9e277f84022f4cc35cd0ad4a1", "score": "0.4585431", "text": "public function withResource(\n object $resource\n );", "title": "" }, { "docid": "1c9efe6de0751c8fa15aa3dcf4e42b8d", "score": "0.45833185", "text": "public function testStore()\n {\n $directory = $this->generateDirectory();\n $resource = new LocalResource('test/nested', 'test content');\n $mirror = new ResourceMirror(new EventDispatcher(), 'http://example.com/', $directory);\n $materializedResource = $mirror->store($resource);\n $this->assertTrue($mirror->exists($resource));\n $this->assertGreaterThan(0, filesize($materializedResource->getRealPath()));\n }", "title": "" }, { "docid": "1334698289632827fbb34f96f0a8660b", "score": "0.45822558", "text": "public function refresh() {\n\t\t// Several refresh() calls might happen during one request. If that is the case, the Resource Manager can't know\n\t\t// that the first created resource object doesn't have to be persisted / published anymore. Thus we need to\n\t\t// delete the resource manually in order to avoid orphaned resource objects:\n\t\tif ($this->resource !== NULL) {\n\t\t\t$this->resourceManager->deleteResource($this->resource);\n\t\t}\n\n\t\tparent::refresh();\n\t\t$this->renderResource();\n\t}", "title": "" }, { "docid": "7c698f448e7bb2417dcfeca98abf63bb", "score": "0.45818755", "text": "public function resource()\n {\n return $this->resource;\n }", "title": "" }, { "docid": "7c698f448e7bb2417dcfeca98abf63bb", "score": "0.45818755", "text": "public function resource()\n {\n return $this->resource;\n }", "title": "" }, { "docid": "8159773ba97b465f9d25962ecaeef7b7", "score": "0.45608246", "text": "public function setResource($resource)\n\t{\n\t\t$this->_resource = $resource;\n\t}", "title": "" }, { "docid": "2847cb8338ead21929832e517220713e", "score": "0.45601493", "text": "public function register_notifications();", "title": "" }, { "docid": "0d32f61af25156f384a4dfa78e5c45bd", "score": "0.4559584", "text": "public function notify($notify) {\n\t\tif (!isset($notify->another)) $notify->another = 0;\n\t\tif (!isset($notify->read)) $notify->read = 0;\n\t\t$notify->description = $this->mod->clear($notify->description);\n\t\t$notify->created = time();\n\t\t$sql = \"INSERT INTO `notif` (`userId`, `event`, `another`, `description`, `read`, `created`) VALUES (\n\t\t\t'\".$notify->userId.\"','\".$notify->event.\"','\".$notify->another.\"','\".$notify->description.\"','\".$notify->read.\"','\".$notify->created.\"');\";\n\t\t$result = $this->mod->query($sql);\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "5cbf9f052969bb7f74bb3f6f5c2fb042", "score": "0.45514125", "text": "final public function notify()\n {\n //noop\n }", "title": "" }, { "docid": "4036e5a75462edf3f0d824f080ae7c19", "score": "0.4547007", "text": "public function update(StorageRequest $request, Storage $storage)\n {\n $campos = $request->validated();\n\n $storage = $this->storageRepository->update($campos, $storage);\n\n return $this->showOne(new StorageResource($storage), 200);\n }", "title": "" }, { "docid": "97ae35f821a7890afea0563c648edbdf", "score": "0.45359886", "text": "public function consume( INotificationEvent $event ): void;", "title": "" }, { "docid": "f40cd6d8212d1f6a64a047578c054e17", "score": "0.4525614", "text": "public function store(Storage $storage, Request $request )\n {\n \n $images= new Images;\n \n if ( $request->isXmlHttpRequest() )\n {\n $id = $request->input('eventid');\n $image = $request->file( 'image' );\n $timestamp = $this->getFormattedTimestamp();\n $savedImageName = $this->getSavedImageName( $timestamp, $image );\n $evtname = Event::find($id);\n $savedImageName = 'event/'.$evtname->name.'/'.$savedImageName;\n $imageUploaded = $this->uploadImage( $image, $savedImageName, $storage );\n\n if ( $imageUploaded )\n {\n $images->event_id = $id;\n $images->name = $savedImageName;\n $images->save();\n return 'Uploaded Succesfully';\n }\n return \"uploading failed\";\n }\n\n }", "title": "" }, { "docid": "23735e2311b1c4e83f147426f6de11cb", "score": "0.45182064", "text": "public function set_resource( $resource ) {\n\t\t$this->resource = $resource;\n\t}", "title": "" }, { "docid": "e8b584c91935841edc7ac82148be8a65", "score": "0.45175752", "text": "private function add_notification()\n {\n }", "title": "" }, { "docid": "e8b584c91935841edc7ac82148be8a65", "score": "0.45175752", "text": "private function add_notification()\n {\n }", "title": "" }, { "docid": "f469539285a8b95425a8c4e502094b09", "score": "0.4507669", "text": "public function resource() {\n\t\treturn $this->_resource;\n\t}", "title": "" }, { "docid": "440048b39bf8ab60c81c3f27962faaf1", "score": "0.4505145", "text": "public function deleteResource(PersistentResource $resource);", "title": "" }, { "docid": "d1e1607373cfaaa3c226401bf73dce2a", "score": "0.44963855", "text": "public function setResource(ResourceInterface $resource);", "title": "" }, { "docid": "32150296893b7367de919cb61710d0ad", "score": "0.4496166", "text": "protected function add_notification()\n {\n }", "title": "" }, { "docid": "32150296893b7367de919cb61710d0ad", "score": "0.4496166", "text": "protected function add_notification()\n {\n }", "title": "" }, { "docid": "32150296893b7367de919cb61710d0ad", "score": "0.4496166", "text": "protected function add_notification()\n {\n }", "title": "" }, { "docid": "0083c7518e031454a4d43bb15032d005", "score": "0.4490675", "text": "public function get_resource() {\n\t\treturn $this->resource;\n\t}", "title": "" }, { "docid": "7a20c74078d6a71e59376a778e544ca4", "score": "0.4484748", "text": "protected function _delete()\n {\n $this->_critical(self::RESOURCE_METHOD_NOT_ALLOWED);\n }", "title": "" }, { "docid": "13cdce543d853f3518c9d6f2a3403c8f", "score": "0.44822234", "text": "public function setResource($handle);", "title": "" }, { "docid": "5735a570d6b39304438e79005f89f1d1", "score": "0.44761556", "text": "private function is_notification_persistent(\\Yoast_Notification $notification)\n {\n }", "title": "" }, { "docid": "8907039c0d0713e9d03ba3d79fbfb1e0", "score": "0.44655898", "text": "public function adicionarResource($resource)\n {\n if($resource instanceof Resource)\n {\n $this->resource = $resource;\n\n }\n\n }", "title": "" }, { "docid": "3f62e28ab0c5169772d1768120ad17a9", "score": "0.44650093", "text": "public function testStoreBigFileOnResource(): void\n {\n// file_put_contents($tempFileLocation, 'this is the content');\n\n $file = $this->storageManager->store(1, __DIR__.'/../fixtures/krampuscard_a.pdf');\n\n $tempFileLocation = self::storageDir() . '/' . $file->getKey();\n\n $this->assertEquals(1, $file->getType());\n $this->assertFileExists($tempFileLocation);\n// $this->assertEquals('this is the content', file_get_contents($tempFileLocation));\n $this->assertEquals(md5_file($tempFileLocation), $file->getContentHash());\n $this->assertEquals(25412016, $file->getSize());\n $this->assertEquals('application/pdf', $file->getMimeType());\n// $this->assertEquals('', $file->getKey());\n }", "title": "" }, { "docid": "91deead7c7744c9fd04ce2c3e58f8377", "score": "0.4456863", "text": "public function setResourceCompleted(ResourceObjectInterface $resource);", "title": "" }, { "docid": "1663d13d6aa0b6620bcfeef3ffce81cd", "score": "0.4443678", "text": "public function subsStorageUse($bytes) {\r\n $this->used_storage = $this->used_storage-$bytes;\r\n \r\n \r\n if($this->alert_80 == true && $this->getPercentUsedStorage() < 80) {\r\n $this->alert_80 = false;\r\n }\r\n \r\n if($this->alert_90 == true && $this->getPercentUsedStorage() < 90) {\r\n $this->alert_90 = false;\r\n }\r\n \r\n if($this->alert_100 == true && $this->getPercentUsedStorage() < 100) {\r\n $this->alert_100 = false;\r\n }\r\n \r\n $this->save();\r\n }", "title": "" }, { "docid": "095c238c52be2dc831e6d7f725d0f2c3", "score": "0.44425026", "text": "public function get(string $storage_name, string $key);", "title": "" }, { "docid": "3eb12e0d7d5c7c9f3c8d52edc1304d1e", "score": "0.44321638", "text": "public function notify()\n {\n self::sendNotification($this);\n }", "title": "" }, { "docid": "7aa39f637c406d8570ea3d0e3089fdf2", "score": "0.44303086", "text": "protected function load() {\n $stored = get_transient($this->hash);\n\n if (!is_array($stored)) {\n $stored = array();\n }\n $this->storage = $stored;\n }", "title": "" } ]
a45ec6ba574480a50a96def4a2118d85
Display the specified Purchases.
[ { "docid": "457620f35614d865763d5a55f1f1a7d2", "score": "0.67818385", "text": "public function show($id)\n {\n $purchases = $this->purchasesRepository->findWithoutFail($id);\n\n if (empty($purchases)) {\n Flash::error('Purchases not found');\n\n return redirect(route('purchases.index'));\n }\n\n $purchases->providers_name = $purchases->providers()->first()->name ?? '';\n $purchases->storage_name = $purchases->storage()->first()->name ?? '';\n\n $purchase_products = \\App\\Models\\PurchasesDetail::join('products','purchases_detail.product_id','products.id')\n ->where('purchases_detail.purchases_id',$purchases->id)\n ->select('products.name','quantity')\n ->get();\n\n return view('purchases.show')->with(['purchases' => $purchases, 'purchase_products' => $purchase_products]);\n }", "title": "" } ]
[ { "docid": "cd9e65a559c5b46373b2b3c98c3dcc83", "score": "0.7538405", "text": "public function show(Purchase $purchase)\n {\n //\n \n }", "title": "" }, { "docid": "a87d3ece5ee8159cf1b043e3f62c92a0", "score": "0.7512619", "text": "public function show(Purchase $purchase)\n {\n //\n }", "title": "" }, { "docid": "a87d3ece5ee8159cf1b043e3f62c92a0", "score": "0.7512619", "text": "public function show(Purchase $purchase)\n {\n //\n }", "title": "" }, { "docid": "a87d3ece5ee8159cf1b043e3f62c92a0", "score": "0.7512619", "text": "public function show(Purchase $purchase)\n {\n //\n }", "title": "" }, { "docid": "a87d3ece5ee8159cf1b043e3f62c92a0", "score": "0.7512619", "text": "public function show(Purchase $purchase)\n {\n //\n }", "title": "" }, { "docid": "e69cc5dcef7d29d3a20e7c3bf2417985", "score": "0.7009761", "text": "public function getAllPurchases()\n {\n \t$purchases = $this->purchasesRepo->getAllWithOffering();\n \treturn view('purchases', compact('purchases'));\n }", "title": "" }, { "docid": "e0c468502ad7a6a1031f6183bb427fb6", "score": "0.6774737", "text": "public function show($id)\n {\n $purchases = Purchase::findOrFail($id);\n\n return view('purchases.show')->with(['purchases'=>$purchases]);\n }", "title": "" }, { "docid": "a5d44785d72f3f48b5a61ada2cdd443e", "score": "0.6719752", "text": "public function show($id)\n\t{\n\t\t$purchase = Purchases::findOrFail($id);\n\t\treturn view('purchase.show', compact('purchase'));\n\t}", "title": "" }, { "docid": "d3c0de8e31f179a7a5291cd01273586e", "score": "0.6708158", "text": "public function showPurchase()\n\t{\n\t\t$orders = OrderDetails::latest()\n ->where('user_id', auth()->user()->id)\n ->where('status', '=','paid')\n ->with('product')\n //->with(\"user\")\n ->get();\n\n //return $orders = $orders;\n\n $count = $orders->count();\n\n\n return view('view-shop', compact('orders' ,'count'));\n\t}", "title": "" }, { "docid": "2d295bd8306a983f8ab76109ecc3cac9", "score": "0.66317385", "text": "public function index()\n\t{\n\t\t$purchases = Purchases::latest()->get();\n\t\treturn view('purchase.index', compact('purchases'));\n\t}", "title": "" }, { "docid": "cbc47482135ddc0903bbb7a934cd06d9", "score": "0.66260904", "text": "public function index()\n {\n $purchases = Purchase::get();\n return view ('admin.purchase.index');\n }", "title": "" }, { "docid": "1532a6c65a2e261609606ad458ec5dbf", "score": "0.6618134", "text": "public function show($id)\n {\n $purchase = Purchase::findOrFail($id);\n return view('Orders.purchases.view', [\n 'compra' => $purchase,\n ]);\n }", "title": "" }, { "docid": "39bd5a4c8d8e61e92a4667f844896119", "score": "0.6604702", "text": "public function show(TransPurchase $transpurchase)\n\t{\n\t\treturn view('transaction.purchase.show', compact('transpurchase'));\n\t}", "title": "" }, { "docid": "17b6ad3f73d076d19c1801c0b2bff310", "score": "0.6601349", "text": "public function index()\n {\n return view('purchase', ['purchases' => purchaseRequest::all()]);\n }", "title": "" }, { "docid": "35df6b6606440aff349bd4e1a2997d31", "score": "0.65608495", "text": "public function show($id)\n {\n $purchase = DB::table('purchases as pu')\n ->join('providers as p','pu.provider_id','=','p.id')\n ->join('purchase_details as pd','pu.id','=','pd.purchase_id')\n ->select('pu.id', 'pu.date', 'p.tradename', 'pu.document_type', 'pu.document_serie', 'pu.document_no', 'pu.isActive', DB::raw('sum(pd.quantity * purchase_price) as total'))\n ->where('pu.id', '=', $id)\n ->groupBy('pu.id')\n ->first();\n\n $purchase_details = DB::table('purchase_details as pd')\n ->join('products as pr','pd.product_id','=','pr.id')\n ->select('pr.name as product','pd.quantity','pd.purchase_price','pd.sale_price')\n ->where('pd.purchase_id','=',$id)\n ->get();\n\n return view(\"purchases.show\",[\"purchase\" => $purchase, \"purchase_details\" => $purchase_details]);\n \n }", "title": "" }, { "docid": "1cab3bab60ce2d7e04c6d6bd42b43fd1", "score": "0.65478396", "text": "public function index()\n {\n $purchases = Purchase::orderBy('id', 'desc')->get();\n return view('pages.purchase.index',compact('purchases'));\n }", "title": "" }, { "docid": "97d3a605048969519e095ab3195fd6ee", "score": "0.65280175", "text": "public function index()\n {\n $purchases = Purchase::all();\n return view('pages.purchases.index', ['purchases' => $purchases]);\n }", "title": "" }, { "docid": "e32648a7dbb178b99ab58242803dce18", "score": "0.64442676", "text": "function view(){\n\t\t$sale_number = $this->uri->segment(3);\n\n\t\t$data['purchase'] = $this->m_sale->get_one($sale_number)->row_array();\n\t\t$data['purchdetail'] = $this->m_sale->get_detail($sale_number);\n\n\t\t$this->template->load('inv_template', 'orders/v_view_sale', $data);\n\t}", "title": "" }, { "docid": "ed84a97224bf0a97c0acb549969aaa97", "score": "0.6410504", "text": "public function show(Purchase $purchase)\n {\n return view('admin.purchases.show',compact('purchase'));\n }", "title": "" }, { "docid": "859d9a6ce4e441a9a804e4ce7b66cdcc", "score": "0.63684493", "text": "public function index() {\n //Return all purchases\n\n $action_code = 'purchases_index';\n\n $message = Helper::usercan($action_code, Auth::user());\n if ($message) { return Redirect::back()->with('message', $message); }\n \n $filter = Input::get('filter');\n\n if ($filter) {\n \n $purchases = Purchase::join('shops','purchases.shop_id','=','shops.id')\n ->where('user','=',Auth::user()->username)\n ->whereRAW(\"shops.description like '%\".$filter.\"%'\")\n ->orderBy('purchase_date','desc')\n ->paginate(Config::get('global/default.rows'));\n \n return View::make('purchases.index', compact('purchases'))\n ->with('filter', $filter);\n } else {\n\n $purchases = Purchase::where('user','=',Auth::user()->username)\n ->orderBy('purchase_date','desc')\n ->paginate(Config::get('global/default.rows'));\n\n return View::make('purchases.index', compact('purchases'))\n ->with('filter', $filter);\n }\n }", "title": "" }, { "docid": "c83f569ef85b4b42296571ff8c37e381", "score": "0.6354277", "text": "public function purchase()\n {\n $products = Product::with('type', 'package')->orderBy('created_at', 'desc')->get();\n\n return view('rpurchase', compact('products'));\n }", "title": "" }, { "docid": "a416d1ce701cabba75c94c08ee9bdedb", "score": "0.6319857", "text": "public function index()\n {\n $purchases=Purchase::all();\n return view('admin.purchase.purchasetable',compact('purchases'));\n }", "title": "" }, { "docid": "2c25c84a28d3500f2f06eecffaf8880c", "score": "0.6310312", "text": "public function show($id)\n {\n $data = Purchase::with('supplier', 'reqbranch', 'delbranch', 'product')->find($id);\n return view('purchase.show', compact('data'));\n }", "title": "" }, { "docid": "b9d7ca49c8c195b30b067e7e5fa5ae2b", "score": "0.6300708", "text": "public function index()\n {\n $purchases = Purchase::paginate(25);\n \n if (!empty($purchases[0])) {\n return view('purchases.index')->with(['purchases'=>$purchases]);\n }\n Session::flash('flash_message', 'No records found!');\n return view('purchases.index')->with(['purchases'=>$purchases]);\n }", "title": "" }, { "docid": "204d432f3baabd495be2f3f4d7d9e2a7", "score": "0.6285817", "text": "public function show()\n {\n\n return View::make(\"purchasingForm.list\");\n }", "title": "" }, { "docid": "dcd009e18bbbb990405d71afca306e01", "score": "0.62814987", "text": "public function purchases()\n\t{\n\t\t$EE =& get_instance();\n\n\t\tif(!$member_id = $EE->TMPL->fetch_param(\"member_id\"))\n\t\t\t$member_id = $EE->session->userdata['member_id'];\n\n\t\t$query = $EE->db->query(\"SELECT p.purchase_id as purchase_id,\n\t\t\tp.member_id as member_id,\n\t\t\tp.purchase_id as purchase_id,\n\t\t\tp.item_id as item_id,\n\t\t\tp.txn_id as txn_id,\n\t\t\tp.purchase_date as purchase_date,\n\t\t\tp.note as purchase_note,\n\t\t\tp.item_cost as item_cost,\n\t\t\tt.title as title,\n\t\t\tt.url_title as url_title,\n\t\t\tt.entry_id as entry_id\n\t\tFROM `exp_simple_commerce_purchases` as p\n\t\tLEFT JOIN `exp_simple_commerce_items` as i ON p.item_id = i.item_id\n\t\tLEFT JOIN `exp_channel_titles` as t ON i.entry_id = t.entry_id\n\t\tLEFT JOIN `exp_members` as m ON p.member_id = m.member_id\n\t\tLEFT JOIN `exp_channel_data` as d ON i.entry_id = d.entry_id\n\t\tWHERE p.member_id = '{$member_id}'\n\t\tORDER BY p.purchase_id DESC\");\n\n\t\tif($query->num_rows == 0)\n\t\t{\n\t\t\treturn $EE->TMPL->parse_variables_row($EE->TMPL->tagdata, array(\"no_purchases\" => TRUE));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$result = $query->result_array();\n\t\t\tforeach ($result as $key => $value)\n\t\t\t{\n\t\t\t\t$result[$key][\"license_key\"] = sprintf('%03d', $value[\"item_id\"])\n\t\t\t\t\t. sprintf('%05d', $value[\"member_id\"])\n\t\t\t\t\t. sprintf('%05d', $value[\"purchase_id\"])\n\t\t\t\t\t. sprintf('%02d', 1)\n\t\t\t\t\t. $value[\"purchase_date\"];\n\t\t\t}\n\t\t\treturn $EE->TMPL->parse_variables($EE->TMPL->tagdata, $result);\n\t\t}\n\t}", "title": "" }, { "docid": "1534e56154342a31e0a7d9184474fc61", "score": "0.62560254", "text": "public function purchase_print($purchase_no = NULL)\n {\n $data['title'] = 'POS System';\n $data['master'] = $this->MPurchase_master->get_by_purchase_no($purchase_no);\n $data['details'] = $this->MPurchase_details->get_by_purchase_no($purchase_no);\n $data['company'] = $this->MCompanies->get_by_id($data['master'][0]['company_id']);\n $data['privileges'] = $this->privileges;\n $this->load->view('admin/inventory/purchase/print', $data);\n }", "title": "" }, { "docid": "c6450d323fedd7808c1c76bff88866a1", "score": "0.6255287", "text": "public function show(Cryptocurrency $cryptocurrency)\n {\n \n }", "title": "" }, { "docid": "4b8e8be2d8ca326ba02b766e12f49f65", "score": "0.6227599", "text": "public function index() {\n try {\n $total_purchases = InAppServiceProvider::getTotalPurchases();\n return view('admin.in-app-purchase', ['total_purchases' => $total_purchases]);\n } catch (\\Exception $e) {\n CommonUtility::logException(__METHOD__, $e);\n return $this->responseServerError(trans('messages.error.exception'));\n }\n }", "title": "" }, { "docid": "56cc27f53e09ab125012545d617487ec", "score": "0.62045074", "text": "public function show(purchaseMaster $purchaseMaster)\n {\n //\n }", "title": "" }, { "docid": "586ff489080723194b64a8ea4ff6d3a0", "score": "0.6170929", "text": "public function index()\n {\n return view( 'reports.purchases.index' );\n }", "title": "" }, { "docid": "37b36f3fb84632a5f2fb49ac0bc8da7a", "score": "0.6143665", "text": "public function index()\n {\n\t\t$result['data'] = Purchase::All();\n return view('admin.purchase.all', $result);\n }", "title": "" }, { "docid": "745ca2e38895a43e8e0918c3616911ff", "score": "0.6140624", "text": "public function show($purchaseId)\n {\n $this->authorize('view', [Purchase::class]);\n\n $user = Auth::guard('api')->user();\n\n $purchase = Purchase::with([\n 'store' => function ($query) use ($user) {\n $query->where('facility_id', $user->facility_id);\n },\n 'user',\n 'products',\n ])->findOrFail($purchaseId);\n\n return response($purchase);\n }", "title": "" }, { "docid": "fb1adf4e3d3548ae81565b4a189ace1f", "score": "0.6132982", "text": "public function purchase_preview($purchase_no = NULL)\n {\n $data['title'] = 'POS System';\n $data['menu'] = 'inventory';\n $data['content'] = 'admin/inventory/purchase/preview';\n $data['master'] = $this->MPurchase_master->get_by_purchase_no($purchase_no);\n $data['details'] = $this->MPurchase_details->get_by_purchase_no($purchase_no);\n $data['company'] = $this->MCompanies->get_by_id($data['master'][0]['company_id']);\n $data['privileges'] = $this->privileges;\n $this->load->view('admin/template', $data);\n }", "title": "" }, { "docid": "7b23928e1b30c0ad7b48502520b7eec7", "score": "0.6128758", "text": "public function index()\n {\n $purchases = Parchase::all();\n $purchase = array();\n foreach ($purchases as $purchase_value) {\n if ($purchase_value->parchasedetails->count() == 0) {\n Parchase::destroy($purchase_value->id);\n }\n }\n\n $purchase = ParchaseDetails::all();\n\n $title = \"All purchases\";\n\n return view(\"purchases.purchases\")->with(['purchase'=>$purchase,'title'=>$title]);\n }", "title": "" }, { "docid": "4d28a7fdb552b286e920a0d1c50bb93c", "score": "0.6125567", "text": "public function testPurchasesIsShown()\n {\n // Create a user\n $user = User::create([\n 'password' => Hash::make('password'),\n 'email' => 'example@example.org',\n 'name' => 'John Doe',\n ]);\n\n // Create room\n $room = Room::create([\n 'id' => 1,\n 'name' => 'Test room',\n ]);\n\n // Create sample product\n $product = Product::create([\n 'name' => 'Test product',\n 'color' => 'fff',\n 'quantity' => '1,2,5',\n 'price' => '1232.00',\n ]);\n\n $quantity = 2;\n\n // Buy something\n $beer = new Beer();\n $beer->room = $room->id;\n $beer->quantity = $quantity;\n $beer->product = $product->id;\n $beer->ipAddress = request()->ip();\n $beer->amount = -($product->price * $quantity);\n $beer->save();\n\n // Login that user in\n Auth::login($user);\n\n // Get the page\n $response = $this->get('/rooms/1');\n\n // Asser user is logged in\n $this->assertAuthenticatedAs($user);\n\n // And that we get the expected 200 OK\n $response->assertStatus(200);\n\n // And the purchase shows up, we only check if the price is shown\n $response->assertSee('-'.($product->price * 2).'.00');\n }", "title": "" }, { "docid": "d1ea5513da55e74ac910a66bdf9507b0", "score": "0.6085827", "text": "public function index()\n\t{\n\t\tif (!in_array('viewOrder', $this->permission)) {\n\t\t\tredirect('dashboard', 'refresh');\n\t\t}\n\n\t\t$this->data['page_title'] = 'Manage Purchase';\n\t\t$this->render_template('purchase/index', $this->data);\n\t}", "title": "" }, { "docid": "bdf97c901df4c5260d4b5bfae045052c", "score": "0.6073772", "text": "public function index()\n {\n $data['suppliers'] = Supplier::all();\n $data['branches'] = Branch::all();\n $data['purchases'] = Purchase::orderBy('id', 'DESC')->get();\n return view('purchase.index', $data);\n }", "title": "" }, { "docid": "6660fef104a18806bc8e2191979c1167", "score": "0.60677403", "text": "public function index()\n {\n $purchases = DB::table('purchases as pu')\n ->join('providers as pr','pu.provider_id','=','pr.id')\n ->join('purchase_details as pd','pu.id','=','pd.purchase_id')\n ->select('pu.id', 'pu.date', 'pr.tradename', 'pu.document_type', 'pu.document_serie', 'pu.document_no', 'pu.isActive', DB::raw('sum(pd.quantity * pd.purchase_price) as total'))\n ->orderBy('pu.id','desc')\n ->groupBy('pu.id', 'pu.date', 'pr.tradename', 'pu.document_type', 'pu.document_serie', 'pu.document_no', 'pu.isActive')->get();\n return view('purchases.index', [ \"purchases\" => $purchases ]);\n\n }", "title": "" }, { "docid": "b0b58ad0175b0b15e0020edd90ac5c65", "score": "0.6026109", "text": "public function show(Purchase $purchase)\n {\n $purchase->load('user', 'product');\n return new PurchaseResource($purchase);\n }", "title": "" }, { "docid": "308262ad80ae5d4151236861af049d3d", "score": "0.5999026", "text": "public function index()\n {\n \treturn view('purchase');\n }", "title": "" }, { "docid": "e85bcec4a4cb8a29901049de3e74bd5a", "score": "0.599874", "text": "public function purchases() {\n\t\t\n\t\tglobal $con;\n\t\treturn $con->query(\"\n\t\t\tSELECT * FROM purchases\n\t\t\tJOIN `products` \n\t\t\t\tON products.product_id = purchases.purchase_product \n\t\t\tWHERE purchase_user = $this->user_id\n\t\t\t\tAND purchase_is_payed = FALSE;\n\t\t\");\n\t}", "title": "" }, { "docid": "cce198493ea8ca0e8927fd46e85dc9b2", "score": "0.599564", "text": "public function show(PurchaseOrder $purchaseOrder)\n {\n return ResponseHelper::findSuccess(\n 'Purchase Order',\n new PurchaseOrderResource($purchaseOrder)\n );\n }", "title": "" }, { "docid": "317cbf64cbb26c096cdbaa64be3ab7d8", "score": "0.59856516", "text": "public function show($id)\n {\n $po = PurchaseOrder::findOrFail($id);\n return view('po.view', ['po' => $po]);\n }", "title": "" }, { "docid": "e7f8f6688a8d09ec4f96f3438e90d8ab", "score": "0.5978867", "text": "public function actionIndex()\n {\n $searchModel = new PurchaseSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "1b574b381b624eed2454252c37a95501", "score": "0.5955886", "text": "public function show($id)\n {\n return new PurchaseCollection (\n\t\t\tPurchaseResource::collection(\n \tPurchase::where('donor_id', $id)->get()\n \t)\n\t\t);\n }", "title": "" }, { "docid": "79c8b22806e6ba6dbc947b562d8061a3", "score": "0.5943581", "text": "public function show()\n { \n $id = Auth::user()->id;\n $users = $users = DB::table('purchase')->where('userid', '=', $id)->get();\n return view('myaccedit',['users'=>$users]);\n }", "title": "" }, { "docid": "d3f7865beaf62a0827120cb1f7cdc477", "score": "0.5942533", "text": "public function actionIndex()\n {\n $searchModel = new MyPurchaseSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "7878aad121845a32f1ef037bb84a1bbf", "score": "0.59390205", "text": "public function actionView($id) {\r\n $this->redirect(array('print', 'purchase_id' => $id));\r\n }", "title": "" }, { "docid": "f90e514d273cc6bf014b087a0c079d98", "score": "0.59336317", "text": "public function show()\n {\n return view('billing::show');\n }", "title": "" }, { "docid": "89a4d29ff14174be27fbe5667b0bed3e", "score": "0.5907073", "text": "public function display_billing()\n\t{\n\t\t$this->call_member('display_billing_'.g::$pages[$this->page_index + 2], 'display_billing_hist');\n\t}", "title": "" }, { "docid": "6bda4077bd6670efc9d817ee7538ed4d", "score": "0.589104", "text": "public function index()\n {\n return view('makePurchase');\n }", "title": "" }, { "docid": "e0b476a02b46adf0c6ca61420cd118f4", "score": "0.58676565", "text": "public function show( $products)\n { \n // var_dump($products);die;\n \n }", "title": "" }, { "docid": "2edf6d53a4f20b6d375700d22d05cd4d", "score": "0.5856737", "text": "public function view_purchase_info($id=Null)\n\t{\n\t\tif($res = $this->Purchase_model->purchase_info_by_id($id)){\n\t\t\t$data['title']\t= 'View Purchase Car Details';\n\t\t\t$data['content'] = 'purchase/view_purchase';\n\t\t\t$data['supplier'] = $this->Supplier_model->supplier_by_id($res->supplier_id);\n\t\t\t$data['purchase'] = $res;\n\n\t\t\t$this->load->view('admin/adminMaster', $data);\n\t\t}else{\n\t\t\t$data['error']=\"No Data Find..!\";\n\t\t\t$this->session->set_flashdata($data);\n\t\t\tredirect('purchase/list');\n\t\t}\n\t}", "title": "" }, { "docid": "628f06ae2e7a5dcffd85ff553aae41ee", "score": "0.58374363", "text": "public function edit(PurchasesInvoice $purchasesInv)\n {\n \n return view('dashboard.invoices.purchaseEdit' , compact(\"purchasesInv\"));\n }", "title": "" }, { "docid": "959b315747d8260521fbb2f4dcbaeb71", "score": "0.5834723", "text": "public function actionIndex()\n {\n $searchModel = new PurchaseorderSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "af9b8fbbdcb1214959ae81288a5f09de", "score": "0.5834675", "text": "public function purchaseOrder()\n\t{\n\t\t$data['poResult'] = $this->ProcurementModel->purchaseOrder();\n\t\t$data['cat'] = $this->ProcurementModel->category();\n\t\t$data['pagename'] = \"po\";\n\t\t$data['category'] = \"purchase\";\n\t\t$data['active_menu'] = \"procurement\";\n\t\t$this->load->view('Director',$data);\n\n\t}", "title": "" }, { "docid": "9249d71d2feee575cca22e58b03df606", "score": "0.58324665", "text": "public function show(ProdukPromo $produkPromo)\n {\n //\n }", "title": "" }, { "docid": "9ad8a76abe7c5ad3b70068da9aa6300f", "score": "0.5811936", "text": "public function index()\n {\n $queries = [\n 'code',\n 'distributor',\n 'date',\n 'dept'\n ];\n \n $purchases = Purchase::whereNull('deleted_at');\n foreach($queries as $req){\n \n if(request($req)){\n if($req == \"date\"){\n $date = explode(\" - \", request($req));\n $purchases = $purchases->whereDate('updated_at', '>=', Carbon::parse($date[0]))\n ->whereDate('updated_at', '<=', Carbon::parse($date[1]));\n }elseif($req == \"code\"){\n $purchases = $purchases->where('purchase_number', 'like', '%'.request($req).'%')\n ->orWhere('overhead_number', 'like', '%'.request($req).'%');\n }elseif($req == \"distributor\"){\n $purchases = $purchases->where('distributor_id', 'like', '%'.intval(request($req)).'%');\n }elseif($req == \"dept\"){\n $deptids = array();\n foreach (Purchase::select('id', 'paid')->get() as $item) {\n if ($item->getPrice() != $item->paid) {\n $deptids[] = $item->id;\n }\n }\n $purchases = $purchases->whereIn('id', $deptids);\n }\n $queries[$req] = request($req);\n }\n }\n \n $purchases = $purchases->paginate(25)->appends($queries);\n\n $distributors = DistributionCompany::all();\n return view('theme.template.purchase.purchases', compact('purchases', 'distributors', 'queries'));\n }", "title": "" }, { "docid": "8dff7cea0ceef3046cecc0eb7f75d96d", "score": "0.58066326", "text": "public function index()\n {\n $purchase_orders = PurchaseOrder::all(); \n return view('purchaseOrders.index',['purchase_orders'=>$purchase_orders]); \n }", "title": "" }, { "docid": "e515f92e22ed6b61ca87b1443bbfc95c", "score": "0.58050615", "text": "public function edit($id)\n {\n $purchases = Purchase::findOrFail($id);\n\n return view('purchases.edit')->with(['purchases'=>$purchases]);\n }", "title": "" }, { "docid": "022b97c9a64fac21957a00b22bde3f40", "score": "0.57972026", "text": "public static function formatPurchases($purchases) {\n foreach ($purchases as $purchase) {\n Admin::formatPurchase($purchase);\n }\n\n return $purchases;\n }", "title": "" }, { "docid": "203878f3b9e0153f700c123801938f91", "score": "0.57927454", "text": "public function show(orders $orders)\n {\n //\n }", "title": "" }, { "docid": "b91d9dda1491f7d00629e8bdc2367881", "score": "0.577879", "text": "public function show(Deliveries $deliveries)\n {\n //\n }", "title": "" }, { "docid": "0060fb27019c7f31517e82f1ffd5e246", "score": "0.5771548", "text": "public function show($id)\n {\n return Purchase::with([\n 'vendor', 'user',\n 'stock.item_id',\n 'stock.uom_equiv_id',\n 'stock.uom_id',\n 'stock.operation_id',\n ])->find($id);\n }", "title": "" }, { "docid": "88f27a4009b8d21821fb2461fd58477c", "score": "0.57562566", "text": "public function show(Payment $payment)\n {\n //\n }", "title": "" }, { "docid": "88f27a4009b8d21821fb2461fd58477c", "score": "0.57562566", "text": "public function show(Payment $payment)\n {\n //\n }", "title": "" }, { "docid": "88f27a4009b8d21821fb2461fd58477c", "score": "0.57562566", "text": "public function show(Payment $payment)\n {\n //\n }", "title": "" }, { "docid": "88f27a4009b8d21821fb2461fd58477c", "score": "0.57562566", "text": "public function show(Payment $payment)\n {\n //\n }", "title": "" }, { "docid": "88f27a4009b8d21821fb2461fd58477c", "score": "0.57562566", "text": "public function show(Payment $payment)\n {\n //\n }", "title": "" }, { "docid": "88f27a4009b8d21821fb2461fd58477c", "score": "0.57562566", "text": "public function show(Payment $payment)\n {\n //\n }", "title": "" }, { "docid": "88f27a4009b8d21821fb2461fd58477c", "score": "0.57562566", "text": "public function show(Payment $payment)\n {\n //\n }", "title": "" }, { "docid": "88f27a4009b8d21821fb2461fd58477c", "score": "0.57562566", "text": "public function show(Payment $payment)\n {\n //\n }", "title": "" }, { "docid": "8cb15f9bf1b5ea471b302f4b5393ef67", "score": "0.5751205", "text": "public function show(){\n $data=$this->cart->contents();\n echo \"<pre>\";\n print_r($data);\n echo \"</pre>\";\n\t}", "title": "" }, { "docid": "28d15a5fbac7344f66345c458c8b7a3f", "score": "0.5737008", "text": "public function show($id)\n {\n \n $customer = array();\n\n $data = PurchaseOrder::find($id);\n\n $SupplierDetail = DB::table('zenrolle_purcahse')->join('zenrolle_suppliers','zenrolle_purcahse.supplier','=','zenrolle_suppliers.id')\n ->select('zenrolle_suppliers.name','zenrolle_suppliers.address','zenrolle_suppliers.city','zenrolle_suppliers.country','zenrolle_suppliers.phone','zenrolle_suppliers.email','zenrolle_purcahse.invoice_no','zenrolle_purcahse.reference_no','zenrolle_purcahse.order_date','zenrolle_purcahse.due_date','zenrolle_purcahse.id','zenrolle_purcahse.subtotal','zenrolle_purcahse.total','zenrolle_purcahse.total_discount','zenrolle_purcahse.status','zenrolle_purcahse.total_tax','zenrolle_purcahse.shipping')\n ->where('zenrolle_purcahse.id',$id)->get();\n\n $invoice = PurchaseItem::where('pid',$id)->get();\n\n $customer['invoice'] = $invoice; \n $data->due_balance = $data->total - $data->payment_made;\n \n $pdf = PDF::loadView('purchasing.purchase_order.pdf', compact('data','SupplierDetail','invoice'));\n return $pdf->stream('zenroller.pdf'); \n }", "title": "" }, { "docid": "41c427aee8216f912a26b708c8051d7d", "score": "0.57361025", "text": "public function actionView($id)\n {\n $searchModel = new PurchaseDetailSearch();\n $searchModel->purchase_id = $id;\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('view', [\n 'model' => $this->findModel($id),\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "7873f06ddc5ead4809aef66e61381339", "score": "0.573434", "text": "public function show(Orders $orders)\r\n {\r\n $orders = Orders::all();\r\n $products = Products::all();\r\n\r\n return view('user.transaction', compact('orders'), compact('products'));\r\n }", "title": "" }, { "docid": "17ed3136804d9df86d67de7060e3bd93", "score": "0.573423", "text": "public function show(VendorSubscriptionPlans $vendorSubscriptionPlans)\n {\n //\n }", "title": "" }, { "docid": "2bc893cb1707d34cb97664fc672ea704", "score": "0.5730756", "text": "public function edit($id)\n {\n $purchases = $this->purchasesRepository->findWithoutFail($id);\n\n if (empty($purchases)) {\n Flash::error('Purchases not found');\n\n return redirect(route('purchases.index'));\n }\n\n $providers = \\App\\Models\\Providers::pluck('name','id');\n\n $storages = \\App\\Models\\Storages::pluck('name','id');\n\n $products = \\App\\Models\\Products::pluck('name','id');\n\n $purchase_products = $purchases->purchasesDetails()->select('purchases_detail.id','product_id','quantity')->get();\n\n return view('purchases.edit', compact('purchases','providers','storages','products','purchase_products'));\n }", "title": "" }, { "docid": "5d4757f034eb4d79594789a74ba1bba1", "score": "0.5727233", "text": "public function show(Produk $produk)\n {\n }", "title": "" }, { "docid": "d3c250fd42c546598213c1308d3aa4db", "score": "0.5715987", "text": "public function edit(TransPurchase $transpurchase)\n\t{\n\t\t$products=Product::all()->lists('name','id');\n\t\treturn view('transaction.purchase.edit', compact('transpurchase'),compact('products'));\n\t}", "title": "" }, { "docid": "ec0671ad20f2c16d9ef2d2b89b3c2651", "score": "0.5699174", "text": "public function show($id)\n {\n //\n // $invoice = Invoice::where('id', $id)->first();\n $purchase = Purchase::where('id', $id)->with('purchase_products')->get();\n return $purchase;\n // return ['msg' => 'success'];\n }", "title": "" }, { "docid": "6aa768ec2910c8dca4cce30516ab4c07", "score": "0.5698677", "text": "public function show($id){\n $purchase = Purchase::findOrFail($id);\n return response()->json($purchase);\n }", "title": "" }, { "docid": "d76d349403dd6da5b87126d593210f41", "score": "0.56855434", "text": "public function show(Request $request, $eventId, $id)\n {\n $purchase = Auth::user()->events()->find($eventId)\n ->purchases()->with(['event.buyers.purchases' => function ($query) use ($id) {\n $query->where('purchases.id', '=', $id);\n }])->with('buyers.purchases')->find($id);\n\n if ($request->ajax() || $request->route()->getPrefix() == 'api') {\n return $purchase;\n } else {\n return view('purchases.show', compact('purchase'));\n }\n }", "title": "" }, { "docid": "e440cde4d4b9f9ec10d34f6c329c741e", "score": "0.56739736", "text": "public function edit($id) {\n //Redirect to Company editor\n $action_code = 'purchases_edit';\n\n $message = Helper::usercan($action_code, Auth::user());\n if ($message) {\n return Redirect::back()->with('message', $message);\n }//a return won't let the following code to continue\n //Actual code to execute\n $purchase = Purchase::find($id);\n\n if (is_null($purchase)) {\n return Redirect::route('purchases.index');\n }\n\n $shops = Shop::orderBy('description', 'asc')->lists('description', 'id');\n\n $products_purchases = Product::select('products_purchases.id', 'products.id as product_id', DB::raw($this->dbRaw()), 'products_purchases.amount', 'products_purchases.total')\n ->join('products_descriptors', 'products_descriptors.product_id', '=', 'products.id')\n ->join('descriptors', 'descriptors.id', '=', 'products_descriptors.descriptor_id')\n ->join('products_purchases', 'products.id', '=', 'products_purchases.product_id')\n ->where('products_purchases.purchase_id', '=', $purchase->id)\n ->groupBy('products.id')\n ->groupBy('products_purchases.id')\n ->orderBy('products_purchases.id')\n ->get();\n\n return View::make('purchases.edit', compact('purchase', 'shops', 'products_purchases'));\n // End of actual code to execute\n }", "title": "" }, { "docid": "736dc255d15ca200fa56af729aa9cbf6", "score": "0.5633546", "text": "public function edit($id)\n\t{\n\t\t$purchase = Purchases::findOrFail($id);\n\t\t$transact = new QueryTransact();\n\t\t$suppliers = $transact->getSuppliers();\n\t\treturn view('purchase.edit', compact('purchase', 'suppliers'));\n\t}", "title": "" }, { "docid": "0f2df9676066536ac89818907ec1068d", "score": "0.5625414", "text": "public function index() : void\n {\n $this->PAGE_TITLE = \"Purchases\";\n }", "title": "" }, { "docid": "35b20ffff671634c815c4c1ae4e4edf2", "score": "0.5621169", "text": "public function show($id)\n {\n $payments = Payment::where('seller_id', decrypt($id))->orderBy('created_at', 'desc')->get();\n if ($payments->count() > 0) {\n return view('sellers.payment', compact('payments'));\n }\n\n return back()->with('error', 'No payment history available for this seller');\n }", "title": "" }, { "docid": "fb701bb1a9cfca692ab2341459ab8513", "score": "0.56104463", "text": "public function show(Shippingcost $shippingcost)\n {\n //\n }", "title": "" }, { "docid": "2d7c0e9cc8ac8252a009f792fa57e406", "score": "0.5609139", "text": "public function show(Premiums $premiums)\n {\n //\n }", "title": "" }, { "docid": "a65895706755a3152fe1dee233f6abf3", "score": "0.56058264", "text": "public function show(PurchaseRequestLine $purchaseRequestLine)\n {\n //\n }", "title": "" }, { "docid": "4158ede30c10f8926bbb0e52ca8fa3be", "score": "0.5594648", "text": "public function showinfo($id)\n {\n $purchasing = PurchasingForm::find($id);\n\n return View::make(\"purchasingForm.info\",compact(\"purchasingForm\"));\n }", "title": "" }, { "docid": "a9370408d83449919f2f893b0253041a", "score": "0.5593241", "text": "public function show($id)\n {\n //show a Payment\n $payment = Payment::find($id);\n //show the view and pass the $payment to it\n return view('billing.payment.show', compact('payment'));\n }", "title": "" }, { "docid": "a6f7424664b30385fbc5cf5fde4ed17f", "score": "0.5591476", "text": "public function show($id)\n {\n return view('payment::show');\n }", "title": "" }, { "docid": "f659dc6a17921c366d88bd7348d3e81d", "score": "0.55878234", "text": "public function show(Bdecommerce $bdecommerce)\n {\n //\n }", "title": "" }, { "docid": "889e37f8e2e63babf44c2390cf099b7d", "score": "0.5587271", "text": "public function edit($id)\n {\n $purchase = Purchase::find($id);\n return view('pages.purchase.edit',compact('purchase'));\n }", "title": "" }, { "docid": "3746038e6ebdd5153a862bb8debbd61f", "score": "0.55855906", "text": "public function index(Request $request)\n {\n $this->purchasesRepository->pushCriteria(new RequestCriteria($request));\n $purchases = $this->purchasesRepository->all();\n\n $purchases = $purchases->toArray();\n\n $providers_id = array_column($purchases, 'providers_id');\n $storages_id = array_column($purchases, 'storage_id');\n\n $providers = \\App\\Models\\Providers::whereIn('id',$providers_id)\n ->pluck('name','id');\n\n $storages = \\App\\Models\\Storages::whereIn('id',$storages_id)\n ->pluck('name','id');\n\n return view('purchases.index')\n ->with(['purchases' => $purchases, 'providers' => $providers, 'storages' => $storages]);\n }", "title": "" }, { "docid": "dc5756f5f337846e8eddc015400a65f1", "score": "0.5581265", "text": "public function show($id)\n {\n event(new GetResponsePayment(Order::findOrFail($id)));\n\n $order = Order::findOrFail($id);\n\n return view('orders.summary', compact('order'));\n }", "title": "" }, { "docid": "58062d41c4754db362eb70b4fbc20920", "score": "0.5577066", "text": "public function show($id)\n {\n //\n $purchases=PurchaseTransaction::find($id);\n if(is_null($purchases)){\n return response()->json('not found',404);\n } return response()->json($purchases,200);\n }", "title": "" }, { "docid": "6dd364258d0dfa07b075660d530c92f1", "score": "0.5570865", "text": "public function show()\n {\n\n\n if (session('cart')) {\n // dd(session('cart'));\n $products = collect([]);\n\n foreach (session('cart') as $product) {\n\n $currentProduct = collect([]);\n $currentProduct->push(Product::find($product['id']));\n $currentProduct->push($product['qty']);\n $products->push($currentProduct);\n }\n\n $total = 0;\n foreach ($products as $product) {\n\n $total = $total + ($product[0]['price'] * $product[1]);\n }\n\n $totalProducts = 0;\n foreach ($products as $product) {\n\n $totalProducts = $totalProducts + $product[1];\n }\n } else {\n\n return view('noproducts');\n }\n\n\n if (empty($products)) {\n\n $productsExists = false;\n } else {\n\n $productsExists = true;\n };\n\n return view('checkout', compact('products', 'total', 'totalProducts', 'productsExists'));\n }", "title": "" } ]
dbeb00f9e0746c636d662206a0d75ac5
Used to check validity of HTTP request input. All routes created must validate input using this function. This function will throw the approprate error.
[ { "docid": "755e029fb613713c22ad41eba055d46d", "score": "0.0", "text": "public function check_requirements($requirements) {\n\n\t\tforeach ($requirements as $value) {\n\t\t\tif(!Input::has($value))\n\t\t\t\treturn $value;\n\t\t}\n\t\treturn false;\n\t}", "title": "" } ]
[ { "docid": "8fec22f056342952b42d4c546e9526ed", "score": "0.7407343", "text": "abstract public function validateRequest();", "title": "" }, { "docid": "3adc191da162fae2bc8a90db3d535a55", "score": "0.71823394", "text": "protected function validate(): void\n {\n // validate url\n if (!$this->url) {\n throw new RequestException(\"Setting a URL is mandatory!\");\n }\n \n // validate POST parameters\n if ($this->method == Method::POST && !$this->isPOST) {\n throw new RequestException(\"No parameters or raw body to POST!\");\n } \n if ($this->method != Method::POST && $this->isPOST) {\n throw new RequestException(\"Parameters can't be used unless method is POST\");\n }\n \n // validate SSL\n if (strpos($this->url, \"https\")!==0 && $this->isSSL) {\n throw new RequestException(\"URL requested doesn't require SSL!\");\n }\n }", "title": "" }, { "docid": "b860e67a53f809ee02a53a4141c61b96", "score": "0.7000502", "text": "public function isRequestValid();", "title": "" }, { "docid": "b6af2e08799e96a365aa29326477fb18", "score": "0.6962676", "text": "public function check()\n\t{\n\t\tif ( ! $this->valid())\n\t\t{\n\t\t\tshow_error(\"Invalid Request\");\n\t\t}\n\t}", "title": "" }, { "docid": "1b8ee4e4d8fa7f8aeb93a5425560ac7a", "score": "0.6894656", "text": "public function isValidRequest();", "title": "" }, { "docid": "7c230678af9ce7a12f19c4310b8971f7", "score": "0.68762314", "text": "private function _validateRequest() {\n if (isset($_SERVER['CONTENT_TYPE']) &&\n isset($_SERVER['REQUEST_METHOD']) &&\n ($_SERVER['REQUEST_METHOD'] != 'GET')\n ) {\n if ($_SERVER['CONTENT_TYPE'] != 'application/json') {\n throw new \\Exception('Invalid content type');\n }\n }\n }", "title": "" }, { "docid": "eb9dad743be7248089ee19d02d7c9a4a", "score": "0.68107814", "text": "protected function validateRequest()\n {\n $request = $this->getRequest();\n if (! $request->isXmlHttpRequest()) {\n throw $this->createNotFoundException();\n }\n }", "title": "" }, { "docid": "055b2c281752095e385eee4615c59810", "score": "0.6777039", "text": "function validateRequest()\n{\n global $method, $resource, $resource_id, $allowed_methods, $parameters; // getting the global variables in\n // the function\n if (!(in_array($method, $allowed_methods))) {\n returnError(\"method not allowed\", 405);\n } else if ($resource != \"users\" ) {\n returnError(\"resource not found\", 404);\n } else if (!is_numeric($resource_id)) {\n returnError(\"resource not found\", 404);\n }\n // validate parameters ?\n if ($method == \"POST\" || $method == \"PUT\") {\n if (!validParameters($parameters)) {\n returnError(\"invalid user data \", 400);\n }\n }\n // everything is okay ... handle the request then and call handle request function\n handleRequest();\n}", "title": "" }, { "docid": "7b6580ab664cb7eacb5f430b108157a5", "score": "0.6600917", "text": "public function validateRequest(Request $request);", "title": "" }, { "docid": "9517f946044db47b91198b825b6d525a", "score": "0.6566218", "text": "function validateInput($requestValue, $validParams, $HttpType, $min, $max) {\n $isValid = true;\n if (!validateInputSize($requestValue, $min, $max)) {\n $isValid = false;\n send404(\"Invlaid Number of Inputs\", array(\"Message\" => \"Invalid input lenght\"));\n }\n else if (!validateInputName($validParams, $requestValue)) {\n $isValid = false;\n // Send 404 in validateInputName\n }\n else if (!httpResponseValidatation($HttpType, $requestValue)) {\n $isValid = false;\n // Send 404 in validateInputContents\n }\n return $isValid;\n}", "title": "" }, { "docid": "56068715b410ff69efbe149548d26b20", "score": "0.64608276", "text": "private function _checkRequest() {\n if(Configure::read('debug') < 2 && php_sapi_name() != 'cli') {\n $publicActions = [\n 'users/auth'\n ];\n $server = explode('.', env('SERVER_ADDR'));\n $client = explode('.', env('HTTP_X_FORWARDED_FOR') ?: env('REMOTE_ADDR'));\n $action = $this->request->param('controller') . '/' . $this->request->param('action');\n if(!in_array($action, $publicActions) &&\n !($server[0] == $client[0] && $server[1] == $client[1])\n ){\n throw new NotAllowedRequestException();\n }\n }\n }", "title": "" }, { "docid": "d344ea3f17c7756d33abecb981ffd24d", "score": "0.6424729", "text": "public static function validate_route()\n {\n if (isset($_GET[\"ncortex\"])) {\n $route_info = self::get_request_route_params();\n $point = $route_info[0];\n $function = $route_info[1];\n\n if ($function === null) {\n $function = 'index';\n }\n\n // Get Route Info\n $point = $route_info[0];\n\n $json_route_file_path = CORE_ROOT_PATH . ROUTES_JSON_FILE;\n $routes_content = file_get_contents($json_route_file_path);\n $routes = json_decode($routes_content);\n\n $route_info = null;\n $function_info = null;\n\n foreach ($routes as $name => $info) {\n if ($name === $point) {\n $route_info = $info;\n }\n }\n\n if ($route_info === null) {\n // V1.0.0\n coreErrorController::throw_coreError('ERR_NEOCORTEX_ROUTE_NOT_LISTED');\n }\n\n foreach ($route_info->get_functions as $func => $func_info) {\n if ($function === $func) {\n $function_info = $func_info;\n }\n }\n\n if ($function_info === null) {\n // V1.0.0\n coreErrorController::throw_coreError('ERR_NEOCORTEX_ROUTE_GET_FUNCTION_NOT_LISTED');\n }\n\n // Public requested route is available by config\n if ($route_info->public === true) {\n\n if ($point === 'login') {\n $availability = get_defined_constants(true)['user']['API_LOGIN_ALLOWED'];\n\n if ($availability === false) {\n // V1.0.0\n coreErrorController::throw_coreError('ERR_NEOCORTEX_ROUTE_LOGIN_DISABLED');\n }\n } elseif ($point === 'signup') {\n $availability = get_defined_constants(true)['user']['API_SIGNUP_ALLOWED'];\n\n if ($availability === false) {\n // V1.0.0\n coreErrorController::throw_coreError('ERR_NEOCORTEX_ROUTE_LOGIN_DISABLED');\n }\n }\n }\n\n // Requested method allowed\n $route_allowed_method = $function_info->allowed_HTTP_method;\n if ($route_allowed_method !== $_SERVER[\"REQUEST_METHOD\"]) {\n // V1.0.0\n coreErrorController::throw_coreError('ERR_NEOCORTEX_ROUTE_HTTP_METHOD_FORBIDDEN');\n }\n\n if (isset($function_info->required_HTTP_headers) && is_array($function_info->required_HTTP_headers)) {\n $route_headers = $function_info->required_HTTP_headers;\n\n // Required headers \n foreach ($route_headers as $header) {\n if (!isset($_SERVER[$header])) {\n // V1.0.0\n coreErrorController::throw_coreError('ERR_NEOCORTEX_ROUTE_HTTP_HEADERS_REQUIRED_NOT_FOUND');\n }\n }\n }\n\n if (isset($function_info->required_POST_params) && is_array($function_info->required_POST_params)) {\n $route_post_params = $function_info->required_POST_params;\n\n // Required POST params\n foreach ($route_post_params as $post_param) {\n if (!isset($_POST[$post_param])) {\n // V1.0.0\n coreErrorController::throw_coreError('ERR_NEOCORTEX_ROUTE_HTTP_POST_PARAMS_REQUIRED_NOT_FOUND');\n }\n }\n }\n\n if (isset($route_info->required_GET_params)) {\n $get_len = sizeof($route_info->required_GET_params);\n $get_route_gets = $route_info[2];\n\n if ($get_len != 0) {\n if (!is_array($get_route_gets) || $get_len !== sizeof($get_route_gets)) {\n // V1.0.0\n coreErrorController::throw_coreError('ERR_NEOCORTEX_ROUTE_HTTP_GET_PARAMS_FAILED');\n }\n }\n }\n \n } else {\n // V1.0.0\n coreErrorController::throw_coreError('ERR_NEOCORTEX_ROUTE_HTTP_GET_PARAMS_FAILED');\n }\n }", "title": "" }, { "docid": "83a6841699a9152ebbff68e47e32f1e7", "score": "0.6356501", "text": "public function validateInput($input)\n {\n }", "title": "" }, { "docid": "83a6841699a9152ebbff68e47e32f1e7", "score": "0.6356501", "text": "public function validateInput($input)\n {\n }", "title": "" }, { "docid": "c8a6d11b2fd6e3b5faea4bd09615da9a", "score": "0.6330993", "text": "private function _validRequestCheck()\n\t{\n\t\tglobal $ssi_theme, $ssi_layers;\n\n\t\t// Check on any hacking attempts.\n\t\tif (\n\t\t\tisset($_REQUEST['GLOBALS']) || isset($_COOKIE['GLOBALS'])\n\t\t\t|| isset($_REQUEST['ssi_theme']) && (int) $_REQUEST['ssi_theme'] == (int) $ssi_theme\n\t\t\t|| isset($_COOKIE['ssi_theme']) && (int) $_COOKIE['ssi_theme'] == (int) $ssi_theme\n\t\t\t|| isset($_REQUEST['ssi_layers'], $ssi_layers) && $_REQUEST['ssi_layers'] == $ssi_layers\n\t\t\t|| isset($_REQUEST['context']))\n\t\t{\n\t\t\tdie('No access...');\n\t\t}\n\t}", "title": "" }, { "docid": "44782ca2e2ea5f1e3ae27c0b756c0a82", "score": "0.6320696", "text": "public function validateRequest(Vtiger_Request $request) {\n\t}", "title": "" }, { "docid": "ee57f6e20eb3658cfc0612e468e90c34", "score": "0.6244919", "text": "public function performValidation()\n {\n $this->requireProperties(['openapi', 'info', 'paths']);\n if (!empty($this->openapi) && !preg_match('/^3\\.0\\.\\d+$/', $this->openapi)) {\n $this->addError('Unsupported openapi version: ' . $this->openapi);\n }\n }", "title": "" }, { "docid": "2f232e2671779a197d9aaeb81ddd7b6b", "score": "0.62065065", "text": "public function validate(): void {\n\n $errors = [];\n\n $this->validateNonEmpty('nodeId', $errors);\n\n if ($errors) {\n throw new RequestValidationException($errors);\n }\n }", "title": "" }, { "docid": "929a203af6441ea174b0e9cb0413e116", "score": "0.6097198", "text": "private function validateRequirement()\n\t{\n\t\tif (!$this->checkRequirementRequest()) {\n\t\t\theader(\"HTTP/1.0 404 Not Found\");\n\t\t\texit;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "c92d8fb6a7b2147ec99ec1da6f1f18c9", "score": "0.60922766", "text": "public function validateRequest(Request $r)\n {\n return true;\n }", "title": "" }, { "docid": "fe89758e9807add35a74ffda6c1cde31", "score": "0.6087592", "text": "protected function validateAPIRequest()\n\t{\n\t\t$config = OSMembershipHelper::getConfig();\n\n\t\t// Check and make sure API is enabled\n\t\tif (!$config->enable_api)\n\t\t{\n\t\t\tthrow new Exception(JText::_('API is not enabled on this site'));\n\t\t}\n\n\t\t// Check API Key\n\t\t$apiKey = $this->input->post->getString('api_key');\n\n\t\tif ($apiKey !== $config->api_key)\n\t\t{\n\t\t\tthrow new Exception(sprintf('The provided API Key %s is invalid', $apiKey));\n\t\t}\n\t}", "title": "" }, { "docid": "4265f27df7da25f4268cd1fecdf11a69", "score": "0.60857034", "text": "protected function isValid()\n {\n if (! filter_var($this->url, FILTER_VALIDATE_URL)) {\n throw new Exception(\"The URL {$this->url} is invalid.\");\n }\n }", "title": "" }, { "docid": "fcbadcc42de8484f9028c175b65f2287", "score": "0.6072221", "text": "public function It_should_pass_valid_request()\n\t{\n\t\t$env = self::env();\n\t\t$middleware_app = new Prack_Test_Echo( 200, array( 'Content-type' => 'test/plain', 'Content-length' => '3' ), array( 'foo' ) );\n\t\tPrack_Lint::with( $middleware_app )->call( $env );\n\t}", "title": "" }, { "docid": "f703412f5f6070f50f308aa59be2e80a", "score": "0.60503536", "text": "abstract public function validateRequestObject($request);", "title": "" }, { "docid": "5da213a0d1a98736eb5752a7fbd1e70b", "score": "0.6047071", "text": "private function validateRequest(Request $request){\n if (!$request->has('device')) {\n throw new MissingRequestParameter('No se especifico el parametro device');\n }\n\n if (!$request->has('application')) {\n throw new MissingRequestParameter('No se especifico el parametro application');\n }\n }", "title": "" }, { "docid": "9e823e5072e4f255f477646d833610fc", "score": "0.602424", "text": "private function checkBasics(): bool\n {\n $req = $this->request;\n $rt = $this->route;\n\n if ( strtoupper($req->getHttpMethod()) != $rt->getHttpMethod() )\n {\n self::$noMatchReason = 'Wrong HTTP Method';\n return false;\n }\n\n // Just so as not to waste time, make sure there's a string to match\n //\n if ( empty($rt->getMatchString()) )\n {\n self::$noMatchReason = 'No match string specified in the route';\n return false;\n }\n\n // There had best be a slash somewhere in the URI.\n //\n if ( !str_contains($req->getUri(), '/') )\n {\n self::$noMatchReason = 'No slashes in the requested URI';\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "9b360c994de8238ba1f8cd342197c0df", "score": "0.5996644", "text": "protected function validate()\n {\n try {\n $this->validateContent();\n } catch (\\Exception $e) {\n $this->errors[0] = ErrorFactory::parseError();\n return;\n }\n\n try {\n $this->validateVersion();\n } catch (\\Exception $e) {\n $this->errors[1] = ErrorFactory::invalidRequest();\n }\n\n try {\n $this->validateId();\n } catch (\\Exception $e) {\n // The id is not set or is invalid\n try {\n $this->validateIdExists();\n\n // If validating passes, the id is set but invalid\n $this->errors[1] = ErrorFactory::invalidRequest();\n } catch (\\Exception $e) {\n // The id is not set, the request is a Notification\n }\n }\n\n try {\n $this->validateMethod();\n } catch (\\Exception $e) {\n $this->errors[1] = ErrorFactory::invalidRequest();\n }\n }", "title": "" }, { "docid": "e21cf7259bd3cdd9fde4ed1e6797340f", "score": "0.59784824", "text": "protected function validateRequest()\n {\n $this->request->validate([\n 'stripe.id' => 'required',\n 'travelers.0.email' => 'required',\n 'flight.data.type' => 'required',\n ]);\n }", "title": "" }, { "docid": "a200033664fea086f11282254755b161", "score": "0.59615976", "text": "public function check_route_variables_existency() {\n\n if ( $required = $this->get_keys_of_required_variables()) {\n foreach ( $required as $v ) {\n if ( array_key_exists( $v, $_REQUEST ) ) {\n\n }\n else {\n return [ 'code' => ERROR_REQUIRED_INPUT_IS_MISSING, 'message' => \"required-variable-is-missing $v\" ];\n }\n }\n }\n\n $variables = $this->get_keys_of_variables();\n foreach( array_keys( $_REQUEST ) as $key ) {\n if ( in_array( $key, $variables ) ) {\n\n }\n else {\n return [ 'code' => ERROR_INVALID_INPUT_VARIABLE, 'message' => \"$key is-passed-over-http-but-NOT-in-route-variables\"];\n }\n }\n return OK;\n }", "title": "" }, { "docid": "b3ee9dc68aefe3c147f9d74dc2fe4d9c", "score": "0.5955048", "text": "public function validate($input);", "title": "" }, { "docid": "85351477fca6f546f4ab819856e74eaf", "score": "0.58983916", "text": "public function validateMethod()\n {\n if (!$this->method) {\n throw new WitSDKException('HTTP method not specified.');\n }\n\n if (!in_array($this->method, ['GET', 'POST', 'DELETE'])) {\n throw new WitSDKException('Invalid HTTP method specified.');\n }\n }", "title": "" }, { "docid": "d78987793bcb699c5c5ee65139e89512", "score": "0.5891863", "text": "public function testCanBeUsedForInvalidRequest()\n {\n $request = Request::create('test', 'POST', [], [], [], []);\n $this->assertFalse(DropZoneUploadHandler::canBeUsedForRequest($request));\n }", "title": "" }, { "docid": "5ef1517101c7cae2fd49fadd06c71468", "score": "0.58835375", "text": "public function validate_request() {\n\t\tif (!isset($_GET['option']) || empty($this->option_value = $_GET['option'])) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Only allow the user to request home or blogname\n\t\tif ($this->option_value !== 'home' && $this->option_value !== 'blogname') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "56e39fdb85c1f6cd22bbcf1ef5d5a873", "score": "0.5880376", "text": "public function parseRequest()\n {\n $result = false;\n\n $path = $this->requestPath;\n // Parsing request path to get module, controller, action and other request params\n $data = $this->parseRequestPath($path, $this->routes);\n // Checking request data\n if ($this->checkRequestData($data)) {\n // Checking if url is valid\n if ($this->requestMethod === 'get') {\n // Creating url based on parsed request params\n $path = $this->createUrl($data);\n // Check if generated path is different from actual, then redirect\n if ($path !== $this->requestPath) {\n $url = DS . $path . (empty($this->requestQuery) ? '' : DS . $this->requestQuery);\n redirect($url);\n }\n }\n $segments[ 'data' ] = $data;\n // Searching callback for current request\n try {\n if ($moduleClass = ModulesStaticFactory::create($data[ 'module' ])) {\n $segments[ 'callback' ] = (new $moduleClass($data[ 'controller' ],\n $data[ 'action' ]))->getCallback($data);\n // Generating request object based on request params\n $this->request = new Request($segments);\n $result = true;\n } else {\n throw new RouterException('Module \"' . $data[ 'module' ] . '\" not found!');\n }\n } catch (\\Exception $exception) {\n $this->addErrorMessage($exception->getMessage());\n }\n } else {\n $this->addErrorMessage('Wrong request path!');\n }\n\n $this->handleListeners('afterParseRequest', $result);\n return $result;\n }", "title": "" }, { "docid": "2afc81f1d5db33f2fbdf0df9583b59aa", "score": "0.5880086", "text": "function _validate_request($segments) {\n if (true === $this->config->item('useDBRoute')) {\n $slug = implode('/', $segments);\n require_once( BASEPATH . 'database/DB' . EXT );\n $db = & DB();\n if (!$db->table_exists('routes')) {\n pr(\"Databse table routes does not exist. Please upload table routes/set useDBRoute=false in config file.\");\n } else {\n $RouteFromDB = $db->where('url_alias', $slug)->get('routes')->row();\n if (!empty($RouteFromDB)) {\n $segments = explode('/', $RouteFromDB->url);\n }\n }\n }\n $segments = $this->check_directory($segments);\n return parent::_validate_request($segments);\n }", "title": "" }, { "docid": "ed05863a6d46fbe018c7d86af64e5eab", "score": "0.5879033", "text": "private static function validateRequest($verb, $uri)\n {\n if($verb != 'GET' && !in_array($uri, self::$publicURIs)) {\n\n CSRFMiddleware::validate();\n \n }\n }", "title": "" }, { "docid": "e3c44ac8e27bf151c8631d73b52f1b03", "score": "0.58475894", "text": "public function validate(Request $request)\n {\n $this->ensureValid($request->getParameters());\n }", "title": "" }, { "docid": "8a0f293ac3975e6e7e4d8bd2fd2d349b", "score": "0.5832036", "text": "protected function checkClientRequest(): bool {\n $rules = Config::instance()->get('checker', 'rules');\n \n $result = $this->checkRequestParams($rules);\n \n return $result;\n }", "title": "" }, { "docid": "c6f6d6db2a49aaac5fc6e0a9d25c8943", "score": "0.58304703", "text": "private function validateFormRequest()\n {\n try {\n $this->currentFormRequest->validateResolved();\n } catch (ValidationException $e) {\n $this->errors = $e->errors();\n } catch (AuthorizationException $e) {\n $this->formRequestAuthorized = false;\n }\n }", "title": "" }, { "docid": "4199176b3aa32c69e26cb63c9583f55c", "score": "0.5828679", "text": "public function check()\n\t{\n\t\treturn $this->_request->check();\n\t}", "title": "" }, { "docid": "b091f5721c512d5eb16d6070a54b874f", "score": "0.58067006", "text": "public function validateMethod()\n {\n if (!$this->method)\n {\n throw new PlayerLyncSDKException('HTTP method not specified.');\n }\n\n if (!in_array($this->method, ['GET', 'POST', 'PUT', 'DELETE']))\n {\n throw new PlayerLyncSDKException('Invalid HTTP method specified.');\n }\n }", "title": "" }, { "docid": "0710fa13bc14c54f2109ffaed60f47ec", "score": "0.579881", "text": "public function testApiRequestCheckReturnsFalseOnNonApiRequest()\n\t{\n\t\t$request = Request::create('/home', 'GET');\n\t\t$is_api = $this->invokeMethod($this->router, 'isApiRequest', [$request]);\n\n\t\t$this->assertFalse($is_api);\n\t}", "title": "" }, { "docid": "9459fbc6dbcc2652d151dc2f9233e48f", "score": "0.5796986", "text": "private function validateInput($request) {\n $this->validate($request, [\n\n\n ]);\n }", "title": "" }, { "docid": "f3fbd686532b8023a3fe5e0481fa9769", "score": "0.57896215", "text": "protected function validateRequirements()\n {\n //@todo implement\n }", "title": "" }, { "docid": "0a1d95a76b35d158341b08911889e625", "score": "0.57874376", "text": "abstract protected function validateRequest(JsonApiRequestInterface $request): void;", "title": "" }, { "docid": "c40a4db75d97889e3c34edf6255a09ba", "score": "0.57806045", "text": "protected function validate(){\n $route = $this->input['route'];\n if( ! $this->checkNonce($route) ){\n throw new Loco_error_Exception( sprintf('Ajax %s action requires postdata with nonce',$route) );\n }\n return Loco_mvc_PostParams::get();\n }", "title": "" }, { "docid": "03e03998f31e895b98975561c0e350c7", "score": "0.5750744", "text": "protected function checkParams() {\n\t\tif($this->request_type == 'request_token') {\n\t\t\t$requires = array(\n\t\t\t\t'oauth_consumer_key',\n\t\t\t\t'oauth_signature_method',\n\t\t\t\t'oauth_timestamp',\n\t\t\t\t'oauth_nonce',\n\t\t\t\t'oauth_signature',\n\t\t\t\t'oauth_version',\n\t\t\t);\n\t\t} else if($this->request_type == 'authorize') {\n\t\t\t$requires = array(\n\t\t\t\t'oauth_token',\n\t\t\t\t'oauth_callback',\n\t\t\t);\n\t\t} else if($this->request_type == 'access_token') {\n\t\t\t$requires = array(\n\t\t\t\t'oauth_consumer_key',\n\t\t\t\t'oauth_signature_method',\n\t\t\t\t'oauth_timestamp',\n\t\t\t\t'oauth_nonce',\n\t\t\t\t'oauth_signature',\n\t\t\t\t'oauth_token',\n\t\t\t\t'oauth_version',\n\t\t\t);\n\t\t}\n\n\t\tforeach($requires as $value) {\n\t\t\tif(empty($this->params[$value])) {\n\t\t\t\tthrow new OAuthException('missing required parameter : ' . $value);\n\t\t\t}\n\t\t}\n\n\t\tif(empty($this->url)) {\n\t\t\tthrow new OAuthException(\"missing $this->request_type url .\");\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "23fb0e9f4a2ebe2662705ffdcabe6af1", "score": "0.5750488", "text": "public function permissions_check( WP_REST_Request $request ) {\n\n\t\t$route = $this->get_route( $request->get_param('route') );\n\n\t\tif ( is_wp_error( $route ) ) {\n\t\t\treturn $route;\n\t\t}\n\n\t\t$restricted_route = $route->restricted_route;\n\t\t$request_method = is_array( $route->request_method ) ? $route->request_method : explode( ',', $route->request_method );\n\t\t// $message_format = $route->message_format;\n\t\t$message_param = $route->message_param;\n\t\t$request_hosts = $route->request_hosts;\n\n\t\tif ( 'yes' === $restricted_route ) {\n\n\t\t\tif ( ! in_array( $request->get_method(), $request_method ) ) {\n\t\t\t\treturn new WP_Error( 'rest_forbidden', esc_html__( 'Incorrect request method.', 'sealedbox' ), array( 'status' => 401 ) );\n\t\t\t}\n\n\t\t\t$referring_host = parse_url( wp_get_referer(), PHP_URL_HOST );\n\n\t\t\tif ( ! empty( $referring_host ) && ! empty( $request_hosts ) && ! sbx_validate_host( $referring_host, $request_hosts ) ) {\n\t\t\t\treturn new WP_Error( 'rest_forbidden', esc_html__( 'Referring host not permitted. ' . wp_get_referer(), 'sealedbox' ), array( 'status' => 401 ) );\n\t\t\t}\n\t\t}\n\n\t\tswitch ( $request->get_method() ) {\n\n\t\t\tcase WP_REST_Server::READABLE:\n\t\t\t\tif ( ! array_key_exists( $message_param, $_GET ) ) {\n\t\t\t\t\treturn new WP_Error( 'rest_forbidden', esc_html__( 'Message parameter missing.', 'sealedbox' ), array( 'status' => 401 ) );\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase WP_REST_Server::CREATABLE:\n\t\t\t\tif ( ! array_key_exists( $message_param, $_POST ) ) {\n\t\t\t\t\treturn new WP_Error( 'rest_forbidden', esc_html__( 'Message parameter missing.', 'sealedbox' ), array( 'status' => 401 ) );\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'OPTIONS':\n\t\t\t\treturn true;\n\t\t\t\t$response = array(\n\t\t\t\t\t'success' => true,\n\t\t\t\t\t'statusCode' => 200,\n\t\t\t\t\t'code' => 'jwt_auth_valid_token',\n\t\t\t\t\t'message' => __( 'Token is valid', 'jwt-auth' ),\n\t\t\t\t\t'data' => array(),\n\t\t\t\t);\n\n\t\t\t\t$response = apply_filters( 'sbx_valid_public_key_response', $response ); // , $user, $token, $payload );\n\n\t\t\t\tprint_r($response);\n\n\t\t\t\t// Otherwise, return success response.\n\t\t\t\treturn new WP_REST_Response( $response );\n\t\t}\n\n\t\t$cipher_text = $request->get_param( $message_param );\n\n\t\tif ( empty( $cipher_text ) || strlen( $cipher_text ) < 64 ) {\n\t\t\treturn new WP_Error( 'rest_forbidden', esc_html__( 'Message parameter is missing data.', 'sealedbox' ), array( 'status' => 401 ) );\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a4be621402420b518986f263f4c9a1d2", "score": "0.57345337", "text": "private function isValid( Request $request ) : bool\n {\n return ( $request->query->has( 'query' )\n && $request->query->asString( 'query' )\n && strlen( $request->query->asString( 'query' ) ) > 3\n );\n }", "title": "" }, { "docid": "a8f80dab1558f46cc7c3b3dc7ada08f8", "score": "0.57267076", "text": "public static function validateRequestParameters($request) {\n foreach (self::$type as $param => $type) {\n if ($request[$param] && !self::validateRequestParameter($type, $request[$param])) {\n http_response_code(400);\n throw new Exception('Bad Request');\n }\n }\n }", "title": "" }, { "docid": "1d138937e752ff072827197c926d4f2a", "score": "0.5721077", "text": "protected function validateUserInput()\n {\n // noop - override to use user input validation\n }", "title": "" }, { "docid": "bac62aa473c213f6be2544572ed04985", "score": "0.5720522", "text": "public function checkRequest(): bool {\n $result = false;\n \n $requestType = $this->_router->getRequestType();\n if ($requestType === Router::REQUEST_TYPE_ADMIN) {\n $result = $this->checkAdminRequest();\n } else if ($requestType === Router::REQUEST_TYPE_AJAX) {\n $result = $this->checkAjaxRequest();\n } else if ($requestType === Router::REQUEST_TYPE_CLIENT) {\n $result = $this->checkClientRequest();\n } else {\n $result = false;\n }\n \n return $result;\n }", "title": "" }, { "docid": "59bacda8c3f90c1fd5104ad954ca607e", "score": "0.57021546", "text": "function handle_errors() {\n\tglobal $validation_errors;\n\tif(count($validation_errors) == 0) return true;\n\t\n\tif(called_by_api()) {\n\t\theader(\"HTTP/1.0 400 Bad Request\");\n\t\t\t\n\t\t$errors = array();\n\t\tforeach($validation_errors as $error) {\n\t\t\t$errors[] = new Error($error);\n\t\t}\n\t\tsend($errors);\n\t}\n\t\n\tforeach($validation_errors as $error) {\n\t\ttrigger_error($error, E_USER_WARNING);\n\t}\n\t$trace = debug_backtrace();\n\t$where = \"\";\n\tif(count($trace) > 1) {\n\t\t$where = \" in {$trace[1]['file']}:{$trace[1]['line']} - {$trace[1]['function']}\";\n\t}\n\ttrigger_error(\"exiting{$where} due to previous errors\", E_USER_ERROR);\n}", "title": "" }, { "docid": "5cde54a17936b2ed5bff5a8bee4cd17d", "score": "0.5701529", "text": "private static function validateRequest(Request $r) {\n\t\tself::authenticateRequest($r);\n\n\t\tif (!Authorization::IsSystemAdmin($r[\"current_user_id\"])) {\n\t\t\tthrow new ForbiddenAccessException();\n\t\t}\n\t}", "title": "" }, { "docid": "cde0f1f7b47e6cbc9eec8202a091b232", "score": "0.56960833", "text": "public function query_parameter_is_required()\n {\n $response = $this->get($this->route('/search'));\n $response->assertStatus(400);\n $this->assertSame(\n Controller::ERROR_CODE_VALIDATION,\n $response->getData()->meta->error->error_type\n );\n $this->assertSame(\n 'The data provided was invalid. The request has not been fulfilled.',\n $response->getData()->meta->error->error_message\n );\n $this->assertEmpty($response->getData()->data);\n $this->assertEmpty($response->getData()->links);\n }", "title": "" }, { "docid": "c90f6f922a00bac04f1ce1a0e2ca2130", "score": "0.56944543", "text": "public function invalidRequest ()\n {\n return response ()->json (['statusCode' => 400, 'responseText' => 'Invalid Request'], 400);\n }", "title": "" }, { "docid": "4a829cca8776f423b2d16e1003bd592a", "score": "0.5690969", "text": "function httpResponseValidatation($HttpType, $requestValue) {\n // Connect to DB\n $dataBase = connect_to_db();\n if (!$dataBase) {\n exit(\"Database error!\");\n }\n\n $returnValid = true;\n $keys = array_keys($requestValue);\n if ($HttpType == \"POST\") {\n // No Post validation (Other than user validation)\n }\n else if ($HttpType == \"GET\" || $HttpType == \"PUT\" || $HttpType == \"DELETE\") {\n // The only validation is that the post ID matches the userID\n if (array_key_exists(\"id\", $requestValue)) {\n if (!validateUnequeIndividual($dataBase, $requestValue[\"id\"], \"id\")) {\n $returnValid = false;\n send404(\"Invlaid post given\", array(\"Message\" => \" user \" . $requestValue[\"user_id\"] . \" does not match post request\") );\n }\n }\n }\n return $returnValid;\n}", "title": "" }, { "docid": "4f17ae8d5bc060e4b89359c9c80ed37b", "score": "0.5681316", "text": "public function invalidUrl() {\n exit(\"Invalid URL\");\n }", "title": "" }, { "docid": "7cad2d83e53fc2b4dd38eeb616fc52a8", "score": "0.5678152", "text": "public function validateRequestedInfo($params);", "title": "" }, { "docid": "5b5bbdccd034bb75c1242fc547ff0970", "score": "0.567323", "text": "public function validateBody();", "title": "" }, { "docid": "73c4bd96463808f879b5294cda739a52", "score": "0.5660267", "text": "private function validate()\n {\n $shopId = Tools::getValue('shop');\n if (!$this->validateModuleConfigs($shopId) ||\n !$this->validateOrderStates($shopId) ||\n !$this->validateModuleTables() ||\n !$this->validateModuleHooks()\n ) {\n http_response_code(400);\n }\n }", "title": "" }, { "docid": "35fa44c3eda504a3047ec26a1323858c", "score": "0.5655571", "text": "public function validate ()\n\t{\n\t\t$required = [\n\t\t\t'address',\n\t\t\t'name',\n\t\t\t'email',\n\t\t\t'phone'\n\t\t];\n\n\t\t$this->_validateRequired($required);\n\t\t$this->_validateDepth();\n\t}", "title": "" }, { "docid": "627e698a2fa399f86a66b7f74739698a", "score": "0.5648363", "text": "public static function throwBadRequestError(): void\n {\n header('HTTP/1.1 400 Bad Request');\n die(\"UserKit request error: Bad request.\");\n }", "title": "" }, { "docid": "0bdc277d9d45e46017dee1133d6761dc", "score": "0.56474924", "text": "public static function validateHttpRequest($valid_type = 'all',$redirect = '/')\n\t{\n\t\t$valid_type = strtolower($valid_type);\n\t\tswitch($valid_type){\n\t\t\tcase 'all':\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'get':\n\t\t\t\tif(sizeof($_POST)){\n\t\t\t\t\theader(\"Location: \".$redirect);\n\t\t\t\t\texit;\t\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'post':\n\t\t\t\tif(sizeof($_GET)){\n\t\t\t\t\theader(\"Location: \".$redirect);\n\t\t\t\t\texit;\t\n\t\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t\tcase 'none':\n\t\t\t\tif(sizeof($_GET) || sizeof($_POST)){\n\t\t\t\t\theader(\"Location: \".$redirect);\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "09bcfcb0b04046129ff0b1629b7d0d3c", "score": "0.5647116", "text": "private function checkRequest()\n {\n $checkError = Utility::validator($_POST, [\n 'email' => 'required|email',\n 'password' => 'required'\n ]);\n\n if($checkError !== false)\n {\n $errors = $checkError->errors();\n return $errors->firstOfAll();\n\n }\n return false;\n \n }", "title": "" }, { "docid": "ff9b2e8fab7596bd07e2009b7f52bcaf", "score": "0.56431395", "text": "private function processRequest() {\n\t\t\n\t\tif(is_null(self::$routes)) { // Route array is not set\n\t\t\t$route = $this->getRouteFn(self::$base_request);\n\t\t\tif(is_callable($route)) {\n\t\t\t\t$routes[self::$base_request] = $route; // Build a single $routes array\n\t\t\t}\n\t\t} else {\n\t\t\t$routes = self::$routes;\n\t\t}\n\t\t\n\t\tif(is_array($routes) and array_key_exists(self::$base_request, $routes)) {\n\t\t\t\n\t\t\t// Autoset some magic\n\t\t\t$magic = array(\n\t\t\t\t'post'\t\t\t=> $_POST ? $_POST : NULL,\n\t\t\t\t'get'\t\t\t=> $_GET ? $_GET : NULL,\n\t\t\t\t'request'\t\t=> $_REQUEST ? $_REQUEST : NULL,\n\t\t\t\t'safe_post'\t\t=> $_POST ? safe_html($_POST) : NULL,\n\t\t\t\t'safe_get'\t\t=> $_GET ? safe_html($_GET) : NULL,\n\t\t\t\t'safe_request'\t=> $_REQUEST ? safe_html($_REQUEST) : NULL,\n\t\t\t\t'auth_token' \t=> self::getAuthToken()\n\t\t\t);\n\n\t\t\tif(count(self::$vars) > 0) {\n\t\t\t\tself::$vars = array_merge(self::$vars, $magic);\n\t\t\t} else {\n\t\t\t\tself::$vars = $magic;\n\t\t\t}\n\t\t\t\n\t\t\t// Only call a valid route fn\n\t\t\tif(!self::$prevented_route and is_callable($routes[self::$base_request])) {\n\t\t\t\t$routes[self::$base_request]($this);\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t$this->issue404();\n\t\t\t$this->request = $this->request_array;\n\t\t}\n\t\t\n\t\tif($this->template == 404) {\n\t\t\tself::$route = 404;\n\t\t}\n\t\tself::setCond('404', $this->template == 404); // is_404 binding\n\t\t\n\t\tif(self::$vars['pre_doctitle']) {\n\t\t\t$stock_doctitle = self::$vars['doctitle'];\n\t\t\tself::$vars['doctitle'] = self::$vars['pre_doctitle'];\n\t\t\tif($stock_doctitle) {\n\t\t\t\t self::$vars['doctitle'] .= ' - ' . $stock_doctitle;\n\t\t\t}\n\t\t}\n\t\t\n\t\tself::$template_used = $this->template;\n\t\t\n\t}", "title": "" }, { "docid": "163655b75714f53244d3ff38582ab02f", "score": "0.56373787", "text": "private function checkRequirementRequest()\n\t{\n\t\t$defintion = array(\n\t\t\t\t'project_id' => FILTER_SANITIZE_NUMBER_INT,\n\t\t\t\t'week' => array(\n\t\t\t\t\t'filter' => FILTER_VALIDATE_REGEXP,\n\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t'regexp' => '/^\\d{4}-\\d{2}-\\d{2}$/'\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t\t'requirement' => array(\n\t\t\t\t\t'filter' => FILTER_VALIDATE_REGEXP,\n\t\t\t\t\t'options' => array(\n\t\t\t\t\t\t\t'regexp' => '/^\\d+(\\.\\d+)?$/'\n\t\t\t\t\t\t)\n\t\t\t\t\t),\n\t\t\t);\n\n\t\t$this->request = filter_input_array(INPUT_POST, $defintion);\n\n\t\tif (!isset($this->request)) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->request = array_map(\"trim\", $this->request);\n\n\t\tif (!isset($this->request['project_id']) || $this->request['project_id'] == \"\") {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (empty($this->request['week'])) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!isset($this->request['requirement']) || $this->request['requirement'] == \"\") {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "45f7ea0161c86de0002691853c8485b8", "score": "0.5633383", "text": "protected function validateMethod()\n {\n if (!empty($this->requiredMethod)) {\n $requestedMethod = Request::getMethod();\n\n if (!is_array($this->requiredMethod)) {\n $this->requiredMethod = array($this->requiredMethod);\n }\n\n if (!in_array(strtoupper($requestedMethod), $this->requiredMethod)) {\n throw new Exception\\Exception('This service does not accept the ' . $requestedMethod . ' method');\n }\n }\n }", "title": "" }, { "docid": "fbf611a5459e58e3c4787a48b3534257", "score": "0.5630191", "text": "public function ValidateRequest(Request $request)\n {\n $this->validate($request, [\n 'number' => 'required',\n 'name' => 'required'\n ]);\n }", "title": "" }, { "docid": "f62e351e14d11238bf0ddda71a48a455", "score": "0.5619462", "text": "private function validateInput($request) {\n $this->validate($request, [\n 'goal_name' => 'required|max:60',\n 'description' => 'required|max:200'\n ]);\n }", "title": "" }, { "docid": "456131dbed8ece98b2ac44b54acf9cb5", "score": "0.56123406", "text": "protected function cheakApiRequestValidity(){\n\t\t\n\t\t// We use this function as getallheaders() is not available on nginx\n\t\tfunction parseRequestHeaders() {\n\t\t $headers = array();\n\t\t foreach($_SERVER as $key => $value) {\n\t\t if (substr($key, 0, 5) <> 'HTTP_') {\n\t\t continue;\n\t\t }\n\t\t $header = str_replace(' ', '-', ucwords(str_replace('_', ' ', strtolower(substr($key, 5)))));\n\t\t $headers[$header] = $value;\n\t\t }\n\t\t return $headers;\n\t\t}\n\t\t\n\t\t$headers = parseRequestHeaders();\n\t\tif (isset($headers['X-Kem-Signature'])){\n\t\t\t$signature = $headers['X-Kem-Signature'];\n\t\t} else {\n\t\t\t$signature = null;\n\t\t}\n\t\tif (isset($headers[\"X-Kem-Salt\"])){\n\t\t\t$salt = $headers[\"X-Kem-Salt\"];\n\t\t} else {\n\t\t\t$salt = null;\n\t\t}\n\t\tif (isset($headers[\"X-Kem-User\"])){\n\t\t\t$client = $headers[\"X-Kem-User\"];\n\t\t} else {\n\t\t\t$client = null;\n\t\t}\n\t\t\n\t\t\n\t\t$body = Yii::app()->request->getRawBody($client);\n\t\t\n\t\tif ($this->public_api) {\n\t\t\t\n\t\t\t// This is a public api call\n\t\t\t\n\t\t\t$user = User::model()->findByPk($client);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tif ($this->require_authentification){\n\t\t\t\t// This call requires authentification\n\t\t\t\t#TODO Implement\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t// This is a public api call with no authentification\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t} else {\n\t\t\t// Private APIs require full authentication with KEM secret\n\t\t\t// Generate a signature combining salt+body+secret\n\t\t\t$concatenated_string = $salt . $body . Yii::app()->params['inbound_api_secret'];\n\t\t\t$generated_signature = hash('sha512', $concatenated_string);\n\t\t\n\t\t\t// Check if the generated signature on both sides match.\n\t\t\t// NEVER trust that simple mechanism for any sensitive transaction (anything regarding payments)\n\t\t\tif ($generated_signature === $signature && $client === Yii::app()->params['inbound_api_user']){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn false;\n\t\t\n\t}", "title": "" }, { "docid": "3b93302913719dc02350f3366fe68268", "score": "0.5611814", "text": "public static function checkRequest() {\n return\n (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) &&\n (isset($_SERVER['HTTP_CF_IPCOUNTRY'])) &&\n (isset($_SERVER['HTTP_CF_RAY'])) &&\n (isset($_SERVER['HTTP_CF_VISITOR']));\n }", "title": "" }, { "docid": "95784a62b96d6a7dd915ff2b85b325ad", "score": "0.5608622", "text": "private function validateRequest($request) {\n\t\t\t$accept = [\n\t\t\t\t'jobId', 'action', 'table', 'fieldSeparator', 'fieldWrapper', 'updateExistingRecords', 'fastMode',\n\t\t\t\t'csvHasHeaderRow', 'csvMap',\n\t\t\t];\n\n\t\t\t$tempRequest = [];\n\t\t\tforeach ($request as $key => $value) {\n\t\t\t\tif(!in_array($key, $accept)) continue;\n\t\t\t\t$tempRequest[$key] = $value;\n\t\t\t}\n\n\t\t\t// validate tempRequest\n\t\t\t\n\t\t\t// action must be one of route keys, else set to 1st key (or to 'job-progress-ui' if a jobId is provided)\n\t\t\tif(!in_array($tempRequest['action'], array_keys($this->routes)))\n\t\t\t\t$tempRequest['action'] = empty($tempRequest['jobId']) ? key($this->routes) : 'job-progress-ui';\n\n\t\t\t// handle tab fieldSeparator\n\t\t\tif(in_array(strtolower(trim($tempRequest['fieldSeparator'])), ['\\t', 'tab']))\n\t\t\t\t$tempRequest['fieldSeparator'] = \"\\t\";\n\n\t\t\tif(empty($tempRequest['fieldSeparator'])) $tempRequest['fieldSeparator'] = ',';\n\n\t\t\t// updateExistingRecords must be boolean\n\t\t\t$tempRequest['updateExistingRecords'] = ($tempRequest['updateExistingRecords'] == 'true');\n\t\t\t\n\t\t\t// fastMode must be boolean, and true is allowed only for super admin\n\t\t\t$tempRequest['fastMode'] = ($tempRequest['fastMode'] == 'true' && getLoggedAdmin());\n\n\t\t\t// csvHasHeaderRow must be boolean\n\t\t\t$tempRequest['csvHasHeaderRow'] = (!empty($tempRequest['csvHasHeaderRow']) && strtolower($tempRequest['csvHasHeaderRow']) != 'false');\n\n\t\t\t$this->request = $tempRequest;\n\n\t\t\t// if user has no access to specified table, this would exit with error\n\t\t\t$this->checkTable();\n\t\t}", "title": "" }, { "docid": "155305f1fdc326df36e9555ebceb4d6a", "score": "0.55950654", "text": "private function checkRequired()\n {\n $errors = array();\n foreach ($this->required as $key) {\n if (! $this->issetGet($key)) {\n $errors[] = $key;\n }\n }\n\n // Ignored because no manual method to get these\n // @codeCoverageIgnoreStart\n if ($this->method == 'POST') {\n foreach ($this->requiredPost as $key) {\n if (! $this->issetPost($key)) {\n $errors[] = $key;\n }\n }\n }\n // @codeCoverageIgnoreEnd\n\n if ($errors) {\n throw new \\InvalidArgumentException(get_called_class() . ' requires fields: ' . implode(', ', $errors));\n }\n\n }", "title": "" }, { "docid": "aa3fdf13f7c9485134f24cd3f9a0a437", "score": "0.5587227", "text": "public function validateRequestObject($request){\n return true;\n }", "title": "" }, { "docid": "b26c1bff9287da848a5313cb420fbacb", "score": "0.5580884", "text": "protected function performValidation()\n {\n $this->requireProperties(['url']);\n }", "title": "" }, { "docid": "cfa887da3cd00eca379ce304ca312ffc", "score": "0.557914", "text": "public function isHttpError(): bool\n {\n return $this->getValue() >= 400 && $this->getValue() < 600;\n }", "title": "" }, { "docid": "d0fd5576116bb545dbdd22cad4ced9cc", "score": "0.5579022", "text": "public function validate()\n\t{\n\t\tif ( $this->getUrlCancel() === null || !Helper::isValidURL( $this->getUrlCancel() ) ) {\n\t\t\tthrow new IPG_Exception( 'Invalid Cancel URL' );\n\t\t}\n\t\tif ( $this->getUrlNotify() === null || !Helper::isValidURL( $this->getUrlNotify() ) ) {\n\t\t\tthrow new IPG_Exception( 'Invalid Notify URL' );\n\t\t}\n\t\tif ( $this->getUrlOk() === null || !Helper::isValidURL( $this->getUrlOk() ) ) {\n\t\t\tthrow new IPG_Exception( 'Invalid Success URL' );\n\t\t}\n\t\tif ( empty( $this->getAmount() ) || !Helper::isValidAmount( $this->getAmount() ) ) {\n\t\t\tthrow new IPG_Exception( 'Invalid amount param' );\n\t\t}\n\t\tif ( empty( $this->getOrderId() ) ) {\n\t\t\tthrow new IPG_Exception( 'Invalid OrderId param' );\n\t\t}\n\t\tif ( empty( $this->getCurrency() ) ) {\n\t\t\tthrow new IPG_Exception( 'Invalid currency' );\n\t\t}\n\t\tif ( $this->getConfig()->getMerchantName() === null ) {\n\t\t\tthrow new IPG_Exception( 'Invalid merchant name' );\n\t\t}\n\n\t\tif ( !empty( $this->getOrderLink() ) && !Helper::isValidURL( $this->getOrderLink() ) ) {\n\t\t\tthrow new IPG_Exception( 'Invalid OrderLink param' );\n\t\t}\n\n\t\ttry {\n\t\t\t$this->getConfig()->validate();\n\t\t}\n\t\tcatch ( \\Exception $ex ) {\n\t\t\tthrow new IPG_Exception( 'Invalid Config details: ' . $ex->getMessage() );\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d525200835a590a3e4c1e3750b73351e", "score": "0.5578756", "text": "function verifyRequiredParams($required_fields) {\n $error = false;\n $error_fields = \"\";\n $request_params = array();\n $request_params = $_REQUEST;\n // Handling PUT request params\n if ($_SERVER['REQUEST_METHOD'] == 'PUT') {\n $app = \\Slim\\Slim::getInstance();\n parse_str($app->request()->getBody(), $request_params);\n }\n\t// Handling PUT request params\n if ($_SERVER['REQUEST_METHOD'] == 'DELETE') {\n $app = \\Slim\\Slim::getInstance();\n parse_str($app->request()->getBody(), $request_params);\n }\n foreach ($required_fields as $field) {\n if (!isset($request_params[$field]) || strlen(trim($request_params[$field])) <= 0) {\n $error = true;\n $error_fields .= $field . ', ';\n }\n }\n\n if ($error) {\n // Required field(s) are missing or empty\n // echo error json and stop the app\n $response = array();\n $app = \\Slim\\Slim::getInstance();\n $response[\"error\"] = true;\n $response[\"message\"] = 'Required field(s) ' . substr($error_fields, 0, -2) . ' is missing or empty';\n echoRespnse(400, $response);\n $app->stop();\n }\n}", "title": "" }, { "docid": "84b9a54a2eb4f4f379d260927ec9b99c", "score": "0.55754054", "text": "public function testHotelsInvalidRequestInputsTest()\n {\n $response = $this->json('GET', '/api/CrazyHotel', [\n 'from_date' => '2020-08-01',\n 'adults_number' => 2\n ]);\n\n $response->assertStatus(422);\n }", "title": "" }, { "docid": "5067bedb137d290e1d35c008241c15f7", "score": "0.5571657", "text": "function verifyRequiredParams($required_fields) {\n $error = false;\n $error_fields = \"\";\n $request_params = array();\n $request_params = $_REQUEST;\n // Handling PUT request params\n if ($_SERVER['REQUEST_METHOD'] == 'PUT') {\n $app = \\Slim\\Slim::getInstance();\n parse_str($app->request()->getBody(), $request_params);\n }\n\tif ($_SERVER['REQUEST_METHOD'] == 'DELETE') {\n $app = \\Slim\\Slim::getInstance();\n parse_str($app->request()->getBody(), $request_params);\n }\n foreach ($required_fields as $field) {\n if (!isset($request_params[$field]) || strlen(trim($request_params[$field])) <= 0) {\n $error = true;\n $error_fields .= $field . ', ';\n }\n }\n\n if ($error) {\n // Required field(s) are missing or empty\n // echo error json and stop the app\n $response = array();\n $app = \\Slim\\Slim::getInstance();\n $response[\"error\"] = true;\n $response[\"message\"] = 'Required field(s) ' . substr($error_fields, 0, -2) . ' is missing or empty';\n echoRespnse(400, $response);\n $app->stop();\n }\n}", "title": "" }, { "docid": "5494c5613c78d1fd3c9deed7091e1d1c", "score": "0.5568789", "text": "private function validateProviderApi()\n {\n if ($this->providerApi == null || !filter_var($this->providerApi, FILTER_VALIDATE_URL)) {\n\n if (APP_ENV === 'development') {\n throw new InvalidArgumentException('Invalid Provider API');\n }\n\n die('Invalid Provider API');\n }\n }", "title": "" }, { "docid": "49e44bcfede62f7e9488eef0d1cd0a6f", "score": "0.5565195", "text": "function doRequest($route)\n{\n $url = $_SERVER['REQUEST_URI'];\n $method = $_SERVER['REQUEST_METHOD'];\n\n $currentRoute = explode(\"api/\", $url)[1];\n $currentRoute = explode(\"?\", $currentRoute)[0];\n $wantedRoute = explode(\"/\", $route['route']);\n if (explode(\"/\", $currentRoute)[0] !== $wantedRoute[0]) {\n return false;\n }\n if ($method !== $route['method']) {\n $GLOBALS['goodRouteBadMethod'] = 1;\n return false;\n }\n\n $GLOBALS['goodRouteBadMethod'] = 0;\n\n if ($currentRoute !== \"\") {\n $params = [];\n $query = [];\n $parts = explode('/', $route['route']);\n $routeParts = explode(\"/\", $currentRoute);\n\n if (isset($parts[1])) {\n if (isset($routeParts[1])) {\n if ($parts[1][0] === ':') {\n $params[substr($parts[1], 1)] = $routeParts[1];\n }\n } else {\n return false;\n }\n }\n\n if (strpos($url, '?')) {\n $queryAll = explode('?', $url)[1];\n $queryArgs = explode('&', $queryAll);\n\n foreach ($queryArgs as $arg) {\n if (strpos($arg, '=')) {\n $query[explode('=', $arg)[0]] = explode('=', $arg)[1];\n }\n }\n }\n\n $data = file_get_contents('php://input');\n if (strlen($data)) {\n\n $data = json_decode($data, true);\n } else {\n $data = NULL;\n }\n\n if (isset($route['permissions'])) {\n $check = call_user_func($route['permissions'], [\n \"params\" => $params,\n \"query\" => $query,\n \"data\" => $data\n ]);\n if (!$check) {\n exit;\n }\n }\n call_user_func($route['function'], [\n \"params\" => $params,\n \"query\" => $query,\n \"data\" => $data\n ]);\n\n return true;\n }\n\n return false;\n}", "title": "" }, { "docid": "98b1811a3e579cc883cea2921aa8163b", "score": "0.5564237", "text": "protected function handleInvalid()\n {\n }", "title": "" }, { "docid": "54d1f21050eb486b6c714f913d2bc3c7", "score": "0.555895", "text": "public function verify_request() {\n // We don't need anything for verification as of now so will just set request headers here\n $this->request_headers = array_change_key_case($this->_head_args, CASE_LOWER);\n $headers = $this->request_headers;\n\n /*\n * Convert all keys to lower case as some server manipulates header keys\n * Header keys should always be treated as case insensitive\n */\n $headers = array_change_key_case($headers, CASE_LOWER);\n \n if(!isset($headers['device-id']) || !isset($headers['device-type']) || !isset($headers['device-timezone'])) {\n $this->auth_error_msg(HEADERS_MISSING, get_response_message(110), BAD_REQUEST);\n }\n \n //extract($headers);\n /*\n * Check device_type value\n */\n $supported_device_types = array(1, 2, 3); //1:iOs, 2:Android, 3:Web/Desktop\n if(!in_array($headers['device-type'], $supported_device_types) || $headers['device-type'] == \"\" || $headers['device-timezone'] == \"\" || $headers['device-id'] == \"\") {\n $this->auth_error_msg(INVALID_HEADER_VALUE, get_response_message(113), BAD_REQUEST);\n }\n \n }", "title": "" }, { "docid": "48d342d9e82f38ebff57418dcbc4c6fc", "score": "0.55528116", "text": "public function validateRequest($route, $request) {\n\n if( !$this->validation_form )\n return;\n\n $form = App::make($this->validation_form);\n\n // if the validation fails, return an error response\n try {\n\n $form->validate($request, $form->getRules($route));\n\n } catch(InputValidationException $e) {\n\n return Response::json(array('status' => 'failed', 'errors' => explode('|', $e->getMessage())), $e->getCode());\n\n }\n\n }", "title": "" }, { "docid": "03d6cd3bc6400064fc748c66346e92a7", "score": "0.5550571", "text": "public function parse_request() {\n\t\n\t\t// Version 0.1 -- GET Requests only. \n\t\tif( $this->is_get_request() ) {\n\t\t\n\t\t\t// get the sanitized get array\n\t\t\t$this->request = $this->get_sanitized_REQ();\n\t\t\t\n\t\t\t// initialize our APIAccess object\n\t\t\t$this->access = new APIAccess($this->request);\n\t\t\t\n\t\t\t// check that GET parameters are set\n\t\t\tif( is_array($this->request) ) {\n\t\t\t\t\n\t\t\t\t// try to execute the method\n\t\t\t\t$this->try_request_action(); \n\t\t\t\n\t\t\t// no GET parameters? forbidden!\n\t\t\t} else {\n\t\t\t\t$this->set_response_forbidden();\n\t\t\t}\n\t\t} else {\n\t\t\t$this->set_response_forbidden();\n\t\t}\n\t}", "title": "" }, { "docid": "7603d5dc7590a15d7651574ba6c8672d", "score": "0.5548863", "text": "public function validate()\n {\n if ((1 != $this->getOperationType()) || empty($this->dictionary)) {\n throw new ValidateException('Invalid contract arguments.');\n }\n }", "title": "" }, { "docid": "a86016e70ebcae433a665d4af3d0ba7a", "score": "0.5546137", "text": "public function isValidRequest()\n\t\t{\n\t\t\t$action = Tools::getValue('action');\n\t\t\t$valid = false;\n\t\t\tif ($this->isClassMethod('private', $action, 'BoxdropAjaxRequest'))\n\t\t\t{\n\t\t\t\t$this->action = Tools::getValue('action');\n\t\t\t\t$this->valid_request = true;\n\t\t\t\t$valid = true;\n\t\t\t}\n\t\t\t\n\t\t\tif (!$this->isPOSTRequest())\n\t\t\t\t$valid = false;\n\n\t\t\treturn $valid;\n\t\t}", "title": "" }, { "docid": "13c1d356d4b80c7e730a734b41ac99a2", "score": "0.553815", "text": "public function validateResolved()\n {\n Log::debug('SocketRequest->validateResolved');\n $instance = $this->validator ?: $this->getValidatorInstance();\n if ($instance->fails()) {\n throw new ValidationException($instance);\n }\n }", "title": "" }, { "docid": "da5a4e2c705ca2a8abe345a613bf67b5", "score": "0.5532122", "text": "public function attempt(Request $request)\n {\n return $this->validateBody($request);\n }", "title": "" }, { "docid": "59b9ae9ae19c0d5405928f76366f2cd8", "score": "0.5522542", "text": "private function validateRemoteSpecificFields(): void\n {\n $missingParameterMessage = \"You need to send '%s' in the request.\";\n\n if (!isset($_POST['db_user']) || !$_POST['db_user']) {\n throw new \\RestBadRequestException(\n sprintf(_($missingParameterMessage), 'db_user')\n );\n }\n\n if (!isset($_POST['db_password']) || !$_POST['db_password']) {\n throw new \\RestBadRequestException(\n sprintf(_($missingParameterMessage), 'db_password')\n );\n }\n\n if (!isset($_POST['centreon_folder']) || !$_POST['centreon_folder']) {\n throw new \\RestBadRequestException(\n sprintf(_($missingParameterMessage), 'centreon_folder')\n );\n }\n }", "title": "" }, { "docid": "7eb56d1d119dd9a74536c8bb219d190d", "score": "0.5518856", "text": "public function is_valid() {\n\t\tif (!$this->url || !is_string($this->url)) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// quick check url is roughly a valid http request: ( http://blah/... ) \n\t\tif (! preg_match('/^http(s)?:\\/\\/[a-z0-9-]+(\\.[a-z0-9-]+)*(:[0-9]+)?(\\/.*)?$/i', $this->url)) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// all good!\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3db4adb7c8e12e9392e8baa2974b14c5", "score": "0.55131435", "text": "public function valid()\n {\n\n if ($this->container['endpoint'] === null) {\n return false;\n }\n if ($this->container['type'] === null) {\n return false;\n }\n $allowed_values = [\"importer\", \"api\"];\n if (!in_array($this->container['type'], $allowed_values)) {\n return false;\n }\n if ($this->container['data_source'] === null) {\n return false;\n }\n if ($this->container['method'] === null) {\n return false;\n }\n $allowed_values = [\"GET\", \"POST\", \"PUT\", \"DELETE\"];\n if (!in_array($this->container['method'], $allowed_values)) {\n return false;\n }\n if ($this->container['name'] === null) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "f327a3cbf3bcf7a842954db727de126f", "score": "0.5510535", "text": "private function validationCheck(Request $request)\n {\n // Checks to make sure the user has the admin role.\n if (!Auth::user()->hasAdminRole())\n {\n throw ValidationException::withMessages(['Admin Rights needed' => 'The user does not have perission to create a module.']);\n }\n\n // Validates the request. Makes sure the content is valid.\n $request->validate([\n 'name' => ['required', 'string', 'max:255'],\n 'description' => ['required', 'string']\n ]);\n\n // If there is no professor assigned.\n if (!in_array(ModuleRole::where('name', 'professor')->first()->id, $request->input()))\n {\n throw ValidationException::withMessages(['Assign Fail' => 'A Professor must be assigned to the module.']);\n }\n }", "title": "" }, { "docid": "72e906d6cf4da2353dfa0af6f14e9bcd", "score": "0.5507523", "text": "public function index()\n {\n return $this->internalError('Invalid URL');\n }", "title": "" }, { "docid": "b1837ab7d585863e2488d54a36b66c28", "score": "0.5507105", "text": "protected function validate()\n {\n $errors = \"\";\n\n $this->validateParameter($this->token, \"token\", $errors);\n $this->validateParameter($this->street_number, \"street_number\", $errors);\n $this->validateParameter($this->street_name, \"street_name\", $errors);\n $this->validateParameter($this->street_suffix, \"street_suffix\", $errors);\n $this->validateParameter($this->city, \"city\", $errors);\n $this->validateParameter($this->state, \"state\", $errors);\n $this->validateParameter($this->zipcode, \"zipcode\", $errors);\n\n if (!empty($errors)) {\n throw new MissingParameterException($errors);\n }\n }", "title": "" }, { "docid": "aa166b07f9415dadeae3597617ab65a1", "score": "0.55044", "text": "function verifyRequiredParams($required_fields) {\n $error = false;\n $error_fields = \"\";\n $request_params = array();\n $request_params = $_REQUEST;\n // Handling PUT request params\n if ($_SERVER['REQUEST_METHOD'] == 'PUT') {\n $app = \\Slim\\Slim::getInstance();\n parse_str($app->request()->getBody(), $request_params);\n }\n foreach ($required_fields as $field) {\n if (!isset($request_params[$field]) || strlen(trim($request_params[$field])) <= 0) {\n $error = true;\n $error_fields .= $field . ', ';\n }\n }\n\n if ($error) {\n // Required field(s) are missing or empty\n // echo error json and stop the app\n $response = array();\n $app = \\Slim\\Slim::getInstance();\n $response[\"error\"] = true;\n $response[\"message\"] = 'Campos necessários: (' . substr($error_fields, 0, -2) . ') não informado(s).';\n echoResponse(200, $response);\n $app->stop();\n }\n}", "title": "" }, { "docid": "c151e4c0868900103c652b978c15c4e5", "score": "0.5503945", "text": "public function validateForPagination()\n {\n if ($this->request->getMethod() !== 'GET') {\n throw new SDKException('You can only paginate on a GET request.', 720);\n }\n }", "title": "" }, { "docid": "d8595a414563508ca7d83c4c00540705", "score": "0.55023456", "text": "public static function validateInput($input = null): bool\n {\n\n return is_readable($input) || filter_var($input, FILTER_VALIDATE_URL);\n\n\n }", "title": "" }, { "docid": "ba9ee9b8847419e82161b411b79c1219", "score": "0.54922163", "text": "protected function is_valid_request()\n {\n $string_utilities = $this->get_string_utilities_class();\n if ($string_utilities::getInstance()->isNullOrEmpty($this->get_request_id()))\n {\n $this->add_error(Translation::get('RequestIdIsRequired'));\n \n return false;\n }\n \n $data_manager = $this->get_data_manager_class();\n $request = $data_manager::retrieve_by_id(Request::class, (int) $this->get_request_id());\n if (! $request)\n {\n $this->add_error(Translation::get('RequestNotFound'));\n \n return false;\n }\n \n return true;\n }", "title": "" } ]
993581f7c43a032f64a2953045d8183c
Extends the entity structure
[ { "docid": "eb0ae7a35ca90802fbd9dd66a2616657", "score": "0.0", "text": "public static function onEntityStructure(Manager $em, Structure &$structure): void\n {\n if (!in_array($structure->shortName, self::ENTITIES))\n {\n return;\n }\n\n $structure->columns['hlmod_rules_url'] = ['type' => Entity::STR, 'maxLength' => 255,\n 'default' => ''];\n }", "title": "" } ]
[ { "docid": "ba3f4f9075a0e76ea3b5e2d2e6fe5d44", "score": "0.67061245", "text": "private function _setupNewEntity() {\n\t\t$this->jabAnnotationInfo = new JabAnnotationEntity([\"managedEntity\"=>true, \"type\"=>\"CUSTOM\"]);\n\t\t$this->extendedClass = 'Jab\\Config\\EntityBundle\\Entity\\JabEntity';\n\t\t$this->fields = new ArrayCollection();\n\t\t$this->associations = new ArrayCollection();\n\t\t$this->inheritanceType = ClassMetadataInfo::INHERITANCE_TYPE_NONE;\n\t\t$this->reflectionInfo = [\n\t\t\t'use_statements' => [\n\t\t\t\t'orm' => 'Doctrine\\ORM\\Mapping',\n\t\t\t\t'jab' => 'Jab\\Config\\EntityBundle\\Annotation'\n\t\t\t]\n\t\t];\n\t}", "title": "" }, { "docid": "4d80f34e4ae8357b324f349a59cb0eb0", "score": "0.6551406", "text": "public function modifyEntity()\n {\n $table = $this->getEntity();\n\n if (!$table->hasField($this->getParameter('left_field'))) {\n $table->addField(array(\n 'name' => $this->getParameter('left_field'),\n 'type' => 'INTEGER'\n ));\n }\n\n if (!$table->hasField($this->getParameter('right_field'))) {\n $table->addField(array(\n 'name' => $this->getParameter('right_field'),\n 'type' => 'INTEGER'\n ));\n }\n\n if (!$table->hasField($this->getParameter('level_field'))) {\n $table->addField(array(\n 'name' => $this->getParameter('level_field'),\n 'type' => 'INTEGER'\n ));\n }\n\n if ('true' === $this->getParameter('use_scope') && !$table->hasField($this->getParameter('scope_field'))) {\n $table->addField(array(\n 'name' => $this->getParameter('scope_field'),\n 'type' => 'INTEGER'\n ));\n }\n }", "title": "" }, { "docid": "86119253f1798392be7cfd3a45de144b", "score": "0.62716734", "text": "public function getEntity(){}", "title": "" }, { "docid": "3b779f615921715ac69a2de0deb2cc16", "score": "0.62220275", "text": "public function entity();", "title": "" }, { "docid": "64cbcf3862e29137e492cbef75cc4a01", "score": "0.6203699", "text": "public function _entity() {\n }", "title": "" }, { "docid": "282056c543f43502484334e525c4dec6", "score": "0.6116091", "text": "abstract public function getEntity();", "title": "" }, { "docid": "bd21a45a5756557893ed7f9f62d934d0", "score": "0.6022901", "text": "private function loadEntityData(){\n $this->loadEntityName();\n $this->loadFields();\n }", "title": "" }, { "docid": "d8784694559563702e77a575eda4ec38", "score": "0.5915253", "text": "public function getEntity();", "title": "" }, { "docid": "73b31739f6a250632821f8026130d86a", "score": "0.5906055", "text": "public function __construct()\n {\n parent::__construct(self::table, self::columns, self::entity_class_name);\n }", "title": "" }, { "docid": "73b31739f6a250632821f8026130d86a", "score": "0.5906055", "text": "public function __construct()\n {\n parent::__construct(self::table, self::columns, self::entity_class_name);\n }", "title": "" }, { "docid": "35515cabe7baccfc878318f278cc6f67", "score": "0.5893854", "text": "function export_structure(){\n //\n //Fill the database skeleton with entities derived from table comments\n //of the information schema database \n $this->entities = $this->get_entities();\n //\n //Return this structure \n return $this;\n }", "title": "" }, { "docid": "f44a3b806f94ae7dace6c6bed4c768f5", "score": "0.57177216", "text": "private function _entity()\n {\n return new Entity();\n }", "title": "" }, { "docid": "f44a3b806f94ae7dace6c6bed4c768f5", "score": "0.57177216", "text": "private function _entity()\n {\n return new Entity();\n }", "title": "" }, { "docid": "f44a3b806f94ae7dace6c6bed4c768f5", "score": "0.57177216", "text": "private function _entity()\n {\n return new Entity();\n }", "title": "" }, { "docid": "f44a3b806f94ae7dace6c6bed4c768f5", "score": "0.57177216", "text": "private function _entity()\n {\n return new Entity();\n }", "title": "" }, { "docid": "61172e55a0c3794d3fd9c0fa8d08f51e", "score": "0.5670338", "text": "function entityConfig() {\n\n if (empty($this->directive['dataBaseID']))\n $this->directive['dataBaseID'] = 'default';\n\n parent::entityConfig();\n\n $this->directive['tableName'] = NULL;\n $this->directive['whereClause'] = NULL;\n $this->directive['viewField'] = NULL;\n $this->directive['dataField'] = NULL;\n $this->directive['orderBy'] = NULL;\n $this->directive['groupBy'] = NULL;\n $this->directive['vfSeparator'] = ', ';\n }", "title": "" }, { "docid": "546f91269944e16558562f678d49bc9e", "score": "0.5658995", "text": "public function __clone()\n {\n // if the entity has no identity do nothing, do NOT throw an exception\n if (!$this->id) {\n return;\n }\n \n // otherwise proceed\n \n // unset identifier\n $this->setId(0);\n \n // reset workflow\n $this->setWorkflowState('initial');\n \n // reset upload fields\n $this->setImageUpload1(null);\n $this->setImageUpload2(null);\n $this->setImageUpload3(null);\n $this->setImageUpload4(null);\n \n $this->setCreatedBy(null);\n $this->setCreatedDate(null);\n $this->setUpdatedBy(null);\n $this->setUpdatedDate(null);\n \n // handle related objects\n // prevent shared references by doing a deep copy - see (2) and (3) for more information\n // clone referenced objects only if a new record is necessary\n $collection = $this->images;\n $this->images = new ArrayCollection();\n foreach ($collection as $rel) {\n $this->addImages(clone $rel);\n }\n \n // clone categories\n $categories = $this->categories;\n $this->categories = new ArrayCollection();\n foreach ($categories as $c) {\n $newCat = clone $c;\n $this->categories->add($newCat);\n $newCat->setEntity($this);\n }\n \n // clone attributes\n $attributes = $this->attributes;\n $this->attributes = new ArrayCollection();\n foreach ($attributes as $a) {\n $newAttr = clone $a;\n $this->attributes->add($newAttr);\n $newAttr->setEntity($this);\n }\n }", "title": "" }, { "docid": "641ae9be9cff1c486aa142617ce35598", "score": "0.5645205", "text": "public function Add($entity) {\r\n }", "title": "" }, { "docid": "89dbe508e793e68b0ad4cb87dbcd9ac2", "score": "0.5604546", "text": "function include_entities() {\n $this->include_entities = true;\n return $this;\n }", "title": "" }, { "docid": "397f21688e99d8142210099034e01efd", "score": "0.5598656", "text": "public function __construct()\n {\n parent::__construct();\n\n if (get_class($this) !== 'MY_Model') {\n $datas = get_object_vars($this);\n\n if (! empty($datas)) {\n foreach ($datas as $key => $value) {\n if (! empty($value)) {\n Manager()->stackMap(get_class($this), 'Entity.'.$value, $key);\n $this->$key = null;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "384aefa75c91526dd23961c17b7857e7", "score": "0.5597926", "text": "protected function childEntities()\n {\n return null;\n }", "title": "" }, { "docid": "ab6edc86ffc5751c78943eb29bf18cac", "score": "0.5582255", "text": "private function hEntity($std){\n\n }", "title": "" }, { "docid": "e5aa1d52731935e45b54713055517eeb", "score": "0.55773854", "text": "public function Add($entity) {\n }", "title": "" }, { "docid": "e5aa1d52731935e45b54713055517eeb", "score": "0.55773854", "text": "public function Add($entity) {\n }", "title": "" }, { "docid": "c6701ca860cbf1c6b51190c5e9422f94", "score": "0.5561074", "text": "public function Add($entity)\n {\n }", "title": "" }, { "docid": "c6701ca860cbf1c6b51190c5e9422f94", "score": "0.5561074", "text": "public function Add($entity)\n {\n }", "title": "" }, { "docid": "9ad66576151b163be1710c8b34366ad5", "score": "0.5554363", "text": "public function createEntity();", "title": "" }, { "docid": "9ad66576151b163be1710c8b34366ad5", "score": "0.5554363", "text": "public function createEntity();", "title": "" }, { "docid": "9ad66576151b163be1710c8b34366ad5", "score": "0.5554363", "text": "public function createEntity();", "title": "" }, { "docid": "38109234e2cfd94cd353f4b26c657799", "score": "0.5543781", "text": "private function eEntity($std){\n\n $this->tomador = (object) array_merge((array) $this->tomador, (array) $std);\n \n\n }", "title": "" }, { "docid": "e6e598dd6fb299d06a090b932c6c2d2e", "score": "0.5531827", "text": "public function __construct()\n {\n parent::__construct();\n //$this->author = new AuthorEntity;\n\n }", "title": "" }, { "docid": "5926512559f6d83f7277dc326d0e3ea1", "score": "0.5530107", "text": "protected function _initialize()\n {\n $this->metadata()->setTablename('egresso');\n $this->metadata()->setPackage('Model');\n \n # nome_do_membro, nome_da_coluna, tipo, comprimento, opcoes\n \n $this->metadata()->addField('usuarioId', 'usuario_id', 'int', 11, array('primary' => true, 'notnull' => true, 'foreign' => '1', 'onUpdate' => 'RESTRICT', 'onDelete' => 'RESTRICT', 'linkOn' => 'id', 'class' => 'Usuario'));\n $this->metadata()->addField('anoIngresso', 'ano_ingresso', 'int', 11, array('notnull' => true));\n $this->metadata()->addField('anoConclusao', 'ano_conclusao', 'int', 11, array('notnull' => true));\n $this->metadata()->addField('qtdFilhos', 'qtd_filhos', 'int', 11, array('default' => '0'));\n $this->metadata()->addField('telefone', 'telefone', 'varchar', 15, array());\n $this->metadata()->addField('endereco', 'endereco', 'varchar', 500, array());\n $this->metadata()->addField('isDadoPublico', 'is_dado_publico', 'boolean', 1, array('notnull' => true, 'default' => '1'));\n $this->metadata()->addField('empregoId', 'emprego_id', 'int', 11, array('primary' => true, 'notnull' => true, 'foreign' => '1', 'onUpdate' => 'RESTRICT', 'onDelete' => 'RESTRICT', 'linkOn' => 'id', 'class' => 'Emprego'));\n $this->metadata()->addField('localidadeId', 'localidade_id', 'int', 11, array('primary' => true, 'notnull' => true, 'foreign' => '1', 'onUpdate' => 'RESTRICT', 'onDelete' => 'RESTRICT', 'linkOn' => 'id', 'class' => 'Localidade'));\n $this->metadata()->addField('turmaId', 'turma_id', 'int', 11, array('primary' => true, 'notnull' => true, 'foreign' => '1', 'onUpdate' => 'RESTRICT', 'onDelete' => 'RESTRICT', 'linkOn' => 'id', 'class' => 'Turma'));\n $this->metadata()->addField('estadoCivilId', 'estado_civil_id', 'int', 11, array('notnull' => true, 'foreign' => '1', 'onUpdate' => 'RESTRICT', 'onDelete' => 'RESTRICT', 'linkOn' => 'id', 'class' => 'EstadoCivil'));\n $this->metadata()->addField('alterouDado', 'alterou_dado', 'boolean', 1, array('default' => '1'));\n\n \n $this->metadata()->addRelation('egressohasredesociais', Lumine_Metadata::ONE_TO_MANY, 'EgressoHasRedeSocial', 'usuarioId', null, null, null);\n }", "title": "" }, { "docid": "52ceb982bcd757c7702d20cf8bdbef5a", "score": "0.55065936", "text": "abstract public function setEntity($entity);", "title": "" }, { "docid": "85f3d1bc4eafe7eee067b4a7d832127b", "score": "0.5489496", "text": "protected function defineFormElementToDomainEntityMapping() {\n\n\t}", "title": "" }, { "docid": "ea5a1cd148924dd09b425796b76d0013", "score": "0.5475903", "text": "function __construct($name, entity $parent) {\n //\n //The parent constructor\n parent::__construct($name, \"attribute\", $parent);\n }", "title": "" }, { "docid": "cc15e268d7f19475118f1a3872565cf8", "score": "0.5454127", "text": "public function entities();", "title": "" }, { "docid": "40654bb524ca0ce9dfc2d1f1a01d85f4", "score": "0.5446643", "text": "function __construct($entity = null) { \n $this->entity = $entity;\n }", "title": "" }, { "docid": "8043eb3bdc2a5c5dab82bb9c899c2d91", "score": "0.54300135", "text": "public function __clone()\n {\n // if the entity has no identity do nothing, do NOT throw an exception\n if (!$this->id) {\n return;\n }\n \n // otherwise proceed\n \n // unset identifier\n $this->setId(0);\n \n // reset workflow\n $this->setWorkflowState('initial');\n \n // reset upload fields\n $this->setMyFile(null);\n $this->setMyFileMeta([]);\n $this->setMyFileUrl('');\n \n $this->setCreatedBy(null);\n $this->setCreatedDate(null);\n $this->setUpdatedBy(null);\n $this->setUpdatedDate(null);\n \n \n // clone categories\n $categories = $this->categories;\n $this->categories = new ArrayCollection();\n foreach ($categories as $c) {\n $newCat = clone $c;\n $this->categories->add($newCat);\n $newCat->setEntity($this);\n }\n }", "title": "" }, { "docid": "183408f8e4c2b2b97bcb7d652ef7acce", "score": "0.5424959", "text": "public function newEntity()\n {\n $entityName = $this->getEntity();\n $entity = new $entityName();\n\n foreach ($this->subEntities as $subEntityName => $sub_entity) {\n $subEntityInstance = new $sub_entity['class']();\n\n $entity->addSubEntity($subEntityName, $subEntityInstance, true);\n }\n return $entity;\n }", "title": "" }, { "docid": "aacfea51d11c625949acbe15fd3615f9", "score": "0.5414814", "text": "public function newEntity(): EntityContract;", "title": "" }, { "docid": "c34339131ebf4afc4da59e28628a4313", "score": "0.54038197", "text": "public function includeEntities()\n {\n $this->query['include_entities'] = false;\n\n return $this;\n }", "title": "" }, { "docid": "f6f1f11572f4804849d58df82135a504", "score": "0.5394219", "text": "function entity_wrapper($entity) {\n return entity_metadata_wrapper(entity_type($entity), $entity);\n}", "title": "" }, { "docid": "20ab129788aa132285616f8e896d11a5", "score": "0.53796947", "text": "public function __construct()\n\t{\n\t\t$this->entity = new Entity(array(\n\t\t\t'name' => 'party',\n\t\t\t'columns' => array('id', 'name', 'short_name', 'description', 'country_code', 'last_updated_on'),\n\t\t\t'pkey_columns' => array('id'),\n\t\t\t'readonly_columns' => array('id')\n\t\t));\n\t}", "title": "" }, { "docid": "cfc48155cd7d68da5b2d66ca1db37162", "score": "0.53505266", "text": "protected function retrieveEntities() {}", "title": "" }, { "docid": "d98540e4f369ea12117ea24b2f4d7ae4", "score": "0.53437775", "text": "public function saveEntity();", "title": "" }, { "docid": "a7a00734c7cfff249af19480d979f48c", "score": "0.5341938", "text": "public function buildGroupModelEntities();", "title": "" }, { "docid": "5d303ea5cc28b3f9680f543d435d8a2b", "score": "0.53377265", "text": "abstract public function extend();", "title": "" }, { "docid": "983afad5ab74b82e3d41d317c9173ae7", "score": "0.532726", "text": "protected function saveAndReplaceEntity() {\n $behavior = $this->getBehavior();\n $ids = [];\n while ($bunch = $this->_dataSourceModel->getNextBunch()) {\n $entityList = [];\n foreach ($bunch as $rowNum => $rowData) {\n if (!$this->validateRow($rowData, $rowNum)) {\n $this->addRowError(ValidatorInterface::ERROR_MESSAGE_IS_EMPTY, $rowNum);\n continue;\n }\n if ($this->getErrorAggregator()->hasToBeTerminated()) {\n $this->getErrorAggregator()->addRowToSkip($rowNum);\n continue;\n }\n $rowId= $rowData[self::ID];\n $ids[] = $rowId;\n $entityList[$rowId][] = [\n self::ID => $rowData[self::ID],\n self::NAME => $rowData[self::NAME],\n self::COMMENT => $rowData[self::COMMENT],\n self::STATUS => $rowData[self::STATUS],\n self::DISPLAY_AREA => $rowData[self::DISPLAY_AREA],\n self::CUSTOMER_ID => $rowData[self::CUSTOMER_ID],\n self::GROUP_ID => $rowData[self::GROUP_ID],\n // self::PRINTED_NAME => $rowData[self::PRINTED_NAME]\n ];\n }\n if (\\Magento\\ImportExport\\Model\\Import::BEHAVIOR_REPLACE == $behavior) {\n if ($ids) {\n if ($this->deleteEntityFinish(array_unique( $ids), self::TABLE_ENTITY)) {\n $this->saveEntityFinish($entityList, self::TABLE_ENTITY);\n }\n }\n } elseif (\\Magento\\ImportExport\\Model\\Import::BEHAVIOR_APPEND == $behavior) {\n $this->saveEntityFinish($entityList, self::TABLE_ENTITY);\n }\n }\n return $this;\n }", "title": "" }, { "docid": "76fc1221786a89dc04f7680fb050301a", "score": "0.53211904", "text": "protected abstract function buildEntityObject(array $row);", "title": "" }, { "docid": "a8c3883fe4dd7efd118a0c7a3296911f", "score": "0.5321092", "text": "public function beforeUpdate(phpDataMapper_Entity $entity) {}", "title": "" }, { "docid": "8695838cf889baaa794291c05641a0e3", "score": "0.53137594", "text": "function entityThink() {\n \n // virtual\n \n }", "title": "" }, { "docid": "41561571ae294afd6ed65c30234f7383", "score": "0.52950984", "text": "function annotation_api_entity_prepare($entity, $op) {\n switch($op) {\n case 'read':\n $account = user_load($entity->uid);\n $entity->user = array(\n 'uid' => $account->uid,\n 'name' => format_username($account),\n 'roles' => array_values($account->roles),\n );\n unset($entity->uid);\n\n $entity->links[] = array(\n 'href' => url('annotation/' . $entity->id),\n 'rel' => 'alternate',\n 'type' => 'text/html',\n );\n break;\n case 'create':\n $entity->uid = $entity->user;\n unset($entity->user);\n break;\n case 'update':\n break;\n }\n return $entity;\n}", "title": "" }, { "docid": "1b012febd3661838a6f3f74361b27dc6", "score": "0.5278731", "text": "protected abstract function getEntityClass();", "title": "" }, { "docid": "e7d9001de10622978c69f71126d0696b", "score": "0.5264344", "text": "abstract function Serialize($entity);", "title": "" }, { "docid": "3219e281773b67908f74ddd0d47304ed", "score": "0.5262485", "text": "function get_entities(){\n //\n //Start with a empty list of entities\n $entities = [];\n //\n //Let $sql be the statement for for retrieving the entities of this\n //database.\n $sql = \"select \"\n // \n . \"table_name as name, \"\n // \n . \"table_comment as comment \"\n . \"from \"\n . \"information_schema.tables \"\n . \"where \"\n . \"table_schema = '$this->name' \"\n //\n //Exclude the views\n . \"and table_type = 'BASE TABLE'\";\n //\n //Execute the $sql on the the schema to get the $result\n $result = $this->query($sql);\n //\n //Retrueve the entires from the $result as an array\n $array = $result->fetchAll(PDO::FETCH_ASSOC);\n //\n //Display the $result by looping throuh the array to presebt each entity\n foreach($array as $row){\n //\n //Get the name of the entity; its the sane as that of the table.\n $name = $row['name'];\n //\n //Get the comment (json) string\n $comment_str = $row['comment'];\n //\n //Test if the comment is empty; if it is make it an empty json \n if (empty($comment_str)){\n $comment_str= '{}';\n }else{\n $comment_str = $comment_str; \n }\n //\n //Decode the comment json string to a php (stdClass) object. Rember\n //to include the opening and losing curly braces\n $comment = json_decode($comment_str);\n //\n //Throw an error message in case $comment is not in the json format\n if (!$comment){\n throw new Exception(\"Error in entity $name. Invalid json $comment_str\"); \n }\n //\n //Create a new entity passing the name, parent and the partially \n //complete raw comment\n $entity = new entity($name, $this,$comment );\n //\n //Push the entity object to the array to be returned\n $entities[$name] = $entity;\n }\n //\n //Return the entity list.\n return $entities;\n }", "title": "" }, { "docid": "65cb297e3bcfd3cbe97cd6bd33512009", "score": "0.52595395", "text": "public function __construct()\n\t{\n\t\t$this->entity = new Entity(array(\n\t\t\t'name' => 'language',\n\t\t\t'columns' => array('code', 'name', 'short_name', 'description', 'locale'),\n\t\t\t'pkey_columns' => array('code')\n\t\t));\n\t}", "title": "" }, { "docid": "fd2198710972f3d060bc3561cf279c8a", "score": "0.52514565", "text": "protected function defineDerivedFields() {}", "title": "" }, { "docid": "bdf92973907ec1ef99ccb986e9cacf21", "score": "0.52504206", "text": "public function __construct() {\r\n $this->setEntity('mst_contact');\r\n }", "title": "" }, { "docid": "b276993e56ff722b067914769fce6f1e", "score": "0.52465415", "text": "private function mEntity($std){\n\n $this->servico = $std;\n\n }", "title": "" }, { "docid": "a859a14f90a409ea95029ba001dd4e6a", "score": "0.5238639", "text": "public function extend();", "title": "" }, { "docid": "03c5beab2211dcae3e2fc727ee093fff", "score": "0.5237281", "text": "public function beforeSave(phpDataMapper_Entity $entity) {}", "title": "" }, { "docid": "404cae8985d42ff877f9f1ecdbc9749e", "score": "0.5231656", "text": "public function setEntity(Entity &$entity);", "title": "" }, { "docid": "60bb930a738a3c8c41abdefefe54782d", "score": "0.5222371", "text": "private function addAttributes()\n {\n /** @var CrudService $crudService * */\n $crudService = $this->container->get('shopware_attribute.crud_service');\n\n /** @var ModelManager $modelManager * */\n $modelManager = $this->container->get('models');\n\n $crudService->update(\n 's_articles_attributes',\n 'emz_description_banner',\n TypeMapping::TYPE_STRING,\n [\n 'label' => 'Individueller Beschreibungs-Banner',\n 'translatable' => false,\n 'displayInBackend' => true,\n 'position' => 163,\n 'custom' => false,\n ]\n );\n\n $crudService->update(\n 's_core_countries_attributes',\n 'emz_hide_country',\n TypeMapping::TYPE_BOOLEAN,\n [\n 'label' => 'Land im Shop verstecken',\n 'translatable' => true,\n 'displayInBackend' => true,\n 'position' => 1,\n 'custom' => false,\n ]\n );\n\n $crudService->update(\n 's_articles_attributes',\n 'emz_product_video',\n TypeMapping::TYPE_SINGLE_SELECTION,\n [\n 'label' => 'Loop-Video in den Artikelbildern',\n 'supportText' => 'Video in den Produktbildern',\n 'translatable' => false,\n 'displayInBackend' => true,\n 'entity' => 'Shopware\\Models\\Media\\Media',\n 'custom' => false,\n ]\n );\n\n $this->rebuildModels($modelManager);\n }", "title": "" }, { "docid": "2a289ad8f36399bbf1b9a0c72433c673", "score": "0.52219176", "text": "public function getEntityAttributes() : array;", "title": "" }, { "docid": "f91943a20bdfe06d24d9945d59d640c0", "score": "0.5213593", "text": "function _ting_visual_relation_ting_entity_properties() {\n return array(\n 'id' => 'id',\n 'localId' => 'localId',\n 'ownerId' => 'ownerId',\n 'title' => 'title',\n 'description' => 'description',\n 'abstract' => 'abstract',\n 'creators' => 'creator',\n 'subjects' => 'subject',\n 'type' => 'type',\n 'isPartOf' => 'isPartOf',\n 'isbn' => 'isbn',\n 'serieNumber' => 'serieNumber',\n 'serieTitle' => 'serieTitle',\n 'serieDescription' => 'serieDescription',\n 'language' => 'language',\n 'date' => 'date',\n 'online_url' => 'onlineUrl',\n 'ac_source' => 'acSource',\n 'contributers' => 'contributer',\n 'extent' => 'extent',\n 'classification' => 'classification',\n );\n}", "title": "" }, { "docid": "97c1552c7dc2921ef54b8aa4fbd85892", "score": "0.5211104", "text": "function & entity ($name,$value)\r\n\t{\r\n\t\t\r\n\t\t$newElement = new MiniXMLElementEntity($name, $value);\r\n\t\t$appendedEl =& $this->appendChild($newElement);\r\n\t\t\r\n\t\treturn $appendedEl;\r\n\t}", "title": "" }, { "docid": "dfeddce21c510cb83b20d1e10433a992", "score": "0.5202028", "text": "public function entityDescription();", "title": "" }, { "docid": "a5f85c66e63950c9be0349b066156e25", "score": "0.51955646", "text": "public function __construct() {\n\n\t\t$this->defineFormElementToDomainEntityMapping();\n\t}", "title": "" }, { "docid": "a20b6666bb94bd0c78e1ba98af656715", "score": "0.5182587", "text": "protected function createContent() {\n $this->referencedEntityWithTranslation = $this->createReferencedEntityWithTranslation();\n $this->referencedEntityWithoutTranslation = $this->createNotTranslatedReferencedEntity();\n }", "title": "" }, { "docid": "df2fb505a6308e5c7d7bae75c79116c5", "score": "0.5177343", "text": "function InheritAttributes(){}", "title": "" }, { "docid": "0e9960568047328cec6040b18464d4b3", "score": "0.5164442", "text": "abstract public function getEntityService();", "title": "" }, { "docid": "5be49824f16746d5d896b668a53ef642", "score": "0.51641583", "text": "function set(Entity $entity);", "title": "" }, { "docid": "ee798b8e564360bcf5ea9a674b4cc570", "score": "0.5162476", "text": "public function insert(&$entity) {\n //dpm($entity,'insert ');\n //$this->recordChange($entity);\n $this->updateLinked($entity);\n parent::insert($entity);\n }", "title": "" }, { "docid": "dd136e2c24104ed4b102a06b9b28ecdc", "score": "0.5161819", "text": "public function beforeInsert(phpDataMapper_Entity $entity) {}", "title": "" }, { "docid": "f035235b91e15af0a46ddfedfe857136", "score": "0.5148946", "text": "public function getSourceEntity();", "title": "" }, { "docid": "ff673b24ff99952d1fa18c8c879ee8b2", "score": "0.5146542", "text": "abstract function initialize(BaseEntity $baseEntity): void;", "title": "" }, { "docid": "9a42078ac7762b2245e2f24583a4d1e6", "score": "0.51400536", "text": "public function __construct(Article $entity)\n {\n parent::__construct($entity, false);\n $this->model = $this->entity->with('category', 'warehouses')->orderBy('created_at', 'DESC');\n }", "title": "" }, { "docid": "24b75188949fd2122f5e216366da1569", "score": "0.5134168", "text": "function setEntity($entity) {\n $this->entity = $entity;\n }", "title": "" }, { "docid": "20e87366263228ef0996cfecb0865f33", "score": "0.5133322", "text": "protected function hydrate()\n {\n $properties = $this->propertiesFromAttributes($this->attributes) + $this->unmanagedProperties;\n\n // In some case, attributes will miss some properties, so we'll just complete the hydration\n // set with the orginal's object properties\n $missingProperties = array_diff_key($this->properties, $properties);\n\n foreach (array_keys($missingProperties) as $missingKey) {\n $properties[$missingKey] = $this->properties[$missingKey];\n }\n\n $this->hydrator->hydrate($properties, $this->entity);\n }", "title": "" }, { "docid": "488e72cf54c835a49445bc4493b3d71d", "score": "0.51328355", "text": "private function _getInfoForUpdateSubEntity(){\n\t\t$request = $this->_request; \n\t\t$tableName = $this->CI->db->dbprefix.\"\".$this->libName; \n\t\t$columnName = $this->getSubEntityColumnName($request[1]);\t\t\n\t\t//convert date and time \n\t\t$fieldValue = $request[2];\t\n\t\treturn [$request, $tableName, $columnName, $fieldValue];\n\t}", "title": "" }, { "docid": "863c509207fd1f93e61d69e72e855caa", "score": "0.5121216", "text": "public function __clone()\n {\n // If the entity has an identity, proceed as normal.\n if ($this->id) {\n // create new instance\n \n $entity = new \\MUTicket_Entity_Ticket();\n // unset identifiers\n $entity->setId(null);\n // copy simple fields\n $entity->set_objectType($this->get_objectType());\n $entity->set_idFields($this->get_idFields());\n $entity->set_hasUniqueSlug($this->get_hasUniqueSlug());\n $entity->set_actions($this->get_actions());\n $entity->initValidator();\n $entity->setTitle($this->getTitle());\n $entity->setText($this->getText());\n $entity->setParent_id($this->getParent_id());\n $entity->setImages($this->getImages());\n $entity->setFiles($this->getFiles());\n $entity->setState($this->getState());\n $entity->setRated($this->getRated());\n $entity->setOwner($this->getOwner());\n $entity->setDueDate($this->getDueDate());\n $entity->setDueText($this->getDueText());\n $entity->setCurrentState($this->getCurrentState());\n \n // handle related objects\n // prevent shared references by doing a deep copy - see (2) and (3) for more information\n if ($this->getParent() != null) {\n $this->parent = clone $this->parent;\n $entity->setParent($this->parent);\n }\n if ($this->getChildren() != null) {\n $this->children = clone $this->children;\n $entity->setChildren($this->children);\n }\n if ($this->getRating() != null) {\n $this->rating = clone $this->rating;\n $entity->setRating($this->rating);\n }\n if ($this->getLabelticket() != null) {\n $this->labelticket = clone $this->labelticket;\n $entity->setLabelticket($this->labelticket);\n }\n \n return $entity;\n }\n // otherwise do nothing, do NOT throw an exception!\n }", "title": "" }, { "docid": "7f146a35a3d23ae615e9a60a1503f8e5", "score": "0.5114136", "text": "public function getEntitiesOverrides()\n {\n return [\n ];\n }", "title": "" }, { "docid": "6e47d2fa8108c352badfc49dafe29cbe", "score": "0.51141155", "text": "public function __construct(){\n\t\t$this->soft_deletes = FALSE;\n\t\t$this->timestamps = FALSE;\n\t\t$this->timestamps_format = 'Y-m-d H:i:s';\n\t\t$this->return_as = 'object';\n\t\t$this->has_many['products'] = ['foreign_model'=>'Products_model','foreign_table'=>'products','foreign_key'=>'category','local_key'=>'id'];\n\t\tparent::__construct();\n\t}", "title": "" }, { "docid": "f8e9f6199b07e8b0ea8459dea3f3dcbe", "score": "0.5103777", "text": "public function Update($entity) {\r\n }", "title": "" }, { "docid": "accdaf2b95d70fc2817e738c5883d601", "score": "0.5103561", "text": "public function getBaseEntity()\n {\n return $this->baseEntity;\n }", "title": "" }, { "docid": "ac5d39da3de1b5d67c1560bb317aa4c3", "score": "0.5101791", "text": "function flexiform_manage_form_entities_form($form, &$form_state, $flexiform) {\n // Get the list of entities\n $entities = $flexiform->entities;\n\n $form += array(\n '#flexiform' => $flexiform,\n '#entities' => array_keys($entities),\n );\n\n $form_state += array(\n '#flexiform' => $flexiform,\n '#entities' => $entities,\n );\n\n $table = array(\n '#type' => 'flexiform_entity_table',\n '#tree' => TRUE,\n '#header' => array(\n t('Label'),\n t('Weight'),\n t('Namespace'),\n t('Entity Type'),\n t('Bundle'),\n t('Getter'),\n array('data' => t('Operations'), 'colspan' => 2),\n ),\n '#parent_options' => array(),\n '#regions' => array(\n 'main' => array('message' => t('No entities are present')),\n 'add_new' => array('title' => '&nbsp;'),\n ),\n '#attributes' => array(\n 'class' => array('field-ui-overview'),\n 'id' => 'field-overview',\n ),\n );\n\n $getters = flexiform_entity_getter_info();\n foreach($entities as $entity_namespace => $settings) {\n $entity_path = 'admin/structure/flexiforms/manage/' . $flexiform->form . '/form-entities/' . $entity_namespace;\n $table[$entity_namespace] = array(\n '#attributes' => array('class' => array('draggable', 'tabledrag-leaf')),\n '#row_type' => 'entity',\n '#region_callback' => 'flexiform_entity_form_row_region',\n 'label' => array(\n '#markup' => check_plain($settings['label']),\n ),\n 'weight' => array(\n '#type' => 'textfield',\n '#title' => t('Weight for @title', array('@title' => $settings['label'])),\n '#title_display' => 'invisible',\n '#default_value' => $settings['weight'],\n '#size' => 3,\n '#attributes' => array('class' => array('field-weight')),\n ),\n 'namespace' => array(\n '#markup' => $entity_namespace,\n ),\n 'entity_type' => array(\n '#markup' => $settings['entity_type'],\n ),\n 'bundle' => array(\n '#markup' => $settings['bundle'],\n ),\n 'getter' => array(\n '#markup' => $settings['getter'],\n ),\n 'configure' => array(\n '#type' => 'link',\n '#title' => t('configure'),\n '#href' => $entity_path,\n '#options' => array('attributes' => array('title' => t('Configure entity getter settings'))),\n ),\n 'remove' => array(\n '#type' => 'link',\n '#title' => t('remove'),\n '#href' => $entity_path . '/remove',\n '#options' => array('attributes' => array('title' => t('Remove this entity.'))),\n ),\n );\n }\n\n // Additional row: add new field.\n $max_weight = flexiform_entity_max_weight($flexiform);\n\n // Entity type options\n $entity_type_options = array();\n foreach(entity_get_info() as $entity_type => $info) {\n $entity_type_options[$entity_type] = $info['label'];\n }\n\n // Get entity type if its been set\n if (isset($form_state['values']['entities']['_add_entity']['entity_type'])) {\n $entity_type = $form_state['values']['entities']['_add_entity']['entity_type'];\n }\n else {\n $entity_type = NULL;\n }\n\n // Get bundle options\n $bundle_options = array();\n if (!empty($entity_type)) {\n $entity_info = entity_get_info($entity_type);\n foreach ($entity_info['bundles'] as $bundle => $info) {\n $bundle_options[$bundle] = $info['label'];\n }\n }\n\n // Get getter options\n $getter_options = array();\n if (!empty($entity_type)) {\n foreach (flexiform_entity_type_get_getters($entity_type) as $getter => $info) {\n if (!empty($info['params'])) {\n // Put the available entities into\n $entities_by_type = array();\n foreach ($flexiform->entities as $entity_namespace => $settings) {\n $entities_by_type[$settings['entity_type']][] = $entity_namespace;\n }\n\n $combinations = array();\n flexiform_get_getter_parameter_combinations($info['params'], $entities_by_type, $combinations);\n\n foreach ($combinations as $combination) {\n $key_bits = array($getter);\n $label_bits = array();\n $label = t('@label from ', array('@label' => $info['label']));\n foreach ($combination as $param => $namespace) {\n $key_bits[] = $param . '=' . $namespace;\n $label_bits[] = t('!label (@param)', array('!label' => $flexiform->entities[$namespace]['label'], '@param' => $param));\n }\n $key = implode(':', $key_bits);\n $label .= implode(', ', $label_bits);\n\n $getter_options[$key] = $label;\n }\n }\n else {\n $getter_options[$getter] = $info['label'];\n }\n }\n }\n\n if ($entity_type_options) {\n $name = '_add_entity';\n $table[$name] = array(\n '#attributes' => array('class' => array('draggable', 'tabledrag-leaf', 'add-new')),\n '#row_type' => 'add_entity',\n '#region_callback' => 'flexiform_entity_form_row_region',\n 'label' => array(\n '#type' => 'textfield',\n '#title' => 'Label',\n '#title_display' => 'invisible',\n '#size' => 15,\n '#description' => t('Label'),\n '#prefix' => '<div class=\"label-input\"><div class=\"add-new-placeholder\">' . t('Add entity') .'</div>',\n '#suffix' => '</div>',\n ),\n 'weight' => array(\n '#type' => 'textfield',\n '#default_value' => $max_weight + 1,\n '#size' => 3,\n '#title_display' => 'invisible',\n '#title' => t('Weight for new entity'),\n '#attributes' => array('class' => array('field-weight')),\n '#prefix' => '<div class=\"add-new-placeholder\">&nbsp;</div>',\n ),\n 'namespace' => array(\n '#type' => 'textfield',\n '#title' => 'Namespace',\n '#title_display' => 'invisible',\n '#size' => 15,\n '#description' => t('namespace'),\n ),\n 'entity_type' => array(\n '#type' => 'select',\n '#title' => t('Enitity Type'),\n '#title_display' => 'invisible',\n '#options' => $entity_type_options,\n '#empty_option' => t('- Select an Entity Type -'),\n '#description' => t('Type of entity'),\n '#attributes' => array('class' => array('bundle-select')),\n '#prefix' => '<div class=\"add-new-placeholder\">&nbsp;</div>',\n '#ajax' => array(\n 'event' => 'change',\n 'method' => 'replace',\n 'wrapper' => 'flexiform-bundle-selector',\n 'callback' => 'flexiform_manage_form_entities_bundles',\n ),\n ),\n 'bundle' => array(\n '#type' => 'select',\n '#title' => t('Bundle'),\n '#title_display' => 'invisible',\n '#options' => $bundle_options,\n '#empty_option' => t('- Select a Bundle -'),\n '#description' => t('Bundle'),\n '#attributes' => array('class' => array('bundle-select')),\n '#prefix' => '<div id=\"flexiform-bundle-selector\"><div class=\"add-new-placeholder\">&nbsp;</div>',\n '#suffix' => '</div>',\n '#ajax' => array(\n 'event' => 'change',\n 'method' => 'replace',\n 'wrapper' => 'flexiform-getter-selector',\n 'callback' => 'flexiform_manage_form_entities_getters',\n ),\n ),\n 'getter' => array(\n '#type' => 'select',\n '#title' => t('Getter'),\n '#title_display' => 'invisible',\n '#options' => $getter_options,\n '#empty_option' => t('- Select a Getter -'),\n '#description' => t('Pick a getter'),\n '#attributes' => array('class' => array('getter-select')),\n '#prefix' => '<div id=\"flexiform-getter-selector\"><div class=\"add-new-placeholder\">&nbsp;</div>',\n '#suffix' => '</div>',\n ),\n );\n }\n\n $form['entities'] = $table;\n\n $form['actions'] = array('#type' => 'actions');\n $form['actions']['submit'] = array('#type' => 'submit', '#value' => t('Save'));\n\n $form['#attached']['css'][] = drupal_get_path('module', 'flexiform') . '/flexiform_ui.css';\n $form['#attached']['js'][] = drupal_get_path('module', 'flexiform') . '/flexiform_ui.js';\n\n // Add tabledrag behavior.\n $form['#attached']['drupal_add_tabledrag'][] = array('field-overview', 'order', 'sibling', 'field-weight');\n $form['#attached']['drupal_add_tabledrag'][] = array('field-overview', 'match', 'parent', 'field-parent', 'field-parent', 'field-name');\n\n return $form;\n}", "title": "" }, { "docid": "4801d084886bc9e84191dd31be878bff", "score": "0.5092582", "text": "private function e02Entity($std){\n\n $this->tomador = (object) array_merge((array) $this->tomador, (array) $std);\n\n $this->make->buildTomador($this->tomador);\n\n }", "title": "" }, { "docid": "083f841d5275b984ad135a463e56d7b8", "score": "0.5090925", "text": "public function __construct()\n {\n parent::__construct();\n\n $this->addFields([\n\n ]);\n }", "title": "" }, { "docid": "d8ce2058fcfc8a057e9554c824bf6262", "score": "0.5088067", "text": "abstract public function getEntity(array $data);", "title": "" }, { "docid": "2913bfa0d79591fb8826d7b19fcca4be", "score": "0.5084124", "text": "private function e03Entity($std){\n\n $this->make->buildIntermediarioServico($std);\n }", "title": "" }, { "docid": "161b5c9070ed4263d6091bc1a60ea09b", "score": "0.5075506", "text": "protected function extend(&$object) {\n //type is singular of table name -> remove ending 's'\n $type = preg_replace('!s$!', '', $this->tableName());\n $fields = Extend::fields($type, $object->id);\n foreach ($fields as $field) {\n //custom field value is in $field->value->{$field->field}, if is set\n $v = $field->value;\n $f = $field->field;\n $object->{$field->key} = isset($v->$f)? $v->$f : '';\n }\n }", "title": "" }, { "docid": "fd30f3b8dad50d6a4021df27b4faf8fb", "score": "0.5066519", "text": "private function getNewAttachedEntity(): AclResourcesEntity\n {\n $resource = new AclResourcesEntity();\n $this->repository->attach($resource);\n return $resource;\n }", "title": "" }, { "docid": "b00beb5a648dbbfd4201f246a6e010ae", "score": "0.50644714", "text": "protected function hydrate()\n {\n $properties = $this->propertiesFromAttributes() + $this->unmanagedProperties;\n\n $attributesName = $this->entityMap->getAttributesArrayName();\n\n if (isset($properties[$attributesName])) {\n $properties[$attributesName] = $this->entityMap->getAttributeNamesFromColumns($properties[$attributesName]);\n } else {\n $properties[$attributesName] = $this->entityMap->getAttributeNamesFromColumns($properties);\n }\n\n // In some case, attributes will miss some properties, so we'll just complete the hydration\n // set with the original object properties\n $missingProperties = array_diff_key($this->properties, $properties);\n\n foreach (array_keys($missingProperties) as $missingKey) {\n $properties[$missingKey] = $this->properties[$missingKey];\n }\n\n $this->hydrator->hydrate($properties, $this->entity);\n\n $this->touched = false;\n }", "title": "" }, { "docid": "87f7accf688c7f0ea69c72f7eca4a5ae", "score": "0.5061852", "text": "protected function inheritingEntity(): Entity {\n\t\tif (isset($this->_entity)) return $this->_entity;\n\t\tif ($this instanceof Entity) return $this->_entity = $this;\n\t\tthrow new InvalidArgumentException(\"Can not initialize Trait on non-entities\");\n\t}", "title": "" }, { "docid": "794fff43a27a85104507fa2b5f5034f3", "score": "0.5056067", "text": "abstract protected function createEntity(array $row);", "title": "" }, { "docid": "c0572bc1d6e4bbc4d6147cd71c669965", "score": "0.5046482", "text": "public function getEntityObject() {\n return $this->entityObject;\n }", "title": "" }, { "docid": "bc58def913e70eae164342747c02a9d7", "score": "0.50447303", "text": "protected function _prepareData()\n\t{\n\t\t$this->source_id && $this->addEntity(\n\t\t\t$this->Source->clearEntities()\n\t\t);\n\n\t\t$this\n\t\t\t->clearXmlTags()\n\t\t\t->addXmlTag('datetime', Core_Date::sql2datetime($this->datetime));\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "efb0a0cc2c9a5123bad298db83a4dd5a", "score": "0.5044269", "text": "abstract public function getMappedSecondEntities();", "title": "" }, { "docid": "0b18bc0a02c2e5861454c44c12b2f1f2", "score": "0.50435066", "text": "public function prepare($entity, $row) {\n $row->field_location = explode('|', $row->field_location);\n\n $wrapper = entity_metadata_wrapper('node', $entity);\n $wrapper->field_location->set(array(\n 'lat' => $row->field_location[0],\n 'lng' => $row->field_location[1],\n ));\n\n $wrapper->field_address->set(array(\n 'country' => $row->country,\n 'locality' => $row->field_place_locality,\n ));\n\n // Assume meter will have electricity\n // @fixme: Should move to NegawattElectricityMigrate, that will update the meter node.\n $wrapper->field_has_electricity->set(TRUE);\n }", "title": "" }, { "docid": "4ab5bf721aacc4c9746c94a051489b40", "score": "0.5031648", "text": "function SM_inputTypeEntity($fE) {\n \n // setup handlers\n $this->_smoConfigure();\n\n // parent form entity\n $this->parentFormEntity = $fE;\n \n // default directives\n $this->addDirective('javaScript','');\n $this->addDirective('extraAttributes','');\n\n }", "title": "" }, { "docid": "09e5ea75a8f6f80b38174938945ec504", "score": "0.50284934", "text": "public function getMyEntity(): ExampleEntity\n {\n return $this->eventEntity;\n }", "title": "" } ]
044aed57071e070489609ba1262cb3e3
Builds the query and returns a collection of post models
[ { "docid": "70a642fc218037bc6952a078f935117d", "score": "0.0", "text": "abstract public function get (bool $missCache) : Collection;", "title": "" } ]
[ { "docid": "2ecc1c8c740735f49dc9d43eae6e7f34", "score": "0.7124416", "text": "public function all()\n {\n $limit = isset($this->constraints['limit']) ? $this->constraints['limit'] : -1; // -1 returns all posts\n $offset = isset($this->constraints['offset']) ? $this->constraints['offset'] : 0;\n $where = isset($this->constraints['where']) ? $this->constraints['where'] : [];\n $before = isset($this->constraints['before']) ? $this->constraints['before'] : null;\n $after = isset($this->constraints['after']) ? $this->constraints['after'] : null;\n\n $args = [\n 'posts_per_page' => $limit,\n 'offset' => $offset,\n 'post_type' => PostTypeUtils::postTypeName($this->type),\n ];\n\n if (isset($before) || isset($after)) {\n $args['date_query'] = [];\n }\n if (isset($before)) {\n $args['date_query']['before'] = $before->format(DateTime::ISO8601);\n }\n if (isset($after)) {\n $args['date_query']['after'] = $after->format(DateTime::ISO8601);\n }\n\n if (count($where) > 0) {\n $args['meta_query'] = [ 'relation' => 'AND' ];\n }\n\n foreach ($where as $predicate) {\n extract($predicate);\n\n if ($field === 'id') {\n if ($operator === 'IN') {\n $args['post__in'] = $value;\n } elseif ($operator === '=') {\n $args['post'] = $value;\n } else {\n throw new \\Exception('The ID can only be filtered with the \"=\" or \"IN\" operators');\n }\n continue;\n }\n\n if ($field === 'slug') {\n if ($operator !== '=') {\n throw new \\Exception('The slug can only be filtered with the \"=\" operator');\n }\n $args['name'] = $value;\n continue;\n }\n\n if (in_array($value, [false, null]) && $operator === '=') {\n $args['meta_query'][] = [\n 'relation' => 'OR',\n [\n 'key' => $field,\n 'value' => $value,\n 'compare' => '=',\n ],\n [\n 'key' => $field,\n 'compare' => 'NOT EXISTS',\n ],\n ];\n } elseif ($operator === '!=') {\n $args['meta_query'][] = [\n 'relation' => 'OR',\n [\n 'key' => $field,\n 'value' => $value,\n 'compare' => '!=',\n ],\n [\n 'key' => $field,\n 'compare' => 'NOT EXISTS',\n ],\n ];\n } else {\n $args['meta_query'][] = [\n 'key' => $field,\n 'value' => $value,\n 'compare' => $operator,\n ];\n }\n }\n\n return array_map([$this, 'wrap'], $this->adapter->getPosts($args));\n }", "title": "" }, { "docid": "b94e4c907c3da432181eb7b45599ac3e", "score": "0.65328467", "text": "public function getAllPost()\n {\n return Book::with('images')\n ->where('status', '<>', '9')\n ->whereHas('contracts', function ($query) {\n $query->where('contracts.status', '1');\n })->orderBy('created_at', 'desc')->get();\n }", "title": "" }, { "docid": "58f999e2de6e324f1797fe756db16bc4", "score": "0.6473739", "text": "protected function retrieve_posts_query()\n {\n }", "title": "" }, { "docid": "3340b781492b55244815f9880ee52c65", "score": "0.64735365", "text": "public function posts()\n {\n return $this->morphedByMany(Post::class, 'categorizable');\n }", "title": "" }, { "docid": "58f999e2de6e324f1797fe756db16bc4", "score": "0.64731157", "text": "protected function retrieve_posts_query()\n {\n }", "title": "" }, { "docid": "083024ebce9f63f9c9697d0555a1a89f", "score": "0.6468223", "text": "public function getPosts()\r\n {\r\n return $this->post->all();\r\n }", "title": "" }, { "docid": "495f13982d5e570df7552ad4aca7f1ee", "score": "0.6467115", "text": "public function findAllPosts();", "title": "" }, { "docid": "d22a404ae48fc17dac55bdf6d66bc3c5", "score": "0.64481306", "text": "public function posts()\n {\n return $this->morphedByMany(Post::class, 'taggable');\n }", "title": "" }, { "docid": "4b5400ba787b33291c80117ba2fe470f", "score": "0.64070636", "text": "public function getPosts()\n {\n// ->join('term_relationships'. $this->_suffixes, 'posts'. $this->_suffixes .'.id', '=', 'term_relationships'. $this->_suffixes .'.object_id')\n// ->join('terms'. $this->_suffixes, 'terms'. $this->_suffixes .'.id', '=', 'term_relationships'. $this->_suffixes .'.term_taxonomy_id')\n// ->where('posts'. $this->_suffixes .'.post_type',PostType::POST['VALUE'])\n// ->select('posts'. $this->_suffixes .'.id as postId', 'posts'. $this->_suffixes .'.post_title as postTitle', 'users.name as userName',\n// 'users.id as userId', 'terms'. $this->_suffixes .'.name as termName', 'terms'. $this->_suffixes .'.id as termId', 'posts'. $this->_suffixes .'.post_status as postStatus',\n// 'posts'. $this->_suffixes .'.created_at as createdAt', 'posts'. $this->_suffixes .'.updated_at as updatedAt')\n// ->orderBy('posts'. $this->_suffixes .'.id', 'DESC')->paginate(PaginationConfigs::DEFAULT['VALUE']);\n\n\n return $this->_model->join('users', 'users.id', '=', 'posts'. $this->_suffixes .'.post_author')\n// ->join('term_relationships'. $this->_suffixes, 'posts'. $this->_suffixes .'.id', '=', 'term_relationships'. $this->_suffixes .'.object_id')\n// ->join('terms'. $this->_suffixes, 'terms'. $this->_suffixes .'.id', '=', 'term_relationships'. $this->_suffixes .'.term_taxonomy_id')\n ->where('posts'. $this->_suffixes .'.post_type',PageTemplateConfigs::POST['NAME'])\n ->select('posts'. $this->_suffixes .'.id as postId','posts'. $this->_suffixes .'.post_name as postName', 'posts'. $this->_suffixes .'.post_title as postTitle', 'users.name as userName',\n 'users.id as userId', 'posts'. $this->_suffixes .'.post_status as postStatus',\n 'posts'. $this->_suffixes .'.created_at as createdAt', 'posts'. $this->_suffixes .'.updated_at as updatedAt')\n ->orderBy('posts'. $this->_suffixes .'.id', 'DESC')->paginate(PaginationConfigs::DEFAULT['VALUE']);\n\n }", "title": "" }, { "docid": "3094793cb6f3ec228231fa7a65d5e8ef", "score": "0.63678116", "text": "public function getPosts(){\n $this->db->query('SELECT *,\n pd_blog.ps_id as postId,\n users.us_id as userId FROM pd_blog\n LEFT JOIN users ON pd_blog.user_id = users.us_id\n LEFT JOIN pd_blog_cat ON pd_blog_cat.ps_cat_id = pd_blog.fk_cat_id\n ORDER BY pd_blog.ps_created DESC');\n\n $results = $this->db->resultSet();\n return $results;\n }", "title": "" }, { "docid": "3560c23af7deff49b60a8f1d1cb88abb", "score": "0.63437885", "text": "public static function getPublishedPosts(){\n return self::where('published', true); //jer vraca samog sebe, Post model vraca post objekat. get(): izvrsi query. Get vraca array. Vraca sve sto nasao pod datim kriterijumom. get() uvek ide zadnji. Get() mozemo da ga zakacimo i u kontroleru, ako ga nismo ovde zakacili.\n }", "title": "" }, { "docid": "731a17a3bc4d83d85369e6c3188d0bc7", "score": "0.63231784", "text": "private function posts()\n\t{\n\t\t$posts = BlogPost::whereNotNull('published_at')\n\t\t\t->orderBy('created_at', 'desc')\n\t\t\t->get();\n\t\treturn $posts;\n\t}", "title": "" }, { "docid": "5ef1040e5cbc916dbc26766a4466561e", "score": "0.6320184", "text": "public function getAllPosts()\n {\n return Post::find()->with(['user'])->all();\n }", "title": "" }, { "docid": "ad552043836ad989600afcb18a13096d", "score": "0.6308524", "text": "public function getPosts() {\n $this->db->query(\n \"SELECT * FROM posts\n INNER JOIN users on post_user_id = user_id \n INNER JOIN categories on cat_id = post_category_id\n ORDER BY post_date DESC\"\n );\n return $this->db->resultSet();\n }", "title": "" }, { "docid": "ada16ca7fac715994e4a4092ddfee051", "score": "0.62960523", "text": "public function posts()\n {\n return $this->morphedByMany('App\\Post', 'likes');\n }", "title": "" }, { "docid": "25ad2e3b65d9bb108f5829e28700631b", "score": "0.6272414", "text": "public function getPosts()\n {\n $db = $this->app->db;\n\n $db->connect();\n\n $sql = <<<EOD\n SELECT\n *,\n DATE_FORMAT(COALESCE(updated, published), '%Y-%m-%dT%TZ') AS published_iso8601,\n DATE_FORMAT(COALESCE(updated, published), '%Y-%m-%d') AS published\n FROM content\n WHERE type = ?\n ORDER BY published DESC\n ;\n EOD;\n\n $res = $db->executeFetchAll($sql, [\"post\"]);\n\n return $res;\n }", "title": "" }, { "docid": "1a5371ea703c4741b5a1b48bb9198cc1", "score": "0.62549883", "text": "protected function getPublishedQuery()\n {\n return $this->post\n ->wherePublished(1)\n ->where('published_at', '<', now());\n }", "title": "" }, { "docid": "47afb663fc584c9af74ccca0d8f5de1f", "score": "0.6248774", "text": "public function getAll()\n {\n return Post::paginate(10);\n }", "title": "" }, { "docid": "293f0bac69360fa2e30b0cb4d00aca27", "score": "0.62394005", "text": "protected function featuresPageFeaturesPostsDbQuery() {\n\t\t$featurePosts = FeaturePost::orderBy('id','desc')->get();\n\t\treturn $featurePosts;\n\t}", "title": "" }, { "docid": "776bd9d72b3143c4c62ceebc3187e2e1", "score": "0.6236614", "text": "protected function loadPosts()\n {\n $posts = Post::with('tags')\n ->whereHas('tags', function($tag) {\n $tag->whereSlug($this->property('slug'));\n })->listFrontEnd([\n 'page' => $this->property('pageNumber'),\n 'sort' => $this->property('sortOrder'),\n 'perPage' => $this->property('postsPerPage')\n ]);\n\n /*\n * Add a \"url\" helper attribute for linking to each post and category\n */\n $posts->each(function($post){\n $post->setUrl($this->postPage, $this->controller);\n });\n\n return $posts;\n }", "title": "" }, { "docid": "cc4083d96a15d340846486d35fb2d06a", "score": "0.6226427", "text": "public function getPostsAll(){\n $posts = array();\n $sql = \"SELECT * FROM posts WHERE deleted=0\";\n $stmt = $this->pdo->prepare($sql);\n $stmt->execute();\n $result = $stmt->fetchAll(PDO::FETCH_CLASS);\n foreach($result as $row){\n $post = $this->mapPost($row);\n array_push($posts, $post);\n }\n return $posts;\n }", "title": "" }, { "docid": "39a08dcf75ee6cc8e1d35e9c2a1d7b82", "score": "0.6199233", "text": "public function get_posts()\n\t{\n\t\treturn $this->get();\n\t}", "title": "" }, { "docid": "102a487ee2f646b8ab1f549333d8e681", "score": "0.61881083", "text": "public function searchFor($query) {\n $posts = Post::with('subject.grade','category')\n ->published()\n ->matchesSearchQuery($query)\n ->impFirst()\n ->latest()\n ->paginate($this->postLimit);\n\n return $posts;\n }", "title": "" }, { "docid": "87b4c1ddcd9d7d69f20efc4b477f854d", "score": "0.6166339", "text": "public static function getAll()\n {\n return Post::with(['photo', 'category'])\n ->orderBy('id', 'desc')\n ->paginate(25);\n }", "title": "" }, { "docid": "f7426d59e396ae81e53c6670b4fa3c99", "score": "0.6161303", "text": "public function posts()\n {\n return $this->morphedByMany('App\\Models\\Post', 'taggable');\n }", "title": "" }, { "docid": "e60666a11285becbd325d483d17a4f99", "score": "0.6159744", "text": "public function getAllPosts() {\n // logic to get all goes here\n }", "title": "" }, { "docid": "6a8cab3aacfdf54c53fbaa048f54e5fc", "score": "0.6128103", "text": "public function getPostCollection()\n {\n\t\treturn parent::getPostCollection()\n\t\t\t->addIsViewableFilter()\n\t\t\t->addTermIdFilter($this->getChildIds(), $this->getTaxonomy());\n }", "title": "" }, { "docid": "8694c2fd84e25bf2d3bb96bdaf797da5", "score": "0.61164945", "text": "public function posts()\n {\n return $this->hasMany(ModelResolver::resolve('Post'), 'post_author')->recent();\n }", "title": "" }, { "docid": "9ba6ca2bbf05477674025c6cbfbe226f", "score": "0.6115677", "text": "public static function all(){\n $list =[];\n //On recupere la connexion a la base de données\n $db = Db::getInstance();\n //on passe la requête a la base de données\n $req = $db->query('SELECT * FROM post');\n //boucle qui permet de parcourir et de recuperer toutes les informations de la table Post\n foreach($req->fetchALL() as $post){\n $list[] = new post($post['id'], $post['author'],$post['content'],$post['created_date']);\n }\n return $list;\n }", "title": "" }, { "docid": "648ae2d02b9e0e8a7388254d02b1f03b", "score": "0.60967624", "text": "public function getPostList();", "title": "" }, { "docid": "63897920179ab5bd3254fa07edbe2812", "score": "0.60939974", "text": "public function getAllPosts() {\n $categoryIds = [$this->id];\n $chilsIds = $this->getAllChildIds();\n\n $categoryIds = array_merge($categoryIds, $chilsIds);\n $posts = Post::whereIn('category_id', $categoryIds)\n ->latest()\n ->get();\n return $posts;\n }", "title": "" }, { "docid": "293e35553f951f761e9c1ba8eb711c29", "score": "0.6062365", "text": "public function getPostsQuery()\r\n\t{\r\n\t\t$sql = \"SELECT p.*, DATE_FORMAT(p.created, '%D %M %Y') as friendly_created_post, pr.name as creator_friendly_post FROM posts p, profile pr WHERE pr.user_id=p.creator AND p.topic=\" . $this->id;\r\n\t\treturn $sql;\r\n\t}", "title": "" }, { "docid": "b92e2fc307111143065b60b9d7f79530", "score": "0.6034196", "text": "public function getPosts(){\r\n\t\t$sql = \"SELECT idPost, tituloPost, post, fechaPost, tipoPost, tutoria, idEstado FROM posts INNER JOIN tipoposts USING(idTipoPost) INNER JOIN tutorias USING(idTutoria) ORDER BY tituloPost\";\r\n\t\t$params = array(null);\r\n\t\treturn Database::getRows($sql, $params);\r\n\t}", "title": "" }, { "docid": "c300e11b7a38bd4ed6b1cde71f50b975", "score": "0.6017077", "text": "public function objects() {\n\t\treturn $this->collection()->map( 'get_post' );\n\t}", "title": "" }, { "docid": "3e0b7ef3f7a16b4ce5de36c458f92dd6", "score": "0.6010518", "text": "public function getPosts()\n {\n $db = $this->dbConnect();\n $req = $db->query('SELECT id, author_first_name, author_last_name, title, intro, content, DATE_FORMAT(last_update_date, \\'%d/%m/%Y à %Hh%i\\') AS last_modif_date_fr FROM post ORDER BY last_update_date DESC');\n\n return $req;\n }", "title": "" }, { "docid": "60b0db569987cafb70c44adadf7bc9d2", "score": "0.6006662", "text": "public static function get_post()\n {\n\n $crud = new Crud();\n $table = 'posts';\n $crud->select_all_posts($table, array('id', 'angel_id', 'title', 'service_type', 'mobile', 'location', 'description', 'availability', 'hourly_price', 'years_of_experience'));\n\n return $crud->getResult();\n\n }", "title": "" }, { "docid": "528f69ce80c95b059f32ff9df65f0212", "score": "0.59968287", "text": "public function posts() {\n\t\treturn $this->belongsToMany(Post::class); // belongsToMany() PERTENE Y TIENE MUCHOS\n\n\t}", "title": "" }, { "docid": "86b0f805e4565e7bbe8775336cb61160", "score": "0.59864247", "text": "public function findAllPosts() : ResultSetInterface;", "title": "" }, { "docid": "2a3853d17c7236211bf0c089d520db80", "score": "0.59771425", "text": "public function paginatePosts($request): object\n {\n $posts = Post::whereHas('category', function ($query) {\n $query->active();\n })\n ->whereHas('user', function ($query) {\n $query->active();\n })\n ->typePost()\n ->when($request->filled('keyword'), function ($query) use ($request) {\n $query->search($request->keyword, null, true)->get();\n })\n ->when($request->filled('category'), function ($query) use ($request) {\n $categoryId = Category::whereSlug($request->category)->active()->firstOrFail()->id;\n $query->whereCategoryId($categoryId)->get();\n })\n ->when($request->filled('tag'), function ($query) use ($request) {\n $tagSlug = $request->tag;\n $query->whereHas('tags', function ($query)use($tagSlug){\n $query->whereSlug($tagSlug);\n });\n })\n ->when($request->filled('author'), function ($query) use ($request) {\n $username = $request->author;\n $query->whereHas('user', function ($query)use($username){\n $query->whereUsername($username);\n });\n })\n ->when($request->filled('archive'), function ($query) use ($request) {\n $date = explode('-', $request->archive);\n $month = $date[0];\n $year = $date[1];\n $query->whereMonth('created_at', $month)\n ->whereYear('created_at', $year)\n ->get();\n })\n ->active()\n ->latest('id')\n ->paginate($this->paginationCount);\n\n if (!$posts->count()) throw new QueryNotFoundException;\n\n return $posts;\n }", "title": "" }, { "docid": "8709fe7510d992256a5c0ef0b042a50a", "score": "0.5970636", "text": "public function posts()\n {\n return $this->morphToMany('Agency\\Post');\n }", "title": "" }, { "docid": "2d47cb610cff2410512cbf4dca8f4555", "score": "0.5967149", "text": "public function query()\n {\n $query = Category::query()\n ->with('articles');\n\n if ($this->isOrderedWithDefaultOrder()) {\n $query->latest();\n }\n\n if ($this->site) {\n $query->where('site_id', $this->site->id);\n } else {\n $query->whereNull('site_id');\n }\n\n return $query;\n }", "title": "" }, { "docid": "9b2e17e83c6f095a5f7ece93165f1cdc", "score": "0.59566087", "text": "public function posts() {\n return $this->hasMany(Post::class);\n }", "title": "" }, { "docid": "9b2e17e83c6f095a5f7ece93165f1cdc", "score": "0.59566087", "text": "public function posts() {\n return $this->hasMany(Post::class);\n }", "title": "" }, { "docid": "02a7f37dfad02eda1616c984384a95a8", "score": "0.593055", "text": "public function getPostList() {\n $limit = 0;\n $data = postModel::where(\"post_type\", '!=', \"page\")\n ->when($limit, function ($query) use ($limit) {\n if ($limit > 0) {\n return $query->limit($limit);\n }\n })\n ->get();\n\n /* * *\n * user info\n */\n foreach ($data as $key => $val) {\n $userDetail = postModel::find($val->id)->UserInfo;\n $data[$key]->userDetail = $userDetail;\n if (isset($val->updated_by) && !empty($val->updated_by)) {\n $updateByUserDetail = postModel::find($val->updated_by)->UserInfo;\n $data[$key]->updateByUserDetail = $updateByUserDetail;\n }\n }\n\n return $data;\n }", "title": "" }, { "docid": "960f0e3936aada3d725fdb11f982ebdf", "score": "0.59291446", "text": "public function posts()\n {\n return $this->hasMany(Post::class)->orderBy('created_at', 'DESC');\n }", "title": "" }, { "docid": "5ca5f71702e22c70e3a6802794c653b9", "score": "0.59257233", "text": "public function getPosts();", "title": "" }, { "docid": "ba21e6557d83776b08a9656d9319a923", "score": "0.59098375", "text": "public function posts() {\n\t\t$meta_boxes = rwmb_get_registry( 'meta_box' )->get_by( array(\n\t\t\t'object_type' => 'post',\n\t\t) );\n\t\tforeach ( $meta_boxes as $meta_box ) {\n\t\t\t$fields = array_filter( $meta_box->fields, array( $this, 'has_admin_columns' ) );\n\t\t\tif ( empty( $fields ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$table = isset( $meta_box->meta_box['table'] ) ? $meta_box->meta_box['table'] : '';\n\n\t\t\tforeach ( $meta_box->post_types as $post_type ) {\n new Post( $post_type, $fields, $table );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "260e42d9a43e2959d59b74a12642c816", "score": "0.5898727", "text": "public function posts()\n {\n return $this->hasMany(Post::class);\n }", "title": "" }, { "docid": "260e42d9a43e2959d59b74a12642c816", "score": "0.5898727", "text": "public function posts()\n {\n return $this->hasMany(Post::class);\n }", "title": "" }, { "docid": "260e42d9a43e2959d59b74a12642c816", "score": "0.5898727", "text": "public function posts()\n {\n return $this->hasMany(Post::class);\n }", "title": "" }, { "docid": "260e42d9a43e2959d59b74a12642c816", "score": "0.5898727", "text": "public function posts()\n {\n return $this->hasMany(Post::class);\n }", "title": "" }, { "docid": "260e42d9a43e2959d59b74a12642c816", "score": "0.5898727", "text": "public function posts()\n {\n return $this->hasMany(Post::class);\n }", "title": "" }, { "docid": "260e42d9a43e2959d59b74a12642c816", "score": "0.5898727", "text": "public function posts()\n {\n return $this->hasMany(Post::class);\n }", "title": "" }, { "docid": "260e42d9a43e2959d59b74a12642c816", "score": "0.5898727", "text": "public function posts()\n {\n return $this->hasMany(Post::class);\n }", "title": "" }, { "docid": "260e42d9a43e2959d59b74a12642c816", "score": "0.5898727", "text": "public function posts()\n {\n return $this->hasMany(Post::class);\n }", "title": "" }, { "docid": "260e42d9a43e2959d59b74a12642c816", "score": "0.5898727", "text": "public function posts()\n {\n return $this->hasMany(Post::class);\n }", "title": "" }, { "docid": "ba265b71ca5c69bfb48432fa556e1cd8", "score": "0.58858234", "text": "public function getTagPost(): ActiveQuery\n {\n return $this->hasMany(\n TagPost::class, ['post_id' => 'id']\n );\n }", "title": "" }, { "docid": "f752e5053350f19c42772487d25a2c17", "score": "0.5885409", "text": "public function posts()\n {\n return $this->hasMany(Post::class); //indica que en cada blog hay varios post\n }", "title": "" }, { "docid": "3bd00bf13761aaf2efd5eb085c91a288", "score": "0.58792895", "text": "function GetPosts () {\n return $this->GetParents (POST, \"ORDER BY `parent_oid` DESC\");\n }", "title": "" }, { "docid": "8c8dcca662cf068f43fd56a089a29552", "score": "0.5876452", "text": "protected function buildContentQuery()\n {\n $order = $this->request->get('order');\n $columns = $this->request->get('columns');\n\n $domain = $this->domain;\n $module = $this->module;\n\n // Get model model class\n $modelClass = $module->model_class;\n\n // Check if the class exists\n if (!class_exists($modelClass)) {\n return false;\n }\n\n // Filter on domain if column exists\n if (Schema::hasColumn((new $modelClass)->getTable(), 'domain_id')) {\n $query = $modelClass::where('domain_id', $domain->id);\n } else {\n $query = $modelClass::query();\n }\n\n // Search by column\n foreach ($columns as $fieldName => $column) {\n if (!empty($column[ \"search\" ])) {\n $searchValue = $column[ \"search\" ];\n } else {\n $searchValue = null;\n }\n\n // Get field by name and search by field column\n $field = $module->getField($fieldName);\n if (isset($searchValue) && !is_null($field)) {\n $uitype = uitype($field->uitype_id);\n $query = $uitype->addConditionToSearchQuery($query, $field, $searchValue);\n }\n }\n\n // Order results\n if (!empty($order)) {\n foreach ($order as $fieldColumn => $value) {\n if (!is_null($field)) {\n $query = $query->orderBy($fieldColumn, $value);\n }\n }\n }\n\n return $query;\n }", "title": "" }, { "docid": "a98586e1f4199db6276b21d14c574369", "score": "0.5857935", "text": "public function getPostList()\n {\n return $this->postDao->getPostList();\n }", "title": "" }, { "docid": "f105a05ec58dfce32e05693cf62366cc", "score": "0.58568656", "text": "public function getAllPost(){\n\n\t\t $query = \"SELECT p.*, c.catName \n\t\t FROM tbl_post as p, tbl_category as c\n\t\t WHERE p.catId = c.catId\n\t\t ORDER BY p.title DESC \"; \t\t \n \n $result = $this->db->select($query);\n return $result;\n \n\n\t}", "title": "" }, { "docid": "d63a639bae503a693cba989786f1a4a7", "score": "0.5849673", "text": "public function query() {\r\n\r\n\t\t$orderby\t= isset( $_GET['orderby'] ) ? $_GET['orderby'] : 'date';\r\n\t\t$order\t\t= isset( $_GET['order'] ) ? $_GET['order'] : 'DESC';\r\n\t\t$endDay\t\t= date( \"t\", strtotime( sprintf( \"%1u-%02u-01\", $this->get_to_year(), $this->get_to_month() ) ) );\r\n\r\n\t\t$args = array(\r\n\t\t\t'post_type' \t\t=> 'moss_submission',\r\n\t\t\t'posts_per_page' \t=> -1,\r\n\t\t\t'fields'\t\t\t=> 'ids',\r\n\t\t\t'post_status'\t\t=> array( 'publish', STATE_UNKNOWN, STATE_NOT_GENERATED, STATE_FAILED, STATE_GENERATED ),\r\n\t\t\t'orderby'\t\t\t=> array( \"$orderby\" => \"$order\" ),\r\n\t\t\t'date_query' => array(\r\n\t\t\t\tarray(\r\n\t\t\t\t\t'after' => array(\r\n\t\t\t\t\t\t'year' => $this->get_from_year(),\r\n\t\t\t\t\t\t'month' => $this->get_from_month(),\r\n\t\t\t\t\t\t'day' => 1,\r\n\t\t\t\t\t),\r\n\t\t\t\t\t'before' => array(\r\n\t\t\t\t\t\t'year' => $this->get_to_year(),\r\n\t\t\t\t\t\t'month' => $this->get_to_month(),\r\n\t\t\t\t\t\t'day' => $endDay,\r\n\t\t\t\t\t),\r\n\t\t\t\t\t'inclusive' => true,\r\n\t\t\t\t),\r\n\t\t\t)\r\n\t\t);\r\n\r\n\t\t$submissions = new \\WP_Query( $args );\r\n\r\n\t\t$this->submissions = $submissions->posts;\r\n\t}", "title": "" }, { "docid": "0b6503420c24c5bccbc275e8bafc4962", "score": "0.5846611", "text": "public function posts()\n\t{\n\t\treturn $this->hasManyThrough(\n\t\t\t'App\\Models\\Posts',\n\t\t\t'App\\Models\\Users',\n\t\t\t'countries_id',\n\t\t\t'user_id',\n\t\t\t'id',\n\t\t\t'id'\n\t\t);\n\t}", "title": "" }, { "docid": "63452ad95277641e1393ff307fe77708", "score": "0.5845324", "text": "public function getAllData()\n {\n return Post::latest()->paginate(5);\n }", "title": "" }, { "docid": "af439fc3c376710eee9a64b0460e4c93", "score": "0.5845029", "text": "public function getPaginatedPosts(): QueryBuilder\n {\n return $this->createQueryBuilder(\"p\");\n }", "title": "" }, { "docid": "497816ec6b566e1256c8a9c2fa56ba11", "score": "0.5839515", "text": "public function getPosts()\n {\n return $this->hasMany(Posts::className(), ['author_id' => 'id']);\n }", "title": "" }, { "docid": "373d8ce9097eb0354c5e91ce46cf60a3", "score": "0.5830472", "text": "public function listAll()\n {\n return array(\n 'posts' => $this->getEntityManager()->getRepository('Post\\Entity\\Post')->findall()\n );\n\n }", "title": "" }, { "docid": "dc6d063dc1f445a8ce26b636372a4d5b", "score": "0.5830318", "text": "public function getPostList()\r\n {\r\n $this->data['tag_id'] = $tag_id = Input::get('tag_id');\r\n $this->data['post_id'] = $post_id = Input::get('post_id');\r\n $this->data['type_sort'] = $type_sort = Input::get('type_sort', '');\r\n $this->data['keyword'] = $keyword = Input::get('keyword');\r\n $this->data['category_id'] = $category_id = Input::get('category_id');\r\n $this->data['keyslug'] = $keyslug = Str::slug($keyword);\r\n // Grab the news posts\r\n $this->data['pId'] = $pId = array();\r\n if ($tag_id) {\r\n $tps = TagPost::where('tag_id', $tag_id)->get();\r\n foreach ($tps as $key => $tp) {\r\n $this->data['pId'][] = $tp->post_id;\r\n }\r\n }\r\n $posts = Post::select('*')\r\n ->where(function ($query) {\r\n if ($this->data['keyslug']) {\r\n $query->where('slug', 'like', '%' . $this->data['keyslug'] . '%');\r\n }\r\n })\r\n ->where(function ($query) {\r\n if ($this->data['category_id']) {\r\n $query->where('category_id', '=', $this->data['category_id']);\r\n }\r\n })\r\n ->where(function ($query) {\r\n if (count($this->data['pId'])) {\r\n $query->whereNotIn('id', $this->data['pId']);\r\n }\r\n })\r\n ->where('post_type', 'post')\r\n ->where('status', 'published')\r\n ->orderBy('publish_date', 'DESC')\r\n ->paginate(10);\r\n\r\n $categories = Category::orderBy('showon_menu', 'ASC')->get();\r\n\r\n // Show the page\r\n return View::make('backend/news/postlist', compact('posts', 'categories', 'category_id', 'keyword', 'tag_id', 'post_id', 'type_sort'));\r\n }", "title": "" }, { "docid": "eb45e39242043f0370c30c743eeca2fd", "score": "0.5828324", "text": "protected function listPosts()\n {\n //$posts = ServiceIndex::paginate(1);\n \t$id = $this->param('id');\n \t\n \t/*\n \t * List all the posts, eager load their categories\n \t */\n \t$posts = ServiceIndex::where('id', $id)->first();\n\n return $posts;\n }", "title": "" }, { "docid": "b841aaf4984a66ce91a8b34a1017bf2e", "score": "0.5815535", "text": "private function getAllPosts() {\n\t\t$sql = \"SELECT * FROM posts\";\n\n\n\t\t// Run the query and capture result\n\t\t$result = $this->dbc->query($sql);\n\n\n\n\t\t// Extra the data via $result = $result->fetch_all(MYSQLI_ASSOC)\n\t\t$result = $result->fetch_all(MYSQLI_ASSOC);\n\n\t\t$this->data['allPosts'] = $result;\n\n\t}", "title": "" }, { "docid": "bfa1a61585d08fc60b5dabc2497f6763", "score": "0.5810654", "text": "public function posts()\n {\n // Data for the `posts` table\n\n $this->posts['spark'] = factory(Post::class)->create([\n 'title' => 'Spark & Storage',\n 'body' => 'I\\'ve been wanting to start blogging more frequent development updates and now is a great time to start!'\n ]);\n\n $this->posts['lumen'] = factory(Post::class)->create([\n 'title' => 'How Lumen Is Benchmarked',\n 'body' => 'I\\'ve received a few tweets asking me to demonstrate how Lumen is benchmarked against Silex and Slim.'\n ]);\n\n $this->posts['thought'] = factory(Post::class)->create([\n 'title' => 'Thought Police',\n 'body' => 'Programmers are an interesting bunch – brimming with passion and pride in the shadows of our mansions. They\\'re beautiful, our mansions of bits and bytes. But, do you know what gets us worked up? The neighbor\\'s yard – and their kids… Lord knows they need a tutor. They probably don\\'t even code to an interface. Gross. I mean, it\\'s dangerous.'\n ]);\n\n $this->posts['positive'] = factory(Post::class)->create([\n 'title' => 'Starting Positive',\n 'body' => 'In the past, fishermen have used the color of the morning sky to predict if the day\\'s weather will be suitable for sailing. Like the fishermen, I\\'ve found that the day\\'s beginnings paint a preview of its course. Start positive, and it\\'s easier to ride the good vibes for the rest of the day.'\n ]);\n\n $this->posts['inspired'] = factory(Post::class)->create([\n 'title' => 'PHP Developers Who Have Inspired Me',\n 'body' => 'Tonight I want to write a quick post and mention a few PHP developers who have inspired me lately. I\\'ll name them and share a few reflections on how they have inspired me over the past few months.'\n ]);\n }", "title": "" }, { "docid": "b417b3f90aeb6f86ecf9df589b78016d", "score": "0.5803784", "text": "public static function all() {\n\n $class_name = get_called_class();\n $post_type = strtolower( $class_name );\n\n $query = array(\n 'posts_per_page' => -1,\n 'post_type' => $post_type,\n 'post_status' => 'any',\n 'perm' => 'readable',\n );\n\n $posts = get_posts( $query );\n\n $collection = call_user_func_array( array( 'self', 'init_instance' ) , array($posts, $class_name) );\n return new WP_Coach_Collection($collection);\n }", "title": "" }, { "docid": "76d7b4e714e8b421f68169e45a5eedb2", "score": "0.5790501", "text": "public function query()\n {\n return $this->model->newQuery()->with($this->with);\n }", "title": "" }, { "docid": "f37f24e0aa8c90a452a351bf5287144b", "score": "0.57883734", "text": "public function publishedPostsAction()\n {\n $this->routeParam()->mapPageTo($this->queryService);\n\n if ($tag = $this->params()->fromRoute('tag')) {\n $collection = $this->queryService->findPublishedPostsByTag($tag);\n } else {\n $collection = $this->queryService->findPublishedPosts();\n }\n\n return $this->viewModelFactory()->createFor($collection);\n }", "title": "" }, { "docid": "50a865b4ead25b669e913414d584cd57", "score": "0.578586", "text": "public function build() {\n\t\tglobal $mb_api;\n\n\t\tif (! $this->confirm_auth() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\textract($mb_api->query->get(array('id', 'slug', 'post_id', 'post_slug', 'category_id', 'category_slug', 'category_id_and', 'category_slug_and')));\n\t\tif ($id || $post_id) {\n\t\t\tif (!$id) {\n\t\t\t\t$id = $post_id;\n\t\t\t}\n\t\t\t$posts = $mb_api->introspector->get_posts(array(\n\t\t\t\t'p' => $id,\n\t\t\t\t'posts_per_page' => -1 \n\t\t\t), true);\n\t\t} else if ($slug || $post_slug) {\n\t\t\tif (!$slug) {\n\t\t\t\t$slug = $post_slug;\n\t\t\t}\n\t\t\t$posts = $mb_api->introspector->get_posts(array(\n\t\t\t\t'name' => $slug,\n\t\t\t\t'posts_per_page' => -1 \n\t\t\t), true);\n\t\t} else if ($category_id) {\n\t\t\t$posts = $mb_api->introspector->get_posts(array(\n\t\t\t\t'cat' => $category_id,\n\t\t\t\t'posts_per_page' => -1 \n\t\t\t), true);\n\t\t} else if ($category_slug) {\n\t\t\t$posts = $mb_api->introspector->get_posts(array(\n\t\t\t\t'category_name' => $category_slug,\n\t\t\t\t'posts_per_page' => -1 \n\t\t\t), true);\n\t\t} else if ($category_id_and) {\n\t\t\t$posts = $mb_api->introspector->get_posts(array(\n\t\t\t\t'category__and' => $category_and,\n\t\t\t\t'posts_per_page' => -1 \n\t\t\t), true);\n\t\t} else if ($category_slug_and) {\n\t\t\t$cat_index = $this->get_category_index(\"slug\");\n\t\t\t$cat_slugs = split(\",\", $category_slug_and);\n\t\t\t$category_id = array ();\n\t\t\tforeach ($cat_slugs as $slug) {\n\t\t\t\t$category_id[] = $cat_index[\"categories\"][$slug]->id;\n\t\t\t}\n\t\t\t$posts = $mb_api->introspector->get_posts(array(\n\t\t\t\t'category__and' => $category_id,\n\t\t\t\t'posts_per_page' => -1 \n\t\t\t), true);\n\t\t} else {\n\t\t\t$mb_api->error(\"Include 'id' or 'slug' var in your request.\");\n\t\t}\n\n\t\t\n\t\t\n\t\t\t\t\n\t\treturn $this->posts_result($posts);\n\t}", "title": "" }, { "docid": "cefac38010e38a20b73a3f9b1d6a7ff5", "score": "0.57837677", "text": "public function posts()\n {\n return $this->hasMany('Post');\n }", "title": "" }, { "docid": "ee2cb967bd811175d56b5cea7c4b434c", "score": "0.57790756", "text": "public function retrieveAllPosts() {\n pg_prepare($this->databaseConnection, \"\", PostManager::QUERY_GET_ALL_POSTS);\n $query = pg_execute($this->databaseConnection, \"\", array());\n return pg_fetch_all($query);\n }", "title": "" }, { "docid": "8606656a1222bf43fce7ededfe5b0e00", "score": "0.5778557", "text": "public function getPostCollection()\n\t{\n\t\treturn Mage::getResourceModel('wordpress/post_collection')->addPostTypeFilter($this->getPostType());\n\t}", "title": "" }, { "docid": "487964fb9d303034c3d49083d33201de", "score": "0.5771189", "text": "protected function query()\n {\n return $this->modelRepository->sort('name')\n ->search([], Configuration::FETCH_QUERY);\n }", "title": "" }, { "docid": "67fbfa82f30e5ef97d64f86f494b8fae", "score": "0.57649666", "text": "public function posts()\n {\n return $this->belongsToMany(\n Post::class, // Related model\n 'post_tag', // Pivot table\n 'tag_id', // FK for the current model in Pivot table\n 'post_id', // FK for the related model in Pivto table\n 'id', // PK for current model\n 'id' // PK for related model\n );\n }", "title": "" }, { "docid": "85eb44194b3df41a8358e66b3e73f3fb", "score": "0.5764752", "text": "static public function posts() {\n\t\tglobal $wpdb;\n\n\t\t$data\t= array();\n\t\t$like\t= self::get_like();\n\t\t$types\t= explode( ',', esc_sql( $_REQUEST['fl_as_action_data'] ) );\n\t\t$types_in = join( \"', '\", array_map( 'esc_sql', $types ) );\n\n\t\t// @codingStandardsIgnoreStart\n\t\t$posts\t= $wpdb->get_results( $wpdb->prepare( \"\n\t\t\tSELECT ID, post_title FROM {$wpdb->posts}\n\t\t\tWHERE post_title LIKE %s\n\t\t\tAND post_type IN ('{$types_in}')\n\t\t\tAND post_status = 'publish'\n\t\t\", '%' . $like . '%' ) );\n\t\t// @codingStandardsIgnoreEnd\n\n\t\tforeach ( $posts as $post ) {\n\t\t\t$data[] = array(\n\t\t\t\t'name' => $post->post_title,\n\t\t\t\t'value' => $post->ID,\n\t\t\t);\n\t\t}\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "dd34e1fe927fe7fb3460f9168810bd49", "score": "0.5763374", "text": "private function get_posts() {\n $get_posts = \"SELECT * FROM blog_posts ORDER BY post_date DESC\";\n $posts = $this->Connection->Return_PDO_Array($get_posts);\n return $posts;\n }", "title": "" }, { "docid": "46061309ea8664e82123b766982de2b1", "score": "0.57630616", "text": "public function postsForManager(): Collection\n {\n return $this->categories()\n ->with('posts.language')\n ->orderBy('id', 'ASC')\n ->get()\n ->pluck('posts')\n ->filter(function ($collection) {\n return !!$collection->count();\n });\n }", "title": "" }, { "docid": "6fc6e5806af18d0b93a5e4358483c401", "score": "0.5753757", "text": "public function getAllPosts(): array\n {\n return $this->createQueryBuilder(\"p\")\n ->addSelect(\"c\")\n ->join(\"p.comments\", \"c\")\n ->getQuery()\n ->getResult()\n ;\n }", "title": "" }, { "docid": "a7f5bddda1fa5f9a7e5c6f9e42d7d839", "score": "0.5752729", "text": "public function getPostsPublished(){\n $posts = array();\n $sql = \"SELECT * FROM posts WHERE deleted=0 and published IS NOT NULL\";\n $stmt = $this->pdo->prepare($sql);\n $stmt->execute();\n $result = $stmt->fetchAll(PDO::FETCH_CLASS);\n foreach($result as $row){\n $post = $this->mapPost($row);\n array_push($posts, $post);\n }\n return $posts;\n }", "title": "" }, { "docid": "882e55b0f0bd1c7a41848c9fd6e75647", "score": "0.5740935", "text": "public static function listPosts(){\n\t\t$query = 'SELECT * FROM posts ORDER BY id DESC';\n\n\t\t$result = DB::query($query, null, PDO::FETCH_OBJ);\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "e34b0d77aee4f1376d56697d89369dab", "score": "0.5740316", "text": "public function query() {\n $query = parent::query();\n // Add in book parent child relationships.\n $query->join('book', 'b', 'n.nid = b.nid');\n $query->addField('b', 'bid', 'book_id');\n $query->join('menu_links', 'ml', 'b.mlid = ml.mlid');\n $query->addField('ml', 'weight', 'book_weight');\n return $query;\n }", "title": "" }, { "docid": "96d376925047fcefdc2cb1b49b615033", "score": "0.5740225", "text": "public function posts() {\n return Media::select('medias.id as post_id', 'medias.description as description', 'medias.url as file_url', 'medias.type as file_type', 'medias.created_at', 'medias.updated_at', 'users.name as poster_name', 'users.id as poster_id', 'users.username as poster_username', 'users.email as poster_email', 'users.profile_picture')\n ->join('group_media', 'medias.id', '=', 'group_media.media_id')\n ->join('groups', 'group_media.group_id', '=', 'groups.id')\n ->join('group_user', 'groups.id', '=', 'group_user.group_id')\n ->join('users', 'group_user.user_id', '=', 'users.id')\n ->where('users.id', $this->id);\n }", "title": "" }, { "docid": "d4919294c35647be457d82937d48242e", "score": "0.57355183", "text": "public function query()\n {\n $query = $this->repository->getItemsQuery([\n 'columns' => ['status_id', 'created_at', 'updated_at', 'publish_date'],\n 'relations' => ['status'],\n ]);\n\n return $query;\n }", "title": "" }, { "docid": "0e1f00628cb87825dc132321a538462e", "score": "0.5722822", "text": "public function posts() {\n return $this->hasMany(Post::class);\n }", "title": "" }, { "docid": "4feaee3c6a4615b3cb22c0a5bb211df4", "score": "0.57224244", "text": "protected function query()\n {\n return $this->model->newQuery()->with($this->with)->orderBy($this->orderBy,$this->orderDirection);\n }", "title": "" }, { "docid": "39918d68e4b0ad1792cfd62166c79a60", "score": "0.5722411", "text": "public function allPosts($scope = null)\n {\n $query = Query::select('blogposts')->order('id DESC');\n \n // scope\n \n switch($scope)\n {\n case 'all':\n $query = $query->where('status IN(\"published\", \"draft\")');\n break;\n \n case 'drafts':\n $query = $query->where('status', 'draft');\n break;\n \n case 'published':\n $query = $query->where('status', 'published');\n break;\n \n case 'trash':\n $query = $query->where('status', 'trash');\n break;\n }\n \n //--\n \n return $query->act();\n }", "title": "" }, { "docid": "42585558f966b7da0099fc99307d48cd", "score": "0.57210344", "text": "function wc_db_get_post_list($start=false, $limit=false, $bodies=false, $filter=\"\", $tag=\"\", $post_ids=false, $current=true) {\n\n global $WCDB, $WC;\n\n $bodies = (bool)$bodies;\n\n if(!$bodies){\n $fields = \"post_id, subject, post_date, user_id\";\n } else {\n $fields = \"*\";\n }\n\n\n $sql = \"select SQL_CALC_FOUND_ROWS $fields from {$WC['posts_table']} \";\n\n $where = array();\n\n if($tag){\n $tag = $WCDB->escape((string)$tag);\n\n $sql.= \"inner join {$WC['tags_table']} on\n {$WC['posts_table']}.post_id={$WC['tags_table']}.post_id and\n {$WC['tags_table']}.tag='$tag' \";\n\n }\n\n if($filter) {\n\n $where[] = wc_db_create_like_string(array(\"subject\", \"body\"), $filter);\n }\n\n if($post_ids!=false && is_array($post_ids)){\n $WCDB->escape($post_ids, \"int\");\n if(count($post_ids)){\n $where[] = \"post_id in (\".implode(\",\", $post_ids).\")\";\n }\n }\n\n if($current) {\n $now = time();\n $where[] = \"post_date < $now and published=1\";\n }\n\n if(count($where)){\n $sql.= \" where \".implode(\" and \", $where);\n }\n\n $sql.= \" order by post_date desc\";\n\n if(is_numeric($start) && is_numeric($limit)){\n $sql.= \" limit $start, $limit\";\n }\n\n $WCDB->query($sql);\n\n $posts = array();\n\n while($row = $WCDB->fetch()){\n\n // seed comment count and tags\n $row[\"comment_count\"] = 0;\n $row[\"tags\"] = array();\n\n $posts[$row[\"post_id\"]] = $row;\n\n $user_ids[$row[\"post_id\"]] = $row[\"user_id\"];\n }\n\n $sql = \"select found_rows() as total\";\n $total = $WCDB->query_fetch($sql, WC_DB_FETCH_VALUE, \"total\");\n\n if(!empty($posts)){\n\n // get users\n $sql = \"select user_id, user_name from {$WC['users_table']} where user_id in (\".implode(\",\", $user_ids).\")\";\n $WCDB->query($sql);\n\n while($row = $WCDB->fetch()){\n $usernames[$row[\"user_id\"]] = $row[\"user_name\"];\n }\n\n foreach($user_ids as $post_id=>$user_id){\n $posts[$post_id][\"user_name\"] = $usernames[$user_id];\n }\n\n // get tags\n $sql = \"select post_id, tag from {$WC['tags_table']} where post_id in (\".implode(\",\", array_keys($posts)).\")\";\n\n $WCDB->query($sql);\n\n\n while($row = $WCDB->fetch()){\n $posts[$row[\"post_id\"]][\"tags\"][] = $row[\"tag\"];\n }\n\n\n // get comment count\n $sql = \"select post_id, count(*) as count from {$WC['comments_table']} where post_id in (\".implode(\",\", array_keys($posts)).\") and status='APPROVED' group by post_id\";\n\n $WCDB->query($sql);\n\n while($row = $WCDB->fetch()){\n if(!empty($row[\"post_id\"])){\n $posts[$row[\"post_id\"]][\"comment_count\"] = $row[\"count\"];\n }\n }\n\n }\n\n return array($posts, $total);\n\n}", "title": "" }, { "docid": "0580a836890190c934d5a023e85613d3", "score": "0.5715136", "text": "function all(){\n\t\t $query = \"SELECT * FROM posts\";\n\n\t\t $posts = array();\n\n\t\t // Thuc thi cau lenh truy van co so du lieu\n\t\t $result = $this->connection->query($query);\n\n\t\t while($row = $result->fetch_assoc()) { \n\t\t \t$posts[] = $row;\n\t\t }\n\n\t\t return $posts;\n\t\t}", "title": "" }, { "docid": "0de2b603263b6e84026fae842dc2f5e8", "score": "0.5708408", "text": "public function get_posts() {}", "title": "" }, { "docid": "e0b0e9411a032e2baf874528cea2a6ae", "score": "0.57017106", "text": "protected function retrieve_posts()\n {\n }", "title": "" }, { "docid": "03a9d926a01c1d1a24363a1696b5db25", "score": "0.5701337", "text": "public function index(Request $request, Post $posts)\n {\n $paginator = $request->get('perPage');\n\n // Load list posts\n $posts = $posts->ofLocale(app()->getLocale())\n ->when($this->type_post, function ($query) {\n /**@var \\Illuminate\\Database\\Eloquent\\Builder $query */\n $query->where('type', $this->type_post);\n })\n ->when($request->input('title'), function (\n $query\n ) use ($request) {\n /**@var \\Illuminate\\Database\\Eloquent\\Builder $query */\n $query->where('title', 'LIKE', '%'.$request->input('title').'%');\n })\n ->when($request->input('year'), function ($query) use ($request) {\n /**@var \\Illuminate\\Database\\Eloquent\\Builder $query */\n $query->whereHas('metas', function ($query) use ($request) {\n /**@var \\Illuminate\\Database\\Eloquent\\Builder $query */\n $query->where('meta_key', '=', 'event')->whereRaw(/**@lang MySQL */\n 'YEAR(JSON_EXTRACT_NESTED(meta_value,\"date\")) = '.intval($request->input('year')));\n });\n })\n ->when($request->input('day'), function ($query) use ($request) {\n /**@var \\Illuminate\\Database\\Eloquent\\Builder $query */\n $query->whereHas('metas', function ($query) use ($request) {\n /**@var \\Illuminate\\Database\\Eloquent\\Builder $query */\n $query->where('meta_key', '=', 'event')->whereRaw(/**@lang MySQL */\n 'DAY(JSON_EXTRACT_NESTED(meta_value,\"date\")) = '.intval($request->input('day')));\n });\n })\n ->when($request->input('month'), function ($query) use ($request) {\n /**@var \\Illuminate\\Database\\Eloquent\\Builder $query */\n $query->whereHas('metas', function ($query) use ($request) {\n /**@var \\Illuminate\\Database\\Eloquent\\Builder $query */\n $query->where('meta_key', '=', 'event')->whereRaw(/**@lang MySQL */\n 'MONTH(JSON_EXTRACT_NESTED(meta_value,\"date\")) = '.intval($request->input('month')));\n });\n })\n ->sortable([$request->get('sort') => $request->get('direction')])\n ->orderBy('id', 'desc')\n ->paginate($paginator);\n\n $return = [\n 'data' => $this->loadTransformDataPost($posts),\n 'links' => $posts->links(),\n 'banner' => $this->loadBannerTop($this->returnDataIndex['plugins']['slug']),\n ];\n\n // load SEO\n $this->loadSeoData($this->returnDataIndex['plugins']['slug']);\n\n return view($this->returnDataIndex['view'], array_merge($return, $this->returnDataIndex['plugins']));\n }", "title": "" }, { "docid": "dc8d8226aa1a73d502d6a9666d5ec325", "score": "0.5699074", "text": "public function scopeGetPosts($query, $id){\t\n\t\treturn Posts::\tselect('id', 'content as name', 'updated_at', 'author', DB::raw('\"post\" as type')/*, author*/)\n\t\t\t\t\t\t\t->where('classID', $id)\n\t\t\t\t\t\t\t->get()->sortByDesc('updated_at');;\n\t}", "title": "" }, { "docid": "0d05b2afa567ad4110dedffd5eccd200", "score": "0.5693354", "text": "public function posts()\n {\n \treturn $this->belongsToMany(Post::Class);\n }", "title": "" }, { "docid": "ec293ea10397a78108d43170a47f4840", "score": "0.56878275", "text": "public function postsForEditor(): Collection\n {\n return $this->categories()->with('posts.language')\n ->orderBy('id', 'ASC')\n ->get()\n ->pluck('posts')\n ->filter(function ($collection) {\n return !!$collection->count();\n });\n }", "title": "" } ]
383056e5489ac1ff70339e99abb14aec
end of setApikey Getter for the APIkey no input
[ { "docid": "64299bd4021c858ae0c54dd957dacfd3", "score": "0.8180407", "text": "private function getApikey ()\n {\n return $this->_apikey;\n }", "title": "" } ]
[ { "docid": "77ca18519b5daed15e85edd57760214e", "score": "0.823187", "text": "private function getApikey() {\n\t\treturn $this->_apikey;\n\t}", "title": "" }, { "docid": "86581062320c63b0b5c3db5c4cca5233", "score": "0.7901677", "text": "public function getApi_Key() { return $this->api_Key; }", "title": "" }, { "docid": "b0235acfe1a511ef10b29c74b541bbee", "score": "0.7834549", "text": "public static function req_api_key(){\n return \"1234\";\n }", "title": "" }, { "docid": "eafb6433bf9e70cd974dac42fe388f68", "score": "0.7810798", "text": "protected function guessAndSetAPIKey($key){}", "title": "" }, { "docid": "d24680d0fd69c0fcd6d3307f982d34ab", "score": "0.77461505", "text": "public function getApikey()\n {\n return isset($this->apikey) ? $this->apikey : null;\n }", "title": "" }, { "docid": "a18ade4bb1252a7e0d65d0f21f3ec747", "score": "0.7713411", "text": "abstract public function getApiKey();", "title": "" }, { "docid": "39826665b33e85c0702e6bf9da81c8d3", "score": "0.769366", "text": "private function setApikey ($apikey)\n {\n $this->_apikey = (string) $apikey;\n }", "title": "" }, { "docid": "0e0c70e630f718d64e8201dbc9a0a7c8", "score": "0.7690215", "text": "private function setApiKey(): void\n\t{\n\t\tif (($params = $this->getParams()) && !empty($params['api_key'])) {\n\t\t\t$this->apiKey = $params['api_key'];\n\t\t} else {\n\t\t\tthrow new \\App\\Exceptions\\IllegalValue('You must fist setup Api Key in Config Panel', 403);\n\t\t}\n\t}", "title": "" }, { "docid": "e6b647f1f1701d2fc73b23a7dd66901a", "score": "0.7593086", "text": "private function setApikey($apikey)\n\t{\n\t\t$this->_apikey = (string) $apikey;\n\t}", "title": "" }, { "docid": "f2aef66355d071b36abea5f5bba71139", "score": "0.7541654", "text": "public function setapi_key($value);", "title": "" }, { "docid": "9885ee2e03f895d7829e31cfef6a4488", "score": "0.7508509", "text": "public function set_api_key($api_key) {\r\n\t\t$this->api_key = $api_key;\r\n\t}", "title": "" }, { "docid": "a1cc3ffea65ea7d0d3e36905bdac34d9", "score": "0.7501892", "text": "public function updateApikey()\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "60a9aed5e5a954236cf5e6e9f5453cb9", "score": "0.7491649", "text": "public static function setApiKey( $_api_key ) {\n self::$api_key = $_api_key;\n }", "title": "" }, { "docid": "9725a476046aa6d6b86db394ff4472fe", "score": "0.74357426", "text": "public function getApikey()\n {\n return ($this->instanceApikey) ? $this->instanceApikey : self::$apikey;\n }", "title": "" }, { "docid": "ecca18e46dd9a8d03b06d3f9cca0cb80", "score": "0.74217844", "text": "function BTB_RQW_APIKey(){\n\treturn (is_string($apikey = get_option('btbrqw_apikey', null)) and strlen($apikey = trim($apikey))) ? $apikey : null;\n}", "title": "" }, { "docid": "5c0e47495d992f0823c5c93fd8dc6b87", "score": "0.7369174", "text": "function getAPIKey() {\n\t\t$this->optionsTable->load('api-key');\n\t\treturn $this->optionsTable->value;\n\t}", "title": "" }, { "docid": "6cc258f985af6208e338b3b72eddd77b", "score": "0.73614407", "text": "public function getAPIKey()\n\t{\n\t\treturn $this->_api_key;\n\t}", "title": "" }, { "docid": "6cc258f985af6208e338b3b72eddd77b", "score": "0.73614407", "text": "public function getAPIKey()\n\t{\n\t\treturn $this->_api_key;\n\t}", "title": "" }, { "docid": "a1bbfbbede025ac2d17cca66b2bf067a", "score": "0.73455226", "text": "public function setApiKey($apiKey) {\n\n$this->_apikey = $apiKey;\n}", "title": "" }, { "docid": "c9020c1bb0ece1a0517c6513b541cc52", "score": "0.73246515", "text": "public function getAPIkey()\n {\n\tif(!$this->apikey){\n\t\t$this->apikey=Yii::$app->security->generateRandomString(20);\n\t\t$this->save(false);\n\t\t}\n\n\t// SET PHARMACY STATUS TO OK IF IT'S NEW\n\tif($this->pharmacy && ($this->pharmacy->status==0)){\n\t $this->pharmacy->status=1;\n\t\t$this->pharmacy->save();\n\t\t}\n\n\treturn $this->apikey;\n\n }", "title": "" }, { "docid": "3ed5dfc90533c15a5cf8cfcd9b88b7e5", "score": "0.7286751", "text": "public function getApiKey(): string;", "title": "" }, { "docid": "151cdf589fc29e146d95c7673afc02d0", "score": "0.7273281", "text": "public function setApiKey($api_key)\n {\n $this->api_key = $api_key;\n }", "title": "" }, { "docid": "80b3f14aa558bacdfbf98a93e30393e2", "score": "0.727313", "text": "public function getAPIKey()\n {\n return $this->apiKey;\n }", "title": "" }, { "docid": "97b926c1ad491e7d22767dd8960e0727", "score": "0.725612", "text": "public function getApiKey()\n {\n return $this->api_key;\n }", "title": "" }, { "docid": "d6b90587eaacf262dfa2d42a6bbdaa9f", "score": "0.72523284", "text": "public function getAPIKey()\n {\n if (isset($this->key) && $this->key !== null) {\n return $this->key;\n }\n return false;\n }", "title": "" }, { "docid": "0119adf2ad8dde488789dccf4e7b821c", "score": "0.7220682", "text": "public function getApiKey();", "title": "" }, { "docid": "0119adf2ad8dde488789dccf4e7b821c", "score": "0.7220682", "text": "public function getApiKey();", "title": "" }, { "docid": "3336fb095063433c68343b1175e95aad", "score": "0.7204999", "text": "public function getAPIKeyID()\n {\n return $this->APIKeyID;\n }", "title": "" }, { "docid": "ecf36f6aeb29299ae306bee1622a5426", "score": "0.71888506", "text": "public function getKey() {\n return $this->apikey;\n }", "title": "" }, { "docid": "e168fbb76cec510eb25252aa836a07a1", "score": "0.7160335", "text": "public function getAPIKey()\n {\n return $this->getParameter('APIKey');\n }", "title": "" }, { "docid": "16e93b49203d61a701cd303632d1f21a", "score": "0.7149736", "text": "public function set_key() {\r\n\t\tself::$options = get_option(\"pmpromc_options\");\r\n\r\n\t\t// Save the API key\r\n\t\tif (!isset(self::$options['api_key']) || empty(self::$options['api_key'])) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tself::$api_key = self::$options['api_key'];\r\n\r\n\t\t$this->url_args = array(\r\n\t\t\t'timeout' => apply_filters('pmpromc_api_timeout', 10),\r\n\t\t\t'headers' => array(\r\n\t\t\t\t'Authorization' => 'PMPro_MC ' . self::$api_key\r\n\t\t\t),\r\n\t\t);\r\n\r\n\t\t// the datacenter that the key belongs to.\r\n\t\tlist(, self::$dc) = explode('-', self::$api_key);\r\n\r\n\t\t// Build the URL based on the datacenter\r\n\t\tself::$api_url = \"https://\" . self::$dc . \".api.mailchimp.com/3.0\";\r\n\t\tself::$user_agent = 'WordPress/pmpro_addon_mc;http://paidmembershipspro.com';\r\n\t}", "title": "" }, { "docid": "894ddaae83f9e7e165f4d52f9410ebfe", "score": "0.71252203", "text": "public static function getApiKey()\n {\n $api_key = Broadstreet_Utility::getOption(Broadstreet_Core::KEY_API_KEY);\n\n if(!$api_key)\n return FALSE;\n else\n return $api_key;\n }", "title": "" }, { "docid": "75f44c7e7e998c0831dc04d0e0fbb122", "score": "0.71230006", "text": "public function getApiKey () \n {\n\n\t\t\treturn $this->apiKey;\n\t\t}", "title": "" }, { "docid": "d2839922474a09f59f489d5c11eb7077", "score": "0.710137", "text": "public function setAPI($apikey)\n\t{\n\t\t$this->api_key = $apikey;\n\t}", "title": "" }, { "docid": "680d89db54797935a39ddb008439778a", "score": "0.70912033", "text": "private function getApiKey()\n {\n if(empty($this->_apiKey))\n {\n $this->_apiKey = BamboraHelpers::generateApiKey();\n }\n\n return $this->_apiKey;\n }", "title": "" }, { "docid": "77e443362c8903227d180fa9f4d95eae", "score": "0.70907474", "text": "public function set_access_key($key=''){\r\n\t\t$this->api_key = $key;\r\n\t}", "title": "" }, { "docid": "b7999f418df67afd228916f040737822", "score": "0.70893586", "text": "public function SetApiKey( $api_key ) {\n $this->_api_key = $api_key;\n }", "title": "" }, { "docid": "906db047bbea55c48e6913b2bec35a44", "score": "0.7089171", "text": "public function __construct($api_key=NULL)\n\t{\n\t\t$this->api_key = (! empty($api_key)) ? $api_key : $this->api_key;\n\t}", "title": "" }, { "docid": "b65e0e69dd7b74c190bc128aa2bcb236", "score": "0.70728576", "text": "public function setApikey($apikey = '')\n {\n // validation for constraint: string\n if (!is_null($apikey) && !is_string($apikey)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($apikey, true), gettype($apikey)), __LINE__);\n }\n if (is_null($apikey) || (is_array($apikey) && empty($apikey))) {\n unset($this->apikey);\n } else {\n $this->apikey = $apikey;\n }\n return $this;\n }", "title": "" }, { "docid": "0b02ccbc83fa543fe27a74c6fabc2360", "score": "0.7060318", "text": "public function getApiKey(): string\n {\n return $this->apiKey;\n }", "title": "" }, { "docid": "7ea379ace94efb99242812d463fe63e4", "score": "0.70461786", "text": "private function verfiyApiKey(){\r\n\t\tif($this->apiKey != filter_input(INPUT_SERVER, 'HTTP_API_KEY')){\r\n\t\t\t$this->output = array('error'=>'Invalid API key.');\r\n\t\t\t$this->output();\r\n\t\t\texit();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ff22bbd8e7e6c5c2a8b24e090ac3f9bb", "score": "0.7037025", "text": "function gapi_myAPI() {\n\t\t\t$key = trim(get_option( 'googl_api_key' ) );\n\n\t\t\tif ( strlen( $key ) === 39 ) {\n\n\t\t\t\t//and if so, returns the new API key into the original plugin\n\t\t\t\treturn ( get_option( 'googl_api_key' ) );\n\t\t\t}\n\n\t\t\t//if it's not 39 characters, it defaults back to the API key that ships with the original plugin.\n\t\t\telse {\n\n\t\t\t\treturn 'AIzaSyBEPh-As7b5US77SgxbZUfMXAwWYjfpWYg';\n\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "1212fc98ed2dd9e168be57a13260a130", "score": "0.70368356", "text": "public function getApiKey()\r\n {\r\n return self::$apiKey;\r\n }", "title": "" }, { "docid": "b8a06563cacf5b615f870340c0bfaf6d", "score": "0.70268965", "text": "public function getApiKey ()\n {\n return $this->apiKey;\n }", "title": "" }, { "docid": "2a2e2e9cbc509dec9162e0c0016aa3a7", "score": "0.700487", "text": "public function getAPI()\n\t{\n\t\treturn $this->api_key;\n\t}", "title": "" }, { "docid": "3fd04a30fe7b0a31e124c58da2397757", "score": "0.700321", "text": "public static function setApikey($apikey)\n {\n self::validateApikey($apikey);\n self::$apikey = $apikey;\n }", "title": "" }, { "docid": "40e11ad9d5b8526109e79893c7ed85d2", "score": "0.69657046", "text": "private function check_api_key(){\r\n\t\t$temp_key = strtolower($this->api_key);\r\n\t\tif(empty($this->api_key) || $temp_key == 'api_key')\r\n\t\t//if(empty($this->api_key))\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}", "title": "" }, { "docid": "b62e09085de449f8766081423125c45d", "score": "0.69472235", "text": "private function setApiKey()\n {\n $this->apiKey = config('paga.apiKey');\n }", "title": "" }, { "docid": "cde621947e26de0378e6a95b96a51d38", "score": "0.69437873", "text": "public function setKey($key) {\n $this->apikey = $key;\n }", "title": "" }, { "docid": "4ed231de4dc60bd6787f672910862a61", "score": "0.6943273", "text": "public function getApihpaytokey()\n {\n return $this->apihpaytokey;\n }", "title": "" }, { "docid": "f6b17a1127ddc5c306df2d097f5c859e", "score": "0.6934598", "text": "public function getApiKey() {\n\t\treturn $this->apiKey;\n\t}", "title": "" }, { "docid": "6efd24a51b201ad59a0b85fa33e357a1", "score": "0.6927527", "text": "public function createApikey()\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "754769c9493b714f4f29121f94f30951", "score": "0.6926301", "text": "private function set_key($sApiKey) {\r\n $this->key = $sApiKey;\r\n }", "title": "" }, { "docid": "754769c9493b714f4f29121f94f30951", "score": "0.6926301", "text": "private function set_key($sApiKey) {\r\n $this->key = $sApiKey;\r\n }", "title": "" }, { "docid": "93cc6fe65f9af5ad2deb8f5c53623def", "score": "0.6917827", "text": "function phx_university_google_maps_key( $api ) {\n\n\t$api['key'] = PHX_GOOGLE_MAPS_API_KEY;\n\n\treturn $api;\n}", "title": "" }, { "docid": "22a3c9b4ced4d097bad9504c99be1f6d", "score": "0.69037247", "text": "public function testSetGetApiKey()\n {\n $apiClient = $this->makeApiClient();\n\n $this->assertNull($apiClient->getApiKey());\n $apiClient->setApiKey('abcdefg');\n $this->assertSame('abcdefg', $apiClient->getApiKey());\n $apiClient->setApiKey();\n $this->assertNull($apiClient->getApiKey());\n }", "title": "" }, { "docid": "053213363ff6909061866a1ec26354bd", "score": "0.69006705", "text": "public function validate_api_key_field ($key, $value) {\n if ($value == '') {\n // WC_Admin_Settings :: add_error (esc_html__ ( 'No data in the field - API Key', 'WooCommerce-br'));\n }\n return $value;\n }", "title": "" }, { "docid": "205c2678174d80fad15324bd193a934b", "score": "0.6889034", "text": "public function setAPIKey($domain, $key, $setAsDefault = false){}", "title": "" }, { "docid": "295b750f059f53c18e0fa3e868d725d0", "score": "0.6880887", "text": "public function getApiKey():? string\n {\n return $this->apiKey;\n }", "title": "" }, { "docid": "5f82b02920e4c75adcb0551dd2339135", "score": "0.68806857", "text": "public function getApiKey()\n {\n return $this->apiKey;\n }", "title": "" }, { "docid": "5f82b02920e4c75adcb0551dd2339135", "score": "0.68806857", "text": "public function getApiKey()\n {\n return $this->apiKey;\n }", "title": "" }, { "docid": "5f82b02920e4c75adcb0551dd2339135", "score": "0.68806857", "text": "public function getApiKey()\n {\n return $this->apiKey;\n }", "title": "" }, { "docid": "5f82b02920e4c75adcb0551dd2339135", "score": "0.68806857", "text": "public function getApiKey()\n {\n return $this->apiKey;\n }", "title": "" }, { "docid": "5f82b02920e4c75adcb0551dd2339135", "score": "0.68806857", "text": "public function getApiKey()\n {\n return $this->apiKey;\n }", "title": "" }, { "docid": "5f82b02920e4c75adcb0551dd2339135", "score": "0.68806857", "text": "public function getApiKey()\n {\n return $this->apiKey;\n }", "title": "" }, { "docid": "5f82b02920e4c75adcb0551dd2339135", "score": "0.68806857", "text": "public function getApiKey()\n {\n return $this->apiKey;\n }", "title": "" }, { "docid": "7f31496d3ee60dba31b51284726f46a6", "score": "0.6835738", "text": "static function GetAllApiKeys();", "title": "" }, { "docid": "9372d19cabc1ccd245fe92369ee3e0e9", "score": "0.6820834", "text": "public static function getApiKey()\n {\n return self::$apiKey;\n }", "title": "" }, { "docid": "ef5f0d2374a3d4342d1d2efe26b109fb", "score": "0.6810368", "text": "protected function _getApiKey()\n {\n return Mage::getStoreConfig(self::XML_PATH_SCRAPINGHUB_API_KEY);\n }", "title": "" }, { "docid": "25f492754067caa45ae8801659f3f6f9", "score": "0.6794304", "text": "public function setApiKey ($apiKey) \n {\n\t\t\t$this->apiKey = $apiKey;\n\t\t}", "title": "" }, { "docid": "6167aa3318dcde8e2ccc1d1225e60688", "score": "0.67914337", "text": "function get_api_key() {\n return get_config_file()['access-key'];\n}", "title": "" }, { "docid": "262d7da72f379dc0372ab483b047a42a", "score": "0.6773058", "text": "public function getApiKey()\n {\n return $this->helper->getApiKey();\n }", "title": "" }, { "docid": "a937fb4467928fd0d11a56e74e202509", "score": "0.67700803", "text": "protected function getApiKey()\n {\n if (empty($this->params)) {\n return null;\n }\n\n return $this->sandbox ? $this->params['test_api_key'] : $this->params['live_api_key'];\n }", "title": "" }, { "docid": "6f86bb4c74d7f179667e84ba3e332d19", "score": "0.6769566", "text": "public function setApiKey($api_key)\n {\n $this->api_key = $api_key;\n return $this;\n }", "title": "" }, { "docid": "750aa41c4ad0e7bb0399eea0583fc70a", "score": "0.67648757", "text": "function fields_api_key_Checking() {\n $fields_api_key_Checking = '';\n if ($this->get_option( 'api_key' )) {\n $fields_api_key_Checking = $this->get_option( 'api_key' );\n }\n return $fields_api_key_Checking;\n }", "title": "" }, { "docid": "cb71dfb344afcd0271528b8074c85620", "score": "0.67608976", "text": "public function validate_api_key() {\n\n\t\tglobal $wpdb;\n\n\t\terror_reporting(E_ALL);\n\t\tini_set('display_errors', 1);\n\n\t\trequire_once ASL_PLUGIN_PATH . 'includes/class-agile-store-locator-helper.php';\n\n\t\t$response = new \\stdclass();\n\t\t$response->success = false;\n\n\t\t//Get the API KEY\n\t\t$sql \t\t\t= \"SELECT `key`,`value` FROM \".ASL_PREFIX.\"configs WHERE `key` = 'server_key'\";\n\t\t$configs_result = $wpdb->get_results($sql);\n\n\t\tif(isset($configs_result) && isset($configs_result[0])) {\n\n\t\t\t$api_key \t\t= $configs_result[0]->value;\n\n\t\t\tif($api_key) {\n\n\t\t\t\t//Test Address\n\t\t\t\t$street \t= '1848 Provincial Road';\n\t\t\t\t$city\t\t = 'Winsdor';\n\t\t\t\t$state \t\t= 'ON';\n\t\t\t\t$zip \t\t = 'N8W 5W3';\n\t\t\t\t$country \t= 'Canada';\n\n\t\t\t\t$_address = $street.', '.$zip.' '.$city.' '.$state.' '.$country;\n\n\t\t\t\t$results = AgileStoreLocator_Helper::getLnt($_address,$api_key,true);\n\n\t\t\t\t$response->result = $results;\n\n\t\t\t\tif($results && isset($results['body'])) {\n\n\t\t\t\t\t$results \t= json_decode($results['body'], true);\n\t\t\t\t\t\n\t\t\t\t\tif(isset($results['error_message'])) {\n\n\t\t\t\t\t\t$response->msg \t = $results['error_message'];\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\n $response->msg = __('Valid API Key','asl_admin'); \n $response->success = true; \n }\n\t\t\t\t}\n\n\t\t\t\t//$response->msg \t = __('API Key is Valid','asl_admin');\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t\t$response->msg = __('Server Google API Key is Missing','asl_admin');\n\t\t}\n\t\telse\n\t\t\t\t$response->msg = __('Server Google API Key is not saved.','asl_admin');\n\n\t\techo json_encode($response);die;\n\t}", "title": "" }, { "docid": "9128cc0c2e65c9806770430cf6167a56", "score": "0.6758892", "text": "private function set_key($sApiKey) {\n $this->key = $sApiKey;\n }", "title": "" }, { "docid": "e72e3bec9b95d0ba67daa36295f5f9a6", "score": "0.6754822", "text": "public function getApiKey(): ?string\n {\n return $this->apiKey;\n }", "title": "" }, { "docid": "589c9841b0c0faace9d0857dada63ddc", "score": "0.6747471", "text": "public function __construct() {\n $this->apikey = null;\n }", "title": "" }, { "docid": "0e492a9e2521690e3d7acf6ca44cecd8", "score": "0.67026824", "text": "private static function getApiKeyword() {\n\n\t \t// Get API Keyword if is null\n\t\tif(is_null(self::$prefixApiKeyword)) {\n\t \t$defaultPrefixApiKeyword = 'api';\n\t \tself::$prefixApiKeyword = apply_filters('rootpress_RestJsonApiService_api_keyword', $defaultPrefixApiKeyword);\n\n\t }\n\n\t // Return it\n\t return self::$prefixApiKeyword;\n\t}", "title": "" }, { "docid": "d1c55c038f683182d11ac168f6178645", "score": "0.6668481", "text": "public function getAPIKey($domain = null){}", "title": "" }, { "docid": "cf7da76754b792fb3445fd57fea39e13", "score": "0.6667662", "text": "function apiGuardKey()\n {\n return Constant::API_GUARD_KEY ?? 'api';\n }", "title": "" }, { "docid": "dcc95e759b8b569c76f600139fae58b5", "score": "0.66622293", "text": "public function __construct($api_key = '') {\n\t\tif(empty($this->api_key) && empty($api_key)) {\n\t\t\tthrow new Box_Rest_Client_Exception('Invalid API Key. Please provide an API Key when creating an instance of the class, or by setting Box_Rest_Client->api_key');\n\t\t}\n\t\telse {\n\t\t\t$this->api_key = (empty($api_key))?$this->api_key:$api_key;\n\t\t}\n\t}", "title": "" }, { "docid": "da1d954eac25bedc876b73a0b731360a", "score": "0.66604364", "text": "public function setApiKey($apiKey){\n $this->apiKey = $apiKey;\n }", "title": "" }, { "docid": "d6e45244a0c5628bce6ae24837fdfbda", "score": "0.6659237", "text": "public function getApiKey()\n {\n // Priority given to explicitly set API keys on the singleton object\n if ($this->apiKey) {\n return $this->apiKey;\n }\n\n // Check config for a value defined in YAML or _config.php\n $key = Config::inst()->get(AkismetSpamProtector::class, 'api_key');\n if (!empty($key)) {\n return $key;\n }\n \n // Check environment as last resort\n if ($envApiKey = Environment::getEnv('SS_AKISMET_API_KEY')) {\n return $envApiKey;\n }\n\n return '';\n }", "title": "" }, { "docid": "fa05f38f636e9fa1e303b86a95e02a65", "score": "0.6658156", "text": "public function getApiKey()\n {\n return $this->config->getApiKey();\n }", "title": "" }, { "docid": "fa05f38f636e9fa1e303b86a95e02a65", "score": "0.6658156", "text": "public function getApiKey()\n {\n return $this->config->getApiKey();\n }", "title": "" }, { "docid": "26f08dfc2186ee28f23d7915461796a3", "score": "0.6657634", "text": "public static function getAPIKey() {\n try {\n $api_key = Utils::check_plain(Utils::getParam('api-key'));\n } catch (Exception $e) {\n throw new Exception('Unable to find the API key parameter in the URL!', -1);\n }\n\n return $api_key;\n }", "title": "" }, { "docid": "49de231b2008dec20eab25d26e11c2bd", "score": "0.66511637", "text": "public function getApiKey()\n {\n return $this->requestHandler->getApiKey();\n }", "title": "" }, { "docid": "f26689a5d71a95a39fb3b4ba961ce93e", "score": "0.66469723", "text": "public function saveApiKey($id_key = false){\n if((!$id_key && !TFW_Core::getUser()->hasRight(\"Core:settings:api:create\"))\n || ($id_key && !TFW_Core::getUser()->hasRight(\"Core:settings:api:update\"))){\n self::trigger404();\n exit;\n }\n\n $key_label = $this->key_label;\n $key_group = $this->key_group;\n $key_active = $this->key_active;\n $key_value = false;\n\n if($key_label && $key_group){\n $key = TFW_Registry::getModel(\"Core/Api_Key\");\n\n if($id_key)\n $key->load($id_key);\n\n if(!$key->isLoaded())\n $key_value = TFW_Registry::getHelper(\"Core/Text\")->generatePass();\n\n $key->label = $key_label;\n $key->id_group = $key_group;\n $key->active = ($key_active ? 1 : 0);\n if($key_value)\n $key->value = $key_value;\n\n if($key->save())\n TFW_Flash::addSuccess($this->__(\"API key saved\"));\n else\n TFW_Flash::addError($this->__(\"Unable to save API key\"));\n }\n else\n TFW_Flash::addError($this->__(\"Missing data\"));\n\n self::goToRoute(\"/settings/application/api\");\n }", "title": "" }, { "docid": "29612f5f7f8ff8b4724f9d765ce0e368", "score": "0.66263133", "text": "public function setApiKey($key)\n {\n $this->apiKey = $key;\n }", "title": "" }, { "docid": "e7d5110f9f3f1a29be8d55890b67ec53", "score": "0.662594", "text": "public function _field_api_key() {\n\t\t\t$options = get_option(EWPT_PLUGIN_SLUG);\n\t\t\techo '<input type=\"password\" class=\"regular-text\" name=\"' . EWPT_PLUGIN_SLUG . '[api_key]\" value=\"' . esc_attr($options['api_key']) . '\" />';\n\t\t}", "title": "" }, { "docid": "bbf3fff86046dc44c5ab5fe0e1087425", "score": "0.66162634", "text": "public function apikey($params = null)\n {\n validateAccess();\n switch ($_SERVER['REQUEST_METHOD']) {\n case 'POST':\n $userId = $_SESSION['userId'];\n $user = $this->user->getUser($userId);\n $user->generateApiKey();\n $user->syncSession();\n\n parent::view(\"apikey.php\", $user);\n\n break;\n\n case 'GET':\n $userId = $_SESSION['userId'];\n $user = $this->user->getUser($userId);\n\n parent::view(\"apikey.php\", $user);\n\n break;\n \n default:\n # code...\n break;\n }\n }", "title": "" }, { "docid": "b295595fbe8dc3eb4be2f781f8b4cbcc", "score": "0.6609093", "text": "public function edit(Apikey $apikey)\n {\n //\n }", "title": "" }, { "docid": "6e5396a63a9b8dcc5b251595628cafad", "score": "0.65973246", "text": "public function setApiKey($var)\n {\n GPBUtil::checkString($var, True);\n $this->api_key = $var;\n\n return $this;\n }", "title": "" }, { "docid": "7066cd5267212b72fcc779915867fca8", "score": "0.65879226", "text": "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "title": "" }, { "docid": "7066cd5267212b72fcc779915867fca8", "score": "0.65879226", "text": "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "title": "" }, { "docid": "7066cd5267212b72fcc779915867fca8", "score": "0.65879226", "text": "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "title": "" }, { "docid": "7066cd5267212b72fcc779915867fca8", "score": "0.65879226", "text": "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "title": "" }, { "docid": "7066cd5267212b72fcc779915867fca8", "score": "0.65879226", "text": "public function setAPIKey($value)\n {\n return $this->set('APIKey', $value);\n }", "title": "" } ]
d03b388b5c2bcd743860d5a3096e1c5d
Execute the console command.
[ { "docid": "5ffe8069da39afe41a7484f4661f5fb4", "score": "0.0", "text": "public function handle()\n {\n\n $this->connection = $this->argument('connection'); //指定数据库链接\n\n if(empty($this->connection)){\n return $this->error('请指定数据库链接');\n }\n $this->databases = $this->argument('databases'); //指定数据库\n if(empty($this->connection)){\n return $this->error('请指定指定数据库名称');\n }\n\n $this->tables = array_get($this->arguments('tables'),'tables'); //指定数据库表--可选\n\n $this->prefix = $this->prefix.ucfirst($this->databases).'/';\n if(empty($this->tables)){\n $this->tables = $this->getSchemaTables();\n }\n foreach ($this->tables as $tablename) {\n //$tablename = (object)$tablename;\n $tableName = isset($tablename->name) ? $tablename->name : $tablename;\n $this->generateTable($tableName);\n }\n }", "title": "" } ]
[ { "docid": "41860c81414c761042ac26245cb46fd6", "score": "0.68433106", "text": "public function handle()\n {\n $arguments = $this->argument();\n $options = $this->option();\n\n $this->writeCriteria($arguments, $options);\n $this->composer->dumpAutoloads();\n }", "title": "" }, { "docid": "c8f750b3bae71f0e2005ed5790538fbb", "score": "0.6422205", "text": "public function handle()\n {\n switch ($this->option('command')) {\n case 'create':\n $this->takeSnapShot();\n break;\n\n case 'restore':\n $this->restoreSnapShot();\n break;\n\n default:\n $this->error('Invalid Option !!');\n break;\n }\n }", "title": "" }, { "docid": "6921c8ab7ff7a3512eb299a2c84b86f7", "score": "0.6421142", "text": "public function handle()\n {\n\n $match_id = $this->argument('match_id');\n $this->match_player_score($match_id);\n }", "title": "" }, { "docid": "850563a270b7d99bcc68012e7d1f0de1", "score": "0.6407697", "text": "public function handle()\n {\n // Get the arguments.\n $arguments = $this->argument();\n // Write controller.\n $this->writeController($arguments);\n // Dump autoload.\n $this->composer->dumpAutoloads();\n }", "title": "" }, { "docid": "e614e422b3d0e24fc4524350a0989d18", "score": "0.63631994", "text": "public function handle()\n {\n $translations = $this->getTranslations();\n $this->copyTranslations(\n $translations,\n collect($this->option('locale')),\n $this->option('origin')\n );\n }", "title": "" }, { "docid": "c4c8a2720895cefe782508d2a8430d53", "score": "0.63138884", "text": "public function handle()\n {\n // if you are on the local environment\n if (!app()->isLocal()) {\n $this->error('This command is only avilable on the local environment.');\n return;\n }\n \n $name = $this->argument('name');\n \n $this->archiveTenant($name);\n }", "title": "" }, { "docid": "85d7fe239d07fb45261afb62e9cbe363", "score": "0.6291947", "text": "public function handle()\n {\n\n $this->manifest->build();\n\n $this->info( 'Package manifest generated successfully.' );\n\n }", "title": "" }, { "docid": "1f7ac97715a7f845ce40901d843a9790", "score": "0.62873244", "text": "public function handle()\n {\n $command_user = $this->argument( 'user' );\n /* 设置执行用户 */\n if( $command_user ) {\n static::setUser( $command_user );\n }\n /* 设置执行用户 */\n \n //\n static::$Logger->info( \"test\" );\n }", "title": "" }, { "docid": "e2fe5d101675a0297c20751be2a43340", "score": "0.6272963", "text": "public function handle()\n {\n $generator = SitemapGenerator::getSitemapGenerator($this->argument('extension'));\n try {\n $generator->generate($this->argument('path'), self::ITEMS_ARRAY);\n } catch (Throwable $exception) {\n echo $exception->getMessage();\n }\n }", "title": "" }, { "docid": "25564db007f7b2923f22d0da0153d503", "score": "0.6270587", "text": "public function handle()\n {\n $this->info('Generate metadataset version '.$this->argument('version'));\n\n $curricula = Curriculum::where('type_id', 1)->get();\n $this->generate($curricula, $this->argument('version'));\n\n $this->info(' ...done');\n }", "title": "" }, { "docid": "bde9714f274e58d801c296a6fb51c3c1", "score": "0.6239485", "text": "public function handle()\n {\n $this->call('mission:clear');\n\n $this->info(\n $this->prependTimestamp('Generating missions...')\n );\n\n $this->database->transaction(function () {\n $users = User::whereNotNull('started_at')->get();\n\n foreach ($users as $user) {\n $this->manager->createRand($user);\n }\n });\n\n $this->info(\n $this->prependTimestamp('Generation complete!')\n );\n }", "title": "" }, { "docid": "e64d2deec514b8a15b93b76436a32208", "score": "0.62362635", "text": "public function handle()\n {\n $this->registerCommands();\n\n $this->application->run();\n }", "title": "" }, { "docid": "03d70e7b69dd3e4fa111a4771abdcad3", "score": "0.62302315", "text": "public function handle()\n {\n $annotations = $this->option('annotations');\n $db = $this->option('db');\n\n if ($annotations) {\n PermissionsHandler::clearCachedAnnotations();\n $this->info('Annotations cache has been deleted!');\n }\n\n if ($db) {\n Cache::forget('permissionsHandler');\n $this->info('Database cache has been deleted!');\n }\n }", "title": "" }, { "docid": "8163d1da65889db1a69beb0e4a651819", "score": "0.6229836", "text": "public function handle()\n {\n $this->entity = $this->argument('entity');\n\n $this->loadSchema();\n $this->loadNaming();\n $this->loadServices();\n }", "title": "" }, { "docid": "1a61f30c5ff47b38d0e39aee0b47d6f2", "score": "0.6227346", "text": "public function handle()\n {\n $this->user = User::find($this->argument('user'));\n try {\n $this->processing();\n foreach (Game::keyValue() as $gameId => $name) {\n $this->user->cardmarketApi->syncAllArticles($gameId);\n }\n $this->processed();\n }\n catch (\\Exception $e) {\n $this->processed();\n\n throw $e;\n }\n }", "title": "" }, { "docid": "1df765b91c4cf12abaca96292cf7894c", "score": "0.6218607", "text": "public function handle()\n {\n $channel = $this->argument('channel');\n $data = $this->argument('data');\n $this->info(\"Channel {$channel}!\");\n $this->info(\"Data {$data}!\");\n $result = Redis::publish(\n $channel,\n $data\n );\n $this->info(\"Resultado {$result}!\");\n }", "title": "" }, { "docid": "54e4e9f5ef98f17976368d102a617def", "score": "0.6209011", "text": "public function handle()\n {\n \\Log::info('Executing command playerInfo:update');\n $this->pullPlayerInfo();\n \\Log::info('Executed command playerInfo:update successfully');\n }", "title": "" }, { "docid": "f8204fec2526d4addf113d541a9205f0", "score": "0.6204994", "text": "public function handle()\n {\n $renameUser = new RenameUserService();\n\n $renameUser->execute(date(\"Y-m-d H:i:s\"));\n }", "title": "" }, { "docid": "3cc629923f9227c72153d98934b8a332", "score": "0.6195348", "text": "public function handle(): void\n {\n $arg = $this->argument('file');\n $command = $this->argument('command');\n $method = (strpos($command, ':') > 0) ? explode(':', $command)[1] : '';\n\n // Execute Quantical Solutions ReactNative command\n new Listener($this, $method, $arg);\n }", "title": "" }, { "docid": "ee6187456ee2422eae6a94410cffdbb7", "score": "0.61816555", "text": "public function handle()\n {\n $name = $this->getNameInput();\n $component = $this->getComponentInput();\n $installer = $this->getInstallerInstance($component);\n $this->$name($installer, $component);\n\n $this->error(\n 'This command is about to be removed, and this development will not be supported.'.PHP_EOL.\n 'We designed a better way to develop please refer to:'.PHP_EOL.\n ' https://github.com/zhiyicx/plus-installer'\n );\n\n $this->openBrowser('https://github.com/zhiyicx/plus-installer');\n }", "title": "" }, { "docid": "ac15acc3724f92190aaab43ef30552d3", "score": "0.61689013", "text": "public function handle()\n {\n $this->ignoreTmpTables = (bool)$this->option('ignoreTmp');\n $this->ignoreMigrationsTable = (bool)$this->option('ignoreMigrations');\n\n $this->fire();\n }", "title": "" }, { "docid": "fb2195f8224349de35a1d29856f47da3", "score": "0.61428034", "text": "public function handle()\n\t{\n\t\t$name = $this->argument('name');\n\n\t\tif (!$name) {\n\t\t\t$this->error('Sitemap class name required!');\n\t\t\texit(1);\n\t\t}\n\n\t\t$class = app_path(\"Sitemap/{$name}.php\");\n\n\t\tif (file_exists($class)) {\n\t\t\t$this->error(\"{$class} already exists!\");\n\t\t\texit(2);\n\t\t} elseif (!is_dir(app_path('Sitemap'))) {\n\t\t\tmkdir(app_path('Sitemap'));\n\t\t}\n\n\t\t$bytes = file_put_contents(\n\t\t\t$class,\n\t\t\tstr_replace('{name}', $name, file_get_contents(dirname(__DIR__, 2).'/stubs/sitemap.stub'))\n\t\t);\n\n\t\tif (!$bytes) {\n\t\t\t$this->error(\"Cannot create file: {$class}\");\n\t\t\texit(3);\n\t\t}\n\t}", "title": "" }, { "docid": "d034b41eee4e6ea73acf9c7487b4954b", "score": "0.6142225", "text": "public function handle()\n {\n $id = $this->argument('id');\n $bankAccount = $this->repository->load($id);\n\n echo $bankAccount->isClosed() ? 'Closed account' : 'Account';\n echo PHP_EOL;\n\n echo \"Name: \" . $bankAccount->getName() . PHP_EOL;\n echo \"Balance: $ \" . number_format($bankAccount->getBalance());\n }", "title": "" }, { "docid": "d620abdc9b16f8ea113150dd91b93860", "score": "0.61385727", "text": "public function handle()\n {\n $this->extendToken(\n token: $this->findToken()\n );\n\n return Command::SUCCESS;\n }", "title": "" }, { "docid": "407fd99b69a0fc43bd42f95af81efc20", "score": "0.61324", "text": "public function handle()\n {\n $name = $this->argument('name');\n\n $this->call('make:seeder', [\n 'name' => 'customer\\Permission' . $name . 'Seeder',\n ]);\n }", "title": "" }, { "docid": "9c809593cb5839ef29904ecb555357ac", "score": "0.6129035", "text": "public function handle()\n {\n\n $source = Source::find($this->argument('id'));\n\n if (!$source)\n {\n return $this->error('source not found');\n }\n\n $this->info(\"Fetching...\");\n\n $start = microtime(true);\n\n $items = Fetch::source($source->id);// fetch items\n\n $end = microtime(true);\n\n $timeTaken = round($end - $start, 2);\n \n $this->line(\"Collected {$items} items from source {$source->id} ({$source->url}) in {$timeTaken} seconds.'\");\n }", "title": "" }, { "docid": "50df32a8c00ddecfd6cf40838f706b8e", "score": "0.61203766", "text": "public function handle()\n {\n $filename = $this->argument('filename');\n GedcomParserFacade::parse('mysql', $filename, true, true);\n }", "title": "" }, { "docid": "acd12c6e0c9c6b8aff859ccee9f66451", "score": "0.61188745", "text": "public function handle()\n {\n $user = User::find($this->argument('user'));\n $amount = $this->argument('amount');\n\n Transaction::makeDeposit(new Money($amount), $user);\n\n $this->info(\"Deposit of {$amount} BRL made to User #{$user->id} {$user->name}\");\n }", "title": "" }, { "docid": "2f3bc1ded6b70f01ebcf5687b6f173bf", "score": "0.61177874", "text": "public function handle()\n {\n $this->call('package:contract', [\n 'name' => $this->argument('name'),\n ]);\n }", "title": "" }, { "docid": "998b9a26592ba3a4671ea3a31eece55b", "score": "0.6111735", "text": "public function fire()\n {\n $sqlPath = trim($this->input->getArgument('sqlPath'));\n\n $this->generateMigrations($sqlPath);\n\n $this->composer->dumpAutoloads();\n }", "title": "" }, { "docid": "766b2c594138b221fefc5d4f3c48eefd", "score": "0.609366", "text": "public function handle()\n {\n defined('DS') or define('DS', DIRECTORY_SEPARATOR);\n $action = $this->argument('action');\n $funcName = strtolower($action) . 'Action';\n if (method_exists($this, $funcName)) {\n call_user_func([\n $this,\n $funcName\n ]);\n } else {\n $this->error(PHP_EOL . 'No Action Found');\n }\n $this->comment(PHP_EOL . '> DONE !');\n }", "title": "" }, { "docid": "613d72f81f696cbb3cc0ce9fc584bd56", "score": "0.60905", "text": "public function handle()\n {\n $from = $this->argument('from');\n $to = $this->argument('to');\n\n if (!$this->isValidParam($from)) {\n $this->error('Only \"usd\" and \"cad\" are supported');\n return;\n }\n\n if (!$this->isValidParam($to)) {\n $this->error('Only \"usd\" and \"cad\" are supported');\n return;\n }\n\n $this->info('Fetching rate for \"' . $from . '\" -> \"' . $to . '\"');\n\n $result = $this->exchangeService->getData($from, $to);\n\n if (!isset($result['Realtime Currency Exchange Rate'])) {\n $this->error('There was an error during command execution');\n $this->info(json_encode($result));\n return;\n }\n\n $this->info(json_encode($result));\n }", "title": "" }, { "docid": "7eef6f692a2e8612701529fc2c749ebc", "score": "0.60823095", "text": "public function handle()\n {\n if ($this->argument('act')) {\n $this->executeJob($this->argument('act'));\n } else {\n $acts = Account::All();\n foreach ($acts as $act) {\n $this->executeJob($act->id);\n }\n }\n }", "title": "" }, { "docid": "96d82526fc64a65fc05bdc29f061f39c", "score": "0.60797423", "text": "public function handle()\n {\n $this->call('passport:keys', [ '--force' => $this->option('force') ]);\n\n $this->call('passport:client', [\n '--personal' => true,\n '--database' => $this->option('database'),\n '--connection' => $this->option('connection'),\n '--name' => $this->option('name') ?: null,\n ]);\n\n $this->call('passport:client', [\n '--password' => true,\n '--database' => $this->option('database'),\n '--connection' => $this->option('connection'),\n '--name' => $this->option('name') ?: null,\n ]);\n }", "title": "" }, { "docid": "53524eb4c21830da7ad77e2b87e9ea62", "score": "0.60743773", "text": "public function handle()\n {\n $sponsorId = $this->argumentsSponsorId();\n\n // {\"smart2::real_time::view\": {\"contract\": {\"start\": \"1900-01-01 00:00:00\",\"end\": \"9999-12-31 23:59:59\"}}, \"smart2::region_kanto::view\": {\"contract\": {\"start\": \"1900-01-01 00:00:00\",\"end\": \"9999-12-31 23:59:59\"}}}\n $permissions = $this->argumentsPermissions();\n\n $this->confirmApply('update', [\n 'sponsor_id: ' . $sponsorId,\n 'permissions: ' . json_encode($permissions, JSON_PRETTY_PRINT),\n ]);\n\n $sponsorRole = SponsorRole::findOrFail($sponsorId);\n $sponsorRole->fill([\n 'permissions' => $permissions,\n ])->save();\n\n $this->infoApplied();\n }", "title": "" }, { "docid": "53ed27d5bca7019d748f913b9836771d", "score": "0.60713667", "text": "public function handle()\n {\n $this->info('Normalizing author names');\n ResultsRepository::normalizeNames();\n }", "title": "" }, { "docid": "bfa6833d965fb8905fcc4c5f3fe36bda", "score": "0.6068034", "text": "public function handle()\n {\n $this->info('Generating sitemap...');\n $this->generate();\n }", "title": "" }, { "docid": "efd9dc2f03a338d9a35783097d33012f", "score": "0.60667014", "text": "public function handle()\n {\n $this->executeCommand($this->getCommand());\n }", "title": "" }, { "docid": "5fc5f5bddc1df94c9482d0a11927a24a", "score": "0.60648674", "text": "public function handle()\n {\n //\n Timer::start();\n $lang = app()->getLocale();\n $championEntity = new ChampionEntity($lang);\n if (!empty($this->argument('champion')) && $this->argument('champion') == 'all') {\n // get all champions\n $champions = $championEntity->getAllChampionsID();\n foreach ($champions as $champion) {\n echo $champion . \"\\n\";\n /* foreach (RiotEntity::$lanes as $lane) {\n echo \" \" . $lane; */\n $lane = \"all\";\n $this->livefeed($lang, $lane, $champion);\n event(new \\App\\Events\\LiveFeed($lane, $champion));\n /* } */\n }\n } else {\n $champion = \"\";\n if (!empty($this->argument('champion'))) {\n $champion = $this->argument('champion');\n }\n foreach (RiotEntity::$lanes as $lane) {\n echo $lane . \"\\n\";\n $this->livefeed($lang, $lane, $champion);\n event(new \\App\\Events\\LiveFeed($lane, $champion));\n }\n }\n\n $time = Timer::stop();\n print Timer::secondsToTimeString($time);\n }", "title": "" }, { "docid": "d2b5ba67d75a7d273d336c7f3b851c65", "score": "0.60639083", "text": "public function handle()\n {\n $value = $this->argument('value');\n $encrypted = Crypt::encrypt($value);\n $this->info($encrypted); \n }", "title": "" }, { "docid": "718e4409379d10d120304fa5d73cfbda", "score": "0.60616785", "text": "public function handle() {\n\n $urls = array_map( 'trim', file( $this->argument( 'input_file' ) ) );\n $finder = new Finder( $urls, $this->option( 'threads' ) );\n $finder->setCommand( $this );\n $res = $finder->find( function ( $request ) {\n } );\n\n if ( $o = $this->option( 'output' ) ) {\n file_put_contents( $o, implode( PHP_EOL, $res[ 'success' ] ) );\n }\n\n }", "title": "" }, { "docid": "bbca84711955ddf92518c9f80e31419a", "score": "0.6056845", "text": "public function handle()\n {\n //\n $option = $this->argument('action');\n\n\n switch ($option)\n {\n case \"start\":\n $this->info('wsswoole observer started');\n $this->start();\n break;\n case \"stop\":\n $this->info('stoped');\n $this->stop();\n break;\n case \"restart\":\n $this->info(\"restarted\");\n $this->restart();\n break;\n }\n }", "title": "" }, { "docid": "8b1a0baa56a3f37fe2e19da20c7db152", "score": "0.60534847", "text": "public function handle()\n {\n if ($this->argument('name') || $this->option('path')) {\n $this->writeView();\n }\n }", "title": "" }, { "docid": "7cd5de8a0836eae4674a607951f74956", "score": "0.6051865", "text": "public function handle()\n {\n dump($this->option('verified'));\n echo User::count() . \"\\n\";\n }", "title": "" }, { "docid": "6a01054f6fcd4659052a6578dd2fae68", "score": "0.60479355", "text": "public function handle()\n {\n $subject = $this->argument('subject');\n $fromDate = Carbon::today()->format('Y-m-d');\n\n if (!$this->isValidParam($subject)) {\n $this->error('Subject must not contain any spaces (it must be one word)');\n return;\n }\n\n $this->info('Fetching latest news about \"' . $subject . '\" for \"' . $fromDate . '\"');\n\n $result = $this->service->getData($subject, $fromDate);\n\n if (!isset($result[NewsTopicService::TOP_LEVEL_NAME])) {\n $this->error('There was an error during command execution');\n $this->info(json_encode($result));\n return;\n }\n\n $this->info(json_encode($result));\n }", "title": "" }, { "docid": "edc952b3b6fe354389f62f3a7057797e", "score": "0.60462517", "text": "public function handle() {\n $lookback = $this->argument('lookback');\n\n foreach($this->entities as $entity) {\n $job = new RedshiftDataValidationJob($entity, $lookback, str_random(16), $this->option('runtime-threshold'));\n $this->dispatch($job);\n }\n\n }", "title": "" }, { "docid": "f8f1f44788d86b3587c8a830e5a176b2", "score": "0.6045046", "text": "public function handle()\n {\n $this->bundle = ucfirst($this->argument('bundle'));\n $this->entity = ucfirst($this->argument('entity'));\n\n if (!$this->loader->onLoad()) {\n $this->error('Invalid JSON file: paths.json');\n return;\n }\n $this->http = $this->loader->paths->http;\n\n foreach ($this->loader->paths->paths as $key => $value) {\n $this->makeFile($key, $value);\n }\n }", "title": "" }, { "docid": "547ec9c5af8cb8f04f0c4306e6938132", "score": "0.6044936", "text": "public function fire()\n {\n $nameparser = new NameParser($this->argument('name'));\n $path = $this->getPath($nameparser);\n $template = $this->option('template');\n\n $this->printResult($this->generator->make($path, $template, $nameparser), $path);\n }", "title": "" }, { "docid": "5382d2a14390ada2dcb4baea471f5f31", "score": "0.60422015", "text": "public function handle()\n {\n //\n $userId = $this->argument('user');\n if (!$userId) {\n $this->error('Can not send email without user id.');\n return;\n }\n /** @var User $user */\n $user = User::find($userId);\n if (!$user) {\n $this->error('Can not find user by id: '. $userId);\n return;\n }\n if ($this->confirm(\"Email will send to {$user->email}. continue? [y|N]\")) {\n $shouldQueue = $this->option('queue');\n if ($shouldQueue) {\n \\Mail::to($user)->queue(new Test());\n } else {\n \\Mail::to($user)->send(new Test());\n }\n }\n }", "title": "" }, { "docid": "155e636f5525d9dbde6c02415acb5976", "score": "0.60394853", "text": "public function handle()\n {\n $return = Pandoc::file($this->argument('file'))\n ->from($this->argument('from'))\n ->to($this->argument('to'))\n ->output($this->argument('output'))\n ->convert();\n\n $this->info($return);\n }", "title": "" }, { "docid": "17ed8e47b278caa212d510315e290fd2", "score": "0.60339785", "text": "public function handle()\n {\n $key = $this->argument('key');\n $type = $this->argument('type');\n switch ($type){\n case 0: dd(Sentence::search($key)->get()->toArray());\n case 1: dd(Author::search($key)->get()->toArray());\n }\n }", "title": "" }, { "docid": "badc40b71ff184b0f987f5c56c52c6c6", "score": "0.60333925", "text": "public function handle()\n {\n $year = $this->argument('year');\n $institution = $this->argument('institution');\n $institutionGrade = $this->instituion_grade->getInstitutionGradeToPromoted($year,$institution);\n (new BulkPromotion())->callback($institutionGrade,$year);\n }", "title": "" }, { "docid": "744fd709a883cc0741ad37af29f05b9e", "score": "0.60297495", "text": "public function handle()\n {\n $this->createDirectories();\n \n if(file_exists(app_path('Models/User.php'))) {\n if (! $this->confirm(\"The User model already exists. Do you want to replace it?\")) {\n exit;\n }\n }\n\n file_put_contents(\n app_path('Models/User.php'),\n $this->compileModelStub()\n );\n $this->info('Authentication scaffolding generated successfully.');\n\n }", "title": "" }, { "docid": "39f84566fb36ddb7bae746c552472ede", "score": "0.6026551", "text": "public function handle()\n {\n $user = $this->argument('user');\n $tag = $this->argument('tag');\n $userId = $this->argument('userId');\n //\n $this->dispatch((new FetchOverwatchProfiles([\n 'user' => $user,\n 'tag' => $tag,\n 'userId' => $userId\n ]))->onQueue('overwatch_profiles'));\n }", "title": "" }, { "docid": "413a8ddefe106344ea7ed471b3c8737c", "score": "0.60264957", "text": "public function fire()\n {\n $config = $this->getDDDGeneratorConfig();\n $domain_definition = $this->getDomainFileDefinition($this->argument('domain_file_definition'));\n\n $this->generateFiles($domain_definition,$config);\n\n $this->info('files created successfully!');\n }", "title": "" }, { "docid": "62edc3ea51259069e12a52499ca5787e", "score": "0.60194355", "text": "public function handle()\n {\n // echo \"\\n*今日の格言*\\n\\n\";\n // echo Inspiring::quote();\n // echo \"\\n\\n\";\n // $p = $this->argument('person');\n // if($p != null){\n // $person = Person::find($p);\n // if($person != null){\n // echo \"\\nPerson id = \".$p.\":\\n\";\n // echo $person->getData() . \"\\n\";\n // }\n // }else{\n // $person = Person::all();\n // foreach ($person as $val) {\n // echo $val->getData().\"\\n\";\n // }\n // }\n $id = $this->option('id');\n $name = $this->option('name');\n if($id != '?'){\n $p = Person::find($id);\n }else{\n if($name != '?'){\n $p = Person::where('name',$name)->first();\n }else{\n $p = null;\n }\n }\n if($p != null){\n //file_put_contents(TESTFILE,$p->getData());\n Log::debug($p->getData());\n //echo $p->getData().\"\\n\";\n }else{\n echo 'no Person find...';\n }\n }", "title": "" }, { "docid": "6312c2f2fe4090d9c7eb66bafbb77efb", "score": "0.6018056", "text": "public function handle()\n {\n $this->findTranslations->make();\n $this->call('cache:clear');\n }", "title": "" }, { "docid": "e727876bcd7fd5442eb153a2a04c618a", "score": "0.6016", "text": "public function handle()\n {\n $id = $this->argument('id');\n $amount = $this->argument('amount');\n\n echo $id . ' is Depositing.' . PHP_EOL;\n\n $command = new DepositCommand($id, $amount);\n $this->commandBus->dispatch($command);\n }", "title": "" }, { "docid": "eac6e7d74fd6782dae0af1bdd5529345", "score": "0.6015829", "text": "public function handle()\n {\n $this->settings();\n\n $repository = $this->resources->all();\n\n // Resources menu should only be appended if there is actually\n // resources to be displayed.\n if (! empty($repository)) {\n $this->resources($repository);\n }\n }", "title": "" }, { "docid": "b28e48cf82d651dddb85badcaa9ec6a7", "score": "0.60104865", "text": "public function handle()\n {\n $paragraph = $this->argument('text');\n Processor::processParagraph($paragraph);\n }", "title": "" }, { "docid": "234d02a028de0975297cb2cdc5815a38", "score": "0.6008873", "text": "public function handle()\n {\n $search = Twitter::getSearch([\n 'q' => $this->argument('search'),\n 'count' => 100,\n ]);\n\n $users = [];\n array_walk($search->statuses, function (stdClass $value, int $idx) use (&$users) {\n $users[$value->user->screen_name] = $value->user->name;\n });\n array_walk($users, function (string $name, string $account) {\n $this->updateTweep($account, $name);\n });\n\n echo \"\\nMuahahahahaha!\\n\";\n }", "title": "" }, { "docid": "c2bc60091f76fd81197c873aa896f33c", "score": "0.6005184", "text": "public function handle()\n {\n $id = $this->argument('user_id');\n\n try {\n $user = User::findOrFail($id);\n } catch (\\Exception $e) {\n return $this->error('User not found');\n }\n\n $this->info(sprintf(' User name : %s', $user->name));\n $this->info(sprintf(' User email : %s', $user->email));\n\n if ($this->confirm('Do you wish to continue ?')) {\n try {\n $user->notify(new Test);\n } catch (\\Exception $e) {\n return $this->error(sprintf(\n 'Failed to send notification : %s',\n $e->getMessage()\n ));\n }\n\n $this->info('The notification has been sent');\n }\n }", "title": "" }, { "docid": "aa59becd4a8068e7b84cb72cd49174b2", "score": "0.60048527", "text": "public function handle()\n {\n try {\n $pairs = $this->pairs->getPairs($this->argument('args'), $this->option('unique_args'));\n foreach ($pairs as $pair) {\n $this->info($pair);\n }\n }\n catch(\\Exception $e) {\n $this->error($e->getMessage());\n }\n }", "title": "" }, { "docid": "90523e2f5aa8aba34fffa420f163ce65", "score": "0.6004468", "text": "public function handle()\n {\n $this->start();\n if ($this->option('mutix')) {\n $this->mutix();\n } else {\n $this->grap();\n }\n $this->end();\n }", "title": "" }, { "docid": "e3860256ff41f07dbaf77b49365f7157", "score": "0.60008323", "text": "public function handle() {\n $file = $this->argument('file');\n\n $builder = new Builder($this);\n $builder->load($file);\n if ($builder->hasError()) {\n $this->error(' > No files generated due to errors');\n } else {\n $builder->createMigration();\n }\n }", "title": "" }, { "docid": "02a29fcf57269375262dfcabd90da5d6", "score": "0.599935", "text": "public function handle()\n {\n config([\n 'push' => [\n 'apns' => [\n 'root' => config('push.apns.root'),\n 'certificate' => $this->option('certificate') ?: config('push.apns.certificate'),\n 'password' => $this->option('password') ?: config('push.apns.password'),\n 'environment' => $this->option('environment') ?: config('push.apns.environment'),\n ],\n 'gcm' => config('push.gcm'),\n ],\n ]);\n\n $notification = new Notification($this->argument('title') ?: 'Notification test', $this->argument('message'));\n\n $notification->push(Device::apns($this->argument('token')));\n\n $results = $notification->send();\n\n foreach ($results['errors'] as $data) {\n $this->error(sprintf('Device %s has failed', $data->token));\n }\n\n foreach ($results['updates'] as $data) {\n $this->error(sprintf('Device %s has been updated', $data->token));\n }\n }", "title": "" }, { "docid": "abff07aa014c97752e5d228120d3d089", "score": "0.59958154", "text": "public function handle()\n {\n \n if($this->option('type')){\n $year = $this->option('type');\n }else {\n $year = 'year';\n }\n if($this->option('year')){\n $type = $this->option('year');\n }else {\n $type = date('Y');\n }\n if($this->option('date')){\n $date = $this->option('date');\n }else {\n $date = date('Y-MM-DD');\n }\n $this->service->generateGoalReport($type,$year,$date);\n }", "title": "" }, { "docid": "0a8a6cbd28bf81f0bf43224fa04edf78", "score": "0.5988102", "text": "public function handle()\n {\n $directory = $this->getDirectoryArgument();\n\n $cleaner = Cleaner::directory($directory, $this->argument('recursive') ?? true);\n\n $cleaner->inAvailableResources(request());\n\n dd($cleaner->analyze(request()));\n }", "title": "" }, { "docid": "4cb5190c7ef134ed018cc813614d2d4e", "score": "0.5987503", "text": "public function handle(Command $command);", "title": "" }, { "docid": "32b677c44fc3838c2b30fc69e9188ef4", "score": "0.598459", "text": "public function handle()\n {\n $debug = $this->option('debug');\n $this->controller->goingToLondonViaEbbsfleet();\n $this->info($this->controller->lineOne);\n $this->info($this->controller->lineTwo);\n if (!$debug) {\n $this->controller->action = \"notification\";\n $this->controller->sendToIffft(\"K\");\n }\n }", "title": "" }, { "docid": "9000c91111734cbc4ac788d9a2097c01", "score": "0.59825385", "text": "public function handle()\n {\n $language = $this->argument('language');\n\n Excel::store(new TranslationsExport($language), 'translations.xlsx');\n }", "title": "" }, { "docid": "ecf5ae38aca74a6bad530af03c3d059e", "score": "0.59823906", "text": "public function handle()\n {\n $locations = LocationCollection::findNewForGeocode();\n\n /** @var UserLocation $location */\n foreach ($locations->all() as $location) {\n $location->geocodeFromCoordinates();\n }\n }", "title": "" }, { "docid": "531d8ae7458ade45561ad2c0fca237fc", "score": "0.5981926", "text": "public function handle()\n {\n $email = $this->argument('email');\n $comment = $this->argument('comment');\n\n $user = app(UserService::class)->findByEmailOrNull($email);\n\n if($user === null) {\n $this->error(\"No user found under the email [{$email}]\");\n }\n\n $data = [\n 'user_id' => $user->id,\n 'content' => $comment\n ];\n\n app(CommentService::class)->create($data);\n\n $this->info(\"New comment added to user {$user->formattedName()} - {$user->email}\");\n }", "title": "" }, { "docid": "6e5debb7388bedc20883fa0571eb03ab", "score": "0.59803087", "text": "public function handle()\n {\n $type = $this->argument('type');\n $title = $this->argument('title');\n $content = $this->argument('content');\n\n $users = User::all();\n\n foreach ($users as $user) {\n $update = new UserUpdate;\n $update->email = $user->email;\n $update->title = $title;\n $update->type = $type;\n $update->content = $content;\n if ($update->save()) {\n $this->line(\"Added announcement/update for [\" . $user->email . \"]\");\n }\n }\n }", "title": "" }, { "docid": "bc0635a760f337badc542f5e70b70440", "score": "0.5979463", "text": "public function handle()\n {\n $this->copy_cards();\n $this->copy_card_owneds();\n $this->copy_card_set();\n $this->copy_conditions();\n $this->copy_symbols();\n }", "title": "" }, { "docid": "486db648371fee6471c9b00700eb075f", "score": "0.5978549", "text": "public function handle()\n {\n $langs = \\LaravelLocalization::getSupportedLanguagesKeys();\n\n if ($this->argument('name')) {\n $langs = array_intersect($langs, [$this->argument('name')]);\n }\n\n foreach ($langs as $lang) {\n try {\n $generator = $this->getContentFromFile($lang);\n\n while($generator->valid()) {\n $this->add($generator->key(), $generator->current());\n $generator->next();\n\n if (count($this->data) >= $this->limit || !$generator->valid()) {\n $this->import($lang);\n }\n }\n } catch (\\Exception $e) {\n $this->error($e->getMessage());\n }\n }\n\n $this->info('OK!');\n }", "title": "" }, { "docid": "0176e97bdaead44d614f7f9a3e43dde5", "score": "0.59771085", "text": "public function handle()\n {\n $this->getCities();\n $this->info('Cities was loaded successfully');\n\n $this->getWarehouses();\n $this->info('Warehouses was loaded successfully');\n }", "title": "" }, { "docid": "367e3fa8c7f89298f58314710b0d96ac", "score": "0.5973143", "text": "public function handle()\n {\n $params = [];\n\n // Prepare arguments.\n $this->preparePaths($params);\n\n // Get configuration file.\n $this->setConfigFile($params);\n\n // Prepare options.\n $this->prepareOptions($params);\n\n // Fix files.\n chdir(base_path());\n passthru($this->getCommand($params));\n }", "title": "" }, { "docid": "351e66235fcc9309e5e81647ac6af753", "score": "0.5972634", "text": "public function handle()\n {\n $user = (int)$this->argument('user');\n $roles = $this->argument('roles');\n $attach = $this->option('attach');\n $detach = $this->option('detach');\n if (!$attach and !$detach)\n {\n $this->viewUserRoles($user);\n } else if ($attach and $detach) {\n $this->error('detach and attach conflicts.');\n } else if ($attach) {\n $this->attachUserRoles($user, $roles);\n } else if ($detach) {\n $this->detachUserRoles($user, $roles);\n }\n }", "title": "" }, { "docid": "84744882f12f12b91012cf8e08572d5d", "score": "0.597002", "text": "public function handle()\n {\n $errors = Validation::get_errors(\n ['file' => $this->argument('file')],\n ['file' => 'required|string']\n );\n\n if(!is_null($errors)) {\n Validation::print_errors($errors->get('file'));\n exit(1);\n }\n\n if(file_exists($this->argument('file'))\n && !$this->confirm('File already exists, do you wish to continue?')) {\n die(\"Cancelling command\\n\");\n }\n\n $media = \\App\\Media::all();\n\n $media->transform(function($m) {\n $m['created_at_unix'] = $m->created_at->timestamp;\n $m['updated_at_unix'] = $m->updated_at->timestamp;\n return $m;\n });\n\n MediaIndexing::write_to_file($this->argument('file'), $media);\n }", "title": "" }, { "docid": "ad6dd0e9fbfbbb3bcd1e2261f8feb482", "score": "0.5968444", "text": "public function handle()\n {\n //\n $user = User::where('email', $this->argument('email'))->first();\n UserVerification::generate($user);\n UserVerification::send($user, $subject = 'IndieWise: Account Verification', $from = 'noreply@getindiewise.com', $name = 'IndieWise Registration');\n $this->info('Verification Email Sent');\n }", "title": "" }, { "docid": "8f428c5e462bfbf74cdebf75ff40f04d", "score": "0.5963965", "text": "public function handle()\n {\n $this->createDirectory($this->directories);\n $this->callOrderPackages();\n\n $this->components((new ComponentService()), [\n 'themes',\n 'plugins'\n ]);\n\n $this->comment($this->comment);\n }", "title": "" }, { "docid": "a1404998170529f9ec4f525bed0c7ef0", "score": "0.59624535", "text": "public function handle()\n {\n try {\n Telegram::setWebhook([\n 'url' => $this->argument('url')\n ]);\n\n $this->info('The Webhook was successfully set');\n } catch (Exception $e) {\n $this->error($e->getMessage());\n }\n }", "title": "" }, { "docid": "a35b64447df60c97fc9c10104e23a8ec", "score": "0.5960009", "text": "public function handle()\n {\n $key = $this->argument('key');\n\n $user = User::where('key', $key)->first();\n\n if ($user) {\n $encryptedOne = JWTAuth::fromUser($user);\n\n $this->info('The gernerated token of key is ========> ' . $encryptedOne);\n } else {\n $this->info('user not found!!!' . json_encode($user));\n }\n }", "title": "" }, { "docid": "8fbb90a5412231ead701ca0762a5c78d", "score": "0.5959815", "text": "public function handle()\n {\n $user = $this->userRepository->create([\n 'username' => $this->argument('username'),\n 'password' => $this->argument('password'),\n 'email' => $this->argument('email'),\n 'full_name' => $this->argument('full_name'),\n 'gender' => $this->argument('gender'),\n 'phone_number' => $this->argument('phone_number'),\n 'access_level' => $this->argument('access_level'),\n 'status' => $this->argument('status'),\n 'token' => $this->argument('token'),\n 'requests' => $this->argument('requests'),\n 'division_id' => $this->argument('division_id')\n ]);\n\n $this->info(sprintf('A user was created with ID %s', $user->id));\n }", "title": "" }, { "docid": "320a494842bc9f8373c4accbf280e933", "score": "0.5958902", "text": "public function handle()\n {\n $this->info('Running command ' . $command = $this->command());\n passthru($command);\n }", "title": "" }, { "docid": "82da91b28adee4d6a7de6aa8efaa49de", "score": "0.5958323", "text": "public function handle()\n {\n try {\n $this->filesystem->overwrite(\n $path = database_path('seeds/' . config('AdminUserSeeder', 'AdminUserSeeder.php')),\n $this->compiler->compile(\n $this->filesystem->get($this->getStubPath()),\n [\n \"USER_NAME\" => $this->username(),\n \"USER_EMAIL\" => $this->email(),\n ]\n )\n );\n $this->info('File ' . $path . ' created');\n } catch (\\Exception $e) {\n print_r($e->getMessage());\n }\n }", "title": "" }, { "docid": "2db65d15cd46f25fa107213db52db70f", "score": "0.5957788", "text": "public function handle()\n {\n if (!is_null($this->option('only'))) {\n $only = explode(',',$this->option('only'));\n $this->availableCommands = array_only($this->availableCommands, $only);\n } elseif (!is_null($this->option('except'))) {\n $except = explode(',',$this->option('except'));\n $this->availableCommands = array_except($this->availableCommands, $except);\n }\n foreach ($this->availableCommands as $key => $command) {\n $this->call($command);\n }\n }", "title": "" }, { "docid": "b79a19302f2081c9c5aab92d4c38698f", "score": "0.5957016", "text": "public function handle()\n {\n $file = $this->argument('file');\n\n $password = Import::config('password');\n\n Import::start(compact('file', 'password'));\n\n $this->info('Completed');\n }", "title": "" }, { "docid": "6fc684739029cd4125d3af3cda1bd76f", "score": "0.59564626", "text": "public function handle()\n {\n $this->comment(PHP_EOL . 'Creating user ' . $this->argument('user') . PHP_EOL);\n $user = new User();\n $user->email = $this->argument('user');\n $user->password = $this->argument('password');\n $user->status = 1;\n $user->role()->associate(Role::find(1));\n $user->save();\n }", "title": "" }, { "docid": "11d25ec9c6129b1fa3fbfbd8a5800384", "score": "0.59528464", "text": "public function handle()\n {\n $models = explode(',', $this->option(\"model\"));\n foreach($models as $model){\n $this->info(\"Fixing Model \" . $model);\n try{\n $this->$model();\n } catch (\\Exception $ex) {\n $this->error(\"Model class not found \" . $ex);\n } \n } \n }", "title": "" }, { "docid": "353eeef619a6be1d0ce1f1e6456825d6", "score": "0.5949969", "text": "public function handle()\n {\n $manifest = $this->getLaravel()->make('addons.manifest');\n $manifest->build();\n\n $count = $manifest->getAddonCount();\n $term = ($count == 1) ? 'addon' : 'addons';\n\n $this->info(\"Discovered {$count} {$term}!\");\n }", "title": "" }, { "docid": "a5389f7b9aba49246fb7cef9f0d07703", "score": "0.59490013", "text": "public function handle()\n {\n $this->info($this->employeeCommandService->canDoAction($this->argument('specialty'), $this->argument('action')));\n }", "title": "" }, { "docid": "78b1a8d44016e8894e7ab854253e30e1", "score": "0.5946749", "text": "public function handle()\n {\n $this->line('working...');\n\n $this->createIndexes();\n\n $this->populateIndexes();\n }", "title": "" }, { "docid": "0412e513aa601d7d3e9c0fb832da1854", "score": "0.5945706", "text": "public function fire()\n {\n try {\n $title = $this->argument('title');\n $text = $this->argument('text');\n KeenEvents::sendSlackEvent($title, $text);\n } catch (Exception $e) {\n $this->error('Error: '.$e->getMessage());\n throw $e;\n }\n\n $this->info('done');\n }", "title": "" }, { "docid": "772af67c488e83becd0917d5a245c961", "score": "0.5945673", "text": "public function handle()\n {\n $this->info($this->bithumb->getTradingHistory($this->argument('type')));\n }", "title": "" }, { "docid": "ff281bfe3e70fd83ad335f21dd3cd08d", "score": "0.59453624", "text": "public function handle()\n {\n $user = User::where('username', $this->argument('username'))->firstOrFail();\n\n Bouncer::assign('superadmin')->to($user);\n }", "title": "" }, { "docid": "75944b2dd1c5e0af2a9f58e1a22d121f", "score": "0.5944221", "text": "public function handle()\n {\n foreach(Product::search($this->argument('search'))->get() as $product)\n {\n print(\"[\".$product->id.\"]: \".$product->title.\"\\n\");\n }\n }", "title": "" }, { "docid": "9e95d6f71a3bb70ff6881516ab83bdc2", "score": "0.59430885", "text": "public function handle()\n {\n //publishing config, blade templates, language file\n $this->call('vendor:publish', [\n '--provider' => 'Zanozik\\Cdnjs\\CdnjsServiceProvider'\n ]);\n //migrating assets table to db\n $this->call('migrate', [\n '--path' => '/vendor/zanozik/cdnjs/src/database/migrations'\n ]);\n //seeding asset table with sample assets for manager frontend\n $this->call('db:seed', [\n '--class' => 'Zanozik\\Cdnjs\\Database\\Seeds\\AssetsTableSeeder'\n ]);\n //clearing cache in case we already have that key in our cache\n $this->call('cache:clear');\n }", "title": "" }, { "docid": "502bc0448bf2f61ff3167e1015ffe3bc", "score": "0.59427357", "text": "public function handle()\n {\n $this->call('vendor:publish', ['--provider' => WisteriaServiceProvider::class, '--tag' => ['wisteria-assets', 'wisteria-config']]);\n\n $this->info('Wisteria successfully installed! Enjoy 😍');\n }", "title": "" }, { "docid": "34f628fcb5c4b21504f82c4043a8ef05", "score": "0.59426194", "text": "public function handle()\n {\n $this->info('Publishing assets to public folder.');\n\n // Publish hub public assets\n foreach ($this->commands as $command) {\n Artisan::call($command);\n }\n\n $this->line('Done.');\n }", "title": "" } ]
7824555b198b82ce4e81678fb97644f2
Set the transformations used for creating the index.
[ { "docid": "35fc88d3152098a8b2dcabc761166d1b", "score": "0.59625214", "text": "public function transformations(array $transformations): self\n {\n $this->transformations = $transformations;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "f3ff791a5f3a00fc8b9486d2baa3068a", "score": "0.5947959", "text": "public function setTransformations($field, $transformations = []);", "title": "" }, { "docid": "f52094f80ca5f9c36e8e28876d7c1e93", "score": "0.5647229", "text": "public function transform( $transformations )\n\t{\t\n\t\t$this->_transformations = $transformations;\n\t\n\t\tforeach ($this->_fields as $key => $value)\n\t\t\t$this->_transformed_fields[$key] = preg_replace_callback(self::REPLACEMENT_EXPRESSION, array($this, \"callback\"), $value['value']);\n\t}", "title": "" }, { "docid": "773ae3ba4c2ecc5d85bed29ce328f392", "score": "0.54213697", "text": "public function transform();", "title": "" }, { "docid": "043c26660b983ba75f16e33eb9924f4a", "score": "0.53201914", "text": "public function transformations(array $transformations = NULL)\n\t{\n\t\tif ($transformations !== NULL)\n\t\t{\n\t\t\t$this->_transformations = $transformations;\n\n\t\t\treturn $this;\n\t\t}\n\n\t\treturn $this->_transformations;\n\t}", "title": "" }, { "docid": "01bd20398417fd197bb974e4a93fca46", "score": "0.5251146", "text": "public function getTransformation(){\n\t\treturn 'rezonant.mapper.doctrine_entity_transformation';\n\t}", "title": "" }, { "docid": "8c3ae8bcaafb3eaf99eec1fbe3de3627", "score": "0.49349773", "text": "public function transform()\n\t{\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "8c8b743f1dffee3f5914a3f5e3222c83", "score": "0.4911202", "text": "public function transformers(array $transformers): self\n {\n $this->transformers = $transformers;\n\n return $this;\n }", "title": "" }, { "docid": "ffe9ae0642002ec2ca3ee8006e0c9f08", "score": "0.49038395", "text": "public function getTransformer();", "title": "" }, { "docid": "f5e09d20518634eb52a392d97ada5deb", "score": "0.48828328", "text": "public function resetDataTransformers();", "title": "" }, { "docid": "44e045d7851bd97b0f5bd45171a68de1", "score": "0.48733687", "text": "public function setTransformer($transformer){\n $class = null;\n /*\n * Comprobando si es un string\n */\n if(is_string($transformer)){\n if(class_exists($transformer)){\n $class = new $transformer;\n }\n }\n /*\n * Comprobando si es una instancia de transformer\n */\n if(is_object($transformer)){\n $class = $transformer;\n }\n /*\n * Estableciendo parametro\n */\n $this->_transformer = $class;\n \n return $this;\n }", "title": "" }, { "docid": "84fd92ca0a97ffff7e1a5dc26e43d003", "score": "0.4811277", "text": "protected function _addIndexInformation()\n {\n foreach ($this->fields as $field) {\n $field->fixFieldKey($this->indices);\n }\n }", "title": "" }, { "docid": "06aeb2ef9e9e6d4a8020257a5a4d730f", "score": "0.48086616", "text": "protected function indexTranslations()\n {\n // Don't index twice\n if (true === $this->indexed) {\n return;\n }\n\n $translationCopy = $this->translations->toArray();\n\n $translations = new ArrayCollection;\n foreach ($translationCopy as $translation) {\n $locale = $translation->getLocale();\n $translations->set($locale, $translation);\n }\n\n $this->translations = $translations;\n $this->indexed = true;\n }", "title": "" }, { "docid": "d5eedb6082729dba58179ab91b64cb4a", "score": "0.4805809", "text": "public function buildIndexCreator();", "title": "" }, { "docid": "329c7ef131b02a937edae68e4425aa9a", "score": "0.47436652", "text": "function setFromADOIndex($adoindex) {\n\n /// Set the unique field\n $this->unique = false;\n /// Set the fields\n $this->fields = $adoindex['columns'];\n /// Some more fields\n $this->loaded = true;\n $this->changed = true;\n }", "title": "" }, { "docid": "fe9c8d708eeb47f75315c4dc344aa273", "score": "0.47313493", "text": "public function getTransformations()\n {\n return $this->transformations;\n }", "title": "" }, { "docid": "5f7eafe45941682091385940417392a4", "score": "0.47091874", "text": "public function setMapping($array)\n\t{\n\t\t$this->colIndex = $array;\n\t}", "title": "" }, { "docid": "9d5b0ad8f029fd7ec1e93cc45cab0c06", "score": "0.46452752", "text": "public function setTransformer($transformer)\n {\n $this->transformer = $transformer;\n }", "title": "" }, { "docid": "8ec82bfdf6f87553aefba6b3be3179e2", "score": "0.46396115", "text": "public function clearTransformation()\n {\n $this->data = [];\n $this->sequence = [];\n $this->trans = '';\n }", "title": "" }, { "docid": "b77c5832a4c727952cf7478cabaa750d", "score": "0.4637063", "text": "public function addTransformation($transformation)\n {\n if (is_array($transformation)) {\n // check if all required items are present\n if (!key_exists('query', $transformation)\n || !key_exists('writer', $transformation)\n || !key_exists('source', $transformation)\n || !key_exists('artifact', $transformation)) {\n throw new InvalidArgumentException(\n 'Transformation array is missing elements, received: ' . var_export($transformation, true)\n );\n }\n\n $transformation_obj = new DocBlox_Transformer_Transformation(\n $this,\n $transformation['query'],\n $transformation['writer'],\n $transformation['source'],\n $transformation['artifact']\n );\n if (isset($transformation['parameters']) && is_array($transformation['parameters'])) {\n $transformation_obj->setParameters($transformation['parameters']);\n }\n\n $transformation = $transformation_obj;\n }\n\n // if it is still not an object; fail\n if (!is_object($transformation)) {\n throw new InvalidArgumentException(\n 'Only transformations of type (or descended from) DocBlox_Transformer_Transformation can be used in the '\n . 'transformation process; received: ' . gettype($transformation)\n );\n }\n\n // if the object is not a DocBlox_Transformer_Transformation; we cannot use it\n if (!$transformation instanceof DocBlox_Transformer_Transformation) {\n throw new InvalidArgumentException(\n 'Only transformations of type (or descended from) DocBlox_Transformer_Transformation can be used in the '\n . 'transformation process; received: ' . get_class($transformation)\n );\n }\n\n $this->transformations[] = $transformation;\n }", "title": "" }, { "docid": "dcd2a7c11c97411d3fb831ba419e0c62", "score": "0.46218395", "text": "public function loadTransformations(array $templates = array(), array $transformations = array())\n {\n /** @var Zend_Config_Xml[] $config_transformations */\n $config_transformations = $this->getConfig()->get('transformations', array());\n\n foreach ($config_transformations as $transformation)\n {\n // if a writer is defined then it is a template; otherwise it is a template\n if (isset($transformation->writer)) {\n $this->addTransformation($transformation->toArray());\n continue;\n }\n\n $this->addTemplate($transformation->name);\n }\n\n array_walk($templates, array($this, 'addTemplate'));\n array_walk($transformations, array($this, 'addTransformation'));\n }", "title": "" }, { "docid": "4720628ca4b433db1ec1ba28a242655a", "score": "0.4615465", "text": "public function set_inline_content_default_transform( $transform ) {\n\t\t\treturn apply_filters( 'photonfill_legacy_content_images_default_transform', 'scale_by_width' );\n\t\t}", "title": "" }, { "docid": "aa2b345569f39e16912b5d8c6bbc82aa", "score": "0.45813614", "text": "protected function generate_index(){}", "title": "" }, { "docid": "df85cbbe133991db1abe69ce282370c2", "score": "0.45485237", "text": "public function registerIndices()\n {\n foreach ($this->indices() as $key => $value) {\n // ES::policy($key, $value);\n }\n }", "title": "" }, { "docid": "1e738c8411c08af1ab50b4853717f1aa", "score": "0.45364895", "text": "public function setUp() {\n $this->transformation = new TransformationImpl();\n }", "title": "" }, { "docid": "34467d2a90404acbd38618df9cc53e55", "score": "0.45360872", "text": "public function getTransformer()\n {\n return new DocumentTransformer();\n }", "title": "" }, { "docid": "283bd26a8eb946a3c71a772f203252ca", "score": "0.45189452", "text": "protected function setUp()\n\t{\n\t\tparent::setUp();\n\t\t\n\t\t// connect to elastic search cluster\n\t\t$this->_elasticaClient = new Elastica_Client(array('log' => PHPUNIT_ELASTICA_LOG_FILE));\n\n\t\t// load index\n\t\t$elasticaIndex = $this->_elasticaClient->getIndex(self::INDEX_NAME);\n\t\t\n\t\t// Create the index new\n\t\t$elasticaIndex->create(array(\n\t\t\t'number_of_shards' => 4,\n\t\t\t'number_of_replicas' => 1,\n\t\t\t'analysis' => array(\n\t\t\t\t'analyzer' => array(\n\t\t\t\t\t'indexAnalyzer' => array(\n\t\t\t\t\t\t'type' => 'custom',\n\t\t\t\t\t\t'tokenizer' => 'standard',\n\t\t\t\t\t\t'filter' => array('lowercase', 'mySnowball')\n\t\t\t\t),\n\t\t\t\t'searchAnalyzer' => array(\n\t\t\t\t\t\t'type' => 'custom',\n\t\t\t\t\t\t'tokenizer' => 'standard',\n\t\t\t\t\t\t'filter' => array('standard', 'lowercase', 'mySnowball')\n\t\t\t\t\t)\n\t\t\t\t),\n\t\t\t\t'filter' => array(\n\t\t\t\t\t'mySnowball' => array(\n\t\t\t\t\t\t'type' => 'snowball',\n\t\t\t\t\t\t'language' => 'German'\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t)\n\t\t\t), \n\t\t\ttrue\n\t\t);\n\t\t\n\t\t\n\t\t// define mapping\n\t\t\n\t\t// http://www.elasticsearch.org/guide/reference/mapping/\n\t\t// \thttp://www.elasticsearch.org/guide/reference/mapping/core-types.html\n\t\t\n\t\t// Load type\n\t\t$elasticaType = $elasticaIndex->getType(self::INDEX_TYPE);\n\t\t\n\t\t// Define mapping\n\t\t$mapping = new Elastica_Type_Mapping();\n\t\t$mapping->setType($elasticaType);\n\t\t$mapping->setParam('index_analyzer', 'indexAnalyzer');\n\t\t$mapping->setParam('search_analyzer', 'searchAnalyzer');\n\t\t\n\t\t// Define boost field\n\t\t$mapping->setParam('_boost', array('name' => '_boost', 'null_value' => 1.0));\n\t\t\n\t\t// Set mapping\n\t\t$properties = array();\n\t\t\n\t\t$properties['sku'] = array(\n\t\t\t'type' => 'string',\n\t\t\t'_boost'\t=> 1, \n\t\t\t'include_in_all' => true,\n\t\t);\n\t\t\n\t\t$properties['name'] = array(\n\t\t\t'type' => 'string',\n\t\t\t'_boost'\t=> 2, \n\t\t\t'include_in_all' => true,\n\t\t);\n\t\t\n\t\t$properties['price'] = array(\n\t\t\t'type' => 'float',\n\t\t\t'_boost'\t=> 1, \n\t\t\t'include_in_all' => true,\n\t\t);\n\t\t\n\t\t$properties['description'] = array(\n\t\t\t'type' => 'string',\n\t\t\t'_boost'\t=> 1, \n\t\t\t'include_in_all' => true,\n\t\t);\n\t\t\n\t\t$properties['yesno'] = array(\n\t\t\t'type' => 'string',\n\t\t\t'_boost'\t=> 1, \n\t\t\t'include_in_all' => true,\n\t\t\t'index'\t=> 'not_analyzed',\n\t\t);\n\t\t\n\t\t$properties['size'] = array(\n\t\t\t'type' => 'string',\n\t\t\t'_boost'\t=> 1, \n\t\t\t'include_in_all' => true,\n\t\t\t'index'\t=> 'not_analyzed',\n\t\t);\n\t\t\n\t\t$properties['age'] = array(\n\t\t\t'type' => 'string',\n\t\t\t'_boost'\t=> 1, \n\t\t\t'include_in_all' => true,\n\t\t\t'index'\t=> 'not_analyzed',\n\t\t);\n\t\t\n\t\t$properties['colour'] = array(\n\t\t\t'type' => 'string',\n\t\t\t'_boost'\t=> 1, \n\t\t\t'include_in_all' => true,\n\t\t\t'index'\t=> 'not_analyzed',\n\t\t);\n\t\t\n\t\t\n\t\t$mapping->setProperties($properties);\n\n\t\t// Send mapping to type\n\t\t$mapping->send();\n\t\t\n\t\t\n\t\t$elasticaType = $this->_elasticaClient\n\t\t\t->getIndex(self::INDEX_NAME)\n\t\t\t->getType(self::INDEX_TYPE);\n\n\t\t$i = 1;\n\t\t$product_name[$i++] = 'Alfa Romeo';\n\t\t$product_name[$i++] = 'Mercedes';\n\t\t$product_name[$i++] = 'Skoda';\n\t\t$product_name[$i++] = 'Lada';\n\t\t$product_name[$i++] = 'Audi';\n\t\t$product_name[$i++] = 'Fiat';\n\t\t\n\t\t$i = 1;\n\t\t$product_yesno[$i++] = 'yes';\n\t\t$product_yesno[$i++] = 'no';\n\t\t\n\t\t$i = 1;\n\t\t$product_size[$i++] = 'S';\n\t\t$product_size[$i++] = 'L';\n\t\t$product_size[$i++] = 'M';\n\n\t\t$i = 1;\n\t\t$product_age[$i++] = 'baby';\n\t\t$product_age[$i++] = 'teenager';\n\t\t$product_age[$i++] = 'adult';\n\t\t$product_age[$i++] = 'retired';\n\t\t\n\t\t$i = 1;\n\t\t$product_colour[$i++] = 'Black';\n\t\t$product_colour[$i++] = 'Red';\n\t\t$product_colour[$i++] = 'Yellow';\n\t\t$product_colour[$i++] = 'Green';\n\t\t$product_colour[$i++] = 'White';\n\t\t\n\t\t\n\t\t\n\t\tfor ($i=1; $i<=100; $i++ ) {\n\t\t\t\n\t\t\t$id = 'sku-'.$i;\n\t\t\t\n\t\t\t$document = new Elastica_Document($id, array(\n\t\t\t\t'sku' \t\t=> $id,\n\t\t\t\t'name' \t\t=> (isset($product_name[$i]) ? $product_name[$i]: sprintf(\"Test Product %04d\", $i)),\n\t\t\t\t'price' \t=> $i + 0.99,\n\t\t\t\t'desctiption' => 'Lorem ipsum dolor sit amet.',\n\t\t\t\n\t\t\t\t'yesno' \t=> ($product_yesno[1+(($i-1)%count($product_yesno))]),\n\t\t\t\t'size' \t\t=> ($product_size[1+(($i-1)%count($product_size))]),\n\t\t\t\t'age' \t\t=> ($product_age[1+(($i-1)%count($product_age))]),\n\t\t\t\t'colour' \t=> ($product_colour[1+(($i-1)%count($product_colour))]),\n\t\t\t));\n\t\t\t\n\t\t\t$elasticaType->addDocument($document);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t$this->_elasticaClient->getIndex(self::INDEX_NAME)->refresh();\n\t\t\n\t}", "title": "" }, { "docid": "c0d52cfbc97a67b06963fb8607f384cd", "score": "0.45177242", "text": "public function directTransform();", "title": "" }, { "docid": "def0c5283224ab74e93349d3416a3464", "score": "0.4517536", "text": "public static function setTransformerOp(string $op) {\n\t\tself::$transformerOp = $op;\n\t}", "title": "" }, { "docid": "1c6077a5c8d51210e03abcd1fd0b1903", "score": "0.45154777", "text": "public function setTranslator($schema);", "title": "" }, { "docid": "210ecdb3ae747b6ed59d62c32a04a4eb", "score": "0.45080942", "text": "public function setTableDefinition()\n {\n foreach ($this->_options['fields'] as $field => $unit) \n {\n $name = Doctrine_Inflector::tableize($field.'_'.strtolower($unit));\n $this->_options['columns'][$field] = $name;\n $this->hasColumn($name, 'float');\n }\n $this->_table->unshiftFilter(new Doctrine_Record_Filter_Localizable($this->_options));\n }", "title": "" }, { "docid": "35feefae3383b143f1608f7828936d3c", "score": "0.4504887", "text": "public function __construct() \n {\n $this->indexView = ViewPaths::transaction_rerate_index;\n\n }", "title": "" }, { "docid": "5d87f70ff3e6e8ce36e7b399b87748e9", "score": "0.4504027", "text": "public function __construct(Transform $name) {\n \n $this->name=$name;\n //dit is een proeftekst\"$name=\"dit is een proeftekst\";\n\n // if(!isset($name)){ $name=\"dit is een proeftekst\"; }\n\n $this->thetext = $this->transform; // eigenlijk moet ik die transform functie aanroepen die door\n // beide classen gebruikt wordt en een waarde returnt\n\n // en dit moet ik nu doorsturen naar de controller om te tonen\n\n }", "title": "" }, { "docid": "585717147fd277e68b751d1263580d56", "score": "0.45023087", "text": "public function transform(): void\n {\n $this->_attributeFormats = $this->processProvidedParameters();\n\n /** @var ActiveRecord $owningModel */\n $owningModel = $this->owner;\n\n foreach ($this->_attributeFormats as $attributeName => $format) {\n // If not changed, no need to transform\n if (!$owningModel->isAttributeChanged($attributeName)) {\n continue;\n }\n if (!empty($format)) {\n $createdDate = DateTime::createFromFormat($format, $owningModel->$attributeName);\n $owningModel->$attributeName = $createdDate->format('Y-m-d H:i:s');\n } else {\n $owningModel->$attributeName = date('Y-m-d H:i:s', $owningModel->$attributeName);\n }\n }\n }", "title": "" }, { "docid": "3bc9a79338a66101df2c1c66ed2885e9", "score": "0.4496693", "text": "public function setTransformer(DocBlox_Transformer $transformer)\n {\n $this->transformer = $transformer;\n }", "title": "" }, { "docid": "cfbea907850a0fc27bc60ff20c8cf267", "score": "0.44909164", "text": "public function buildindextable()\n {\n\n return $this;\n }", "title": "" }, { "docid": "d36df4876641bf3864f4b57d88d18e1d", "score": "0.4479778", "text": "public function createIndex()\n {\n //\n }", "title": "" }, { "docid": "d9f3ca1ab3ab8929ea2439bb3c5b3a64", "score": "0.44581804", "text": "function createOrUpdateIndexStructures();", "title": "" }, { "docid": "79647328a0f1c79eef7bda47e181b6da", "score": "0.44577056", "text": "public function reindexAll()\n {\n $this->useIdxTable(true);\n $this->beginTransaction();\n try {\n $this->clearTemporaryIndexTable();\n $this->_prepareIndex();\n $this->_prepareRelationIndex();\n //change start\n #$this->_removeNotVisibleEntityFromIndex();\n //change end\n\n $this->syncData();\n $this->commit();\n } catch (Exception $e) {\n $this->rollBack();\n throw $e;\n }\n\n return $this;\n }", "title": "" }, { "docid": "b2993c54eb9e05997f61bee8b98311be", "score": "0.44520465", "text": "public function setValueTransformer( Closure $transformer ) {\n $this->_axisValueTransformer = $transformer;\n return $this;\n }", "title": "" }, { "docid": "7fb3390e8bf5b51f243cb2e2ecf39964", "score": "0.44442183", "text": "public function setTranslatables(array $translatables) {\n $this->translatables = $translatables;\n }", "title": "" }, { "docid": "208c9cff3c2d4502ca398a078e633dac", "score": "0.44404432", "text": "public function setTransformer($transformer)\n {\n $this->transformer = $transformer;\n\n return $this;\n }", "title": "" }, { "docid": "d87c8ba40cfc1f474eb86c5756a02d57", "score": "0.44214147", "text": "function setTransformationType(&$inputType, &$outputType) {\n\t\t$typeDescriptionFactory =& TypeDescriptionFactory::getInstance();\n\n\t\t// Instantiate the type descriptions if we got string input.\n\t\tif (!is_a($inputType, 'TypeDescription')) {\n\t\t\tassert(is_string($inputType));\n\t\t\t$inputType =& $typeDescriptionFactory->instantiateTypeDescription($inputType);\n\t\t}\n\t\tif (!is_a($outputType, 'TypeDescription')) {\n\t\t\tassert(is_string($outputType));\n\t\t\t$outputType =& $typeDescriptionFactory->instantiateTypeDescription($outputType);\n\t\t}\n\n\t\t$this->_inputType =& $inputType;\n\t\t$this->_outputType =& $outputType;\n\t}", "title": "" }, { "docid": "29a6ae0de3f608d100c25483ecf26ba0", "score": "0.4408333", "text": "function setFilters(array $filters){\n if(!empty($filters['workflow'])){ unset($filters['workflow']); }\n if(!empty($filters['issue'])){ unset($filters['issue']); }\n $this->filters = $this->unsetDateFields($filters);\n //$this->filters = $filters;\n return $this;\n }", "title": "" }, { "docid": "085f1298f87940ccddac84efed8ebcbd", "score": "0.44021308", "text": "protected function _transformText()\n {\n $this->_baseTransform();\n $wrongAttributes = array(\n 'step', 'max', 'min'\n );\n $this->_removeAttribute($wrongAttributes);\n }", "title": "" }, { "docid": "2bf093196a56415a4c7cbdd829d4a734", "score": "0.43813857", "text": "public function setTransformUsage($value)\n {\n return $this->setParameter('transform_usage', $value);\n }", "title": "" }, { "docid": "a7646991edbd18d4746037644168208b", "score": "0.4369871", "text": "public function setFilters($filters){ }", "title": "" }, { "docid": "181210d3f9b42e9fab820ea780d56910", "score": "0.43670434", "text": "public function setColumns(array $columns): self {\n\t\t$this->columnViews = $columns;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "1ee5780acc7cbfe02a1bb0117c1af080", "score": "0.43645856", "text": "public function setTransformer(DataTransformer $transformer)\n {\n $this->transformer = $transformer;\n\n return $this;\n }", "title": "" }, { "docid": "0abff4a24f596e84e0c8c8583126acbe", "score": "0.43627334", "text": "public function setTranslations($translations)\n {\n $this->currentState = self::UNFILTERED;\n $this->translations = $translations;\n $this->applyFilters();\n }", "title": "" }, { "docid": "24321394a0406c8fa61232a4602f7b88", "score": "0.4361909", "text": "public function testGetSetMappings()\n {\n $this->index->setMappings(['test' => 'test']);\n self::assertEquals(['test' => 'test'], $this->index->getMappings());\n }", "title": "" }, { "docid": "8d18f0feab82d14cad17326a47146ac4", "score": "0.43498346", "text": "public function transform($data);", "title": "" }, { "docid": "8d18f0feab82d14cad17326a47146ac4", "score": "0.43498346", "text": "public function transform($data);", "title": "" }, { "docid": "e48717cea4642f2834a60350771ca6af", "score": "0.43456012", "text": "public function getDataTransformers();", "title": "" }, { "docid": "8dd0543f8428970a812959a6c30ab6cf", "score": "0.43433562", "text": "public function set_task($taskIndex,$_tasks){ $this->_tasks[$taskIndex] = $_tasks; return $this; }", "title": "" }, { "docid": "1cdc8f64a40985c7e893e228e744e033", "score": "0.43293563", "text": "public function transformWith($transformer)\n {\n $this->transformer = $transformer;\n\n return $this;\n }", "title": "" }, { "docid": "d462a6b307fd0c45c3841c93f294402b", "score": "0.43293384", "text": "public function getTransformer()\n {\n // TODO: Implement getTransformer() method.\n }", "title": "" }, { "docid": "82c56faeba021e0fa1c45b7d37d85e09", "score": "0.43279782", "text": "public static function indexAll() {\n $docIndex = self::docIndex();\n Elasticsearch_IntegrationManager::create($docIndex)->indexAll();\n }", "title": "" }, { "docid": "97cb2ba9fb8d9227e83d02132a82e436", "score": "0.43256637", "text": "public function updateLuceneIndex()\n {\n $culture = sfConfig::get('sf_default_culture', 'en');\n $title = $this->getTitle();\n $body = $this->getBody();\n $categoryName = $this->getCategory()->getName();\n $tags = $this->getTags();\n $summary = $this->getSearchSummary();\n $link = $this->getPermalink();\n // For reasons I don't understand it's not letting me search for stuff that\n // appears in the title field when I pass the indexed fields individually\n $text = $title . ' ' . $body . ' ' . $categoryName . ' ' . implode(\", \", $tags);\n pkZendSearch::updateLuceneIndex($this, array(\n 'text' => $text\n// 'title' => $title,\n// 'body' => $body,\n// 'category' => $categoryName,\n// 'tags' => implode(\", \", $tags)\n ), $culture, array(\n 'title' => $title,\n 'summary' => $summary,\n 'url' => $link));\n }", "title": "" }, { "docid": "922bd25d6d6a631060456ff526f69de1", "score": "0.43187124", "text": "function transformToThis($name,$xslstr='') {\n\t$this->xsl_set($name,$xslstr);\n\t$this->dom = $this->XSLproc->transformToDoc($this->dom);\n\treturn $this;\n }", "title": "" }, { "docid": "72017278944c57535dc6258d566d88e2", "score": "0.4316227", "text": "protected function addFluentIndexes()\n {\n foreach ($this->columns as $column) {\n foreach (['primary', 'unique', 'index', 'fulltext', 'fullText', 'spatialIndex'] as $index) {\n // If the index has been specified on the given column, but is simply equal\n // to \"true\" (boolean), no name has been specified for this index so the\n // index method can be called without a name and it will generate one.\n if ($column->{$index} === true) {\n $this->{$index}($column->name);\n $column->{$index} = false;\n\n continue 2;\n }\n\n // If the index has been specified on the given column, and it has a string\n // value, we'll go ahead and call the index method and pass the name for\n // the index since the developer specified the explicit name for this.\n elseif (isset($column->{$index})) {\n $this->{$index}($column->name, $column->{$index});\n $column->{$index} = false;\n\n continue 2;\n }\n }\n }\n }", "title": "" }, { "docid": "638c933148f7c5a51dfab239fee72c3d", "score": "0.42954996", "text": "public function buildIndex();", "title": "" }, { "docid": "7e8cb3f4476b5ee0a7fb8d5f3af652ea", "score": "0.42883247", "text": "public function setIndex($index)\n {\n if ($index instanceof Elastica_Index) {\n $index = $index->getName();\n }\n return $this->setParam('_index', $index);\n }", "title": "" }, { "docid": "9d9ad1186ce2bd8bf5e6788056da0c76", "score": "0.4276791", "text": "private function registerTransformer(): void\n {\n $this->app->singleton('throttle.transformer', function (): TransformerFactory {\n return new TransformerFactory();\n });\n\n $this->app->alias('throttle.transformer', TransformerFactory::class);\n $this->app->alias('throttle.transformer', TransformerFactoryInterface::class);\n }", "title": "" }, { "docid": "fe2f79dc9b1aac8287c6682b36d12a15", "score": "0.42746642", "text": "public function setIndex($index);", "title": "" }, { "docid": "fe2f79dc9b1aac8287c6682b36d12a15", "score": "0.42746642", "text": "public function setIndex($index);", "title": "" }, { "docid": "c22032bea801460c5bf804a0aa9a5ad7", "score": "0.42518464", "text": "protected function transformationColumns()\n {\n \t$this->_renderTemplateColumns();\n\t\tif($this->columns){\n\t\t\t$this->attrColumnsHeader = $this->columns;\n\t\t\t//Transformation Column Class GridView to DataTable\n\t\t\tif (!isset($this->clientOptions[\"columns\"]) && isset($clientOptions[\"ajax\"])){\n\t\t\t\tforeach($this->attrColumnsHeader as $key => $column){\n\t\t\t\t\tif(is_string($column)){\n\t\t\t\t\t\t$this->clientOptions[\"columns\"][$key] = ['data' => $column];\n\t\t\t\t\t}else if(isset($column['class']) && $column['class'] == 'yii\\grid\\SerialColumn'){\n\t\t\t\t\t\t$this->clientOptions[\"columns\"][$key] = 'SerialColumn';\n\t\t\t\t\t}else if(isset($column['class']) && $column['class'] == 'yii\\grid\\CheckboxColumn'){\n\t\t\t\t\t\t$this->clientOptions[\"columns\"][$key] = 'CheckboxColumn';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$opColumns = [];\n\t\tif(isset($this->clientOptions['columns'])){\n\t\t\t$this->clientOptions['columns'] = $this->renderQueryRegisterJswithTpl();\n\t\t\tforeach($this->clientOptions['columns'] as $k => $column){\n\t\t\t\t$this->attrColumnsHeader[$k] = $column['data'];\n\t\t\t\tswitch($column['data']){\n\t\t\t\t\tcase 'rownumber' :\n\t\t\t\t\t\t$opColumns[$k] = ['class' => 'yii\\grid\\SerialColumn','headerOptions' => ['width' => '50']];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'active' :\n\t\t\t\t\t\t$opColumns[$k] = ['class' => 'yii\\grid\\CheckboxColumn','headerOptions' => ['width' => '50']];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault :\n\t\t\t\t\t\tif(isset($column['header'])){\n\t\t\t\t\t\t\t$opColumns[$k] = [\n\t\t\t\t\t\t\t\t'value' => $column['data'],\n\t\t\t\t\t\t\t\t'header' => (isset($column['header'])) ? $column['header'] : null,\n\t\t\t\t\t\t\t];\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$opColumns[$k] = $column['data'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\tif(empty($this->columns)){\n\t\t\t$this->columns = $opColumns;\n\t\t}\n\t\t$this->renderButtonsDataTable();\n }", "title": "" }, { "docid": "dc3155258d7d3d6049609b6dc2e5f8f7", "score": "0.42450815", "text": "protected function setCoordinateOrientation()\n {\n ps_rotate($this->psLabel, -90.0);\n ps_translate($this->psLabel, -$this->getPageHeight(), 0);\n }", "title": "" }, { "docid": "2d8cf76f2242d2612e728c842e932845", "score": "0.42446625", "text": "public function __construct() {\n\n parent::__construct();\n\n if (empty($this->translations)) {\n\n // Autodetect fields containing translations.\n\n $this->translations = array_keys(array_except(array_flip($this->fields()), array(\n $this->primary_key,\n $this->external_key_field,\n $this->lang_field,\n )));\n }\n }", "title": "" }, { "docid": "590651a8793de5f43ea62918e1d8993f", "score": "0.4242827", "text": "public function buildIndexes();", "title": "" }, { "docid": "06df7b136b2f1c0bb29a662a0ca54b52", "score": "0.42312965", "text": "public function set_rotate ($rotate) {\n $this->rotate = $rotate;\n }", "title": "" }, { "docid": "87b7bc4b73e57dc778a892511c491859", "score": "0.42151916", "text": "public function setIndexType($typeName);", "title": "" }, { "docid": "eb2173d2e6276765f7b9316893cabe12", "score": "0.42090815", "text": "public function setIndexes($indexes)\n {\n $this->indexes = $indexes;\n return $this;\n }", "title": "" }, { "docid": "8efc98dcb197edf7d3dd56b99a336cb2", "score": "0.42072746", "text": "public function __construct(\n \\SimpleXMLElement $structure, Transformation $transformation\n ) {\n $this->data = $structure;\n }", "title": "" }, { "docid": "29e5c3bffd1ff3a538d08cb67ce018ca", "score": "0.42065626", "text": "public function doNotTranslateFields(){\n\t\t$this->translateField=false;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "c7bc790e4aa1f811be4478b557eed94a", "score": "0.42008266", "text": "public function setFilters($filters) {\n\t\t$this->filters = $filters;\n\t}", "title": "" }, { "docid": "16a15ebb9dfeb020af8032aa434d40ab", "score": "0.41976163", "text": "function setDecorators(array $replacements);", "title": "" }, { "docid": "e1ed47d0eb117c3fcf5e4e4faabc15f4", "score": "0.41929877", "text": "protected function addFluentIndexes()\n {\n foreach ( $this->columns as $column ) {\n foreach ( array (\n 'primary',\n 'unique',\n 'index'\n ) as $index ) {\n if ( $column->$index === true ) {\n $this->$index ( $column->name );\n continue 2;\n } elseif ( isset ( $column->$index ) ) {\n $this->$index ( $column->name, $column->$index );\n continue 2;\n }\n }\n }\n }", "title": "" }, { "docid": "d85ded75315563d1ecd9396eacb6789e", "score": "0.41926178", "text": "public function addTransformation($transformation)\n {\n $this->getTransformation()->addTransformation($transformation);\n\n return $this;\n }", "title": "" }, { "docid": "e347c74e011e6d72e24c8b79f7861ec5", "score": "0.4188902", "text": "public function getTransformer(){\n return $this->_transformer;\n }", "title": "" }, { "docid": "0b98d4bb70796d1a75e29619f418def8", "score": "0.41884264", "text": "public function setRotation(array $rotation): self {\n\t\t$this->rotation = $rotation;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "dfa0314d152ff72af86f8bbf936a580c", "score": "0.4185369", "text": "public function setOrientationLandscape()\n {\n $this->orientation = \"Landscape\";\n $this->iniConf['orientation'] = $this->orientation;\n $this->pdf->setOptions($this->iniConf);\n }", "title": "" }, { "docid": "fc3689d2ef0312321294fbe5b46716d8", "score": "0.41817284", "text": "public function setIdx( $idx ) { $this->idx = $idx; return $this; }", "title": "" }, { "docid": "fc3689d2ef0312321294fbe5b46716d8", "score": "0.41817284", "text": "public function setIdx( $idx ) { $this->idx = $idx; return $this; }", "title": "" }, { "docid": "b6f2dc7b59f6a26f92fe1ae609dfaa59", "score": "0.41719496", "text": "private function setIndex($index)\n {\n $this->index = $index;\n\n return $this;\n }", "title": "" }, { "docid": "97516936e899016aae8a3cdf47c6d3c2", "score": "0.41714674", "text": "protected function setup()\n {\n $resultCount = $this->count();\n $totalCount = $this->paginator->getTotalCount();\n $limit = $this->paginator->getLimit();\n $offset = $this->paginator->calculateOffset($this->currentPage);\n\n $this->setupIndex($totalCount, $resultCount, $offset, $limit);\n $this->setupPages();\n }", "title": "" }, { "docid": "772b53b06a56b1b95ac65203ebdb68cc", "score": "0.41697904", "text": "public function getTransformerBindings(): array;", "title": "" }, { "docid": "cb48010e6b88cc2656f096feb15fa675", "score": "0.41680375", "text": "public function addIndex() {\n if($this->_currentTable == null) return false;\n $this->addKey(\"INDEX\", func_get_args());\n\n // fluent interface\n return $this;\n }", "title": "" }, { "docid": "8d1c16b4bfb684e92736b365f82195aa", "score": "0.4157411", "text": "public function getTransformations()\n {\n $result = array();\n foreach ($this as $template) {\n foreach ($template as $transformation) {\n $result[] = $transformation;\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "b8c379affd364da7b10eaa21c825f102", "score": "0.41553515", "text": "public function configure()\n {\n parent::configure();\n \n // get the source from the original pager\n $source = $this->getPager()->getDataSource();\n // redefine the pager\n// $this->pager = new sfDataSourcePagerJqFlexi($source);\n\n // define the javascript formatter\n $this->setJavaScriptFormatter(new sfGridFormatterJqFlexi($this));\n \n // define the json formatter for JqFlexi\n $this->setDataFormatter(new sfGridFormatterJsonJqFlexi($this));\n }", "title": "" }, { "docid": "e7474dbd97a68e416966043157f8ef78", "score": "0.41444775", "text": "public static function setTransliterator(Transliterator $transliterator): void\n {\n static::$_defaultTransliterator = $transliterator;\n }", "title": "" }, { "docid": "0cef3687e19650de0c90d67e5ebef252", "score": "0.414435", "text": "public function setFieldNames() {\r\n\t//\tif ($this->fields) {\r\n\t\t\t$this->fieldNames = array_keys($this->fields);\r\n\t//\t}\r\n\t}", "title": "" }, { "docid": "35b4a778ac897152d6d18b81739a2e79", "score": "0.41386205", "text": "private function transformErrors(ErrorDocumentTransformation $transformation): void\n {\n foreach ($transformation->document->getErrors() as $error) {\n $transformation->result[\"errors\"][] = $error->transform();\n }\n }", "title": "" }, { "docid": "64cf0fb141363400d6b15f1a2108394a", "score": "0.41368693", "text": "public function onSchemaIndexDefinition(SchemaIndexDefinitionEventArgs $event): void\n {\n $event->preventDefault();\n $data = $event->getTableIndex();\n\n $name = str_replace('.', '__', $data['name']);\n $event->setIndex(new Index($name, $data['columns'], $data['unique'], $data['primary'], $data['flags'], $data['options']));\n }", "title": "" }, { "docid": "199f6e9478de0a47cc1cb1eb0006341d", "score": "0.41349745", "text": "function test15_transformation_create() {\r\n $this->api->create_transformation(\"api_test_transformation\", array(\"crop\" => \"scale\", \"width\" => 102));\r\n $transformation = $this->api->transformation(\"api_test_transformation\");\r\n $this->assertNotEquals($transformation, NULL);\r\n $this->assertEquals($transformation[\"allowed_for_strict\"], TRUE);\r\n $this->assertEquals($transformation[\"info\"], array(array(\"crop\"=> \"scale\", \"width\"=> 102)));\r\n $this->assertEquals($transformation[\"used\"], FALSE);\r\n }", "title": "" }, { "docid": "9054529cafbf63812232a2934b1ea049", "score": "0.41348585", "text": "public function __construct() {\n global $conf;\n $idx_dir = $conf['indexdir'];\n if(!@file_exists($idx_dir . '/spatial.idx')) {\n $indexer = plugin_load('helper', 'spatialhelper_index');\n if($indexer !== null) {\n $indexer->generateSpatialIndex();\n }\n }\n $this->spatial_idx = unserialize(\n io_readFile($fn = $idx_dir . '/spatial.idx', false),\n ['allowed_classes' => false]\n );\n }", "title": "" }, { "docid": "21e64c2267d57d4ac02cb3f2a73265f3", "score": "0.41337293", "text": "public function reindex() {\n\n\t\tLoader::library('3rdparty/Zend/Search/Lucene');\n\t\tLoader::library('3rdparty/StandardAnalyzer/Analyzer/Standard/English');\n\n\t\t$index = new Zend_Search_Lucene(DIR_FILES_CACHE_PAGES, true);\n\t\t//Zend_Search_Lucene_Analysis_Analyzer::setDefault(new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num_CaseInsensitive());\n\t\tZend_Search_Lucene_Analysis_Analyzer::setDefault(new StandardAnalyzer_Analyzer_Standard_English());\n\t\t\n\t\t$db = Loader::db();\n\t\t$collection_attributes = Loader::model('collection_attributes');\n\t\t$r = $db->query(\"select cID from Pages order by cID asc\");\n\t\t$g = Group::getByID(GUEST_GROUP_ID);\n\t\t$nh = Loader::helper('navigation');\n\t\t\n\t\twhile ($row = $r->fetchRow()) {\n\t\t\t$c = Page::getByID($row['cID'], 'ACTIVE');\n\t\t\t\n\t\t\tif($c->getCollectionAttributeValue('exclude_search_index')) continue;\t\t\n\t\t\t\n\t\t\t$themeObject = $c->getCollectionThemeObject();\n\t\t\t$g->setPermissionsForObject($c);\n\t\t\tif ($g->canRead()) {\t\t\t\n\t\t\t\t$pageID = md5($row['cID']);\n\t\t\t\t$doc = new Zend_Search_Lucene_Document();\n\t\t\t\t$doc->addField(Zend_Search_Lucene_Field::Keyword('cIDhash', $pageID));\n\t\t\t\t$doc->addField(Zend_Search_Lucene_Field::Unindexed('cID', $row['cID']));\n\t\t\t\t$doc->addField(Zend_Search_Lucene_Field::Text('cName', $c->getCollectionName(), APP_CHARSET));\n\t\t\t\t$doc->addField(Zend_Search_Lucene_Field::Keyword('ctHandle', $c->getCollectionTypeHandle()));\n\t\t\t\t$doc->addField(Zend_Search_Lucene_Field::Text('cDescription', $c->getCollectionDescription(), APP_CHARSET));\n\t\t\t\t$doc->addField(Zend_Search_Lucene_Field::Text('cBody', $this->getBodyContentFromPage($c), APP_CHARSET));\n\t\t\t\t\n\t\t\t\tif (is_object($themeObject)) {\n\t\t\t\t\t$doc->addField(Zend_Search_Lucene_Field::Text('cTheme', $themeObject->getThemeHandle()));\n\t\t\t\t}\n\t\t\t\t$doc->addField(Zend_Search_Lucene_Field::Text( 'cPath', $c->getCollectionPath())); \n\t\t\t\t\n\t\t\t\tif (count($this->cPathSections) > 0) {\n\t\t\t\t\tforeach($this->cPathSections as $var => $cPath) {\n\t\t\t\t\t\t$isInSection = (strstr(strtolower($c->getCollectionPath()), $cPath . '/')) ? 'true' : 'false';\n\t\t\t\t\t\t$doc->addField(Zend_Search_Lucene_Field::Keyword($var, $isInSection));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$attributes=$c->getSetCollectionAttributes();\n\t\t\t\tforeach($attributes as $attribute){\n\t\t\t\t\tif ($attribute->isCollectionAttributeKeySearchable()) {\n\t\t\t\t\t\t$doc->addField(Zend_Search_Lucene_Field::Keyword( $attribute->akHandle, $c->getCollectionAttributeValue($attribute) ));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$index->addDocument($doc);\n\t\t\t}\t\t\t\n\t\t}\n\t\t$result = new stdClass;\n\t\t$result->count = $index->count();\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "2c532fd84f9e99bb14c977bc31717cce", "score": "0.41317078", "text": "public function setFilters(array $filters);", "title": "" }, { "docid": "68a413be0cc8581819881e112c54ef9e", "score": "0.41298285", "text": "function test14_transformation_update() {\r\n $this->api->update_transformation(\"c_scale,w_100\", array(\"allowed_for_strict\"=>TRUE));\r\n $transformation = $this->api->transformation(\"c_scale,w_100\");\r\n $this->assertNotEquals($transformation, NULL);\r\n $this->assertEquals($transformation[\"allowed_for_strict\"], TRUE);\r\n $this->api->update_transformation(\"c_scale,w_100\", array(\"allowed_for_strict\"=>FALSE));\r\n $transformation = $this->api->transformation(\"c_scale,w_100\");\r\n $this->assertNotEquals($transformation, NULL);\r\n $this->assertEquals($transformation[\"allowed_for_strict\"], FALSE);\r\n }", "title": "" }, { "docid": "d80d589d8c916b3c0e603508f62ae6a1", "score": "0.41247258", "text": "public function SetIndex( $fields )\n\t{\n\t\tif (is_string( $fields )) {\n\t\t\tif ($fields == \"\") {\n\t\t\t\t$fields = null;\n\t\t\t} else {\n\t\t\t\t$fields = [ $fields ];\n\t\t\t}\n\t\t} else if (is_array( $fields )) {\n\t\t\tif (count( $fields ) == 0) {\n\t\t\t\t$fields = null;\n\t\t\t}\n\t\t} else {\n\t\t\t// TODO: throw?\n\t\t\t$fields = null;\n\t\t}\n\t\treturn $this->AlterDefinition( 'index', $field );\n\t}", "title": "" }, { "docid": "804200e46866d35c55e6fb1f29e0a213", "score": "0.41243967", "text": "function transformer(): TransformerAbstract\n {\n return new TeamTransformer();\n }", "title": "" } ]
a6aa07f8864ed24247e1a8d4c0debc6b
Set the id of attachment.
[ { "docid": "384b8db4f920298469c8a8b15d40a3c7", "score": "0.0", "text": "public function id($id)\n {\n $this->id = $id;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "431445626716a77fa9ae279237eb069a", "score": "0.6853135", "text": "public function setId($value) { $this->_id = $value; }", "title": "" }, { "docid": "8a7f6e80cf2a073d5e5e469a321d8c0a", "score": "0.67913073", "text": "function SetId($value) { $this->id=$value; }", "title": "" }, { "docid": "8a7f6e80cf2a073d5e5e469a321d8c0a", "score": "0.67913073", "text": "function SetId($value) { $this->id=$value; }", "title": "" }, { "docid": "8a7f6e80cf2a073d5e5e469a321d8c0a", "score": "0.67913073", "text": "function SetId($value) { $this->id=$value; }", "title": "" }, { "docid": "75e2bb9c4f6dbd954bf51ef15b1fed00", "score": "0.67686033", "text": "public function attachmentId()\n {\n return $this->attachmentId;\n }", "title": "" }, { "docid": "2065b652e7e9b98e6eea21c12ebc8ede", "score": "0.664732", "text": "public function setAttachmentId($id)\n {\n if (!is_scalar($id)) {\n throw new InvalidArgumentException(\n 'Attachment ID must be a string or numerical value.'\n );\n }\n\n $this->attachmentId = $id;\n\n return $this;\n }", "title": "" }, { "docid": "69fe5a984ccade6c46a19162ca6143a5", "score": "0.6638618", "text": "public function setId($id)\n {\n $this->_id = (integer) $id;\n }", "title": "" }, { "docid": "b5f2445d7acaa14b636da85cf9334e94", "score": "0.6636186", "text": "function setId($id) {\n\t\t$this->_id = $id;\n\t}", "title": "" }, { "docid": "cc7008dc2722c3e5016bd406bc3ac0f3", "score": "0.6610593", "text": "public function setId($_id)\n {\n $this->id = $_id;\n }", "title": "" }, { "docid": "7a17da0d04c812f939cda35ec46031f7", "score": "0.65969425", "text": "private function setId($id) { $this->_id = $id; }", "title": "" }, { "docid": "3296e0e63b0ed466dcfe0c67620ceb55", "score": "0.65644234", "text": "public function setId($id)\n\t{\n\t\t$this->_id = (int) $id;\n\t}", "title": "" }, { "docid": "551532d05a0d7b0f6a43693fede46ff7", "score": "0.6545585", "text": "public function setId($id)\n {\n $this->_id = $id;\n }", "title": "" }, { "docid": "4bcc6ac2a29c4ced67e992cea5aad032", "score": "0.6528805", "text": "public function setId($id) {\r\n $this->_id = $id;\r\n }", "title": "" }, { "docid": "09adf8234811e6f5a5581aa5461bf764", "score": "0.6520521", "text": "public function setId($id) {\n\t\t\n\t\t$this->_id = $id;\n\t}", "title": "" }, { "docid": "9c7d223149103d27230b74f24aaca978", "score": "0.65105397", "text": "public function setId($id) {\n $ID = (int) $id;\n if($ID > 0){\n $this->_id = $ID;\n }\n }", "title": "" }, { "docid": "d01456ed2ffcdf584b5c731900c7f970", "score": "0.649773", "text": "function setId($id)\n {\n $this->__id = $id ;\n }", "title": "" }, { "docid": "d01456ed2ffcdf584b5c731900c7f970", "score": "0.649773", "text": "function setId($id)\n {\n $this->__id = $id ;\n }", "title": "" }, { "docid": "85519272688dd9cb88055cb50d390ad2", "score": "0.6496138", "text": "public function setId ($id)\n {\n $this->_id = $id;\n }", "title": "" }, { "docid": "3e8f2f28115bab1b14fa5570f065c737", "score": "0.6496031", "text": "public function setId( $id ) {\n\t\t\t$this->_id = $id;\n\t\t}", "title": "" }, { "docid": "4aa719749fbf14633264d289adf8f3e7", "score": "0.6478445", "text": "public function setId($id)\r\n\t\t{\r\n\t\t\t$this->_id = $id;\r\n\t\t}", "title": "" }, { "docid": "52efa4e5eb6def225b403548a96b53c4", "score": "0.6432358", "text": "public function setId($value)\n {\n $this->_id = $value;\n }", "title": "" }, { "docid": "d50439b4fbe25812b280a3460de253f3", "score": "0.6424017", "text": "private function setId($id) {\n $this->id = $id;\n }", "title": "" }, { "docid": "efe752ff1909ba244a165b189be533a9", "score": "0.64227223", "text": "function setID($id){\n\t\t\t$this->id = $id;\n\t\t}", "title": "" }, { "docid": "ab7279c5d8701c2fb245fcebadc454ca", "score": "0.64125425", "text": "public function setId($id)\n {\n $id = (int) $id;\n\n if ( $id > 0 )\n {\n $this -> _id = $id;\n }\n }", "title": "" }, { "docid": "c47432c167a4e8ff5f6c01d92b9a5be6", "score": "0.64091605", "text": "public function setID($_id) { $this->id = $_id; }", "title": "" }, { "docid": "ae3fc89183b639a9c90c0b96acb004e7", "score": "0.6397172", "text": "function setId($id) {\n $this->id = $id;\n }", "title": "" }, { "docid": "2d082c9e55120c4ee12ab4988f85f512", "score": "0.63873875", "text": "public function setId($id)\n {\n $this->id = (int)$id;\n }", "title": "" }, { "docid": "dac882d1c1b6fbe4ee50d0d57d766cb0", "score": "0.63826", "text": "private function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "dac882d1c1b6fbe4ee50d0d57d766cb0", "score": "0.63826", "text": "private function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "97cf4736567d4ef5b1ebbe24dd75c7e3", "score": "0.6381586", "text": "function set_id( $id )\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "81345d3094794fa9e93e3a3f22d1e9fc", "score": "0.6380896", "text": "function setId($id){\n\t\t\t$this->id = $id;\n\t\t}", "title": "" }, { "docid": "2861f27cdb3e5fb4733861b1c0715232", "score": "0.6379127", "text": "public function setID($value) {\n\t\t\t$this->_id = $value;\n\t\t}", "title": "" }, { "docid": "b7a839f55c46555acb1a56af0fee1ab5", "score": "0.63775325", "text": "public function setId($id) {\r\n $this->id = ($id > 0) ? $id : NULL;\r\n }", "title": "" }, { "docid": "13b04dec2b346ea4a5b8d5820fc4bb5d", "score": "0.63627464", "text": "final function setFile_id($value) {\n\t\treturn $this->setFileId($value);\n\t}", "title": "" }, { "docid": "639036b52589cf2e3a025ab39c01eef8", "score": "0.63579375", "text": "public function set_id($value){\r\n\t\t$this->id = $value;\r\n\t}", "title": "" }, { "docid": "7fe4c5a15bc88e0b78bb8547e78e612c", "score": "0.6354732", "text": "public function setId( int $id ) {\n $this->_id = $id;\n }", "title": "" }, { "docid": "8d5e7f030e9c0eef538e486585025ae6", "score": "0.6351306", "text": "public function setId($id)\n {\n $this->id = (int) $id;\n }", "title": "" }, { "docid": "8d5e7f030e9c0eef538e486585025ae6", "score": "0.6351306", "text": "public function setId($id)\n {\n $this->id = (int) $id;\n }", "title": "" }, { "docid": "8d5e7f030e9c0eef538e486585025ae6", "score": "0.6351306", "text": "public function setId($id)\n {\n $this->id = (int) $id;\n }", "title": "" }, { "docid": "8d5e7f030e9c0eef538e486585025ae6", "score": "0.6351306", "text": "public function setId($id)\n {\n $this->id = (int) $id;\n }", "title": "" }, { "docid": "8d5e7f030e9c0eef538e486585025ae6", "score": "0.6351306", "text": "public function setId($id)\n {\n $this->id = (int) $id;\n }", "title": "" }, { "docid": "8d5e7f030e9c0eef538e486585025ae6", "score": "0.6351306", "text": "public function setId($id)\n {\n $this->id = (int) $id;\n }", "title": "" }, { "docid": "be15c607d8d80f2aaa59cb938a7569d3", "score": "0.6348869", "text": "private function setId($id)\n\t{\n\t\t$this->id = $id;\n\t}", "title": "" }, { "docid": "c184dbed0bc8961039189d2461d0d60f", "score": "0.63452417", "text": "public function set_id($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "b4112ddf209baac3f4376ed666ffcdef", "score": "0.63450515", "text": "function setId($id)\n\t {\n\t\t$this->id = $id;\n\t}", "title": "" }, { "docid": "c310ac7b73f4c402cd311c403fe6447a", "score": "0.63376117", "text": "public function setId( $id ) {\n\t\t$this->id = $id;\n\t}", "title": "" }, { "docid": "c310ac7b73f4c402cd311c403fe6447a", "score": "0.63376117", "text": "public function setId( $id ) {\n\t\t$this->id = $id;\n\t}", "title": "" }, { "docid": "edb527b14a7ea5a0f0370b2474a37804", "score": "0.6335982", "text": "public function set_id($id) {\n\t\t$this->id = $id;\n\t}", "title": "" }, { "docid": "f3720e259f9eefcc3715b2e716c514cb", "score": "0.63357854", "text": "public function setId ($id)\n {\n $this->id = (int) $id;\n }", "title": "" }, { "docid": "2a1ac2b8890cbf6f231b2eb9fcbf1572", "score": "0.63194066", "text": "public function setID($id) {\n $this->id = $id; \n }", "title": "" }, { "docid": "1d78f89d0a04b35609697bde699cd69d", "score": "0.63117903", "text": "public function setId($id) {\n\t\t$this->id = $id;\n\t}", "title": "" }, { "docid": "a6c9cb1f53e854fec2627531a038d063", "score": "0.630639", "text": "function setId($id){\n $this->id = $id;\n }", "title": "" }, { "docid": "243c44d4a3d7db6a13ce0ce506e9153c", "score": "0.63062686", "text": "public function setId($id)\n {\n $this->_id = (int) $id;\n $this->_data = null;\n }", "title": "" }, { "docid": "608f6a8b35b2166daf43038bb3f8e006", "score": "0.6305948", "text": "public function setID($_id) \n\t{\n\t\t$this->_id = $_id;\n\t}", "title": "" }, { "docid": "dc6513cb65e54b3514845c2de32d5fd3", "score": "0.6305396", "text": "function setId($id)\r\n\t{\r\n\t\t$this->id = $id;\r\n\t}", "title": "" }, { "docid": "e71abd62e52b2f29f0140d60f10c9a44", "score": "0.63014615", "text": "public function setId($id) {\n $this->id = $id;\n }", "title": "" }, { "docid": "76efdc494f038569272b5c0bb3ce0875", "score": "0.6294728", "text": "public function setId($id) \n {\n $this->id = $id;\n }", "title": "" }, { "docid": "76efdc494f038569272b5c0bb3ce0875", "score": "0.6294728", "text": "public function setId($id) \n {\n $this->id = $id;\n }", "title": "" }, { "docid": "76efdc494f038569272b5c0bb3ce0875", "score": "0.6294728", "text": "public function setId($id) \n {\n $this->id = $id;\n }", "title": "" }, { "docid": "c548a98cfa21df17f69ed33af37bb923", "score": "0.6294213", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "6f7fb589957e5e6db1a2498d5bfea06a", "score": "0.62925875", "text": "public function set_id($id) \n {\n $this->id = $id;\n }", "title": "" }, { "docid": "8fed614db83d0499487a23ca077a3809", "score": "0.62870574", "text": "public function setId($var)\n {\n GPBUtil::checkString($var, True);\n $this->id = $var;\n }", "title": "" }, { "docid": "8fed614db83d0499487a23ca077a3809", "score": "0.62870574", "text": "public function setId($var)\n {\n GPBUtil::checkString($var, True);\n $this->id = $var;\n }", "title": "" }, { "docid": "8fed614db83d0499487a23ca077a3809", "score": "0.62870574", "text": "public function setId($var)\n {\n GPBUtil::checkString($var, True);\n $this->id = $var;\n }", "title": "" }, { "docid": "0b8cf2c9014663dcee9a3dbe9785b5e2", "score": "0.6282895", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "0b8cf2c9014663dcee9a3dbe9785b5e2", "score": "0.6282895", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "249632013a002187895bbe1b7dda703e", "score": "0.62817824", "text": "public function setId($id)\n {\n $this->setIdHexa($id);\n }", "title": "" }, { "docid": "a1ef42d57bab23731af3698abb9334ef", "score": "0.6278715", "text": "public function setId($id)\r\n {\r\n $this->id = $id;\r\n }", "title": "" }, { "docid": "a1ef42d57bab23731af3698abb9334ef", "score": "0.6278715", "text": "public function setId($id)\r\n {\r\n $this->id = $id;\r\n }", "title": "" }, { "docid": "a1ef42d57bab23731af3698abb9334ef", "score": "0.6278715", "text": "public function setId($id)\r\n {\r\n $this->id = $id;\r\n }", "title": "" }, { "docid": "8aa3077ca2d01442aa75ca389ba8100f", "score": "0.6276506", "text": "public function setId($id){\n\t\t$this->id = $id;\n\t}", "title": "" }, { "docid": "8aa3077ca2d01442aa75ca389ba8100f", "score": "0.6276506", "text": "public function setId($id){\n\t\t$this->id = $id;\n\t}", "title": "" }, { "docid": "8aa3077ca2d01442aa75ca389ba8100f", "score": "0.6276506", "text": "public function setId($id){\n\t\t$this->id = $id;\n\t}", "title": "" }, { "docid": "8aa3077ca2d01442aa75ca389ba8100f", "score": "0.6276506", "text": "public function setId($id){\n\t\t$this->id = $id;\n\t}", "title": "" }, { "docid": "8aa3077ca2d01442aa75ca389ba8100f", "score": "0.6276506", "text": "public function setId($id){\n\t\t$this->id = $id;\n\t}", "title": "" }, { "docid": "4366d00c2dd3c26cc2ffec9257f59fce", "score": "0.62728494", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "4366d00c2dd3c26cc2ffec9257f59fce", "score": "0.62728494", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "4366d00c2dd3c26cc2ffec9257f59fce", "score": "0.62728494", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "4366d00c2dd3c26cc2ffec9257f59fce", "score": "0.62728494", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "4366d00c2dd3c26cc2ffec9257f59fce", "score": "0.62728494", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "34b9f6cf8cbee73eeeb2a99904f24b65", "score": "0.62710845", "text": "public function setId($id) {\r\n $this->id = $id;\r\n }", "title": "" }, { "docid": "c800ff1aaa63f92ce1feb118e601fdf1", "score": "0.6270536", "text": "public function setId($id){\n\t\t\t$this->id = $id;\n\t\t}", "title": "" }, { "docid": "0f7603548ab30bca6f0dca04e3a67f74", "score": "0.6269795", "text": "public function setId($id) {\n\t\tif(!Validator::UnsignedNumber($id)) throw new Exception(lang('error_147'));\n\t\t$this->_id = $id;\n\t}", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" }, { "docid": "030084e743c4b0310762120e97138525", "score": "0.6269159", "text": "public function setId($id)\n {\n $this->id = $id;\n }", "title": "" } ]
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "a59cd7ae897bb87996c268f4081f19cc", "score": "0.0", "text": "public function store(CreateCartRequest $request)\n {\n $this->cart->store($request);\n\n return back()->with('success', trans('messages.created', ['model' => $this->model_name]));\n }", "title": "" } ]
[ { "docid": "08bf051ddd8fb321ee757b920958e19f", "score": "0.70976067", "text": "public function save()\n {\n if($this->saved()) $this->client->put($this->router->path($this->_id), $this->attributes);\n else {\n // create the resource\n $response = $this->client->post($this->router->path(), $this->attributes);\n $this->_id = $response['id'];\n $this->exists = true;\n }\n }", "title": "" }, { "docid": "1d53a1b85330dbd54b2110d38f49c072", "score": "0.681924", "text": "public function store() {\n\t\treturn $this->attemptEdit(new Resource(), true);\n\t}", "title": "" }, { "docid": "c3547b2773825a7810dd2d7be213c014", "score": "0.6804277", "text": "public function store()\n {\n try\n {\n $this->execute('Chenkacrud\\Resources\\ProcessResourceCommand');\n } catch (\\Exception $e)\n {\n dd('error');\n }\n }", "title": "" }, { "docid": "6842710d2e1af6b300f62eeb2e1bd88e", "score": "0.6769727", "text": "public function store(StoreResourceRequest $request)\n {\n $resource = new Resource;\n $resource->fill($request->all());\n\n if ($request->has('audio')) {\n $resource->audio = $request->audio->store('resources');\n }\n\n if ($request->has('document')) {\n $resource->document = $request->document->store('resources');\n }\n\n $resource->saveOrFail();\n\n return $this->api_success([\n 'data' => new ResourceResource($resource),\n 'message' => __('pages.responses.created'),\n 'code' => 201\n ], 201);\n }", "title": "" }, { "docid": "e51fa81f584f17798f0483bf328bf426", "score": "0.6717579", "text": "public function store()\n\t{\n\t\t$input = Input::except(array_keys($this->relationships)); // Less safe, more convenient\n\t\t//$input = Input::only(array_keys($this->resource->getFillableLabels())); //More safe, less convenient\n\t\t$this->resource = $this->resource->fill($input);\n\n\t\treturn $this->persist(__FUNCTION__);\n\t}", "title": "" }, { "docid": "42778db7569f0d4906b7ddc48c115b07", "score": "0.67087436", "text": "public function store()\n\t{ \n\t\t$resource = $this->resourceRepository->newResource();\n\t\t$manager = new ResourceManager($resource, Input::all());\n\n\t\t$manager->save();\n\t\t\n\t\treturn Redirect::route('resource')->with('successMessage', 'El recurso se ha guardado con éxito.');\n\t}", "title": "" }, { "docid": "ffb15df04a92a2bd0c39d006dbfccb17", "score": "0.6673047", "text": "public function store()\n {\n return $this->okResponse(\n new $this->resource(\n $this->service->store()\n )\n );\n }", "title": "" }, { "docid": "bf05263acc6d31d87c9ed0ed323947e0", "score": "0.6646847", "text": "public function store(string $storagePath): self;", "title": "" }, { "docid": "883aa81cab86540535ca6f5ce9f06662", "score": "0.65984905", "text": "public function store()\n {\n // Check whether the object has ever been stored.\n if ($this->isNew) {\n Logger::get()->debug('Storing new entity ' . get_class($this) . '...');\n // Create the record. Get an ID back.\n $this->id = $this->getDataSource()->create($this->getFieldsData());\n // Store this object in the appropriate factory for further use.\n $this->getFactory()->registerEntity($this);\n } else {\n Logger::get()->debug('Updating entity ' . get_class($this) . \":{$this->id}...\");\n $this->getDataSource()->update($this->id, $this->getFieldsData());\n }\n\n // Once stored, the entity is no longer new.\n $this->isNew = false;\n }", "title": "" }, { "docid": "682cf9175057b843f439d49243f35e43", "score": "0.65586984", "text": "public function store()\n {\n try {\n\n $fields = request()->all();\n\n if ($this->validator instanceof LaravelValidator)\n $this->validator->with($fields)->passesOrFail(ValidatorInterface::RULE_CREATE);\n\n if ($this->fileManager instanceof FileManager){\n $files = request()->allFiles();\n\n foreach ($files as $key => $value) {\n $fields[$key] = $this->fileManager->saveFile(request()->file($key), 'jokes');\n }\n }\n\n $createdData = $this->repository->create($fields);\n\n $response = [\n 'message' => 'Resource created.',\n 'data' => $createdData->toArray(),\n ];\n\n if (request()->wantsJson()) {\n\n return response()->json($response);\n }\n\n return redirect(route($this->routeName.'.index'))->with('message', $response['message']);\n\n } catch (ValidatorException $e) {\n if (request()->wantsJson()) {\n return response()->json([\n 'error' => true,\n 'message' => $e->getMessageBag()\n ]);\n }\n\n return redirect()->back()->withErrors($e->getMessageBag())->withInput();\n }\n }", "title": "" }, { "docid": "594b28921afbb12a0e454c67e44f856f", "score": "0.64591277", "text": "public function store()\n {\n try {\n\n $fields = request()->all();\n\n if ($this->validator instanceof LaravelValidator)\n $this->validator->with($fields)->passesOrFail(ValidatorInterface::RULE_CREATE);\n\n if ($this->fileManager instanceof FileManager){\n $files = request()->allFiles();\n\n foreach ($files as $key => $value) {\n $fields[$key] = $this->fileManager->saveFile(request()->file($key), 'jokes');\n }\n }\n\n $createdData = $this->service->create($fields);\n\n $response = [\n 'message' => 'Resource created.',\n 'data' => $createdData->toArray(),\n ];\n\n if (request()->wantsJson()) {\n\n return response()->json($response);\n }\n\n return redirect(route($this->routeName.'.index'))->with('message', $response['message']);\n\n } catch (ValidatorException $e) {\n if (request()->wantsJson()) {\n return response()->json([\n 'error' => true,\n 'message' => $e->getMessageBag()\n ]);\n }\n\n return redirect()->back()->withErrors($e->getMessageBag())->withInput();\n }\n }", "title": "" }, { "docid": "c4a6400468605f94c95346b88f6f2008", "score": "0.64513814", "text": "public function store(string $type, string $id, array $data) : StorageInterface;", "title": "" }, { "docid": "e0d7c11298835364d1614d7fbef2631c", "score": "0.6432668", "text": "public function store()\n {\n $data = (new TagValidator)->validate(request()->all());\n $title = Arr::get($data, 'title');\n\n try {\n // Database exception happened so tag not created\n Tag::query()\n ->create([\n 'title' => $title,\n ]);\n\n } catch (QueryException $e) {\n dump('===== Error =====');\n dump($e->getMessage());\n dump('===== Error =====');\n }\n\n $tag = optional(Tag::query()\n ->where('title', $title)\n ->first());\n\n // Links will create with no tag linked to it\n collect(Arr::get($data, 'links'))\n ->each(function ($link) use ($tag) {\n Link::query()\n ->create([\n 'title' => Arr::get($link, 'title'),\n 'url' => Arr::get($link, 'url'),\n 'tag_id' => $tag->id\n ]);\n });\n\n\n return TagResource::make($tag->load('links'));\n }", "title": "" }, { "docid": "5fe3bd8f1f685c0f002d9e7c106f705e", "score": "0.64026153", "text": "public function save($resource) {\n $stmt = $this->db->prepare(\"INSERT INTO resource (id, name, description, quantity, type)\n values (0,?,?,?,?)\");\n $stmt->execute(array($resource->getName(),$resource->getDescription(),$resource->getQuantity(),\n $resource->getType()));\n }", "title": "" }, { "docid": "96db6e3f6a4372c5200ed59ea22c5213", "score": "0.63912016", "text": "public function create() {\n $this->storage_dir->touch();\n $this->storage_file->touch();\n }", "title": "" }, { "docid": "94e2137d286af73e1907a20ffd26c05f", "score": "0.6390171", "text": "public function store(Request $request)\n\t{\n $validator = $this->validate($request, [\n \t//\n ]);\n\n try\n {\n \t$newResource = $this->repository->createResource($request->all());\n\n } catch(\\Exception $exception)\n {\n $this->flashErrorAndReturnWithMessage($exception);\n }\n\n // returns back with success message\n flash()->success('Your resource was added!');\n return redirect()->action('Admin\\Catalogue\\ResourcesController@index');\n\t}", "title": "" }, { "docid": "55b375ea7c339e8f0e9c38919b53b1db", "score": "0.637569", "text": "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "title": "" }, { "docid": "e6a2ecff8be90a692566c0ac3bcd7773", "score": "0.6366602", "text": "public function store()\r\n\t\t{\r\n\t\t\t//\r\n\t\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "03f9a1cfca780e7f0a082544fc457677", "score": "0.63657933", "text": "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "title": "" }, { "docid": "8aec92e17d4ffebeefab6cee733407cb", "score": "0.6354979", "text": "public function store()\n\t{\n\t\t$data = Input::get();\n\n\t\t$item = $this->repo->create($data);\n\n\t\t$resource = new Item($item, $this->transformer);\n\n\t\treturn $this->response($resource, 201);\n\t}", "title": "" }, { "docid": "fa7c0a35fe78f5965a80622583f4e02b", "score": "0.63520324", "text": "public function store(Request $request)\n {\n $requestData = $request->all();\n unset($requestData[\"_token\"]);\n $requestData = json_encode($requestData);\n ResourcesService::postToResourcesTable($requestData);\n SyncService::SyncResourcesTable();\n return redirect('admin/resources')->with('flash_message', 'Resource added!');\n }", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d25e328608bea4c8f7f39852c1099ca8", "score": "0.6342437", "text": "public function store()\n\t{\n\t\t//\n\t}", "title": "" } ]
e434e38cc09d12b4f8b5f21d4f6496b4
perintah lakukan koneksi ke database
[ { "docid": "e159553163d0062a5b57bb9d4e890a72", "score": "0.0", "text": "function jmlhpegawaiarsip()\n{\n require_once(\"../config/koneksi.php\");\n\n //membuat data dalam bentuk array\n $myArray = array();\n\n //query untuk menampilkan data secara keseluruhan\n $sql = \"SELECT COUNT(nama) AS jmlhpegawai FROM datapegawai WHERE statusarsippegawai = 'ya'\";\n if ($result = mysqli_query($konek, $sql)) {\n while ($row = $result->fetch_array(MYSQLI_ASSOC)) {\n $myArray[] = $row;\n }\n echo json_encode($myArray);\n }\n mysqli_close($konek);\n}", "title": "" } ]
[ { "docid": "a591ec240cf46bf3c151c5c250291189", "score": "0.6652918", "text": "protected function kreiraj()\n {\n $keysStr = $valuesStr = '';\n $values = [];\n foreach ($this->atributi as $key => $value) {\n $keysStr .= $key . ', ';\n $valuesStr .= '?, ';\n $values[] = $value;\n }\n\n $queryStr = 'INSERT INTO ' . static::$tabela . ' (' . substr($keysStr, 0, -2) . ') VALUES (' . substr($valuesStr, 0, -2) . ')';\n\n $veza = Connection::veza();\n\n $veza->prepare($queryStr)->execute($values);\n\n $this->id = $veza->lastInsertId();\n }", "title": "" }, { "docid": "82bb972118064c34037dc7b7caa5d0ee", "score": "0.64373773", "text": "function pPenilaian($conn,$p_key) {\n\t\t\t$sql = \"select bidangkegiatan,kodekegiatan+' - '+namakegiatan as parentkegiatan,isaktif from \".self::table('ms_penilaian').\" where idkegiatan = '$p_key'\";\n\t\t\t$row = $conn->GetRow($sql);\n\t\t\t\n\t\t\treturn $row;\n\t\t}", "title": "" }, { "docid": "33a2a521ad251e4300c60d13690d9a8f", "score": "0.64218867", "text": "public function Mnhacyeuthich(){\r\n $a = new ketnoi;\r\n $b = $a->ketnoisql($con);\r\n if($b)\r\n {\r\n $sql = \"SELECT * FROM baihat\";\r\n $result = $con->query($sql);\r\n $a->dongketnoi($con);\r\n return $result;\r\n }\r\n else{\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "362e797220ba833c6d9a30e481aa5d5e", "score": "0.6362741", "text": "function ambil_proyek_drkh()\n\t{\n\t\t$sql=\"SELECT * FROM irena_view_hibah_drkh\";\n\t\treturn $this->db->query($sql);\n\t}", "title": "" }, { "docid": "4855370ea2a6f1a01814d126dfdc072a", "score": "0.6279219", "text": "function pilihsemua(){\n $query =\"SELECT * FROM transaksi\";\n $hasil = $this->conn->query($query);\n\n if ($this->takErr($hasil)){\n return $hasil;\n }\n }", "title": "" }, { "docid": "906bf150d1de8bc0aa4c248b60f79c1b", "score": "0.62154883", "text": "function db_aktu_tabellen_set()\n\t{\n\t\t$this->db_aktu_connect();\n\t\t$this->db_aktu_tabellen = $this->dumpnrestore->make_tablelist();\n\t\t$this->db_aktu_tabellen = $this->db_korrektur_tabellen_praefix(\"aktu\", $this->db_aktu_tabellen);\n\t}", "title": "" }, { "docid": "24ea0d55cde77affa3a4a24c328ea20b", "score": "0.6200388", "text": "public function hitungIklimKelompok() {\n\n\t\t$sql = \"INSERT INTO klasifikasi\n\t\t\t\t(kd_klasifikasi,\n\t\t\t\t kd_kelompok,\n\t\t\t\t thn_awal,\n\t\t\t\t thn_akhir,\n\t\t\t\t rata_suhu,\n\t\t\t\t rata_kelembaban,\n\t\t\t\t rata_ch,\n\t\t\t\t rata_lpm)\n\t\t\t\tVALUES\n\t\t\t\t(:kd_klasifikasi,\n\t\t\t\t :kd_kelompok,\n\t\t\t\t :tahunAwal,\n\t\t\t\t :tahunAkhir,\n\t\t\t\t :suhu,\n\t\t\t\t :kelembaban,\n\t\t\t\t :curah_hujan,\n\t\t\t\t :lpm)\";\n\t\ttry {\n\t\t\t//proses\n\t\t\t$stmt = $this->connect->prepare($sql);\n\t\t\t$stmt->bindParam(':kd_klasifikasi', $this->kd_klasifikasi);\n\t\t\t$stmt->bindParam(':kd_kelompok', $this->kd_kelompok);\n\t\t\t$stmt->bindParam(':tahunAwal', $this->tahunAwal);\n\t\t\t$stmt->bindParam(':tahunAkhir', $this->tahunAkhir);\n\t\t\t$stmt->bindParam(':suhu', $this->suhu);\n\t\t\t$stmt->bindParam(':kelembaban', $this->kelembaban);\n\t\t\t$stmt->bindParam(':curah_hujan', $this->curah_hujan);\n\t\t\t$stmt->bindParam(':lpm', $this->lpm);\n\n\t\t\t$stmt->execute();\n\t\t\t$arrayResponse = array(\"status\" => true, \"message\" => 'berhasil disimpan');\n\t\t}\n\t\tcatch (PDOException $e) {\n\t\t\techo '{\"error\": {\"text\": '.$e->getMessage().'}}';\n\t\t}\n\t}", "title": "" }, { "docid": "7c9803ce48a45d02aefad986c8d77066", "score": "0.6176191", "text": "public function get_api_key(){\n\t\t//$this->db->db_select('simpeg_api');\n\t\t//return $this->db->get('aplikasi');\n\t}", "title": "" }, { "docid": "4a99418e4680528b665c676625bbba93", "score": "0.61501646", "text": "public function loadKlasifikasi() {\n\n\t\t$sql = \"SELECT * FROM klasifikasi WHERE kd_klasifikasi = :kd_klasifikasi;\";\n\n\t\ttry {\n\t\t\t//proses\n\t\t\t$stmt = $this->connect->prepare($sql);\n\t\t\t$stmt->bindParam(':kd_klasifikasi', $this->kd_klasifikasi);\n\n\t\t\t$stmt->execute();\n\t\t\t$result = $stmt->fetchAll(PDO::FETCH_OBJ);\n\t\t\techo json_encode($result);\n\t\t}\n\t\tcatch (PDOException $e) {\n\t\t\techo '{\"error\": {\"text\": '.$e->getMessage().'}}';\n\t\t}\n\t}", "title": "" }, { "docid": "c55589383f71141f4291987c01a81dcd", "score": "0.61432415", "text": "public function nactiDB() {\n\t\tDb::connect('127.0.0.1', 'skaut_jidelnicek', 'root', '1234');\n\t\t\n\t\t$surovinyDB = Db::queryAll('SELECT * FROM surovina');\n\t\tforeach($surovinyDB as $surovinaDB) {\n\t\t\t$surovina = new Surovina($surovinaDB['nazev'], $surovinaDB['jednotka'],\n\t\t\t\t\t\t\t\t\t$surovinaDB['typ']);\n\t\t\t$this->suroviny[$surovinaDB['id_surovina']] = $surovina;\n\n\t\t}\n\t\tasort($this->suroviny);\n\t\t\n\t\t$jidlaDB = Db::queryAll('SELECT * FROM jidlo');\n\t\tforeach($jidlaDB as $jidloDB) {\n\t\t\t$jidloTypDb = Db::queryAll('\n\t\t\t\t\t\t\tSELECT id_typ\n\t\t\t\t\t\t\tFROM jidlo_typ\n\t\t\t\t\t\t\tWHERE id_jidlo = ?', $jidloDB['id_jidlo']);\n\t\t\t$jidloTyp = array();\n\t\t\tforeach($jidloTypDb as $typ) {\n\t\t\t\t$jidloTyp[] = $typ['id_typ'];\n\t\t\t}\n\t\t\t$recepturaDB = Db::queryAll('\n\t\t\t\t\t\t\tSELECT id_surovina, mnozstvi\n\t\t\t\t\t\t\tFROM receptura\n\t\t\t\t\t\t\tWHERE id_jidlo = ?', $jidloDB['id_jidlo']);\n\t\t\t$recepturaKont = array();\n\t\t\tforeach($recepturaDB as $surovinaRec) {\n\t\t\t\t$recepturaKont[$surovinaRec['id_surovina']] = $surovinaRec['mnozstvi'];\n\t\t\t}\n\t\t\t$jidlo = new Jidlo($jidloDB['nazev'], $recepturaKont, $jidloTyp);\n\t\t\t$this->jidla[$jidloDB['id_jidlo']] = $jidlo;\n\t\t}\n\t\tasort($this->jidla);\n\t}", "title": "" }, { "docid": "554df998019b660ac8af357144d3cf7a", "score": "0.61150146", "text": "function daf_persediaan(){\n $query = $this->db->query(\"SELECT * FROM persediaan_barang,pembelian_barang WHERE persediaan_barang.kode_barang=pembelian_barang.kode_barang\");\n return $query;\n }", "title": "" }, { "docid": "d3856311f9063bc3b029b334f6a05bdb", "score": "0.6114533", "text": "function koneksi()\n{\n $conn = mysqli_connect(\"localhost\", \"root\", \"\") or die(\"koneksi ke DB gagal\");\n mysqli_select_db($conn, \"tubes_193040052\") or die(\"Database salah\");\n\n return $conn;\n}", "title": "" }, { "docid": "00c7edd8765b88a4a555d3ac93408221", "score": "0.61034673", "text": "function baca_data(){\n\t\treturn $this->db->query(\"SELECT * FROM tb_produk\");\n\t}", "title": "" }, { "docid": "872ea3a289371162f0c89ab5ef0b3bc4", "score": "0.6072826", "text": "function dajSistemProm() {\n\n\t\t\t$sistemskep['dbhost'] = 'localhost';\n\t\t\t$sistemskep['dbkorisnik'] = 'root';\n\t\t\t$sistemskep['dblozinka'] = '';\n\t\t\t$sistemskep['dbime'] = 'fakultet';\n\n\t\t\treturn $sistemskep;\n\t\t}", "title": "" }, { "docid": "4ad8fcdddd57f8bb88bca464ab96d89b", "score": "0.6067914", "text": "function show_kelompok($id){\n $query=\"select Uraian from Kelompok where Kelompok_ID='$id'\";\n $result=mysql_query($query) or die(mysql_error());\n while($row= mysql_fetch_object($result)){\n $hasil=$row->Uraian;\n }\n if ($hasil==\"\")\n $hasil=\"(Semua Kelompok)\";\n return $hasil;\n }", "title": "" }, { "docid": "9d434b666232ef843309ea219878d3ab", "score": "0.60646933", "text": "function readDetilPengarangPilihan(){\n // query to read single record\n $query = \"SELECT\n *\n FROM\n \" . $this->table_name . \"\n WHERE\n id_detil = ?\n \";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of product to be updated\n $stmt->bindParam(1, $this->id_detil);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->id_detil = $row['id_detil'];\n $this->id_buku = $row['id_buku'];\n $this->id_pengarang = $row['id_pengarang'];\n $this->ket = $row['ket'];\n\n\n }", "title": "" }, { "docid": "d63d5017d9110ea9cad04e1c48093754", "score": "0.60629034", "text": "public function listId() {\n\n // Query sql\n $query = \"SELECT * FROM \" . $this->table . \" WHERE id_buku = ? LIMIT 0,1\";\n\n // Prepare statement\n $stmt = $this->koneksi->prepare($query);\n\n // Binding isi / parameter\n $stmt->bindParam(1, $this->id_buku);\n\n // Eksekusi query\n $stmt->execute();\n\n // Fetch data hasil query\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n // Masukkan isi hasil fetch data ke dalam objek\n $this->judul = $row['judul'];\n $this->penulis = $row['penulis'];\n $this->penerbit = $row['penerbit'];\n $this->deskripsi = $row['deskripsi'];\n $this->bahasa = $row['bahasa'];\n $this->genre = $row['genre'];\n $this->jumlah_halaman = $row['jumlah_halaman'];\n $this->tahun_terbit = $row['tahun_terbit'];\n }", "title": "" }, { "docid": "46d96c2eb8224df0c527b81322422cfa", "score": "0.60565454", "text": "public function muncul_pertanyaan(){\n\t\t$sql = \"SELECT * FROM pertanyaan\";\n\t\t$query = $this->db->query($sql);\n\t\tif(!$query){\n\t\t\treturn \"Gagal\";\n\t\t\techo \"Gagal\";\n\t\t} else {\n\t\t\treturn $query;\n\t\t\techo \"Berhasil\";\n\t\t}\n\t}", "title": "" }, { "docid": "71b153518cf6fd1392ddb819cee66096", "score": "0.60535234", "text": "public function __construct(){\n\t// Berfungsi untuk menghubungkan PHP dengan Basis Data, berisi informasi (nama_basis:host=nama_server_basis_data;dbname=nama_basis_data','nama_pengguna','kata_sandi')\n\t$this->db = new PDO('mysql:host=localhost;dbname=psikopat','root','root');\n\t}", "title": "" }, { "docid": "5c26e9d99162c4ff1846276f5a69b4ca", "score": "0.6049544", "text": "function getKetua($conn,$kodeunit) {\n\t\t\t$sql = \"select u.ketua as nip, akademik.f_namalengkap(p.gelardepan,p.namadepan,p.namatengah,p.namabelakang,p.gelarbelakang) as nama\n\t\t\t\t\tfrom \".static::table().\" u left join kepegawaian.ms_pegawai p on p.nip = u.ketua\n\t\t\t\t\twhere u.kodeunit = '$kodeunit'\";\n\t\t\t\n\t\t\treturn $conn->GetRow($sql);\n\t\t}", "title": "" }, { "docid": "77f95e4b3b06ed81724f9a4325e5a7fe", "score": "0.6043995", "text": "function tambahWali($id_wali, $nama_wali){\n $koneksi = koneksi();\n $sql = \"insert into wali values('$id_wali', '$nama_wali')\";\n $hasil = 0;\n if(mysqli_query($koneksi, $sql))\n $hasil = 1;\n mysqli_close($koneksi);\n return $hasil;\n}", "title": "" }, { "docid": "8df071fa10549ba6e79cb79e83a82701", "score": "0.60335386", "text": "public function lisaaKantaan() {\n $sql = \"INSERT INTO sanasto(sanastotunnus, nimi, kieli, kuvaus, maara, tehty, opetunnus) VALUES(?,?,?,?,?,?,?)\";\n $kysely = getTietokantayhteys()->prepare($sql);\n $ok = $kysely->execute(array($this->getSanastotunnus(), $this->getNimi(), $this->getKieli(), $this->getKuvaus(), $this->getMaara(), date('d/m/Y'), $this->getOpetunnus()));\n \n return $ok;\n }", "title": "" }, { "docid": "312591a262e0f5019a08ba53ee1f6fc4", "score": "0.6028092", "text": "function koneksi()\r\n{\r\n $conn = mysqli_connect(\"localhost\", \"root\", \"\");\r\n mysqli_select_db($conn, \"pw_tubes_203040041\");\r\n\r\n return $conn;\r\n}", "title": "" }, { "docid": "8ea6ad7305ee4f848f4f2add2a66f36b", "score": "0.60199445", "text": "public function create_tb_data_sekolah()\n {\n $this->db->query(\"CREATE TABLE `{$this->db->dbprefix}data_sekolah` (\n `id` int(11) NOT NULL AUTO_INCREMENT,\n `nama` varchar(128) NOT NULL,\n `nss` varchar(128) NOT NULL,\n `npsn` varchar(128) NOT NULL,\n `alamat_sekolah` varchar(128) NOT NULL,\n `kode_pos` varchar(128) NOT NULL,\n `telp` varchar(128) NOT NULL,\n `faks` varchar(128) NOT NULL,\n `kecamatan` varchar(128) NOT NULL,\n `kabupaten` varchar(128) NOT NULL,\n `provinsi` varchar(128) NOT NULL,\n `website` varchar(128) NOT NULL,\n `email` varchar(128) NOT NULL,\n PRIMARY KEY (`id`)\n ) ENGINE=InnoDB DEFAULT CHARSET=latin1;\");\n }", "title": "" }, { "docid": "5f201ad21e5c0c5ce2e33e629eb96027", "score": "0.6013861", "text": "function getInfoPenilaian($conn, $r_key){\n\t\t\tlist($r_periode, $r_idpegawai) = explode(\"|\", $r_key);\n\t\t\t\n\t\t\t$sql = \"select n.*,p.namaperiode, \".static::schema().\"f_namalengkap(gelardepan,namadepan,namatengah,namabelakang,gelarbelakang) as namalengkap, u.namaunit \n\t\t\t\t\tfrom \".static::table('pa_nilaiakhir').\" n \n\t\t\t\t\tleft join \".static::schema().\"pa_periode p on p.kodeperiode=n.kodeperiode\n\t\t\t\t\tleft join \".static::schema().\"ms_pegawai m on m.idpegawai=n.idpegawai\n\t\t\t\t\tleft join \".static::schema().\"ms_unit u on u.idunit=m.idunit\n\t\t\t\t\twhere n.kodeperiode='$r_periode' and n.idpegawai=$r_idpegawai\";\n\t\t\t$row = $conn->GetRow($sql);\n\t\t\t\n\t\t\treturn $row;\n\t\t}", "title": "" }, { "docid": "0ed293d10eb2433a868bd95a1a22624b", "score": "0.6009301", "text": "public function getDaftarSpekunBelumKembali()\n\t\t{\n\t\t\t$query = \"SELECT * FROM PEMINJAMAN WHERE Status IS NULL\";\n\t\t\t//$this->db->where('Status', NULL);\t\t\t\n\t\t\t//return $this->db->get($this->table);\t\n\t\t\treturn $this->db->query($query);\t\n\t\t}", "title": "" }, { "docid": "fbd8e409b925bca954d727c8eea129e9", "score": "0.59899694", "text": "function pengawasan_b3()\r\n\t{\r\n\t\t$data['title'] = \"Data Pengawasan B3\";\r\n\t\t$data['jenis_kegiatan'] = $this->supermodel->queryManual('select * from izin_btiga group by jenis_kegiatan asc');\r\n\t\t$data['izin'] = $this->supermodel->getData('izin_btiga');\r\n\t\t$this->load->view('ragamdata/pengawasan_b3/pengawasan_b3', $data);\r\n\t}", "title": "" }, { "docid": "32117a6d09ca238a88b1c8f6d84586a9", "score": "0.59848124", "text": "function ChiTietDonDatHangDAO(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d9e6bad30385369be13045a95543566a", "score": "0.59848005", "text": "public function create_tb_kelas()\n {\n $this->db->query(\"CREATE TABLE `{$this->db->dbprefix}kelas` (\n `id` int(11) NOT NULL AUTO_INCREMENT,\n `guru_id` int(11) NOT NULL,\n `tingkat` int(11) NOT NULL,\n `jurusan_id` int(11) NOT NULL,\n `nama` varchar(128) NOT NULL,\n `slug` varchar(255) DEFAULT NULL,\n PRIMARY KEY (`id`)\n ) ENGINE=InnoDB DEFAULT CHARSET=utf8;\");\n }", "title": "" }, { "docid": "4fe38ca54577198ffe1633c6c05a3f26", "score": "0.5975448", "text": "function tambah_data_guru($foto_guru){\n\t\tGLOBAL $koneksi;\n\t\trequire_once \"variable/variable_guru.php\";\n\t\t$query \t\t\t\t= \"INSERT INTO guru VALUES (\n\t\t\t\t\t\t\t\t\t\t\t\t\tNULL,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'$username',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'$password',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'$nim_guru',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'$foto_guru',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'$nama_lengkap_guru',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'$nama_depan_guru',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'$nama_belakang_guru',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'$mapel','$akses','guru')\";\n\t\treturn run_query($query);\n\t}", "title": "" }, { "docid": "f275b18d8f7561e3daa204ea958f3635", "score": "0.59744394", "text": "public function tambah() {\n\n // Query sql\n $query = \"INSERT INTO \". $this->table . \" SET judul=:judul, penulis=:penulis, penerbit=:penerbit, \n deskripsi=:deskripsi, bahasa=:bahasa, genre=:genre, jumlah_halaman=:jumlah_halaman, tahun_terbit=:tahun_terbit\";\n\n // Prepare statement\n $stmt = $this->koneksi->prepare($query);\n\n // Sanitize input browser\n $this->judul = htmlspecialchars(strip_tags($this->judul));\n $this->penulis = htmlspecialchars(strip_tags($this->penulis));\n $this->penerbit = htmlspecialchars(strip_tags($this->penerbit));\n $this->deskripsi = htmlspecialchars(strip_tags($this->deskripsi));\n $this->bahasa = htmlspecialchars(strip_tags($this->bahasa));\n $this->genre = htmlspecialchars(strip_tags($this->genre));\n $this->jumlah_halaman = htmlspecialchars(strip_tags($this->jumlah_halaman));\n $this->tahun_terbit = htmlspecialchars(strip_tags($this->tahun_terbit));\n\n // Binding isi\n $stmt->bindParam(\":judul\", $this->judul);\n $stmt->bindParam(\":penulis\", $this->penulis);\n $stmt->bindParam(\":penerbit\", $this->penerbit);\n $stmt->bindParam(\":deskripsi\", $this->deskripsi);\n $stmt->bindParam(\":bahasa\", $this->bahasa);\n $stmt->bindParam(\":genre\", $this->genre);\n $stmt->bindParam(\":jumlah_halaman\", $this->jumlah_halaman);\n $stmt->bindParam(\":tahun_terbit\", $this->tahun_terbit);\n\n // Eksekusi query\n if($stmt->execute()) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "7943a20557c6df35e15ee11670ebb86a", "score": "0.5974177", "text": "function lihatdata()\n {\n return $this->db->get('tb_jenjang');\n }", "title": "" }, { "docid": "5b3810f0710c029da01c4a7c60ee6c60", "score": "0.5969512", "text": "public function dbdua()\n\t{\n\t\t$q = $this->api->dbdua();\n\t\techo json_encode($q);\n\t}", "title": "" }, { "docid": "ca02ae2bd2bd7c40baa53b8d61fd47a3", "score": "0.5965935", "text": "public function muncul_pengguna(){\n\t\t$sql = \"SELECT * FROM pengguna\";\n\t\t$query = $this->db->query($sql);\n\t\tif(!$query){\n\t\t\treturn \"Gagal\";\n\t\t\techo \"Gagal\";\n\t\t} else {\n\t\t\treturn $query;\n\t\t\techo \"Berhasil\";\n\t\t}\n\t}", "title": "" }, { "docid": "151a1814cc48ffce15a2d4aa2cb53b50", "score": "0.5945134", "text": "function cerobong()\r\n\t{\r\n\t\t$data['title'] = \"Data Pengujian Emisi Cerobong\";\r\n\t\t$data['tahunuji'] = $this->supermodel->queryManual('select * from hasiluji_cerobong group by tahunuji_cerobong desc');\r\n\t\t$this->load->view('ragamdata/cerobong/cerobong', $data);\r\n\t}", "title": "" }, { "docid": "6b06d67e78daf63c1eafecf7bb923b5d", "score": "0.59271145", "text": "public function loadDataFromDb() {\n \n }", "title": "" }, { "docid": "e19a92d9b8fe3d1d0f5c529254e19e53", "score": "0.59210396", "text": "public function data_kelas()\n\t{\n // function ini hanya boleh diakses oleh admin dan dosen\n if($this->session->userdata('akses')=='1'){\n\t\t$data['list'] = $this->InputUser_model->getAll_kelas();\n $this->template->utama('Admin/v_data/v_data_kelas', $data);\n }else{\n echo '<script type=\"text/javascript\">alert(\"Maaf Akses Tidak Boleh\");\n\t window.location=\"index\";\n\t </script>';\n }\n \n\t}", "title": "" }, { "docid": "a77501229044ed7f6643294f28b8b10f", "score": "0.59209514", "text": "function OperacionConexion()\n {\n echo \"<h1>Paises del mundo</h1>\";\n $resultado = $this->conector->query(\"select country.Name,country.IndepYear from country\");\n echo \"El numero de paises es: \".$resultado->num_rows.\"<br><br>\";\n\n foreach ($resultado as $fila)\n {\n if ($fila['IndepYear']==null)\n $fila['IndepYear']=\"NO INDEPENDIZADO\";\n ?>\n <div class=\"row\">\n <div class=\"column left\">\n <?=$fila[\"Name\"] ?>\n </div>\n <div class=\"column right\">\n <?=$fila[\"IndepYear\"] ?>\n </div>\n </div>\n <?php\n }\n }", "title": "" }, { "docid": "3028c676dc7eaa88ad991ff0f64addd3", "score": "0.5920676", "text": "function tampil_data()\n\t{\n\t\treturn $this->db->query(\"SELECT*FROM `penduduk`\")->result();\n\t}", "title": "" }, { "docid": "f4d0508d701ea70009570a2cf7c5b291", "score": "0.5920636", "text": "public function create_tb_keahlian()\n {\n $this->db->query(\"CREATE TABLE `{$this->db->dbprefix}keahlian` (\n `id` int(11) NOT NULL AUTO_INCREMENT,\n `kurikulum_id` int(11) NOT NULL,\n PRIMARY KEY (`id`)\n ) ENGINE=InnoDB DEFAULT CHARSET=latin1;\");\n }", "title": "" }, { "docid": "8a5151d5ac735aa33c21d385bbcbef9e", "score": "0.59203863", "text": "function getDataJenjang(){\n\t\n\t$db\t\t\t=\tnew\tDb_connection();\n\t$enkripsi\t=\tnew Enkripsi();\n\t\n\t$sql\t\t=\tsprintf(\"SELECT IDJENJANG, NAMA_JENJANG FROM m_jenjang ORDER BY IDJENJANG\");\n\t$result\t\t=\t$db->query($sql);\n\t$data\t\t=\tarray();\n\t\n\tif($result){\n\n\t\tif(count($result) > 0){\n\n\t\t\tforeach($result as $key){\n\t\n\t\t\t\tarray_push($data, array($enkripsi->encode($key['IDJENJANG']), $key['NAMA_JENJANG']));\n\t\t\t\n\t\t\t}\n\n\t\t} else {\n\t\n\t\t\tarray_push($data, array('','Data tidak ditemukan'));\n\t\n\t\t}\n\n\t} else {\n\n\t\tarray_push($data, array('','Data tidak ditemukan'));\n\n\t}\n\n\techo json_encode($data);\n\tdie();\n\t\t\n}", "title": "" }, { "docid": "ec695a2cfe98bbd3ead6f2de0e7ce29c", "score": "0.5911086", "text": "public function one($db) {\n \n // menyiapkan hasil query\n $result_query = new result_query();\n\n // membuat intance\n $one = new data_pariwisata();\n\n // perintah query\n $query = \"SELECT id,kategori_id,nama,lokasi,jarak,deskripsi FROM data_pariwisata WHERE id=? LIMIT 1\";\n \n // menyiapkan query\n $stmt = $db->prepare($query);\n\n // tempelkan parameter query\n $stmt->bind_param('i', $this->id);\n\n // eksekusi\n $stmt->execute();\n \n // jika terjadi error\n if ($stmt->error != \"\"){\n\n // tampilkan sebagai result error\n $result_query-> error = \"error at query one data pariwisata : \".$stmt->error;\n \n // tutup koneksi\n $stmt->close();\n\n // balikan hasil query\n return $result_query;\n }\n\n // ambil hasil query \n $result = $stmt->get_result()->fetch_assoc();\n\n // isi nilai id\n $one->id = $result['id'];\n\n // isi nilai kategori_id\n $one->kategori_id = $result['kategori_id'];\n\n // isi nilai nama\n $one->nama = $result['nama'];\n\n // isi nilai lokasi\n $one->lokasi = $result['lokasi'];\n\n // isi nilai jarak\n $one->jarak = $result['jarak'];\n\n // isi nilai deskripsi\n $one->deskripsi = $result['deskripsi'];\n\n // isi nilai data dengan data intance data pariwisata\n $result_query->data = $one;\n\n // tutup koneksi\n $stmt->close();\n\n // kembalikan hasil\n return $result_query;\n }", "title": "" }, { "docid": "e39e8aeb853b924e4b76cd8bbae9b8e6", "score": "0.5909905", "text": "public function create_tb_perkembangan_karakter()\n {\n $this->db->query(\" CREATE TABLE `{$this->db->dbprefix}perkembangan_karakter` (\n `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,\n `ajaran_id` int(11) NOT NULL,\n `kelas_id` int(11) NOT NULL,\n `siswa_nis` varchar(50) NOT NULL,\n `integritas` text DEFAULT NULL,\n `religius` text DEFAULT NULL,\n `nasionalis` text DEFAULT NULL,\n `mandiri` text DEFAULT NULL,\n `gotong_royong` text DEFAULT NULL,\n `catatan` text DEFAULT NULL,\n PRIMARY KEY (`id`)\n ) ENGINE=InnoDB DEFAULT CHARSET=latin1;\");\n }", "title": "" }, { "docid": "5d5c4bf2e6a77010d4d35331916850ef", "score": "0.59053856", "text": "function tambah_produk($sv_id,$sv_nmproduk,$sv_hrgbeli,$sv_hrgjl,$sv_jml){\t\n\t\t\t\n\t//buat perintah sql\n\t$sql=\"insert into $this->tbl values('$sv_id','$sv_nmproduk','$sv_hrgbeli','$sv_hrgjl','$sv_jml')\";\n\n\t//simpan ke database\n\t$stmt=$this->cn02670->prepare($sql);\n\t$stmt->execute();\n\t\n\t//tutup koneksi\n\t$this->cn02670 = null;\n\t\n}", "title": "" }, { "docid": "de39967fc9efc7037d65b24601f39cff", "score": "0.5890574", "text": "public function store(){\n \treturn \"store\";\t\t//create untuk dimasukkan kedalam tabel didatabase\n }", "title": "" }, { "docid": "4dfad185db881d6df01af4bd92cbd86e", "score": "0.5889218", "text": "public function gabung()\n {\n $result = DB::select(\n 'SELECT \n jurusans.nama as nama_jurusan,\n mahasiswas.id as id_mahasiswa,\n mahasiswas.nama as nama_mahasiswa\n FROM jurusans, mahasiswas WHERE jurusans.id = mahasiswas.jurusan_id'\n );\n foreach ($result as $row) {\n # code...\n echo \"$row->nama_jurusan | $row->nama_mahasiswa | $row->id_mahasiswa <br>\";\n }\n }", "title": "" }, { "docid": "b784fe02a9ff55e2ad42396c494efa54", "score": "0.5888003", "text": "function tarikAkademik($conn,$connsia,$r_periode){\n\t\t\t//hapus dulu\n\t\t\t$conn->Execute(\"delete from \".self::table('ak_bidang1btemp').\" where periode = '$r_periode' and isinput is null\");\n\t\t\t\n\t\t\t//komper dengan idpegawai\n\t\t\t$a_peg = array();\n\t\t\t$a_peg = self::getCompDosen($conn);\n\t\t\t\n\t\t\t$sql = \"select m.periode,m.kodeunit,m.nipdosen,m.kelasmk,mk.kodemk,mk.namamk,mk.sks,u.namaunit\n\t\t\t\t\tfrom akademik.ak_mengajar m\n\t\t\t\t\tleft join akademik.ak_kurikulum mk using (thnkurikulum, kodeunit, kodemk)\n\t\t\t\t\tleft join gate.ms_unit u on u.kodeunit = m.kodeunit \n\t\t\t\t\twhere m.periode = '$r_periode' and m.nipdosen is not null and m.nipdosen <>''\n\t\t\t\t\tgroup by m.periode,m.kodeunit,m.nipdosen,m.kelasmk,mk.kodemk,mk.namamk,mk.sks,u.namaunit\";\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t// $sql = \"select a.periode,a.nipdosen,m.kodemk,m.namamk,u.kodeunit,u.namaunit,a.thnkurikulum,r.koderuang,r.lantai,r.lokasi,m.sks,a.tglkuliah,a.kelasmk\n\t\t\t\t\t// from akademik.ak_kuliah a \n\t\t\t\t\t// left join akademik.ak_matakuliah m on m.kodemk = a.kodemk and m.thnkurikulum = a.thnkurikulum\n\t\t\t\t\t// left join akademik.ms_ruang r on r.koderuang = a.koderuang \n\t\t\t\t\t// left join gate.ms_unit u on u.kodeunit = a.kodeunit \n\t\t\t\t\t// where a.periode = '$r_periode' and statusperkuliahan = 'S' and a.nipdosen is not null and a.nipdosen <>'' \n\t\t\t\t\t// group by a.nipdosen,a.periode,m.kodemk,m.namamk,u.kodeunit,u.namaunit,a.thnkurikulum,r.koderuang,r.lantai,r.lokasi,m.sks,a.tglkuliah,a.kelasmk\n\t\t\t\t\t// order by a.tglkuliah desc\";\n\t\t\t\n\t\t\t$rsa = $connsia->Execute($sql);\t\t\t\t\t\n\t\t\t\n\t\t\t$it=0;\n\t\t\t$nobidang = self::getNoBidangIBTemp($conn,$r_periode);\n\t\t\t$nobidang = empty($nobidang) ? 0 : $nobidang;\n\t\t\t\n\t\t\twhile($rowa = $rsa->FetchRow()){\n\t\t\t\tif ($a_peg['nodosen'][$rowa['nipdosen']] == $rowa['nipdosen'] and !empty($a_peg['idpegawai'][$rowa['nipdosen']])){\n\t\t\t\t\t$colsks = '';\n\t\t\t\t\t$sks = '';\n\t\t\t\t\t$record = array();\n\t\t\t\t\t$record['idpegawai'] = $a_peg['idpegawai'][$rowa['nipdosen']];\n\t\t\t\t\t$record['nobidangibtemp'] = ++$nobidang;\n\t\t\t\t\t$record['periode'] = $rowa['periode'];\n\t\t\t\t\t$record['semester'] = '0'.substr($rowa['periode'],4,1);\n\t\t\t\t\t// $record['tglawal'] = $rowa['tglkuliah'];\n\t\t\t\t\t// $record['tglakhir'] = $rowa['tglkuliah'];\n\t\t\t\t\t$record['thnakademik'] = substr($record['periode'],0,4).((int) substr($record['periode'],0,4) + 1);\n\t\t\t\t\t$record['namakegiatan'] = $rowa['kodemk'].' - '.$rowa['namamk'];\n\t\t\t\t\t// $record['pada'] = $rowa['koderuang'].' - '.$rowa['lantai'].' '.$rowa['lokasi'];\n\t\t\t\t\t$record['tempat'] = $rowa['kodeunit'].' - '.$rowa['namaunit'];\n\t\t\t\t\t$record['kodeunitsia'] = $rowa['kodeunit'];\n\t\t\t\t\t$record['kelasmk'] = $rowa['kelasmk'];\n\t\t\t\t\t$record['sks'] = $rowa['sks'];\n\t\t\t\t\t$record['keterangan'] = 'tarik dari akademik';\n\n\t\t\t\t\tif(!empty($record['sks'])){\n\t\t\t\t\t\t$sks = ','.$record['sks'];\n\t\t\t\t\t\t$colsks=',sks';\n\t\t\t\t\t}\n\t\t\t\t\t$ssql .= \"insert into \".self::table('ak_bidang1btemp').\"\n\t\t\t\t\t\t\t(nobidangibtemp,idpegawai,periode,semester,tglawal,tglakhir,thnakademik,namakegiatan,pada,tempat,kodeunitsia,keterangan\".$colsks.\",kelasmk)\n\t\t\t\t\t\t\tvalues\n\t\t\t\t\t\t\t(\".$record['nobidangibtemp'].\",\".$record['idpegawai'].\",'\".$record['periode'].\"','\".$record['semester'].\"',\n\t\t\t\t\t\t\t'\".$record['tglawal'].\"','\".$record['tglakhir'].\"','\".$record['thnakademik'].\"','\".$record['namakegiatan'].\"',\n\t\t\t\t\t\t\t'\".$record['pada'].\"','\".$record['tempat'].\"','\".$record['kodeunitsia'].\"','\".$record['keterangan'].\"'\".$sks.\",'\".$record['kelasmk'].\"');\";\n\t\t\t\t\t$it++;\n\t\t\t\t\t\n\t\t\t\t\tif($it>20){\n\t\t\t\t\t\t$conn->Execute($ssql);\n\t\t\t\t\t\t$ssql = '';\n\t\t\t\t\t\t$it=0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\tif(!empty($sql))\n\t\t\t\t$conn->Execute($ssql);\n\t\t\t\n\t\t\treturn self::insertStatus($conn);\n\t\t}", "title": "" }, { "docid": "43a4ed48b2b6dc92e6ec4332e263e214", "score": "0.5887131", "text": "public function create_tb_anggota_kelas()\n {\n $this->db->query(\"CREATE TABLE `{$this->db->dbprefix}anggota_kelas` (\n `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,\n `nis` varchar(255) DEFAULT NULL,\n `id_kelas` int(11) UNSIGNED DEFAULT NULL,\n `ajaran_id` int(11) UNSIGNED DEFAULT NULL,\n PRIMARY KEY (`id`)\n ) ENGINE=InnoDB DEFAULT CHARSET=utf8;\");\n }", "title": "" }, { "docid": "4415e0b9b6c9b4b7333944f777279727", "score": "0.58858955", "text": "private function createDB () {\n\t\tif ($this->createTable != 1) return;\n\t\t$this->pi(\"Creating Database for Korvamato\");\n\n\t\t$sqlString = \"CREATE VIRTUAL TABLE korvamadot using FTS4(NICK,PVM,QUOTE,INFO1,INFO2,CHANNEL,ARTIST,TITLE,LINK1,LINK2,DELETED);\";\n\t\t$ret = 0;\n\t\ttry {\n\t\t\t$ret = $this->db->exec($sqlString);\n\t\t} catch(PDOException $e) {\n\t\t\t$this->pe(\"PDO exception: \".$e->getMessage());\n\t\t} catch(Exception $e) {\n\t\t\t$this->pe(\"Exception: \" .$e->getMessage());\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "35e9c7b99e1c54a45ae29b4abbc656c6", "score": "0.58838177", "text": "function koneksi()\n{\n $conn = mysqli_connect(\"localhost\", \"root\", \"\");\n mysqli_select_db($conn, \"pw_tubes_203040009\");\n\n return $conn;\n}", "title": "" }, { "docid": "a6e339c84e9f2afb3af0497ee4746af2", "score": "0.5877893", "text": "public function jabatancetak()\n\t{\n\t\t$this->load('jabatan');\n\t}", "title": "" }, { "docid": "1e1aa5959c3b7e8e9c03c5494f46eb45", "score": "0.58638924", "text": "private function get_data_kontrak(){\n $sql = \"SELECT \n a.KD_KON as KD_KON,\n g.KD_ST as KD_ST,\n a.KD_TAGIHAN as KD_TAGIHAN,\n a.NM_TAGIHAN as NM_TAGIHAN,\n a.JADWAL_BAYAR_TAGIHAN as DATE_BAYAR,\n (a.BIAYA_PER_PEG_TAGIHAN*a.JML_PEG_BAYAR_TAGIHAN) as BIAYA,\n c.NM_JUR as NM_JUR,\n e.SINGKAT_UNIV as SINGKAT_UNIV,\n a.STS_TAGIHAN as STS_TAGIHAN,\n DATEDIFF(a.JADWAL_BAYAR_TAGIHAN,DATE(NOW())) as SELISIH,\n f.NM_USER as NM_USER,\n f.KD_USER as KD_USER,\n f.FOTO_USER as FOTO,\n g.THN_MASUK as THN_MASUK,\n 'kontrak' as JENIS\n FROM d_tagihan a\n LEFT JOIN d_kontrak b ON a.KD_KON=b.KD_KON\n LEFT JOIN r_jur c ON b.KD_JUR=c.KD_JUR\n LEFT JOIN r_fakul d ON c.KD_FAKUL=d.KD_FAKUL\n LEFT JOIN r_univ e ON d.KD_UNIV=e.KD_UNIV\n LEFT JOIN d_user f ON e.KD_USER=f.KD_USER\n LEFT JOIN d_srt_tugas g ON c.KD_JUR=g.KD_JUR\n \";\n// echo $sql;\n $d_kontrak = $this->_db->select($sql);\n foreach($d_kontrak as $kontrak){\n $sel_bayar = $kontrak['STS_TAGIHAN']=='selesai';\n if(!$sel_bayar){\n// var_dump($kontrak['DATE_BAYAR']);\n $is_notif = $this->is_write_notif('kontrak', $kontrak['DATE_BAYAR']);\n// var_dump($is_notif);\n if($is_notif){\n $notif = new NotifikasiDao();\n $notif->set_jenis_notif($kontrak['JENIS']);\n $notif->set_jurusan($kontrak['NM_JUR']);\n $notif->set_kode_link('');\n $notif->set_link($kontrak['SELISIH']);\n $pic = array('kode'=>$kontrak['KD_USER'],'nama'=>$kontrak['NM_USER'],'foto'=>$kontrak['FOTO']);\n $notif->set_pic($pic);\n $notif->set_status_notif($kontrak['STS_TAGIHAN']);\n $notif->set_tahun_masuk($kontrak['THN_MASUK']);\n $notif->set_univ($kontrak['SINGKAT_UNIV']);\n $notif->set_jatuh_tempo($kontrak['DATE_BAYAR']);\n $this->_notif_data[] = $notif;\n// echo $kontrak['KD_ST'].\"-\".$bulan.\"-\".$notif->get_jenis_notif().\"-\".$notif->get_jurusan().\"-\".$notif->get_tahun_masuk().\"-\".$notif->get_univ().\"-\".$notif->get_status_notif().\"</br>\";\n }\n }\n }\n }", "title": "" }, { "docid": "7ac2f5a794e65eb6588e70bb5aa897c9", "score": "0.5862013", "text": "private function save() {\r\n $k = new dbKontakte();\r\n $k->insertKontakt(new kontaktData(0,\r\n $this->params['name'],\r\n $this->params['vorname'],\r\n $this->params['strasse'],\r\n $this->params['plz'],\r\n $this->params['ort'],\r\n $this->params['email'],\r\n $this->params['tpriv'],\r\n $this->params['tgesch']) );\r\n\t}", "title": "" }, { "docid": "7697e20e213924d9c19fa087564429bd", "score": "0.58616006", "text": "public function data_produk_jadwal_kegiatan($id_produk_jadwal){\n\t\t$this->db->where(\"id_produk_jadwal\",$id_produk_jadwal);\n\t\treturn $this->db->get(\"produk_jadwal_kegiatan\");\n\t}", "title": "" }, { "docid": "12a60701dddfc340c8866573b52a31f1", "score": "0.58600557", "text": "public function create_tb_ekskul()\n {\n $this->db->query(\"CREATE TABLE `{$this->db->dbprefix}ekskul` (\n `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,\n `ajaran_id` int(11) NOT NULL,\n `guru_id` int(11) NOT NULL,\n `nama_ekskul` varchar(255) NOT NULL,\n `nama_ketua` varchar(255) NOT NULL,\n `nomor_kontak` varchar(255) NOT NULL,\n PRIMARY KEY (`id`)\n ) ENGINE=InnoDB DEFAULT CHARSET=utf8;\");\n }", "title": "" }, { "docid": "1ef6eae37f5d732e46dab238e730e19f", "score": "0.5858329", "text": "public function tiket_semua(){\n\n\t\t\t$stmt = $this->conn->prepare(\"SELECT * FROM `rute`\");\n\t\t\tif ($stmt->execute())\n\t\t\t{\n\t\t\t\t$result = $stmt->get_result();\n\n\t\t\t\treturn $return;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "33012b2578315df53729382dc70c0936", "score": "0.585393", "text": "public function tampil_data_ujian_akhir()\n {\n $this->db->order_by('id_ujian', 'DESC');\n // Mengambil hanya 1 data dari tabel\n return $this->db->get('tb_ujian', 1);\n }", "title": "" }, { "docid": "6b51e14d7a45addfe64007921dbc3a77", "score": "0.58486766", "text": "public function tampilJadwal($id_kelas){\r\n $sql = \"select nama_kelas,nama from kelas where id_kelas= '\".$id_kelas.\"'\";\r\n return $this->db->query($sql);\r\n }", "title": "" }, { "docid": "d7eb8b15cf8c0b9977ce0c23ec81a4d4", "score": "0.5848498", "text": "public function dar_baja() {\n $objDatos = new clsDatos();\n $sql = \"UPDATE enfemedad SET(id_enf='I')\";\n $objDatos->ejecutar($sql);\n $objDatos->crerrarconexion();\n }", "title": "" }, { "docid": "3493ebb0a772aa916621560b0aad2220", "score": "0.5847256", "text": "public function __construct() {\n $this->mokejimas_table = config::DB_PREFIX . 'mokejimas';\n $this->klientas_table = config::DB_PREFIX . 'klientas';\n $this->saskaita_table = config::DB_PREFIX . 'saskaita';\n //$this->skundu_table = config::DB_PREFIX . 'skundai';\n\n }", "title": "" }, { "docid": "d7257830f0bc35e74d68b6e9aa5c8f59", "score": "0.58440876", "text": "function tampil_data($Kode_Kec=''){\n\t\t\n $sql=\"SELECT * FROM $this->tbl ORDER BY Kode_Kec\"; \n \n $stmt=$this->db->prepare($sql);\n $stmt->execute();\n return $stmt;\n }", "title": "" }, { "docid": "7694072ce0a5e73bd9494cd556645f4a", "score": "0.5839395", "text": "function index_post() {\n $data_jadwal = array(\n 'id_kelas' => $this->post('id_kelas'),\n 'hari' => $this->post('hari'),\n 'waktu_mulai' => $this->post('waktu_mulai'),\n 'waktu_selesai' => $this->post('waktu_selesai'),\n 'matkul' => $this->post('matkul'),\n 'sks' => $this->post('sks'),\n 'jam' => $this->post('jam'),\n 'kelas' => $this->post('kelas'),\n 'pengajar' => $this->post('pengajar')\n );\n\n $insert= $this->db->insert('jadwal',$data_jadwal);\n \n return $this->response(array('status' => '200','result'=>$data_jadwal,'message'=>'success ditambahkan')); \n }", "title": "" }, { "docid": "8bc0fd4f855efef3acafc8888f500762", "score": "0.58389366", "text": "function sekolah_adiwiyata()\r\n\t{\r\n\t\t$data['title'] = \"Data Sekolah Adiwiyata\";\r\n\t\t$data['tahun'] = $this->supermodel->queryManual('select YEAR(tahun_penghargaan) as thn from sekolah group by YEAR(tahun_penghargaan) order by YEAR(tahun_penghargaan) desc');\r\n\t\t$this->load->view('ragamdata/skl_adiwiyata/index', $data);\r\n\t}", "title": "" }, { "docid": "77524e241df332f5dc52962bd69fcb13", "score": "0.58328396", "text": "public function create_tb_data_kurikulum()\n {\n $this->db->query(\"CREATE TABLE `{$this->db->dbprefix}data_kurikulum` (\n `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,\n `kurikulum_id` int(11) NOT NULL,\n `nama_kurikulum` text CHARACTER SET utf8 NOT NULL,\n `bidang_keahlian` text,\n `program_keahlian` text,\n PRIMARY KEY (`id`)\n ) ENGINE=InnoDB DEFAULT CHARSET=latin1;\");\n \n $this->db->query(\"INSERT INTO `data_kurikulum` (`id`, `kurikulum_id`, `nama_kurikulum`, `bidang_keahlian`, `program_keahlian`) VALUES\n (300, 642, 'Otomatisasi Dan Tata Kelola Perkantoran', 'Bisnis dan Manajemen', 'Manajemen Perkantoran'),\n (301, 643, 'Akuntansi dan Keuangan Lembaga', 'Bisnis dan Manajemen', 'Akuntansi dan Keuangan'),\n (302, 644, 'Bisnis Daring dan Pemasaran', 'Bisnis dan Manajemen', 'Bisnis dan Pemasaran'),\n (303, 218, 'Teknik komputer dan jaringan', 'Teknologi Informasi dan Komunikasi', 'Teknik Komputer dan Informatika');\n \");\n }", "title": "" }, { "docid": "6e0d763dbd9ac778b57c7f5331815876", "score": "0.58294815", "text": "public function getJadwal(){\n\t\t$this->db->query('SELECT jadwal_kegiatan.id,tanggal_kegiatan,id_perusahaan,nama_perusahaan,id_produk,kode_produk,nama_produk FROM jadwal_kegiatan LEFT JOIN perusahaan ON jadwal_kegiatan.id_perusahaan = perusahaan.id LEFT JOIN produk ON perusahaan.id_produk = produk.id ORDER BY tanggal_kegiatan DESC');\n\t\treturn $this->db->getAll();\n\t}", "title": "" }, { "docid": "c98d304abb8aff4cbde925721c3a6dfc", "score": "0.582814", "text": "function brojKrivihPrijava($korime) {\n $baza = new Baza();\n $baza->spojiDB();\n $sql = \"SELECT broj_krivih_prijava FROM korisnik WHERE korisnicko_ime='\" . $korime . \"';\";\n $rs = $baza->selectDB($sql);\n $podaci = $rs->fetch_array();\n $krivePrijave = $podaci['broj_krivih_prijava'];\n $baza->zatvoriDB();\n return $krivePrijave;\n}", "title": "" }, { "docid": "095737e404d457b61d131243e4f8dbd0", "score": "0.5824165", "text": "function get_databy_id($id) {\n $this->db->select('k.*,u.*')\n ->from('karyawan k')\n ->join('users u ','u.username = k.nik')\n ->where('k.idkaryawan',$id);\n return $this->db->get()->row();\n }", "title": "" }, { "docid": "e7de3138a087c7ad63bb8634881af38c", "score": "0.5823688", "text": "function koneksi()\n{\n $conn = mysqli_connect(\"localhost\", \"root\", \"\");\n mysqli_select_db($conn, \"pw_tubes_203040120\");\n\n return $conn;\n}", "title": "" }, { "docid": "c3cfc38368711a5992ac5c0939020d80", "score": "0.58209693", "text": "function tampildatamem($kodetitip){\r\n include 'kripto.php';\r\n $kript = new Kriptografi();\r\n\r\n $query = mysqli_query($this->conn,\"SELECT * FROM penitipan WHERE kodetitip = '$kodetitip' \");\r\n $hasil = null;\r\n\r\n while($data = mysqli_fetch_array($query)){\r\n foreach ($data as $key => $value) {\r\n if ($key != 'kodetitip' && $key != 'jlhbarang') {\r\n $kript->setWord($value, 'dekripsi');\r\n $data[$key] = $kript->getPlain();\r\n }\r\n }\r\n $hasil[] = $data;\r\n }\r\n return $hasil;\r\n \r\n }", "title": "" }, { "docid": "e8b1705f1fc2a404cc98f43e0007daaf", "score": "0.5815456", "text": "function db_tambah_alias()\n\t{\n\t\t$id \t= $this->input->post('id'); //id tema atu id person\n\t\t$n \t\t= $this->input->post('n'); //n untuk mengambil data, i untuk memproses data\n\n\t\tfor($n;$n>=1;$n--)\n\t\t{\n\t\t\t//cek katakunci dulu\n\t\t\t${'alias'.$n} = strtolower($this->input->post('alias'.$n));\n\t\t\t$cek_alias = $this->data_kalangan_terbatas->cek_alias(${'alias'.$n});\n\t\t\tif(empty($cek_alias->alias_person))\n\t\t\t{\n\t\t\t\t$data = array('alias_person' => ${'alias'.$n}, 'id_person' => $id);\n\t\t\t\t$this->data_kalangan_terbatas->db_tambah_alias($data,'alias_person');\n\t\t\t}\n\t\t}\n\t\t$this->tagging_alias(false);\n\t\t$this->tagging_alias(true);\n\t\tredirect('C_kalangan_terbatas/tambah_keyword');\n\t}", "title": "" }, { "docid": "e5bcde3cdc77b570afc81b33dc16da1c", "score": "0.58142823", "text": "function setInstancia(){\n $objDBO=$this->Factory($this->__tempName);\n $campos = $objDBO->table();\n unset($campos[\"id\"]);\n unset($campos[\"fecha\"]);\n //Asigna los valores\n foreach($campos as $key => $value){\n $objDBO->$key = utf8_decode($this->$key);\n }\n $objDBO->fecha = date(\"Y-m-d H:i:s\");\n $objDBO->find();\n if($objDBO->fetch()){\n $ret = $objDBO->id;\n }else{\n $ret = $objDBO->insert();\n }\n //Libera el objeto DBO\n $objDBO->free();\n return $ret;\n }", "title": "" }, { "docid": "4c0456125a86bd28970d2c34794642a2", "score": "0.5813432", "text": "public function insert_pengiriman($data){\r\n $this->db->insert(\"pengiriman\",$data);\r\n }", "title": "" }, { "docid": "b10200373d0912d163935dcc6769c11e", "score": "0.58129436", "text": "public function run()\n {\n DB::table('md_kepengurusan')->insert([\n [\n \"id\" => \"KUDRH\",\n \"nama\" => \"KU Daerah\",\n \"st_kepengurusan_id\" => \"4S\",\n \"st_level_id\" => \"DRH\", \n ]\n ]);\n }", "title": "" }, { "docid": "ed5f3feccbbd813ae458e83d8d510940", "score": "0.5806092", "text": "function getKerusakan()\n {\n $getData = $this->db->get('kerusakan');\n return $getData->result();\n }", "title": "" }, { "docid": "0d2eda49192d9d143414365bc141e101", "score": "0.58037484", "text": "function get_all_denah_sbs(){\n\t\t$hsl = $this->db2->query(\"SELECT * FROM tbl_konfig ORDER BY lokasi\");\n\t\t//$hsl=$db2->query(\"SELECT * FROM tbl_konfig ORDER BY lokasi\");\n\t\treturn $hsl;\n\t}", "title": "" }, { "docid": "fabdb44a6fc7de15a3460bf143f9f178", "score": "0.58030385", "text": "function readDetailPengarang(){\n \n // select all query\n $query = \"SELECT\n *\n FROM\n \" . $this->table_name . \" \n ORDER BY\n id_detil DESC\";\n \n // prepare query statement\n $stmt = $this->conn->prepare($query);\n \n // execute query\n $stmt->execute();\n \n return $stmt;\n }", "title": "" }, { "docid": "f39cd21a3c722bab31ebc30e6df5edc0", "score": "0.57972383", "text": "function tampil_foto_pengajuan(){\r\n return $this->db->query(\"SELECT * FROM pengajuan_detail WHERE id_pengajuan='\".$_POST['id_pengajuan'].\"'\");\r\n }", "title": "" }, { "docid": "db1a1859d4a7c25d2d751053f59053ba", "score": "0.5791518", "text": "public function tambah()\n\t{\n\t\tDB::beginTransaction();\n\n\t\t$SukuCadang = new SukuCadang;\n\t\t$SukuCadang->nama = Input::get('nama');\n\t\t$SukuCadang->stok = Input::get('stok');\n\t\t$SukuCadang->save();\n\t\n\t\tDB::commit();\n\t}", "title": "" }, { "docid": "72c5d0f578734e7a58e50aec4bcf1c37", "score": "0.5788412", "text": "public function data_produk($primarykey){\n\t\t$this->db->where(\"id_produk\",$primarykey);\n\t\treturn $this->db->get(\"produk\");\n\t}", "title": "" }, { "docid": "977a15806a9cb59af799b385726b8bab", "score": "0.57853985", "text": "public function get_data_kades()\n {\n $this->db->select('*');\n $this->db->from('kepala_desa');\n $this->db->where('status_delete', 0);\n $this->db->order_by('nama', 'asc');\n\n $hasil = $this->db->get();\n\n return $hasil;\n }", "title": "" }, { "docid": "10d2522c0859d0dc81e5f948c1ae31d1", "score": "0.57849735", "text": "public function store_dinamico()\n {\n\t\t\t\t}", "title": "" }, { "docid": "3a854a18fc1ba4a496a58c7882c35b4b", "score": "0.5784624", "text": "public function kirim_pelanggaran()\n\t{\n\n\t\t$pelanggaran = $this->request->getPost('pelanggaran');\n\t\t$poin_pelanggaran = $this->request->getPost('poin_pelanggaran');\n\t\t$keterangan = $this->request->getPost('keterangan');\n\n\t\t$data = ([\n\t\t\t'pelanggaran' => $pelanggaran,\n\t\t\t'poin_pelanggaran' => $poin_pelanggaran,\n\t\t\t'keterangan' => $keterangan\n\t\t]);\n\n\t\t$input = $this->pelanggaranModel->insert($data);\n\t\tif ($input) {\n\t\t\t$this->session->setFlashdata(\"msg_suc\", \"Berhasil menambah data pelanggaran !\");\n\t\t\treturn redirect()->to(previous_url());\n\t\t} else {\n\t\t\t$this->session->setFlashdata(\"msg_err\", \"Gagal menambah data pelanggaran !\");\n\t\t\treturn redirect()->to(previous_url());\n\t\t}\n\t}", "title": "" }, { "docid": "2b60bff0b5973103e6ca8dc5d47d0250", "score": "0.5784616", "text": "function data_kurir()\n\t\t{\n\t\t\treturn $this->db->get('kurir')->result();\n\t\t}", "title": "" }, { "docid": "294cc5fe0ad48356cbf3fdda5cfaca3c", "score": "0.578304", "text": "function getDataKecamatan(){\n\t\n\t$db\t\t\t=\tnew\tDb_connection();\n\t$enkripsi\t=\tnew Enkripsi();\n\t\n\t//Kondisional param idkota\n\t$idkota \t\t=\t$_GET['kota'];\n\t$conKota\t\t=\t$idkota == '' ? \"1=1\" : \" IDKOTA = '\".$enkripsi->decode($idkota).\"' \";\n\t\n\t$sql\t\t\t=\tsprintf(\"SELECT IDKECAMATAN, NAMA_KECAMATAN FROM m_kecamatan WHERE %s ORDER BY NAMA_KECAMATAN\"\n\t\t\t\t\t\t\t\t, $conKota\n\t\t\t\t\t\t\t\t);\n\t$result\t\t\t=\t$db->query($sql);\n\t$data\t\t\t=\tarray();\n\t\n\tif($result){\n\n\t\tif(count($result) > 0){\n\n\t\t\tforeach($result as $key){\n\t\n\t\t\t\tarray_push($data, array($enkripsi->encode($key['IDKECAMATAN']), $key['NAMA_KECAMATAN']));\n\t\t\t\n\t\t\t}\n\n\t\t} else {\n\t\n\t\t\tarray_push($data, array('', '- Data tidak ditemukan -'));\n\t\n\t\t}\n\n\t} else {\n\n\t\tarray_push($data, array('', '- Data tidak ditemukan -'));\n\n\t}\n\n\techo json_encode($data);\n\tdie();\n\t\t\n}", "title": "" }, { "docid": "bf3efca0b1007b58d5995038f0e0b288", "score": "0.5777948", "text": "function kehati()\r\n\t{\r\n\t\t$data['title'] = \"Data KEHATI\";\r\n\t\t$data['tahun'] = $this->supermodel->queryManual('select YEAR(tahun_pendataan) as thn from skp where kategori=\"Kehati\" group by YEAR(tahun_pendataan) order by YEAR(tahun_pendataan) desc');\r\n\t\t$this->load->view('ragamdata/kehati/index', $data);\r\n\t}", "title": "" }, { "docid": "6d6dd8bc4e43cc7742a8dfc71a854681", "score": "0.57740873", "text": "function catatan_piutang_batal($jpaket_id){\r\n\t\t\t$datetime_now = date('Y-m-d H:i:s');\r\n\t\t\t\r\n\t\t\t$sql = \"SELECT jpaket_nobukti FROM master_jual_paket WHERE jpaket_id='\".$jpaket_id.\"'\";\r\n\t\t\t$rs = $this->db->query($sql);\r\n\t\t\tif($rs->num_rows()){\r\n\t\t\t\t$record = $rs->row_array();\r\n\t\t\t\t$jpaket_nobukti = $record['jpaket_nobukti'];\r\n\t\t\t\t\r\n\t\t\t\t//UPDATE db.master_lunas_piutang.lpiutang_stat_dok = 'Batal'\r\n\t\t\t\t$sqlu = \"UPDATE master_lunas_piutang\r\n\t\t\t\t\tSET lpiutang_stat_dok='Batal'\r\n\t\t\t\t\t\t,lpiutang_update='\".@$_SESSION[SESSION_USERID].\"'\r\n\t\t\t\t\t\t,lpiutang_date_update='\".$datetime_now.\"'\r\n\t\t\t\t\t\t,lpiutang_revised=(lpiutang_revised+1)\r\n\t\t\t\t\tWHERE lpiutang_faktur='\".$jpaket_nobukti.\"'\";\r\n\t\t\t\t$this->db->query($sqlu);\r\n\t\t\t\tif($this->db->affected_rows()>-1){\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t}else{\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "22b0aaf8db00a4db3ea2cae3140af19c", "score": "0.5773925", "text": "public function kegiatanAll()\n {\n return $this->db->get($this->_table)->result();\n }", "title": "" }, { "docid": "0fcddd5ff2c434e177d15afc723e0c3b", "score": "0.5772", "text": "function loadFromDB() {\n\n\t}", "title": "" }, { "docid": "d980fab3f2ab854f918f4e1f33e6d35e", "score": "0.5767833", "text": "public function create_tb_pkl()\n {\n $this->db->query(\"CREATE TABLE `{$this->db->dbprefix}pkl` (\n `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,\n `ajaran_id` int(11) NOT NULL,\n `kelas_id` int(11) NOT NULL,\n `siswa_nis` varchar(11) NOT NULL,\n `mitra_prakerin` varchar(255) CHARACTER SET utf8 NOT NULL,\n `lokasi_prakerin` varchar(255) NOT NULL,\n `lama_prakerin` varchar(255) NOT NULL,\n `keterangan_prakerin` text NOT NULL,\n PRIMARY KEY (`id`)\n ) ENGINE=InnoDB DEFAULT CHARSET=latin1;\");\n }", "title": "" }, { "docid": "35261b9a3f45629ead8db2b959d6d198", "score": "0.57636714", "text": "function setting_sistem()\n\t{\n\t\t$db = new DB();\n\t\t$query = \"SELECT * FROM aluni_pengaturan\";\n\t\t$datas = $db->query($query);\n\t\tforeach ($datas as $data) {\n\t\t\t$settingan[$data[\"nama_pengaturan\"]] = $data[\"nilai_pengaturan\"];\n\t\t}\n\t\treturn $settingan;\n\t}", "title": "" }, { "docid": "f8537cfe9c2df8388757b9628d90e6b9", "score": "0.57635814", "text": "public function listAll() {\n\n // Query sql\n $query = \"SELECT * FROM \". $this->table .\" ORDER BY id_buku ASC\";\n\n // Prepare statement\n $stmt = $this->koneksi->prepare($query);\n\n // Eksekusi query\n $stmt->execute();\n\n // Kembalikan hasil eksekusi query\n return $stmt;\n }", "title": "" }, { "docid": "61d06251c42632d887ed4b319fe67dae", "score": "0.57540685", "text": "public function run()\n {\n //\n $kelas = new Kelas();\n $kelas->kode = \"IF-38-01\";\n $kelas->jurusan = \"Teknik Informatika\";\n $kelas->fakultas = \"Informatika\";\n $kelas->save();\n\n $kelas = new Kelas();\n $kelas->kode = \"IF-38-02\";\n $kelas->jurusan = \"Teknik Informatika\";\n $kelas->fakultas = \"Informatika\";\n $kelas->save();\n\n $kelas = new Kelas();\n $kelas->kode = \"IF-38-03\";\n $kelas->jurusan = \"Teknik Informatika\";\n $kelas->fakultas = \"Informatika\";\n $kelas->save();\n\n $kelas = new Kelas();\n $kelas->kode = \"SI-38-01\";\n $kelas->jurusan = \"Sistem Informasi\";\n $kelas->fakultas = \"Rekayasa Industri\";\n $kelas->save();\n\n $kelas = new Kelas();\n $kelas->kode = \"TT-38-01\";\n $kelas->jurusan = \"Teknik Telekomunikasi\";\n $kelas->fakultas = \"Teknik Elektro\";\n $kelas->save();\n\n }", "title": "" }, { "docid": "029deb43658bd2b726145be9a2a048e5", "score": "0.5750389", "text": "function tabelkecil($P7Complete){\n\t\tinclude \"koneksi.php\"; \n\t\t\n\t\t$date_curr = date('Y/m/d 00:00:00');\n\t\t//deklarasi dinamic parameter untuk ruangan yg lain\n\t\t$ruang = substr($P7Complete,0,1);\n\t\n\t\t$queryp1 = \"SELECT COUNT(*) as Hasil FROM QP7ANTRIAN\".$ruang;\n\t\t$sqlp1 = sqlsrv_query($conn1,$queryp1);\n\t \t$isip1 = sqlsrv_fetch_array($sqlp1);\n\t\t\n\t\t$queryp2 = \"SELECT * FROM QP7ANTRIAN WHERE tgl_antrian = CONVERT(DATETIME,'\".$date_curr.\"', 102) AND nomor_antrian = '\".$P7Complete.\"' AND jam_pasien_panggil is null\";\n\t\t$sqlp2 = sqlsrv_query($conn2,$queryp2);\n\t \t$isip2 = sqlsrv_fetch_array($sqlp2);\n\t\t\n\t\t$nomor = $isip1['Hasil'] + 1;\n\t\t$idnomor = $isip2['id'];\n\t\t\n\t\t$sql3 = \"insert into QP7ANTRIAN\".$ruang.\" values('\".$nomor.\"','\".$idnomor.\"','\".$P7Complete.\"')\";\n\t\t$sql_execute3 = sqlsrv_query($conn3,$sql3);\t\n\t}", "title": "" }, { "docid": "d11a74a548363e289525cc965b3eeaa4", "score": "0.5746273", "text": "function penyakit_pernafasan(){\n\t\t\t\n\t\t\t$this->db->select('*');\n\t\t\t$this->db->from('sistem_pernafasan');\n\t\t\t$this->db->order_by('id_sistem_pernafasan');\n\t\t\t\n\t\t\treturn $this->db->get();\n\t\t}", "title": "" }, { "docid": "a4de0f29839e33decfe5fc0227a04c5f", "score": "0.5745867", "text": "function markv_base() {\n\t\tglobal $wpdb;\n\t\t$nombredb=\"mark05\";\n\t\t$table_name= $wpdb->prefix.$nombredb;\t\t\n\t\tif($wpdb->get_var(\"SHOW TABLES LIKE '$table_name'\") != $table_name) {\n\t\t\t$sql = \"CREATE TABLE $table_name ( \n\t\t\t`id` mediumint( 9 ) NOT NULL, \n\t\t\t`dato` tinytext NOT NULL, \n\t\t\t`valor` varchar(2048) NULL, \n\t\t\tPRIMARY KEY (`id`))\";\t//creo la BBDD\n\t\t\t$wpdb->query($sql);\n\t\t\t$sql = \"INSERT INTO $table_name (`id`, `dato`, `valor`) \n\t\t\tVALUES (1, 'analytics', ''), (2, 'texto_2', 'dato 2'), (3, 'texto_3', 'dato 3'), (4, 'texto_4', 'dato 4'), (5, 'texto_5', 'dato 5'), (6, 'texto_6', 'dato 6'), (7, 'texto_7', 'dato 7'), (8, 'texto_8', 'dato 8'), (9, 'texto_9', 'dato 9'), (10, 'texto_10', 'dato 10'), (11, 'texto_11', 'dato 11'), (12, 'texto_12', 'dato 12'), (13, 'texto_13', 'dato 13'), (14, 'texto_14', 'dato 14'), (15, 'texto_15', 'dato 15'), (16, 'texto_16', 'dato 16'), (17, 'texto_17', 'dato 17'), (18, 'texto_18', 'dato 18'), (19, 'texto_19', 'dato 19'), (20, 'texto_20', 'dato 20'), (21, 'texto_21', 'dato 21'), (22, 'texto_22', 'dato 22'), (23, 'texto_23', 'dato 23'), (24, 'texto_24', 'dato 24'), (25, 'texto_25', 'dato 25'), (26, 'texto_26', 'dato 26'), (27, 'texto_27', 'dato 27'), (28, 'texto_28', 'dato 28'), (29, 'texto_29', 'dato 29'), (30, 'texto_30', 'dato 30'), (31, 'opengraph_1', 'no'), (32, 'opengraph_2', 'opengraph 2'), (33, 'opengraph_3', 'opengraph 3')\";//LE ASIGNAMOS UN VALOR POR DEFECTO A LA BBDD (1, custom, hola)\n\t\t\t$wpdb->query($sql);\n\t\t}\n\t\t// 2.- AGREGO LA SECCION AL PANEL: \"add_options_page\" = pone la pagina dentro de la seccion AJUSTES, \"add_object_page\" = pone la pagina como una seccion independiente\t\n\t\tadd_object_page('4Sale [MARK-V] : Opciones', 'Opciones', 'manage_options', 'mark-v', 'markv_portada' );\n\t}", "title": "" }, { "docid": "4f9d602e7dbbeca35d6826288d099f34", "score": "0.5743536", "text": "public function paketDua()\n {\n $this->db->select('*');\n $this->db->from('tb_paket');\n $this->db->where('IdPaket', '2');\n\n $query = $this->db->get();\n return $query;\n }", "title": "" }, { "docid": "b07ee96a063c4dea5f26aefa2df70ef4", "score": "0.5743079", "text": "private function key()\n {\n return 1452;\n }", "title": "" }, { "docid": "20bbdfb1c1fabe2e47fd728583fa51a9", "score": "0.57422274", "text": "public function getAllPengaduan()\n {\n $sql = \"SELECT * FROM pengaduan\";\n\n // Karena class Pengaduan sudah digabung dengan class Database maka kita bisa melakukan ini\n // Pertama kita melakukan koneksi ke database, kemudian kita meng-query syntax sql, setelah itu kita mengabil semua datanya\n $res = $this->connect()->query($sql)->fetchAll();\n \n // Kemudian kita me-return responnya, yaitu semua data pengaduan untuk dipakai di halaman index\n return $res;\n\n // Setelah itu kita disconnect dari database, agar aplikasi tidak terbebani oleh koneksi yang tidak dipakai\n $this->disconnect();\n }", "title": "" }, { "docid": "ac17ab4822b86a666bd51668ee5b19d2", "score": "0.57405716", "text": "public function run()\n {\n DB::table('katjabatans')->insert([\n [\n\t\t'name'=>'Kepala Biro Pemerintahan dan Kerja Sama',\n\t\t'slug'=>'Kepala-Biro-Pemerintahan-dan-Kerja-Sama', \n\t\t'created_at'=>'2017-12-19 10:00:00',\n\t\t'updated_at'=>'2017-12-19 10:00:00'\n\t\t],\n\n\t\t[\n\t\t'name'=>'Kepala Bagian Urusan Pemerintahan Daerah',\n\t\t'slug'=>'Kepala-Bagian-Urusan-Pemerintahan-Daerah', \n\t\t'created_at'=>'2017-12-19 10:00:00',\n\t\t'updated_at'=>'2017-12-19 10:00:00'\n\t\t],\n\n\t\t[\n\t\t'name'=>'Kepala Subbagian Urusan Pemerintahan Daerah',\n\t\t'slug'=>'Kepala-Subbagian-Urusan-Pemerintahan-Daerah', \n\t\t'created_at'=>'2017-12-19 10:00:00',\n\t\t'updated_at'=>'2017-12-19 10:00:00'\n\t\t],\n\n\t\t[\n\t\t'name'=>'Kepala Bagian Tata Pemerintahan',\n\t\t'slug'=>'Kepala-Bagian-Tata-Pemerintahan', \n\t\t'created_at'=>'2017-12-19 10:00:00',\n\t\t'updated_at'=>'2017-12-19 10:00:00'\n\t\t],\n\n\t\t[\n\t\t'name'=>'Kepala Subbagian Tata Pemerintahan',\n\t\t'slug'=>'Kepala-Subbagian-Tata-Pemerintahan', \n\t\t'created_at'=>'2017-12-19 10:00:00',\n\t\t'updated_at'=>'2017-12-19 10:00:00'\n\t\t],\n\n\t\t[\n\t\t'name'=>'Kepala Bagian Kerja Sama',\n\t\t'slug'=>'Kepala-Bagian-Kerja-Sama', \n\t\t'created_at'=>'2017-12-19 10:00:00',\n\t\t'updated_at'=>'2017-12-19 10:00:00'\n\t\t],\n\n\t\t[\n\t\t'name'=>'Kepala Subbagian Kerja Sama',\n\t\t'slug'=>'Kepala-Subbagian-Kerja-Sama', \n\t\t'created_at'=>'2017-12-19 10:00:00',\n\t\t'updated_at'=>'2017-12-19 10:00:00'\n\t\t],\n\n\t\t[\n\t\t'name'=>'Jabatan Fungsional',\n\t\t'slug'=>'Jabatan-Fungsional', \n\t\t'created_at'=>'2017-12-19 10:00:00',\n\t\t'updated_at'=>'2017-12-19 10:00:00'\n\t\t],\n\n\t\t[\n\t\t'name'=>'Analis Urusan Pemerintahan Daerah',\n\t\t'slug'=>'Analis-Urusan-Pemerintahan-Daerah', \n\t\t'created_at'=>'2017-12-19 10:00:00',\n\t\t'updated_at'=>'2017-12-19 10:00:00'\n\t\t],\n\n\t\t[\n\t\t'name'=>'Analis Tata Pemerintahan',\n\t\t'slug'=>'Analis-Tata-Pemerintahan', \n\t\t'created_at'=>'2017-12-19 10:00:00',\n\t\t'updated_at'=>'2017-12-19 10:00:00'\n\t\t],\n\n\t\t[\n\t\t'name'=>'Analis Kerja Sama',\n\t\t'slug'=>'Analis-Kerja-Sama', \n\t\t'created_at'=>'2017-12-19 10:00:00',\n\t\t'updated_at'=>'2017-12-19 10:00:00'\n\t\t],\n\n\t\t[\n\t\t'name'=>'Pengadministrasi Umum Urusan Pemerintahan Daerah',\n\t\t'slug'=>'Pengadministrasi-Umum-Urusan-Pemerintahan-Daerah', \n\t\t'created_at'=>'2017-12-19 10:00:00',\n\t\t'updated_at'=>'2017-12-19 10:00:00'\n\t\t],\n\n\t\t[\n\t\t'name'=>'Pengadministrasi Umum Tata Pemerintahan',\n\t\t'slug'=>'Pengadministrasi-Umum-Tata-Pemerintahan', \n\t\t'created_at'=>'2017-12-19 10:00:00',\n\t\t'updated_at'=>'2017-12-19 10:00:00'\n\t\t],\n\n\t\t[\n\t\t'name'=>'Pengadministrasi Umum Kerja Sama',\n\t\t'slug'=>'Pengadministrasi-Umum-Kerja-Sama', \n\t\t'created_at'=>'2017-12-19 10:00:00',\n\t\t'updated_at'=>'2017-12-19 10:00:00'\n\t\t],\n\n\t\t[\n\t\t'name'=>'Tenaga Non PNS',\n\t\t'slug'=>'Tenaga-Non-PNS', \n\t\t'created_at'=>'2017-12-19 10:00:00',\n\t\t'updated_at'=>'2017-12-19 10:00:00'\n\t\t],\n\t]);\n }", "title": "" }, { "docid": "2b3ac98f86c0426a0bf82ee461aa3f7a", "score": "0.5740373", "text": "public function run()\n {\n \n\n \\DB::table('ref_hubungan_keluarga')->delete();\n \n \\DB::table('ref_hubungan_keluarga')->insert(array (\n 0 => \n array (\n 'id' => 1,\n 'nama' => 'KEPALA KELUARGA',\n ),\n 1 => \n array (\n 'id' => 2,\n 'nama' => 'SUAMI',\n ),\n 2 => \n array (\n 'id' => 3,\n 'nama' => 'ISTRI',\n ),\n 3 => \n array (\n 'id' => 4,\n 'nama' => 'ANAK',\n ),\n 4 => \n array (\n 'id' => 5,\n 'nama' => 'MENANTU',\n ),\n 5 => \n array (\n 'id' => 6,\n 'nama' => 'CUCU',\n ),\n 6 => \n array (\n 'id' => 7,\n 'nama' => 'ORANGTUA',\n ),\n 7 => \n array (\n 'id' => 8,\n 'nama' => 'MERTUA',\n ),\n 8 => \n array (\n 'id' => 9,\n 'nama' => 'FAMILI LAIN',\n ),\n 9 => \n array (\n 'id' => 10,\n 'nama' => 'PEMBANTU',\n ),\n 10 => \n array (\n 'id' => 11,\n 'nama' => 'LAINNYA',\n ),\n ));\n \n \n }", "title": "" }, { "docid": "fee746ad8316ca0bd165f1990936d509", "score": "0.573986", "text": "public function run()\n {\n $arr = [\n 'maBH' => '1',\n \t\t'tenBH' => 'tên bhoc',\n \t\t'maCD' => '1',\n \t\t'tieuDe' => 'câu hỏi',\n \t\t 'noiDung' => 'an sờ goe',\n \t\t'soLuotXem' => '10123'\n \t];\n DB::table('baihoc')->insert($arr);\n }", "title": "" } ]
d9150b155ca8d2cfb71d6eea3c4bee61
Restart the entire session by regenerating the identifier and deleting all data.
[ { "docid": "85cda906f26ee1ce8a0d0b94f0367fa2", "score": "0.6696196", "text": "public function restart()\n {\n $this->destroy();\n $this->start();\n }", "title": "" } ]
[ { "docid": "49fc1cc0572accd1542ec3d48b4eb7bb", "score": "0.8147529", "text": "public function restart()\n {\n session_regenerate_id(true);\n $this->setup();\n }", "title": "" }, { "docid": "4dab78b117b4f0002f6efd4375fd8b65", "score": "0.7366598", "text": "private function restart() {\n session_start();\n session_regenerate_id();\n session_destroy();\n session_commit();\n session_start();\n $this->setUserAgent();\n $this->setRemoteAddress();\n }", "title": "" }, { "docid": "a2dc25179c6ae494fca53475ab6c3891", "score": "0.7021984", "text": "public function refresh()\n {\n session_regenerate_id(true);\n }", "title": "" }, { "docid": "c6866ad67cdf4e9902914b2493ad5242", "score": "0.7006289", "text": "public function regenerate()\n {\n session_regenerate_id(false);\n }", "title": "" }, { "docid": "31941b4c3594e3a3687fa0b2b9de221e", "score": "0.68538713", "text": "public function restart()\r\n\t{\r\n\t\tif ($this->_destroyed === FALSE)\r\n\t\t{\r\n\t\t\t// Wipe out the current session.\r\n\t\t\t$this->destroy();\r\n\t\t}\r\n\t\r\n\t\t// Allow the new session to be saved\r\n\t\t$this->_destroyed = FALSE;\r\n\t\r\n\t\treturn $this->_restart();\r\n\t}", "title": "" }, { "docid": "8121d19c97799eebe79f289242a99c79", "score": "0.6680381", "text": "public function refresh()\n {\n $sess = $this->_di->get('Input')->getAll('session');\n $id = session_regenerate_id(true);\n session_destroy();\n session_start();\n $_SESSION = $sess;\n }", "title": "" }, { "docid": "c78203b637166aa7eebc34ed37b4b3c2", "score": "0.6669581", "text": "public function regenerateId()\n {\n $this->checkIfStarted();\n\n session_regenerate_id(true);\n }", "title": "" }, { "docid": "6fa90516256e4bcba80ecbc75f58107e", "score": "0.66328317", "text": "public function restart() {\n\t\t$this->invoke(\"restart\");\n\t}", "title": "" }, { "docid": "60efcdf9c454b36a8c8be7116057b722", "score": "0.663262", "text": "public function restart($id);", "title": "" }, { "docid": "782aca3678b24cfa00d10d1e89935014", "score": "0.65538716", "text": "protected function restart(): void\n {\n // TODO\n }", "title": "" }, { "docid": "dfec3758adb2e7bf6c20a3a46b4af0bc", "score": "0.65536857", "text": "public function regenerateId()\n {\n $this->checkIfStarted();\n\n $this->sessionId = $this->calculateSessionId();\n }", "title": "" }, { "docid": "bc1c7068f20b850a3917be309837ab19", "score": "0.65502185", "text": "function regenerate_id () {\n\n # saves the old session's id\n $old_session_id = session_id();\n\n # regenerates the id\n session_regenerate_id();\n\n self::destroy($old_session_id);\n\n }", "title": "" }, { "docid": "de1b21fd3a5414ced6cd67bf4f31e04c", "score": "0.63919616", "text": "public function resetSession() {}", "title": "" }, { "docid": "4f45845cd353f6fce71b165dd9b93802", "score": "0.63764775", "text": "public function reset()\n {\n // don't start a new session to remove something that isn't there\n $this->lazyStart();\n $this->_store = array();\n }", "title": "" }, { "docid": "4633cbb0862766007729047dba600319", "score": "0.63731813", "text": "public function regenerateId()\n {\n $oldSessionId = $this->getSessionId();\n if (version_compare(PHP_VERSION, '7.1.0', '>=')) {\n $newSessionId = session_create_id();\n } else {\n session_regenerate_id(false);\n $newSessionId = $this->getSessionId();\n $this->commitSession();\n ini_set('session.use_strict_mode', 0);\n session_id($oldSessionId);\n session_start();\n ini_set('session.use_strict_mode', 1);\n }\n $this->metadata->isActive = false;\n $this->metadata->expireDataAt = time() + $this->config->ttlAfterIdRegen;\n $this->metadata->forwardToSessionId = $newSessionId;\n $this->writeMetadata();\n $this->commitSession();\n $sessionData = $_SESSION;\n ini_set('session.use_strict_mode', 0);\n session_id($newSessionId);\n session_start();\n $_SESSION = $sessionData;\n $this->executeSessionIdChangeCallback($oldSessionId, $newSessionId);\n $this->executeGcNotificationCallback(\n $oldSessionId,\n $this->metadata->expireDataAt\n );\n $_COOKIE[$this->getSessionName()] = $newSessionId;\n return $this->initializeSessionMetadata();\n }", "title": "" }, { "docid": "9d6dd48f9dfe753f3146ba4e8d637628", "score": "0.63272345", "text": "private function sessionRegenerateId()\n {\n // even if the session were hijacked, it will be expired very soon, so doing this way we reduce chance of users's (or admin's) account penetration\n // again, it's not 100% way to do secure accounts, but it makes hijacking harder\n // and yes, i almost copied code from php.net ;)\n\n // step 0. make sure that session is active\n if (session_status() !== PHP_SESSION_ACTIVE) {\n session_start();\n }\n\n // step 1: create new session id\n $newSessionID = session_create_id($this->sessionIDPrefix);\n\n // outdated session, we don't need it\n $this->unsetSESSION('session_created');\n\n // step 2: push time of regenerating into current session\n $this->setSESSION('session_annihilated', time());\n\n // step 3: save new session id into old session\n $this->setSESSION('new_session_id', $newSessionID);\n\n // step 4: generate new session id and keep old session\n session_regenerate_id(false);\n\n // see? we create new session with new identifier, but old session is still alive!\n // in this session we don't need new id and destroy time\n $this->unsetSESSION('session_annihilated');\n $this->unsetSESSION('new_session_id');\n\n // and create time of creating to check it later\n $this->setSESSION('session_created', time());\n }", "title": "" }, { "docid": "b61eb9850d1ca24ed59b04c406e9a848", "score": "0.63135546", "text": "public static function reset(){\n\t\t\t$old = session_id();\n\t\t\tif($old){\n\t\t\t\tif(isset($_COOKIE[session_name()])){\n\t\t\t\t\tset_cookie(session_name(), '', time() - 86400, '/');\n\t\t\t\t}\n\n\t\t\t\tsession_regenerate_id(true);\n\t\t\t\tSession::$id = session_id();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "0f7994a21e734a1f95aa2ec49cca7460", "score": "0.62973374", "text": "private function renewSession() {}", "title": "" }, { "docid": "39a19b7a339911262a4d9074dd045335", "score": "0.6258535", "text": "public function regenerate($clearData = false) {\n\t\t\t$this->set(\"id\", session_regenerate_id($clearData));\n\t\t}", "title": "" }, { "docid": "966585b2490796f3432c8a57af555fea", "score": "0.6249052", "text": "protected function restart()\n {\n $this->stop();\n $this->start();\n }", "title": "" }, { "docid": "74304eb8eadea66e9f9675fc347b22cf", "score": "0.62316364", "text": "abstract public function resetSession();", "title": "" }, { "docid": "b42c7788c64ac7dd746f8fbe05adfa8b", "score": "0.6223985", "text": "public function iniciar() {\r\n session_regenerate_id();\r\n }", "title": "" }, { "docid": "4346e1c4a0501ebb13578f9d38e13be5", "score": "0.6212602", "text": "public static function regenerateSessionid();", "title": "" }, { "docid": "290e904e950355df2f9711dccbedb9da", "score": "0.6154301", "text": "public function reload() {\n $this->sessionData = null;\n $this->getAllValues();\n }", "title": "" }, { "docid": "e6ff3ea73aef40d5b3a2374bd557e240", "score": "0.6145613", "text": "public function Refresh ()\n\t{\n\t\t\n\t\t// Refresh session\n\t\t\n\t\tsession_unset ();\n\t\tsession_regenerate_id ();\n\t\t\n\t}", "title": "" }, { "docid": "21dcf13dfa640d3e79863989035f216f", "score": "0.6124988", "text": "public function restart(): void\n {\n $this->stop();\n $this->start();\n }", "title": "" }, { "docid": "a15bf57f7e1debfbb9de6d6c46c870ea", "score": "0.61176115", "text": "protected function regenerateSessionId() {}", "title": "" }, { "docid": "a15bf57f7e1debfbb9de6d6c46c870ea", "score": "0.61176115", "text": "protected function regenerateSessionId() {}", "title": "" }, { "docid": "80400849773cabcc12b5d52e492bdde8", "score": "0.6092779", "text": "public function reset_session() {\n\t\tSession::instance()\n\t\t\t->destroy();\n\t\tSession::$instances = array();\n\t}", "title": "" }, { "docid": "34b9593a5f9ca9bcff6bceaea4c09320", "score": "0.6088574", "text": "function restart()\n {\n $this->destroy();\n if( $this->_state !== 'destroyed' ) {\n // @TODO :: generated error here\n return false;\n }\n\n $this->_state = 'restart';\n\t\t$this->_start();\n\t\t$this->_state\t=\t'active';\n\n\t\t$this->_setCounter();\n\n return true;\n }", "title": "" }, { "docid": "f49875f568f31c524b2d04c0c640707b", "score": "0.60811037", "text": "public static function regenerate_sid() {\n\t\t$key = self::generate_sid();\n\t\tdatabase()->start_query('sessions', 'UPDATE')\n\t\t\t->set(array('key' => $key))\n\t\t\t->where(array('key' => self::$sid))\n\t\t\t\t->run();\n\t\tself::setcookie($key);\n\t}", "title": "" }, { "docid": "04eaead56ec96f880b31c99db23129c4", "score": "0.6062698", "text": "public static function refresh()\n {\n //self::delete(name_of_session);\n }", "title": "" }, { "docid": "39cc8cbccd6cbebac91454de8f8fc1bd", "score": "0.60540885", "text": "public function refreshSession() {}", "title": "" }, { "docid": "578c440e9126d6df638f29a624a968cc", "score": "0.6052586", "text": "public static function restart()\n {\n $pid = file_get_contents(self::$master_pid);\n posix_kill($pid, SIGUSR1);\n\n if (!is_dir(__APP_DIR__.\"/http_process_cache\"))\n mkdir(__APP_DIR__.\"/http_process_cache\");\n\n $file = new File(__APP_DIR__.\"/http_process_cache\");\n $file->set(\"restart_\".$pid,1,6);\n\n return 1;\n }", "title": "" }, { "docid": "04d0b15814ff8c88b193e4a8872f73b8", "score": "0.60421884", "text": "public function regenerateId()\n {\n $this->start();\n if (! headers_sent()) {\n $this->_manager->regenerateId();\n }\n }", "title": "" }, { "docid": "5a34a4460a0ffc8534df9a3194291e6b", "score": "0.60211426", "text": "public function restart() {\n $cmd = sprintf(\"./control.sh restart %s -game %s -ip %s -port %d -maxplayers %d -map %s -rcon %s\", $this->sid, $this->gameId, $this->ip, $this->port, $this->maxplayers, $this->map, $this->rcon);\n ssh($cmd, $this->host);\n log_action('RESTART');\n }", "title": "" }, { "docid": "47d9bceaac0f78c915dc8b2f5cf58a39", "score": "0.5994971", "text": "public function regenerate() {\n $this->startSession();\n try {\n session_regenerate_id(true);\n } catch (\\ErrorException $e) {\n // OK as this will occur in testing\n }\n\n $this->sessionId = session_id();\n session_write_close();\n\n return $this->sessionId;\n }", "title": "" }, { "docid": "1cb22dd338f33b5f465ac369c127968e", "score": "0.59588695", "text": "public function regenerateId($deleteSession = false) {\n \n $this->start();\n session_regenerate_id($deleteSession);\n \n }", "title": "" }, { "docid": "e7b2684a9c3b02c0d3e85d1ff507f8d5", "score": "0.5946657", "text": "public static function regenerate($deleteOldSession = false)\n {\n session_regenerate_id($deleteOldSession);\n }", "title": "" }, { "docid": "df34785944e2a5c4e280ac805eb36d43", "score": "0.59349066", "text": "public function resetDbSessions()\n {\n $ttl = (int)Phpr::$config->get('STORED_SESSION_TTL', 3);\n Db_DbHelper::query(\n 'delete from db_session_data where created_at < DATE_SUB(now(), INTERVAL :seconds SECOND)',\n array('seconds' => $ttl)\n );\n }", "title": "" }, { "docid": "b9a6ba4c2e773b1d066848e3ebd1c186", "score": "0.59095496", "text": "public function regenerate()\n {\n $this->storage->regenerate();\n }", "title": "" }, { "docid": "0c7d9f0a9659dbb525b110072ef548ab", "score": "0.58694834", "text": "public static function reset()\n {\n self::$id = 0;\n }", "title": "" }, { "docid": "f9f94e6a33e62e64218735d8fddce573", "score": "0.58650225", "text": "public function reset_gently()\n {\n clearos_profile(__METHOD__, __LINE__);\n\n $file = new File(self::FILE_RESTART);\n\n if ($file->exists())\n $file->delete();\n\n $file->create('root', 'root', '0644');\n $file->add_lines(\"restart requested\\n\");\n }", "title": "" }, { "docid": "475f28f5615886806ffc2a0c54f9ed51", "score": "0.585765", "text": "abstract protected function _restart();", "title": "" }, { "docid": "46e7a1410b145f87df95955d85663057", "score": "0.5817498", "text": "public function reset()\n\t{\n\t\tforeach ($_SESSION as $name=>$value)\n\t\t\tunset($_SESSION[$name]);\n\t\t\t\n\t\t$this->reset_db_sessions();\n\t}", "title": "" }, { "docid": "4e8e95a78818d18a3e7324c724de4fd0", "score": "0.58000785", "text": "function _session_regenerate_id()\r\n {\r\n $old_session_id = session_id();\r\n $old_session_data = $_SESSION;\r\n\r\n // regenerate session id and store it\r\n session_regenerate_id();\r\n $new_session_id = session_id();\r\n\r\n // switch to the old session and destroy its storage\r\n session_id($old_session_id);\r\n session_destroy();\r\n\r\n // switch back to the new session id and send the cookie\r\n session_id($new_session_id);\r\n session_start();\r\n\r\n // restore the old session data into the new session\r\n $_SESSION = $old_session_data;\r\n\r\n // update the session creation time\r\n $_SESSION['regenerated'] = _get_time();\r\n\r\n // end the current session and store session data.\r\n session_write_close();\r\n }", "title": "" }, { "docid": "de171fefcaaa9f9ef7bddac782d0e15a", "score": "0.57975984", "text": "public function resetCurrentCartIdentifier();", "title": "" }, { "docid": "f2c40c39836a0c907a24ec9bc558ac98", "score": "0.57929164", "text": "public function reset_db_sessions()\n\t{\n\t\t$ttl = (int)Phpr::$config->get('STORED_SESSION_TTL', 3);\n\t\tDb_Helper::query('delete from db_session_data where created_at < DATE_SUB(now(), INTERVAL :seconds SECOND)', array('seconds'=>$ttl));\n\t}", "title": "" }, { "docid": "a7d7e70d5515500c956c9073ae8f959e", "score": "0.57586014", "text": "public function reset()\n\t{\n\t\tparent::reset();\n\n\t\t// Reset the primary key\n\t\t$this->id = null;\n\t}", "title": "" }, { "docid": "a7d7e70d5515500c956c9073ae8f959e", "score": "0.57586014", "text": "public function reset()\n\t{\n\t\tparent::reset();\n\n\t\t// Reset the primary key\n\t\t$this->id = null;\n\t}", "title": "" }, { "docid": "3fec7b385fd2c563a63e435cf8ae8941", "score": "0.5714232", "text": "public function restart($transientKey = '') {\n $this->checkAccess();\n if (!Gdn::session()->validateTransientKey($transientKey) && !Gdn::request()->isAuthenticatedPostBack()) {\n throw new Gdn_UserException('The CSRF token is invalid.', 403);\n }\n\n // Delete the individual table files.\n $imp = new ImportModel();\n try {\n $imp->loadState();\n $imp->deleteFiles();\n } catch (Exception $ex) {\n // Suppress exceptions from bubbling up.\n }\n $imp->deleteState();\n\n redirectTo(strtolower($this->Application).'/import');\n }", "title": "" }, { "docid": "9f81a689e30b351c53c75852c45ae735", "score": "0.57120484", "text": "public function kill()\n {\n session_regenerate_id();\n $_SESSION[CCID] = array(); // session_unset();\n session_destroy();\n }", "title": "" }, { "docid": "c88c71cf4c2a86ab3b51457cf8efc987", "score": "0.5697401", "text": "protected function regenerate()\n {\n $hash_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';\n $hash = \"\";\n\n $exists = true;\n $sessions_tbl = $this->db->query('SELECT hash FROM sessions');\n $sessions = array();\n while($row = $sessions_tbl->fetchArray()) {\n $sessions[] = $row['hash'];\n }\n\n while($exists) {\n for($i = 0; $i < 64; $i++) {\n $r = rand(0, strlen($hash_chars) - 1);\n $hash.= $hash_chars[$r];\n }\n\n $exists = in_array($hash, $sessions);\n }\n\n self::$sid = $this->db->escapeString($hash);\n $sql = 'INSERT INTO sessions(hash, timestamp) VALUES(\"'.self::$sid.'\", \"'.time().'\")';\n $this->db->exec($sql);\n setcookie('PHPFASTSESSID', self::$sid, time() + $this->max_age);\n }", "title": "" }, { "docid": "5111f03fcbfe5c94e89da1ba50df3b2a", "score": "0.56917995", "text": "public function regenerate() {\n if (session_regenerate_id(true)) {\n $this->updateId();\n return true;\n }\n else throw new Mexception('Unable to regenerate Session');\n }", "title": "" }, { "docid": "27ac80c24d6061d3b373b80b3c3014e8", "score": "0.5672875", "text": "public function resetId()\n {\n\n $this->id = null;\n\n }", "title": "" }, { "docid": "879f057162a65cd90316a00a6366881d", "score": "0.563158", "text": "public function restart() {\n\t\t$this->resetTriggerTime();\n\t\t$this->timer->restartEvent( $this );\n\t}", "title": "" }, { "docid": "947d17cf293d9226ca41a81bf0bff4f1", "score": "0.5623416", "text": "private function clearPreviousEnrollmentState(): void\n {\n $keys = [];\n if ($this->session->has(self::ENROLL_KEYS_SESSION_NAME)) {\n $keys = $this->session->get(self::ENROLL_KEYS_SESSION_NAME);\n }\n $format = \"Removing %d keys from the enrollment session states\";\n $this->logger->debug(sprintf($format, count($keys)));\n try {\n foreach ($keys as $key) {\n $this->tiqrService->clearEnrollmentState($key);\n unset($keys[$key]);\n }\n } catch (Exception $e) {\n // Catch errors from the tiqr-server and up-cycle them to exceptions that are meaningful to our domain\n throw TiqrServerRuntimeException::fromOriginalException($e);\n }\n $format = \"Reset enroll session keys, remaining keys: %d\";\n $this->logger->debug(sprintf($format, count($keys)));\n\n $this->session->set(self::ENROLL_KEYS_SESSION_NAME, $keys);\n }", "title": "" }, { "docid": "60b3aa144334f700246d2e49a71191f9", "score": "0.5608105", "text": "public function updateId() {\n $this->Id = session_id();\n }", "title": "" }, { "docid": "4e54809b29038ac3126bccc23cdba5b9", "score": "0.55956596", "text": "public function regenerate()\n {\n session_regenerate_id(true);\n session_write_close();\n\n if (isset($_SESSION)) {\n $backup = $_SESSION;\n session_start();\n $_SESSION = $backup;\n } else {\n session_start();\n }\n\n\n $this->storage = & $_SESSION;\n\n return $this;\n }", "title": "" }, { "docid": "b32e6800b81faaf0ced283e26ea6ab9b", "score": "0.55911595", "text": "public function reset() {\n foreach ($this->syncedProperties as $property) {\n unset($this->data[$property]);\n }\n\n if (session_id()) {\n unset($_SESSION[self::SESSION_KEY]);\n }\n }", "title": "" }, { "docid": "98a1053ca33f5c6ff70018106b388bf5", "score": "0.5586117", "text": "public function regenerateId();", "title": "" }, { "docid": "98a1053ca33f5c6ff70018106b388bf5", "score": "0.5586117", "text": "public function regenerateId();", "title": "" }, { "docid": "97a2ce1224c408140a1ac4d7741f91e3", "score": "0.55688655", "text": "public function regenerateID($deleteOldSession = false)\n {\n if ($this->getIsActive()) {\n @session_regenerate_id($deleteOldSession);\n }\n }", "title": "" }, { "docid": "a15a1dd4034f699dab23683b487b89d5", "score": "0.55641526", "text": "public function resetStored()\n\t{\n\t\t$_SESSION[__CLASS__][$this->questionId] = null;\n\t}", "title": "" }, { "docid": "709fb9043fd71045e3785cf2e2c07114", "score": "0.55607486", "text": "public function restart() {\n if ($this->user->is_logged_in()) {\n $this->user->restart_player();\n }\n redirect(\"/account/info\");\n }", "title": "" }, { "docid": "0a77e42cdc1dd9202027d880be829d15", "score": "0.5534469", "text": "public function regenerateId(): self;", "title": "" }, { "docid": "c4b6fa1fdacc68ba0b4a37f3718a3f2f", "score": "0.55314565", "text": "public function resetData();", "title": "" }, { "docid": "64d617cc8cc808290aee751511a3d257", "score": "0.55234414", "text": "function reset($key = false) {\n\t\t// writeToFile(\"reset:\" . $key);\n\n\t\tsessionStart();\n\t\tif($key) {\n\t\t\tunset($_SESSION[\"SV\"][$key]);\n\t\t}\n\t\t// reset entire session\n\t\telse {\n//\t\t\tsession_unset();\n\t\t\tunset($_SESSION);\n\n\t\t\tif(ini_get(\"session.use_cookies\")) {\n\t\t\t\t$params = session_get_cookie_params();\n\t\t\t\tsetcookie(session_name(), '', time() - 42000, $params[\"path\"], $params[\"domain\"], $params[\"secure\"], $params[\"httponly\"]);\n\t\t\t}\n\n\t\t\tsession_destroy();\n\n\t\t\t// start a new session\n\t\t\tsession_start();\n\t\t\t// regerate Session id\n\t\t\tsession_regenerate_id(true);\n\n\t\t}\n\t\tsessionEnd();\n\n\t}", "title": "" }, { "docid": "dcfd49b74cf5f1289767665639b840bc", "score": "0.5503756", "text": "public function resetId(){\r\n\t\t$this->clientId = null;\r\n\t}", "title": "" }, { "docid": "ff5ff59923921f6220e6a90000297e5c", "score": "0.5492736", "text": "function regenerate_session ($session_id = '')\n {\n\n //Regenerate the Session, normally to set new expiry time for cookie\n //\n //You may specify \"NEW\" in the function to generate a new Session ID.\n //Leave it blank to regenerate the sesion with the SAME ID.\n\n //Copy their current session information and session ID\n $saved_session_info = $_SESSION;\n $saved_session_id = session_id();\n\n //Destory the current Session (and cookie) using our function\n $this->sess_destroy();\n\n //Ensure we have the default defaults for the session name and the current Session Length\n session_name($this->sess_name);\n ini_set('session.cookie_lifetime', $this->sess_length);\n\n //Check if we need to generate a new Session ID, define the Session ID or leave the current Session ID in tact.\n if ($session_id === '' OR $session_id === NULL) {\n //Session ID is blank, give them their old Session ID\n session_id($saved_session_id);\n } elseif (strtoupper($session_id == 'NEW')) {\n //Update the current session ID with a newly generate one\n session_regenerate_id();\n } else {\n //Session ID is defined by calling function, declare the Session ID\n session_id($session_id);\n }\n\n //Restart the Session\n session_start();\n\n //Load back our saved session data\n $_SESSION = $saved_session_info;\n\n //Unload our saved data\n unset ($saved_session_info);\n unset ($saved_session_id);\n }", "title": "" }, { "docid": "cdd4263df845efdc9621b6c225302c8c", "score": "0.5487371", "text": "function complentary_session_reset_data() {\n // Diff Wizard session data\n $url_path = $_SERVER['REQUEST_URI'];\n if (strpos($url_path, 'diff-wizard') !== false || strpos($url_path, 'product') !== false ) {\n if ( ! session_id() ) {\n session_start();\n }\n } else {\n if ( ! session_id() ) {\n session_start();\n }\n unset(\n $_SESSION['diffID'],\n $_SESSION['diffyear'],\n $_SESSION['make'],\n $_SESSION['model'],\n $_SESSION['drivetype']\n );\n }\n}", "title": "" }, { "docid": "1ef6450109829c3fd6f8fb10c41d5338", "score": "0.54855835", "text": "public function deleteAll() {\n\n $this->start();\n $_SESSION = array();\n\n }", "title": "" }, { "docid": "8f04b99ba7d0985ebc034c862ecd3326", "score": "0.5465198", "text": "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_EXPIRE_TIME] = null;\n }", "title": "" }, { "docid": "4cebe3631a463a9ba4a1ea11768dcb7d", "score": "0.5453394", "text": "public function delete_old_sessions()\n\t{\n\t\t$expire = ee()->localize->now - $this->session_length;\n\n\t\tsrand(time());\n\n\t\tif ((rand() % 100) < $this->gc_probability)\n\t\t{\n\t\t\tee()->db->where('last_activity < ', $expire)\n\t\t\t\t\t\t ->delete('sessions');\n\t\t}\n\t}", "title": "" }, { "docid": "0aaec7f4da4f94660a27f27b38b693c4", "score": "0.54309756", "text": "function _RegenerateId()\n {\n if ($this->regenerate_id && function_exists('session_regenerate_id')) {\n if (version_compare('5.1.0', phpversion(), '>=')) {\n //session_regenerate_id(true);\n } else {\n \t//session_regenerate_id();\n }\n }\n }", "title": "" }, { "docid": "d9a62f56267fab18f73e5f3ccf5e035e", "score": "0.54035634", "text": "protected function clearAllPersistentData()\n {\n foreach ($this->_sessionNamespace as $key => $value) {\n unset($this->_sessionNamespace->{$key});\n }\n }", "title": "" }, { "docid": "c313c0887519af0bb72db09677b7676d", "score": "0.53786665", "text": "public static function reloadSession(){\n $auth = App_Auth::getInstance();\n\n $userModel = new FrontendUser();\n $user = $userModel->findById(self::getSession()->id);\n $user->groups = $user->findManyToManyRowset('Group', 'FrontendUserGroup');\n $user->group = $user->groups[0];\n\n $session = new stdClass();\n foreach($user as $k => $v){\n $session->{$k} = $v;\n }\n $session->group->name = $user->get('group')->name;\n\n $auth->getStorage()->write($session);\n }", "title": "" }, { "docid": "0e7b2e64cc05a9d2054902600dfe16e1", "score": "0.53711236", "text": "public function reset()\n {\n $this->values[self::_RSEED] = null;\n $this->values[self::_LOOTS] = array();\n }", "title": "" }, { "docid": "c03db804c84c1cd49c7208aae948845d", "score": "0.5365796", "text": "public function resetAction() {\n $_SESSION = array();\n session_destroy();\n return self::redirect('index');\n }", "title": "" }, { "docid": "dd097b0b7dcc307f947ce508c4d04ddc", "score": "0.53588784", "text": "public function reset()\r\n {\r\n $this->_session->remove($this->_branchKey);\r\n $this->_session->remove($this->_stepsKey);\r\n $this->_session->remove($this->_timeoutKey);\r\n }", "title": "" }, { "docid": "f8df08455f21ed02c47e02dec076d54c", "score": "0.5356115", "text": "public function resetSessionData(){\n\t\t$_SESSION['Order__id'] = null;\n\t\t$_SESSION['transactionAmount'] = null;\n\t\t\n\t}", "title": "" }, { "docid": "5ea812d5727c2685988021583e45e05b", "score": "0.5353084", "text": "public function resetTimeSession()\n {\n Session::set('tiempo', time());\n }", "title": "" }, { "docid": "8e1f467c11a642c99c7af128d61107f8", "score": "0.53465664", "text": "public static function reset()\n\t{\n\t\tself::engine()->reset();\n\t}", "title": "" }, { "docid": "36319e299cff03baa6603c57baf6683a", "score": "0.5333257", "text": "private function removeEntryIdFromSession()\n {\n Session::forget($this->session_key);\n }", "title": "" }, { "docid": "0df70e7122a01abe0de8313d667860a2", "score": "0.53182805", "text": "function resetSession(){\t\t\n\t\t$roomid = (int)$_POST['roomid'];\n\t\tif($roomid < 0){ throw new Exception('Invalid player');}\n\t\t@mt_srand();\n\t\t$newSession = @mt_rand(0,99999999999);\n\t\tglobal $db;\n\t\t$q = $db -> prepare(\"UPDATE game SET sessionid = ? WHERE roomid = ?\");\n\t\t$q->execute(array($newSession,$roomid));\n\t\t// Return the new game session\n\t\treturn $newSession;\n\t}", "title": "" }, { "docid": "969b4445def8453ad6384dd654be90ca", "score": "0.5315295", "text": "public function regenerate();", "title": "" }, { "docid": "40d596ab9c7aa9096dcf39ebee47ed04", "score": "0.5314605", "text": "protected function reloadPids() : void\n {\n $this->pids = [];\n $this->loadPids();\n }", "title": "" }, { "docid": "b83bf171ac9cbeb2243274eec813ab16", "score": "0.53078824", "text": "function regeneratesession() {\n if(isset($_SESSION['OBSOLETE']) || $_SESSION['OBSOLETE'] == true)\n return;\n\n // Set current session to expire in 10 seconds\n $_SESSION['OBSOLETE'] = true;\n $_SESSION['EXPIRES'] = time() + 10;\n\n // Create new session without destroying the old one\n session_regenerate_id(false);\n\n // Grab current session ID and close both sessions to allow other scripts to use them\n $newSession = session_id();\n session_write_close();\n\n // Set session ID to the new one, and start it back up again\n session_id($newSession);\n if (session_status() == PHP_SESSION_NONE ) { session_start(); }; // recommended way for versions of PHP >= 5.4.0\n\n // Now we unset the obsolete and expiration values for the session we want to keep\n unset($_SESSION['OBSOLETE']);\n unset($_SESSION['EXPIRES']);\n}", "title": "" }, { "docid": "5e268b1bec0b90df58f0a03d1a4b1872", "score": "0.53051895", "text": "public function clearIdentity()\n {\n $this->storage[$this->storageKey]=[];\n }", "title": "" }, { "docid": "437892c8f76c5013275c184f2832211a", "score": "0.5304948", "text": "function regenerateSession($reload = false)\n{\n if(!isset($_SESSION['fingerprint']) || $reload) {\n $_SESSION['fingerprint'] = sha1(md5($_SERVER['REMOTE_ADDR'].'ahsh')\n .md5($_SERVER['HTTP_USER_AGENT'].'afke'));\n }\n\n /**\n * Create new session and destroy the old one\n */\n session_regenerate_id(true);\n global $CONFIG;\n if($CONFIG->Subdomains->Top_domain) {\n setcookie(session_name(), session_id(), 0, \"/\", \".\".$CONFIG->Subdomains->Top_domain, true);\n }\n}", "title": "" }, { "docid": "7832920f6a75abea42a59c6954c4b736", "score": "0.5301208", "text": "public function reload()\n {\n if ($this->config['server_type'] == 'process') {\n $pid = $this->getPid('worker');\n } else {\n $pid = $this->getPid('master');\n }\n\n if (empty($pid)) {\n die(\"{$this->config['process_name']} has not process\".PHP_EOL);\n }\n\n exec(\"kill -USR1 \" . implode(' ', $pid), $output, $return);\n\n if ($return === false) {\n die(\"{$this->config['process_name']} reload fail\".PHP_EOL);\n }\n echo \"{$this->config['process_name']} reload success\".PHP_EOL;\n }", "title": "" }, { "docid": "04555d7b835d1ecb97a26a2e75a253c0", "score": "0.52874786", "text": "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_LAST_AUTO_REFRESH_TIME] = null;\n $this->values[self::_EXPIRE_TIME] = null;\n $this->values[self::_LAST_MANUAL_REFRESH_TIME] = null;\n $this->values[self::_TODAY_TIMES] = null;\n $this->values[self::_CURRENT_GOODS] = array();\n }", "title": "" }, { "docid": "6cbf17ca22eac5e11ce2b98ebc7ddc08", "score": "0.5284275", "text": "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_EXPIRE_TIME] = null;\n $this->values[self::_STAR_GOODS] = array();\n }", "title": "" }, { "docid": "ae8f387858760f3ccb0db75e3bfe4d16", "score": "0.5283928", "text": "public function restart(Device $device)\n {\n\n }", "title": "" }, { "docid": "bddf0d630fe41ed248603c4c568df591", "score": "0.52792376", "text": "public function reset()\n {\n $this->values[self::_ID] = null;\n $this->values[self::_FREQUENCY] = null;\n $this->values[self::_LAST_CHANGE] = null;\n }", "title": "" }, { "docid": "a476e0aed63202dd127cddc5d74f979c", "score": "0.52690685", "text": "public function reset()\n {\n $this->values[self::_ID] = array();\n }", "title": "" }, { "docid": "3c4920dd432946b6febdbd678a822aa9", "score": "0.52597886", "text": "public function reset()\n {\n $payload = '';\n\n $this->sendRequest(self::FUNCTION_RESET, $payload);\n }", "title": "" }, { "docid": "3c4920dd432946b6febdbd678a822aa9", "score": "0.52597886", "text": "public function reset()\n {\n $payload = '';\n\n $this->sendRequest(self::FUNCTION_RESET, $payload);\n }", "title": "" }, { "docid": "889eaf70475d274a83e6cfc2ee77d076", "score": "0.5252367", "text": "public function reload();", "title": "" }, { "docid": "889eaf70475d274a83e6cfc2ee77d076", "score": "0.5252367", "text": "public function reload();", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "c3dc05cb987909fef4131716342a39f1", "score": "0.0", "text": "public function destroy($id)\n {\n Topping_Item::find($id)->delete();\n }", "title": "" } ]
[ { "docid": "f1aaf41a7156fa1ddfcdb965f9ec5b59", "score": "0.77682966", "text": "public function remove($resource)\n {\n if($this->exist($resource)){\n unset($this->resources[$resource]);\n }\n }", "title": "" }, { "docid": "8b628383b34d63dd0eb00f58ca93193b", "score": "0.703237", "text": "public static function deleteResource($resource)\n {\n $resourceKey = self::getResourceKey($resource);\n unset(self::$resource_registry[$resourceKey]);\n }", "title": "" }, { "docid": "4227c47fa6415b99ac7ad79261ad7226", "score": "0.6690498", "text": "public function removeResource(AbstractResourceFile $resource) {\n if (parent::offsetExists($resource->getMemberId())) {\n parent::offsetUnset($resource->getMemberId());\n }\n }", "title": "" }, { "docid": "cba9c3b5928674c49645b80c060a27ee", "score": "0.66900694", "text": "public function deleted(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public function destroy(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "503409da4f5b9a20ee18f568cabc837e", "score": "0.6578654", "text": "protected function deleteResource($resource) {\n $translator = $this->i18n->getTranslator($resource['locale']);\n $translator->setTranslation($resource['key'], null);\n }", "title": "" }, { "docid": "104d6984e581161b647cdf9206aaa4be", "score": "0.65266734", "text": "public function delete($storage_name);", "title": "" }, { "docid": "e8e36bc4035715e1553386a49c3dd64a", "score": "0.64323646", "text": "final protected function remove($resource)\n {\n // Initilize the request as post\n $this->init('delete', $resource);\n\n // Make the request using guzzle\n return $this->call();\n }", "title": "" }, { "docid": "fa011b24954b422bb6ebfc09cdafce74", "score": "0.64162064", "text": "public function unpublishResource(PersistentResource $resource)\n {\n try {\n $objectName = $this->keyPrefix . $this->getRelativePublicationPathAndFilename($resource);\n $this->getCurrentBucket()->object($objectName)->delete();\n $this->systemLogger->log(sprintf('Successfully unpublished resource as object \"%s\" (MD5: %s) from bucket \"%s\"', $objectName, $resource->getMd5() ?: 'unknown', $this->bucketName), LOG_DEBUG);\n } catch (NotFoundException $e) {\n }\n }", "title": "" }, { "docid": "628a4d244227d2089465337bd866ab72", "score": "0.634412", "text": "public function delete() {\n\n // Does the Resource object have an ID?\n if ( is_null( $this->id ) ) trigger_error ( \"Resource::delete(): Attempt to delete an Resource object that does not have its ID property set.\", E_USER_ERROR );\n\n // Delete the Resource\n $conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\n $st = $conn->prepare ( \"DELETE FROM resource WHERE id = :id LIMIT 1\" );\n $st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\n $st->execute();\n $conn = null;\n }", "title": "" }, { "docid": "2e3daccb9b7f61db1ba5db127ae75245", "score": "0.63187486", "text": "private static function deleteResourceAndUsage( $resource ) {\n $dbw = wfGetDB( DB_PRIMARY );\n $dbw -> delete('edusharing_resource', array( 'EDUSHARING_RESOURCE_ID = ' . $resource->EDUSHARING_RESOURCE_ID ), $fname = 'Database::delete');\n\n $postData = new stdClass ();\n $postData->nodeId = str_replace(\"ccrep://local/\",\"\",$resource->EDUSHARING_RESOURCE_OBJECT_URL);\n $postData->usageId = $resource->EDUSHARING_RESOURCE_USAGE;\n\n // delete usage from repo\n $eduService = new EduSharingService();\n $eduService -> deleteUsage( $postData );\n }", "title": "" }, { "docid": "7c8424d31eaa624067dc5241abfb9372", "score": "0.6257354", "text": "public function deleteStorage($storageId);", "title": "" }, { "docid": "4266f43d7f511bcf14d6ed4a63e0608f", "score": "0.6230025", "text": "public function delete($resource) {\n\t\t\t\n\t\t$url = $this->_path . '/api/v2' . $resource;\n\t\t\n\t\t$curl = curl_init();\n\t\tcurl_setopt($curl, CURLOPT_URL, $url);\n\t\tcurl_setopt($curl, CURLOPT_HTTPHEADER, $this->_headers);\n\t\tcurl_setopt($curl, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($curl, CURLOPT_VERBOSE, 1);\n\t\tcurl_setopt($curl, CURLOPT_HEADER, 1);\n\t\tcurl_setopt($curl, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n\t\tcurl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);\n\t\t$response = curl_exec($curl);\n\t\t$http_status = curl_getinfo($curl, CURLINFO_HTTP_CODE);\n\t\t$header_size = curl_getinfo($curl, CURLINFO_HEADER_SIZE);\n\t\t$headers = substr($response, 0, $header_size);\n\t\t$body = substr($response, $header_size);\n\t\tself::http_parse_headers($headers);\t \n\t\tcurl_close ($curl);\n\t\tif ($http_status == 204) {\n\t \treturn $http_status . ' DELETED';\n\t\t } else {\n\t\t \t$this->error($body, $url, null, 'DELETE');\n\t\t }\n\t}", "title": "" }, { "docid": "71cdf2c8771b0884ed0346cbff1672a0", "score": "0.62021154", "text": "abstract protected function destroyResource(): void;", "title": "" }, { "docid": "174b3cc2502c8f8c88a91296ed95d437", "score": "0.61883366", "text": "public function delete($resource) {\n\t\t\t\n\t\t$url = 'https://api.bigcommerce.com/stores/' . $this->_hash . '/v2/' . $resource;\n\t\t\n\t\tcurl_setopt($this->_curl, CURLOPT_URL, $url);\n\t\tcurl_setopt($this->_curl, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n\t\t$response = curl_exec($curl);\n\t\t$http_status = curl_getinfo($curl, CURLINFO_HTTP_CODE);\n\t\t$header_size = curl_getinfo($curl, CURLINFO_HEADER_SIZE);\n\t\t$headers = substr($response, 0, $header_size);\n\t\t$body = substr($response, $header_size);\n\t\t$headersArray = self::http_parse_headers($headers);\n\t\tif (! $this->rate_limit($headersArray) && $this->retries < self::RETRY_ATTEMPTS) {\n\t\t\t$this->retries = $this->retries + 1;\n\t\t\treturn $this->delete($resource);\n\t\t}\t \n\t\tcurl_close ($curl);\n\t\tif ($http_status == 204) {\n\t \treturn $http_status . ' DELETED';\n\t\t } else {\n\t\t \t$this->error($body, $url, null, 'DELETE');\n\t\t }\n\t}", "title": "" }, { "docid": "04ec0c72a529ea888ebec978b8312735", "score": "0.6156356", "text": "public function deleteFromStorage()\n {\n //Original\n if(file_exists(public_path($this->url))){\n File::delete(public_path($this->url));\n }\n\n //Thumbnail\n if(file_exists(public_path($this->thumb_url))){\n File::delete(public_path($this->thumb_url));\n }\n }", "title": "" }, { "docid": "2f47947186448448aa034e3f635016f3", "score": "0.61315197", "text": "public function removeApiResource($resource)\n {\n $index = array_search($resource, $this->apiResources);\n if ($index !== false) {\n unset($this->apiResources[$index]);\n // reindex this array to be sequential zero-based.\n $this->apiResources = array_values($this->apiResources);\n }\n }", "title": "" }, { "docid": "e0c513c82c944008d275fc6f457afb42", "score": "0.6123187", "text": "public function forceDeleted(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "347ab67e3e18ac392ded1095e453fdae", "score": "0.61123997", "text": "public function removeResource(string $resource): ?bool {\r\n\r\n //Check if resource exists\r\n if(true === isset($this -> resources[$resource])) {\r\n\r\n unset($this -> resources[$resource]);\r\n return true;\r\n }\r\n\r\n return null;\r\n }", "title": "" }, { "docid": "f1df46e2c5dfa855b0aae2241e47a742", "score": "0.60987437", "text": "public function destroy($id)\n {\n $entry = Storage::findOrFail($id);\n\n $entry->delete();\n\n return redirect('/storages');\n }", "title": "" }, { "docid": "7caa54c56a26f9c25867bf3b317a8b05", "score": "0.6078726", "text": "public function removeResource($key) {\r\n\t\tif (isset($this->resources[$key]))\r\n\t\t\tunset($this->resources[$key]);\r\n\t}", "title": "" }, { "docid": "4ee6a6c61b47a02140107fbd844ed2bb", "score": "0.6063936", "text": "public function removeResource($resource)\n\t{\n\t\t$this->needResource($resource);\n\n\t\t$parent = $this->resources[$resource]['parent'];\n\t\tif ($parent !== NULL) {\n\t\t\tunset($this->resources[$parent]['children'][$resource]);\n\t\t}\n\n\t\t$removed = array($resource);\n\t\tforeach ($this->resources[$resource]['children'] as $child => $foo) {\n\t\t\t$this->removeResource($child);\n\t\t\t$removed[] = $child;\n\t\t}\n\n\t\tforeach ($removed as $resourceRemoved) {\n\t\t\tforeach ($this->rules['byResource'] as $resourceCurrent => $rules) {\n\t\t\t\tif ($resourceRemoved === $resourceCurrent) {\n\t\t\t\t\tunset($this->rules['byResource'][$resourceCurrent]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tunset($this->resources[$resource]);\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "1a7799a3edae94b9a12c008d1d703c57", "score": "0.59831214", "text": "public function deleteStorageService($name);", "title": "" }, { "docid": "1a7799a3edae94b9a12c008d1d703c57", "score": "0.59831214", "text": "public function deleteStorageService($name);", "title": "" }, { "docid": "6916dd8c1d60603bcf3ae4bd18d41a83", "score": "0.5977718", "text": "public function removeResource($resource)\n {\n $acl = $this->_getAcl();\n $acl->remove($resource);\n $this->_setAcl($acl);\n\n return $this;\n }", "title": "" }, { "docid": "f23ad90184663348cc9db3cf44d0b0a5", "score": "0.595982", "text": "public function destroy(Resource $resource)\n {\n //\n\t\t\t\treturn response()->json([\n\t\t\t\t\t'destroyed'=>$resource->delete()\n\t\t\t\t]);\n }", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "ef4a1685667d21fcb638df892463f9c8", "score": "0.59317005", "text": "public function destroy($id)\n {\n $supplier = Supplier::where('id',$id)->first();\n $photo = $supplier->image;\n if($photo){\n unlink($photo);\n $supplier->delete();\n }else{\n $supplier->delete();\n }\n }", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "78f3fcb6a4df88ba8ea45797087a7e8d", "score": "0.59121597", "text": "public function remove($entity);", "title": "" }, { "docid": "d9a8a2179bed321de0122e8cff40c63a", "score": "0.5906186", "text": "public function remove($storageKey)\n {\n $path = $this->getImagePath((string) $storageKey);\n @unlink($path);\n }", "title": "" }, { "docid": "39b14dd177c56742d793fa231de87204", "score": "0.5899593", "text": "public function remove()\n {\n unlink($this->uploadDir . $this->nomenovo);\n\n parent::remove();\n }", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "e03265a289855852afd2372dcb1d8daa", "score": "0.58933157", "text": "public function remove($path, $hard = false);", "title": "" }, { "docid": "aad5350294ac8f905383132f720b1be8", "score": "0.588305", "text": "public function delete($resource, $arOptions);", "title": "" }, { "docid": "d6fae5ff4be2ba960f6582fc42fd3676", "score": "0.5868486", "text": "public function remove() {\n if (file_exists($this->location))\n unlink($this->location);\n parent::remove();\n }", "title": "" }, { "docid": "77eb36c589be56f3f633dc84debdce8a", "score": "0.5864072", "text": "public function clearStorage(): void;", "title": "" }, { "docid": "7e7b93a0bfbbefcf0448e892241c5a20", "score": "0.585261", "text": "public function remove($name)\n {\n if (isset($this->storage[$name])) {\n unset($this->storage[$name]);\n }\n }", "title": "" }, { "docid": "3ca22b7764fa3b3a6a94edbeb0b0d64f", "score": "0.585028", "text": "public function clear()\n {\n if (file_exists($this->storageFile)) {\n unlink($this->storageFile);\n }\n }", "title": "" }, { "docid": "41603163cf71ae1b28de95896f8297c6", "score": "0.58502716", "text": "public function destroy($id)\n {\n $this->authorize('delete', $this->resource->getModel()->find($id));\n\n if (in_array($this->module->getName(), config('resource_lock'))) {\n\t $this->unlock($id);\n\t }\n\n $this->resource->delete($id);\n }", "title": "" }, { "docid": "1486c0df76f6bc31a817da2f80eb3546", "score": "0.5835488", "text": "public function deleteResourceById($id)\n {\n $resource = $this->getRecordById($id);\n\n if (isset($resource->id)) {\n //Delete record from id\n $this->delete(array('id = ?' => $id));\n\n //Delete files\n if (!empty($this->uploadedFiles)) {\n foreach ($this->uploadedFiles as $colName => $location) {\n if (!empty($resource->$colName)) {\n $fileName = $location . $resource->$colName;\n\n if (is_file($fileName)) {\n unlink($fileName);\n }\n }\n }\n }\n }\n }", "title": "" }, { "docid": "83da6d00e9ec003d7115d52e8eaed9e7", "score": "0.5812055", "text": "public function del($path);", "title": "" }, { "docid": "bbd4fbeb169cce49dbdee4fcf4da3308", "score": "0.576368", "text": "public function destroy(Storage $storage)\n {\n //\n }", "title": "" }, { "docid": "5446b650450a069ded319874becfacf8", "score": "0.5749654", "text": "public function destroy($id)\n {\n $prestamo = Prestamo::where('id', $id)->first();\n $photo = $prestamo->image;\n if ($photo) {\n unlink($photo);\n $prestamo->delete();\n } else {\n $prestamo->delete();\n }\n }", "title": "" }, { "docid": "80dea14a08ed690bb6c0e40f9adf7b93", "score": "0.5730856", "text": "public function destroy($id)\n {\n $item=Item::find($id);\n //delete related file from storage\n $item->delete();\n return redirect()->route('items.index');\n }", "title": "" }, { "docid": "223830251a63efdf7921b31d2cb714b9", "score": "0.57265943", "text": "public function remove(string $path): void;", "title": "" }, { "docid": "afcc6695c26fa480351516ff52f20881", "score": "0.5723434", "text": "public function destroy($id)\n {\n $photo = Photo::find($id);\n if(file_exists(basename($photo->thumpnail_url))){\n unlink(\"storage/thumbnail/\". basename($photo->thumbnail_url));\n }\n if(file_exists(basename($photo->photo_url))){\n unlink(\"storage/slider/\". basename($photo->photo_url));\n } \n $photo->delete(); \n\n return redirect('/admin/photo/show');\n }", "title": "" }, { "docid": "e1196ae52794e4b5c86db7a7fa85b63b", "score": "0.5721902", "text": "public function destroy($id)\n {\n $image = Image::where('name','like','%'.$id.'%')->first();\n Storage::disk('spaces')->delete($image->location);\n $image->delete();\n }", "title": "" }, { "docid": "7b06ca498cebb34097bee47d0def61eb", "score": "0.5718601", "text": "public function delete() {\n if (unlink($this->fullPath)) {\n $this->fullPath = '';\n $this->mimeType = '';\n $this->simpleName = '';\n $this->size = 0;\n } else {\n throw new Exception('Check write Access to delete file!');\n }\n }", "title": "" }, { "docid": "e8717e0d91da860445a846b6f0ff4c6e", "score": "0.5717918", "text": "public function delete($uri) {\n return $this->filesystem->unlink($uri);\n }", "title": "" }, { "docid": "b86ae32c63f3ca7d52497df28e9fc6c7", "score": "0.5715146", "text": "public function remove(string $path): self;", "title": "" }, { "docid": "d88570650ee0cd02f602031e7809a9e1", "score": "0.569391", "text": "public function destroy(ResourceCreator $listener, $resourceId);", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "e5d47a80a17edd9d97460e8002cc40a1", "score": "0.56822425", "text": "public function destroy($id)\n {\n try {\n $req = Req::find($id);\n\n foreach (json_decode($req->images) as $img){\n @unlink('storage/' . $img);\n }\n\n $req->delete();\n return response()->json([\n 'success' => 'Record deleted successfully!'\n ]);\n } catch (\\Exception $e) {\n return redirect()->back()->with('error', 'Error Try Again !!');\n }\n }", "title": "" }, { "docid": "69eb53cf8ca11222913b106ef117d68e", "score": "0.5679363", "text": "public function delete() {\n\t\t$this->checkWritePermission(true);\n\t\t$file = \\GO\\Files\\Model\\File::model()->findByPath($this->relpath);\n\t\t$file->delete();\n\t}", "title": "" }, { "docid": "c4f845a8d7bbb2425211bda284218817", "score": "0.56762695", "text": "function destroy() {\n\t\tunlink($this->get_file_name());\n\t\tself::remove_from_cache($this);\n\t}", "title": "" }, { "docid": "f62dc86d2fbee3e234695c789eabb485", "score": "0.5661866", "text": "public function destroy($id)\n {\n $student = Student::find($id);\n\n/* if($student->avatar)\n {\n unlink($student->avatar);\n }*/\n $student->delete();\n\n return redirect('students/')->with('success' , 'Data has been deleted');\n }", "title": "" }, { "docid": "c063d4508937e69e31d325da727fad68", "score": "0.56615514", "text": "public function unlink($filename) {\n $filename = $this->normalizePath($filename, NULL, FALSE);\n $filename_write = $this->toWritePath($filename);\n $this->writeOps->unlink($filename_write);\n if ($this->readOps instanceof ClearStatCacheInterface) {\n $this->readOps->clearstatcache($filename);\n }\n }", "title": "" }, { "docid": "7603d1c91a07e1809908a024215c7ff9", "score": "0.5659815", "text": "public function destroy($id)\n {\n $model= Model::findOrFail($id);\n $model->delete();\n\n $name = $model->image;\n File::delete(public_path().'/storage/'.$name);\n File::delete(public_path().'/storage/'.'thumb_'.$name);\n\n Alert::success('Model ' . $model->name . ' fue eliminada');\n return redirect()->route('models.index');\n }", "title": "" }, { "docid": "16edf2c6b79eca832eb0c092ab2f3f24", "score": "0.5649448", "text": "public function removeUpload()\r\n{\r\n if ($file = $this->getAbsolutePath()) {\r\n unlink($file); \r\n }\r\n}", "title": "" }, { "docid": "ca16d50e4d4e2ae00c79d72d63ee1f86", "score": "0.56463283", "text": "public function destroy($id)\n {\n\n $product = Product::findOrFail($id);\n if($product->photo){\n unlink( public_path() . $product->photo->path);\n }\n $product->delete();\n return redirect('productmodule/product')->with('message' ,\"Product Deleted Successfully\");\n\n// if ($product->delete()){\n// return new ProductResource($product);\n// }\n }", "title": "" }, { "docid": "a3a38b27322f5033d7e5049f50adbc03", "score": "0.5645099", "text": "public function unlink($uri, $context = NULL);", "title": "" }, { "docid": "0bc5c9101341c52f6ddc40571b9f9b66", "score": "0.5642073", "text": "public static function delete($image){\n if(!empty($image)){\n $image = str_replace('storage/', 'public/', $image);\n Storage::delete($image);\n }\n }", "title": "" }, { "docid": "be8b1d58278cafac500d99e1d8bf4e7c", "score": "0.56408733", "text": "public function delete()\n {\n self::getPersistenceDriver()->deleteOne($this->data);\n }", "title": "" }, { "docid": "2827a1d4696a95ab9b5d963d5f620b35", "score": "0.56362814", "text": "public function delete() {\n if (!isset($this->currentUser)) {\n throw new Exception(\"Not in session. Editing users requires login\");\n }\n if ($this->currentUser->getUser_type()!=usertype::Administrator){\n throw new Exception(\"Not valid user. Editing resource requires Administrator\");\n }\n\n // Get the user object from the database\n $idresource = $_REQUEST[\"idresource\"];\n $resource = $this->resourceMapper->findById($idresource);\n\n // Does the user exist?\n if ($resource == NULL) {\n throw new Exception(\"no such resource with id: \".$idresource);\n }\n\n // Delete the user object from the database\n $this->resourceMapper->delete($resource);\n\n\n $this->view->setFlash(sprintf(i18n(\"Resource successfully deleted.\"),$resource->getIdresource()));\n\n $this->view->redirect(\"resources\", \"index\");\n\n }", "title": "" }, { "docid": "5109ebc26960086f990edb39768f4e00", "score": "0.5635025", "text": "public function destroy($id)\n {\n unlink('.'.item::find($id)->img);\n item::destroy($id);\n Session::flash('warning','Item Removido!');\n return redirect()->route('home');\n }", "title": "" }, { "docid": "e56ffdb12b7e8ce9ce9b709dd82f37f7", "score": "0.56325144", "text": "public function removeById($id);", "title": "" }, { "docid": "d29811d1577ed7443199fc1b4276bdd0", "score": "0.56324077", "text": "public function remove($id) {\r\n if ($this->has($id, $this->namespace, self::SCOPE_MEMORY)) {\r\n unset($this->$cache[$this->generateAccessKey($id)]);\r\n }\r\n elseif ($this->has($id, $namespace, self::SCOPE_FILE)) {\r\n \t$filepath = $this->getFilename($this->generateAccessKey($id));\r\n \t@unlink($filepath);\r\n }\r\n }", "title": "" }, { "docid": "62ec0dff73832f5d98bdecee5d10241e", "score": "0.5628287", "text": "public function destroy($ourResource)\n {\n $ourResource= OurResource::Find($ourResource)->firstOrFail();\n $ourResource->delete();\n return redirect(route('ourresource.index'));\n\n }", "title": "" }, { "docid": "e69195d4a9a40721a876716ff49334cc", "score": "0.5625231", "text": "public function destroy($id)\n {\n\n $post = $this->globalvar['model']::find($id);\n $resourceimage = $this->imageresource;\n File::delete($this->globalvar['uploadpath'].'/'.$post->$resourceimage);\n $post->delete();\n\n Session::flash('Success', $this->globalvar['deletionsuccess']);\n return redirect()->route($this->globalvar['routeindex']);\n }", "title": "" }, { "docid": "81b2a149b82ad070a8fc5640c23cb4c5", "score": "0.56235874", "text": "public function deleteResource($resourceId)\n {\n $req = new RESTRequest();\n $data = $req->adminGet('LearningObject/delete/' . $resourceId)->getData();\n return $data;\n }", "title": "" }, { "docid": "3662a98e9c39b3ce43a9446f372faaea", "score": "0.56112725", "text": "public function destroyById($id);", "title": "" }, { "docid": "d19f0dd6eed7e8a8da6c207b4e430532", "score": "0.560789", "text": "public function serverDeleteVideo($resource, $email)\n {\n $resource2 = $resource;\n $path = base_path() . \"\\\\resources\\\\videos\\\\\";\n $path = $path . $email . \"\\\\\";\n\n $dir = @dir($path) or die(\"getFileList: Error abriendo el directorio $path para leerlo\");\n while(($archivo = $dir->read()) !== false) {\n // Obviamos los archivos ocultos\n if($archivo[0] == \".\") continue;\n /*if(is_dir($path . $archivo)) {\n // var_dump($archivo[0]);\n }*/ else if (is_readable($path . $archivo)) {\n \n $file = basename($path . $archivo); \n //echo $file;\n if($file == $resource2){\n unlink($path . $archivo);\n //echo $file;\n $contents = \"Deleted\";\n $response = Response::make($contents, 204);\n $response->header('Content-Type', 'application/json');\n return var_dump($response);\n }\n }\n }\n \n }", "title": "" }, { "docid": "be1aaccbcdec9ba85c660767bd3c39d7", "score": "0.5604081", "text": "public function destroy($id)\n {\n Resource::deleteResource($id);\n }", "title": "" }, { "docid": "b51f394c05cd4f2c03b66fb420214bf9", "score": "0.5596357", "text": "private function removeStoragePath($image)\n {\n $path_attr = $this->path_attr;\n\n Storage::delete($image->$path_attr);\n }", "title": "" }, { "docid": "6fbcf9a59c7f34ed85fd172cdf3d3c38", "score": "0.5595493", "text": "public function remove(){}", "title": "" }, { "docid": "635fc9f7a4a2830c651a29b140289b35", "score": "0.5590984", "text": "public function delete(string $path): void;", "title": "" }, { "docid": "61fba936475c878e54c2ccdf6070fb37", "score": "0.5589317", "text": "public function destroy($id)\n {\n //\n $record = Record::findOrFail($id);\n if($record->photo_id){ \n unlink(public_path() . $record->photo->file);\n }\n $record->delete();\n Session::flash('deleted_record','The record has been deleted');\n return redirect('admin/records');\n }", "title": "" }, { "docid": "e8dc5b1c3960ebd872e6313cb6c5d0a3", "score": "0.55856156", "text": "public function destroy($id)\n\t{\n $modelname = $this->modelname;\n $resource = $modelname::find($id);\n if($resource)\n {\n $resource->delete();\n }\n\t}", "title": "" }, { "docid": "727ad3584e68e2fbd7f4240087aca6cc", "score": "0.5571009", "text": "public function destroy($id)\n {\n $data = Supplier::findOrFail($id);\n $file_path = public_path() . $data->photo;\n if (file_exists($file_path)) {\n try {\n unlink($file_path);\n } catch (Exception $e) {\n // Do Nothing on Exception\n }\n }\n if ($data->delete()) {\n return back()->with([\"success\" => \"Data deleted successfully\"]);\n } else {\n return back()->with([\"error\" => \"Delete process failed\"]);\n }\n }", "title": "" }, { "docid": "5ee1747f20cb5d4c363843da3cc571d2", "score": "0.55688524", "text": "public function destroy($id)\n {\n try {\n \n $photo=Supplier::find($id);\n $location=base_path().'/public/img/supplier/' .$photo->Picture;\n $cc = unlink($location);\n \n Supplier::find($id)->delete(); \n return redirect('/supplier')->with('Data supplier successfully removed .');\n }\n catch(Exception $e) {\n return redirect('/supplier')->with('pesan_gagal', $e->getMessage());\n }\n }", "title": "" }, { "docid": "c70b89412cfa3204082621e98738cb27", "score": "0.5562218", "text": "public function delete()\n\t{\n\t\t$resource_contents = $this->client->query('DELETE', $this->url);\n\t\t$this->initialize_from_resource_contents($resource_contents);\n\t}", "title": "" }, { "docid": "21b9068d98d337440a28121b19231757", "score": "0.5560739", "text": "public function destroy($id)\n {\n $pic = Pic::find($id);\n $path = public_path('/storage/').$pic['name'];\n if(file_exists($path)){\n unlink($path);\n $pic->delete();\n return redirect('pics')->with('success', 'Picture has been successfully deleted');\n }\n else{\n return redirect('pics')->with('failure', 'Picture was not deleted');\n }\n }", "title": "" }, { "docid": "16a6c0a8baa71c1d7233b60b2b1c76f7", "score": "0.5559715", "text": "public function destroy($id)\n {\n $product = Product::find($id);\n $product->delete();\n// Storage::disk('uploads')->delete($product->image_path);\n\n// unlink(public_path('uploads/' . $product->image_path)); //Native php\n return redirect()->route('products.index')->with([\n 'success' => 'product ' . $product->name . ' deleted to trash Successfully'\n ]);\n }", "title": "" }, { "docid": "944f0f53f717617ff54aba9fd9e47542", "score": "0.5556541", "text": "public function destroy($id){\n\n $image = Slider::find($id);\n\n if(unlink(public_path('/images/slider/'.$image->image))){\n $image->delete();\n return back()->with('success', 'Slider Image Deleted');\n }\n }", "title": "" }, { "docid": "120960a561ec9e0438e25d9279c7d899", "score": "0.55498356", "text": "public function destroy($id)\n {\n $deleteSingle = Menu::find($id);\n \nunlink(public_path() . '/menu/' . $deleteSingle->image);\n \n $deleteSingle->delete();\n return redirect('/admin/menu');\n }", "title": "" }, { "docid": "640b23a5dcf07677851e9c4a1dcdabf1", "score": "0.55474347", "text": "public function remove($assetFile);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "2f14aec89d53e310ca8947cee2091f8e", "score": "0.5540011", "text": "public function deleteFromResourceIndices(&$resource) {\n\n if ($this->connector != null) {\n $params = [\n 'index' => \\snac\\Config::$ELASTIC_SEARCH_RESOURCE_INDEX,\n 'id' => $resource->getID()\n ];\n\n $this->logger->addDebug(\"Updated elastic search to remove resource\");\n }\n\n }", "title": "" }, { "docid": "b5b688091a31c75ff8615389051972dc", "score": "0.5539336", "text": "public function delete()\n {\n $this->removeImage();\n parent::delete();\n }", "title": "" }, { "docid": "d0252df7b40416387e377fa297935229", "score": "0.5537589", "text": "public function persistRemove()\n {\n $old = $this->determineName(false);\n if (!isset($old)) return;\n \n $old = new File($this->getPath() . '/' .$old);\n if (file_exists($old)) {\n if ((string)$old != (string)$this->replacement) unlink($old);\n foreach (glob($old->getPath() . '/*.' . $old->getBasename()) as $file) unlink($file);\n }\n }", "title": "" }, { "docid": "d74232efdaa63e7c24cc94cdb786b212", "score": "0.55310154", "text": "public function removeImage(){\r\n\t\t$id = Input::get('id');\r\n\t\t$image = ProductImage::where('id', $id)->pluck('image');\r\n @unlink(PRODUCTS_IMAGE_ROOT_PATH . $image);\r\n\t\tDB::table('product_images')->where('id', '=', $id)->delete();\r\n\t\tdie;\r\n\t}", "title": "" }, { "docid": "05455e5116f6ce487eddc1f096db4ea6", "score": "0.55273694", "text": "public function delete() : Resource {\n try{\n \n $this->method = 'DELETE';\n return $this;\n \n } catch (\\Throwable $t){\n new ErrorTracer($t);\n }\n }", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" } ]
0c2e13287b22f8172d48634754664f95
Check if this token has an associated nonce check.
[ { "docid": "e0d9b275abbd516972b26f2d9a3f8097", "score": "0.7215561", "text": "protected function has_nonce_check( $stackPtr ) {\n\n\t\t/**\n\t\t * A cache of the scope that we last checked for nonce verification in.\n\t\t *\n\t\t * @var array {\n\t\t * @var string $file The name of the file.\n\t\t * @var int $start The index of the token where the scope started.\n\t\t * @var int $end The index of the token where the scope ended.\n\t\t * @var bool|int $nonce_check The index of the token where an nonce check\n\t\t * was found, or false if none was found.\n\t\t * }\n\t\t */\n\t\tstatic $last;\n\n\t\t$start = 0;\n\t\t$end = $stackPtr;\n\n\t\t$tokens = $this->phpcsFile->getTokens();\n\n\t\t// If we're in a function, only look inside of it.\n\t\t$f = $this->phpcsFile->getCondition( $stackPtr, T_FUNCTION );\n\t\tif ( $f ) {\n\t\t\t$start = $tokens[ $f ]['scope_opener'];\n\t\t}\n\n\t\t$in_isset = $this->is_in_isset_or_empty( $stackPtr );\n\n\t\t// We allow for isset( $_POST['var'] ) checks to come before the nonce check.\n\t\t// If this is inside an isset(), check after it as well, all the way to the\n\t\t// end of the scope.\n\t\tif ( $in_isset ) {\n\t\t\t$end = ( 0 === $start ) ? count( $tokens ) : $tokens[ $start ]['scope_closer'];\n\t\t}\n\n\t\t// Check if we've looked here before.\n\t\t$filename = $this->phpcsFile->getFilename();\n\n\t\tif (\n\t\t\t$filename === $last['file']\n\t\t\t&& $start === $last['start']\n\t\t) {\n\n\t\t\tif ( false !== $last['nonce_check'] ) {\n\t\t\t\t// If we have already found an nonce check in this scope, we just\n\t\t\t\t// need to check whether it comes before this token. It is OK if the\n\t\t\t\t// check is after the token though, if this was only a isset() check.\n\t\t\t\treturn ( $in_isset || $last['nonce_check'] < $stackPtr );\n\t\t\t} elseif ( $end <= $last['end'] ) {\n\t\t\t\t// If not, we can still go ahead and return false if we've already\n\t\t\t\t// checked to the end of the search area.\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// We haven't checked this far yet, but we can still save work by\n\t\t\t// skipping over the part we've already checked.\n\t\t\t$start = $last['end'];\n\t\t} else {\n\t\t\t$last = array(\n\t\t\t\t'file' => $filename,\n\t\t\t\t'start' => $start,\n\t\t\t\t'end' => $end,\n\t\t\t);\n\t\t}\n\n\t\t// Loop through the tokens looking for nonce verification functions.\n\t\tfor ( $i = $start; $i < $end; $i++ ) {\n\n\t\t\t// If this isn't a function name, skip it.\n\t\t\tif ( T_STRING !== $tokens[ $i ]['code'] ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If this is one of the nonce verification functions, we can bail out.\n\t\t\tif ( isset( self::$nonceVerificationFunctions[ $tokens[ $i ]['content'] ] ) ) {\n\t\t\t\t$last['nonce_check'] = $i;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\t// We're still here, so no luck.\n\t\t$last['nonce_check'] = false;\n\n\t\treturn false;\n\t}", "title": "" } ]
[ { "docid": "726bd49e38b7163fbe6e54034ac2c630", "score": "0.76271296", "text": "private function verifyNonce() {\n\n return (\\JMetaBox\\Input::postHas($this->nonce) &&\n wp_verify_nonce(\\JMetaBox\\Input::post($this->nonce), 'jmeta_save'));\n\n }", "title": "" }, { "docid": "00b75c06ce4da01df0004b932f386651", "score": "0.7472873", "text": "abstract public function nonce_check();", "title": "" }, { "docid": "c1bce1db7ce0dcb0740518102966f577", "score": "0.70807314", "text": "public function verify_nonce() {\n\t\tif ( ! empty( $_POST[ self::$nonce_field_name ] ) ) {\n\t\t\t$verify_nonce_status = wp_verify_nonce(\n\t\t\t\tsanitize_key( $_POST[ self::$nonce_field_name ] ),\n\t\t\t\tself::$nonce_name\n\t\t\t);\n\t\t} else {\n\t\t\t$verify_nonce_status = false;\n\t\t}\n\n\t\t// Clear the verified nonce from $_POST so that it doesn't get passed on.\n\t\tunset( $_POST[ self::$nonce_field_name ] );\n\n\t\treturn (bool) $verify_nonce_status;\n\t}", "title": "" }, { "docid": "3d4585c33f367e0c21599400753a9ae3", "score": "0.678278", "text": "function verify_nonce() {\n\treturn ! empty( $_REQUEST['_wpnonce'] )\n\t\t? wp_verify_nonce( $_REQUEST['_wpnonce'], 'sc-upgrade-nonce' )\n\t\t: false;\n}", "title": "" }, { "docid": "6b204052f543409bc394ba26e172c010", "score": "0.66912276", "text": "public function hasToken(){\n return ( $this->token and $this->token->isValid() );\n }", "title": "" }, { "docid": "e7e8ea87642fc43a8f34088b97047a73", "score": "0.6665863", "text": "public function verify_nonce(WP_REST_Request $request)\n {\n $nonce = $request->get_header('x-wp-nonce');\n $nonce_verification = wp_verify_nonce($nonce, 'wp_rest');\n\n if ($nonce_verification === 1 || $nonce_verification === 2) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "17d6ccaee3a832cd9733cc068cb14118", "score": "0.6444396", "text": "private function validate_nonce() {\n\n\t\t\tif ( $this->args['nonce'] ) {\n\n\t\t\t\tswitch ( $this->args['method'] ) {\n\t\t\t\t\tcase 'POST':\n\t\t\t\t\t\t$nomad_form_nonce = $_POST['nomad_form_nonce'];\n\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'GET':\n\t\t\t\t\t\t$nomad_form_nonce = $_GET['nomad_form_nonce'];\n\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$nomad_form_nonce = $_REQUEST['nomad_form_nonce'];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif ( ! wp_verify_nonce( $nomad_form_nonce, sprintf( 'nomad_form_%s', $this->form_id() ) ) ) {\n\t\t\t\t\t$this->is_valid = false;\n\t\t\t\t\t$this->messages = array( $this->args['nonce_message'] );\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\treturn true;\n\n\t\t}", "title": "" }, { "docid": "e08e71186ec5c688747275133bbd6ed5", "score": "0.6370872", "text": "public function check($token)\n {\n return true;\n }", "title": "" }, { "docid": "8a0144b421c7b5064672c5c5095149bc", "score": "0.6346173", "text": "public function checkServerNonce ( $consumer_key, $token, $timestamp, $nonce ) { }", "title": "" }, { "docid": "7b14dd4514bfbbe84907602fff1c0fa2", "score": "0.63177025", "text": "public function getIsValid(): bool\n {\n $token = $this->getToken();\n\n return !empty($token) && !$this->getIsExpired();\n }", "title": "" }, { "docid": "9e9dd0db7644bfcc042f6be9daa21732", "score": "0.62956935", "text": "public function verified()\n {\n return $this->verifyToken === null;\n }", "title": "" }, { "docid": "21f52e488cdbf53ac547b8729bed2f0e", "score": "0.62687624", "text": "public function validate ( $token ) { return $this->server->token2uid( $token ) > 0; }", "title": "" }, { "docid": "fea8173baf360e32d5b03afa9e721eb3", "score": "0.6264053", "text": "function Check() {\n\t\t// Check if the token has been sent.\n\t\tif(isset($_REQUEST['spack_token'])) {\n\t\t\t// Check if the token exists\n\t\t\tif(isset($_SESSION[\"spackt_\".$_REQUEST['spack_token']])) {\n\t\t\t\t// Check if the token isn't empty\n\t\t\t\tif(isset($_SESSION[\"spackt_\".$_REQUEST['spack_token']])) {\n\t\t\t\t\t$age = time()-$_SESSION[\"spackt_\".$_REQUEST['spack_token']];\n\t\t\t\t\t// Check if the token did not timeout\n\t\t\t\t\tif($age > $this->timeout*60) $this->error = 4;\n\t\t\t\t}\n\t\t\t\telse $this->error = 3;\n\t\t\t}\n\t\t\telse $this->error = 2;\n\t\t}\n\t\telse $this->error = 1;\n\t\t// Anyway, destroys the old token.\n\t\t$this->tokenDelAll();\n\t\tif($this->error==0) return true;\n\t\telse return false;\n\t}", "title": "" }, { "docid": "41a80183e9e6a87a7762c155c7265817", "score": "0.62323684", "text": "private function validateTokens()\n {\n $whoami = $this->getJson('/ping/whoami');\n if (isset($whoami['authenticated']) && $whoami['authenticated'])\n {\n syslog(LOG_DEBUG, \"Monzo: Token is still valid\");\n return true;\n }\n else\n {\n return false;\n }\n }", "title": "" }, { "docid": "75a5e4d8e511bcad1d7dc23a5616e68d", "score": "0.62237144", "text": "public function hasToken ()\n {\n return $this->active && $this->inner->hasToken();\n }", "title": "" }, { "docid": "befb6c1b9f0be2ba57e233c8c1f962aa", "score": "0.6219142", "text": "protected function _checkToken()\n {\n return $this->_callWebService('IsClient');\n }", "title": "" }, { "docid": "011cc757b6e0088737b725713c5b7b4e", "score": "0.6214895", "text": "function esig_verify_nonce($value, $nonce) {\n if (function_exists('wc')) {\n global $woocommerce;\n if (!is_null(WC()->session) && sizeof($woocommerce->cart->cart_contents) > 0) {\n return true;\n }\n }\n if (wp_verify_nonce($value, 'esig-nonce-all' . $nonce)) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "654ae24ef87c91ef652f06c4e42aeb4c", "score": "0.6209233", "text": "public function is_valid($token) {\n\t\treturn ! empty($token) &&\n\t\t\t ! empty($_COOKIE[self::$csrf_cookie]) && \n\t\t\t hash_equals($_COOKIE[self::$csrf_cookie], $token);\n\t}", "title": "" }, { "docid": "06f11075664cb12150893fd9eaf55e98", "score": "0.6157306", "text": "public static function isTokenValid ()\n {\n return $_POST[\"__token\"] === Session::get(\"__token\");\n }", "title": "" }, { "docid": "5582f91fb34a5f52b8dd86aeb8a3f95b", "score": "0.6134968", "text": "function wp_verify_nonce($nonce, $action = -1)\n {\n }", "title": "" }, { "docid": "993013854d3ef73684155b9bbbe2209d", "score": "0.6111898", "text": "public function hasToken(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "993013854d3ef73684155b9bbbe2209d", "score": "0.6111898", "text": "public function hasToken(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "2ac4a4557c0b8e291cd477f79a5a99e4", "score": "0.60875463", "text": "public function validate()\n {\n // generate Token String\n $idTokenString = $this->getTokenString($this->_key);\n return ($idTokenString == $this->_tokenString);\n }", "title": "" }, { "docid": "a2edb03fba38d8f6a6f5627129f96d0b", "score": "0.60761625", "text": "public function isTokenActive()\n {\n return !empty($this->get('auth_token'));\n }", "title": "" }, { "docid": "18c8793bc077b4c4c49bf242e4555816", "score": "0.605338", "text": "public function valid_token(){\n $this->get(google_authsub::VERIFY_TOKEN_URL);\n\n if($this->info['http_code'] === 200){\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "4620ee2f5c6a147385db06c1c2e5a42e", "score": "0.60264826", "text": "public static function check()\n {\n $authKey = @Request::headers('Authorization');\n if (!$authKey) return false;\n\n preg_match('/^Token (?<key>[a-fA-F0-9]{32})$/i', $authKey, $keys);\n if (!$keys || !$keys['key']) return false;\n \n // check key against database.\n return false;\n }", "title": "" }, { "docid": "02333e6c8f4dff5c779c76be647af2da", "score": "0.60194904", "text": "public function checkToken( )\n {\n\n $this->getTokenPost();\n if ( $this->token_post && $this->is_active() ) {\n if (empty($this->project_id) || $this->project_id != $this->token_post['meta_data']['pr-projekt'][0]) {\n $this->set_result_error('notfound');\n return false;\n }\n return $this->result;\n } else {\n return false;\n }\n\n }", "title": "" }, { "docid": "e49251326cde2051d1376e727e682cae", "score": "0.6003611", "text": "private function tokenHasExpired() {\n // If expiration date is not available, return true\n if (!get_transient('imbaf_affilinet_expiration_date')) {\n return true;\n }\n\n // Check if the token has already expired\n return date(DATE_ATOM) > get_transient('imbaf_affilinet_expiration_date');\n }", "title": "" }, { "docid": "4ca35b2807cc8f4cb6c0c3ae2827e26c", "score": "0.5985826", "text": "public function checkTicket(): bool {\r\n\t\t//read apache kerberos ticket cache\r\n\t\tif (!$this->ticketName) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$krb5 = new \\KRB5CCache();\r\n\t\t$krb5->open($this->ticketName);\r\n\t\t/** @psalm-suppress MixedArgument */\r\n\t\treturn count($krb5->getEntries()) > 0;\r\n\t}", "title": "" }, { "docid": "88cfa055d62fb4082c272bbf70034e4a", "score": "0.59854686", "text": "public function hasVerification()\r\n {\r\n // No need for CVN in creating/updating token\r\n return Mage::getModel('ewayrapid/method_notsaved')->hasVerification();\r\n }", "title": "" }, { "docid": "938b1a0a46e99593ab9d1c76688f8a97", "score": "0.5959359", "text": "public function hasTicketCrc()\n {\n return $this->ticket_crc !== null;\n }", "title": "" }, { "docid": "845a6d8e1ef7b57295a3f6f6603da93c", "score": "0.5947234", "text": "private function check_nonce($consumer, $token, $nonce, $timestamp) {\n if( ! $nonce )\n throw new OAuthException(\n 'Missing nonce parameter. The parameter is required'\n );\n\n // verify that the nonce is uniqueish\n $found = $this->data_store->lookup_nonce(\n $consumer,\n $token,\n $nonce,\n $timestamp\n );\n if ($found) {\n throw new OAuthException(\"Nonce already used: $nonce\");\n }\n }", "title": "" }, { "docid": "2a336d13bf00b022af7bf8cdc6d00852", "score": "0.5946495", "text": "public function check()\n {\n return ! $this->guest();\n }", "title": "" }, { "docid": "a4faaea5ebbf9abdc1cb71aa2970476f", "score": "0.5940477", "text": "function test_verify_field_nonce() {\n $wpNonce = new \\Fazleelahhee\\Inpsyde\\WPNonce();\n $field = $wpNonce->getField('wp_nonce_test', 'wp_nonce_test', false, false);\n $xmlField = simplexml_load_string($field);\n $nonce = (string) $xmlField->attributes()['value'];\n $this->assertContains($wpNonce->verify($nonce, 'wp_nonce_test'), [1,2]);\n }", "title": "" }, { "docid": "5d137612d440cd073783bb869e75c43a", "score": "0.5935392", "text": "public function check()\n {\n return null !== $this->user();\n }", "title": "" }, { "docid": "42eda28f02adaf3933c1620b667864aa", "score": "0.59330934", "text": "public function tokenValid($token)\n {\n return Hash::check($token, $this->token);\n }", "title": "" }, { "docid": "b04fd8d9ea602d9c0df06a19d5ec3b89", "score": "0.5927897", "text": "public function remoteCheckRequired()\n {\n if ($this->uid && $this->token && $this->recheck) {\n if($this->recheck > (new DateTime('NOW'))) {\n return false;\n }\n }\n \n return true;\n }", "title": "" }, { "docid": "64c30e08c26af05a98b2cc91718e7ca4", "score": "0.5923585", "text": "function checkToken() {\n\t\t\t// Split the token up again to make sure the first 40 chars are the same (TOKEN)\n\t\t\t$splitToken = substr($this->tokenFromCookie, 0, 40);\n\t\t\t\n\t\t\t// Split the token up again to make sure the second 40 chars are the same (ZIPPED)\n\t\t\t$splitZipped = substr($this->tokenFromCookie, 40, 40);\n\t\t\t\n\t\t\t// Unzip the second 40 chars\n\t\t\t$result = $this->unzip($splitZipped);\n\n\t\t\t// Check if the sha of the zipped portion matches the token.\n\t\t\t// If so, no one has messed with the token\n\t\t\tif(strcmp($splitToken, sha1($splitZipped) == 0)) {\n\t\t\t\t// Grab all data from unzip\n\t\t\t\t$ip = base_convert($result[0], IP_ADDRESS, 10);\n\t\t\t\t$time = base_convert($result[1], REQUEST_TIME, 10);\n\t\t\t\t$user = $result[2];\n\t\t\t\t$random = $result[3];\n\t\t\t\t$expires = substr($this->tokenFromCookie, 80, strlen($this->tokenFromCookie));\n\n\t\t\t\t// Check if token is expired after one hour\n\t\t\t\tif(time() - $expires <= 3600) {\n\t\t\t\t\tif(strpos($_SERVER['REMOTE_ADDR'], \":\") !== false) {\n\t\t\t\t\t\t$userIpAddImp = implode(explode(\":\", $_SERVER['REMOTE_ADDR']));\n\t\t\t\t\t}\n\t\t\t\t\telseif(strpos($_SERVER['REMOTE_ADDR'], \".\") !== false) {\n\t\t\t\t\t\t$userIpAddImp = implode(explode(\".\", $_SERVER['REMOTE_ADDR']));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Check if userIp is the same as when s/he originally logged in\n\t\t\t\t\t$validity = (strcmp($ip, $userIpAddImp) == 0) ? true : false;\t\t\t\t\t\n\t\t\t\t} \n\t\t\t\telse {\n\t\t\t\t\t$validity = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$validity = false;\n\t\t\t}\n\t\t\t\n\t\t\treturn $validity;\n\t\t}", "title": "" }, { "docid": "5cda0c830cf6aa71949691898e098c5e", "score": "0.59221673", "text": "public function isTokenValid() {\n if (!isset($_SESSION['token']) || $this->_token != $_SESSION['token'])\n \n\t\t\t$this->_errors[] = 'invalid submission';\n\n // return true or false \n return count($this->_errors) ? 0 : 1;\n }", "title": "" }, { "docid": "c61075a49880735f3a0bb849eb55b644", "score": "0.5919927", "text": "public function check()\r\n {\r\n return $this->jwt->isHealthy();\r\n }", "title": "" }, { "docid": "6ca4b203d6835c09628997310d283ec6", "score": "0.59124017", "text": "private static function check_nonce_and_referer( $nonce ) {\n\n\t\tif ( self::check_referer() ) {\n\t\t\treturn wp_verify_nonce( $nonce, self::$nonce_action );\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "d7ee02e8d66aec28137e5a8cabee5fb0", "score": "0.5909695", "text": "function isValid() {\n\t\treturn( @BitBase::verifyId( $this->mTicketId ) && @BitBase::verifyId( $this->mContentId ));\n\t}", "title": "" }, { "docid": "ad27c06758f91e5cab3161b8300c449b", "score": "0.5908257", "text": "function lookup_nonce($consumer, $token, $value, $timestamp) {\r\n\r\n $nonce = new LTI_Consumer_Nonce($this->tool_provider->consumer, $value);\r\n $ok = !$nonce->load();\r\n if ($ok) {\r\n $ok = $nonce->save();\r\n }\r\n if (!$ok) {\r\n $this->tool_provider->reason = 'Invalid nonce.';\r\n }\r\n\r\n return !$ok;\r\n\r\n }", "title": "" }, { "docid": "d7f9aab879d7533f4d37efeea7eeb740", "score": "0.59036136", "text": "protected function _checkToken(KCommandContext $context)\n {\n //Check the token\n if($context->caller->isDispatched())\n { \n $method = KRequest::method();\n \n //Only check the token for PUT, DELETE and POST requests (AND if the view is not 'ipn')\n if(($method != KHttpRequest::GET) && ($method != KHttpRequest::OPTIONS) && (KRequest::get('get.view', 'string') != 'ipn')) \n { \n if( KRequest::token() !== JUtility::getToken()) { \n return false;\n }\n }\n }\n \n return true;\n }", "title": "" }, { "docid": "e6cffd6db12a1448e516f9e58320ce3d", "score": "0.58901036", "text": "public function check()\n {\n return isset($_SESSION['uuid']);\n }", "title": "" }, { "docid": "a9b4e85c461b5fc48a7a658d3d1cbdaa", "score": "0.587858", "text": "public function isTokenValid($token)\n {\n $tokenData = $this->decryptToken($token);\n\n if (is_array($tokenData) && isset($tokenData['user_id']) && isset($tokenData['generated']) && isset($tokenData['validForSeconds'])) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "213cd093aa9bbbf69a2ddd0886cfd418", "score": "0.58776575", "text": "public function hasTicket()\n {\n return count($this->get(self::TICKET)) !== 0;\n }", "title": "" }, { "docid": "d693a0ee32e0bf7aa54759d39ca74cf7", "score": "0.5850445", "text": "public static function validToken()\r\n {\r\n $header = apache_request_headers();\r\n if(!isset($_SESSION['CSRF_TOKEN']) || !isset($header['CSRF_TOKEN']) || $header['CSRF_TOKEN'] != $_SESSION['CSRF_TOKEN']){\r\n return false;\r\n }\r\n\r\n return true;\r\n }", "title": "" }, { "docid": "bcf42b1b89a3562bc8b9c9c358635a73", "score": "0.58454263", "text": "function checkNonce() {\n if ($_REQUEST['openid_nonce'] != $_SESSION['openid']['nonce']) {\n error('nonce', 'Nonce doesn\\'t match - possible replay attack');\n } else {\n $_SESSION['openid']['nonce'] = uniqid(microtime(true), true);\n }\n }", "title": "" }, { "docid": "3afabc0fc5095c4cc3007499b6a30195", "score": "0.58400315", "text": "public function valid()\n {\n return ! empty($this->accessToken);\n }", "title": "" }, { "docid": "40766297c8c217e7c10c0c2e0ce31296", "score": "0.5838291", "text": "public function check()\n\t{\n\t\treturn ! is_null($this->user());\n\t}", "title": "" }, { "docid": "0c60776c3660847abe4fe6c7cffe9977", "score": "0.5835132", "text": "public function check()\n {\n return !is_null($this->user);\n }", "title": "" }, { "docid": "a2937c1a9b62b0013d924ff5937debe4", "score": "0.58296335", "text": "public function check(): bool\n {\n return ! is_null($this->user());\n }", "title": "" }, { "docid": "d94d1cb131c735a919d13497e1e95852", "score": "0.58190334", "text": "public function check()\n {\n $user = $this->user();\n return !empty($user);\n }", "title": "" }, { "docid": "37d091bd299a45a8a1dd3dc62b49563d", "score": "0.5807111", "text": "public function tokenverify()\n {\n if ($this->jwt) {\n return $this->jwt->verify($this->signer, APP_KEY);\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "6a574d85920c5d6f62b8c3fcef563f43", "score": "0.57997936", "text": "public function checkRequestTokenFlag() {\n if (array_key_exists(\"CHECK_REQUEST_TOKEN\", $this->_config) && $this->_config[\"CHECK_REQUEST_TOKEN\"] === '1') {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "0dd3d8e7d6a59bdbb59797c975c1834b", "score": "0.57975143", "text": "public function check()\t{\n\t\treturn ! is_null($this->user());\n\t}", "title": "" }, { "docid": "2af87ae4a6b73876814d4706fc8e1369", "score": "0.5781544", "text": "public function check() {\n return ! is_null($this -> user);\n }", "title": "" }, { "docid": "0f140c1cb4843a226dd23a042a3370ce", "score": "0.5780513", "text": "public function isValid()\n {\n return $this->deserialize() && !$this->isExpired() && $this->isSecure();\n }", "title": "" }, { "docid": "055334ff35840deef1c8596fc624618e", "score": "0.57722956", "text": "protected function checkCsrfToken()\n {\n return $this->security->checkTokenOk($this);\n }", "title": "" }, { "docid": "2e92d91ab8539109f272718c56e98dd3", "score": "0.57408774", "text": "protected function checkToken(): bool {\r\n //instantiate MultiOtp Wrapper\r\n $multiOtpWrapper = new MultiotpWrapper();\r\n \r\n //get the username\r\n $currentUserName = $this->getCurrentUsername();\r\n \r\n //assert that username is set\r\n if (!(\\strlen((string) $currentUserName))) {\r\n throw new UserCredentialException('Cannot validate a TOTP token when username is not set!', 2106);\r\n }\r\n \r\n //assert that the token exists\r\n $tokenExists = $multiOtpWrapper->CheckTokenExists($currentUserName);\r\n \r\n if (!($tokenExists)) {\r\n throw new UserCredentialException('The TOTP token for the current user does not exist', 2107);\r\n }\r\n\r\n //username mapped to their token name\r\n $multiOtpWrapper->setToken($currentUserName);\r\n \r\n //validate the Token\r\n $oneTimeToken = $this->getOneTimeToken();\r\n $tokenCheckResult = $multiOtpWrapper->CheckToken($oneTimeToken);\r\n \r\n //The results are reversed\r\n //TODO: Add intepretation of MultiOtp return results here to enable exception handling\r\n if ($tokenCheckResult == 0) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "3df8370c2da9f8c0a4426d263afba3cf", "score": "0.57300913", "text": "public static function tick() {\n if (function_exists(self::WP_NONCE_TICK_FUNCTION_NAME) === FALSE) {\n $result = FALSE;\n } else {\n $result = call_user_func(self::WP_NONCE_TICK_FUNCTION_NAME);\n }\n\n return $result;\n }", "title": "" }, { "docid": "1fca54689d01eaa6f8dd5750a6e41eaf", "score": "0.5728698", "text": "public function isAuthorized(Token $token)\n {\n try {\n if (!$token->verify($this->signer, $this->key)) {\n return false;\n }\n\n if ($token->isExpired()) {\n return false;\n }\n\n return true;\n } catch (\\Exception $e) {\n return false;\n }\n }", "title": "" }, { "docid": "d41da3f7a216fe54deb4dcf22c280b4c", "score": "0.57282364", "text": "public function checkAccessibleTokenService()\n\t{\n\t\tif(!Loader::includeModule('socialservices'))\n\t\t{\n\t\t\t$this->errorCollection->add(array(new Error(Loc::getMessage('DISK_ONEDRIVE_HANDLER_ERROR_NOT_INSTALLED_SOCSERV'), self::ERROR_NOT_INSTALLED_SOCSERV)));\n\t\t\treturn false;\n\t\t}\n\t\t$authManager = new \\CSocServAuthManager();\n\t\t$socNetServices = $authManager->getActiveAuthServices(array());\n\t\t$oauthService = $this->getOAuthService();\n\n\t\treturn !empty($socNetServices[$oauthService::ID]);\n\t}", "title": "" }, { "docid": "6954ab804fdbcd795f724f2c4150b145", "score": "0.57277673", "text": "private function checkOAuthTokenPresence()\n {\n $client = $this->getOAuthClient();\n \n if (!$client->getOAuthToken() || !$client->getOAuthTokenSecret()) {\n throw new FatException('One or more OAuth tokens were not found.');\n }\n \n return true;\n }", "title": "" }, { "docid": "bcec5b19b1bf88075c1ce991ce28cbe4", "score": "0.57206833", "text": "public function isValid() {\n if (isset($this->post['data']['butterfly_token']) && !empty($this->post['data']['butterfly_token']))\n return ($this->verifyFormToken() && empty($this->errors)) ? TRUE : FALSE;\n else\n $this->setError('Error token', 'breach of security token');\n }", "title": "" }, { "docid": "62ff7b6b6d18e917a3a665f45d4e99b7", "score": "0.5704395", "text": "public static function isValidNonce(string $nonce) : bool {\n\t\treturn strlen($nonce) <= 50 && preg_match('/^[a-zA-Z0-9]+$/', $nonce) === 1;\n\t}", "title": "" }, { "docid": "2354c37bb8f366d3d64b734082fe29f3", "score": "0.56999904", "text": "function signup_nonce_check($result)\n {\n }", "title": "" }, { "docid": "95687751f5d47a1a72829061399c22d5", "score": "0.56950146", "text": "public function hasAuthorized()\n {\n $signedRequest = $this->getClient()->getSignedRequest();\n return (!empty($signedRequest['oauth_token']));\n }", "title": "" }, { "docid": "37779f8178002fb778cca0751cc614ee", "score": "0.56883955", "text": "public function verify($token):bool;", "title": "" }, { "docid": "a14bdf4bca6356dcdb7d7c8459113c28", "score": "0.5684409", "text": "public function isValid($macId, $nonce);", "title": "" }, { "docid": "d6ac2ec9261dd6ba3d78f4bd4deed348", "score": "0.5675195", "text": "public function checkAccess()\n {\n // Check token in headers\n if (isset($_SERVER['HTTP_TOKEN'])) {\n return $_SERVER['HTTP_TOKEN'] === Configuration::get('MARMIADS_TOKEN');\n }\n\n // Check token in GET or POST\n return Tools::getValue('token') === Configuration::get('MARMIADS_TOKEN');\n }", "title": "" }, { "docid": "ddd66a113e2fa3aa0615e9f5b3abbb38", "score": "0.56726974", "text": "public function hasCRC32()\n {\n return $this->CRC32 !== null;\n }", "title": "" }, { "docid": "1b9dbd02fb42dde8760919a495e9b747", "score": "0.56676716", "text": "public function isValid()\n {\n return !$this->isUsed() && $this->isExpired();\n }", "title": "" }, { "docid": "5fcee4cf4dc96fad8ffaaa199e49bdf2", "score": "0.5665822", "text": "public static function nonce()\n {\n \treturn microtime(true);\n }", "title": "" }, { "docid": "512fdd8831c12a55b5de18ad589cca88", "score": "0.566452", "text": "protected function _isNewToken()\n {\n $info = $this->_quote->getPayment();\n Mage::helper('ewayrapid')->unserializeInfoInstace($info);\n if ($token = Mage::getSingleton('core/session')->getData('newToken')) {\n Mage::getSingleton('core/session')->unsetData('newToken');\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "ce4f6887b6c823f9c5e3ef8a0c82b871", "score": "0.5651439", "text": "public function getNonce(): int;", "title": "" }, { "docid": "6d351f4e1834e9d1e09c9c83911984f7", "score": "0.56446594", "text": "public function check(): bool\n {\n return $this->hasUserInSession();\n }", "title": "" }, { "docid": "a1cdb81283ea79b47db75e2ce4508344", "score": "0.5630386", "text": "protected function isAllowed()\n {\n return $this->customerRestriction->isAllowed(static::NEGOTIABLE_QUOTE_RESOURCE);\n }", "title": "" }, { "docid": "1aefcfd1ca23ae32a3fa302048001311", "score": "0.5620932", "text": "public function hasValidTokens(): bool\n {\n $validator = Validator::make($this->tokens, $this->getRules());\n\n return $validator->passes();\n }", "title": "" }, { "docid": "1339103bcf5cef093250c2ad2cb6d0f5", "score": "0.5606726", "text": "function Check()\n\t\t{\n\t\t\t$token = $this->token;\n\t\t\tif(empty($token))\n\t\t\t{\n\t\t\t\tthrow new Exception(\"Invalid token supplied.\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t$decode = JWT::decode(\n\t\t\t\t\t$token,\n\t\t\t\t\tself::$secret_key,\n\t\t\t\t\tself::$encrypt\n\t\t\t\t);\n\t\t\t\t\n\t\t\t} catch (\\Exception $e) {\n\t\t\t\t// throw new Exception(\"Invalid user logged in.\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\tif(!$decode)\n\t\t\t{\n\t\t\t\tthrow new Exception(\"Invalid user logged in.\");\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4447d65e2dc1c1115e7fe4d7433ddaa9", "score": "0.55990624", "text": "public static function checkFormToken()\n {\n if (!empty($_POST)) {\n $antiCSRF = new AntiCSRF();\n if ($antiCSRF->validateRequest()) {\n return true;\n }\n }\n\n Session::flash('error', 'De sessie is verlopen.');\n return false;\n }", "title": "" }, { "docid": "347496f59d304c622fd29bd3beff2ad0", "score": "0.5598378", "text": "public function isValidToken( $token )\n {\n $count = $this->repo->getPasswordRemindersCount( $token );\n\n return ($count != 0);\n }", "title": "" }, { "docid": "c1cab4ab50a46129de468fb492ccc2a4", "score": "0.5595572", "text": "private function doesNeedToken ()\n {\n if ($this->object === 'login')\n {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "ff3869460b28cf9c2499544837d1524d", "score": "0.5593767", "text": "public function is_valid() {\n\t\treturn ! $this->is_expired();\n\t}", "title": "" }, { "docid": "80578792ad9871f3d0ae5053fc13fa93", "score": "0.5592878", "text": "public function valid()\n {\n $body = json_decode($this->response['body'], true);\n\n return (! isset($body['errorCodes']))\n && Hash::check($this->response['headers']['signature'], $this->response['body']);\n }", "title": "" }, { "docid": "1d57596348f3adf3fe6b838b67f4f335", "score": "0.55921865", "text": "public function check(){\n\t\tif($this->userid !== NULL and $this->sessionid !== NULL){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "4b9117a95ad47ba82158a75938f5abcf", "score": "0.55900127", "text": "abstract public function verifyToken();", "title": "" }, { "docid": "b325675b0b219a9c3ada9ee13bc27717", "score": "0.5582226", "text": "public function exists($token)\n\t{\n\t\t$token = (array) $this->getTable()->where('workspace_id', $this->workspace->id)->where('token', $token)->first();\n\n\t\treturn $token && ! $this->tokenExpired($token);\n\t}", "title": "" }, { "docid": "114443e8cb1349e59e77d9e850e26dee", "score": "0.5575759", "text": "public function check($request)\n {\n $this->request = (object) $request;\n $count = DB::table('clients')->where(['id' => $this->request->id])->where(['data->client_data->token_passreset' => $this->request->token])->count();\n\n if($count == 0){\n return false;\n } else {\n return true;\n }\n }", "title": "" }, { "docid": "e3804f51d9d20ca303f5653bd87c76bb", "score": "0.5562908", "text": "public function testVerify() {\n $customToken = 'a_custom_token';\n $wpNonceFactory = new WpNonceFactory();\n MonkeyFunctions\\expect('wp_create_nonce')->once();\n $wpNonce = $wpNonceFactory->create();\n $result = $wpNonce->verify($customToken);\n $this->assertFalse($result);\n MonkeyFunctions\\expect('wp_verify_nonce')\n ->once()\n ->andReturn(1);\n $result = $wpNonce->verify($customToken);\n $this->assertEquals(1, $result);\n MonkeyFunctions\\expect('wp_verify_nonce')\n ->once()\n ->andReturn(2);\n $result = $wpNonce->verify($customToken);\n $this->assertEquals(2, $result);\n }", "title": "" }, { "docid": "18bb2025b60fb3315546340d080fcf3b", "score": "0.55624366", "text": "public function hasTicketSequence()\n {\n return $this->ticket_sequence !== null;\n }", "title": "" }, { "docid": "ee6fb1149b43f2e7dccde9b1421b034c", "score": "0.555976", "text": "function tokenExists($token = ''){\n\t\tif(!preg_match('/^[0-9a-f]{40}$/i', $token))\n\t\t\treturn false;\n\t\t$conditions = array($this->modelName . '.' . $this->emailToken => $token);\n\t\t$query = array('conditions' => $conditions, 'recursive' => -1, 'callbacks' => false);\n\t\treturn ($this->model->find('count', $query) > 0);\n\t}", "title": "" }, { "docid": "f964bc95ad2931d5663f6769445fd155", "score": "0.55401945", "text": "function isCSRFTokenValid()\n{\n $isValid = false;\n\n $token = $_POST['centreon_token'] ?? $_GET['centreon_token'] ?? null;\n if ($token !== null && in_array($token, $_SESSION['x-centreon-token'])) {\n $isValid = true;\n }\n\n return $isValid;\n}", "title": "" }, { "docid": "62ae61e1b89970e5df4acdaafbb3fef0", "score": "0.5539834", "text": "public function isValidCSRFToken(string $token):bool;", "title": "" }, { "docid": "41a8a3293f89b4a99f4e52c13f409d15", "score": "0.5539412", "text": "public static function check()\n {\n return !is_null(static::user());\n }", "title": "" }, { "docid": "e459ec547a7674fae65048f1bf52e6a2", "score": "0.5536124", "text": "public function isValid()\n\t{\n\t \treturn $this->_redis !== null;\n\t}", "title": "" }, { "docid": "521047715f0954ad06a11450a78d1d77", "score": "0.5531763", "text": "private function _checkIdent()\n {\n $auth = Zend_Auth::getInstance();\n $auth->setStorage(new Zend_Auth_Storage_Session('hl_connect'));\n \n if ($auth->hasIdentity())\n $this->_agentSchemeNumber = $auth->getStorage()->read()->agentschemeno;\n \n return $auth->hasIdentity();\n }", "title": "" }, { "docid": "b9f2c36844a3f0d073a7ba5cf94dc885", "score": "0.5521143", "text": "public function hasAuth(){\n return $this->_has(12);\n }", "title": "" }, { "docid": "b8b8cdd417ba06f2cf4bffbd203c6282", "score": "0.55209637", "text": "public function checkAccessibleTokenService()\n\t{\n\t\treturn true;\n\t}", "title": "" } ]
a0a9c347f0a82360ff147c1a599ced91
Loads the payouts into the class's flow.
[ { "docid": "403e4df80524338049febe40ac72baa1", "score": "0.7315038", "text": "private function loadPayouts() {\n foreach($this->settings[PAYOUTS] as $key => &$payout) {\n $this->payouts[$key] = $payout;\n }\n }", "title": "" } ]
[ { "docid": "93361ca40509e3bf028f24668b92afee", "score": "0.6053364", "text": "private function loadPaylines() {\n foreach($this->settings[PAYLINES] as &$payline) {\n $this->paylines[] = new Payline($payline);\n }\n }", "title": "" }, { "docid": "8d916f339561ec86e4e8f1a29ab1e242", "score": "0.5951856", "text": "private function init() {\n $this->loadPaylines();\n $this->loadPayouts();\n }", "title": "" }, { "docid": "8519965554d39a293804d46a5840709d", "score": "0.57785684", "text": "public function loadPayPalOrder()\n {\n }", "title": "" }, { "docid": "41333f4dc168c0e10b67208c1652bc20", "score": "0.527642", "text": "private function loadOrderAndPayment()\n {\n $this->order = $this->_objectManager->get('Magento\\Sales\\Model\\Order')->loadByIncrementId($this->fields['order_reference']);\n $this->payment = $this->order->getPayment();\n }", "title": "" }, { "docid": "b3e99fbd997ff6be03f084e3995c9772", "score": "0.5195085", "text": "public function payouts() : R {\n $url = $this->build([ 'user', 'payouts' ]);\n $resp = R::from($this->call($url, [], true));\n if($resp->status) {\n $resp->payouts = array_map(function($p) {\n return Payout::from($p);\n }, $resp->payouts);\n }\n return $resp;\n }", "title": "" }, { "docid": "ad66cb76065523b781dfff82d386982a", "score": "0.51581156", "text": "public function __construct()\n {\n $this->_webhookEntities[] = new PostFinanceCheckout_Payment_Model_Webhook_Entity(1487165678181, 'Manual Task',\n array(\n \\PostFinanceCheckout\\Sdk\\Model\\ManualTaskState::DONE,\n \\PostFinanceCheckout\\Sdk\\Model\\ManualTaskState::EXPIRED,\n \\PostFinanceCheckout\\Sdk\\Model\\ManualTaskState::OPEN\n ));\n $this->_webhookEntities[] = new PostFinanceCheckout_Payment_Model_Webhook_Entity(1472041857405,\n 'Payment Method Configuration',\n array(\n \\PostFinanceCheckout\\Sdk\\Model\\CreationEntityState::ACTIVE,\n \\PostFinanceCheckout\\Sdk\\Model\\CreationEntityState::DELETED,\n \\PostFinanceCheckout\\Sdk\\Model\\CreationEntityState::DELETING,\n \\PostFinanceCheckout\\Sdk\\Model\\CreationEntityState::INACTIVE\n ), true);\n $this->_webhookEntities[] = new PostFinanceCheckout_Payment_Model_Webhook_Entity(1472041829003, 'Transaction',\n array(\n \\PostFinanceCheckout\\Sdk\\Model\\TransactionState::AUTHORIZED,\n \\PostFinanceCheckout\\Sdk\\Model\\TransactionState::DECLINE,\n \\PostFinanceCheckout\\Sdk\\Model\\TransactionState::FAILED,\n \\PostFinanceCheckout\\Sdk\\Model\\TransactionState::FULFILL,\n \\PostFinanceCheckout\\Sdk\\Model\\TransactionState::VOIDED,\n \\PostFinanceCheckout\\Sdk\\Model\\TransactionState::COMPLETED,\n \\PostFinanceCheckout\\Sdk\\Model\\TransactionState::PROCESSING,\n \\PostFinanceCheckout\\Sdk\\Model\\TransactionState::CONFIRMED\n ));\n $this->_webhookEntities[] = new PostFinanceCheckout_Payment_Model_Webhook_Entity(1472041819799,\n 'Delivery Indication',\n array(\n \\PostFinanceCheckout\\Sdk\\Model\\DeliveryIndicationState::MANUAL_CHECK_REQUIRED\n ));\n $this->_webhookEntities[] = new PostFinanceCheckout_Payment_Model_Webhook_Entity(1472041816898,\n 'Transaction Invoice',\n array(\n \\PostFinanceCheckout\\Sdk\\Model\\TransactionInvoiceState::NOT_APPLICABLE,\n \\PostFinanceCheckout\\Sdk\\Model\\TransactionInvoiceState::PAID\n ));\n $this->_webhookEntities[] = new PostFinanceCheckout_Payment_Model_Webhook_Entity(1472041831364,\n 'Transaction Completion', array(\n \\PostFinanceCheckout\\Sdk\\Model\\TransactionCompletionState::FAILED\n ));\n $this->_webhookEntities[] = new PostFinanceCheckout_Payment_Model_Webhook_Entity(1472041839405, 'Refund',\n array(\n \\PostFinanceCheckout\\Sdk\\Model\\RefundState::FAILED,\n \\PostFinanceCheckout\\Sdk\\Model\\RefundState::SUCCESSFUL\n ));\n $this->_webhookEntities[] = new PostFinanceCheckout_Payment_Model_Webhook_Entity(1472041806455, 'Token',\n array(\n \\PostFinanceCheckout\\Sdk\\Model\\CreationEntityState::ACTIVE,\n \\PostFinanceCheckout\\Sdk\\Model\\CreationEntityState::DELETED,\n \\PostFinanceCheckout\\Sdk\\Model\\CreationEntityState::DELETING,\n \\PostFinanceCheckout\\Sdk\\Model\\CreationEntityState::INACTIVE\n ));\n $this->_webhookEntities[] = new PostFinanceCheckout_Payment_Model_Webhook_Entity(1472041811051, 'Token Version',\n array(\n \\PostFinanceCheckout\\Sdk\\Model\\TokenVersionState::ACTIVE,\n \\PostFinanceCheckout\\Sdk\\Model\\TokenVersionState::OBSOLETE\n ));\n }", "title": "" }, { "docid": "c94da3008f7dcc12874dac618b4de958", "score": "0.51298034", "text": "public function clearPayouts()\n\t{\n\t\t$this->collPayouts = null; // important to set this to NULL since that means it is uninitialized\n\t}", "title": "" }, { "docid": "46d482d72abfccd48bbdfc8d9f2fffbd", "score": "0.51118", "text": "function doView() {\n $this->payments = LilHotelierDBO::getPaymentBookingHistory();\n }", "title": "" }, { "docid": "b13670ebc70630e321fe380ac144b1d9", "score": "0.5032007", "text": "public function load() {\n\n\t\t//$this->clear();\n\n\t\t$session = JFactory::getSession();\n\t\t$sessionData = $session->get('paynl', 0, 'vm');\n\n\t\tif (!empty($sessionData)) {\n\t\t\t$data = unserialize($sessionData);\n\t\t\t$this->_selected_method = $data->selected_method;\n\t\t\t// card information\n//\t\t\t$this->_cc_type = $data->cc_type;\n//\t\t\t$this->_cc_number = $data->cc_number;\n//\t\t\t$this->_cc_cvv = $data->cc_cvv;\n//\t\t\t$this->_cc_expire_month = $data->cc_expire_month;\n//\t\t\t$this->_cc_expire_year = $data->cc_expire_year;\n//\t\t\t$this->_cc_valid = $data->cc_valid;\n\t\t\t//Customer settings\n\t\t\t$this->_autobilling_max_amount = $data->autobilling_max_amount;\n\t\t\t//PayPal Express\n\t\t\t$this->_token = $data->token;\n\t\t\t$this->_payer_id = $data->payer_id;\n\t\t\t$this->_first_name = $data->first_name;\n\t\t\t$this->_last_name = $data->last_name;\n\t\t\t$this->_payer_email = $data->payer_email;\n\n//\t\t\t$this->_txn_id = $data->txn_id;\n//\t\t\t$this->_txn_type = $data->txn_type;\n//\t\t\t$this->_payment_status = $data->payment_status;\n//\t\t\t$this->_pending_reason = $data->pending_reason;\n\n\t\t\t$this->save();\n\t\t\treturn $data;\n\t\t}\n\t}", "title": "" }, { "docid": "09a1f901b465a40bab5d88ef85327df3", "score": "0.5003696", "text": "public function load_classes() {\n\t\t$this->square_checkout_gateway = new WC_Payment_Gateway_Square_Checkout();\n\t}", "title": "" }, { "docid": "cd3262d8e3aafb505685def6b5864f5d", "score": "0.4955774", "text": "public function initOutgoingPayments()\n\t{\n\t\t$this->collOutgoingPayments = array();\n\t}", "title": "" }, { "docid": "31b2d5ee5305538a933667d82de0a5be", "score": "0.4948363", "text": "public function load()\n {\n if (class_exists('WC_Payment_Gateway')) {\n add_filter('woocommerce_payment_gateways', [$this, 'registerPaymentMethod'], 10, 1);\n }\n\n // Register payment gateway callback:\n // https://docs.woocommerce.com/document/payment-gateway-api/#section-7\n add_action('woocommerce_api_bluechip_woocommerce_mpay24_gateway', [IPN::class, 'processConfirmationRequest']);\n }", "title": "" }, { "docid": "96f9d7276060171f023ae6f01c54a852", "score": "0.4945943", "text": "public function show(Payout $payout)\n {\n //\n }", "title": "" }, { "docid": "d8eb2f0024d508ab102d1d552e6c38cb", "score": "0.49172446", "text": "public function fetchPayment(): void\n {\n $payment = $this->getPayment();\n if ($payment instanceof AbstractHeidelpayResource) {\n $this->fetchResource($payment);\n }\n }", "title": "" }, { "docid": "8c6a7b6d567fa56aff098127d73ad3bf", "score": "0.49104157", "text": "public function load()\n {\n $this->load_get();\n $this->load_post();\n $this->combine();\n $this->unset_incoming();\n }", "title": "" }, { "docid": "675017f17099f06bb23de1b4302ba08b", "score": "0.48441416", "text": "protected function checkoutsData() {\n $setPlayer = $this->requestParams['Payments']['setPlayer'];\n $moip = new Moip();\n\n //$moip->setEnvironment('sandbox');\n $moip->setCredential(array(\n 'key' => $this->moipKey,\n 'token' => $this->moipToken\n ));\n\n $moip->setUniqueID($this->requestParams['Payments']['idUnique']);\n $moip->setValue($this->requestParams['Payments']['value']);\n $moip->setReason($this->requestParams['Payments']['reason']);\n $moip->setPayer($setPlayer);\n $moip->validate('Identification');\n\n if ($this->requestParams['Payments']['parcelamento'] == 'ACTIVE') {\n $minimunValue = '10.00';\n $value = $this->requestParams['Payments']['value'];\n $num = floor($value / $minimunValue);\n\n if ($num >= 2) {\n $parcels = ($num > 12 ? 12 : $num);\n if ($this->requestParams['Payments']['parcelamento_juros'] == 'ACTIVE') {\n $moip->addParcel(2, $parcels);\n } else {\n $moip->addParcel(2, $parcels, null, true);\n }\n }\n }\n\n //$moip->setReceiver('wilanetonet');\n $moip->setReceiver($this->requestParams['Payments']['email_empresa']);\n $moip->addComission('SPLIT DE PAGAMENTO', $this->moipAccountLogin, $this->moipPercentageForSplit, true);\n\n\n $moip->send();\n\n $xml = simplexml_load_string($moip->answer->xml);\n\n if ($xml->Resposta->Status == \"Falha\") {\n $this->appData = $xml->Resposta;\n } else {\n $ID = $xml->Resposta->ID;\n $token = $xml->Resposta->Token;\n $this->appData = array('ID' => \"{$ID}\", 'token' => \"{$token}\");\n }\n }", "title": "" }, { "docid": "087d05e70e4152a32f99c4d51edb4dfc", "score": "0.48401007", "text": "public function restored(Payout $payout)\n {\n //\n }", "title": "" }, { "docid": "3f2db0e81fe51a1d627130dc47f4e3c1", "score": "0.47868183", "text": "private function load()\n\t{\n\t\t// Metas\n\t\t$this->metas = $this->get('wpvqgr_user_metas', '');\n\t\t\n\t\t// Answer\n\t\t$this->answers = $this->get('wpvqgr_user_answers', '');\n\t}", "title": "" }, { "docid": "080f821693e084a9271d142838d8d4d0", "score": "0.4773464", "text": "public function postProcess()\n {\n try {\n $xml = Tools::getValue('xml');\n $callbackHandler = new AltapayCallbackHandler();\n $response = $callbackHandler->parseXmlResponse($xml);\n $shopOrderId = $response->getPrimaryPayment()->getShopOrderId();\n // This lock prevents orders to be created twice.\n $fp = fopen(_PS_MODULE_DIR_ . '/altapay/controllers/front/lock.txt', 'r');\n flock($fp, LOCK_EX);\n\n // Load the cart\n $cart = getCartFromUniqueId($shopOrderId);\n if (!Validate::isLoadedObject($cart)) {\n $this->unlock($fp);\n exit('Could not load cart - exiting');\n }\n\n // Load the customer\n $customer = new Customer((int) $cart->id_customer);\n\n // Check if an order already exists\n $order = getOrderFromUniqueId($shopOrderId);\n if (Validate::isLoadedObject($order)) {\n // An order has already been created from this cart - redirect\n Tools::redirect('index.php?controller=order-confirmation&id_cart=' . $cart->id . '&id_module='\n . $this->module->id . '&id_order=' . $this->module->currentOrder . '&key='\n . $customer->secure_key);\n }\n\n // Handle success\n if ($response->wasSuccessful()) {\n $orderStatus = (int) Configuration::get('PS_OS_PAYMENT');\n $paymentType = $response->getPrimaryPayment()->getAuthType();\n $amountPaid = $response->getPrimaryPayment()->getCapturedAmount();\n $captureStatus = Tools::getValue('require_capture');\n $currencyPaid = Currency::getIdByIsoCode($response->getPrimaryPayment()->getCurrency());\n $transactionID = Tools::getValue('transaction_id');\n /*\n * If payment type is 'payment' funds have not yet been captured,\n * so AltaPay returns zero as the captured amount.\n * Therefore we assume full payment has been authorized.\n */\n if ($paymentType === 'payment') {\n $amountPaid = $cart->getOrderTotal(true, Cart::BOTH);\n $currencyPaid = new Currency($cart->id_currency);\n } elseif ($paymentType === 'paymentAndCapture' && $captureStatus === 'true') {\n $amountPaid = $cart->getOrderTotal(true, Cart::BOTH);\n $currencyPaid = new Currency($cart->id_currency);\n $api = apiLogin();\n $api->captureReservation($transactionID, $amountPaid, [], null);\n }\n\n // Determine payment method for display\n $paymentMethod = determinePaymentMethodForDisplay($response);\n // Create an order with 'payment accepted' status\n $currencyPaidID = (int) $currencyPaid->id;\n $customerSecureKey = $customer->secure_key;\n $cartID = $cart->id;\n $this->module->validateOrder($cartID, $orderStatus, $amountPaid, $paymentMethod, null, null,\n $currencyPaidID, false, $customerSecureKey);\n\n // Log order\n $currentOrder = new Order((int) $this->module->currentOrder);\n createAltapayOrder($response, $currentOrder);\n $this->unlock($fp);\n if (version_compare(_PS_VERSION_, '1.7.0.0', '>=')) {\n Tools::redirect('index.php?fc=module&module=altapay&controller=orderconfirmation&id_order='\n . $this->module->currentOrder);\n } else {\n Tools::redirect('index.php?controller=order-detail&id_order=' . $this->module->currentOrder);\n }\n } else {\n // Unexpected scenario\n $moduleName = $this->module->name;\n $moduleID = $this->module->id;\n PrestaShopLogger::addLog('Callback ok received but payment was unsuccessful', 3, '1004', $moduleName, $moduleID,\n true);\n echo $this->module->l('This payment method is not available 1004.', 'callbackok');\n\n /* Redirect user back to the checkout payment step,\n * assume a failure occured creating the URL until a payment url is received\n */\n $controller = Configuration::get('PS_ORDER_PROCESS_TYPE') ? 'order-opc.php' : 'order.php';\n $as = $this->context->link;\n $con = $controller;\n $redirect = $as->getPageLink($con, true, null, 'step=3&altapay_unavailable=1')\n . '#altapay_unavailable';\n $this->unlock($fp);\n Tools::redirect($redirect);\n }\n } finally {\n $this->unlock($fp);\n }\n }", "title": "" }, { "docid": "3814d437de574185e208ee7ab7d777e7", "score": "0.47543317", "text": "public function loadWithMoney($bills)\n {\n $this->bills = $bills;\n }", "title": "" }, { "docid": "d8e4ce15b7f175c634cfc0e048262f98", "score": "0.4754258", "text": "protected function load()\n {\n $this->requests = $this->storage->get();\n }", "title": "" }, { "docid": "409aefc4febade049790ac8a26cf3fb4", "score": "0.47248298", "text": "public function pageLoad() {\n $objCms = new Cms();\n $this->arrBanner = $objCms->getRewardBanner(); \n }", "title": "" }, { "docid": "6efe791c1458228d62d825b1e5be42b6", "score": "0.47061166", "text": "public function pay2()\n {\n //here goes session_start via construct;\n \n if(!isset($_SESSION['orderID_1604938863'])){ \n\t\t\treturn redirect('/checkOut2')->with('flashMessageFailX', '<i class=\"fa fa-angle-double-left\" style=\"font-size:3em;color:red\"></i> &nbsp; You have no order checked-out to proceed to payment. Do it at check-out page ' );\n\t\t}\n \n\t\t//Gets Products that are already in cart to display them in view\n\t\t//if session with Cart set previously (user has already selected some products to cart)\n\t\tif(isset($_SESSION['cart_dimmm931_1604938863'])){\n //Read cart $_SESSION['cart_dimmm931_1604938863'], e.g [5,7,9] and find relevant products in DB\n $model = new ShopSimple();\n $inCartItems = $model->findCartProductsByID();\n\t\t} \n\t\t//End Gets Products that are already in cart to display them in view\n\t\t\n\t\t$thisOrderID = $_SESSION['orderID_1604938863']; //session()->get('savedID'); //gets the ID of saved order (not UUID)\n\t\t\n\t\t//finding this One order in DB by ID {$savedID} passed from {function pay1}\n\t\t$thisOrder = ShopOrdersMain::where('order_id', $thisOrderID )->get();\n\t\t\n\t\t//LiqPay SDK Button (to pass to view). LiqPay Object is created here with credentials. method is called in view. \n\t\t//$liqpay = new LiqPay(env('LIQPAY_PUBLIC_KEY'), env('LIQPAY_PRIVATE_KEY'));\n\t\t$liqpay = new LiqPay(env('LIQPAY_PUBLIC_KEY', 'screw'), env('LIQPAY_PRIVATE_KEY', 'screw')); //using env Constants\n \t\n\t\treturn view('ShopPaypalSimple.pay-page')\n ->with(compact('inCartItems', 'thisOrder', 'thisOrderID', 'liqpay')); //'input', \n\t}", "title": "" }, { "docid": "d53550d3eb5f6ebe6ee91b60b51be708", "score": "0.47017777", "text": "public function loadBasket() {\n\t\t$basket = $this->Session->get('basket');\n\t\tif(!$basket) {\n\t\t\t$basket = new ShopBasket();\n\t\t}\n\t\telse {\n\t\t\t$basket = unserialize($basket);\n\t\t}\n\t\t$this->basket = $basket;\n\t}", "title": "" }, { "docid": "c1dfd6ce7224e9f02b6ff20208879a14", "score": "0.4690618", "text": "function load() {\n // Reset actual content of spooler data\n $this->operations = array();\n \n // Get spooled operations\n if(is_null($this->OCUserName)) {\n $sql = 'SELECT * FROM *PREFIX*aletsch_spool';\n $args = array(); \n } else {\n $sql = 'SELECT * FROM *PREFIX*aletsch_spool WHERE ocusername=?';\n $args = array(\n $this->OCUserName\n );\n }\n\n $query = \\OCP\\DB::prepare($sql);\n $resRsrc = $query->execute($args);\n \n while($row = $resRsrc->fetchRow()) {\n $spoolEntry = array(\n 'jobid' => $row['jobid'],\n 'ocusername' => $row['ocusername'],\n 'vaultarn' => $row['vaultarn'],\n 'jobtype' => $row['jobtype'],\n 'jobstatus' => $row['jobstatus'],\n 'jobstarted' => $row['jobstarted'],\n 'jobdata' => $row['jobdata'],\n 'jobpid' => $row['jobpid'],\n 'jobdiagnostic' => $row['jobdiagnostic']\n );\n \n $this->operations[$row['jobid']] = $spoolEntry;\n }\n }", "title": "" }, { "docid": "467a3a05567f265b66f0916d0b8d3e81", "score": "0.46897402", "text": "public function __construct($payLoad)\n {\n $this->payLoad = $payLoad;\n }", "title": "" }, { "docid": "e7e0d0a832ba4048930ad1d6e4485212", "score": "0.4685316", "text": "private function checkoutPaymentSection()\n {\n $model = $this->blockFactory->create();\n $cmsBlockData[] = [\n 'title' => 'Latitude Installment Block',\n 'identifier' => 'latitude_installment_block',\n 'content' => \"<strong>10</strong> interest free payments from <strong>%s</strong> with <span style=\\\"display: inline-block;border:2px solid #0a74ff;border-radius:4px;padding:12px;margin-right: 7px;\\\"><img width=\\\"180px\\\"  src=\\\"{{view url='Latitude_Payment::images/latitude-pay-logo.svg'}}\\\"></span>\",\n 'is_active' => 1,\n 'stores' => [0],\n 'sort_order' => 0\n ];\n $cmsBlockData[] = [\n 'title' => 'Genoapay installment block',\n 'identifier' => 'genoapay_installment_block',\n 'content' => \"<span style=\\\"vertical-align: middle;\\\"> <strong>10</strong> interest free payments from <strong>%s</strong> with </span><span style=\\\"display: inline-block; border: 2px solid #00AB8E; border-radius: 4px; padding: 12px; margin-right: 7px;\\\"><img src=\\\"{{view url='Latitude_Payment::images/genoapay_logo.svg'}}\\\" width=\\\"180px\\\"></span>\n <p>Available to NZ residents who are 18 yrs old and over and have a valid debit card or credit card.</p>\",\n 'is_active' => 1,\n 'stores' => [0],\n 'sort_order' => 0\n ];\n $cmsBlockData[] = [\n 'title' => 'Product Installment Block',\n 'identifier' => 'latitude_product_block',\n 'content' => \"<span >Starting interest free at <strong>%1 </strong> for <strong>10</strong> payments</span>\",\n 'is_active' => 1,\n 'stores' => [0],\n 'sort_order' => 0\n ];\n foreach ($cmsBlockData as $data) {\n $model->setData($data);\n $this->saveBlock($model);\n }\n }", "title": "" }, { "docid": "a0a05bc10fba5e2adaca067985e2e18c", "score": "0.46811673", "text": "function loadProcessCashTransaction() \n {\n // set the pageCallBack to be without any additional parameters\n // (an AdminBox needs this so Language Switching on a page doesn't\n // pass a previous operations)\n $parameters = array('MINISTRY_ID'=>$this->MINISTRY_ID, 'CASHTRANS_ID'=>$this->CASHTRANS_ID, 'REG_ID'=>$this->REG_ID);//[RAD_CALLBACK_PARAMS]\n $pageCallBack = $this->getCallBack(modulecim_reg::PAGE_PROCESSCASHTRANSACTIONPAGE, $this->sortBy, $parameters);\n $this->setPageCallBack( $pageCallBack );\n \n \n $parameters = array('MINISTRY_ID'=>$this->MINISTRY_ID, 'CASHTRANS_ID'=>$this->CASHTRANS_ID, 'REG_ID'=>$this->REG_ID);//[RAD_CALLBACK_PARAMS]\n $formAction = $this->getCallBack(modulecim_reg::PAGE_PROCESSCASHTRANSACTIONPAGE, $this->sortBy, $parameters );\n $this->pageDisplay = new FormProcessor_ProcessCashTransaction( $this->moduleRootPath, $this->viewer, $formAction, $this->CASHTRANS_ID , $this->REG_ID);//[RAD_FORMINIT_FOREIGNKEY_INIT] \n\n }", "title": "" }, { "docid": "50f225a54baf30bbdaf9362797c07b6d", "score": "0.46514902", "text": "public function init(){\r\n\t\t$account = new Account();\r\n\t\t$account->accountID = $_SESSION['transferAccountID'];\r\n\t\t$account->getAccount();\r\n\t\t$_SESSION['transferAccount'] = $account->accountName;\r\n\t\t\r\n\t\t$accountPayees = new AccountPayees();\r\n\t\t$accountPayees->accountPayeeID = $_SESSION['transferAccountPayeeID']; \r\n\t\t$accountPayees->userID = $_SESSION['userID'];\r\n\t\t$accountPayees->getAccountPayee(); \r\n\t\t$_SESSION['transferAccountPayee'] = $accountPayees->accountName;\r\n\t\t$_SESSION['transferType'] = $accountPayees->accountType;\r\n\t\t\r\n\t\t$this->setAccountSelected($_SESSION['transferAccountID']);\r\n\t\t$this->setAccountPayeeSelected($_SESSION['transferAccountPayeeID']); \r\n\t}", "title": "" }, { "docid": "262eae59b4eb2d4ae36ed59aa4330bd6", "score": "0.4644257", "text": "public function issuepayslipsAction(){\n\t\t$this->_helper->layout->disableLayout();\n\t\t$this->_helper->viewRenderer->setNoRender(TRUE);\n\t\t$session = SessionWrapper::getInstance();\n\t\t$formvalues = $this->_getAllParams(); // debugMessage($formvalues); exit;\n\t\t$config = Zend_Registry::get(\"config\");\n\t\n\t\t// generate the payslips silently via ajax\n\t\t$payroll = new Payroll();\n\t\t$payroll->populate($this->_getParam('id'));\n\t\n\t\t$employees = $payroll->getdetails(); // debugMessage($employees->toArray());\n\t\tforeach ($employees as $employee){\n\t\t\tif(/* $employee->getUserID() == 15 && */$employee->getIsIgnored() != 1 && $employee->getNetPay() > 0){ // ignore users who are skipped on payroll or have 0 netpay\n\t\t\t\t$payrolldetailid = $employee->getID();\n\t\t\t\t$path = $employee->getPDFPath();\n\t\t\t\t$pdfurl = $this->view->serverUrl($this->view->baseUrl('user/view/id/'.encode($employee->getUserID()).'/tab/payment/payrollid/'.$payrolldetailid.'/ref/view/print/1/pgc/1/payslipview/1/pdf/1/source/payroll'));\n\t\t\t\t// debugMessage($pdfurl);\n\t\t\t\t$pdfresult = trim(file_get_contents($pdfurl));\n\t\t\t\t$html = decode($pdfresult); // debugMessage($html); // exit;\n\t\n\t\t\t\tif(!isEmptyString($html)){\n\t\t\t\t\ttry {\n\t\t\t\t\t\t$mpdfpath = BASE_PATH.DIRECTORY_SEPARATOR.'application'.DIRECTORY_SEPARATOR.'includes'.DIRECTORY_SEPARATOR.'mpdf'.DIRECTORY_SEPARATOR.'mpdf.php'; // debugMessage('pdf '.$mpdfpath);\n\t\t\t\t\t\tini_set('memory_limit','128M');\n\t\t\t\t\t\t\t\n\t\t\t\t\t\trequire_once($mpdfpath);\n\t\t\t\t\t\t// ob_get_clean();\n\t\t\t\t\t\t$mpdf = new mPDF('win-1252','A4','','',20,15,40,20,10,10);\n\t\t\t\t\t\t$mpdf->useOnlyCoreFonts = true; // false is default\n\t\t\t\t\t\t$mpdf->SetProtection(array('print'));\n\t\t\t\t\t\t$mpdf->SetTitle(\"Payslip - \".$employee->getUser()->Name());\n\t\t\t\t\t\t$mpdf->SetAuthor(getAppName());\n\t\t\t\t\t\t$mpdf->SetWatermarkText(getCompanyName());\n\t\t\t\t\t\t$mpdf->showWatermarkText = true;\n\t\t\t\t\t\t$mpdf->watermark_font = 'DejaVuSansCondensed';\n\t\t\t\t\t\t$mpdf->watermarkTextAlpha = 0.1;\n\t\t\t\t\t\t$mpdf->SetDisplayMode('fullpage');\n\t\t\t\t\t\t$mpdf->WriteHTML($html);\n\t\t\t\t\t\t$mpdf->Output($path);\n\t\t\t\t\t\t// $mpdf->Output($employee->getPDFName().'.pdf', 'I');\n\t\n\t\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\t\tdebugMessage('error '.$e->getMessage());\n\t\t\t\t\t}\n\t\n\t\t\t\t\tif(file_exists($path)){\n\t\t\t\t\t\tdebugMessage('pdf '.$employee->getPDFName().' created ');\n\t\t\t\t\t\t// $employee->afterPayslipGeneration();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdebugMessage('pdf missing');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$session->setVar(\"issuepayslips\", '0'); // reset flag for determining if payslips are sent\n\t}", "title": "" }, { "docid": "091d9fc796f816da4a0cf0f1289dfec8", "score": "0.4613692", "text": "public function load() : void\n {\n if (! empty($data = $this->driver->read($this->id))) {\n\n if (method_exists($this, 'decrypt')) {\n $data = $this->decrypt($data);\n }\n\n $data = unserialize($data);\n }\n\n if (is_array($data) && !empty($data)) {\n $this->inject($data);\n }\n }", "title": "" }, { "docid": "01f530084d4df105f130045f62530f5d", "score": "0.4606953", "text": "public function load()\n {\n return;\n }", "title": "" }, { "docid": "cd23d39e0d3c174cf2b2305e3a4ddd1b", "score": "0.46002656", "text": "public function store(Request $request)\n {\n try {\n $topup = new Topup();\n $inv_id = $request->input('inv_id');\n $data['investments'] = Topup::getInvestments($inv_id);\n\n $next_pay_date = new Carbon(Session::get('next_pay_day'));\n $pay_times = $data['investments']->payment_times;\n\n $topup_date = $request->input('topup_date');\n $number_of_days = $next_pay_date->diffInDays($topup_date);\n\n $inv_type = $request->input('inv_type_id');\n $user_id = $request->input('user_id');\n $topup->account_id = $request->input('account_no_id');\n $topup->topup_amount = $request->input('topup_amount');\n $topup->served_by = Auth::user()->id;\n $topup->inv_mode_id = $request->input('inv_mode_id');\n $topup->mpesa_trans_code = $request->input('mpesa_trans_code');\n $topup->inv_bank_id = $request->input('inv_bank_id');\n $topup->bank_trans_code = $request->input('bank_trans_code');\n // $topup->inv_bank_id = $request->input('inv_cheq_bank_id');\n $topup->cheque_no = $request->input('cheque_no');\n $topup->topped_at = $request->input('topup_date');\n $referee_id = $request->input('referee_id');\n\n $interest_rate = 0.2;\n $days = 30;\n $interest = $interest_rate * $topup->topup_amount;\n $top_int = floor(($interest * $number_of_days) / $days);\n\n $topup_comm_per = 0.05;\n $topup_comm = $topup_comm_per * $topup->topup_amount;\n $tot_topup_comm = $topup_comm * 6;\n $topup->topup_comm = $topup_comm;\n $topup->tot_topup_comm = $tot_topup_comm;\n\n $real_topup_date = $request->input('topup_date');\n\n $tot_topup = DB::table('daily_trans_summary')\n ->where('date', '=', $real_topup_date)->first();\n\n $total_topups = $tot_topup->tot_topups;\n $total_topups = $total_topups + $request->input('topup_amount');\n\n $new_tot_topup = array(\n\n 'tot_topups' => $total_topups\n );\n $new_balance = DB::table('daily_trans_summary')->where('date', $real_topup_date)\n ->update($new_tot_topup);\n\n $user_id = $request->input('user_id');\n $user = DB::table('users')->where('id', '=', $user_id)->first();\n // dd($user_id);\n\n $objDemo = new \\stdClass();\n $objDemo->subject = 'Topup Received';\n $company = \"Inter-Web Global Fortune Limited\";\n $objDemo->company = $company;\n\n //1. Send to the user\n $message = \"We have received your topup amount.\";\n $objDemo->email = $user->email;\n $objDemo->name = $user->name;\n $objDemo->amount = $topup->topup_amount;\n $objDemo->topup_date = $topup_date;\n $objDemo->message = $message;\n\n // Mail::to($objDemo->email)->send(new TopupReceived($objDemo));\n\n if (!empty($referee_id)) {\n $referee_data = DB::table('accounts')\n ->select(\n DB::raw('accounts.*'),\n DB::raw('users.id as referee_id'),\n DB::raw('payment_schedule.account_no_id'),\n DB::raw('payment_schedule.tot_payable_amnt')\n )\n ->leftJoin('users', 'accounts.user_id', '=', 'users.id')\n ->leftJoin('payment_schedule', 'accounts.id', '=', 'payment_schedule.account_no_id')\n ->where('users.id', '=', $referee_id)\n ->first();\n\n $account_id = $referee_data->id;\n $due_pay = $referee_data->total_due_payments;\n $new_due_pay = $due_pay + $tot_topup_comm;\n\n $acc_bal = array(\n\n 'total_due_payments' => $new_due_pay\n );\n\n $acc_balances = DB::table('accounts')->where('id', $account_id)\n ->update($acc_bal);\n\n $user_payment_schedule = array(\n 'tot_payable_amnt' => $new_due_pay\n );\n\n $update_payment_schedule = DB::table('payment_schedule')->where('account_no_id', $account_id)\n ->update($user_payment_schedule);\n }\n\n if ($inv_type == 1) {\n\n if ($data['investments']->topped_up == 0) {\n $next_pay_amount = $data['investments']->monthly_amount;\n } else {\n $updated_next_pay = $data['investments']->updated_next_pay;\n\n // CHECK IF THE UPDATED NEXT PAY HAS BEEN PAID\n $data['client_payments'] = DB::table('payments')\n ->select(\n DB::raw('payments.*'),\n DB::raw('accounts.*'),\n DB::raw('users.*')\n )\n ->leftJoin('accounts', 'payments.account_no_id', '=', 'accounts.id')\n ->leftJoin('users', 'accounts.user_id', '=', 'users.id')\n ->where('users.id', '=', $user_id)\n ->where('payments.total_payment', '=', $updated_next_pay)\n ->orderBy('payments.payment_id', 'desc')->first();\n\n if ($data['client_payments']) {\n $next_pay_amount = $data['investments']->updated_monthly_pay;\n } else {\n $next_pay_amount = $data['investments']->updated_next_pay;\n }\n }\n\n $data['updated_next_pay'] = $next_pay_amount + $top_int;\n\n $inv_amount = $data['investments']->investment_amount;\n $topped_amount = $data['investments']->topup_amount;\n\n $inv_duration = $data['investments']->investment_duration;\n $tot_topups = $topped_amount + $topup->topup_amount;\n\n $tot_investments = $inv_amount + $topup->topup_amount;\n $new_monthly_pay = $interest_rate * $tot_investments;\n\n $pay_times_remaining = $inv_duration - $pay_times - 1;\n $new_tot_monthly_payable = $new_monthly_pay * $pay_times_remaining;\n $new_due_payments = $new_tot_monthly_payable + $data['updated_next_pay'];\n\n $topup->save();\n\n DB::table('investments')->where('account_no_id', $topup->account_id)->update(\n [\n 'investment_amount' => $tot_investments\n ]\n );\n\n DB::table('payment_schedule')->where('account_no_id', $topup->account_id)->update(\n [\n 'topped_up' => 1, 'topup_amount' => $tot_topups,\n 'updated_next_pay' => $data['updated_next_pay'], 'updated_monthly_pay' => $new_monthly_pay\n ]\n );\n\n DB::table('accounts')->where('id', $topup->account_id)->update(\n [\n 'total_due_payments' => $new_due_payments\n ]\n );\n toast('New topup added successfully', 'success', 'top-right');\n return back();\n } elseif ($inv_type == 2) {\n\n // GET LAST PAYMENT DATE\n $last_pay_date = new Carbon(Session::get('last_pay_date'));\n\n $interest_rate = 0.2;\n $days = 30;\n $number_of_days = $last_pay_date->diffInDays($topup_date);\n $interest = $interest_rate * $topup->topup_amount;\n $top_int = floor(($interest * $number_of_days) / $days);\n\n $next_pay_amount = $data['investments']->tot_payable_amnt;\n $updated_next_pay = $next_pay_amount + $top_int;\n\n //GET CLIENT TOTAL INVESTMENT AND UPDATE EITH THE NEW VALUE\n $inv_amount = $data['investments']->investment_amount;\n $topped_amount = $data['investments']->topup_amount;\n $tot_topups = $topped_amount + $topup->topup_amount;\n $tot_investments = $inv_amount + $topup->topup_amount;\n\n $topup->save();\n\n DB::table('investments')->where('account_no_id', $topup->account_id)->update(\n [\n 'investment_amount' => $tot_investments\n ]\n );\n\n DB::table('payment_schedule')->where('account_no_id', $topup->account_id)->update(\n [\n 'topped_up' => 1, 'topup_amount' => $tot_topups,\n 'tot_payable_amnt' => $updated_next_pay\n ]\n );\n\n DB::table('accounts')->where('id', $topup->account_id)->update(\n [\n 'total_due_payments' => $updated_next_pay\n ]\n );\n toast('New topup added successfully', 'success', 'top-right');\n return back();\n } elseif ($inv_type == 3) {\n\n $inv_subtype_id = $request->input('inv_subtype_id');\n if ($inv_subtype_id == 1) {\n\n if ($data['investments']->topped_up == 0) {\n $next_pay_amount = $data['investments']->monthly_amount;\n } else {\n $updated_next_pay = $data['investments']->updated_next_pay;\n\n // CHECK IF THE UPDATED NEXT PAY HAS BEEN PAID\n $data['client_payments'] = DB::table('payments')\n ->select(\n DB::raw('payments.*'),\n DB::raw('accounts.*'),\n DB::raw('users.*')\n )\n ->leftJoin('accounts', 'payments.account_no_id', '=', 'accounts.id')\n ->leftJoin('users', 'accounts.user_id', '=', 'users.id')\n ->where('users.id', '=', $user_id)\n ->where('payments.total_payment', '=', $updated_next_pay)\n ->orderBy('payments.payment_id', 'desc')->first();\n\n if ($data['client_payments']) {\n $next_pay_amount = $data['investments']->updated_monthly_pay;\n } else {\n $next_pay_amount = $data['investments']->updated_next_pay;\n }\n }\n\n $data['updated_next_pay'] = $next_pay_amount + $top_int;\n // $next_pay_amount = $data['investments']->updated_next_pay;\n\n $inv_amount = $data['investments']->monthly_inv;\n $overall_inv = $data['investments']->investment_amount;;\n\n $topped_amount = $data['investments']->topup_amount;\n\n $inv_duration = $data['investments']->monthly_duration;\n $tot_topups = $topped_amount + $topup->topup_amount;\n\n $tot_investments = $inv_amount + $topup->topup_amount;\n $new_tot_overall_inv = $overall_inv + $topup->topup_amount;\n $new_monthly_pay = $interest_rate * $tot_investments;\n\n $pay_times_remaining = $inv_duration - $pay_times - 1;\n $new_tot_monthly_payable = $new_monthly_pay * $pay_times_remaining;\n $comp_due_amount = $data['investments']->tot_comp_amount;\n\n $new_due_payments = $new_tot_monthly_payable + $data['updated_next_pay'] + $comp_due_amount;\n\n $topup->save();\n\n DB::table('investments')->where('account_no_id', $topup->account_id)->update(\n [\n 'monthly_inv' => $tot_investments, 'investment_amount' => $new_tot_overall_inv\n ]\n );\n\n DB::table('payment_schedule')->where('account_no_id', $topup->account_id)->update(\n [\n 'topped_up' => 1, 'topup_amount' => $tot_topups, 'tot_payable_amnt' => $new_due_payments,\n 'updated_next_pay' => $data['updated_next_pay'], 'updated_monthly_pay' => $new_monthly_pay\n ]\n );\n\n DB::table('accounts')->where('id', $topup->account_id)->update(\n [\n 'total_due_payments' => $new_due_payments\n ]\n );\n toast('New topup added successfully', 'success', 'top-right');\n return back();\n } else {\n\n // GET LAST PAYMENT DATE\n $last_pay_date = new Carbon(Session::get('last_pay_date'));\n $last_pay_date = Carbon::parse($last_pay_date)->toDateString();\n\n $interest_rate = 0.2;\n $days = 30;\n\n //$topup_date = new Carbon(Carbon::now('Africa/Nairobi')->toDateString());\n\n $topup_date = $request->input('topup_date');\n\n $number_of_days = Carbon::parse($last_pay_date)->diffInDays($topup_date);\n\n $interest = $interest_rate * $topup->topup_amount;\n\n $top_int = floor(($interest * $number_of_days) / $days);\n\n $next_pay_amount = $data['investments']->tot_comp_amount;\n $tot_overall__due_payments = $data['investments']->tot_payable_amnt;\n $overall_inv = $data['investments']->investment_amount;\n $investments = $data['investments']->compounded_inv;\n $updated_next_pay = $next_pay_amount + $top_int;\n\n // //GET CLIENT TOTAL INVESTMENT AND UPDATE EITH THE NEW VALUE\n $new_tot_overall_inv = $overall_inv + $topup->topup_amount;\n\n\n $topped_amount = $data['investments']->topup_amount;\n $tot_topups = $topped_amount + $topup->topup_amount;\n $new_comp_investments = $investments + $topup->topup_amount;\n $new_overall_due_apyments = $tot_overall__due_payments + $top_int;\n\n $topup->save();\n\n DB::table('investments')->where('account_no_id', $topup->account_id)->update(\n [\n 'investment_amount' => $new_tot_overall_inv, 'compounded_inv' => $new_comp_investments\n ]\n );\n\n DB::table('payment_schedule')->where('account_no_id', $topup->account_id)->update(\n [\n 'topped_up' => 1, 'topup_amount' => $tot_topups,\n 'tot_payable_amnt' => $new_overall_due_apyments, 'tot_comp_amount' => $updated_next_pay\n ]\n );\n\n DB::table('accounts')->where('id', $topup->account_id)->update(\n [\n 'total_due_payments' => $new_overall_due_apyments\n ]\n );\n\n toast('New topup added successfully', 'success', 'top-right');\n return back();\n }\n }\n } catch (\\Exception $e) {\n DB::rollBack();\n \\Log::emergency(\"File:\" . $e->getFile() . \"Line:\" . $e->getLine() . \"Message:\" . $e->getMessage());\n return back();\n }\n }", "title": "" }, { "docid": "5f7ff1fc1a681b0fbd0f23ae4bb67a84", "score": "0.4594645", "text": "function payWithPayPalAction() {\n $data = isset($_SESSION['checkout.data'])? $_SESSION['checkout.data'] : new stdClass();\n\n $data->ID_PAYMENT_TYPE = 2;\n\n $_SESSION['checkout.data'] = $data;\n\n // x. Pay\n $this->paypalBegin();\n }", "title": "" }, { "docid": "a60961a0e7b52f0b8c73ab2095c6e477", "score": "0.4590809", "text": "public function index()\n {\n\n PayMaya_SDK::getInstance()->initCheckout(\"pk-iaioBC2pbY6d3BVRSebsJxghSHeJDW4n6navI7tYdrN\", \n \"sk-uh4ZFfx9i0rZpKN6CxJ826nVgJ4saGGVAH9Hk7WrY6Q\", \n \"SANDBOX\");\n\n // Item\n $itemAmountDetails = new ItemAmountDetails();\n $itemAmountDetails->shippingFee = \"14.00\";\n $itemAmountDetails->tax = \"5.00\";\n $itemAmountDetails->subtotal = \"50.00\";\n $itemAmount = new ItemAmount();\n $itemAmount->currency = \"PHP\";\n $itemAmount->value = \"69.00\";\n $itemAmount->details = $itemAmountDetails;\n $item = new Item();\n $item->name = \"Nanay Mo\";\n $item->code = \"pm_belt\";\n $item->description = \"Medium-sized nanay made from authentic tatay\";\n $item->quantity = \"1\";\n $item->amount = $itemAmount;\n $item->totalAmount = $itemAmount;\n\n // Checkout\n $itemCheckout = new Checkout();\n $user = new User();\n $itemCheckout->buyer = $user->buyerInfo();\n $itemCheckout->items = array($item);\n $itemCheckout->totalAmount = $itemAmount;\n $itemCheckout->requestReferenceNumber = \"123456789\";\n $itemCheckout->redirectUrl = array(\n \"success\" => \"http://127.0.0.1:8000/lsapp/public/index.blade.php\",\n \"failure\" => \"https://shop.com/failure\",\n \"cancel\" => \"https://shop.com/cancel\"\n );\n $itemCheckout->execute();\n $itemCheckout->retrieve();\n\n echo \"Checkout ID: \" . $itemCheckout->id . \"\\n\";\n echo \"Checkout URL: \" . $itemCheckout->url . \"\\n\";\n return Redirect::to($itemCheckout->url);\n }", "title": "" }, { "docid": "bc9a4d7ab15fc6c04ac4408246809cdd", "score": "0.4589544", "text": "public function created(Payout $payout)\n {\n $payout->transactions()->create();\n }", "title": "" }, { "docid": "edc1df76c34815b574716c78c585526a", "score": "0.45870253", "text": "private static function loadItems()\r\n {\r\n\r\n self::$Inventory[] = StockAccount::GetStockItems();\r\n\r\n self::$loaded = true;\r\n \r\n }", "title": "" }, { "docid": "a770f9fb8c84809b47488701a96077d0", "score": "0.45845693", "text": "public function index()\n {\n $checkout = CheckoutResponse::all();\n\n }", "title": "" }, { "docid": "563b35e1d76ab255711eec3bcff87425", "score": "0.457262", "text": "public function from_payflow_toDB()\n\t{\n\t\t$this->load->library ('Payflow');\n\t\t$last_counts = $this->Guerrero_model->get_last_seven_money_entries();\n\t\t// setup payflow variables \n\t\t$this->payflow->PARTNER = 'verisign';\n\t\t$this->payflow->VENDOR = 'rmfoundation';\n\t\t$this->payflow->USER = 'guerreros';\n\t\t$this->payflow->PWD = '00guerreroscash00';\n\t\t$this->payflow->environment = 'live';\n\t \t\n\t \t\n\t \t$date = date(\"Y-m-d\", strtotime(\"-1 day\"));\n\t \t//$date = date('Y-m-d');\n\t \t$money = array(\n\t \t\t 'per_day' => 0, \n\t \t\t 'total_money' => $last_counts[6]->total_money\n\t \t);\n\t \t/* this for is for manually update \nfor ($i = 0; $date != '2012-04-04'; $i++)\n\t \t{\n*/\t\n\t \t\n\t \t\t\t\n\t\t$parameters = array(\n\t \t\t\t\t\t'start_date'=> $date.' 00:00:00',\n\t \t\t\t\t\t'end_date'\t=> $date.' 23:59:59'\n\t \t\t\t\t);\n\t \t\t\t\t\n\t\t$response = $this->payflow->run_report_request('CustomReport', $parameters);\n\t \t\n\t \t$responseObj = $this->payflow->parse_xml_response($response);\n\t\t$reportId = $responseObj->runReportResponse->reportId;\n\t\t\n\t\t$response = $this->payflow->get_result_request($reportId);\n\t\t\n\t\t$response = $this->payflow->get_metadata_request($reportId);\n\t\t\n\t\t$responseObj = $this->payflow->parse_xml_response($response);\n\t\t\n\t\t$fields = $this->payflow->generate_field_array($responseObj);\n\t\t\n\t\t$response = $this->payflow->get_data_request($reportId);\n\t\t\n\t\t\t\t//print_r($response);\t\t\n\t\t$responseObj = $this->payflow->parse_xml_response($response);\n\t\t\t//print_r($responseObj);\n\t\t\t\n\t\tif ($responseObj->baseResponse->responseMsg =='Request has completed successfully')\n\t\t{\n\t\t\t\n\t\t\t$data = $this->payflow->generate_data_array($responseObj, $fields);\n\t\t\n\t\n\t\t\t foreach( $data as $t)\n\t\t\t {\n\t\t\t \t//echo $t['Recurring'];\n\t\t\t \tif($t['Transaction State'] == 9 && (int)$t['Amount']/100 == 2) //usar los tres amounts \n\t\t\t \t{\n\t\t\t \t\t//echo ((int)$t['Amount'])/100 . '<br>';\n\t\t\t \t\t$money['per_day'] += ((int)$t['Amount'])/100;\n\t\t\t \t}\n\t\t\t \telse if(((int)$t['Amount']/100 == 10 || (int)$t['Amount']/100 == 25 || (int)$t['Amount']/100 == 50 ) && $t['Transaction State'] == 8) \n\t\t\t \t{\n\t\t\t \t$money['per_day'] += ((int)$t['Amount'])/100;\n\t\t\t \t}\n\t\t\t }//end data foreach\n\t\t\t \n\t\t }\n\t\t else{\n\t\t \t\n\t\t \t$money['per_day'] = 0;\n\t\t }\n\t\t $money['total_money'] += $money['per_day'];\n\t\t $money['day_date'] = $date;\n\t\t \n\t\t if(!$this->Guerrero_model->insert_money($money))\n\t\t {\n\t\t \techo \"error insertando\";\n\t\t } \n\t\t else\n\t\t {\n\t\t \techo \"No problemo\";\n\t\t \n\t\t } \n\t\t\n\t\t//reset money per day\n\t\t//$money['per_day'] = 0;\n\t\t\n\t\t//increment date \t \t\n/*\n\t \t$date = strtotime($date); //assuming it's not a timestamp\\\n\t\t$date = $date + (60 * 60 * 24); //increase date by 1 day\n\t\t$date = date('Y-m-d', $date);\n*/\n\t\t\n\t\t\n\t\t\n\t\t//}//end perday for\n\n\t\n\t\n\t}", "title": "" }, { "docid": "5edd88dbd96409ffcc4c59b124968e07", "score": "0.45564985", "text": "public function initPayouts($overrideExisting = true)\n\t{\n\t\tif (null !== $this->collPayouts && !$overrideExisting) {\n\t\t\treturn;\n\t\t}\n\t\t$this->collPayouts = new PropelObjectCollection();\n\t\t$this->collPayouts->setModel('Payout');\n\t}", "title": "" }, { "docid": "b780685c555e965b5e0c68c712ac9d49", "score": "0.45551294", "text": "public function checkout()\n {\n $this -> resultCode = $this -> response -> stkCallback -> ResultCode;\n $this -> resultDesc = $this -> response -> stkCallback -> ResultDesc;\n $this -> merchantRequestID = $this -> response -> stkCallback -> MerchantRequestID;\n $this -> checkoutRequestID = $this -> response -> stkCallback -> CheckoutRequestID;\n $this -> amount = $this -> response -> stkCallback -> CallbackMetadata -> Item[0] -> Value;\n $this -> mpesaReceiptNumber = $this -> response -> stkCallback -> CallbackMetadata -> Item[1] -> Value;\n $this -> balance = $this -> response -> stkCallback -> CallbackMetadata -> Item[2] -> Value;\n $this -> utilityAccountAvailableFunds = $this -> response -> stkCallback -> CallbackMetadata -> Item[3] -> Value;\n $this -> transactionDate = $this -> response -> stkCallback -> CallbackMetadata -> Item[4] -> Value;\n $this -> phoneNumber = $this -> response -> stkCallback -> CallbackMetadata -> Item[5] -> Value;\n }", "title": "" }, { "docid": "207ab75abfb00f775d300504f25a72c3", "score": "0.45495576", "text": "public function resolvePaymentsAction()\n {\n $dto = Command\\Transaction\\ResolveOutstandingPayments::create([]);\n\n $result = $this->handleCommand([$dto]);\n\n return $this->handleExitStatus($result);\n }", "title": "" }, { "docid": "61113aa733b533f492ee470fd2792f5b", "score": "0.45458788", "text": "public function capture_pending_payments() {\n\t\t$payments = Group_Buying_Payment::get_pending_payments();\n\t\tforeach ( $payments as $payment_id ) {\n\t\t\t$payment = Group_Buying_Payment::get_instance( $payment_id );\n\t\t\t$this->capture_payment( $payment );\n\t\t}\n\t}", "title": "" }, { "docid": "b8380b47cc5954c147af2e027680b34b", "score": "0.45392585", "text": "public function load()\n {\n foreach ($this->loaders as $loader){\n $loader->load();\n $loader->save();\n }\n }", "title": "" }, { "docid": "755b8589f7cd27d142831896ef966c34", "score": "0.45370677", "text": "private function load() {\n\n\t\t$this->oStaticBlock = Relation::getSingle('pagemodule', 'staticblock', $this->oPageModule);\n\n\t}", "title": "" }, { "docid": "a6a4085189bb4ccc7d46c75abb35dc71", "score": "0.45370466", "text": "protected function _load_bill()\n\t{\n\t\t$this->person->bill = new \\PSU\\AR\\Bill($this->person, $this->person->term_code);\n\t}", "title": "" }, { "docid": "7cac13f33f8243492b3e939109e919ce", "score": "0.45369807", "text": "public function onPaymentOrderLoad(PaymentOrderLoadEvent $event)\n {\n $cart = $this\n ->cartWrapper\n ->loadCart();\n\n $order = $this\n ->cartOrderTransformer\n ->createOrderFromCart($cart);\n\n $event\n ->getPaymentBridge()\n ->setOrder($order);\n }", "title": "" }, { "docid": "c436cb05049a256c91412dc4c3b20972", "score": "0.45355368", "text": "private function load() {\n\t\t\ttry {\n\t\t\t\t// Get and save account data to object\n\t\t\t\t$sql = \"SELECT * FROM accounts JOIN account_type USING (type_id) WHERE account_id = $this->id;\";\n\t\t\t\t$result = $this->db->query($sql);\n\t\t\t\tif ($result && $result->num_rows == 1) {\n\t\t\t\t\t$row = $result->fetch_assoc();\n\t\t\t\t\t$this->balance = $row['balance'];\n\t\t\t\t\t$this->type = $row['type_name'];\n\t\t\t\t\t$this->min_balance = $row['min_balance'];\n\t\t\t\t}\n\n\t\t\t\t// Get and save customer_id list\n\t\t\t\t$sql = \"SELECT * FROM customer_account WHERE account_id = $this->id;\";\n\t\t\t\t$result = $this->db->query($sql);\n\t\t\t\tif ($result) {\n\t\t\t\t\tunset($this->customers);\n\t\t\t\t\t$this->customers = array();\n\t\t\t\t\twhile ($row = $result->fetch_assoc()) {\n\t\t\t\t\t\tarray_push($this->customers, $row['customer_id']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception $e) {\n\t\t\t\techo \"There was an error loading the account: \".$e->getMessage();\n\t\t\t\texit();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "812fe8a751965c2233e846dc1450ffb8", "score": "0.45342854", "text": "public function __invoke(Request $request, string $amount)\n {\n $apiContext = new ApiContext(new OAuthTokenCredential(config('paypal.client_id'), config('paypal.secret')));\n $apiContext->setConfig(config('paypal.settings'));\n\n if (!in_array($amount, [3, 5, 7, 11, 12, 15, 20, 25])) {\n return Redirect::route('store')->with(['error' => 'You cannot topup this amount.']);\n }\n\n $payer = (new Payer)\n ->setPaymentMethod('paypal');\n\n $item = (new Item)\n ->setName('Topup Balance')\n ->setCurrency('GBP')\n ->setPrice($amount)\n ->setQuantity(1);\n\n $itemList = (new ItemList)\n ->setItems([$item]);\n\n $amount = (new Amount)\n ->setCurrency('GBP')\n ->setTotal($amount);\n\n $redirectUrls = (new RedirectUrls)\n ->setReturnUrl(route('paypal.verify'))\n ->setCancelUrl(route('store'));\n\n $transaction = (new Transaction)\n ->setAmount($amount)\n ->setItemList($itemList)\n ->setDescription(sprintf('%s account balance topup', config('habbo.site.shortname')));\n\n $payment = (new Payment)\n ->setIntent('Sale')\n ->setPayer($payer)\n ->setRedirectUrls($redirectUrls)\n ->setTransactions([$transaction]);\n\n try {\n $payment->create($apiContext);\n } catch (PayPalConnectionException $e) {\n echo $e->getCode();\n echo $e->getData();\n die($e);\n }\n\n foreach ($payment->getLinks() as $link) {\n if ($link->getRel() == 'approval_url') {\n $redirect_url = $link->getHref();\n break;\n }\n }\n\n Session::put('paypal_payment_id', $payment->getId());\n if (isset($redirect_url)) {\n return Redirect::away($redirect_url);\n }\n\n Session::put('error', 'Unknown error occurred');\n return Redirect::route('store');\n }", "title": "" }, { "docid": "28500f54f3d701339355f4bbd315022c", "score": "0.45193705", "text": "public function load()\n {\n if ($this->loaded) {\n return;\n }\n\n $this->loaded = true;\n }", "title": "" }, { "docid": "183eda4c69f2f8f1989e2fcb24874102", "score": "0.4519071", "text": "public function load_response(){\n\t\tif(!$this->payment_system){\n\t\t\tdie('The payment system is not setted. Please check the controller.');\n\t\t}else{ // The payment system is setted, process\n\t\t\trequire_once ROOT.DS.'vendors'.DS.'xpay'.DS.$this->payment_system.DS.'Xpay_Response.php';\n\t\t\t$this->Response = new Xpay_Response;\n\t\t}\n\t}", "title": "" }, { "docid": "57bd4b9f2965138ad280c6d68fd50cda", "score": "0.4513245", "text": "public function paymentAction() {\n /**\n * if not logged in\n */\n if (! Mage::getSingleton ( 'customer/session' )->isLoggedIn ()) {\n /**\n * Redirect to login page.\n */\n $this->_redirectUrl ( Mage::helper ( 'customer' )->getLoginUrl () );\n }\n /**\n * unset BankCountryCode to session\n */\n if (Mage::getSingleton ( 'customer/session' )->getBankCountryCode ()) {\n Mage::getSingleton ( 'customer/session' )->unsBankCountryCode ();\n }\n /**\n * Unset bank currency code to session.\n */\n if (Mage::getSingleton ( 'customer/session' )->getBankCurrencyCode ()) {\n Mage::getSingleton ( 'customer/session' )->unsBankCurrencyCode ();\n }\n /**\n * Rendering laod and render layout\n */\n $this->loadLayout ();\n $this->_initLayoutMessages ( 'catalog/session' );\n /**\n * if not logged in\n */\n if (! Mage::getSingleton ( 'customer/session' )->isLoggedIn ()) {\n /**\n * Set login redirect url.\n */\n $this->_redirectUrl ( Mage::helper ( 'customer' )->getLoginUrl () );\n } else {\n /**\n * Set page title.\n */\n $this->getLayout ()->getBlock ( 'head' )->setTitle ( $this->__ ( 'Payout Preference' ) );\n }\n $this->renderLayout ();\n }", "title": "" }, { "docid": "a3b1755d608a2185da4537929cf5026d", "score": "0.45082307", "text": "function initOrderPayment() ;", "title": "" }, { "docid": "fae58742f75c7d0ccc143a37238b58da", "score": "0.45066458", "text": "protected function setupPaybill()\n {\n $this->paybillNumber = mconfig('finance.mpesa.paybill_number');\n $this->passkey = mconfig('finance.mpesa.passkey');\n $this->demo = mconfig('finance.mpesa.demo');\n }", "title": "" }, { "docid": "afc63af5dcb5eb8231e3850b21f31b26", "score": "0.45023736", "text": "public function process_checkout()\n {\n }", "title": "" }, { "docid": "ef3e948468fa5f7f7b32a11faaf785a2", "score": "0.45003203", "text": "function load_incoming_stock()\n { \n $this->data['title'] = 'Incoming Purchases';\n $this->data['incoming']=$this->inventory_model->get_purchase_orders();\n $this->data['main_content'] = 'inventory/expected';\n $this->load->view('includes/template', $this->data);\n }", "title": "" }, { "docid": "19d89faba98331b1678d508636d474c5", "score": "0.44934234", "text": "private function load_dependencies() {\n \n /**\n\t\t * The class responsible for orchestrating the actions and filters of the\n\t\t * core plugin.\n\t\t */\n\t\trequire_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-opt-rewards-loader.php';\n\n\t\t/**\n\t\t * The class responsible for defining all actions that occur in the admin area.\n\t\t */\n\t\trequire_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-opt-rewards-admin.php';\n\t\t\n\t\t/**\n\t\t * The class responsible for defining all actions that occur in the public area.\n\t\t */\n\t\trequire_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-opt-rewards-public.php';\n\n\t\t$this->loader = new Opt_Rewards_Loader();\n\n\t}", "title": "" }, { "docid": "19de00ffc26332bfb915542be1b5308b", "score": "0.44898427", "text": "private function checkoutData()\n {\n return [];\n }", "title": "" }, { "docid": "1a50cf3f33fa9f68c9ccf63f1f07aad3", "score": "0.44845408", "text": "public function load() {\n\t\tadd_filter( P4FB_KEY_PREFIX . 'crm_is_configured_hubspot', [ $this, 'crm_is_configured' ] );\n\t\tadd_action( P4FB_KEY_PREFIX . 'send_entry_hubspot', [ $this, 'send_entry' ], 10, 2 );\n\t}", "title": "" }, { "docid": "ccbbaf92b65e16fb0dad2935c852590d", "score": "0.44824624", "text": "private function __construct(){\n\t\tadd_action( 'init', array($this,'change_payouts_structure' ),10);\n\n //Touchpoints settings\n add_action('init',array($this,'check_touchpoints'));\n add_filter('wplms_touch_points',array($this,'add_commissions_touch_point'));\n\n // Mails and notifications\n add_filter('bp_course_all_mails',array($this,'set_format_for_emails'));\n add_filter( 'bp_course_format_notifications',array($this,'set_format_for_notifications') ,11,5);\n\n\n add_action('wplms_request_payouts',array($this,'add_payout_requested_activity'),10,2);\n add_action('wplms_payout_paid',array($this,'add_payout_paid_activity'),10,3);\n\n $this->date_format_map = array(\n 'F j, Y' => 'MM d, yy',\n 'Y-m-d' => 'yy-mm-dd',\n 'm/d/Y' => 'mm/dd/yy',\n 'd/m/Y' => 'dd/mm/yy',\n );\n $this->date_format = get_option('date_format');\n\t\t\n\t}", "title": "" }, { "docid": "9835f5bfde5548c6584396e60004aeda", "score": "0.44758776", "text": "function load_incoming_stock_store()\n { \n $this->data['title'] = 'Incoming Purchases';\n $this->data['incoming']=$this->inventory_model->get_purchase_orders();\n $this->data['main_content'] = 'inventory/expected_store';\n $this->load->view('includes/template', $this->data);\n }", "title": "" }, { "docid": "1566694963a26c044117408b0c9968c4", "score": "0.44739115", "text": "public function __construct()\n {\n\n if (isset($_GET['next_state'])) {\n if ($this->getCurrentStatus() !== $_GET['next_state']) {\n $states = file_get_contents(\"states.db\");\n if ($_GET['next_state'] === DocumentState::WAITING_FOR_PAYMENT && $this->isPayed()) {\n $states .= $this->getPreviousStatus() . \";\";\n } else {\n $states .= $_GET['next_state'] . \";\";\n }\n file_put_contents('states.db', $states);\n }\n }\n if (isset($_GET['purchase_type'])) {\n file_put_contents('payed.db', $_GET['purchase_type']);\n }\n if (isset($_GET['meeting'])) {\n file_put_contents('meeting.db', 'completed');\n }\n }", "title": "" }, { "docid": "7edc5b97675a4552ac2b6a5e598944a0", "score": "0.44728085", "text": "public function setup() {\r\n\t\t$this->payment->Amount->Amount = $this->paymentData['Amount'];\r\n\t\t$this->payment->Amount->Currency = $this->paymentData['Currency'];\r\n\t\t$this->payment->Reference = isset($this->paymentData['Reference']) ? $this->paymentData['Reference'] : null;\r\n\t\t$this->payment->Status = Payment::PENDING;\r\n\t\t$this->payment->Method = $this->methodName;\r\n\t\t$this->payment->write();\r\n\t}", "title": "" }, { "docid": "16986e3aa84341380b563f0785a0dd15", "score": "0.44726634", "text": "function cache_payrolls()\n {\n $threeWeeksBack = mktime(0, 0, 0, date(\"m\") , date(\"d\")-21,date(\"Y\"));\n ini_set('memory_limit', '-1');\n echo 'Writing Paystub transmittals 3 weeks back...';\n $options = array(\n XML_SERIALIZER_OPTION_INDENT => ' ',\n XML_SERIALIZER_OPTION_RETURN_RESULT => true\n );\n $serializer = &new XML_Serializer($options);\n $this->xml_home = Configure::read('xml_home');\n $xml_home = $this->xml_home;\n $payrolls = $this->find('all',array(\n 'conditions'=>array('date >='.date('Y-m-d',$threeWeeksBack))\n ));\n\n $this->EmployeesPayment->Employee->unbindModel(array('belongsTo' => array('State'),),false);\n foreach ($payrolls as $pay)\n {\n $pay = $this->add_transmittal_info_to_payment($pay);\n $this->cache_payroll($pay,$serializer,$xml_home);\n }\n }", "title": "" }, { "docid": "a048ec673e137939ea19f346a7f82ca5", "score": "0.44697535", "text": "public function load() {\r\n\t\t$this->includes();\r\n\t\t$this->inits();\r\n\t}", "title": "" }, { "docid": "b2948ae01d7e641759033b785a7a9436", "score": "0.4463178", "text": "private function _loadPayments()\n\t{\n\t\t// Get all payment records for the account\n\t\t$oQuery \t= new Query();\n\t\t$mResult\t= $oQuery->Execute(\"SELECT\t\tp.id AS payment_id, \n\t\t\t\t\t\t\t\t\t\t \tp.paid_date AS paid_date, \n\t\t\t\t\t\t\t\t\t\t \t\tpt.name AS payment_type_name, \n\t\t\t\t\t\t\t\t\t\t \t(p.amount * pn.value_multiplier) AS amount,\n\t\t\t\t\t\t\t\t\t\t\t\t\tp.transaction_reference AS transaction_reference,\n \t\t\t\t\t\t\t\t\t\t\t\t\tprr.payment_reversal_type_id AS payment_reversal_type_id,\n\t\t\t\t\t \t\t\t\t\t\tprr_reversed.payment_reversal_type_id AS reversed_by_payment_reversal_type_id,\n\t\t\t\t\t\t\t\t\t\t\t\t\tprr.name AS payment_reversal_reason_name\n\t\t\t\t\t\t\t\t\t\tFROM\t\tpayment p\n\t\t\t\t\t\t\t\t\t\tJOIN \tpayment_nature pn ON (pn.id = p.payment_nature_id)\n\t\t\t\t\t\t\t\t\t\tLEFT JOIN\tpayment_type pt ON (pt.id = p.payment_type_id)\n\t\t\t\t\t\t\t\t\t\tLEFT JOIN payment_reversal_reason prr ON (prr.id = p.payment_reversal_reason_id)\n\t\t\t\t\t\t\t\t\t\tLEFT JOIN\tpayment p_reversed ON (p_reversed.reversed_payment_id = p.id)\n\t\t\t\t\t\t\t\t\t\tLEFT JOIN payment_reversal_reason prr_reversed ON (prr_reversed.id = p_reversed.payment_reversal_reason_id)\n\t\t\t\t\t\t\t\t\t\tWHERE\t\tp.account_id = \".DBO()->Account->Id->Value.\";\");\n\t\tif ($mResult === false)\n\t\t{\n\t\t\tthrow new Exception(\"Failed to get payments. \".$oQuery->Error());\n\t\t}\n\t\t\n\t\t$aPayments = array();\n\t\twhile ($aRow = $mResult->fetch_assoc())\n\t\t{\n\t\t\t$aPayments[] = $aRow;\n\t\t}\n\t\treturn $aPayments;\n\t}", "title": "" }, { "docid": "155ddedb6703a1b6ddc814af1a4f493c", "score": "0.44617552", "text": "public function loadPlans()\r\n {\r\n $pa = json_decode($this->listPlans(), true);\r\n foreach ($pa['plans'] as $plan) {\r\n $id = $plan['id'];\r\n $this->ids[] = $id;\r\n $this->plan[$id] = $plan;\r\n }\r\n $this->total_plans = $pa['meta']['total'];\r\n }", "title": "" }, { "docid": "ab23ac95a1beb5b7881e3d114c255f02", "score": "0.4457809", "text": "public function getPayments()\n {\n }", "title": "" }, { "docid": "23610c38b1d21bd9fb4e1133d25e6736", "score": "0.44507796", "text": "public function paypageAction()\n {\n $this->loadLayout();\n $this->renderLayout();\n }", "title": "" }, { "docid": "c891f8ceebe27016d9da60100c9b097e", "score": "0.44334856", "text": "private function load(){\n\t\t$data = $this->taskman->getRawData($this->getId());\n\t\t$this->init_values($data);\n\t}", "title": "" }, { "docid": "31834a3ba050d686f2cffe781bcd5d71", "score": "0.4433359", "text": "public function load() {\n if ($record = db_query(\"SELECT imported, config, state, fetcher_result FROM {feeds_source} WHERE id = :id AND feed_nid = :nid\", array(':id' => $this->id, ':nid' => $this->feed_nid))->fetchObject()) {\n // While FeedsSource cannot be exported, we still use CTool's export.inc\n // export definitions.\n ctools_include('export');\n $this->export_type = EXPORT_IN_DATABASE;\n $this->imported = $record->imported;\n $this->config = unserialize($record->config);\n if (!empty($record->state)) {\n $this->state = unserialize($record->state);\n }\n if (!is_array($this->state)) {\n $this->state = array();\n }\n if (!empty($record->fetcher_result)) {\n $this->fetcher_result = unserialize($record->fetcher_result);\n }\n }\n }", "title": "" }, { "docid": "79482943d8fd7b274d797a257db3f325", "score": "0.44293952", "text": "public function from_payflow_toDB()\n\t{\n\t\tif($this->input->is_cli_request()){\n\t\t\n\t\t$this->load->helper ('date');\n\t\t$this->load->model ('Guerrero_model');\n\t\t$this->load->library ('Payflow');\n\t\t$last_counts = $this->Guerrero_model->get_last_seven_money_entries();\n\t\t// setup payflow variables \n\t\t$this->payflow->PARTNER = 'verisign';\n\t\t$this->payflow->VENDOR = 'rmfoundation';\n\t\t$this->payflow->USER = 'guerreros';\n\t\t$this->payflow->PWD = '00guerreroscash00';\n\t\t$this->payflow->environment = 'live';\n\t \t\n\t \t\n\t \t//$date = date(\"Y-m-d\", strtotime(\"-1 day\"));\n\t \t$date = date('Y-m-d');\n\t \t$money = array(\n\t \t\t 'per_day' => 0, \n\t \t\t 'total_money' => $last_counts[6]->total_money\n\t \t);\n\t \t/* this for is for manually update \nfor ($i = 0; $date != '2012-04-04'; $i++)\n\t \t{\n*/\t\n\t \t\n\t \t\t\t\n\t\t$parameters = array(\n\t \t\t\t\t\t'start_date'=> $date.' 00:00:00',\n\t \t\t\t\t\t'end_date'\t=> $date.' 23:59:59'\n\t \t\t\t\t);\n\t \t\t\t\t\n\t\t$response = $this->payflow->run_report_request('CustomReport', $parameters);\n\t \t\n\t \t$responseObj = $this->payflow->parse_xml_response($response);\n\t\t$reportId = $responseObj->runReportResponse->reportId;\n\t\t\n\t\t$response = $this->payflow->get_result_request($reportId);\n\t\t\n\t\t$response = $this->payflow->get_metadata_request($reportId);\n\t\t\n\t\t$responseObj = $this->payflow->parse_xml_response($response);\n\t\t\n\t\t$fields = $this->payflow->generate_field_array($responseObj);\n\t\t\n\t\t$response = $this->payflow->get_data_request($reportId);\n\t\t\n\t\t\t\t//print_r($response);\t\t\n\t\t$responseObj = $this->payflow->parse_xml_response($response);\n\t\t\t//print_r($responseObj);\n\t\t\t\n\t\tif ($responseObj->baseResponse->responseMsg =='Request has completed successfully')\n\t\t{\n\t\t\t\n\t\t\t$data = $this->payflow->generate_data_array($responseObj, $fields);\n\t\t\n\t\n\t\t\t foreach( $data as $t)\n\t\t\t {\n\t\t\t \t//echo $t['Recurring'];\n\t\t\t \tif($t['Transaction State'] == 9 && (int)$t['Amount']/100 == 2) //usar los tres amounts \n\t\t\t \t{\n\t\t\t \t\t//echo ((int)$t['Amount'])/100 . '<br>';\n\t\t\t \t\t$money['per_day'] += ((int)$t['Amount'])/100;\n\t\t\t \t}\n\t\t\t \telse if(((int)$t['Amount']/100 == 10 || (int)$t['Amount']/100 == 25 || (int)$t['Amount']/100 == 50 ) && $t['Transaction State'] == 8) \n\t\t\t \t{\n\t\t\t \t$money['per_day'] += ((int)$t['Amount'])/100;\n\t\t\t \t}\n\t\t\t }//end data foreach\n\t\t\t \n\t\t }\n\t\t else{\n\t\t \t\n\t\t \t$money['per_day'] = 0;\n\t\t }\n\t\t $money['total_money'] += $money['per_day'];\n\t\t $money['day_date'] = $date;\n\t\t \n\t\t $result = $this->Guerrero_model->insert_money($money);\n\t\t \n\t\t if($result)\n\t\t {\n\t\t \techo \"Good Job, inserted : per_day:\".$money['per_day'].\", day_date:\".$money['day_date'].\", total_money:\".$money['total_money'].\". Inserted date: \".mnow() ;\n\t\t }\n\t\t else{\n\t\t \techo \"Something went wrong in the insert_money() function\";\n\t\t }\n\t\t\n\t\t}\n\t\telse{\n\t\t\techo \"You can not access this script from web\";\n\t\t}\n\t\t//reset money per day\n\t\t//$money['per_day'] = 0;\n\t\t\n\t\t//increment date \t \t\n/*\n\t \t$date = strtotime($date); //assuming it's not a timestamp\\\n\t\t$date = $date + (60 * 60 * 24); //increase date by 1 day\n\t\t$date = date('Y-m-d', $date);\n*/\n\t\t\n\t\t\n\t\t\n\t\t//}//end perday for\n\n\t\n\t\n\t}", "title": "" }, { "docid": "0b5fed067b8a85b840a6adafcb7c7538", "score": "0.44251674", "text": "protected function loadData() {\n\n $this->loadSuccessCase();\n }", "title": "" }, { "docid": "d3caae11773ecd334ee7c14dff9afda8", "score": "0.4421842", "text": "public function TransferToProvider()\n\t\t{\n\t\t\t$total = $this->GetGatewayAmount();\n\t\t\t$this->_installid = trim($this->GetValue(\"installid\"));\n\t\t\t$this->_currency = $this->GetValue(\"currency\");\n\t\t\t$testmode_on = $this->GetValue(\"testmode\");\n\n\t\t\t// Load the pending order\n\t\t\t$billingDetails = $this->GetBillingDetails();\n\t\t\t$phone = $billingDetails['ordbillphone'];\n\t\t\t$phone = preg_replace(\"#[^\\+0-9]+#\", \"\", $phone);\n\n\t\t\t$country = GetCountryISO2ById($billingDetails['ordbillcountryid']);\n\n\t\t\tif($testmode_on == \"YES\") {\n\t\t\t\t$this->_testmode = \"100\";\n\t\t\t} else {\n\t\t\t\t$this->_testmode = \"0\";\n\t\t\t}\n\n\t\t\t$hiddenFields = array(\n\t\t\t\t'address' => $billingDetails['ordbillstreet1'].' '.$billingDetails['ordbillstreet2'],\n\t\t\t\t'country' => $country,\n\t\t\t\t'postcode' => $billingDetails['ordbillzip'],\n\t\t\t\t'tel' => $phone,\n\t\t\t\t'email' => $billingDetails['ordbillemail'],\n\t\t\t\t'instId' => $this->_installid,\n\t\t\t\t'cartId' => $_COOKIE['SHOP_ORDER_TOKEN'],\n\t\t\t\t'M_customerToken' => $_COOKIE['SHOP_SESSION_TOKEN'],\n\t\t\t\t'currency' => $this->_currency,\n\t\t\t\t'amount' => $total,\n\t\t\t\t'desc' => sprintf(GetLang('YourOrderFromX'), GetConfig('StoreName')),\n\t\t\t\t'testMode' => $this->_testmode\n\t\t\t);\n\n\t\t\t$this->RedirectToProvider('https://select.worldpay.com/wcc/purchase', $hiddenFields);\n\t\t}", "title": "" }, { "docid": "edb513a0501c6c2d4918aec37c37a217", "score": "0.44081286", "text": "public function orderLoad(OrderInterface $order);", "title": "" }, { "docid": "0923714ca1d268cf304f87f78c6e8074", "score": "0.44077268", "text": "public function __construct()\n {\n $this->paystack = new Paystack();\n }", "title": "" }, { "docid": "8462fdacdbc7bbf8afce831b30858c0f", "score": "0.44071218", "text": "public function execute()\n {\n \n $writer = new \\Zend\\Log\\Writer\\Stream(BP . '/var/log/payoutcal.log');\n $logger = new \\Zend\\Log\\Logger();\n $logger->addWriter($writer);\n \n $filename = BP . '/var/import/manual_payout/Manual_Paid_Orders.csv';\n $fp = fopen($filename, \"r\"); \n $headerLine = true;\n $orderIds = [];\n while (($row = fgetcsv($fp, \"5400\", \",\")) != FALSE) {\n if ($headerLine) {\n $headerLine = false;\n } else {\n $orderId = $row[0]; //order id \n $payOutDate = $row[1]; //payout date\n\n $order = $this->order->create()->getCollection()\n ->addFieldToFilter(\"increment_id\",array(\"like\"=>\"%\".$orderId.\"%\"))\n ->getFirstItem();\n $sellerId = $this->getSellerIdByOrderId($order->getEntityId());\n $sellerData[$order->getIncrementId()] = $sellerId;\n $orderIds[] = $order->getIncrementId();\n \n }\n \n }\n \n $salesListCollection = $this->sales->getCollection()\n ->addFieldToSelect(\"seller_id\")\n ->addFieldToFilter(\"magerealorder_id\",[\"in\"=> implode(\",\",$orderIds)]);\n $salesListCollection->getSelect()->group(\"seller_id\");\n \n \n if(count($salesListCollection) > 0){\n foreach($salesListCollection as $sellerId){\n $orderEntityId = [];\n $sellerIds = $sellerId['seller_id'];\n $sellerOrders = array_keys($sellerData,$sellerIds);\n if(count($sellerOrders) > 0){\n foreach($sellerOrders as $sellerOrder){\n $orderEntityId[] = $sellerOrder;\n }\n \n }\n \n $sellerId = $sellerId->getData(\"seller_id\");\n \n $payOutDate = $row[1]; //payout date\n $transcationAmount = 200; //payout date\n $bakewayTrasAmount = 100;\n $sellerTransId = $this->checkTransId($sellerId ,$payOutDate);\n $bakewayTransId = $this->payouthelper->checkBakewayTransId();\n $logger->info(\"seller id \".$sellerId);\n $logger->info(\"seller id \".$sellerId .\" antrans key are \".$sellerTransId.\" and bakeway trans key \".$bakewayTransId); \n /**\n * adding record to seller_transaction\n */\n \n $sellerTrans = $this->_objectManager->create(\n 'Webkul\\Marketplace\\Model\\Sellertransaction'\n );\n $sellerTrans->setTransactionId($sellerTransId);\n $sellerTrans->setTransactionAmount($transcationAmount);\n $sellerTrans->setType('Manual');\n $sellerTrans->setMethod('Manual');\n $sellerTrans->setSellerId($sellerId);\n $sellerTrans->setCustomNote(Null);\n $sellerTrans->setCreatedAt(\"2018-08-17 12:54:50\");\n $sellerTrans->setUpdatedAt(\"2018-08-17 12:54:50\");\n $sellerTrans->setSellerPendingNotification(1);\n $sellerTrans->setTransactionStatus(2);\n $sellerTrans->setTransactionInvoiceNumber($this->payouthelper->getTransactionInvoiceNo());\n $sellerTrans = $sellerTrans->save();\n $sellerTransEntityId = $sellerTrans->getId();\n $transactionNumber = $sellerTrans->getTransactionId();\n \n $logger->info(\"invoice no \".$this->payouthelper->getTransactionInvoiceNo());\n $logger->info(\"seller trans table entity id is \".$sellerTransEntityId);\n $logger->info(\"seller trans table trans id is \".$transactionNumber);\n /**\n *add record to bakeway trans. table \n */\n \n $bakewayTrans = $this->_objectManager->create(\n 'Bakeway\\PayoutsCalculation\\Model\\Bakewaytransaction'\n );\n $bakewayTrans->setTransactionId($bakewayTransId);\n $bakewayTrans->setSellerTransactionId($sellerTransId);\n $bakewayTrans->setTransactionAmount($bakewayTrasAmount);\n $bakewayTrans->setCreatedAt(\"2018-08-17 12:54:50\");\n $bakewayTrans->setUpdatedAt(\"2018-08-17 12:54:50\");\n $bakewayTrans->setTransactionStatus(2);\n $bakewayTrans = $bakewayTrans->save();\n $bakewayTransEntityId = $bakewayTrans->getId();\n $transactionNumber = $bakewayTrans->getTransactionId();\n $logger->info(\"bakeway trans table entity id is \".$bakewayTransEntityId);\n $logger->info(\"bakeway trans table trans id is \".$transactionNumber);\n \n \n $saleslistids = implode(\",\",$orderEntityId);\n $collection = $this->_objectManager->create(\n 'Webkul\\Marketplace\\Model\\Saleslist'\n )->getCollection()\n ->addFieldToFilter('magerealorder_id', ['in' => $saleslistids])\n ->addFieldToFilter('order_id', ['neq' => 0])\n ->addFieldToFilter('paid_status', 0)\n ->addFieldToFilter('cpprostatus', ['neq' => 0]);\n $collection->getSelect()->where('parent_item_id IS NULL'); \n \n foreach ($collection as $entityId) {\n $logger->info(\"updating these value in trans table id is \".$entityId->getEntityId());\n $collection->setSalesListData(\n $entityId->getEntityId(),\n ['trans_id' => $sellerTransEntityId]\n );\n }\n \n }\n \n }\n \n \n }", "title": "" }, { "docid": "340872f464e8b6954cbc998cfcaa7a6f", "score": "0.4404615", "text": "public function loadEverything()\n {\n $data = new Config($this->getDataFolder() . 'auctions.json', Config::JSON);\n foreach ($data->getAll() as $aucId => $aucData) {\n $this->auctions[$aucId] = $aucData;\n }\n }", "title": "" }, { "docid": "64c8058278bb9af7472c238764052c57", "score": "0.4396259", "text": "public function loadHistoryStoreAction()\n {\n $orderId = $this->Request()->getParam('orderId');\n $history = new Shopware_Plugins_Frontend_RpayRatePay_Component_History();\n $historyData = $history->getHistory($orderId);\n $this->View()->assign(\n [\n 'data' => $historyData,\n 'success' => true\n ]\n );\n }", "title": "" }, { "docid": "43dcddc3d7107dd4c87e95b10fd21278", "score": "0.43955764", "text": "public function __construct(Payroll $payslip)\n {\n $this->payslip=$payslip;\n }", "title": "" }, { "docid": "fe0f94218de6cff0b077fbbefbda1e96", "score": "0.43951064", "text": "public function form()\n {\n if (($order = wc_get_order(get_query_var('order-pay'))) && $order->needs_payment() && $this->canPay()) {\n Config::setByCurrency($order->get_currency());\n\n $payment = new PaymentRequest($order);\n\n include_once __DIR__ . '/../includes/form.php';\n }\n }", "title": "" }, { "docid": "f32bceb2d8ba74a71a5ecf2bc643d740", "score": "0.43788728", "text": "public function load($flow) {\n\t\t$this->clips->runWithEnv('FLOW', function($clips, $flow) {\n\t\t\t$clips->reset();\n\t\t\t$clips->load($flow);\n\t\t}, $flow);\n\t}", "title": "" }, { "docid": "657b7c794c8b8ffcfb6e8aad088ab7be", "score": "0.43773973", "text": "protected function fillData()\n {\n global $language, $currency, $page;\n\n $this->data['payment_icon'] = $this->getIcon();\n $this->data['payment_name'] = 'RatePAY';\n $this->data['img_path'] = $this->_webRoot . 'images/';\n $this->data['country_code'] = _STORE_COUNTRY;\n $this->data['language_code'] = $language->code;\n $this->data['currency_code'] = $currency->code;\n if ($_SESSION['customer']->customers_id > 0) {\n $dob = '';\n if (!empty($_SESSION['customer']->customer_default_address['customers_dob'])) {\n $dob = explode('.', $_SESSION['customer']->customer_default_address['customers_dob']);\n $dob = $dob[2] . \"-\" . $dob[1] . \"-\" . $dob[0];\n }\n\n\n $this->data['ratepay']['customer'] = array(\n 'first_name' => $_SESSION['customer']->customer_default_address['customers_firstname'],\n 'last_name' => $_SESSION['customer']->customer_default_address['customers_lastname'],\n 'title' => '',\n 'email' => $_SESSION['customer']->customer_info['customers_email_address'],\n 'date_of_birth' => $dob,\n 'gender' => $_SESSION['customer']->customer_default_address['customers_gender'],\n 'phone' => $_SESSION['customer']->customer_default_address['customers_phone'],\n 'fax' => $_SESSION['customer']->customer_default_address['customers_fax'],\n 'mobile' => '',\n 'company_name' => $_SESSION['customer']->customer_default_address['customers_company'],\n 'vat_id' => $_SESSION['customer']->customer_info['customers_vat_id'],\n 'nationality' => $_SESSION['customer']->customer_default_address['customers_country_code'],\n 'billing_address' => array(\n 'street' => $_SESSION['customer']->customer_payment_address['customers_street_address'],\n 'street_number' => '',\n 'zip' => $_SESSION['customer']->customer_payment_address['customers_postcode'],\n 'city' => $_SESSION['customer']->customer_payment_address['customers_city'],\n 'country' => $_SESSION['customer']->customer_payment_address['customers_country_code']\n ),\n 'shipping_address' => array(\n 'street' => $_SESSION['customer']->customer_shipping_address['customers_street_address'],\n 'street_number' => '',\n 'zip' => $_SESSION['customer']->customer_shipping_address['customers_postcode'],\n 'city' => $_SESSION['customer']->customer_shipping_address['customers_city'],\n 'country' => $_SESSION['customer']->customer_shipping_address['customers_country_code']\n )\n );\n }\n $this->handlePageAction($page->page_name, $page->page_action);\n }", "title": "" }, { "docid": "3a66859365d674777d59c3948a76afd5", "score": "0.4376877", "text": "function freeCheckoutBegin() {\n $data = isset($_SESSION['checkout.data'])? $_SESSION['checkout.data'] : new stdClass();\n\n $data->PAYMENT_DATE = date('Y-m-d H:i:s');\n $data->PAYMENT_REF = strtoupper(substr(md5($data->PAYMENT_DATE), 0, 17));\n\n $_SESSION['checkout.data'] = $data;\n\n $this->onPaymentCompleted();\n }", "title": "" }, { "docid": "498d41c526fd4441e58b92b4a21d528e", "score": "0.43669793", "text": "public function place()\n {\n \tMage::dispatchEvent('sales_order_payment_place_start', array('payment' => $this));\n $order = $this->getOrder();\n\n $this->setAmountOrdered($order->getTotalDue());\n $this->setBaseAmountOrdered($order->getBaseTotalDue());\n $this->setShippingAmount($order->getShippingAmount());\n $this->setBaseShippingAmount($order->getBaseShippingAmount());\n\n $methodInstance = $this->getMethodInstance();\n $methodInstance->setStore($order->getStoreId());\n\n $orderState = Mage_Sales_Model_Order::STATE_NEW;\n $orderStatus= false;\n\n $stateObject = new Varien_Object();\n\n /**\n * Do order payment validation on payment method level\n */\n $methodInstance->validate();\n $action = $methodInstance->getConfigPaymentAction();\n if ($action) {\n if ($methodInstance->isInitializeNeeded()) {\n /**\n * For method initialization we have to use original config value for payment action\n */\n $methodInstance->initialize($methodInstance->getConfigData('payment_action'), $stateObject);\n } else {\n $orderState = Mage_Sales_Model_Order::STATE_PROCESSING;\n switch ($action) {\n case Mage_Payment_Model_Method_Abstract::ACTION_ORDER:\n $this->_order($order->getBaseTotalDue());\n break;\n case Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE:\n $this->_authorize(true, $order->getBaseTotalDue()); // base amount will be set inside\n $this->setAmountAuthorized($order->getTotalDue());\n break;\n case Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE_CAPTURE:\n $this->setAmountAuthorized($order->getTotalDue());\n $this->setBaseAmountAuthorized($order->getBaseTotalDue());\n $this->capture(null);\n break;\n default:\n break;\n }\n }\n }\n\t\t\t\n $this->_createBillingAgreement();\n\n $orderIsNotified = null;\n \n if ($order->getIsThreeDSecurePending()) {\n\t\t\t$orderState = 'pending_payment';\n\t\t\t$orderStatus = 'csv_pending_threed_secure';\n\t\t\t$message = '3D Secure authentication need to be completed';\n\t\t\t$orderIsNotified = false;\n\t\t} else if ($order->getIsHostedPaymentPending()) {\n\t\t\t$order->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, true)->save();\n\t\t\t$orderStateHelper = Mage_Sales_Model_Order::STATE_PENDING_PAYMENT;\n\t\t\t$orderState = 'pending_payment';\n\t\t\t$orderStatus = 'csv_pending_hosted_payment';\n\t\t\t$message = 'Hosted Payment need to be completed';\n\t\t} else if ($order->getPayment()->getMethodInstance()->getCode() == 'cardsaveonlinepayments') {\n\t\t\t$orderState = 'processing';\n\t\t\tif(Mage::getModel('cardsaveonlinepayments/direct')->getConfigData('payment_action') == Mage_Paygate_Model_Authorizenet::ACTION_AUTHORIZE_CAPTURE) {\n\t\t\t\t$orderStatus = \"csv_paid\";\n\t\t\t} else if (Mage::getModel('cardsaveonlinepayments/direct')->getConfigData('payment_action') == Mage_Paygate_Model_Authorizenet::ACTION_AUTHORIZE) {\n\t\t\t\t$orderStatus = \"csv_preauth\";\n\t\t\t}\t\t\t\n\t\t\t$message = '';\n\t\t\t$orderIsNotified = false;\n\t\t} else if ($stateObject->getState() && $stateObject->getStatus()) {\n $orderState = $stateObject->getState();\n $orderStatus = $stateObject->getStatus();\n $orderIsNotified = $stateObject->getIsNotified();\t\t\n\t\t} else {\n\t\t\t$orderIsNotified = false;\n $orderStatus = $methodInstance->getConfigData('order_status');\n if (!$orderStatus) {\n $orderStatus = $order->getConfig()->getStateDefaultStatus($orderState);\n }\n }\n $isCustomerNotified = (null !== $orderIsNotified) ? $orderIsNotified : $order->getCustomerNoteNotify();\n $ordernote = $order->getCustomerNote();\n\t\tif ($ordernote) {\n\t\t\t$order->addStatusToHistory($order->getStatus(), $ordernote, $isCustomerNotified);\n\t\t}\t\t\n\n // add message if order was put into review during authorization or capture\n if ($order->getState() == Mage_Sales_Model_Order::STATE_PAYMENT_REVIEW) {\n if ($message) {\n $order->addStatusToHistory($order->getStatus(), $message, $isCustomerNotified);\n }\n }\n // add message to history if order state already declared\n elseif ($order->getState() && ($orderStatus !== $order->getStatus() || $message)) {\n $order->setState($orderState, $orderStatus, $message, $isCustomerNotified);\n }\n // set order state\n elseif (($order->getState() != $orderState) || ($order->getStatus() != $orderStatus) || $message) {\n $order->setState($orderState, $orderStatus, $message, $isCustomerNotified);\n }\n\n Mage::dispatchEvent('sales_order_payment_place_end', array('payment' => $this));\n\n return $this;\t\n }", "title": "" }, { "docid": "9763b881a8bd16c0335560775ed7038b", "score": "0.43651316", "text": "function setPays($pays) {\n $this->pays = $pays;\n }", "title": "" }, { "docid": "75118eaa94a9b53d53a6a153644c8046", "score": "0.43612054", "text": "public function load()\n {\n $return = [new \\Models\\Item(3, 'Chips', 3), new \\Models\\Item(3, 'Chips', 3)];\n\n $mock = \\Mockery::mock('\\DataAccess\\ItemsDAO');\n $mock->shouldReceive('getOrderedItems')->once()->andReturn($return);\n $mock->shouldReceive('setOrderedItems')->once()->with([new \\Models\\Item(3, 'Chips', 3)]);\n \\DataAccess\\ItemsDAO::setInstance($mock);\n }", "title": "" }, { "docid": "7e7d26947a112de97d0370e7eb68e780", "score": "0.4360454", "text": "public function loadUserPayPalUser()\n {\n }", "title": "" }, { "docid": "bd0c261289ea1dab6ef9294d85edfced", "score": "0.43583", "text": "private static function _create_checkout_page() {\n\t\t\tglobal $psts;\n\t\t\t$psts->create_checkout_page();\n\t\t}", "title": "" }, { "docid": "e8711f24176e053535ae1e65c4662c71", "score": "0.43554989", "text": "public function load() {\n }", "title": "" }, { "docid": "797bc3b13a9f822d60bc3a872a63190a", "score": "0.43539077", "text": "function initPayment() ;", "title": "" }, { "docid": "d0b4d98a153c2dc03f6588908daf312b", "score": "0.43520114", "text": "protected function prepareBlockData()\n {\n $order_id = -1 ;\n $api_key = $this->_helper->getConfig('payment/purchasedat/api_key');\n $apiClient = new APIClient($api_key);\n\n\t\t// verify the redirect comes from purchased.at\n\t\t// and fetch the corresponding transaction\n $result = $apiClient->fetchTransactionForRedirect();\n\n $error_message = \"\" ;\n $result_message = \"\" ;\n if(!$result->success) {\n $error_message = \"Request failed: \" . $result->errorCode;\n }\n else\n {\n $transaction = $result->result;\n\n\t\t\t// handle transactions that cannot become\n\t\t\t// successful anymore\n if( $transaction->getState()!='successful' &&\n $transaction->getState()!='pending' ) {\n $error_message = sprintf('Transaction not successful: id=%s, ' .\n 'state=%s<br>',\n $transaction->getId(),\n $transaction->getState()\n );\n if ($transaction->isTest()) {\n $error_message .= \"<br><strong>This was a TEST transaction</strong><br />\" ;\n }\n }\n else\n {\n //Everything went okay\n $customer = $transaction->getCustomer();\n $price = $transaction->getPrice();\n\n\t\t\t\t// Save quote to order\n\n $quote = $this->_cart->getQuote();\n $quote->setPaymentMethod('purchasedat'); //payment method\n $om = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n $customerSession = $om->get('Magento\\Customer\\Model\\Session');\n if(!$customerSession->isLoggedIn()) {\n $quote->setCustomerId(null)\n ->setCustomerEmail($customer->getEmail())\n ->setCustomerIsGuest(true)\n ->setCustomerGroupId(\\Magento\\Customer\\Model\\Group::NOT_LOGGED_IN_ID);\n }\n $quote->save(); //Now Save quote and your quote is ready\n\n // Set Sales Order Payment\n $quote->getPayment()->importData(['method' => 'purchasedat']);\n\n // Collect Totals & Save Quote\n $quote->collectTotals()->save();\n $order = $this->_quoteManagement->submit($quote);\n $order->setEmailSent(0);\n if($order->getEntityId()){\n $order_id = $order->getRealOrderId();\n } else {\n $order_id =-1;\n }\n $this->orderSender->send($order);\n $order->setBaseTotalPaid($price->getGross());\n $order->setTotalPaid($this->convertPrice($price->getGross()));\n\n\t\t\t\t// pending transactions are awaiting payment\n\t\t\t\t// and can become successful later\n if( $transaction->getState() == 'pending' ) {\n $result_message = 'We received your order, but are still ' .\n 'waiting for confirmation of the payment.<br>';\n }\n\n $result_message .= sprintf('Transaction details:<br />Id:%s<br />Customer:%s (country:%s)<br /> ' .\n 'Total price:%s %s',\n $transaction->getId(),\n $customer->getEmail(),\n $customer->getCountry(),\n $price->getGross(),\n $price->getCurrency()) ;\n\n if ($transaction->isTest()) {\n $result_message .= \"<br><strong>This was a TEST transaction</strong><br />\" ;\n }\n $this->_patModel->createMagentoTransaction($order, $result->result) ;\n }\n }\n $this->addData(\n [\n 'error_message' => $error_message,\n 'result_message' => $result_message,\n 'order_id' => $order_id\n\n ]\n );\n }", "title": "" }, { "docid": "326baead0e31968fb0e4a0e1042aee31", "score": "0.43488693", "text": "public function index()\n {\n\n\n $auth = new \\JJCaicedo\\PlaceToPay\\Models\\Authentication('6dd490faf9cb87a9862245da41170ff2', '024h1IlD', null);\n \\JJCaicedo\\PlaceToPay\\PlaceToPay::connect($auth, 'https://test.placetopay.com/soap/pse/?wsdl');\n $person = [\n 'document' => '123456',\n 'documentType' => 'CC',\n 'firstName' => 'AA',\n 'lastName' => 'BB',\n 'company' => 'NA',\n 'emailAddress' => 'abc123@gmail.com',\n 'address' => 'fake123',\n 'city' => 'Medellin',\n 'province' => 'Antioquia',\n 'country' => 'Colombia',\n 'phone' => '123',\n 'mobile' => '123'\n ];\n $person = new \\JJCaicedo\\PlaceToPay\\Models\\Person($person);\n $transactionRequest = [\n 'bankCode' => '1022',\n 'bankInterface' => '0',\n 'returnURL' => 'https://google.com',\n 'reference' => rand(1, 1000),\n 'description' => 'Hello world',\n 'language' => 'es',\n 'currency' => 'COP',\n 'totalAmount' => '100000',\n 'taxAmount' => '1000',\n 'devolutionBase' => '0',\n 'tipAmount' => '0',\n 'payer' => $person,\n 'buyer' => $person,\n 'shipping' => $person,\n 'additionalData' => null,\n 'ipAddress' => '175.0.0.1',\n 'userAgent' => 'php unit'\n ];\n $transactionRequest = new \\JJCaicedo\\PlaceToPay\\Models\\PSETransactionRequest($transactionRequest);\n $result = \\JJCaicedo\\PlaceToPay\\PlaceToPay::createTransaction($transactionRequest);\n $transactionInformation = \\JJCaicedo\\PlaceToPay\\PlaceToPay::getTransactionInformation($result->getTransactionID());\n return null;\n\n\n }", "title": "" }, { "docid": "078b62d9391243b500c283d30f36d77c", "score": "0.43439403", "text": "protected function loadInnerData()\n\t{\n\t\tglobal $USER;\n\n\t\tif (!$USER->IsAuthorized())\n\t\t{\n\t\t\t$this->errorCollection->setError(new Main\\Error(Loc::getMessage('SALE_ACCESS_DENIED')));\n\t\t\treturn;\n\t\t}\n\n\t\t$accountList = CSaleUserAccount::GetList(\n\t\t\tarray(\"CURRENCY\" => \"ASC\"),\n\t\t\tarray(\n\t\t\t\t\"USER_ID\" => (int)($USER->GetID()),\n\t\t\t\t\"CURRENCY\" => $this->order->getCurrency()\n\t\t\t),\n\t\t\tfalse,\n\t\t\tfalse,\n\t\t\tarray(\"ID\", \"CURRENT_BUDGET\", \"CURRENCY\", \"TIMESTAMP_X\")\n\t\t);\n\n\t\tif ($account = $accountList->Fetch())\n\t\t{\n\t\t\t$currencyList = CCurrencyLang::GetFormatDescription($account[\"CURRENCY\"]);\n\t\t\t$account['FORMATED_CURRENCY'] = trim(str_replace(\"#\", \"\", $currencyList['FORMAT_STRING']));\n\t\t\t$this->arResult['INNER_PAYMENT_INFO'] = $account;\n\t\t}\n\t}", "title": "" }, { "docid": "5920ece5702a6562a482f9d9f79a6f89", "score": "0.43419245", "text": "public function onLoadFromSession()\n {\n $data = TSession::getValue('form_step2_data');\n $this->form->setData($data);\n }", "title": "" }, { "docid": "9368f6871b6aff7e700acf4914c53984", "score": "0.43418634", "text": "function requireDefaultRecords() {\n\t\tparent::requireDefaultRecords();\n\n\t\tif (!DataObject::get_one('CheckoutPage')) {\n\t\t\t$page = new CheckoutPage();\n\t\t\t$page->Title = 'Checkout';\n\t\t\t$page->Content = '';\n\t\t\t$page->URLSegment = 'checkout';\n\t\t\t$page->ShowInMenus = 0;\n\t\t\t$page->writeToStage('Stage');\n\t\t\t$page->publish('Stage', 'Live');\n\n\t\t\tDB::alteration_message('Checkout page \\'Checkout\\' created', 'created');\n\t\t}\n\t}", "title": "" }, { "docid": "7d9ef8e40e2b29d567b505709d23214d", "score": "0.43362772", "text": "protected function setUpBanklink()\n {\n $this->protocol = new $this->protocolClass(\n $this->sellerId,\n __DIR__.'/../keys/IPizza/private_key.pem',\n '',\n __DIR__.'/../keys/IPizza/public_key.pem',\n $this->customRequestUrl\n );\n\n $this->bank = new $this->bankClass($this->protocol);\n }", "title": "" }, { "docid": "334c47ee998f8aa719c759f74ab3777f", "score": "0.43309692", "text": "protected function loadTimeslots(): void\n {\n $this->times = PrayerWheel::getTimeSlots();\n }", "title": "" }, { "docid": "57f9330b9c2555d1da4ae123f05d2606", "score": "0.43295887", "text": "public function __construct() {\r\n Loader::loadClass(\"User\");\r\n $this->_callMdl('paymentmethods', \"payment\");\r\n $this->_callMdl('shippingmethods', \"payment\");\r\n $this->_callMdl('orders', \"payment\");\r\n $this->_callMdl('transactions', \"payment\");\r\n }", "title": "" }, { "docid": "7fb66eba7dbaa979e85e64d6ab34c3a2", "score": "0.4320596", "text": "public function load() {\n if ($record = db_query(\"SELECT config, batch FROM {feeds_source} WHERE id = :id AND feed_nid = :nid\", array(':id' => $this->id, ':nid' => $this->feed_nid))->fetch()) {\n // While FeedsSource cannot be exported, we still use CTool's export.inc\n // export definitions.\n ctools_include('export');\n $this->export_type = EXPORT_IN_DATABASE;\n $this->config = unserialize($record->config);\n $this->batch = unserialize($record->batch);\n }\n }", "title": "" } ]
d41db1e19dc2f870519e27b02bf608c7
Determine whether or not givent stylist is booked for client for time increments
[ { "docid": "c0d699d5411dc52da609d70fd8db46ab", "score": "0.0", "text": "private function appointmentSet()\n {\n return self::whereIn('slot_begin', $this->increments)\n ->where('stylist_id', $this->stylist_id)\n ->where('client_id', $this->client_id)\n ->count() == count($this->increments);\n }", "title": "" } ]
[ { "docid": "6a923806c9c384c0d20bb54d20296eec", "score": "0.5813824", "text": "public function addAppointment() \n {\n\n // check if all available slots are open for the desired stylist \n // values set when instantiating class\n if ( $this->slotsOpenForDesiredStylist() ) {\n // update slots with client_id already instantiated\n $this->updateSlotsForStylist();\n return array_merge(self::STATUS_SUCCESS, ['message' => 'Appointment scheduled for your desired stylist']);\n }\n\n // if client has chosen flexible_in_stylist then broaden out search for times available for all stylists\n if ( $this->flexible_in_stylist ) {\n // method will return values found \n $slots_open_for_any_stylist = $this->slotsOpenForAnyStylist();\n\n // if there is more than zero then update a random stylist\n if ( $slots_open_for_any_stylist->count() != 0 ) {\n // get random row and convert to an array\n $random_stylist = $slots_open_for_any_stylist->random()->toArray();\n // update the slots for the selected stylist \n $this->updateSlotsForStylist($random_stylist['stylist_id']);\n return array_merge(self::STATUS_SUCCESS, [\n 'message' => 'Appointment scheduled for an alternate stylist ' . User::find($random_stylist['stylist_id'])->name\n ]);\n }\n }\n\n // if a client is flexible_in_time then broaden out the search for times available with a variance in minutes set by CONST FLEX_TIME_VARIANCE\n if ( $this->flexible_in_time ) {\n // bookFlexibleTime searches alternate times and alternate stylists if flexible_in_stylist is also true\n $status = $this->bookFlexibleTime();\n // $status is false if no times were found\n if ( $status ) {\n // if stylist_id is set then the appointment was booked for an alternate stylist\n if ( isset($status['stylist_id']) ) {\n return array_merge(self::STATUS_SUCCESS, [\n 'message' => 'Appointment scheduled for an alternate stylist ' . User::find($status['stylist_id'])->name . ', with an alternate time . ' . $status['slot_begin']\n ]); \n } else {\n return array_merge(self::STATUS_SUCCESS, [\n 'message' => 'Appointment scheduled for with an alternate time . ' . $status['slot_begin']\n ]); \n }\n }\n }\n\n return array_merge(self::STATUS_FAILED, ['message' => 'An appointment with the given criteria could not be found.']);\n }", "title": "" }, { "docid": "ada1f5bdac3e5aae8144061c14c7e218", "score": "0.5764313", "text": "public function hasCtime(){\n return $this->_has(13);\n }", "title": "" }, { "docid": "57f6241226a6141ff404dfa5ae6b2af8", "score": "0.55976194", "text": "protected function isRangingNeeded()\n {\n return true;\n }", "title": "" }, { "docid": "19c1a1086e9bf8811b3653860a89cdd5", "score": "0.5573453", "text": "public function canBeOrderedNow()\n {\n $now = new DateTime();\n $upto = DateTime::createFromFormat('H', $this->getServingUptoHour());\n\n return $now < $upto;\n }", "title": "" }, { "docid": "3d05f20c04a4c23dceb56759c571c753", "score": "0.556738", "text": "public function hasCtime(){\n return $this->_has(6);\n }", "title": "" }, { "docid": "1ba40ea84bc161c3172759df1b15650b", "score": "0.552259", "text": "protected function isRangingNeeded()\n {\n return false;\n }", "title": "" }, { "docid": "e628d74824441bc28729426264e6dd78", "score": "0.55222356", "text": "public function isInGrace() : bool\n {\n return $this->getRemainingDaysOfGrace() > 0;\n }", "title": "" }, { "docid": "dc5337f7fa2fe6022d7670346802b3e8", "score": "0.55221367", "text": "private function bookFlexibleTime()\n {\n $Datetime = self::convertToDateTimeObject($this->slot_begin);\n // create a new begining time of times to iterate through\n $new_slot_begin = self::subTimeVariance($Datetime);\n // get time increments to iterate through these should be times +- FLEX_TIME_VARIANCE\n $flex_increments = $this->getIncrements((self::FLEX_TIME_VARIANCE * 2) + 30, $new_slot_begin);\n\n // iterate through time increments and see if appointments are available for alternate increments\n foreach ( $flex_increments as $increment ) {\n $variance_datetime = self::convertToDateTimeObject($increment);\n $increments = $this->getIncrements($this->slot_length_min, $variance_datetime);\n if ( $this->slotsOpenForDesiredStylist($increments) ) {\n $this->updateSlotsForStylist($this->stylist_id, $increments);\n return [\n 'slot_begin' => $increment,\n ];\n }\n }\n\n if ( $this->flexible_in_stylist ) {\n // iterate through time increments and see if appointments are available for alternate increments & any stylist\n foreach ( $flex_increments as $increment ) {\n $variance_datetime = self::convertToDateTimeObject($increment);\n $increments = $this->getIncrements($this->slot_length_min, $variance_datetime);\n $slots_open_for_any_stylist = $this->slotsOpenForAnyStylist($increments);\n if ( $slots_open_for_any_stylist->count() != 0 ) {\n // get random stylist from available stylist available during given time slots\n $random_stylist = $slots_open_for_any_stylist->random()->toArray();\n $this->updateSlotsForStylist($random_stylist['stylist_id'], $increments);\n return [\n 'slot_begin' => $increment,\n 'stylist_id' => $random_stylist['stylist_id'],\n ];\n }\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "334e2502bb5f1bc8dbcf8245573524df", "score": "0.55216014", "text": "function is_discount_trial($type)\n {\n\t global $RBT_TRIAL_DISC_DATE;\n\t $current_date= time() ;\n\t if ($type == \"trial\" && midnight($current_date) <= convert_date_to_unix($RBT_TRIAL_DISC_DATE))\n\t\t $flag_disc_trial=1;\n\t\t else\n\t $flag_disc_trial=0;\n\n return $flag_disc_trial;\n }", "title": "" }, { "docid": "acf69ed8214d3079107f3ba83d911f5f", "score": "0.5505788", "text": "public function hasBoughtTime() {\n\t\treturn isset($this->varProperties['boughtTime']);\n\t}", "title": "" }, { "docid": "e6519e9f49eb47a953a61eaa7c53548e", "score": "0.5484817", "text": "public function isClientReviewGiven() {\n //we dont care about comment because we know its not our responsibility: both comment and rating are mandatory\n if ($this->reviewClientRating != null && $this->reviewClientRating > 0) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "0ca49d7ea25114bd3df9f86f67fbea6d", "score": "0.54823273", "text": "public function isGated(): bool;", "title": "" }, { "docid": "6aefcbe35fd1bba8e3a4e9dd06b8d384", "score": "0.5478882", "text": "public function checkRideCXThemOn() {\n global $APP_TYPE;\n if ($APP_TYPE == 'Ride' && !empty(ENABLE_RIDE_CX_THEME) && ENABLE_RIDE_CX_THEME == \"Yes\") {\n return \"Yes\";\n } else {\n return \"No\";\n }\n }", "title": "" }, { "docid": "4dd71d242b49e21c17ed78623466a569", "score": "0.547844", "text": "function is_class_booked($course_rn, $day_id, $start_time, $end_time, $semester_id)\n{\n\tglobal $conn;\n\t$stmt = $conn->prepare('SELECT room_number FROM tbl_class_times\n\t\tWHERE course_rn = :crn AND day_id = :day AND semester_id = :semester AND\n\t\t\tend_time > :start AND start_time < :end');\n\t$stmt->bindValue(':day', $day_id);\n\t$stmt->bindValue(':start', $start_time);\n\t$stmt->bindValue(':end', $end_time);\n\t$stmt->bindValue(':semester', $semester_id);\n\t$stmt->bindValue(':crn', $course_rn);\n\treturn execute_fetch_param($stmt, 'room_number');\n}", "title": "" }, { "docid": "d15f7e597f9b36556d88b38346772436", "score": "0.54384696", "text": "public function isTimeToSwitchTheRide()\n {\n // HIGHLIGHT: Client want to handle ride separately, so all excessive tasks has been disabled\n // that's why this method needs to be `return false` so that internal switching don't work.\n return false;\n\n return (bool) (\n $this->trip->isRoundTrip() &&\n $this->hasEnded() &&\n false === $this->isReturningRideOfTrip()\n );\n }", "title": "" }, { "docid": "7261ed2abb02552b511768721bb8dbc7", "score": "0.543693", "text": "function checkIfAttending() {\n}", "title": "" }, { "docid": "392c21521bb1aed4dd9c4ad834b12afc", "score": "0.54251695", "text": "abstract protected function isRangingNeeded();", "title": "" }, { "docid": "f3a4e4e912cbf1963a23f641a618662f", "score": "0.540667", "text": "public function hasEffectiveTime()\n {\n return $this->get(self::EFFECTIVETIME) !== null;\n }", "title": "" }, { "docid": "d9599f2a0fac40704bee7138e554f01b", "score": "0.53994715", "text": "public function hasSeatAssignment(): boolean\n {\n return $this->getSeat() ? true : false;\n }", "title": "" }, { "docid": "048fdb70d66a93a48ab6f612bc5ca154", "score": "0.5395869", "text": "function CLIENT_isInRescueMode($clientName)\n{\n\treturn(PKG_countSpecialPackages($clientName,\"m23Rescue\",\"waiting\")>0);\n}", "title": "" }, { "docid": "13967ac0a82c83e3d1dfe6ef8111fe08", "score": "0.539225", "text": "public function getIsActive()\n\t{\n\t\treturn !$this->unban_time && (!$this->length || $this->create_time + $this->length * 60 > time());\n\t}", "title": "" }, { "docid": "ed0bb0a6e93a633beb238e12e2e59a68", "score": "0.53500533", "text": "function is_valid($client)\n\t{\n\t\t//$client = $this->get_client($id);\n\n\t\t//die(var_dump($client));\n\t\t\t\t\n\t\tif($client['max_uses']!=0 && $client['num_uses'] >= $client['max_uses'] ) return false;\n\t\t\n\t\tif($client['start_date'] != \"0000-00-00\")\n\t\t{\n\t\t\t$start = strtotime($client['start_date']);\n\t\t\n\t\t\t$current = time();\n\t\t\n\t\t\tif($current < $start)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif($client['end_date'] != \"0000-00-00\")\n\t\t{\n\t\t\t$end = strtotime($client['end_date']) + 86400; // add a day for the availability to be inclusive\n\t\t\n\t\t\t$current = time();\n\t\t\n\t\t\tif($current > $end)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "5440ba0586a3ccc5098e71131372e65a", "score": "0.53423584", "text": "public function isTaken(): bool\n {\n return !empty($this->customerBook) && $this->customerBook->getIsRented();\n }", "title": "" }, { "docid": "c55c2be1db223c45acb3c289b3b2c658", "score": "0.5315532", "text": "function isCompetitionStarted()\n {\n global $competition_start_date_time;\n global $competition_end_date_time;\n $date=new DateTime();//Current Date Time\n if($competition_start_date_time<=$date && $competition_end_date_time>=$date)\n {\n return 1;//Online\n }\n else if($competition_start_date_time>$date)\n {\n return 2;//Not started\n }\n else\n {\n return 3;//Ended\n }\n }", "title": "" }, { "docid": "9c440512ba691a58097d15a7c93505f9", "score": "0.5285918", "text": "public function hasDeadline(){\n return $this->_has(14);\n }", "title": "" }, { "docid": "ad5d3c25a579bd14bae609938c89e802", "score": "0.52716196", "text": "function is_room_booked($room_number, $day_id, $start_time, $end_time, $semester_id)\n{\n\tglobal $conn;\n\t$stmt = $conn->prepare('SELECT course_rn FROM tbl_class_times\n\t\tWHERE room_number = :room AND day_id = :day AND semester_id = :semester AND\n\t\t\tend_time > :start AND start_time < :end');\n\t$stmt->bindValue(':room', $room_number);\n\t$stmt->bindValue(':day', $day_id);\n\t$stmt->bindValue(':start', $start_time);\n\t$stmt->bindValue(':end', $end_time);\n\t$stmt->bindValue(':semester', $semester_id);\n\treturn execute_fetch_param($stmt, 'course_rn');\n}", "title": "" }, { "docid": "b1be1c616bc47c71609f1e5031afa120", "score": "0.52418476", "text": "public function getFormatRecycled() : bool\n {\n return $this->getProperty()->formatRecycled;\n }", "title": "" }, { "docid": "8f6478e6008d76737b5fe22956610bfc", "score": "0.5233149", "text": "public function isClockwise()\n\t{\n\t\treturn false;\n\t}", "title": "" }, { "docid": "db2baec435c8bd03076f2be61a5f641a", "score": "0.5232485", "text": "public function is_onreview() {\n\t\t\treturn $this->holdstatus == 'R' ? true : false;\n\t\t}", "title": "" }, { "docid": "951efa362f07ed531a7e81c6410a67ab", "score": "0.522775", "text": "public function isAtTheShelter()\n {\n return self::SHELTER === $this->status;\n }", "title": "" }, { "docid": "bef21b58fe6bafcfc3f0420c4951f66d", "score": "0.52058953", "text": "private function slotsOpenForDesiredStylist($increments = NULL)\n {\n $increments = is_null($increments) ? $this->increments : $increments;\n return self::whereIn('slot_begin', $increments)\n ->whereNull('client_id')\n ->where('stylist_id', $this->stylist_id)\n ->count() == count($increments);\n }", "title": "" }, { "docid": "547a89d769937b6902e7b46838a82090", "score": "0.5200122", "text": "public function isOfficer()\n {\n return ($this->rank <= 1);\n }", "title": "" }, { "docid": "795cb6f7dd2b02b0ea86d244fa7040ee", "score": "0.51792145", "text": "function is_in_booking_day($t)\n{\n global $morningstarts, $morningstarts_minutes,\n $eveningends, $eveningends_minutes,\n $resolution, $enable_periods;\n\n if ($enable_periods)\n {\n return true;\n }\n\n $start_day_secs = (($morningstarts * 60) + $morningstarts_minutes) * 60;\n $end_day_secs = (((($eveningends * 60) + $eveningends_minutes) * 60) + $resolution) % SECONDS_PER_DAY;\n\n $date = getdate($t);\n $t_secs = (($date['hours'] * 60) + $date['minutes']) * 60;\n\n if ($start_day_secs == $end_day_secs)\n {\n return true;\n }\n elseif (day_past_midnight())\n {\n return (($t_secs >= $start_day_secs) || ($t_secs <= $end_day_secs));\n }\n else\n {\n return (($t_secs >= $start_day_secs) && ($t_secs <= $end_day_secs));\n }\n}", "title": "" }, { "docid": "4abbc5e501f9aa9e3554e0fb096eb028", "score": "0.516779", "text": "abstract protected function getOverreadIntoLeadinLeadOut(): bool;", "title": "" }, { "docid": "c7cfd8af6b72185641c5b5fcc9bfad82", "score": "0.51280475", "text": "public function checkCubexThemOn() {\n global $APP_TYPE;\n if ($APP_TYPE == 'Ride-Delivery-UberX' && !empty(IS_CUBE_X_THEME) && IS_CUBE_X_THEME == \"Yes\") {\n return \"Yes\";\n } else {\n return \"No\";\n }\n }", "title": "" }, { "docid": "5d19b0eea840e04d42545bb4ce5738a1", "score": "0.51279545", "text": "public function active()\n\t{\n\t\treturn is_null($this->ends_at) || $this->onGracePeriod();\n\t}", "title": "" }, { "docid": "aebbd175a13e1548a0447213c6cb8525", "score": "0.5115936", "text": "public function checkRideDeliveryXThemOn() {\n global $APP_TYPE;\n if ($APP_TYPE == 'Ride-Delivery' && !empty(ENABLE_RIDE_DELIVERY_X_THEME) && ENABLE_RIDE_DELIVERY_X_THEME == \"Yes\") {\n return \"Yes\";\n } else {\n return \"No\";\n }\n }", "title": "" }, { "docid": "97d1ccbc59c6ef5a3e9a27bcfea1083f", "score": "0.50996804", "text": "public function getIsActiveAttribute()\n {\n $now = new \\DateTime();\n $start = new \\DateTime($this->effective_start);\n $end = new \\DateTime($this->effective_end);\n\n return ($start <= $now) && ($end >= $now);\n }", "title": "" }, { "docid": "264d570747dc7069d8026d692fc05077", "score": "0.5086378", "text": "private function checkSeat()\n {\n if(empty($this->seat)) {\n if(empty($this->baggage)) {\n return '<p>From %s, take flight %s to %s. Gate %s, no seat assignment. Baggages will be automatically transferred from your last leg.</p>';\n } else {\n return '<p>From %s, take flight %s to %s. Gate %s, no seat assignment. Baggage drop at ticket counter %s.</p>';\n }\n } else {\n if(empty($this->baggage)) {\n return '<p>From %s, take flight %s to %s. Gate %s, seat %s. Baggages will be automatically transferred from your last leg.</p>';\n } else {\n return '<p>From %s, take flight %s to %s. Gate %s, seat %s. Baggage drop at ticket counter %s.</p>';\n }\n }\n }", "title": "" }, { "docid": "9c2e792d83563a79e7072ba59e0d7be2", "score": "0.5070466", "text": "public function hasOfflinetime(){\n return $this->_has(4);\n }", "title": "" }, { "docid": "b00adf17cf2075c5e56bf3123467bd1f", "score": "0.50520205", "text": "public function isUnderage()\n {\n if($this->birth) {\n return ($this->birth->add(new \\DateInterval('P18Y')) >= (new \\DateTime(Config::get('services.wei.start'))));\n }\n else if ($this->wei_majority !== null) {\n return !$this->wei_majority;\n }\n else if ($this->isStudent()) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "3414f8f7a6ce3c25d9108bf1320ac230", "score": "0.5051229", "text": "public function hasOpertime(){\n return $this->_has(21);\n }", "title": "" }, { "docid": "76870016bf1cf73e37dc14db2629de4a", "score": "0.5050765", "text": "public function isStrike(): bool\n {\n // Only one roll in frame (so first) and maximum amount of pins knocked down\n return 1 === count($this->rolls) && Roll::MAX_PINS === $this->rolls[0]->getPins();\n }", "title": "" }, { "docid": "3fb1efe6a10ed2294e0023d745594acd", "score": "0.50305986", "text": "public function isBookable(): bool\n {\n if (!$this->isDateInPermittedRange()) {\n return false;\n }\n\n $itemsBooked = 0;\n\n if (null !== ($objBookings = $this->getBookings())) {\n while ($objBookings->next()) {\n if ($this->user && (int) $this->user->id === (int) $objBookings->member) {\n continue;\n }\n $itemsBooked += (int) $objBookings->itemsBooked;\n }\n }\n\n if ((int) $this->arrData['resource']->itemsAvailable > $itemsBooked) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "426b2635335a3273e0b85471f75f2f96", "score": "0.5029957", "text": "public function isOver(){\n\t\treturn $this->MAX_GUESSSES === $this->numberOfGuesses;\n\t}", "title": "" }, { "docid": "5bff95f28926e21db934b1afc1d1aed1", "score": "0.50170565", "text": "public function can_book_treatment_at_time($treatment_id,$treatment_date,$shift_end)\n{\n\n\tPbdebug::log_msg('can_book_treatment_at_time: $treatment_id = '.(int)$treatment_id.' and $treatment_date = '.$treatment_date->format(DATE_ATOM).' and $shift_end = '.$shift_end->format(DATE_ATOM),'com_pbbooking');\n\n\n\t$check_date = date_create($treatment_date->format(DATE_ATOM),new DateTimeZone(PBBOOKING_TIMEZONE));\n\t$db = &JFactory::getDbo();\n\t$db->setQuery('select * from #__pbbooking_treatments where id = '.$db->escape((int)$treatment_id));\n\t$treatment = $db->loadObject();\n\t\n\t$db->setQuery('select * from #__pbbooking_config');\n\t$config = $db->loadObject();\n\n\t//can the calendar actually accept the treatment???\n\tif (!in_array($this->cal_id,explode(',',$treatment->calendar)))\n\t\treturn false;\n\t\n\tif ($treatment->duration<= $config->time_increment) {\n\t\treturn true;\n\t}\n\t\n\t//all remaining are where treatment->duration > time_interval\n\t$poss_book = true;\n\t$treatment_end = date_create($check_date->format(DATE_ATOM),new DateTimeZone(PBBOOKING_TIMEZONE));\n\t//$treatment_end->modify('+'.($treatment->duration-1).'minutes');\n\t$treatment_end->modify('+'.($treatment->duration).'minutes');\t\n\t\n\tPbdebug::log_msg('can_book_treatment_at_time: $treatment_end = '.$treatment_end->format(DATE_ATOM),'com_pbbooking');\n\n\t//we could also have a treatment that blows past the end..... need to catch this....\n\tif ($treatment_end > $shift_end) \n\t\treturn false;\n\n\t//now check all other conditions...\n\twhile($check_date <= $treatment_end) {\n\t\t$slot_end = date_create($check_date->format(DATE_ATOM),new DateTimeZone(PBBOOKING_TIMEZONE));\n\t\t$slot_end->modify('+'.$config->time_increment.' minutes');\n\t\tif ($slot_end<= $treatment_end) {\n\t\t\tif ($this->is_free_from_to($check_date,$slot_end)) {\n\t\t\t\tPbdebug::log_msg('can_book_treatment_at_time: returning false from $this->is_free_from_to','com_pbbooking');\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t$check_date->modify('+'.$config->time_increment.' minutes');\n\t}\n\t\n\treturn $poss_book;\n}", "title": "" }, { "docid": "9b2d31842904f2ed8bd6b08abdf46a82", "score": "0.50005513", "text": "function isopen($peerreview) {\n $time = time();\n\n return (\n ($peerreview->allowsubmissionsfromdate==0 || $time >= $peerreview->allowsubmissionsfromdate) &&\n ($peerreview->cutoffdate==0 || $time < $peerreview->cutoffdate)\n );\n}", "title": "" }, { "docid": "40263e839f10f2bc5af32a5401259284", "score": "0.49887624", "text": "function isWinner() {\n\t\treturn $this->getType() == self::TYPE_WINNER;\n\t}", "title": "" }, { "docid": "6965fce76dc9cf3f938b2f93bd2ce75f", "score": "0.49880612", "text": "public function passed_cancel_day() {\n\t\t$booking = $this->get_product();\n\n\t\tif ( ! $booking || ! $booking->can_be_cancelled() ) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif ( false !== $booking ) {\n\t\t\t$cancel_limit = $booking->get_cancel_limit();\n\t\t\t$cancel_limit_unit = $cancel_limit > 1 ? $booking->get_cancel_limit_unit() . 's' : $booking->get_cancel_limit_unit();\n\t\t\t$cancel_string = sprintf( '%s +%d %s', current_time( 'd F Y H:i:s' ), $cancel_limit, $cancel_limit_unit );\n\n\t\t\tif ( strtotime( $cancel_string ) >= $this->get_start() ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "835ed456a4eb3385fd61238046925f63", "score": "0.49816683", "text": "public function hasHeartRateInfo() {\n\t\treturn !is_null($this->HRstart) && !is_null($this->HRend);\n\t}", "title": "" }, { "docid": "59e00506e57899deacd87b2fcfe12b42", "score": "0.49632397", "text": "public function onGracePeriod()\n {\n if (!is_null($endsAt = $this->ends_at)) {\n return Carbon::now()->lt(Carbon::instance($endsAt));\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "50537c8af2ce09f0651842ae4f72d040", "score": "0.49607444", "text": "function dokan_seller_vacation_is_seller_on_vacation( $vendor_id ) {\n $vendor = dokan()->vendor->get( $vendor_id );\n $profile_info = $vendor->get_shop_info();\n\n $setting_go_vacation = isset( $profile_info['setting_go_vacation'] ) ? dokan_validate_boolean( $profile_info['setting_go_vacation'] ) : false;\n\n if ( ! $setting_go_vacation ) {\n return false;\n }\n\n $settings_closing_style = ! empty( $profile_info['settings_closing_style'] ) ? $profile_info['settings_closing_style'] : 'instantly';\n\n if ( 'instantly' === $settings_closing_style ) {\n return true;\n }\n\n $schedules = dokan_seller_vacation_get_vacation_schedules( $vendor->get_shop_info() );\n\n if ( empty( $schedules ) ) {\n return false;\n }\n\n $current_time = date( 'Y-m-d', current_time( 'timestamp' ) );\n\n foreach ( $schedules as $schedule ) {\n $from = $schedule['from'];\n $to = $schedule['to'];\n\n if ( $from <= $current_time && $current_time <= $to ) {\n return true;\n }\n }\n\n return false;\n}", "title": "" }, { "docid": "7ec4e70942dd8ce9e056278885e0c435", "score": "0.4960068", "text": "function newsup_display_date_status($control)\n {\n\n if (('show-date-author' == $control->manager->get_setting('global_post_date_author_setting')->value()) || ('show-date-only' == $control->manager->get_setting('global_post_date_author_setting')->value())) {\n return true;\n } else {\n return false;\n }\n\n }", "title": "" }, { "docid": "06c972a89f7d0b221c8bc62c9684b9c0", "score": "0.49580967", "text": "public function isReported()\n\t{\n\t\treturn ($this->get('state') == self::STATE_FLAGGED);\n\t}", "title": "" }, { "docid": "f5bfb4714f55b27282aab6ab2a6acbc1", "score": "0.49505377", "text": "public function hasBlink(){\n return $this->_has(23);\n }", "title": "" }, { "docid": "abd2ee60febd9910406db4de99f8fef6", "score": "0.4948141", "text": "private function continueToTweet() {\n\t\t\n\t\tglobal $START_TIME, $MAX_TIME, $MAX_TWEETS;\n\t\t\n\t\t$tweetsCondition = ($MAX_TWEETS == 0) || ($MAX_TWEETS > $this->current_tweets);\n\t\t\n\t\t$now = time();\n\t\t$timeCondition = ($MAX_TIME == 0) || ( ($now - $START_TIME) < $MAX_TIME );\n\t\t\n\t\treturn $tweetsCondition && $timeCondition;\n\t\t\n\t}", "title": "" }, { "docid": "2947700896ab287107982655a831a653", "score": "0.49472925", "text": "public function hasCreatetime(){\n return $this->_has(29);\n }", "title": "" }, { "docid": "ffb4ba062fce8dcb014942e15b95470c", "score": "0.49361914", "text": "public function allowCancel()\n {\n if ($this->status === 'new' ||\n $this->status === 'booked') {\n\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "c779a11792e2bed93b0164714afdb375", "score": "0.49335238", "text": "public function isAchieved(){\n\t\treturn ($this->countReceivers() > 0);\n\t}", "title": "" }, { "docid": "f56e73c12403329b654f0fa9c3d6fbee", "score": "0.4932804", "text": "public function getIsUnbanned()\n\t{\n\t\treturn !!$this->unban_time;\n\t}", "title": "" }, { "docid": "f53562c1599761664b76a93f8d9f3bbf", "score": "0.4932355", "text": "private function isEnabled() {\n $isEnabled = ($this->hasData(self::ENABLEDAT)) ? $this->getData(self::ENABLEDAT) : false;\n return ($isEnabled !== false && ($isEnabled +300) > time());\n }", "title": "" }, { "docid": "a2c8092c4c3de1b3a7ceb4e0283c36de", "score": "0.4930106", "text": "public function getIsSeatCountDifferent()\n {\n return $this->isSeatCountDifferent;\n }", "title": "" }, { "docid": "e30ec39b79a4bea8d0004c1249cc1610", "score": "0.49289253", "text": "function is_prof_booked($professor_id, $day_id, $start_time, $end_time, $semester_id)\n{\n\tglobal $conn;\n\t$stmt = $conn->prepare('SELECT course_rn FROM tbl_class_times\n\t\tWHERE day_id = :day AND semester_id = :semester AND\n\t\t\tend_time > :start AND start_time < :end AND\n\t\t\tcourse_rn IN (SELECT tbl_classes.course_rn FROM tbl_classes WHERE\n\t\t\t\ttbl_classes.semester_id = :semester AND tbl_classes.professor_id = :professor)');\n\t$stmt->bindValue(':professor', $professor_id);\n\t$stmt->bindValue(':day', $day_id);\n\t$stmt->bindValue(':start', $start_time);\n\t$stmt->bindValue(':end', $end_time);\n\t$stmt->bindValue(':semester', $semester_id);\n\treturn execute_fetch_param($stmt, 'course_rn');\n}", "title": "" }, { "docid": "53cc6ff99163312e0edb30c4da8f03a8", "score": "0.49288726", "text": "protected function has_style(): bool {\n\t\treturn ! is_null( $this->form_style );\n\t}", "title": "" }, { "docid": "299ccae9c6ccbe09f5cee21fecc3ba0a", "score": "0.4923448", "text": "public function onGracePeriod()\n\t{\n\t\tif (!is_null($endsAt = $this->ends_at)) {\n\t\t\treturn Carbon::now()->lt(Carbon::instance($endsAt));\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "cb75aa3701223c495ea8fb079ce0634b", "score": "0.49217817", "text": "function get_time_based_rule_status($schedule) {\n\t$should_add_rule = false;\n\t/* no schedule? rule should be installed */\n\tif($schedule == \"\") \n\t\treturn true;\n\t/*\n\t * iterate through time blocks and deterimine\n\t * if the rule should be installed or not.\n\t */\n\tforeach($schedule['timerange'] as $timeday) {\n\t\tif($timeday['month']) \n\t\t\t$month = $timeday['month'];\n\t\telse \n\t\t\t$week = \"\";\t\n\t\tif($timeday['day']) \n\t\t\t$day = $timeday['day'];\n\t\telse \n\t\t\t$day = \"\";\n\t\tif($timeday['hour']) \n\t\t\t$hour = $timeday['hour'];\n\t\telse \n\t\t\t$hour = \"\";\n\t\tif($timeday['position']) \n\t\t\t$position = $timeday['position'];\n\t\telse \n\t\t\t$position = \"\";\n\t\tif($timeday['desc']) \n\t\t\t$desc = $timeday['desc'];\n\t\telse \n\t\t\t$desc = \"\";\n\t\tif($month) {\n\t\t\t$monthstatus = tdr_month($month);\n\t\t} else {\n\t\t\t$monthstatus = true;\n\t\t}\n\t\tif($day) {\n\t\t\t$daystatus = tdr_day($day);\n\t\t} else {\n\t\t\t$daystatus = true;\n\t\t}\n\t\tif($hour) {\n\t\t\t$hourstatus = tdr_hour($hour);\n\t\t} else {\n\t\t\t$hourstatus = true;\n\t\t}\n\t\tif($position) {\n\t\t\t$positionstatus = tdr_position($position);\n\t\t} else {\n\t\t\t$positionstatus = true;\n\t\t}\n\n\t\tif($monthstatus == true) \n\t\t\tif($daystatus == true) \n\t\t\t\tif($positionstatus == true) \n\t\t\t\t\tif($hourstatus == true) {\n\t\t\t\t\t\t$should_add_rule = true;\n\t\t\t\t\t}\n\t}\n\t\n\treturn $should_add_rule;\n}", "title": "" }, { "docid": "d025a79c6e86e82c98d9f3cf35c3f17f", "score": "0.49190047", "text": "public function isRated(){\n\t\t$ratings = new SnRatings();\n\t\t\n\t\t$ratings->ID_OWNER = $this->ID_COMPANY;\n\t\t\n\t\t$ratings->OwnerType = 'company';\n\t\t$player = User::getUser();\n\t\tif($player){\n\t\t\t$ratings->ID_FROM = $player->ID_PLAYER;\n\t\t\tif($ratings->getOne())\n\t\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "97bd0669aecf41da13eb584dd562cb16", "score": "0.49189222", "text": "public function isPretending()\n {\n return $this->pretending;\n }", "title": "" }, { "docid": "7ba1fb70b167a349e6e0716792d35b91", "score": "0.49175304", "text": "public function hasAppellation(){\n return $this->_has(18);\n }", "title": "" }, { "docid": "7cc99203db890ab6ad21a897b9ef70fa", "score": "0.491542", "text": "public function allows()\n\t{\n\t\t$this->isBoatValidForTicket();\n\t\t$is_overnight = $this->isTripOvernight();\n\t\tif($is_overnight) {\n\t\t\t$this->isCabinValid();\n\t\t}\n\t\telse {\n\t\t\t$this->boatroom_id = null;\n\t\t}\n\t\t$this->isBoatOrCabinsFull();\n\t}", "title": "" }, { "docid": "73558b66ea8605f99bfad92993c8f0ed", "score": "0.49091607", "text": "public function checkIsColorApproved() {\n return isset( $this->setAllowedColorings()[$this->catColoring] );\n }", "title": "" }, { "docid": "41ebc0aecb7744730ad3dadc4a0ab47b", "score": "0.49038896", "text": "private function isTimeToDisplay(WooCommerce_Plugin_Boiler_Plate_Admin_Notice $notice) {\n $screens = $notice->getScreen();\n if (!empty($screens)) {\n $curScreen = get_current_screen();\n if (!is_array($screens) || !in_array($curScreen->id, $screens)) {\n return false;\n }\n }\n\n $usersArray = $notice->getUsers(); \n if (!empty($usersArray)) {\n $curUser = get_current_user_id();\n if (!is_array($usersArray) || !in_array($curUser, $usersArray) || $usersArray[$curUser] >= $notice->getTimes()) {\n return false;\n }\n\n\n } else if ($notice->getTimes() == 0) {\n return true;\n } else if ($notice->getTimes() <= $notice->getDisplayedTimes()) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "b343f560561358d46b2d53ad942b28d0", "score": "0.49000135", "text": "public function getBookedStatusByStylist($date, $stylist_id) {\n $orders = DB::table('booking')\n ->where([\n ['date','=',$date],\n ['stylist_id','=',$stylist_id],\n ])\n ->get();\n $finishStatus = \"\";\n foreach ($orders as $key => $value) {\n # code...\n $bookingController = new BookingController();\n $service = new Service();\n $finishStatus = $finishStatus.$bookingController->getBookingTime($value->start_time, $service->getTimeService($value->service_id)*4).\",\";\n $finishStatus = trim($finishStatus, \",\");\n $finishStatus = str_replace(\",,\", \",\", $finishStatus);\n return $finishStatus;\n }\n }", "title": "" }, { "docid": "d7f424568c60b4d02aea85c67ec6ce4f", "score": "0.4899971", "text": "public function isClientCurrent() {\r\n // check etag\r\n $etag = self::getEtag($this->getURI());\r\n if (WebHttp::getIfNoneMatch() && WebHttp::getIfNoneMatch() == $etag) {\r\n return true;\r\n }\r\n // check last-modified time\r\n if (WebHttp::getIfModifiedSince() && WebHttp::getIfModifiedSince() == (int) $this->modified) {\r\n return true;\r\n }\r\n // else\r\n return false;\r\n }", "title": "" }, { "docid": "7ce3c0bf2ee5b5c64ca08fd222330e55", "score": "0.48986912", "text": "public function checkRecency()\n {\n $actualDate = new \\DateTime();\n $lastImportedSotd = $this->getEm()->createQuery(\"SELECT MAX(s.pubDate) FROM App\\Model\\Entities\\Sotd s\")->getResult();\n $lastImportedPubDate = new \\DateTime($lastImportedSotd[0][1]);\n $interval = $actualDate->diff($lastImportedPubDate);\n\n\n if ($interval->d >= 1 OR $lastImportedSotd[0][1] == \"\") {\n return false;\n } else {\n return true;\n }\n }", "title": "" }, { "docid": "6ae67d20267f37497286c29109e1538c", "score": "0.4894935", "text": "public function getCritsOn()\n {\n return $this->crits_on;\n }", "title": "" }, { "docid": "65ea88f39176a8990c8e789c8ff578be", "score": "0.4893075", "text": "function api_is_course_coach() {\n\treturn $_SESSION ['is_courseCoach'];\n}", "title": "" }, { "docid": "bca840314edff278aedab3b352bdb80b", "score": "0.48921436", "text": "public function isDue(): bool;", "title": "" }, { "docid": "6ef23b87bd354d5032048639679fa09c", "score": "0.489189", "text": "function get_available_seats(){\r\n\t\t$booked_seats = 0;\r\n\t\tforeach ( $this->bookings as $booking ){\r\n\t\t\tif ( $booking->is_paid() ){\r\n\t\t\t\t$booked_seats += 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $this->seats - $booked_seats;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "af9b664c22d1eef769d354a2a7dd2e28", "score": "0.48776442", "text": "function define_line_color($members){\r\n \r\n //First check the availability of all relevant values. Missing value will lead to no color\r\n if (isset($members->{\"since\"}) && isset($members->{\"donlastweek\"}) && isset($members->{\"lastseen\"})){\r\n //all players will be marked red, which have less than 100 donations last week (because we kick at the week after) \r\n //or which are offline longer than 5 days, both is only accountable, when the player is longer than a week within the clan\r\n if ( ( $members->{\"donlastweek\"} < 100 or $members->{\"lastseen\"} > \"5\" )\r\n && $members->{\"since\"} <= getDueDate(1)\r\n ){\r\n return 'Error';\r\n \r\n }else{\r\n return 'Success';\r\n }\r\n }\r\n}", "title": "" }, { "docid": "35b92ff409267590a1d9efc675cc6231", "score": "0.48598382", "text": "public function getBookedSeats()\n {\n /**\n * get Booked Seats From compartment\n */\n return CompartmentMultiton::getInstanceCompartment($this);\n \n }", "title": "" }, { "docid": "cc32cafc6d70b7799c1a4060c4fc35b1", "score": "0.48563123", "text": "public function isSystemShowingSmoke();", "title": "" }, { "docid": "b225dd1095a0105ad3d0d2a6b47e6c76", "score": "0.48525327", "text": "public function display()\n {\n return in_array($this->_resource->get('calendar'), $GLOBALS['calendar_manager']->get(Kronolith::DISPLAY_CALENDARS));\n }", "title": "" }, { "docid": "f8e473db6dc8c2e96272d3da39024426", "score": "0.48481447", "text": "function show_diferent_bk_resource_of_this_date( $bk_type_id_of_date, $current_booking_type, $bk_type_original , $type_items, $outColorClass ){\n //debuge($bk_type_id_of_date, $current_booking_type, $bk_type_original , $type_items, $outColorClass);//die;\n if (\n (! empty($bk_type_id_of_date)) ||\n ( ( $current_booking_type !== $bk_type_original ) && ($bk_type_original>0) )\n ) {\n\n if ( ! ( (! empty($bk_type_id_of_date)) && ($bk_type_id_of_date == $bk_type_original) ) )\n\n if (! empty($bk_type_id_of_date))\n echo '<a href=\"admin.php?page=' . WPDEV_BK_PLUGIN_DIRNAME . '/'. WPDEV_BK_PLUGIN_FILENAME . 'wpdev-booking'.'&booking_type='.$bk_type_id_of_date.'\"\n class=\"bktypetitle0 bk_res_link_from_dates booking_overmause'. $outColorClass.'\" >' . $type_items[ $bk_type_id_of_date ] . '</a>';\n else\n echo '<a href=\"admin.php?page=' . WPDEV_BK_PLUGIN_DIRNAME . '/'. WPDEV_BK_PLUGIN_FILENAME . 'wpdev-booking'.'&booking_type='.$current_booking_type.'\"\n class=\"bktypetitle0 bk_res_link_from_dates booking_overmause'. $outColorClass.'\" >' . $type_items[ $current_booking_type ] . '</a>';\n\n }\n }", "title": "" }, { "docid": "f2f464915821876aaf7a1dfe4b5f9cc0", "score": "0.4841681", "text": "function TS_VCSC_Downtime_CheckAgainstCurrent($timeonly, $scope = null, $period, $current){\r\n\t\t\t\t$render\t\t\t\t\t\t= \"false\";\r\n\t\t\t\tif ($scope == \"full\") {\r\n\t\t\t\t\t$render\t\t\t\t\t= \"true\";\r\n\t\t\t\t} else if ($scope == \"none\") {\r\n\t\t\t\t\t$render\t\t\t\t\t= \"false\";\r\n\t\t\t\t} else if (($scope == \"period\") || (($scope == null) && ($timeonly == true))) {\r\n\t\t\t\t\t$period \t\t\t\t= explode(\",\", $period);\r\n\t\t\t\t\t$start\t\t\t\t\t= $period[0] * 5;\r\n\t\t\t\t\t$stop\t\t\t\t\t= $period[1] * 5;\r\n\t\t\t\t\t$start\t\t\t\t\t= date('H:i:s', mktime(0, $start, 0));\r\n\t\t\t\t\t$stop\t\t\t\t\t= date('H:i:s', mktime(0, $stop, 0));\r\n\t\t\t\t\tif (($current >= $start) && ($current <= $stop)) {\r\n\t\t\t\t\t\t$render\t\t\t\t= \"true\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn $render;\r\n\t\t\t}", "title": "" }, { "docid": "9ecdca29658d44099c8e4b7869679772", "score": "0.48397616", "text": "public function tmbo() {\n\t\t\n\t\treturn (1 == $this->getCommentRow(\"offensive\") ? true : false);\n\t}", "title": "" }, { "docid": "b4933888646b7fd800118e5f88daa7ed", "score": "0.48223937", "text": "function canMakeAppointment($schedule, $begin_hour, $day){\n foreach ($schedule as $row) {\n $time = $row[\"begin_time\"] . ' - ' . $row[\"end_time\"];\n \n \n $begin_hour= date( \"H:i\", strtotime( $begin_hour) );\n \n if($row[\"week_day\"] == $day && $row[\"begin_time\"] == $begin_hour){\n return 1;\n }\n }\n return 0;\n }", "title": "" }, { "docid": "645dd2212ba12c66caf16d64c67d5177", "score": "0.4814304", "text": "public function onGenericTrial()\n {\n return $this->trial_ends_at && Carbon::now()->lt($this->trial_ends_at);\n }", "title": "" }, { "docid": "eb9912447292e6e9f5adc20d10284ce5", "score": "0.48133734", "text": "public static function isOrderEnable(){\n //check if system is order enable\n $close = new DateTime();\n $close->setTime(STOPBOOKINGHOUR,STOPBOOKINGMINUTE);\n $open = new DateTime();\n $open->setTime(STARTBOOKINGHOUR,STARTBOOKINGMINUTE);\n if(new DateTime() < $close && new DateTime() > $open )\n return true;\n return false;\n }", "title": "" }, { "docid": "43a863b0ca78a095fd3b322ae655123d", "score": "0.48089868", "text": "public function isScheduled()\r\n\t{\r\n\t\treturn ($this->status == 1 && ($this->published > time())) ? true : false;\r\n\t}", "title": "" }, { "docid": "4876f6be067c3aa2c70487009293118d", "score": "0.48083386", "text": "private function verificarStyle($style){\r\n if(count($style)>0){\r\n if(isset($style['color_primary']) &&\r\n isset($style['color_secondary']) && \r\n isset($style['color_success']) &&\r\n isset($style['color_light']) && \r\n isset($style['color_dark']) &&\r\n isset($style['url_logo']) &&\r\n isset($style['url_membrete']) &&\r\n isset($style['font_primary']) &&\r\n isset($style['font_secondary']) ){\r\n return true;\r\n }\r\n }else{\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "2100a2c7ea40ef1d08767ca398a3ed1d", "score": "0.48007622", "text": "public function status()\n {\n if($this->clients)\n {\n return \"Assigned\";\n }\n else\n {\n return \"Unassigned\";\n }\n }", "title": "" }, { "docid": "cc7a7f1aff12b0feeaf7ef04141c0d1c", "score": "0.47995448", "text": "public function hasAppearanceData(){\n return $this->_has(19);\n }", "title": "" }, { "docid": "716d741a1ebdbcae77b95436b229cbb6", "score": "0.47972217", "text": "function wot_awaitingOnMeOrSwim($me_status, $swim_status){\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t\tStatus Listing\n\t\t\t\t\t\t\t\tMe Status\n\t\t\t\t\t\t\t\t1 = \"me\" has signed the message; \n\t\t\t\t\t\t\t\t2 = \"me\" has declared they have completed their end of the bargin\n\t\t\t\t\t\t\t\t3 = \"me\" has declared \"swim\" has completed their end of the bargin\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSwim Status\n\t\t\t\t\t\t\t\t0 = Awaiting on Swim to approve of the transaction message and sign it\n\t\t\t\t\t\t\t\t1 = Swim signed the transaction;\n\t\t\t\t\t\t\t\t2 = \"Swim\" has declared they have completed their end of the barin\n\t\t\t\t\t\t\t\t3 = \"Swim\" has declared \"me\" has completed their endd of the bargin\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t*/\n\t\t\t\t\t\t$output = -1; //-1 = Somethings not correct; 0 = nuetrual; 1 = me; 2 = swim;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Figure out \"me\" status then evaluate \"swim\" status to determine who we are awaiting on.\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($me_status == 0){\n\t\t\t\t\t\t\tif($swim_status == 1){\n\t\t\t\t\t\t\t\t//Me is 0 and Swim is 1 = awating on me\n\t\t\t\t\t\t\t\t$output = 1;\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\tif($me_status == 1){\n\t\t\t\t\t\t\t//What is swim status?\n\t\t\t\t\t\t\tif($swim_status == 0){\n\t\t\t\t\t\t\t\t$output = 2;\n\t\t\t\t\t\t\t}else if($swim_status == 1){\n\t\t\t\t\t\t\t\t$output = 0;\n\t\t\t\t\t\t\t}else if($swim_status == 2){\n\t\t\t\t\t\t\t\t$output = 1;\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\tif($me_status == 2){\n\t\t\t\t\t\t\t//What is swim status?\n\t\t\t\t\t\t\tif($swim_status == 1){\n\t\t\t\t\t\t\t\t$output = 2;\n\t\t\t\t\t\t\t}else if($swim_status == 2){\n\t\t\t\t\t\t\t\t$output = 0;\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\tif($me_status == 3){\n\t\t\t\t\t\t\t//What is swim status?\n\t\t\t\t\t\t\tif($swim_status == 2){\n\t\t\t\t\t\t\t\t$output = 2;\n\t\t\t\t\t\t\t}else if($swim_status == 3){\n\t\t\t\t\t\t\t\t$output = 0;\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\treturn $output;\n\t\t\t\t\t}", "title": "" }, { "docid": "0ce6c26d28277b6b1c577448d5d66ebd", "score": "0.47940245", "text": "public function isGuaranteeEligible();", "title": "" }, { "docid": "d64bf45c26cec1a00873350726155bf0", "score": "0.47897118", "text": "function newsup_display_date_author_status($control)\n {\n\n if (('show-date-author' == $control->manager->get_setting('global_post_date_author_setting')->value()) || ('show-date-only' == $control->manager->get_setting('global_post_date_author_setting')->value()) || ('show-author-only' == $control->manager->get_setting('global_post_date_author_setting')->value())) {\n return true;\n } else {\n return false;\n }\n\n }", "title": "" }, { "docid": "056a5da549dac00f97a1535b7e7b9788", "score": "0.47880217", "text": "public function getIsOverleave()\n {\n return $this->status === Status::OVERLEAVE_HOLIDAY || $this->status == Status::OVERLEAVE_OUT;\n }", "title": "" }, { "docid": "734c84103e744fc99325e94fc6a8a0c9", "score": "0.47876623", "text": "function flagTendersNumLow_B($contract) {\n\t$minTenders = 3;\n\t//$contract is $notice['AWARDED_CONTRACT']\n\t// \"AWARDED_CONTRACT\" > \"TENDERS\" > \"NB_TENDERS_RECEIVED\"\n\tif(array_key_exists('TENDERS', $contract) ) {\n\t\tif(array_key_exists('NB_TENDERS_RECEIVED', $contract['TENDERS'])) {\n\t\t\t$tenderNum = $contract['TENDERS']['NB_TENDERS_RECEIVED'];\n\t\t\tif($tenderNum == Null || $tenderNum == \"\" || $tenderNum < $minTenders) {\n\t\t\t\techo \"FLAGGED B: LOW TENDERS NUMBER (\".$tenderNum.\")<br />\";\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else {\n\t\t\t//Tenders received number missing\n\t\t\techo \"FLAGGED B: LOW TENDERS NUMBER (NB_TENDERS_RECEIVED missing)<br />\";\n\t\t\treturn true;\n\t\t}\n\t} else {\n\t\techo \"PROBLEM: NB_TENDERS_RECEIVED DOES NOT EXIST<br />\";\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "e8a9acbd85342b1693473611bfae4478", "score": "0.47874603", "text": "function is_antisnipping($product){\n\t\t$auction_id = $product->get_id();\n\t\t$auction_finish = ($datetime = yit_get_prop($product, '_yith_auction_to', true)) ? $datetime : NULL;\n\t\t$maxbidTime = $this->get_maxlastbid_time($auction_id);\n\t\t// $timeDiff \t= round(abs($auction_finish - $maxbidTime) / 60);\n\t\t$timeDiff \t= wac_timeleft($auction_finish,$maxbidTime);\n\t\t\n\t\t$date = strtotime('now');\n\t\t// echo $date.'-'.$auction_finish.'-'.$maxbidTime.'-'.$timeDiff.'-';\n\t\t\n\t\treturn \t($timeDiff <= 10)? true : false;\n\t}", "title": "" }, { "docid": "ade00e253e6d1b225c135665651e7b1f", "score": "0.4784795", "text": "function status( $consensus ) {\n\t\tif ( is_array( $consensus ) ) {\n\t\t\t$status = 'new';\n\t\t\t$acceptable = 0;\n\t\t\tforeach ( $consensus as $value ) {\n\t\t\t\tif ( $value[ 'value' ] === 0 || $value[ 'value' ] === 2 ) {\n\t\t\t\t\t$acceptable = 'nope';\n\t\t\t\t}\n\n\t\t\t\tif ( $value[ 'value' ] === 2 ) {\n\t\t\t\t\t$status = 'blocked';\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t\tif ( is_int( $acceptable ) ) {\n\t\t\t\t$status = 'passed';\n\t\t\t}\n\n\t\t\treturn $status;\n\t\t}\n\n\t}", "title": "" }, { "docid": "c13ef0acc0e0fe2bf5d566d91ed76372", "score": "0.47827947", "text": "public function hasRecall(){\n return $this->_has(24);\n }", "title": "" } ]
1b422d379aec2553c127faa3279dfba2
reads multiple params only if they are POST
[ { "docid": "13a851a4a360182ffa5fec6160927f30", "score": "0.0", "text": "public function deleteAction()\n {\n $room_id = $this->param('room_id', 'post');\n $result = $this->model->deleteRoom($room_id);\n if ($result) {\n $this->echoRespnse(200, array('deleted' => true));\n } else {\n $this->echoRespnse(400, array('deleted' => false));\n }\n }", "title": "" } ]
[ { "docid": "cb41634b7d19d0d06d368fe6c8213b91", "score": "0.7587008", "text": "public function getPostParams();", "title": "" }, { "docid": "31b65d0fd38a003717a583ded0fe7141", "score": "0.68857527", "text": "protected function getPostMultiParam($name){\n return filter_input(INPUT_POST, $name,FILTER_DEFAULT, FILTER_REQUIRE_ARRAY);\n }", "title": "" }, { "docid": "c0757511a2ff3b5ca616a1c24197b26e", "score": "0.6594958", "text": "function postParams()\n {\n return $_POST;\n }", "title": "" }, { "docid": "70bafdc5d45e9bce852d0fc9fe5d095b", "score": "0.65799195", "text": "private function _request_params()\n {\n $this->get_arr = is_array($this->input->get(NULL, TRUE)) ? $this->input->get(NULL, TRUE) : array();\n $this->post_arr = is_array($this->input->post(NULL, TRUE)) ? $this->input->post(NULL, TRUE) : array();\n $this->params_arr = array_merge($this->get_arr, $this->post_arr);\n return $this->params_arr;\n }", "title": "" }, { "docid": "3aaf444fca50ed7ab1c9c6c1c225028d", "score": "0.63790965", "text": "protected function parseParams()\n {\n /**\n * Basic params\n */\n $this->type = $_REQUEST['asyncphp'];\n $this->flag = isset($_REQUEST['flag']) ? $_REQUEST['flag'] : null;\n $this->fn = isset($_REQUEST['fn']) ? $_REQUEST['fn'] : null;\n\n\n /**\n * HTTP Method\n */\n $this->method = $_SERVER['REQUEST_METHOD'];\n\n\n /**\n * Save params\n */\n $this->data = $_REQUEST['parameters'];\n }", "title": "" }, { "docid": "9093f131d414cec667d93816abf48312", "score": "0.6378759", "text": "protected function nanoParamsPost()\n {\n $params = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);\n return $params;\n }", "title": "" }, { "docid": "cc0ac7760315a7032c8c2fdc2e902d4d", "score": "0.63734514", "text": "private function getParamsFromRequest() {\n\t\t$result = array();\n\t\tforeach ($this->aPostbackParams as $value) {\n\t\t\tif(isset($_GET[$value])) {\n\t\t\t\t$result[$value] = $_GET[$value];\n\t\t\t}\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "242443c1ed0efe9e7255fb001078daea", "score": "0.63233936", "text": "public function postParams()\n {\n return $this->postVars = &$_POST;\n }", "title": "" }, { "docid": "b6e861c4dac3fe3bafede905c45ec056", "score": "0.63170743", "text": "protected function retrieveParameters()\n\t{\n\t\tif(sizeof($this->parameters) == 0) {\n\t\t\t$data = file_get_contents(\"php://input\");\n\t\t\t\n\t\t\tswitch ($this->getRequestContentType()) {\n\t\t\t\tcase 'application/json':\n\t\t\t\t\t$this->parameters = json_decode($data, true);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'application/x-www-form-urlencoded':\n\t\t\t\t\tparse_str($data, $parsed);\n\t\t\t\t\t$this->parameters = $parsed;\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'application/vnd.php.serialized':\n\t\t\t\t\t$this->parameters = unserialize($data);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1287f036b5c4609ef0cc0c4cce3f8865", "score": "0.6307382", "text": "protected function _getParams()\n {\n $postParams = $this->request->getPost();\n $queryParams = $this->request->getQuery();\n $bodyParams = \\Engine\\Tools\\Arrays::parse_str($this->request->getRawBody());\n\n return array_merge($queryParams, $postParams, $bodyParams);\n }", "title": "" }, { "docid": "5c9346667fe995049826588c9d06cf29", "score": "0.6278334", "text": "public function readParameters() {\n\t\tif (isset($_POST['username'])) $this->username = trim($_POST['username']);\n\t\tif (isset($_POST['email'])) $this->email = trim($_POST['email']);\n\t\tif (isset($_POST['confirmEmail'])) $this->confirmEmail = trim($_POST['confirmEmail']);\n\t\tif (isset($_POST['password'])) $this->password = $_POST['password'];\n\t\tif (isset($_POST['confirmPassword'])) $this->confirmPassword = $_POST['confirmPassword'];\n\t\tif (isset($_POST['groups']) && is_array($_POST['groups'])) $this->groups = $_POST['groups'];\n\t}", "title": "" }, { "docid": "78335f0d3a6e95e29679c0626e32b855", "score": "0.62535983", "text": "public function getPostParams()\n {\n return $this->post;\n }", "title": "" }, { "docid": "53b4d5906c36c451732a0c7d255cb48d", "score": "0.6195189", "text": "function ValidateParams() {\n\t\t\n\t\t$params = array();\n\t\tforeach($_POST as $key=>$value) {\n\t\t\t//iterate through arrays and check both the key and value for the above validation checks\n\t\t\t\n\t\t\t/*\n\t\t\tif(empty($key) || empty($value)) {\n\t\t\t\treturn \"Both fields required!\";\n\t\t\t}\n\t\t\t*/\n\t\t\t$params[$key] = $value;\n\t\t}\n\t\treturn $params;\n\t}", "title": "" }, { "docid": "d27661667b226f5c83b9063bf40757d9", "score": "0.61852825", "text": "public function postAll(){\n\t\t\treturn (isset($_POST)) ? $_POST : null;\n\t\t}", "title": "" }, { "docid": "7c0e8725133c60cf8c73db882792432e", "score": "0.616468", "text": "protected function scanPostData()\n {\n foreach ($_POST as $k => $v) {\n switch ($k) {\n case 'id':\n $data['begegnung'] = $v;\n $begegnung = \\BegegnungModel::findById($v);\n\n if ($begegnung) {\n $data['home'] = [\n 'name' => $begegnung->getRelated('home')->name,\n 'id' => $begegnung->getRelated('home')->id,\n ];\n $data['away'] = [\n 'name' => $begegnung->getRelated('away')->name,\n 'id' => $begegnung->getRelated('away')->id,\n ];\n }\n break;\n case 'homelineup':\n $data['lineup']['home'] = explode(',', $v);\n break;\n case 'awaylineup':\n $data['lineup']['away'] = explode(',', $v);\n break;\n case 'REQUEST_TOKEN':\n case 'FORM_SUBMIT':\n // ignorieren\n break;\n\n default:\n if (preg_match(\"/^spieler_(home|away)_(\\d+)$/\", $k, $matches)) {\n // Einzel (Spieler)\n $mapped_id = $data['lineup'][$matches[1]][$v];\n $data['spiele'][$matches[2]][$matches[1]]['spieler'] = [\n 'name' => $this->getSpielerName($mapped_id),\n 'id' => $mapped_id,\n ];\n } else if (preg_match(\"/^spieler_(home|away)_(\\d+)_(\\d+)$/\", $k, $matches)) {\n // Doppel (Spieler)\n $mapped_id = $data['lineup'][$matches[1]][$v];\n $data['spiele'][$matches[2]][$matches[1]]['spieler'][$matches[3]] = [\n 'name' => $this->getSpielerName($mapped_id),\n 'id' => $mapped_id,\n ];\n } else if (preg_match(\"/^score_(home|away)_(\\d+)$/\", $k, $matches)) {\n // Score (Einzel und Doppel)\n $data['spiele'][$matches[2]][$matches[1]]['score'] = $v;\n } else {\n $data['TODO'][] = sprintf(\"%s = %s\\n\", $k, $v);\n }\n }\n }\n return $data;\n }", "title": "" }, { "docid": "aa46f78f208fe9e351c671d987302218", "score": "0.61583066", "text": "public function getPost()\r\n {\r\n return $this->request->getPostValues();\r\n }", "title": "" }, { "docid": "596020d0080edd66caacab418ed8a885", "score": "0.61572456", "text": "public static function getAllPostParameters(): array\n\t{\n\t\treturn isset($_POST) && is_array($_POST) ? $_POST : [];\n\t}", "title": "" }, { "docid": "a99b7fc10b365de87847d3a49bb528ad", "score": "0.61461025", "text": "public function getPostParams()\n {\n return $this->postParams;\n }", "title": "" }, { "docid": "d17739802500f9cced594a235cd3a69d", "score": "0.6141658", "text": "public function getActionParams()\n {\n return $_GET;// + $_POST;\n }", "title": "" }, { "docid": "e3c297c3a60c3ff2f558d54fd538d6fa", "score": "0.613954", "text": "private static function inputs()\n {\n switch(self::getRequestMethod())\n {\n case \"POST\":\n /* If header type is Json then this code will execute*/\n if($_SERVER['CONTENT_TYPE']=='application/json')\n {\n $parseData = file_get_contents(\"php://input\");\n self::$data = json_decode($parseData,TRUE);\n if(empty(self::$data))\n {\n ErrorAndMessages::jsonError();\n }\n }\n else\n {\n ErrorAndMessages::headerTypeError();\n }\n break;\n\n case \"GET\":\n break;\n case \"DELETE\":\n break;\n\n case \"PUT\";\n /* If header type is Json then this code will execute*/\n if($_SERVER['CONTENT_TYPE']=='application/json')\n {\n $parseData = file_get_contents(\"php://input\");\n self::$data = json_decode($parseData,TRUE);\n if(empty(self::$data))\n {\n ErrorAndMessages::jsonError();\n }\n }else\n {\n ErrorAndMessages::headerTypeError();\n }\n break;\n default:\n ErrorAndMessages::httpError();\n break;\n }\n }", "title": "" }, { "docid": "dc71f68fd9a0c29da33d03d78b9b0724", "score": "0.6119717", "text": "protected function getPostMultiParam($name)\n {\n return filter_input(INPUT_POST, $name, FILTER_DEFAULT, FILTER_REQUIRE_ARRAY);\n }", "title": "" }, { "docid": "0359d6ccb642b3ad2aa4ac48aff5cd6e", "score": "0.61051923", "text": "private function get_params()\r\n {\r\n return $_REQUEST ;\r\n }", "title": "" }, { "docid": "dd8141ebb3a9bc27c3b8a5f21a97ae87", "score": "0.6090362", "text": "public function getParams()\n {\n\n $params = array();\n\n $elements = explode('/', $this->request);\n unset($elements[0]);\n\n for($i = 1; $i<count($elements); $i++)\n {\n $params[$elements[$i]] = $elements[$i+1];\n $i++;\n }\n\n if($_POST)\n {\n foreach($_POST as $key => $val)\n {\n $params[$key] = $val;\n }\n }\n\n return $params;\n\n }", "title": "" }, { "docid": "9f2a898b0b9a9aff747c9ada90d50a7c", "score": "0.60839427", "text": "public function parseInputs()\r\n {\r\n if (count($_GET) > 0) {\r\n // $this->get = $this->handleGetPost($_GET);\r\n $this->get = $this->handleGetPost(filter_var_array($_GET, FILTER_SANITIZE_FULL_SPECIAL_CHARS));\r\n }\r\n\r\n /* Parse post requests */\r\n // $postVars = $_POST;\r\n $postVars = filter_var_array($_POST, FILTER_SANITIZE_FULL_SPECIAL_CHARS);\r\n\r\n if (in_array($this->request->getMethod(), ['put', 'patch', 'delete'], false) === true) {\r\n parse_str(file_get_contents('php://input'), $postVars);\r\n }\r\n\r\n if (count($postVars) > 0) {\r\n $this->post = $this->handleGetPost($postVars);\r\n }\r\n\r\n /* Parse get requests */\r\n if (count($_FILES) > 0) {\r\n $this->file = $this->parseFiles();\r\n }\r\n }", "title": "" }, { "docid": "1ea9465118cdc2c24c3db4ebecaa33a5", "score": "0.60725915", "text": "public static function params()\n {\n\n $params = [];\n switch (self::method()) {\n case \"GET\":\n $params = $_GET;\n break; \n case \"POST\":\n $params = $_POST;\n break;\n\n case \"PUT\":\n case \"DELETE\":\n parse_str(file_get_contents(\"php://input\"),$post_vars);\n $params = $post_vars;\n break;\n }\n\n $uri = explode('/',trim(\n parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), '/'\n )) ;\n\n if(isset($uri[1]) && is_numeric($uri[1])){\n $params['id'] = $uri[1];\n\n }\n \n\n \treturn $params;\n }", "title": "" }, { "docid": "a6c3b99982a1d907e2e6b6f3198a5991", "score": "0.60381156", "text": "protected function parseParameters() {\n // first of all, pull the GET vars\n if (isset($_SERVER['QUERY_STRING'])) {\n parse_str($_SERVER['QUERY_STRING'], $parameters);\n $this->parameters = $parameters;\n // grab these again, keep them separate for building page hyperlinks\n $this->paginationParameters = $parameters;\n }\n\n if(!isset($this->paginationParameters['start'])) {\n $this->paginationParameters['start'] = 0;\n }\n if(!isset($this->paginationParameters['resultsperpage'])) {\n $this->paginationParameters['resultsperpage'] = 20;\n }\n\n // now how about PUT/POST bodies? These override what we already had\n if($this->verb == 'POST' || $this->verb == 'PUT') {\n $body = file_get_contents(\"php://input\");\n if(isset($_SERVER['CONTENT_TYPE']) && $_SERVER['CONTENT_TYPE'] == \"application/json\") {\n $body_params = json_decode($body);\n if($body_params) {\n foreach($body_params as $param_name => $param_value) {\n $this->parameters[$param_name] = $param_value;\n }\n }\n } else {\n // we could parse other supported formats here\n }\n }\n return true;\n }", "title": "" }, { "docid": "f9322b5529dab1f49e97718ca0563498", "score": "0.5975987", "text": "public function getBodyParams();", "title": "" }, { "docid": "8c5cf94a9dbc90a63d98236edc80a1b6", "score": "0.594963", "text": "public function getParams();", "title": "" }, { "docid": "8c5cf94a9dbc90a63d98236edc80a1b6", "score": "0.594963", "text": "public function getParams();", "title": "" }, { "docid": "8c5cf94a9dbc90a63d98236edc80a1b6", "score": "0.594963", "text": "public function getParams();", "title": "" }, { "docid": "8c5cf94a9dbc90a63d98236edc80a1b6", "score": "0.594963", "text": "public function getParams();", "title": "" }, { "docid": "8c5cf94a9dbc90a63d98236edc80a1b6", "score": "0.594963", "text": "public function getParams();", "title": "" }, { "docid": "8c5cf94a9dbc90a63d98236edc80a1b6", "score": "0.594963", "text": "public function getParams();", "title": "" }, { "docid": "37f6abc2eba835af02fad7852409e843", "score": "0.5940826", "text": "public function getPostFields () {}", "title": "" }, { "docid": "6fd95568b8b5a9edb0e55e8d04218212", "score": "0.59254646", "text": "public function getPOSTDataPerInput() {\n\t\t$data = array();\n\t\tforeach ($this->names as $name) {\n\t\t\t$data[$name] = empty($_POST[$name]) ? array() : $_POST[$name];\n\t\t}\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "44ce40c03a560056bbd972a44407e725", "score": "0.5914254", "text": "private function _parseParams() {\n if (is_array($this->_params)) {\n foreach ($this->_params as $key => $param) {\n if (empty($param)) {\n continue;\n } else {\n if ($param === 'not') {\n $this->_expired = false;\n continue;\n }\n }\n }\n }\n\n }", "title": "" }, { "docid": "3a078b56076185ae89a25a87c51e4868", "score": "0.5911847", "text": "private function verifyIsSetPost($params){\n \tforeach ($params as &$value) {\n\t\t if ($this->post($value) == '')\n\t\t \treturn array('success' => false, 'message' => 'El parametro '.$value.' es obligatorio');\n\t\t}\n\t\treturn null;\n }", "title": "" }, { "docid": "a0e87f621c00418f95dcf3e202e79242", "score": "0.59056944", "text": "private function inputs(){\n if ($_SERVER['REQUEST_METHOD'] == \"GET\") {\n $this->_request = $this->cleanInputs($_GET);\n }\n }", "title": "" }, { "docid": "fa0c1cfe912b9778acece8ce88d18a59", "score": "0.5902723", "text": "private function processParameters() {\n\t\t\t$value = $this->getData('data');\n\t\t\tfor($i = 0; $i < count($this->getData('data')); $i++) {\n\t\t\t\tif(isset($value[$i])) {\n\t\t\t\t\tif($i == 0)\n\t\t\t\t\t\t$this->addParameter('file', $value[$i]);\n\t\t\t\t\telse if($i == 1)\n\t\t\t\t\t\t$this->addParameter('controller', $value[$i]);\n\t\t\t\t\telse if($i == 2)\n\t\t\t\t\t\t$this->addParameter('method', $value[$i]);\n\t\t\t\t\telse\n\t\t\t\t\t\t$this->addParameter('p' . ($i - 3), $value[$i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// If $_SERVER varaible is not set, the request is coming via CLI\n\t\t\tif(!isset($_SERVER['HTTP_USER_AGENT']))\n\t\t\t\t$this->addParameter('enabled', true);\n\t\t}", "title": "" }, { "docid": "eae7d563351c86d28920f5517054835d", "score": "0.5880384", "text": "public function getParams() {}", "title": "" }, { "docid": "736f3c94ecc0c6f38eb3c88326efeb45", "score": "0.5878884", "text": "function checkParams(){\n\t\tif( !array_key_exists('endpoint', $_GET) ){\n\t\t\treturn false;\n\t\t}\n\t\tif( !array_key_exists('object_id', $_GET) ){\n\t\t\treturn false;\n\t\t}\n\t\tif( !array_key_exists('type', $_GET) ){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "58caef39d2888428d81fd0ffe0482808", "score": "0.5878339", "text": "public function pesquisarAction() { \r\n // Recupera os parametros da requisição\r\n $params = $this->_request->getParams();\r\n }", "title": "" }, { "docid": "4302e7332813d730dd7e749cb4a0f275", "score": "0.5862352", "text": "public function get_post_vars() {\n\t\t\t\n\t\t$this->id = (isset($_POST['id']) ? $_POST['id'] : '');\n\t\t$this->name = (isset($_POST['name']) ? $_POST['name'] : '');\n\t\t$this->affiliate_code = (isset($_POST['affiliate_code']) ? $_POST['affiliate_code'] : '');\n\t\t$this->company = (isset($_POST['company']) ? $_POST['company'] : '');\n\t\t\t\n\t}", "title": "" }, { "docid": "c4a58b579ea5382b999c2b8b95970e14", "score": "0.5862105", "text": "public function parameters() {\n\t\tif ($this->params) {\n\t\t\treturn $this->params;\n\t\t}\n\t\t$params = array_merge($_POST, $_GET);\n\t\t// Using POST hack HTTP PUT/DELETE methods, for http verb request.\n\t\tif(isset($_POST['_method']) && in_array(strtoupper($_POST['_method']), array('PUT', 'DELETE'), true)) {\n\t\t\t$_SERVER['REQUEST_METHOD'] = strtoupper($params['_method']);\n\t\t\tunset($params['_method']);\n\t\t}\n\t\t$this->method = strtolower($_SERVER['REQUEST_METHOD']);\n\t\t$params = array_merge($params, $this->path_parameters());\n\t\tunset($params['fireflypath']);\n\t\tif(empty($params['action'])) {\n\t\t\t$params['action'] = 'index';\n\t\t}\n\t\t$this->params = $params;\n\t\treturn $params;\n\t}", "title": "" }, { "docid": "ea06a54c5bed1398b8af4bcbe1c3e5bd", "score": "0.5859646", "text": "public function getPostParameters()\n {\n return $this->postParameters;\n }", "title": "" }, { "docid": "fb4e5d1698012c26a36c7e2de2c49bda", "score": "0.5851422", "text": "public static function getPost()\n {\n if(self::isPost() || true) {\n $obj = new \\StdObject();\n foreach($_GET as $k=>$v) {\n $obj->$k = $v;\n }\n\n return $obj;\n }\n else {\n return false;\n }\n }", "title": "" }, { "docid": "172222d737380b8baf4eae9e60423a21", "score": "0.58367884", "text": "abstract public function getParams();", "title": "" }, { "docid": "641fc0308a05250066b14edc926df4e9", "score": "0.5817857", "text": "function getValues() {\t\n\t\t$names = func_get_args();\n\t\tif ( count( $names ) == 0 ) {\n\t\t\t$names = array_keys( $_REQUEST );\n\t\t}\n\n\t\t$retVal = array();\n\t\tforeach ( $names as $name ) { \n\t\t\t$value = $this->getVal( $name );\n\t\t\tif ( !is_null( $value ) ) {\n\t\t\t\t$retVal[$name] = $value;\n\t\t\t}\n\t\t}\n\t\treturn $retVal;\n\t}", "title": "" }, { "docid": "c1454d4dc59b0fe71635ca683f9c634b", "score": "0.5817099", "text": "public function beforeExecuteRoute()\n {\n $rawBody = $this->request->getJsonRawBody(true);\n if($rawBody){\n foreach ($rawBody as $key => $value) {\n $_POST[$key] = $value;\n }\n }\n }", "title": "" }, { "docid": "dbad66b5a79651f41c62573361bb81dc", "score": "0.581705", "text": "public function post ()\n {\n if ($this->postParams === null) {\n $this->postParams = new Parameters();\n }\n \n return $this->postParams;\n }", "title": "" }, { "docid": "181be4d40ba1162de0f4b2e0ed69e199", "score": "0.5800227", "text": "protected function getGetMultiParam($name){\n return filter_input(INPUT_GET, $name,FILTER_DEFAULT, FILTER_REQUIRE_ARRAY);\n }", "title": "" }, { "docid": "a2e4e16eeeb9df1a154f10fa8dfd4071", "score": "0.5797774", "text": "function obtenerParametros() {\n\t\t$cuerpo = file_get_contents('php://input');\n\t\t//print_r($cuerpo);\n\t\t//echo 'cuerpo = ' . $cuerpo . '<br />';\n\t\tif (isset($cuerpo) == false && $cuerpo !== \"\") {\n\t\t\treturn '';\n\t\t}\t\t\t\n\t\tswitch($_SERVER['REQUEST_METHOD']) {\n\t\t\tcase 'GET':\n\t\t\t\t$resultado = '';\t\t\n\t\t\t\t$datosDeEntrada = json_decode($cuerpo);\n\t\t\t\tfor ($i = 2; $i < sizeof($this->_parametros); $i++) {\n\t\t\t\t\t$llave = $this->_parametros[$i];\n\t\t\t\t\tif (isset($datosDeEntrada)) {\n\t\t\t\t\t\t$i === 2 ? $resultado = $datosDeEntrada->{$llave} : $resultado = $resultado . ',' . $datosDeEntrada->{$llave};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($resultado === \"\") {\n\t\t\t\t\tthrow new Exception(\"Metodo no disponible\", 405);\n\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\treturn $resultado;\n\t\t\t\tbreak;\n\t\t\tcase 'POST':\n\t\t\tcase 'PUT':\n\t\t\tcase 'DELETE':\n\t\t\t\treturn json_decode($cuerpo);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn '';\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "d7b6c4107793aae516132256f276ad3b", "score": "0.57918143", "text": "public function getParamValues()\n {\n return $this->getRequest()->getParams();\n }", "title": "" }, { "docid": "a274e254b9db8400966774f19d32ff01", "score": "0.57874817", "text": "function checkBodyRequest(){\n $postDataJson = file_get_contents('php://input');\n\n # Get as an object\n $postData = json_decode($postDataJson, true);\n\n $response = [];\n\n if(!isset($postData['user_name'])){\n $response = ['error' => '%user_name% is a required field'];\n return $response;\n }\n\n if(!isset($postData['user_email'])){\n $response = ['error' => '%user_email% is a required field'];\n return $response;\n }\n\n if(!isset($postData['age'])){\n $response = ['error' => '%age% is a required field'];\n return $response;\n }\n\n return $postData;\n}", "title": "" }, { "docid": "df78b39bc6ed481d0cf621642ed7706d", "score": "0.5785875", "text": "public function getAll()\n\t\t{\n\t\t\t\tif (isset($_POST)) \n\t\t\t\t{\n\t\t\t\t\treturn $_POST;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturn NULL;\n\t\t\t\t}\n\t\t\t\t\n\t\t}", "title": "" }, { "docid": "64389da59896d2bbdf019ae13d809ecb", "score": "0.5765725", "text": "public function parse_fields()\n {\n return request()->input('fields');\n }", "title": "" }, { "docid": "9a9ab5d0541049278e7f6baec5effc69", "score": "0.57525814", "text": "protected function parseRequest() {\n $this->params = (isset($_REQUEST['data'])) ? json_decode(stripslashes($_REQUEST['data'])) : null;\n\n if (isset($_REQUEST['data'])) {\n $this->params = json_decode(stripslashes($_REQUEST['data']));\n } else {\n $raw = '';\n $httpContent = fopen('php://input', 'r');\n //print_r($httpContent);\n while ($kb = fread($httpContent, 1024)) {\n $raw .= $kb;\n }\n $params = json_decode(stripslashes($raw));\n if ($params) {\n $this->params = $params->data;\n }\n }\n }", "title": "" }, { "docid": "e5f32c1233ca52169db4cd84a25233af", "score": "0.5735189", "text": "public function getParams()\n {\n $return = false;\n $paramsIsSet = isset($this->_params);\n if ($paramsIsSet) {\n $return = $this->_params;\n }\n return $return;\n }", "title": "" }, { "docid": "a738f6dbf66d1a1651a62303761159d1", "score": "0.5722182", "text": "public function getRequestParams() \n\t\t{\n\t\t\t$allowed_params = array('user_name', 'store_name', 'location', 'udid','CAKEPHP');\n\t\t\t$api_parameters\t= array();\n\t\t\t\n\t\t\t//foreach ( $_REQUEST as $param => $value ){\t\t\t// for testing only\n\t\t\tforeach ($_POST as $param => $value){\t\t\t\t\n\t\t\t\tif ( in_array( trim( $param ), $allowed_params ) ) {\t\t\t\t\t\n\t\t\t\t\tif ( $param != 'CAKEPHP' )\n\t\t\t\t\t\t$api_parameters[ $param ] = $value;\n\t\t\t\t}else{\t\t\t\t\t\n\t\t\t\t\t$data = array();\n\t\t\t\t\t$data['Response']['response_code']\t\t= 0;\n\t\t\t\t\t$data['Response']['response_message']\t= \"Invalid parameter- \" . $param;\n\t\t\t\t\t$this->sendApiResponse ( $data ); \n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\treturn $api_parameters;\n\t\t}", "title": "" }, { "docid": "72290b9412ff5a85bacbfe502d7271f0", "score": "0.57131624", "text": "public function get_values()\r\n {\r\n \treturn $_POST;\r\n }", "title": "" }, { "docid": "95ed0b29eff82b7fa622ea0f027cad49", "score": "0.5703927", "text": "function processPostVars()\n {\n assignPostIfExists($this->id, $this->rs, \"id\");\n assignPostIfExists($this->lecture_id, $this->rs, \"lecture_id\");\n assignPostIfExists($this->group_id, $this->rs, \"group_id\");\n }", "title": "" }, { "docid": "76c38756538f4d134ef35d88d1fc6496", "score": "0.56651425", "text": "public function getParams():mixed\n { \n return count($this->params) == 1 ? $this->params[0] : $this->params;\n }", "title": "" }, { "docid": "21e82ca97f5400797d645f204f6f8e77", "score": "0.5637894", "text": "public function readRequest\n\t(\n\t)\n\t{\n $parm = \"\";\n parent::readRequest();\n \n switch($this->action)\n {\n case self::GET_LOCATIONS:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['region']) ?\n json_decode($_REQUEST['region']) :\n \"\";\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['region']) ? \n $_REQUEST['region'] : \n \"\";\n array_push($this->parms, $parm);\n }\n break; \n case self::GET_FEATURED_RENTALS:\n break; \n case self::ADD_DRIVER_LICENSE:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['customerId']) ?\n json_decode($_REQUEST['customerId']) :\n NO_ID;\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['state']) ?\n json_decode($_REQUEST['state']) :\n \"\";\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['number']) ?\n json_decode($_REQUEST['number']) :\n \"\";\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['dob']) ?\n json_decode($_REQUEST['dob']) :\n \"\";\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['customerId']) ? \n $_REQUEST['customerId'] : \n NO_ID;\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['state']) ? \n $_REQUEST['state'] : \n \"\";\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['number']) ? \n $_REQUEST['number'] : \n \"\";\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['dob']) ? \n $_REQUEST['dob'] : \n \"\";\n array_push($this->parms, $parm);\n }\n break; \n case self::ADD_RENTAL:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['customerId']) ?\n json_decode($_REQUEST['customerId']) :\n NO_ID;\n array_push($this->parms, $parm);\n \n $parm = isset($_REQUEST['priceItems']) ? \n json_decode($_REQUEST['priceItems']) : \n NULL;\n \n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['size']) ?\n json_decode($_REQUEST['size']) :\n \"\";\n array_push($this->parms, $parm);\n \n $parm = isset($_REQUEST['startDate']) ?\n json_decode($_REQUEST['startDate']) :\n \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['endDate']) ?\n json_decode($_REQUEST['endDate']) :\n \"\";\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['customerId']) ? \n $_REQUEST['customerId'] : NO_ID;\n array_push($this->parms, $parm);\n \n $parm = isset($_REQUEST['priceItems']) ?\n unserialize($_REQUEST['priceItems']) : NULL;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['size']) ?\n $_REQUEST['size'] : \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['startDate']) ?\n $_REQUEST['startDate'] : \"\";\n array_push($this->parms, $parm);\n \n $parm = isset($_REQUEST['endDate']) ?\n $_REQUEST['endDate'] : \"\";\n array_push($this->parms, $parm); \n }\n break; \n case self::GET_CAR_RENTALS:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['entityId']) ?\n json_decode($_REQUEST['entityId']) :\n \"\";\n array_push($this->parms, $parm); \n } \n else \n {\n $parm = isset($_REQUEST['entityId']) ? \n $_REQUEST['entityId'] : \"\";\n array_push($this->parms, $parm);\n }\n break; \n case self::SEARCH_RENTAL:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['startDate']) ?\n json_decode($_REQUEST['startDate']) :\n \"\";\n array_push($this->parms, $parm);\n \n $parm = isset($_REQUEST['endDate']) ?\n json_decode($_REQUEST['endDate']) :\n \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['location']) ?\n json_decode($_REQUEST['location']) :\n \"\";\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['startDate']) ? \n $_REQUEST['startDate'] : \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['endDate']) ? \n $_REQUEST['endDate'] : \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['location']) ? \n $_REQUEST['location'] : \"\";\n array_push($this->parms, $parm);\n }\n break; \n case self::GET_OWNER_RENTALS:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['ownerId']) ?\n json_decode($_REQUEST['ownerId']) :\n NO_ID;\n array_push($this->parms, $parm);\n }\n else \n {\n $parm = isset($_REQUEST['ownerId']) ? \n $_REQUEST['ownerId'] : NO_ID;\n array_push($this->parms, $parm);\n }\n break;\n case self::GET_RENTALS:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['customerId']) ?\n json_decode($_REQUEST['customerId']) :\n NO_ID;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['customerId']) ? \n $_REQUEST['customerId'] : NO_ID;\n array_push($this->parms, $parm);\n }\n break;\n case self::GET_MEM_ORDER:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['customerId']) ?\n json_decode($_REQUEST['customerId']) :\n NO_ID;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['customerId']) ? \n $_REQUEST['customerId'] : NO_ID;\n array_push($this->parms, $parm);\n }\n break;\n case self::GET_DRIVER_LICENSE:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['customerId']) ?\n json_decode($_REQUEST['customerId']) :\n NO_ID;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['customerId']) ? \n $_REQUEST['customerId'] : NO_ID;\n array_push($this->parms, $parm);\n }\n break;\n case self::GET_RENTAL_PAYMENT:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['orderId']) ?\n json_decode($_REQUEST['orderId']) :\n NO_ID;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['orderId']) ? \n $_REQUEST['orderId'] : NO_ID;\n array_push($this->parms, $parm);\n }\n break; \n case self::GET_A_RIDE:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['rideId']) ?\n json_decode($_REQUEST['rideId']) :\n NO_ID;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['rideId']) ? \n $_REQUEST['rideId'] : NO_ID;\n array_push($this->parms, $parm);\n } \n break; \n case self::UPDATE_A_RIDE:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['ride']) ?\n json_decode($_REQUEST['ride']) :\n \"\";\n if (!isEmpty($parm))\n {\n $parm = (array) $parm;\n } \n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['ride']) ? \n unserialize($_REQUEST['ride']) : NULL;\n array_push($this->parms, $parm);\n } \n break; \n case self::DELETE_A_RIDE:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['rideId']) ?\n json_decode($_REQUEST['rideId']) :\n NO_ID;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['rideId']) ? \n $_REQUEST['rideId'] : NO_ID;\n array_push($this->parms, $parm);\n } \n break; \n case self::REJECT_A_RIDE:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['liftId']) ?\n json_decode($_REQUEST['liftId']) :\n NO_ID;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['liftId']) ? \n $_REQUEST['liftId'] : NO_ID;\n array_push($this->parms, $parm);\n } \n break; \n case self::POST_A_RIDE:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['ride']) ?\n json_decode($_REQUEST['ride']) :\n \"\";\n if (!isEmpty($parm))\n {\n $parm = (array) $parm;\n } \n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['ride']) ? \n unserialize($_REQUEST['ride']) : NULL;\n array_push($this->parms, $parm);\n } \n break; \n case self::CONFIRM_A_RIDE:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['rideId']) ?\n json_decode($_REQUEST['rideId']) :\n NO_ID;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['liftId']) ?\n json_decode($_REQUEST['liftId']) :\n NO_ID;\n array_push($this->parms, $parm);\n \n // not sure why json_decode does not work with dash\n $parm = isset($_REQUEST['confNum']) ?\n $_REQUEST['confNum'] :\n \"\";\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['rideId']) ? \n $_REQUEST['rideId'] : NO_ID;\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['liftId']) ? \n $_REQUEST['liftId'] : NO_ID;\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['confNum']) ? \n $_REQUEST['confNum'] : \"\";\n array_push($this->parms, $parm);\n } \n break; \n case self::GET_RIDES:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['startType']) ?\n json_decode($_REQUEST['startType']) :\n RideVO::AIRPORT_START;\n array_push($this->parms, $parm);\n \n $parm = isset($_REQUEST['location']) ?\n json_decode($_REQUEST['location']) :\n \"\";\n array_push($this->parms, $parm);\n \n $parm = isset($_REQUEST['address']) ?\n json_decode($_REQUEST['address']) :\n \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['date']) ?\n json_decode($_REQUEST['date']) :\n \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['time']) ?\n json_decode($_REQUEST['time']) :\n \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['seats']) ?\n json_decode($_REQUEST['seats']) :\n RideVO::DEFAULT_SEAT;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['smoker']) ?\n json_decode($_REQUEST['smoker']) :\n FALSE;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['bags']) ?\n json_decode($_REQUEST['bags']) :\n 0;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['bagSize']) ?\n json_decode($_REQUEST['bagSize']) :\n RideVO::SMALL;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['startType']) ? \n $_REQUEST['startType'] : \n RideVO::AIRPORT_START;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['location']) ? \n $_REQUEST['location'] : \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['address']) ? \n $_REQUEST['address'] : \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['date']) ? \n $_REQUEST['date'] : \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['time']) ? \n $_REQUEST['time'] : \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['seats']) ?\n $_REQUEST['seats'] :\n RideVO::DEFAULT_SEAT;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['smoker']) ?\n $_REQUEST['smoker'] :\n RideVO::DEFAULT_SEAT;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['bags']) ? \n $_REQUEST['bags'] : 0;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['bagSize']) ?\n $_REQUEST['bagSize'] :\n RideVO::SMALL;\n array_push($this->parms, $parm);\n }\n break; \n case self::BOOK_A_RIDE:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['rideId']) ?\n json_decode($_REQUEST['rideId']) :\n NO_ID;\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['liftId']) ?\n json_decode($_REQUEST['liftId']) :\n NO_ID;\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['seats']) ?\n json_decode($_REQUEST['seats']) :\n 0;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['rideId']) ? \n $_REQUEST['rideId'] : NO_ID;\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['liftId']) ? \n $_REQUEST['liftId'] : NO_ID;\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['seats']) ? \n $_REQUEST['seats'] : 0;\n array_push($this->parms, $parm);\n }\n break; \n case self::RIDES_BY_CUSTOMER:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['customerId']) ?\n json_decode($_REQUEST['customerId']) :\n NO_ID;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['customerId']) ? \n $_REQUEST['customerId'] : NO_ID;\n array_push($this->parms, $parm);\n }\n break; \n case self::GET_A_LIFT:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['liftId']) ?\n json_decode($_REQUEST['liftId']) :\n NO_ID;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['liftId']) ? \n $_REQUEST['liftId'] : NO_ID;\n array_push($this->parms, $parm);\n } \n break; \n case self::UPDATE_A_LIFT:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['lift']) ?\n json_decode($_REQUEST['lift']) :\n \"\";\n if (!isEmpty($parm))\n {\n $parm = (array) $parm;\n } \n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['lift']) ? \n unserialize($_REQUEST['lift']) : NULL;\n array_push($this->parms, $parm);\n } \n break; \n case self::DELETE_A_LIFT:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['liftId']) ?\n json_decode($_REQUEST['liftId']) :\n NO_ID;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['liftId']) ? \n $_REQUEST['liftId'] : NO_ID;\n array_push($this->parms, $parm);\n } \n break; \n case self::REJECT_A_LIFT:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['liftId']) ?\n json_decode($_REQUEST['liftId']) :\n NO_ID;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['liftId']) ? \n $_REQUEST['liftId'] : NO_ID;\n array_push($this->parms, $parm);\n } \n break; \n case self::POST_AUTO_LIFT:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['lift']) ?\n json_decode($_REQUEST['lift']) :\n \"\";\n if (!isEmpty($parm))\n {\n $parm = (array) $parm;\n } \n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['lift']) ? \n unserialize($_REQUEST['lift']) : NULL;\n array_push($this->parms, $parm);\n } \n break; \n case self::POST_A_LIFT:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['lift']) ?\n json_decode($_REQUEST['lift']) :\n \"\";\n if (!isEmpty($parm))\n {\n $parm = (array) $parm;\n } \n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['lift']) ? \n unserialize($_REQUEST['lift']) : NULL;\n array_push($this->parms, $parm);\n } \n break; \n case self::ADD_ORDER_TO_LIFT:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['orderId']) ?\n json_decode($_REQUEST['orderId']) :\n NO_ID;\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['liftId']) ?\n json_decode($_REQUEST['liftId']) :\n NO_ID;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['orderId']) ? \n unserialize($_REQUEST['orderId']) : NULL;\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['liftId']) ? \n unserialize($_REQUEST['liftId']) : NULL;\n array_push($this->parms, $parm);\n } \n break; \n case self::GET_LIFTS:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['rideId']) ?\n json_decode($_REQUEST['rideId']) :\n NO_ID;\n array_push($this->parms, $parm);\n \n $parm = isset($_REQUEST['startType']) ?\n json_decode($_REQUEST['startType']) :\n LiftVO::AIRPORT_START;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['location']) ?\n json_decode($_REQUEST['location']) :\n \"\";\n array_push($this->parms, $parm);\n \n $parm = isset($_REQUEST['address']) ?\n json_decode($_REQUEST['address']) :\n \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['date']) ?\n json_decode($_REQUEST['date']) :\n \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['time']) ?\n json_decode($_REQUEST['time']) :\n \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['seats']) ?\n json_decode($_REQUEST['seats']) :\n LiftVO::DEFAULT_SEAT;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['smoker']) ?\n json_decode($_REQUEST['smoker']) :\n LiftVO::DEFAULT_SEAT;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['bags']) ?\n json_decode($_REQUEST['bags']) :\n 0;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['bagSize']) ?\n json_decode($_REQUEST['bagSize']) :\n LiftVO::SMALL;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['rideId']) ? \n $_REQUEST['rideId'] : \n NO_ID;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['startType']) ? \n $_REQUEST['startType'] : \n LiftVO::AIRPORT_START;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['location']) ? \n $_REQUEST['location'] : \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['address']) ? \n $_REQUEST['address'] : \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['date']) ? \n $_REQUEST['date'] : \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['time']) ? \n $_REQUEST['time'] : \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['seats']) ?\n $_REQUEST['seats'] :\n 1;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['smoker']) ?\n $_REQUEST['smoker'] :\n 1;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['bags']) ? \n $_REQUEST['bags'] : 0;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['bagSize']) ?\n $_REQUEST['bagSize'] :\n LiftVO::SMALL;\n array_push($this->parms, $parm);\n }\n break; \n case self::BOOK_A_LIFT:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['liftId']) ?\n json_decode($_REQUEST['liftId']) :\n NO_ID;\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['rideId']) ?\n json_decode($_REQUEST['rideId']) :\n NO_ID;\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['seats']) ?\n json_decode($_REQUEST['seats']) :\n 0;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['liftId']) ? \n $_REQUEST['liftId'] : NO_ID;\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['rideId']) ? \n $_REQUEST['rideId'] : NO_ID;\n array_push($this->parms, $parm);\n $parm = isset($_REQUEST['seats']) ? \n $_REQUEST['seats'] : 0;\n array_push($this->parms, $parm);\n }\n break; \n case self::LIFTS_BY_CUSTOMER:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['customerId']) ?\n json_decode($_REQUEST['customerId']) :\n NO_ID;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['customerId']) ? \n $_REQUEST['customerId'] : NO_ID;\n array_push($this->parms, $parm);\n }\n break; \n case self::CONFIRM_A_LIFT:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['liftId']) ?\n json_decode($_REQUEST['liftId']) :\n NO_ID;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['liftId']) ? \n $_REQUEST['liftId'] : NO_ID;\n array_push($this->parms, $parm);\n } \n break; \n case self::PENDING_CONFIRM_A_LIFT:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['liftId']) ?\n json_decode($_REQUEST['liftId']) :\n NO_ID;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['liftId']) ? \n $_REQUEST['liftId'] : NO_ID;\n array_push($this->parms, $parm);\n } \n break; \n case self::PENDING_PAYMENT_A_LIFT:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['liftId']) ?\n json_decode($_REQUEST['liftId']) :\n NO_ID;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['liftId']) ? \n $_REQUEST['liftId'] : NO_ID;\n array_push($this->parms, $parm);\n } \n break; \n case self::PENDING_FULFILLED_A_LIFT:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['liftId']) ?\n json_decode($_REQUEST['liftId']) :\n NO_ID;\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['liftId']) ? \n $_REQUEST['liftId'] : NO_ID;\n array_push($this->parms, $parm);\n } \n break; \n case self::UPDATE_CONTRIBUTION:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['liftId']) ?\n json_decode($_REQUEST['liftId']) :\n NO_ID;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['contribution']) ?\n json_decode($_REQUEST['contribution']) :\n \"\";\n array_push($this->parms, $parm);\n } \n else \n {\n $parm = isset($_REQUEST['liftId']) ? \n $_REQUEST['liftId'] : NO_ID;\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['contribution']) ? \n $_REQUEST['contribution'] : NO_ID;\n array_push($this->parms, $parm);\n } \n break; \n case self::GET_PRICE_FOR_RIDE:\n if ($this->isJSONDecode()) \n {\n $parm = isset($_REQUEST['airportName']) ?\n json_decode($_REQUEST['airportName']) :\n \"\";\n array_push($this->parms, $parm); \n\n $parm = isset($_REQUEST['driverAddress']) ?\n json_decode($_REQUEST['driverAddress']) :\n \"\";\n array_push($this->parms, $parm); \n\n $parm = isset($_REQUEST['miles']) ?\n json_decode($_REQUEST['miles']) :\n 0;\n array_push($this->parms, $parm); \n } \n else \n {\n $parm = isset($_REQUEST['airportName']) ? \n $_REQUEST['airportName'] : \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['driverAddress']) ? \n $_REQUEST['driverAddress'] : \"\";\n array_push($this->parms, $parm);\n\n $parm = isset($_REQUEST['miles']) ? \n $_REQUEST['miles'] : 0;\n array_push($this->parms, $parm);\n }\n break; \n case self::GET_BAG_SIZES:\n case self::GET_SEATS:\n break; \n }\n }", "title": "" }, { "docid": "68830c0aa27f024c1e02d6fb30429760", "score": "0.5637744", "text": "public function get_post_vars() {\n\t\t\t\n\t\t$this->id = (isset($_POST['id']) ? $_POST['id'] : '');\n\t\t$this->order_id = (isset($_POST['order_id']) ? $_POST['order_id'] : '');\n\t\t$this->item_id = (isset($_POST['item_id']) ? $_POST['item_id'] : '');\n\t\t$this->certificate_value_id = (isset($_POST['certificate_value_id']) ? $_POST['certificate_value_id'] : '');\n\t\t$this->item_type = (isset($_POST['item_type']) ? $_POST['item_type'] : '');\n\t\t$this->item_value = (isset($_POST['item_value']) ? $_POST['item_value'] : '');\n\t\t$this->item_quantity = (isset($_POST['item_quantity']) ? $_POST['item_quantity'] : '');\n\t\t$this->item_start_date = (isset($_POST['item_start_date']) ? $_POST['item_start_date'] : '');\n\t\t$this->item_expiration_date = (isset($_POST['item_expiration_date']) ? $_POST['item_expiration_date'] : '');\n\t\t\t\n\t}", "title": "" }, { "docid": "d0b9b8fcb9e43dc9c71a84216de55f8c", "score": "0.56335574", "text": "function input() {\n\t$inputs = $_POST + $_GET;\n\t$args = func_get_args();\n\t$argc = count($args);\n\tif($argc == 0) {\n\t\treturn $inputs;\n\t}\n\t$arg = $args[0];\n\tif($argc == 1 && gettype($arg) == 'string') {\n\t\treturn array_get($inputs, $arg);\n\t}\n\t$result = [];\n\tforeach($args as $arg) {\n\t\tif(gettype($arg) == 'string') {\n\t\t\tif(isset($inputs[$arg])) {\n\t\t\t\t$result[$arg] = $inputs[$arg];\n\t\t\t}\n\t\t} else {\n\t\t\tforeach($arg as $str) {\n\t\t\t\tif(isset($inputs[$str])) {\n\t\t\t\t\t$result[$str] = $inputs[$str];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn $result;\n}", "title": "" }, { "docid": "41bd3ef5aa3053491dbced2fdff5d095", "score": "0.5633556", "text": "protected function setRequestArgumentsFromGetPost()\n {\n $validArguments = ['extensionName', 'pluginName', 'controllerName', 'actionName', 'arguments'];\n foreach ($validArguments as $argument) {\n if (\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::_GP($argument)) {\n $this->requestArguments[$argument] = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::_GP($argument);\n }\n }\n }", "title": "" }, { "docid": "ad5878c9cf50b32ab9d3dd0c38988f18", "score": "0.5631339", "text": "public function readParam() {\n\t\t$this->selected = $_REQUEST['selected'];\n\t\t$this->expanded = $_REQUEST['expanded'];\n\t\t$this->relpath = $_REQUEST['relpath'];\n\t\t$this->newName = $_REQUEST['newName'];\n\t\t$this->newDir = $_REQUEST['newDir'];\n\t\t$this->newLink = $_REQUEST['newLink'];\n\t\t$this->newRelpath = $_REQUEST['newRelpath'];\n\t\t$this->newComment = $_REQUEST['newComment'];\n\t\t$this->newFile = $_FILES['newFile'];\n\t}", "title": "" }, { "docid": "9875f27eacf5ad14d2d64ba681c1e19d", "score": "0.5623216", "text": "protected function __getPostRemoveEmpty(){\r\n if($this->request->isPost()){\r\n foreach($this->request->getPost() as $key => $value){\r\n if(empty($value) || is_null($value)){\r\n unset($_POST[$key]);\r\n }\r\n }\r\n }\r\n else{\r\n foreach($this->request->getQuery() as $key => $value){\r\n if(empty($value) || is_null($value)){\r\n unset($_GET[$key]);\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "3a28800fed3cae5a4504a08e6aa84294", "score": "0.5620107", "text": "function processPostVars()\n {\n $this->id = $_POST['id'];\n $this->type = (integer)$_POST['type'];\n $this->title = trimStrip($_POST['title']);\n $this->minpts = (integer)$_POST['minpts'];\n $this->position = trimStrip($_POST['position']);\n $this->lecture_id = (integer)$_POST['lecture_id'];\n }", "title": "" }, { "docid": "4d951ffc7845efd2555828aaa15cde1a", "score": "0.56194365", "text": "function getParams();", "title": "" }, { "docid": "e62f39c035c9710aba3b1517f15b3f10", "score": "0.56019324", "text": "public function getParams(): array;", "title": "" }, { "docid": "0569e63f3cbe8c5c01311b107663778c", "score": "0.5601782", "text": "private function _parseInput()\n {\n $postBody = file_get_contents('php://input');\n\n if ($postBody) {\n $json = Json::decode($postBody);\n $this->_inputVars = $json;\n }\n }", "title": "" }, { "docid": "3be312bd46016df791bbc2ccaa3902c6", "score": "0.56012934", "text": "private function paramsProcessing() {\n $actions_list = array( 'signin', 'signup', 'forget', 'reset_passwd' );\n\n $do = $this->__getPost('do');\n\n if( !in_array( $do, $actions_list ) ) $this->error( 'PARAMS_ERR' );\n\n /**\n * get email address or cellphone number which user typed in\n */\n $to = $this->__getPost('to');\n\n if( filter_var( $to, FILTER_VALIDATE_EMAIL ) ) {\n $type = 'email';\n } else if( preg_match( '#^\\d{11}$#', $to ) ) {\n $type = 'phone';\n } else {\n $this->error( 'PARAMS_ERR' );\n }\n\n $this->params = array(\n 'do' => $do,\n 'to' => $to,\n 'type' => $type\n );\n\n return $this;\n }", "title": "" }, { "docid": "a84957b0e4d34e0ff594a6e981784dc1", "score": "0.5589388", "text": "public function getFormViewParams();", "title": "" }, { "docid": "5aa12584aa3233547f621aa5f94e4fa8", "score": "0.5586684", "text": "public function params() {\n return $this->request;\n }", "title": "" }, { "docid": "28aadab185c8511e874e7b13cabe8211", "score": "0.5581246", "text": "function getParameterFields() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "28dbe7c0dd5bbd0626aae13b1aad7c9d", "score": "0.558081", "text": "public function validationParams()\n {\n $extraFields = $this->_class->getExtraFields();\n \n foreach ($extraFields as $field) {\n if (array_key_exists($field, $_REQUEST) === FALSE) {\n $this->_class->response(['code' => 400, 'msg' => 'Missing parameter: ' . $field . ' .']);\n }\n }\n }", "title": "" }, { "docid": "f80f5e57bf1098d51158ba3cfc23104c", "score": "0.5579045", "text": "function extract_vars_from_post_get(&$res, $arr)\n{\n\tforeach ($arr as $var) {\n\t\t$res[$var] = \"\";\n\t\tif (isset($_POST[$var])) {\n\t\t\t$res[$var] = $_POST[$var];\n\t\t}\n\t\telse if (isset($_GET[$var])) {\n $res[$var] = $_GET[$var];\n }\n\t\tif (is_string($res[$var])) {\n\t\t\t$res[$var] = stripslashes($res[$var]);\n\t\t}\n\t}\n\treturn $res;\n}", "title": "" }, { "docid": "3fee904aa4b08acc386b39a98a40df7d", "score": "0.556477", "text": "public static function updateReqParams()\n {\n return [];\n }", "title": "" }, { "docid": "c8e640fcbe0fd792f2e778d2483ecb25", "score": "0.55635", "text": "public function getParamsSafe() {\n return is_array($this->params) ? $this->params : [];\n }", "title": "" }, { "docid": "ea1666b2beafc7a5d2eb0e37975b9be2", "score": "0.5560806", "text": "public function selecionarAction() { \r\n // Recupera os parametros da requisição\r\n $params = $this->_request->getParams();\r\n }", "title": "" }, { "docid": "b80ce679e90deb6cabc10c331fbd4319", "score": "0.55554295", "text": "function checkPostFields($arFields)\n{\n}", "title": "" }, { "docid": "0f1c1bbaaccdb661aa77302c18905597", "score": "0.5552605", "text": "function isPost()\n{\n if (in_array(\"Present\", $_POST)) {\n return true;\n } elseif (in_array(\"Offsite\", $_POST)) {\n return true;\n } elseif (in_array(\"Field Trip\", $_POST)) {\n return true;\n } elseif (in_array(\"Check Out\", $_POST)) {\n return true;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "47288136abb34405eb05cf26fb1625c2", "score": "0.554566", "text": "public function parseFormData() {\n\t\t\n\t\tif ($this->getMethod() === 'GET') {\n\t\t\t$data = $_GET;\n\t\t\t\n\t\t} elseif ($this->getMethod() === 'POST') {\n\t\t\t$data = $_POST;\n\t\t\t\n\t\t} elseif ($this->getMethod() === 'PUT') {\n\t\t\tparse_str($this->getRawInput(), $data);\n\t\t\t\n\t\t} elseif ($this->getMethod() === 'DELETE') {\n\t\t\tparse_str($this->getRawInput(), $data);\n\t\t\t\n\t\t} else {\n\t\t\t$data = [];\n\t\t}\n\t\t\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "b042e4fd3c0c228faf4b4c9de1275c62", "score": "0.5539063", "text": "public static function containsGetParameters() {\n\t\tif(!strpos($_SERVER['REQUEST_URI'], \"?\")) return false;\n\t\t\n\t\t$params = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], \"?\")+1);\n\t\t$arr_params = array_filter(explode(\"&\", $params), function($el){$parts = explode(\"=\",$el,2); return ($parts[0]!=\"_csrfdebug\" && substr($parts[0],0,10)!=\"_csrftoken\");});\n\t\treturn (count($arr_params)>0);\n\t}", "title": "" }, { "docid": "c144b1b35d5691c81e68b87fce763b34", "score": "0.5526602", "text": "function postGetter($name)\n{\n if(isset($_POST[$name])&&!empty($_POST[$name]))\n return $_POST[$name];\n else\n return null;\n}", "title": "" }, { "docid": "f78aec31dd7ffdab7e32e03ab667fe9c", "score": "0.5515823", "text": "public function getParams(): array\n {\n $params = $this->getQueryParams();\n $postParams = $this->getParsedBody();\n\n if ($postParams) {\n $params = array_merge($params, (array)$postParams);\n }\n\n return $params;\n }", "title": "" }, { "docid": "f216d737e8c059d9b26d876a9ac1b38c", "score": "0.5507726", "text": "function isPost(){\r\nif (in_array(\"Present\", $_POST)) {\r\n return true;\r\n} elseif (in_array(\"Offsite\", $_POST)){\r\n return true;\r\n} elseif (in_array(\"Field Trip\", $_POST)){\r\n return true;\r\n} elseif (in_array(\"Check Out\", $_POST)){\r\n return true;\r\n} else {\r\nreturn false;\r\n}\r\n}", "title": "" }, { "docid": "d2f2414c069163d58d82bd0b1f2e7e77", "score": "0.55025446", "text": "public function executePost()\n {\n $valid = $this->hasRequiredParameters($this->requiredParams);\n if ($valid instanceof Frapi_Error) {\n throw $valid;\n }\n \n return $this->toArray();\n }", "title": "" }, { "docid": "762eca6102a7bf065e8a1bb198554c12", "score": "0.5494748", "text": "function parse_params()\r\n{\r\n $params = array();\r\n\r\n if (ini_get('magic_quotes_gpc') == 1) {\r\n if (!empty($_POST)) {\r\n $params = array_merge($params, stripslashes_deep($_POST));\r\n } else {\r\n $params = array_merge($params, $_POST);\r\n }\r\n\r\n }\r\n\r\n if (ini_get('magic_quotes_gpc') == 1) {\r\n if (!empty($_GET)) {\r\n $params = array_merge($params, stripslashes_deep($_GET));\r\n } else {\r\n $params = array_merge($params, $_GET);\r\n }\r\n\r\n }\r\n return $params;\r\n}", "title": "" }, { "docid": "a5c2d0b65fcccdfb3d63c7d5421fedf1", "score": "0.5492008", "text": "public function toRequestParams();", "title": "" }, { "docid": "3fd90008100cb1fbdff099ef89548216", "score": "0.5490678", "text": "function get_input_vars(){\n $vars = $_SERVER['REQUEST_METHOD'] == 'POST' ? $_POST : $_GET;\n am_filter_input_var($vars, '');\n return $vars;\n}", "title": "" }, { "docid": "2b4bd347fd5361666bcb5d9f7e7331cf", "score": "0.54865545", "text": "protected function getPostParam($name){\n return filter_input(INPUT_POST, $name);\n }", "title": "" }, { "docid": "c238bd70acced9f9d2bba02a3150b01d", "score": "0.54711664", "text": "public function getParams() {\n\t\treturn $this->valids;\n\t}", "title": "" }, { "docid": "c9f63ab06682d900e43f51e2ea7b83ab", "score": "0.54673994", "text": "public function newpostAll()\n {\n // var_dump($_POST);\n // echo \"end input</pre>\";\n if(isset($_POST))\n return $_POST;\n }", "title": "" }, { "docid": "ccb79102e481f99e4da77d0d0a0f7d90", "score": "0.54648113", "text": "public function getHttpPostRequestBody();", "title": "" }, { "docid": "acaeb29cbca2ebe257d7d6bf59f5d934", "score": "0.54611105", "text": "protected function _parse_body() {\n $data_arr = array();\n $body = '';\n\n if(isset($_POST) && sizeof($_POST) > 0) {\n foreach($_POST as $var => $val) {\n if(preg_match(self::$filter_post, $var) && preg_match(self::$filterPost, $val)) {\n $data_arr[$var] = $val;\n }\n }\n }\n \n $this->data = $data_arr;\n $this->body = $body;\n }", "title": "" }, { "docid": "d8ef5f38d61f7755ecf15c15cd2f564d", "score": "0.5455826", "text": "protected function getBodyParams()\n {\n $request = $this->getRequest();\n $paramsBody = $request->getParsedBody();\n\n return $this->parseParams($paramsBody);\n }", "title": "" }, { "docid": "fc0163e2f4c9e8a119230f2a64d89b21", "score": "0.5449531", "text": "function isTheseParametersAvailable($params)\n{\n //assuming all parameters are available\n $available = true;\n $missingparams = \"\";\n\n foreach ($params as $param) {\n if (!isset($_POST[$param]) || strlen($_POST[$param]) <= 0) {\n $available = false;\n $missingparams = $missingparams . \", \" . $param;\n }\n }\n\n //if parameters are missing\n if (!$available) {\n $response = array();\n $response['error'] = true;\n $response['message'] = 'Parameters ' . substr($missingparams, 1, strlen($missingparams)) . ' missing';\n\n //displaying error\n echo json_encode($response);\n\n //stopping further execution\n die();\n }\n}", "title": "" }, { "docid": "9b499a283a7a6a02095e8c7aa62a7aed", "score": "0.5449355", "text": "private static function checkRequestParams()\n {\n /*\n * Appending url keyword to query string\n * i.e login.php?email={email}&password={password}\n */\n $url = 'url='.$_SERVER['QUERY_STRING'];\n /*\n * queryStringToArray function convert query string into array\n * and assign it to $this->requestParams\n */\n self::$requestParams= queryStringToArray($url);\n /* Merge self::$data and $this->requestParams to get single array */\n self::$requestParams = array_merge(self::$requestParams, self::$data);\n /* checkArray function check for null values and handle sql Injection */\n $flag = checkArray(self::$requestParams);\n if($flag['status']=='fail')\n {\n ErrorAndMessages::generalError(\"Please enter value for $flag[key]\",400);\n }\n }", "title": "" }, { "docid": "cb980c95d9bee8d494c82e421450cfcd", "score": "0.5446709", "text": "public function hasParams(){\n return $this->_has(6);\n }", "title": "" } ]
357c16ef8c89d17279abb9f00ac99418
The resource types to run the detector on. Generated from protobuf field repeated string resource_types = 1;
[ { "docid": "1d8dc4b428e9b0f73ee88114e7c65b2a", "score": "0.7770195", "text": "public function setResourceTypes($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->resource_types = $arr;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "7da38ed4594c9acafe110e739c8dea12", "score": "0.6810049", "text": "public function getResourceTypes()\n {\n return $this->resource_types;\n }", "title": "" }, { "docid": "5777bf4d4a367119adc58749f5992747", "score": "0.6381752", "text": "public function getResourceTypeAllowableValues()\r\n {\r\n return [\r\n self::RESOURCE_TYPE_OSNOVASERVER,\r\n self::RESOURCE_TYPE_OSCINDERVOLUME,\r\n self::RESOURCE_TYPE_OSWORKSPACEDESKTOP_V2,\r\n ];\r\n }", "title": "" }, { "docid": "64b26d19b8f3fc03da573119d3736edb", "score": "0.61314094", "text": "public function setResources($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->resources = $arr;\n\n return $this;\n }", "title": "" }, { "docid": "992ef3a5e16da14d76e9d7a7968afae3", "score": "0.5822439", "text": "public function getResourcePostTypes()\n {\n /** @var PostManager $this->postManager */\n $postTypes = array();\n foreach($this->postManager->postTypeMapping() as $postType => $class) {\n if($class::isResource()) $postTypes[] = $postType;\n }\n return $postTypes;\n }", "title": "" }, { "docid": "42a7502fd1b774c949238560496d4692", "score": "0.5617483", "text": "public static function get_request_types() {\n return [\n api::DATAREQUEST_TYPE_EXPORT => get_string('requesttypeexport', 'tool_dataprivacy'),\n api::DATAREQUEST_TYPE_DELETE => get_string('requesttypedelete', 'tool_dataprivacy'),\n api::DATAREQUEST_TYPE_OTHERS => get_string('requesttypeothers', 'tool_dataprivacy'),\n ];\n }", "title": "" }, { "docid": "52895eb2f9dde99b5b8925e348350c00", "score": "0.56018156", "text": "public function types(): ModelTypeResource\n {\n $types = Model::query()\n ->select('type')\n ->orderBy('type')\n ->groupBy('type')\n ->get(['type'])\n ->pluck('type');\n\n // @todo: Add new resource for this\n return new ModelTypeResource($types);\n }", "title": "" }, { "docid": "e4a89dd12d1da28ec26ca0096140c647", "score": "0.55879676", "text": "protected function loadTypes()\n {\n /* If I create the RecaptchaType here, I'm forcing us to instantiate the Recaptcha service even for\n * a PlainType... */\n $types = array(\n //new Type\\FileSetType(),\n //new Type\\PlainType(),\n //new Type\\ImageType(),\n );\n\n if ( null !== $this->recaptcha ) {\n $types[] = new Type\\RecaptchaType($this->recaptcha, $this->public_key);\n }\n\n return $types;\n }", "title": "" }, { "docid": "ef54cf681a9d43c61cec3531edbd1eaf", "score": "0.5532553", "text": "public static function getTypes()\r\n {\r\n return array(\r\n self::TYPE_WEB => 'web',\r\n self::TYPE_TV => 'tv',\r\n self::TYPE_RADIO => 'radio',\r\n self::TYPE_LIVE => 'live',\r\n );\r\n }", "title": "" }, { "docid": "54264d600858495f981282a454e5eefa", "score": "0.5526222", "text": "public function types()\n {\n //'flashContent',\n $types = array('authPermissions', 'manyToOneRedirect', 'notFollowed', 'notFound', 'other', 'roboted', 'serverError', 'soft404');\n return $types;\n }", "title": "" }, { "docid": "111b19063f1998b10daa287aedef0fa6", "score": "0.5523442", "text": "public function getTypes()\n {\n $resourceTypes = $this->getMetaProvider()->getTypes();\n $resourceTypeNames = [];\n foreach ($resourceTypes as $resourceType) {\n if (in_array($resourceType->getName(), $resourceTypeNames)) {\n throw new ODataException(\n Messages::providersWrapperEntityTypeNameShouldBeUnique($resourceType->getName()),\n 500\n );\n }\n\n $resourceTypeNames[] = $resourceType->getName();\n $this->validateResourceType($resourceType);\n }\n\n return $resourceTypes;\n }", "title": "" }, { "docid": "0722c92bb6442d7b15e2ab537ce34957", "score": "0.5469198", "text": "public function getAvailableTypes();", "title": "" }, { "docid": "76312db6adcf36b9e4ff62b79aa13985", "score": "0.5450987", "text": "public function setResponseTypes($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->response_types = $arr;\n\n return $this;\n }", "title": "" }, { "docid": "85b77a8f26f92d2f962538a314b80a8c", "score": "0.5391427", "text": "public function getTypes()\n {\n $types = array();\n $defaultTypes = array(\n 'html',\n 'button',\n 'image',\n 'affiliate'\n );\n\n $allowedTypes = str_replace(' ', '', $this->modx->getOption('bendera.allowed_types'));\n if (!empty($allowedTypes)) {\n $allowedTypesArr = explode(',', $allowedTypes);\n\n foreach ($defaultTypes as $key => $type) {\n if (!in_array($type, $allowedTypesArr)) {\n unset($defaultTypes[$key]);\n }\n }\n }\n\n foreach($defaultTypes as $type) {\n $types[] = array(\n $type,\n $this->modx->lexicon('bendera.type.' . $type)\n );\n }\n\n return $types;\n }", "title": "" }, { "docid": "2946b781bd906fcbfcca2481820983d7", "score": "0.5371738", "text": "public function getResourceType(): string\n {\n return $this->resource_type;\n }", "title": "" }, { "docid": "063acea6eb0c8e0fd86b54eaab72ad4b", "score": "0.536194", "text": "public function getTypes() {\n\t\treturn array(\n\t\t\t'multiple_choice' => 'Choix mutiple',\n\t\t\t'one_choice' => 'Choix unique',\n\t\t\t'ordered_choices' => 'Choix ordonnés',\n\t\t\t'free_text' => 'Réponse libre',\n\t\t);\n\t}", "title": "" }, { "docid": "0bb330f7db0674e91729061692df1f8c", "score": "0.5352907", "text": "public function setResourceNames($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->resource_names = $arr;\n\n return $this;\n }", "title": "" }, { "docid": "03852ff60513c33c37cc849a9e81fd20", "score": "0.5306807", "text": "public function getSupportedTypes();", "title": "" }, { "docid": "03852ff60513c33c37cc849a9e81fd20", "score": "0.5306807", "text": "public function getSupportedTypes();", "title": "" }, { "docid": "ab52f4321e10c21b81455b80bbe13dad", "score": "0.52886623", "text": "public static function rootTypes()\n {\n $types = [];\n\n $resources = static::resourceTypeNames();\n foreach ($resources as $name => $singular) {\n $types[$singular] = [\n 'type' => static::resourceType($name),\n 'description' => sprintf('Get \"%s\" item by id', $singular),\n 'args' => [\n 'id' => static::nonNull(static::id())\n ],\n ];\n $types[$name] = [\n 'type' => static::listOf(static::resourceType($name)),\n 'description' => sprintf('Get list of \"%s\"', $name),\n 'args' => [\n 'filter' => [\n 'type' => static::nonNull(static::inputFilter()),\n ],\n ],\n ];\n }\n\n $objects = static::objectTypeNames();\n foreach ($objects as $name => $singular) {\n $types[$singular] = [\n 'type' => static::objectType($name),\n 'description' => sprintf('Get \"%s\" item by id', $singular),\n 'args' => [\n 'id' => static::nonNull(static::id())\n ],\n ];\n $types[$name] = [\n 'type' => static::listOf(static::objectType($name)),\n 'description' => sprintf('Get list of \"%s\"', $name),\n 'args' => [\n 'filter' => [\n 'type' => static::nonNull(static::inputFilter()),\n ],\n ],\n ];\n }\n\n return $types;\n }", "title": "" }, { "docid": "a5a8e77e0978f40bf9a87febbd57d2f2", "score": "0.52417046", "text": "public function getApplicableTypes()\n {\n return ['item', 'race', 'job'];\n }", "title": "" }, { "docid": "986584a2dbfa52d7b9d06cc22e30bcc9", "score": "0.52171177", "text": "public static function getTypesList()\r\n\t{\r\n\t\treturn array(\r\n\t\t\tself::TYPE_BASIC => 'Basic type',\r\n\t\t\tself::TYPE_NORMAL => 'Normal type',\r\n\t\t\tself::TYPE_ADVANCED => 'Advanced',\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "986584a2dbfa52d7b9d06cc22e30bcc9", "score": "0.52171177", "text": "public static function getTypesList()\r\n\t{\r\n\t\treturn array(\r\n\t\t\tself::TYPE_BASIC => 'Basic type',\r\n\t\t\tself::TYPE_NORMAL => 'Normal type',\r\n\t\t\tself::TYPE_ADVANCED => 'Advanced',\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "e10e92b6ccbf9276e9185fc747211970", "score": "0.5208659", "text": "function getType() {\n\t\treturn \"Resource\";\n\t}", "title": "" }, { "docid": "b49c8d4b6c3ea3de3643f041ce42d908", "score": "0.51977634", "text": "public static function getAllTypes(){\n return [\n self::HTML => 'Web pages (HTML)',\n self::IMAGE => 'Images',\n self::CSS => 'CSS',\n self::JS => 'Javascript',\n self::ASSET => 'Other assets',\n ];\n }", "title": "" }, { "docid": "a1a17c292df7521e5202dd941e7c1a1c", "score": "0.5175464", "text": "public function getResourceType()\n {\n return $this->resource_type;\n }", "title": "" }, { "docid": "305f94f01c148ae70748cf0628ad3c12", "score": "0.5152554", "text": "function get_types(){\n\n\t\t\t/* RSR INFORMATION */\n\t\t\t$post_type_arr = array(\n\t\t\t\t'project' \t\t=> 'RSR Updates',\n\t\t\t\t'rsr-project'\t=> 'RSR Project',\n\t\t\t);\n\n\t\t\t/* WP CUSTOM POST TYPES */\n\t\t\tglobal $akvo;\n\t\t\tforeach( $akvo->custom_post_types as $slug => $post_type ){\n\t\t\t\t$post_type_arr[ $slug ] = $post_type['plural_name'];\n\t\t\t}\n\n\t\t\treturn $post_type_arr;\n\t\t}", "title": "" }, { "docid": "0404b29dfc1ff7480a8bdbb0d395c6ef", "score": "0.5148845", "text": "public function getTypesList()\n {\n return [\n 'TYPE_STRING' => CompareValidator::TYPE_STRING,\n 'TYPE_NUMBER' => CompareValidator::TYPE_NUMBER,\n ];\n }", "title": "" }, { "docid": "1ceca291cafea72d87799b719c24602b", "score": "0.5148159", "text": "public function setResourcesList($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->resources_list = $arr;\n\n return $this;\n }", "title": "" }, { "docid": "f632bbaf569779e25b2f5938879c9b41", "score": "0.5140162", "text": "public function types()\n {\n // Only handle gets\n if ($this->method != 'GET') {\n return self::NOT_GET_RESPONSE;\n }\n \n $typesData = $this->getJsonFromFile(self::TYPE_FILENAME);\n \n // Get All\n if ($this->checkBasicRequest()) {\n return $typesData;\n }\n // Get Type\n $type = strtolower($this->verb);\n if (!empty($type) && array_key_exists($type, $typesData)) {\n if (!empty($this->args[0]) && array_key_exists($this->args[0], $typesData[$type])) {\n return $typesData[$type][$this->args[0]];\n }\n return $typesData[$type];\n }\n // Get Specific type effectiveness\n \n return \"Not Found\";\n \n }", "title": "" }, { "docid": "05503bcb2f92d1550e5a61b5575fad09", "score": "0.5124894", "text": "public static function rootTypes()\n {\n $types = [];\n\n $resources = static::resourceTypeNames();\n foreach ($resources as $name => $singular) {\n $types[$singular] = [\n 'type' => static::resourceType($name),\n 'description' => sprintf('Get \"%s\" item by id', $singular),\n 'args' => [\n 'id' => static::nonNull(static::id())\n ],\n ];\n $types[$name] = [\n 'type' => static::listOf(static::resourceType($name)),\n 'description' => sprintf('Get list of \"%s\"', $name),\n 'args' => [\n ],\n ];\n }\n\n $objects = static::objectTypeNames();\n foreach ($objects as $name => $singular) {\n $types[$singular] = [\n 'type' => static::objectType($name),\n 'description' => sprintf('Get \"%s\" item by id', $singular),\n 'args' => [\n 'id' => static::nonNull(static::id())\n ],\n ];\n $types[$name] = [\n 'type' => static::listOf(static::objectType($name)),\n 'description' => sprintf('Get list of \"%s\"', $name),\n 'args' => [\n ],\n ];\n }\n\n return $types;\n }", "title": "" }, { "docid": "f31ee5c9f740723d2f39884b4638c074", "score": "0.50738114", "text": "public function getTypes();", "title": "" }, { "docid": "f31ee5c9f740723d2f39884b4638c074", "score": "0.50738114", "text": "public function getTypes();", "title": "" }, { "docid": "7b8704901640b890a299263e7e40f27b", "score": "0.50710106", "text": "function getResourceType($resource) {\n switch($resource) {\n case \"minibusjbx\":\n case \"minibusjha\":\n case \"minibuslle\":\n case \"minibusyhj\":\n case \"testvehicle\":\n return \"vehicle\";\n break;\n case \"ipadtrolleyblack\":\n case \"ipadtrolleygrey\":\n case \"laptoptrolley\":\n case \"slt_grouptherapy\":\n case \"slt_individualtherapy\":\n case \"slt_signalong\":\n case \"testresource\":\n return \"period\";\n break;\n default:\n return \"time\";\n break;\n } // switch\n }", "title": "" }, { "docid": "260308ae5aff8407013c752aaa8a234b", "score": "0.5068763", "text": "public static function getTypes()\n\t{\n\t\t$types = array();\n\t\tif (!Main\\Loader::includeModule('imopenlines'))\n\t\t\treturn $types;\n\n\t\t$orm = \\Bitrix\\ImOpenLines\\Model\\ConfigTable::getList(Array(\n\t\t\t'filter' => Array(\n\t\t\t\t'=TEMPORARY' => 'N'\n\t\t\t)\n\t\t));\n\t\twhile ($config = $orm->fetch())\n\t\t{\n\t\t\t$types[] = array(\n\t\t\t\t'NAME' => Loc::getMessage('IMOPENLINES_ACTIVITY_PROVIDER_TYPE_TEMPLATE', Array('#NAME#' => $config['LINE_NAME'])),\n\t\t\t\t'PROVIDER_ID' => static::ACTIVITY_PROVIDER_ID,\n\t\t\t\t'PROVIDER_TYPE_ID' => $config['ID'],\n\t\t\t\t'DIRECTIONS' => array(\n\t\t\t\t\t\\CCrmActivityDirection::Incoming => Loc::getMessage('IMOPENLINES_ACTIVITY_PROVIDER_SESSION_INCOMING'),\n\t\t\t\t\t\\CCrmActivityDirection::Outgoing => Loc::getMessage('IMOPENLINES_ACTIVITY_PROVIDER_SESSION_OUTGOING'),\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\n\t\treturn $types;\n\t}", "title": "" }, { "docid": "b1496802d5ff53637c875867b565f5a6", "score": "0.5065487", "text": "public function getTypeAllowableValues()\n {\n return [\n self::TYPE_SCORMORG,\n self::TYPE_TEST,\n self::TYPE_POLL,\n self::TYPE_ITEM,\n self::TYPE_VIDEO,\n self::TYPE_HTMLPAGE,\n self::TYPE_TINCAN,\n self::TYPE_FILE,\n self::TYPE_AUTHORING,\n self::TYPE_DELIVERABLE,\n self::TYPE_AICC,\n self::TYPE_ELUCIDAT,\n self::TYPE_CENTRALREPO,\n self::TYPE_LECTORA,\n ];\n }", "title": "" }, { "docid": "dc7974c2ed06716fb141f8db5f8a5da2", "score": "0.5058534", "text": "protected function supportedTypes()\n {\n return array(\n 'ico' => 'image/x-icon',\n 'css' => 'text/css; charset=utf-8',\n 'js' => 'text/javascript; charset=utf-8',\n 'png' => 'image/png',\n 'jpg' => 'image/jpg',\n 'gif' => 'image/gif',\n 'swf' => 'application/x-shockwave-flash',\n );\n }", "title": "" }, { "docid": "cc024289b3f43282bef96f7718b63a86", "score": "0.50504476", "text": "function getImagesTypes()\n\t{\n\t\treturn array( \n\t\t\t\t'uncategorized' => 'Uncategorized',\n\t\t\t\t'background' => \"Background & Pattern\",\n\t\t\t\t'frame' => \"Mask\",\n\t\t\t\t'image' => \"Image\",\n\t\t\t\t'clipart' => \"Clipart\",\n\t\t\t\t'shape' => \"Shape\" \n\t\t\t);\n\t}", "title": "" }, { "docid": "054a6dc02cb61274df5d23a5a24f1521", "score": "0.50325394", "text": "public static function getTypes()\n {\n return array(\n self::TYPE_ENFANT => 'Enfant',\n self::TYPE_AMI => 'Ami(e)',\n self::TYPE_FIANCE => 'Fiancé(e)',\n self::TYPE_CONJOINT => 'Conjoint(e)',\n self::TYPE_AUTRE => 'Autre'\n );\n }", "title": "" }, { "docid": "01e369f630d237df7240384b65914473", "score": "0.50154316", "text": "public function get_survey_types_array()\r\n\t{\r\n\t\treturn $this->Survey_type_model->get_list();\r\n\t}", "title": "" }, { "docid": "066fb9bc4f43a647f6eee9bc8241307c", "score": "0.5013669", "text": "public static function types()\n\t{\n\t\treturn static::$_types;\n\t}", "title": "" }, { "docid": "1b95f27378556536e3fb7f2c739a20f1", "score": "0.50123394", "text": "private function genResourceTypeArray($mainResources, $subResources = null)\n {\n $resourceTypes = array();\n\n foreach ($mainResources as $resourceType) {\n $resourceTypes[$resourceType] = $this->genResourceType($resourceType);\n }\n\n if ($subResources) {\n foreach ($subResources as $resourceType) {\n $resourceTypes[$resourceType] = $this->genResourceType($resourceType);\n }\n }\n\n return $resourceTypes;\n }", "title": "" }, { "docid": "b2f461e18cf91e78978907cca2e86fdb", "score": "0.5006205", "text": "public function getTypeChoices()\n {\n return [\n 'html' => 'oro.email.datagrid.emailtemplate.filter.type.html',\n 'txt' => 'oro.email.datagrid.emailtemplate.filter.type.txt'\n ];\n }", "title": "" }, { "docid": "905a9133ef9f181fbdec430bdb1331a1", "score": "0.50047207", "text": "public static function getTypes()\n {\n return array(\n self::TYPE_PRODUCT,\n self::TYPE_PRODUCT_PACK,\n );\n }", "title": "" }, { "docid": "23663e11d549cc2beafb976e716d1e51", "score": "0.4989422", "text": "public function getTypeAllowableValues()\n {\n return [\n self::TYPE_TEXT,\n self::TYPE_IMAGE,\n self::TYPE_VIDEO,\n self::TYPE_DOCUMENT,\n self::TYPE_PAYLOAD,\n ];\n }", "title": "" }, { "docid": "e0cee7629f63bb9b41f2f76ca20ca4e6", "score": "0.49827638", "text": "public function getFileTypeAllowableValues()\n {\n return [\n self::FILE_TYPE_PROGRAM,\n self::FILE_TYPE_PROGRAM_ADD_NEW_CDN,\n self::FILE_TYPE_PROGRAM_STAGING,\n self::FILE_TYPE_PROGRAM_INTEGRATION,\n self::FILE_TYPE_PROGRAM_DEVELOPMENT,\n self::FILE_TYPE_IMAGES,\n self::FILE_TYPE_IMAGES_STAGING,\n self::FILE_TYPE_IMAGES_INTEGRATION,\n self::FILE_TYPE_IMAGES_DEVELOPMENT,\n self::FILE_TYPE_RPM,\n self::FILE_TYPE_REPORT,\n ];\n }", "title": "" }, { "docid": "ee1538b778860102fd9602841c3a5136", "score": "0.49751547", "text": "private function get_question_types()\n\t{\n\t\t// If our question types have not yet been loaded\n\t\tif ( ! self::$question_types )\n\t\t{\n\t\t\t// Get question types from config file\n\t\t\tself::$question_types = $this->EE->config->item('vwm_surveys_question_types');\n\t\t}\n\n\t\treturn self::$question_types;\n\t}", "title": "" }, { "docid": "80e3ce6805c84e8e522eaa8bc7d62acd", "score": "0.49595743", "text": "public function getTypes()\n\t{\n\t\treturn self::$types;\n\t}", "title": "" }, { "docid": "de1f25ddbb92f66219473a783b32f8ac", "score": "0.49555662", "text": "public function getTypes(): array\n {\n return $this->types;\n }", "title": "" }, { "docid": "be4e6d95cc8a0b209443f43c292a2976", "score": "0.49544582", "text": "public static function get_request_types_short() {\n return [\n api::DATAREQUEST_TYPE_EXPORT => get_string('requesttypeexportshort', 'tool_dataprivacy'),\n api::DATAREQUEST_TYPE_DELETE => get_string('requesttypedeleteshort', 'tool_dataprivacy'),\n api::DATAREQUEST_TYPE_OTHERS => get_string('requesttypeothersshort', 'tool_dataprivacy'),\n ];\n }", "title": "" }, { "docid": "4c4141136b79752e253f0ee403487ce3", "score": "0.49536252", "text": "protected function determineTypes()\n\t{\n\t\t// Get phone types.\n\t\t$this->untransformedTypes = array_filter($this->parameters, function($item) {\n\t\t\treturn $this->isPhoneType($item);\n\t\t});\n\n\t\t// Transform valid types to their namespaced class constant.\n\t\t$this->allowedTypes = array_map(function($item) {\n\t\t\treturn constant($this->constructPhoneTypeConstant($item));\n\t\t}, $this->untransformedTypes);\n\n\t\t// Add in the unsure number type if applicable.\n\t\tif (array_intersect(['FIXED_LINE', 'MOBILE'], $this->parameters)) {\n\t\t\t$this->allowedTypes[] = PhoneNumberType::FIXED_LINE_OR_MOBILE;\n\t\t}\n\t}", "title": "" }, { "docid": "f7bb246c5b74857ece392cfdc504c638", "score": "0.49515593", "text": "public static function getTypes(){\n\t\treturn array(\n\t\t\t// '' => '',\n\t\t\t// self::TYPE_ONLINE => self::TYPE_ONLINE,\n\t\t\tself::TYPE_MILONGA => self::TYPE_MILONGA,\n\t\t\tself::TYPE_PRACTICA => self::TYPE_PRACTICA,\n\t\t\tself::TYPE_WORKSHOP => self::TYPE_WORKSHOP,\n\t\t\tself::TYPE_CONCERT => self::TYPE_CONCERT,\n\t\t\tself::TYPE_SHOW => self::TYPE_SHOW,\n\t\t\tself::TYPE_FESTIVAL => self::TYPE_FESTIVAL,\n\t\t\tself::TYPE_MARATHON => self::TYPE_MARATHON,\n\t\t\tself::TYPE_HOLIDAYS => self::TYPE_HOLIDAYS,\n\t\t);\n\t}", "title": "" }, { "docid": "99a10a0885d3fff4c488689a86ec1598", "score": "0.4951193", "text": "public static function types(): array\n {\n return static::$types;\n }", "title": "" }, { "docid": "87719e0838a2ed1ce438722fcb90020b", "score": "0.49456236", "text": "public function leavetypes() {\n if (!$this->server->verifyResourceRequest(OAuth2\\Request::createFromGlobals())) {\n $this->server->getResponse()->send();\n } else {\n $this->load->model('types_model');\n $result = $this->types_model->getTypes();\n echo json_encode($result);\n }\n }", "title": "" }, { "docid": "6ccb61a709755288ce37414b1593eff0", "score": "0.4943289", "text": "public function getTypes()\n {\n return $this->types;\n }", "title": "" }, { "docid": "6ccb61a709755288ce37414b1593eff0", "score": "0.4943289", "text": "public function getTypes()\n {\n return $this->types;\n }", "title": "" }, { "docid": "6ccb61a709755288ce37414b1593eff0", "score": "0.4943289", "text": "public function getTypes()\n {\n return $this->types;\n }", "title": "" }, { "docid": "6ccb61a709755288ce37414b1593eff0", "score": "0.4943289", "text": "public function getTypes()\n {\n return $this->types;\n }", "title": "" }, { "docid": "2d792868d2de6bf6a3f3dd3cec4e3efc", "score": "0.49425933", "text": "public function getTypeAllowableValues()\n {\n return [\n self::TYPE_ACCEPTED_ALLY,\n self::TYPE_ACCEPTED_SURRENDER,\n self::TYPE_AGENT_RETIRED_TRIGRAVIAN,\n self::TYPE_ALL_ANCHORING_MSG,\n self::TYPE_ALL_MAINTENANCE_BILL_MSG,\n self::TYPE_ALL_STRUC_INVULNERABLE_MSG,\n self::TYPE_ALL_STRUCT_VULNERABLE_MSG,\n self::TYPE_ALL_WAR_CORP_JOINED_ALLIANCE_MSG,\n self::TYPE_ALL_WAR_DECLARED_MSG,\n self::TYPE_ALL_WAR_INVALIDATED_MSG,\n self::TYPE_ALL_WAR_RETRACTED_MSG,\n self::TYPE_ALL_WAR_SURRENDER_MSG,\n self::TYPE_ALLIANCE_CAPITAL_CHANGED,\n self::TYPE_ALLIANCE_WAR_DECLARED_V2,\n self::TYPE_ALLY_CONTRACT_CANCELLED,\n self::TYPE_ALLY_JOINED_WAR_AGGRESSOR_MSG,\n self::TYPE_ALLY_JOINED_WAR_ALLY_MSG,\n self::TYPE_ALLY_JOINED_WAR_DEFENDER_MSG,\n self::TYPE_BATTLE_PUNISH_FRIENDLY_FIRE,\n self::TYPE_BILL_OUT_OF_MONEY_MSG,\n self::TYPE_BILL_PAID_CORP_ALL_MSG,\n self::TYPE_BOUNTY_CLAIM_MSG,\n self::TYPE_BOUNTY_ESS_SHARED,\n self::TYPE_BOUNTY_ESS_TAKEN,\n self::TYPE_BOUNTY_PLACED_ALLIANCE,\n self::TYPE_BOUNTY_PLACED_CHAR,\n self::TYPE_BOUNTY_PLACED_CORP,\n self::TYPE_BOUNTY_YOUR_BOUNTY_CLAIMED,\n self::TYPE_BUDDY_CONNECT_CONTACT_ADD,\n self::TYPE_CHAR_APP_ACCEPT_MSG,\n self::TYPE_CHAR_APP_REJECT_MSG,\n self::TYPE_CHAR_APP_WITHDRAW_MSG,\n self::TYPE_CHAR_LEFT_CORP_MSG,\n self::TYPE_CHAR_MEDAL_MSG,\n self::TYPE_CHAR_TERMINATION_MSG,\n self::TYPE_CLONE_ACTIVATION_MSG,\n self::TYPE_CLONE_ACTIVATION_MSG2,\n self::TYPE_CLONE_MOVED_MSG,\n self::TYPE_CLONE_REVOKED_MSG1,\n self::TYPE_CLONE_REVOKED_MSG2,\n self::TYPE_COMBAT_OPERATION_FINISHED,\n self::TYPE_CONTACT_ADD,\n self::TYPE_CONTACT_EDIT,\n self::TYPE_CONTAINER_PASSWORD_MSG,\n self::TYPE_CONTRACT_REGION_CHANGED_TO_POCHVEN,\n self::TYPE_CORP_ALL_BILL_MSG,\n self::TYPE_CORP_APP_ACCEPT_MSG,\n self::TYPE_CORP_APP_INVITED_MSG,\n self::TYPE_CORP_APP_NEW_MSG,\n self::TYPE_CORP_APP_REJECT_CUSTOM_MSG,\n self::TYPE_CORP_APP_REJECT_MSG,\n self::TYPE_CORP_BECAME_WAR_ELIGIBLE,\n self::TYPE_CORP_DIVIDEND_MSG,\n self::TYPE_CORP_FRIENDLY_FIRE_DISABLE_TIMER_COMPLETED,\n self::TYPE_CORP_FRIENDLY_FIRE_DISABLE_TIMER_STARTED,\n self::TYPE_CORP_FRIENDLY_FIRE_ENABLE_TIMER_COMPLETED,\n self::TYPE_CORP_FRIENDLY_FIRE_ENABLE_TIMER_STARTED,\n self::TYPE_CORP_KICKED,\n self::TYPE_CORP_LIQUIDATION_MSG,\n self::TYPE_CORP_NEW_CEO_MSG,\n self::TYPE_CORP_NEWS_MSG,\n self::TYPE_CORP_NO_LONGER_WAR_ELIGIBLE,\n self::TYPE_CORP_OFFICE_EXPIRATION_MSG,\n self::TYPE_CORP_STRUCT_LOST_MSG,\n self::TYPE_CORP_TAX_CHANGE_MSG,\n self::TYPE_CORP_VOTE_CEO_REVOKED_MSG,\n self::TYPE_CORP_VOTE_MSG,\n self::TYPE_CORP_WAR_DECLARED_MSG,\n self::TYPE_CORP_WAR_DECLARED_V2,\n self::TYPE_CORP_WAR_FIGHTING_LEGAL_MSG,\n self::TYPE_CORP_WAR_INVALIDATED_MSG,\n self::TYPE_CORP_WAR_RETRACTED_MSG,\n self::TYPE_CORP_WAR_SURRENDER_MSG,\n self::TYPE_CUSTOMS_MSG,\n self::TYPE_DECLARE_WAR,\n self::TYPE_DISTRICT_ATTACKED,\n self::TYPE_DUST_APP_ACCEPTED_MSG,\n self::TYPE_ESS_MAIN_BANK_LINK,\n self::TYPE_ENTOSIS_CAPTURE_STARTED,\n self::TYPE_EXPERT_SYSTEM_EXPIRED,\n self::TYPE_EXPERT_SYSTEM_EXPIRY_IMMINENT,\n self::TYPE_FW_ALLIANCE_KICK_MSG,\n self::TYPE_FW_ALLIANCE_WARNING_MSG,\n self::TYPE_FW_CHAR_KICK_MSG,\n self::TYPE_FW_CHAR_RANK_GAIN_MSG,\n self::TYPE_FW_CHAR_RANK_LOSS_MSG,\n self::TYPE_FW_CHAR_WARNING_MSG,\n self::TYPE_FW_CORP_JOIN_MSG,\n self::TYPE_FW_CORP_KICK_MSG,\n self::TYPE_FW_CORP_LEAVE_MSG,\n self::TYPE_FW_CORP_WARNING_MSG,\n self::TYPE_FAC_WAR_CORP_JOIN_REQUEST_MSG,\n self::TYPE_FAC_WAR_CORP_JOIN_WITHDRAW_MSG,\n self::TYPE_FAC_WAR_CORP_LEAVE_REQUEST_MSG,\n self::TYPE_FAC_WAR_CORP_LEAVE_WITHDRAW_MSG,\n self::TYPE_FAC_WAR_LP_DISQUALIFIED_EVENT,\n self::TYPE_FAC_WAR_LP_DISQUALIFIED_KILL,\n self::TYPE_FAC_WAR_LP_PAYOUT_EVENT,\n self::TYPE_FAC_WAR_LP_PAYOUT_KILL,\n self::TYPE_GAME_TIME_ADDED,\n self::TYPE_GAME_TIME_RECEIVED,\n self::TYPE_GAME_TIME_SENT,\n self::TYPE_GIFT_RECEIVED,\n self::TYPE_I_HUB_DESTROYED_BY_BILL_FAILURE,\n self::TYPE_INCURSION_COMPLETED_MSG,\n self::TYPE_INDUSTRY_OPERATION_FINISHED,\n self::TYPE_INDUSTRY_TEAM_AUCTION_LOST,\n self::TYPE_INDUSTRY_TEAM_AUCTION_WON,\n self::TYPE_INFRASTRUCTURE_HUB_BILL_ABOUT_TO_EXPIRE,\n self::TYPE_INSURANCE_EXPIRATION_MSG,\n self::TYPE_INSURANCE_FIRST_SHIP_MSG,\n self::TYPE_INSURANCE_INVALIDATED_MSG,\n self::TYPE_INSURANCE_ISSUED_MSG,\n self::TYPE_INSURANCE_PAYOUT_MSG,\n self::TYPE_INVASION_COMPLETED_MSG,\n self::TYPE_INVASION_SYSTEM_LOGIN,\n self::TYPE_INVASION_SYSTEM_START,\n self::TYPE_JUMP_CLONE_DELETED_MSG1,\n self::TYPE_JUMP_CLONE_DELETED_MSG2,\n self::TYPE_KILL_REPORT_FINAL_BLOW,\n self::TYPE_KILL_REPORT_VICTIM,\n self::TYPE_KILL_RIGHT_AVAILABLE,\n self::TYPE_KILL_RIGHT_AVAILABLE_OPEN,\n self::TYPE_KILL_RIGHT_EARNED,\n self::TYPE_KILL_RIGHT_UNAVAILABLE,\n self::TYPE_KILL_RIGHT_UNAVAILABLE_OPEN,\n self::TYPE_KILL_RIGHT_USED,\n self::TYPE_LOCATE_CHAR_MSG,\n self::TYPE_MADE_WAR_MUTUAL,\n self::TYPE_MERC_OFFER_RETRACTED_MSG,\n self::TYPE_MERC_OFFERED_NEGOTIATION_MSG,\n self::TYPE_MISSION_CANCELED_TRIGLAVIAN,\n self::TYPE_MISSION_OFFER_EXPIRATION_MSG,\n self::TYPE_MISSION_TIMEOUT_MSG,\n self::TYPE_MOONMINING_AUTOMATIC_FRACTURE,\n self::TYPE_MOONMINING_EXTRACTION_CANCELLED,\n self::TYPE_MOONMINING_EXTRACTION_FINISHED,\n self::TYPE_MOONMINING_EXTRACTION_STARTED,\n self::TYPE_MOONMINING_LASER_FIRED,\n self::TYPE_MUTUAL_WAR_EXPIRED,\n self::TYPE_MUTUAL_WAR_INVITE_ACCEPTED,\n self::TYPE_MUTUAL_WAR_INVITE_REJECTED,\n self::TYPE_MUTUAL_WAR_INVITE_SENT,\n self::TYPE_NPC_STANDINGS_GAINED,\n self::TYPE_NPC_STANDINGS_LOST,\n self::TYPE_OFFER_TO_ALLY_RETRACTED,\n self::TYPE_OFFERED_SURRENDER,\n self::TYPE_OFFERED_TO_ALLY,\n self::TYPE_OFFICE_LEASE_CANCELED_INSUFFICIENT_STANDINGS,\n self::TYPE_OLD_LSC_MESSAGES,\n self::TYPE_OPERATION_FINISHED,\n self::TYPE_ORBITAL_ATTACKED,\n self::TYPE_ORBITAL_REINFORCED,\n self::TYPE_OWNERSHIP_TRANSFERRED,\n self::TYPE_RAFFLE_CREATED,\n self::TYPE_RAFFLE_EXPIRED,\n self::TYPE_RAFFLE_FINISHED,\n self::TYPE_REIMBURSEMENT_MSG,\n self::TYPE_RESEARCH_MISSION_AVAILABLE_MSG,\n self::TYPE_RETRACTS_WAR,\n self::TYPE_SEASONAL_CHALLENGE_COMPLETED,\n self::TYPE_SOV_ALL_CLAIM_AQUIRED_MSG,\n self::TYPE_SOV_ALL_CLAIM_LOST_MSG,\n self::TYPE_SOV_COMMAND_NODE_EVENT_STARTED,\n self::TYPE_SOV_CORP_BILL_LATE_MSG,\n self::TYPE_SOV_CORP_CLAIM_FAIL_MSG,\n self::TYPE_SOV_DISRUPTOR_MSG,\n self::TYPE_SOV_STATION_ENTERED_FREEPORT,\n self::TYPE_SOV_STRUCTURE_DESTROYED,\n self::TYPE_SOV_STRUCTURE_REINFORCED,\n self::TYPE_SOV_STRUCTURE_SELF_DESTRUCT_CANCEL,\n self::TYPE_SOV_STRUCTURE_SELF_DESTRUCT_FINISHED,\n self::TYPE_SOV_STRUCTURE_SELF_DESTRUCT_REQUESTED,\n self::TYPE_SOVEREIGNTY_IH_DAMAGE_MSG,\n self::TYPE_SOVEREIGNTY_SBU_DAMAGE_MSG,\n self::TYPE_SOVEREIGNTY_TCU_DAMAGE_MSG,\n self::TYPE_STATION_AGGRESSION_MSG1,\n self::TYPE_STATION_AGGRESSION_MSG2,\n self::TYPE_STATION_CONQUER_MSG,\n self::TYPE_STATION_SERVICE_DISABLED,\n self::TYPE_STATION_SERVICE_ENABLED,\n self::TYPE_STATION_STATE_CHANGE_MSG,\n self::TYPE_STORY_LINE_MISSION_AVAILABLE_MSG,\n self::TYPE_STRUCTURE_ANCHORING,\n self::TYPE_STRUCTURE_COURIER_CONTRACT_CHANGED,\n self::TYPE_STRUCTURE_DESTROYED,\n self::TYPE_STRUCTURE_FUEL_ALERT,\n self::TYPE_STRUCTURE_IMPENDING_ABANDONMENT_ASSETS_AT_RISK,\n self::TYPE_STRUCTURE_ITEMS_DELIVERED,\n self::TYPE_STRUCTURE_ITEMS_MOVED_TO_SAFETY,\n self::TYPE_STRUCTURE_LOST_ARMOR,\n self::TYPE_STRUCTURE_LOST_SHIELDS,\n self::TYPE_STRUCTURE_ONLINE,\n self::TYPE_STRUCTURE_SERVICES_OFFLINE,\n self::TYPE_STRUCTURE_UNANCHORING,\n self::TYPE_STRUCTURE_UNDER_ATTACK,\n self::TYPE_STRUCTURE_WENT_HIGH_POWER,\n self::TYPE_STRUCTURE_WENT_LOW_POWER,\n self::TYPE_STRUCTURES_JOBS_CANCELLED,\n self::TYPE_STRUCTURES_JOBS_PAUSED,\n self::TYPE_STRUCTURES_REINFORCEMENT_CHANGED,\n self::TYPE_TOWER_ALERT_MSG,\n self::TYPE_TOWER_RESOURCE_ALERT_MSG,\n self::TYPE_TRANSACTION_REVERSAL_MSG,\n self::TYPE_TUTORIAL_MSG,\n self::TYPE_WAR_ADOPTED,\n self::TYPE_WAR_ALLY_INHERITED,\n self::TYPE_WAR_ALLY_OFFER_DECLINED_MSG,\n self::TYPE_WAR_CONCORD_INVALIDATES,\n self::TYPE_WAR_DECLARED,\n self::TYPE_WAR_ENDED_HQ_SECURITY_DROP,\n self::TYPE_WAR_HQ_REMOVED_FROM_SPACE,\n self::TYPE_WAR_INHERITED,\n self::TYPE_WAR_INVALID,\n self::TYPE_WAR_RETRACTED,\n self::TYPE_WAR_RETRACTED_BY_CONCORD,\n self::TYPE_WAR_SURRENDER_DECLINED_MSG,\n self::TYPE_WAR_SURRENDER_OFFER_MSG,\n ];\n }", "title": "" }, { "docid": "dee4977b2180b749c5b33bac93180c72", "score": "0.49415135", "text": "public function getResourceNames()\n {\n return $this->resource_names;\n }", "title": "" }, { "docid": "5a158c11974f34522df1214f566fc277", "score": "0.4937378", "text": "public function getReportTypes(): array\n {\n return $this->tags->reportTypeList();\n }", "title": "" }, { "docid": "81024600d0b40e3fe953eaba9d2db8dc", "score": "0.49287406", "text": "public function getImageTypes() {\n $response = static::makeRequest(\n 'GET',\n '/image_types'\n );\n return static::getCollection($response, 'ImageType');\n }", "title": "" }, { "docid": "0b45b4cc5cad8e407841fb48951ca1e3", "score": "0.49237657", "text": "static private function _getTypes()\n\t{\n\t\tif (self::$_types === null) {\n\t\t\t$class = new ReflectionClass('Cognosys\\Alert');\n\t\t\tself::$_types = $class->getConstants();\n\t\t}\n\t\t\n\t\treturn self::$_types;\n\t}", "title": "" }, { "docid": "a427577c0102cc8e08402488a10da86d", "score": "0.49175328", "text": "public function getTypeChoices()\n {\n return [\n 'oro.email.datagrid.emailtemplate.filter.type.html' => 'html',\n 'oro.email.datagrid.emailtemplate.filter.type.txt' => 'txt',\n ];\n }", "title": "" }, { "docid": "74b10bbecc58930b9bbc24e3bbe8fd4b", "score": "0.49131045", "text": "public static function types()\n {\n return self::$types;\n }", "title": "" }, { "docid": "74b10bbecc58930b9bbc24e3bbe8fd4b", "score": "0.49131045", "text": "public static function types()\n {\n return self::$types;\n }", "title": "" }, { "docid": "1cd03a3ae302d6a632155ca62abd14ba", "score": "0.49059802", "text": "public function getAllTypesInSpecifications()\n {\n $viewTypes = $this->getTypesInViewSpecifications();\n $tableTypes = $this->getTypesInTableSpecifications();\n $searchTypes = $this->getTypesInSearchSpecifications();\n $types = array_unique(array_merge($viewTypes, $tableTypes, $searchTypes));\n return array_values($types);\n }", "title": "" }, { "docid": "42cbc35f352e2dad833761e06c5e8e2e", "score": "0.4903927", "text": "public function getTypes()\n {\n if (null === $this->types) {\n $this->types = [];\n\n $content = $this->getTypesContent();\n\n while ('' !== $content && false !== $content) {\n Preg::match(\n '{^'.self::REGEX_TYPES.'$}x',\n $content,\n $matches\n );\n\n $this->types[] = $matches['type'];\n $content = substr($content, \\strlen($matches['type']) + 1);\n }\n }\n\n return $this->types;\n }", "title": "" }, { "docid": "09be670c6efd77fb495a5b39711a1931", "score": "0.49009472", "text": "public static function getTypes() : array{\n\t\treturn self::$types;\n\t}", "title": "" }, { "docid": "0b8bea21e3b53b326f50288b4848c297", "score": "0.4897508", "text": "public function setRelatableResourceTypes(array $relatable_resource_types) {\n $this->relatableResourceTypes = $relatable_resource_types;\n }", "title": "" }, { "docid": "5a61f5f573125ad7aaef3729b185ff46", "score": "0.4891994", "text": "protected function resourceTypePluginCollection() {\n // Try to find a resource type plugin to use.\n /*\n $this->resourceTypeId = 'fallback';\n $plugins = \\Drupal::service('plugin.manager.cu_hub_consumer.hub_resource_type')->getDefinitions();\n foreach ($plugins as $plugin_id => $definition) {\n if ($this->pluginDefinition['hub_type_id'] == $definition['hub_type_id']) {\n $this->resourceTypeId = $plugin_id;\n }\n }\n */\n $this->resourceTypeId = \\Drupal::service('plugin.manager.cu_hub_consumer.hub_resource_type')->findPluginByHubTypeId($this->pluginDefinition['hub_type_id']);\n\n if (!$this->resourceTypePluginCollection && $this->resourceTypeId) {\n $this->resourceTypePluginCollection = new DefaultSingleLazyPluginCollection($this->resourceTypes, $this->resourceTypeId, $this->resourceTypeConfiguration);\n }\n return $this->resourceTypePluginCollection;\n }", "title": "" }, { "docid": "9c2ee9a64171e998246cb08656bb8e12", "score": "0.48857704", "text": "public static function getAvailableFileTypes(): array\n {\n return [\n static::FILE_TYPE_JSON,\n static::FILE_TYPE_YML,\n ];\n }", "title": "" }, { "docid": "ce64f4fadbedf5b23ca6f76be5b6d66d", "score": "0.4862356", "text": "public function getDerivedTypes(ResourceType $resourceType);", "title": "" }, { "docid": "8c9e252d8c23729f425db126909d65a4", "score": "0.48594847", "text": "public function getTypes()\n {\n return self::$types;\n }", "title": "" }, { "docid": "8bba0847acc26f08fa2298fdcfbc0093", "score": "0.48578817", "text": "protected function getSubmissionTypes()\n\t{\n\t\t$types = CapturedFormSubmission::get()->column('Type');\n\n\t\treturn $types;\n\t}", "title": "" }, { "docid": "d71f094d6350913dd26a2b958b229909", "score": "0.485625", "text": "public function getCheckResources()\n {\n return $this->readOneof(6);\n }", "title": "" }, { "docid": "34b0b73d9082fb1ec69e9ab6f0d9bc65", "score": "0.4852991", "text": "static public function getTypeAvailable()\n {\n return array(self::TUYA_SCENE, self::TUYA_SWITCH, self::TUYA_COVER, self::TUYA_LIGHT, self::TUYA_CLIMATE);\n }", "title": "" }, { "docid": "e52123fee8e0730194fac76daf88a8bf", "score": "0.4848763", "text": "public function getResponseTypes()\n {\n return $this->response_types;\n }", "title": "" }, { "docid": "fde965b1fe827151c94c64a569ebe051", "score": "0.48426855", "text": "public function getResourceType() : string\n\t{\n\t\treturn 'swpost';\n\t}", "title": "" }, { "docid": "738d3ccf8101ee7c681a65668484cca1", "score": "0.48419645", "text": "public function getTypeNames();", "title": "" }, { "docid": "0b3c8766c387d02536d3c7256019bd40", "score": "0.48411444", "text": "public static function types()\n {\n return array(\n CharacteristicDependency::TYPE_R2R_GT => 'R2R_GT',\n CharacteristicDependency::TYPE_R2R_LT => 'R2R_LT', \n CharacteristicDependency::TYPE_R2R_GTE => 'R2R_GTE', \n CharacteristicDependency::TYPE_R2R_LTE => 'R2R_LTE', \n CharacteristicDependency::TYPE_R2R_PER => 'R2R_PER', \n CharacteristicDependency::TYPE_R2R_GT_AVG => 'R2R_GT_AVG', \n CharacteristicDependency::TYPE_R2R_LT_AVG => 'R2R_LT_AVG', \n CharacteristicDependency::TYPE_R2R_GTE_AVG => 'R2R_GTE_AVG', \n CharacteristicDependency::TYPE_R2R_LTE_AVG => 'R2R_LTE_AVG', \n CharacteristicDependency::TYPE_R2R_PER_AVG => 'R2R_PER_AVG', \n CharacteristicDependency::TYPE_R2R_GT_SUM => 'R2R_GT_SUM', \n CharacteristicDependency::TYPE_R2R_LT_SUM => 'R2R_LT_SUM', \n CharacteristicDependency::TYPE_R2R_GTE_SUM => 'R2R_GTE_SUM', \n CharacteristicDependency::TYPE_R2R_LTE_SUM => 'R2R_LTE_SUM', \n CharacteristicDependency::TYPE_R2R_GT_DIFF => 'R2R_GT_DIFF', \n CharacteristicDependency::TYPE_R2R_LT_DIFF => 'R2R_LT_DIFF', \n CharacteristicDependency::TYPE_R2R_GTE_DIFF => 'R2R_GTE_DIFF', \n CharacteristicDependency::TYPE_R2R_LTE_DIFF => 'R2R_LTE_DIFF', \n CharacteristicDependency::TYPE_R2G => 'R2G', \n CharacteristicDependency::TYPE_G2G => 'G2G', \n CharacteristicDependency::TYPE_G2R => 'G2R', \n );\n }", "title": "" }, { "docid": "2dcfb4b8d75c71bbe9d7bc12e565bc71", "score": "0.48371935", "text": "public function getTypeAllowableValues()\n {\n return [\n self::TYPE_REST,\n self::TYPE_CMIS,\n ];\n }", "title": "" }, { "docid": "d9cf5464e7c4a799181b50c73073cc5d", "score": "0.48346496", "text": "public function getResourceType()\n {\n return $this->_resourceSet->getResourceType();\n }", "title": "" }, { "docid": "23c220530ca785ba83c96afe41c63533", "score": "0.48325428", "text": "function culturefeed_ui_get_preference_types() {\n\n $reflection = new ReflectionClass('CultureFeed_Activity');\n $constants = $reflection->getConstants();\n $types = array();\n foreach ($constants as $key => $value) {\n if (strpos($key, 'TYPE_') === 0) {\n $types[$key] = $value;\n }\n }\n return $types;\n\n}", "title": "" }, { "docid": "b851094be599b86c798f88278685993f", "score": "0.4825551", "text": "public function type(): string\n {\n return $this->resourceType;\n }", "title": "" }, { "docid": "b851094be599b86c798f88278685993f", "score": "0.4825551", "text": "public function type(): string\n {\n return $this->resourceType;\n }", "title": "" }, { "docid": "bbe87f9de5586ee5178fefc59d4479ee", "score": "0.48240387", "text": "public function getTypes()\n {\n return self::$types;\n }", "title": "" }, { "docid": "4670cbd7476b7bd598087bf0fa0b520e", "score": "0.4822733", "text": "public static function getPlugTypes()\n {\n $types = array(\n 'runner',\n 'blocker',\n 'gatherer',\n 'modifier',\n 'refiner',\n 'switcher',\n 'initial_gatherer',\n );\n\n return $types;\n\n }", "title": "" }, { "docid": "901c14773e9a21774875da21bfd1578e", "score": "0.48207322", "text": "public static function types()\r\n {\r\n return [\r\n 'text' => 'Text field',\r\n 'email' => 'Email field',\r\n 'textarea' => 'Long text field',\r\n 'radio' => 'Radio',\r\n 'checkbox' => 'Checkbox',\r\n 'date' => 'Date picker',\r\n 'datetime' => 'Date and time picker',\r\n 'relationship' => 'Relationship',\r\n 'file' => 'File field',\r\n 'photo' => 'Photo field',\r\n 'password' => 'Password field (hashed)',\r\n 'enum' => 'ENUM',\r\n ];\r\n }", "title": "" }, { "docid": "40d3e86cb0bf711e6d302da1366ee149", "score": "0.48151004", "text": "public function getMediaTypes() {\n\n\t$types = array();\n\t$types[CalendarMedia::CALENDARMEDIA_IMAGE] = 'Imagen';\n\n\treturn $types;\n\n\t}", "title": "" }, { "docid": "cfa9aff07019edd814fe0b70f2ee9b30", "score": "0.48100245", "text": "public function supports(): array\n {\n return TypeConfiguration::TYPES;\n }", "title": "" }, { "docid": "b75ac83331eecde2228bac1887245c60", "score": "0.4799884", "text": "public function getAppTypeAllowableValues()\n {\n return [\n self::APP_TYPE_UNKNOWN,\n self::APP_TYPE_IOS,\n self::APP_TYPE_ANDROID,\n self::APP_TYPE_WEB,\n self::APP_TYPE_KIOSK,\n self::APP_TYPE_POS,\n self::APP_TYPE_TELEPHONE_CALL,\n self::APP_TYPE_SMS,\n self::APP_TYPE_PWA_ANDROID,\n self::APP_TYPE_PWA_IOS,\n self::APP_TYPE_GOOGLE,\n ];\n }", "title": "" }, { "docid": "adaf549c9e4da7abd1dd789ba55a70bc", "score": "0.47834113", "text": "public function getTypes() {\n \treturn $this->types;\n }", "title": "" }, { "docid": "18043fb54ac1c1483173eca1b017be57", "score": "0.47738618", "text": "public function resources($in_files=false, $type='js')\n\t{\n\t\tif (empty($in_files) || empty($type))\n\t\t\treturn array();\n\t\t$type = strtolower($type);\n\t\t$files = array();\n\t\tforeach ($in_files as $file) {\n\t\t\tif (file_exists($this->widget_full_path.'/'.$file.'.'.$type))\n\t\t\t\t$files[] = $this->widget_full_path.'/'.$file.'.'.$type;\n\t\t\telse\n\t\t\t\t$files[] = $file.'.'.$type;\n\t\t}\n\t\tswitch ($type) {\n\t\t case 'css':\n\t\t\treturn $files;\n\t\t case 'js':\n\t\t default:\n\t\t\treturn $files;\n\t\t}\n\t}", "title": "" }, { "docid": "ec3f64596c08b53542dc271c691fca16", "score": "0.47673854", "text": "public function getTypes() {\n $result = array();\n foreach($this->mime_types as $key => $val) {\n $result[] = array('name' => $key, 'value' => $val);\n }\n echo json_encode($result);\n }", "title": "" }, { "docid": "06c318b64c69b0d5680705846eb0ddd1", "score": "0.47607005", "text": "public function types() {\n return array_combine($this->_disposition_type, $this->_disposition_type);\n }", "title": "" }, { "docid": "082e2560ca3d44e23d8ab5f48b441378", "score": "0.4748328", "text": "public function getResourceType()\n {\n return $this->resourceType;\n }", "title": "" }, { "docid": "42ec48b179f20f581cfcfee192e5288a", "score": "0.4729682", "text": "public function get_post_types() {\n\n\t\t\t$post_types = get_post_types();\n\t\t\t$screens = array();\n\n\t\t\tforeach ( $post_types as $post_type ) {\n\n\t\t\t\t// We don't want attachments here\n\t\t\t\tif ( 'attachment' === $post_type ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$pt_object = get_post_type_object( $post_type );\n\n\t\t\t\tif ( is_null( $pt_object ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ( true === $pt_object->public ) {\n\t\t\t\t\t$screens[ $post_type ] = $pt_object->labels->name;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t$this->post_types = apply_filters( 'bf_post_types', $screens );\n\n\t\t}", "title": "" }, { "docid": "6d4ee13af32d6c27ecaacbad72a080d8", "score": "0.47296768", "text": "public function getResourceType();", "title": "" }, { "docid": "6d4ee13af32d6c27ecaacbad72a080d8", "score": "0.47296768", "text": "public function getResourceType();", "title": "" }, { "docid": "fc39940c2c39498ea10e2bc2cce0dd59", "score": "0.4727698", "text": "public static function getFieldStringTypes()\n\t{\n\t\t$types = [\n\t\t\tInternals\\FieldTable::TYPE_ENUM_PHONE,\n\t\t\tInternals\\FieldTable::TYPE_ENUM_EMAIL,\n\t\t\tInternals\\FieldTable::TYPE_ENUM_INT,\n\t\t\tInternals\\FieldTable::TYPE_ENUM_FLOAT,\n\t\t];\n\n\t\t$names = Internals\\FieldTable::getTypeList();\n\t\t$result = [];\n\t\tforeach($types as $type)\n\t\t{\n\t\t\t$result[$type] = $names[$type];\n\t\t}\n\n\t\treturn $result;\n\t}", "title": "" } ]
862a669bdb2e43ef794eef8be3b86659
/ Fetch all program major list data for program majors page
[ { "docid": "58382a315e7663cfab32368ef32440e0", "score": "0.6531747", "text": "public function programMajorList()\n {\n return $this->hasMany('App\\ProgramMajorList', 'program_id', 'id');\n }", "title": "" } ]
[ { "docid": "a0afc520e87bf19dd2ea35ad246eabf6", "score": "0.6271277", "text": "public function load_major()\n {\n $this->db->select('major');\n $this->db->where('user_id', $this->session->user_id);\n return $this->db->get('education')->row('major');\n }", "title": "" }, { "docid": "099ee713f00eff25c4e77c2da75bef4b", "score": "0.60656476", "text": "function getPrograms() {\n $query = \"SELECT id, name AS nazov FROM study_programme\";\n $this->dbh->Query($query);\n return $this->dbh->fetchall_assoc();\n }", "title": "" }, { "docid": "4325d7535ce302b118abb1ca549f44a8", "score": "0.59006625", "text": "public function fetch_all_program()\n {\n $this->db->select('*');\n $this->db->from('programs_tbl');\n $this->db->join('department_tbl', 'department_tbl.department_code = programs_tbl.assigned_department', 'left');\n $this->db->order_by('program_code', 'ASC');\n $query = $this->db->get();\n return $query->result();\n }", "title": "" }, { "docid": "82695a11f93347313e9af5cdee9f8d12", "score": "0.58523387", "text": "function getPrograms()\n {\n $program=new Page();\n return $program->getPagesByCategory(\"program\");\n }", "title": "" }, { "docid": "0930226252b74d23f807b5d16b51955b", "score": "0.5821342", "text": "private function get_programs_data() {\n global $DB, $USER;\n\n // Time for the end of the day.\n $date = usergetdate($this->time);\n $timeend = mktime(23, 59, 59, $date['mon'], $date['mday'], $date['year']);\n\n // Return all program recordings or favourites.\n $select = 'p.timebegin BETWEEN :timebegin AND :timeend AND COALESCE(r.id, f.id) IS NOT NULL';\n $params = array('userid' => $USER->id, 'timebegin' => $this->time, 'timeend' => $timeend);\n\n // Limit by channel if set.\n if ($this->channel) {\n $select .= ' AND p.channel = :channel';\n $params['channel'] = $this->channel;\n }\n\n return local_mediaserver_program_select($select, $params);\n }", "title": "" }, { "docid": "28b3aaaea7f78331c15056b00fb3ec44", "score": "0.58060676", "text": "public function programlist(){\n\t\t$pgid = $this->input->post('programcategory');\t\n\t \t$this->depmodel->get_programlist($pgid);\n\t}", "title": "" }, { "docid": "61afd9085a9ec1601cdc587be7ca6efd", "score": "0.56713957", "text": "function getPrograms($conn, $condition=1)\n{\t\t\n\t$sql_select_prog = \"\n\t\tSELECT *\n\t FROM programs\n\t\tWHERE \" . $condition;\n\n\t$result = mysqli_query($conn, $sql_select_prog);\n\t$programs_data = array();\n\n\tif ($result && mysqli_num_rows($result) > 0) {\n\t while($row = mysqli_fetch_assoc($result)) {\n\t \t$programs_data[$row['prog_id']] = $row;\n\t }\n\t}\n\treturn $programs_data;\n}", "title": "" }, { "docid": "5c4686c5001716b8cd51a64b05ed2e1a", "score": "0.5486936", "text": "private function getProgramList(){\n if($this->get_request_method() != \"GET\"){\n $this->response('',406);\n }\n $qry = \"SELECT id, program_name, program_time , details FROM program_schedule\";\n $sql = mysqli_query($this->db,$qry);\n if($sql->num_rows > 0){\n\n $result['program_list'] = mysqli_fetch_all($sql,MYSQLI_ASSOC); \n $programs = array(\n 'programs' => $result['program_list'], \n 'status' => 'true', \n 'message' => 'success', \n );\n $this->response($this->json($programs), 200);\n \n }else{\n\n $error['error'][] = array(\n 'error' => 'true',\n 'code' => 'no_result',\n );\n $result = array(\n 'error' => $error['error'], \n 'status' => 'false', \n 'message' => 'no result', \n );\n $this->response($this->json($result), 207);\n }\n \n}", "title": "" }, { "docid": "3b0f770e227073384984c5aec7500831", "score": "0.5483807", "text": "function getProgramDetails()\n\t\t{\n\t\t\t$programDetails = $this->db->select(\"program_course_name as name , program_course_description as description ,\n\t\t\t\t\t\t\t\t\t\tconcat('\".ADMIN_PANEL_URL.PROGRAM_COURSE_IMAGE_PATH.\"' , program_course_logo) as logo\")\n\t\t\t\t\t\t\t->where(array(\n\t\t\t\t\t\t\t\t\t\t'program_course_status' => 1,\n\t\t\t\t\t\t\t\t\t\t'delete_flag' => 0\n\t\t\t\t\t\t\t\t\t))\n\t\t\t\t\t\t\t->get(TABLE_PROGRAM_COURSE)->result_array();\n\t\t\t$addonDetails = $this->db->select(\"'Add on' as name , cont_content as description,\n\t\t\t\t\t\t\t\t\t\t\t\t'\".ADMIN_PANEL_URL.PROGRAM_COURSE_IMAGE_PATH.\"addon.jpg' as logo\")\n\t\t\t\t\t\t\t\t\t->where('cont_menuid' , $this->config->item('addOnCmsId'))\n\t\t\t\t\t\t\t\t\t->get(TABLE_CONTENT_MST)->row_array();\n\t\t\tarray_push($programDetails , $addonDetails);\n\t\t\treturn $programDetails;\n\t\t}", "title": "" }, { "docid": "abee4fab7d7e1b32231c5dce46d6c4c4", "score": "0.5413952", "text": "function find_all_programme() {\r\n global $db;\r\n\r\n $sql = \"SELECT * FROM programme \";\r\n $sql .= \"ORDER BY id ASC\";\r\n $result = mysqli_query($db, $sql);\r\n return $result;\r\n }", "title": "" }, { "docid": "cfb3740c1c610448697bd89f0ff6e44e", "score": "0.540458", "text": "public function getPrograms()\n {\n try\n {\n TTransaction::open('permission');\n $user = SystemUser::newFromLogin( TSession::getValue('login') );\n $programs = $user->getProgramsList();\n \n $menu = new TMenuParser('menu.xml');\n $menu_programs = $menu->getIndexedPrograms();\n \n foreach ($programs as $program => $label)\n {\n if (!isset($menu_programs[$program]))\n {\n unset($programs[$program]);\n }\n }\n \n TTransaction::close();\n return $programs;\n }\n catch (Exception $e)\n {\n new TMessage('error', $e->getMessage());\n }\n }", "title": "" }, { "docid": "072320ce46118c76257ec04f421b6ec0", "score": "0.5384506", "text": "public function fetchAll()\n {\n $sql = new Sql($this->adapter);\n $select = $sql->select()\n ->from($this->table)\n ->join('users', 'users.id = programs.created_user', array('last_name', 'first_name'))\n ->join('units', 'programs.unit_id = units.id', array('division'))\n ->where(array('programs.active_flag' => 1))\n ->order(array('division', 'programs.unit_id'))\n ;\n \n $statement = $sql->prepareStatementForSqlObject($select);\n $result = $statement->execute();\n $programs = array();\n foreach($result as $row){\n //create programs array to return\n $program = new Program();\n $program->exchangeArray($row);\n $programs[] = $program;\n }\n\n return $programs;\n }", "title": "" }, { "docid": "d3c79f629fd1156bbfdaad0f2c50b33e", "score": "0.5383765", "text": "private function get_programs() {\n global $DB;\n\n $strtimeformat = get_string('strftimetime', 'langconfig');\n $now = time();\n\n $output = \\html_writer::start_tag('ul');\n\n if ($programs = $this->get_programs_data()) {\n foreach ($programs as $program) {\n $classes = array('small-text');\n $classes[] = ($program->stream ? 'program-recorded' : 'program-favourite');\n\n if ($program->timebegin < ($now + LOCAL_MEDIASERVER_RECORD_BUFFER)) {\n $classes[] = 'program-old';\n }\n\n $link = new \\local_mediaserver_url('/local/mediaserver/guide/channel.php',\n array('id' => $program->channel, 't' => $program->timebegin), 'p' . $program->id);\n\n $channel = $DB->get_field('local_mediaserver_channel', 'name', array('id' => $program->channel));\n\n $strtime = local_mediaserver_local_time($program->timebegin, $strtimeformat);\n $strduration = format_time($program->timeend - $program->timebegin);\n\n // Program JSON data object.\n $data = json_encode(array(\n 'time' => $strtime,\n 'duration' => $strduration,\n 'description' => shorten_text($program->description, 440),\n ));\n $content = \\html_writer::link($link, $program->title, array('data-program' => $data));\n $content .= $channel . ', ' . get_string('programpopupheading', 'local_mediaserver', (object)['time' => $strtime, 'duration' => $strduration]);\n\n $output .= \\html_writer::tag('li', $content, array('class' => implode(' ', $classes)));\n }\n } else {\n $output .= \\html_writer::tag('li', get_string('nothingtodisplay'));\n }\n\n $output .= \\html_writer::end_tag('ul');\n\n return $output;\n }", "title": "" }, { "docid": "7cf098770140df0dfe34624b88f87abb", "score": "0.53634423", "text": "public function getAll() {\n return (Program::whereIn('status', [12, 13])->orderBy('name', 'asc')->get());\n }", "title": "" }, { "docid": "8220615e20cf0b43f7830f4f2ad2d032", "score": "0.53302574", "text": "public function listarPrograma()\r\n {\r\n $sql = \"SELECT * FROM Programa\";\r\n $resultado = $this-> conex-> consultaRetorno($sql);\r\n return $resultado;\r\n }", "title": "" }, { "docid": "86b5eaecfbbb4b77203dcfe188da8c41", "score": "0.5304975", "text": "public function getAllProgramas(){\n $query = \"SELECT * from programas\";\n $result = $this->db->select($query, array());\n if(count($result)>0)\n return $result;\n else\n return array();\n }", "title": "" }, { "docid": "268af18c8cc9d623be754bc918378c57", "score": "0.5289693", "text": "function minor_status($minor, $major_list, $cyear) {\n \t$status = 2;\n foreach ($major_list as $course) {\n \tif ($course < 0) {\n \t\t$status = 1;\n \t\t\tbreak;\n \t\t}\n \t}\n if ($minor == \"Computer Science\" and $cyear == 2010) {\n if (array_key_exists(\"CSC207\", $major_list) and\n array_key_exists(\"CSC234\", $major_list) and\n (\n (array_key_exists(\"CSC310\", $major_list) or array_key_exists(\"CSC340\", $major_list) or\n array_key_exists(\"CSC350\", $major_list))\n )\n ) {\n return $status;\n } else {\n return 0;\n }\n }\n else if ($minor == \"Computer Science\" and $cyear == 2011) {\n if (array_key_exists(\"CSC207\", $major_list) and\n array_key_exists(\"CSC234\", $major_list) and\n (\n (array_key_exists(\"CSC310\", $major_list) or array_key_exists(\"CSC440\", $major_list) or\n array_key_exists(\"CSC450\", $major_list))\n )\n ) {\n return $status;\n } else {\n return 0;\n }\n }\n else if ($minor == \"Mathematics\") {\n if (array_key_exists(\"MATH201\", $major_list) and\n array_key_exists(\"MATH203\", $major_list) and\n array_key_exists(\"MATH115\", $major_list) and\n array_key_exists(\"MATH303\", $major_list) and\n (\n (array_key_exists(\"MATH304\", $major_list) or array_key_exists(\"MATH305\", $major_list) or\n array_key_exists(\"MATH306\", $major_list) or array_key_exists(\"MATH307\", $major_list) or\n array_key_exists(\"MATH310\", $major_list) or array_key_exists(\"MATH311\", $major_list) or\n array_key_exists(\"MATH323\", $major_list) or array_key_exists(\"MATH395\", $major_list) or\n array_key_exists(\"MATH396\", $major_list)\n )\n ) and\n (\n (array_key_exists(\"MATH405\", $major_list) or array_key_exists(\"MATH404\", $major_list) or\n array_key_exists(\"MATH403\", $major_list) or array_key_exists(\"MATH407\", $major_list))\n )\n ) {\n return $status;\n } else {\n return 0;\n }\n } elseif ($minor == \"Philosophy\") {\n if (array_key_exists(\"PHIL301\", $major_list) and\n array_key_exists(\"PHIL302\", $major_list)) {\n return $status;\n } else {\n return 0;\n }\n } elseif ($minor == \"Neuroscience\") {\n if (array_key_exists(\"BIOL101\", $major_list) and\n array_key_exists(\"NEUR240\", $major_list) and\n array_key_exists(\"NEUR410\", $major_list) and\n array_key_exists(\"NEUR473\", $major_list)) {\n return $status;\n } else {\n return 0;\n }\n } elseif ($minor == \"Chemistry\") {\n if (array_key_exists(\"CHEM121\", $major_list) and\n array_key_exists(\"CHEM122\", $major_list) and\n array_key_exists(\"CHEM123\", $major_list) and\n array_key_exists(\"CHEM124\", $major_list) and\n array_key_exists(\"CHEM201\", $major_list) and\n array_key_exists(\"CHEM202\", $major_list) and\n array_key_exists(\"CHEM211\", $major_list) and\n array_key_exists(\"CHEM212\", $major_list) and\n array_key_exists(\"CHEM301\", $major_list) and\n array_key_exists(\"CHEM311\", $major_list)) {\n return $status;\n } else {\n return 0;\n }\n } elseif ($minor == \"Biology\") {\n if (array_key_exists(\"BIOL101\", $major_list) and\n (array_key_exists(\"BIOL202\", $major_list) or array_key_exists(\"BIOL204\", $major_list)) and\n (array_key_exists(\"BIOL303\", $major_list) or array_key_exists(\"BIOL313\", $major_list))) {\n return $status;\n } else {\n return 0;\n }\n } elseif ($minor == \"Physics\" or $minor == \"Psychology\") {\n $above300 = 0;\n foreach (array_keys($major_list) as $mycourse) {\n $mylen = strlen($mycourse);\n if (substr($mycourse, $mylen - 3, $mylen) + 0 >= 300) {\n $above300 += abs($major_list[$mycourse]);\n }\n }\n if ($above300 >= 6) {\n return $status;\n } else {\n return 0;\n }\n\n } elseif ($minor == \"Geology\") {\n $above300 = 0;\n foreach (array_keys($major_list) as $mycourse) {\n $mylen = strlen($mycourse);\n if (substr($mycourse, $mylen - 3, $mylen) + 0 >= 300) {\n $above300 += abs($major_list[$mycourse]);\n }\n }\n if (array_key_exists(\"GEOL101\", $major_list) and\n array_key_exists(\"GEOL202\", $major_list) and\n array_key_exists(\"GEOL212\", $major_list) and\n $above300 >= 6) {\n return $status;\n } else {\n return 0;\n }\n }\n return -1;\n}", "title": "" }, { "docid": "d816b69c03cb6bcba42da9adeafb52ed", "score": "0.52835876", "text": "private function doProgramServiceGetActivePrograms() {\n $yearInSeconds = 365 * 24 * 60 * 60;\n \n // Create the soap client for the program service\n $soapClient = new SoapClient($this->soapUrl.$this->programUri);\n \n // Create arguments to set a start and end date\n $soapArgs = new SoapArguments();\n // Set the start date to the current time using ISO 8601 format\n //$soapArgs->addDateArgument('startDate', date('c'));\n // Set the end date to the current time + 1 year in ISO 8601 format\n //$soapArgs->addDateArgument('endDate', date('c', time() + $yearInSeconds));\n \n // Query the server and capture the result\n //$soapResult = $soapClient->GetActivePrograms($soapArgs)->GetActiveProgramsResult;\n \n $request = \"http://72.54.98.142/sql.php?view=programs&format=json&startDate=\" . date('Y-m-d',time()) . \"&endDate=\" . date('Y-m-d',time() + $yearInSeconds); \n $response = file_get_contents($request);\n \n $programs = json_decode($response);\n \n // Process the results into an array of Program objects\n //$programs = array();\n //foreach($soapResult->ProgramModel as $program) {\n //foreach($decodedResponse as $program) {\n // $programs[] = $this->convertProgramModel($program);\n //}\n \n return $programs;\n }", "title": "" }, { "docid": "79d936a42a10b1ebdc79e17cb591c0b2", "score": "0.5262155", "text": "public function listAll (){\n\n // if is not set day, day = current date\n $day = isset($_GET[\"day\"]) ? $_GET[\"day\"] : date(\"Y-m-d\");\n $msg = \"\";\n //if is there no hall - hall=all\n $hall = \"all\";\n //If is chosen hall we must ge the program only for this hall\n if(isset($_GET[\"hall\"]) && $_GET[\"hall\"] != \"all\"){\n $hall = $_GET[\"hall\"];\n $programByDate = ProgramDao::getAllByDateHall($day, $hall);\n // if result is null - we do not have hall with this id\n if($programByDate == null){\n $msg .= \"Все още няма програма за тази зала в този ден\";\n }\n }\n //else we must list program for this date in all halls in all cinema\n else {\n $programByDate = ProgramDao::getAllByDate($day);\n //if result is null - there is no program for this day in bd\n if($programByDate == null){\n $msg .= \"Все още няма програма за този ден\";\n }\n }\n $GLOBALS[\"smarty\"]->assign('msg', $msg);\n $GLOBALS[\"smarty\"]->assign('isLoggedIn', isset($_SESSION[\"user\"]));\n $GLOBALS[\"smarty\"]->assign('programs', $programByDate);\n $GLOBALS[\"smarty\"]->assign('hall', $hall);\n $GLOBALS[\"smarty\"]->assign('date', $day);\n $GLOBALS[\"smarty\"]->assign('weekArr', $this->getWeekArray());\n $GLOBALS[\"smarty\"]->display('programList.tpl');\n }", "title": "" }, { "docid": "d1867ced277dcb12b0ef8360952d9bc6", "score": "0.52147156", "text": "public static function get_users_required_programs_returns() {\n return new external_multiple_structure(\n new external_single_structure(\n array(\n 'id' => new external_value(PARAM_INT, 'program id'),\n 'fullname' => new external_value(PARAM_TEXT, 'full name'),\n 'shortname' => new external_value(PARAM_TEXT, 'program short name'),\n 'categoryid' => new external_value(PARAM_INT, 'category id'),\n 'summary' => new external_value(PARAM_RAW, 'summary'),\n 'categorysortorder' => new external_value(PARAM_INT,\n 'sort order into the category', VALUE_OPTIONAL),\n 'idnumber' => new external_value(PARAM_RAW, 'id number', VALUE_OPTIONAL),\n 'visible' => new external_value(PARAM_INT,\n '1: available to student, 0:not available', VALUE_OPTIONAL),\n 'timecreated' => new external_value(PARAM_INT,\n 'timestamp when the program have been created', VALUE_OPTIONAL),\n 'timemodified' => new external_value(PARAM_INT,\n 'timestamp when the program have been modified', VALUE_OPTIONAL),\n ), 'program'\n )\n );\n }", "title": "" }, { "docid": "9de7886b9ceacef32ae2e7f3ca8b395e", "score": "0.51952314", "text": "public function getPrograms(){\n \n $options[\"\"] = \"--Select--\";\n //Query all users(Lecturers) not assigned to other departments\n $userquery = $this->em->createQuery(\" SELECT p\"\n . \" FROM \\Application\\Entity\\Program p \"\n . \" WHERE p.pkProgramid NOT IN( SELECT IDENTITY(s.fkProgramid) FROM \\Application\\Entity\\Departmentprogram s )\");\n \n foreach($userquery->getResult() as $user ){\n $options[$user->getPkProgramid()] = $user->getProgName();\n }\n \n return $options;\n }", "title": "" }, { "docid": "c6d4622bbae2c85bde9b6cebc66c4564", "score": "0.5137608", "text": "static public function getAll() {\n try {\n $sql = 'SELECT programa.cod_prog, programa.desc_prog, programa.estado FROM programa';\n return dataBaseClass::getinstance()->query($sql)->fetchAll(PDO::FETCH_ASSOC);\n } catch (PDOException $e) {\n return $e;\n }\n }", "title": "" }, { "docid": "d4463ddb0d120cdba424be7e98afffc7", "score": "0.5124888", "text": "public function getAllDetails($update = false, $includePs = false)\n {\n $detailsFilename = sprintf(self::FILENAME_DETAILS, $this->year, $this->semester);\n\n if ($update !== true && file_exists($detailsFilename)) {\n return $this->programDetails = (array) unserialize(file_get_contents($detailsFilename));\n }\n\n foreach ($this->getPrograms() as $programURL) {\n preg_match_all('#<tr[^>]*class\\=\"schtd.?\">(.*?)</tr>#si', $this->curlHandler->get($programURL), $sections);\n\n $lastCourseCode = null;\n $lastCourseSection = null;\n foreach ($sections[1] as $section) {\n if (self::PROBLEMSESSIONS !== true && preg_match('/P\\\\.S\\\\./si', $section)) {\n continue;\n }\n\n $c = \"<td>(.*?)</td>[^<]*\"; // captured col\n $i = \"<td>.*?</td>[^<]*\"; // ignored col\n // Code.Section, Name, Credits, Instr, Days, Hours, Rooms\n preg_match(\"#$c$i$c$c$i$c$c$c$c#si\", $section, $details);\n $this->cleanArray($details, 2);\n // No hour details, skip\n if (preg_match('#TBA#si', $details[5])) {\n continue;\n }\n\n if (array_key_exists(1, $details) && !empty($details[1])) {\n list($courseCode, $courseSection) = explode('.', $this->trueTrim($details[1]));\n } else {\n list($courseCode, $courseSection) = [\"\", \"\"];\n }\n $courseName = $this->trueTrim($details[2]);\n $courseCredit = $this->trueTrim($details[3]);\n $courseInstr = $this->trueTrim($details[4]);\n $courseDays = $this->trueTrim($details[5]);\n $courseHours = $this->trueTrim($details[6]);\n $courseRooms = $this->trueTrim($details[7]);\n\n // If course code is empty, then it belongs to a parent course.\n $det = null;\n if (empty($courseCode)) {\n // Get the main course field, it's a LAB or P.S.\n $det = $this->programDetails[$lastCourseCode][$lastCourseSection];\n } else {\n if (!array_key_exists($courseCode, $this->programDetails)) {\n $this->programDetails[$courseCode] = [$courseSection => [null, null, null, null]];\n }\n if (!array_key_exists($courseSection, $this->programDetails[$courseCode])) {\n $this->programDetails[$courseCode][$courseSection] = [null, null, null, null];\n }\n $det = $this->programDetails[$courseCode][$courseSection];\n $lastCourseCode = $courseCode;\n $lastCourseSection = $courseSection;\n }\n\n $det[0] .= $courseDays;\n $det[1] .= $courseHours;\n if (!empty($courseRooms)) {\n $det[2] .= empty($det[2]) ? $courseRooms : ' | '.$courseRooms;\n }\n if (!empty($courseInstr)) {\n $det[3] .= empty($det[3]) ? $courseInstr : ' | '.$courseInstr;\n }\n // 4th index is course credit\n if (empty($det[4])) {\n $det[4] = (int) $courseCredit;\n }\n // 5th index is full course names and instructors\n if (empty($det[5])) {\n $det[5] = [];\n }\n $count = count(preg_split('/([A-Z][a-z]*)/', $courseDays, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY));\n for($i = 0; $i < $count; $i++) {\n $det[5][] = [\"fullName\" => $courseName, \"inst\" => $courseInstr];\n }\n\n $this->programDetails[$lastCourseCode][$lastCourseSection] = $det;\n }\n }\n\n file_put_contents($detailsFilename, serialize($this->programDetails));\n\n return $this->programDetails;\n }", "title": "" }, { "docid": "b1778eb80fe1daf854c011570f9259d7", "score": "0.5115495", "text": "public static function get_programs_returns() {\n return new external_multiple_structure(\n new external_single_structure(\n array(\n 'id' => new external_value(PARAM_INT, 'program id'),\n 'fullname' => new external_value(PARAM_TEXT, 'full name'),\n 'shortname' => new external_value(PARAM_TEXT, 'program short name'),\n 'categoryid' => new external_value(PARAM_INT, 'category id'),\n 'summary' => new external_value(PARAM_RAW, 'summary'),\n 'completed' => new external_value(PARAM_BOOL, 'completed'),\n 'categorysortorder' => new external_value(PARAM_INT,\n 'sort order into the category', VALUE_OPTIONAL),\n 'idnumber' => new external_value(PARAM_RAW, 'id number', VALUE_OPTIONAL),\n 'visible' => new external_value(PARAM_INT,\n '1: available to student, 0:not available', VALUE_OPTIONAL),\n 'timecreated' => new external_value(PARAM_INT,\n 'timestamp when the program have been created', VALUE_OPTIONAL),\n 'timemodified' => new external_value(PARAM_INT,\n 'timestamp when the program have been modified', VALUE_OPTIONAL),\n ), 'program'\n )\n );\n }", "title": "" }, { "docid": "060557b6ca1988aec51b28a3e9162c68", "score": "0.51140684", "text": "public function major();", "title": "" }, { "docid": "ec2fea7d8a363e6fa3e8e88b111c3e15", "score": "0.50893", "text": "function load_semester($conn, $sem){\n $courses = array();\n $season = $sem->season;\n $year = $sem->year;\n $cmd = $conn->prepare(\"SELECT * FROM courses WHERE semester = ? AND year = ?\");\n $cmd->bind_param(\"ii\", $season, $year);\n $cmd->execute();\n $result = $cmd->get_result();\n\n while($row = $result->fetch_assoc()){\n if($row[\"recommend\"] > 0 && $row[\"workload\"] > 0){\n $c = new Course($row[\"code\"]);\n array_push($c->infos, new Info($sem, $row[\"enrollment\"], $row[\"recommend\"], $row[\"workload\"]));\n array_push($courses, $c);\n }\n }\n\n return $courses;\n }", "title": "" }, { "docid": "8cf8beb54b7605bafcb542ee1bbc24d4", "score": "0.5088921", "text": "public function get_student_major($pidm) {\n try {\n \n $qry = \"select MAJR_DESC_1 \n from V_STUDENT\n where PIDM = :PIDM\";\n\n //Setup prepared statement\n $stid = oci_parse($this->bannerDB, $qry);\n \n //bind data to query object\n oci_bind_by_name($stid, ':PIDM', $pidm);\n\n //execute query\n $r = oci_execute($stid);\n \n //return false if query fails to commit\n if (!$r) {\n $r = \"Failed to retrieve records from Banner.\";\n //TODO log statement that db query did not retrieve results\n } else {\n $r = oci_fetch_row($stid);\n $r = $r[0];\n }\n\n //release connection objects and return false\n oci_free_statement($stid);\n \n return $r;\n \n } catch (Exception $e) {\n //close connections and return false on error\n oci_free_statement($stid);\n \n return false;\n }\n\n }", "title": "" }, { "docid": "5e0dd17b62813f905b4b8d989786efe2", "score": "0.50879437", "text": "public function index()\n {\n $records = Major::with('lessons')->orderBy('name', 'ASC')->paginate(config('system.PAGINATION_LIMIT'));\n return view('admin.pages.majors.manage', ['records' => $records]);\n }", "title": "" }, { "docid": "b15dc642c53b297d116e1284ce4d509f", "score": "0.5078125", "text": "public function index()\n {\n $breadcrumbs = $this->getBreadCrumbs('studyProgramList');\n $title = $this->getTitle('studyProgramList');\n $sub_title = $this->getSubTitle('studyProgramList');\n $master_css = \"active\";\n $program_study_css = \"active\";\n $faculties = Faculty::all()->pluck('name', 'id');\n\n return view('admin.study_program.study_program')\n ->with('title', $title)\n ->with('sub_title', $sub_title)\n ->with('breadcrumbs', $breadcrumbs)\n ->with('master_css', $master_css)\n ->with('program_study_css', $program_study_css)\n ->with('faculties', $faculties);\n }", "title": "" }, { "docid": "006f48be7459e92ae8959fbd94a89a97", "score": "0.5071551", "text": "function major_status($major, $btype, $major_list, $cyear) {\n /*\n | Mathematics | 1 | 42 | Mathematics | Arts | 2010 | \n | Mathematics: Theoretical | 2 | 48 | Mathematics | Science | 2010 | \n | Physics | 12 | 50 | Physics | Science | 2010 | \n | Mathematics: Computational | 13 | 45 | Mathematics | Science | 2011 | \n | Biophysics | 14 | 73 | Biophysics | Science | 2010 | \n | Biology | 15 | 66 | Biology | Science | 2010 | \n | Psychology | 16 | 30 | Psychology | Arts | 2010 | \n | Philosophy | 17 | 30 | Philosophy | Arts | 2010 | \n\t| Neuroscience | 18 | 50 | Neuroscience | Science | 2010 | \n\t| Biochemistry | 19 | 60 | Chemistry | Science | 2010 | \n | Chemistry | 20 | 53 | Chemistry | Science | 2010 | \n\t| Chemistry ACS | 21 | 60 | Chemistry | Science | 2010 | \n | Biology | 22 | 42 | Biology | Arts | 2011 | \n\t| Geology | 23 | 62 | Geology | Science | 2010 | \n| Geology | 24 | 46 | Geology | Arts | 2010 | \n */\n \t$status = 2;\n foreach ($major_list as $course) {\n \tif ($course < 0) {\n \t\t$status = 1;\n \t\t\tbreak;\n \t\t}\n \t}\n \n if ($major == \"Psychology\") { # only BA\n if (array_key_exists(\"PSY101\", $major_list) and\n array_key_exists(\"PSY211\", $major_list) and\n array_key_exists(\"PSY214\", $major_list) and\n array_key_exists(\"PSY303\", $major_list) and\n array_key_exists(\"PSY313\", $major_list) and\n array_key_exists(\"PSY473\", $major_list) and\n (\n array_key_exists(\"PSY421\", $major_list) or\n array_key_exists(\"PSY422\", $major_list) \n ) and\n (\n (array_key_exists(\"PSY305\", $major_list) and array_key_exists(\"PSY319\", $major_list)) or\n (array_key_exists(\"PSY305\", $major_list) and array_key_exists(\"PSY325\", $major_list)) or\n (array_key_exists(\"PSY305\", $major_list) and array_key_exists(\"PSY326\", $major_list)) or\n (array_key_exists(\"PSY319\", $major_list) and array_key_exists(\"PSY325\", $major_list)) or\n (array_key_exists(\"PSY319\", $major_list) and array_key_exists(\"PSY326\", $major_list)) or\n (array_key_exists(\"PSY325\", $major_list) and array_key_exists(\"PSY326\", $major_list))\n )) {\n return $status;\n } else {\n return 0;\n }\n } else if ($major == \"Mathematics: Computational\") {\n if (array_key_exists(\"MATH201\", $major_list) and\n array_key_exists(\"MATH204\", $major_list) and\n array_key_exists(\"MATH220\", $major_list) and\n array_key_exists(\"MATH303\", $major_list) and\n array_key_exists(\"CSC207\", $major_list) and\n array_key_exists(\"CSC234\", $major_list) and\n array_key_exists(\"MATH462\", $major_list) and\n array_key_exists(\"MATH472\", $major_list) and\n array_key_exists(\"PHIL210\", $major_list) and\n array_key_exists(\"PHYS104\", $major_list) and\n array_key_exists(\"PHYS114\", $major_list) and\n array_key_exists(\"PHYS105\", $major_list) and\n array_key_exists(\"PHYS115\", $major_list) and\n (\n (array_key_exists(\"MATH405\", $major_list) and array_key_exists(\"CSC310\", $major_list)) or\n (array_key_exists(\"MATH405\", $major_list) and array_key_exists(\"CSC440\", $major_list)) or\n (array_key_exists(\"MATH405\", $major_list) and array_key_exists(\"CSC450\", $major_list)) or\n (array_key_exists(\"CSC310\", $major_list) and array_key_exists(\"CSC440\", $major_list)) or\n (array_key_exists(\"CSC310\", $major_list) and array_key_exists(\"CSC450\", $major_list)) or\n (array_key_exists(\"CSC440\", $major_list) and array_key_exists(\"CSC450\", $major_list))\n ) and\n (\n (array_key_exists(\"MATH203\", $major_list) and array_key_exists(\"MATH305\", $major_list)) or\n (array_key_exists(\"MATH203\", $major_list) and array_key_exists(\"MATH310\", $major_list)) or\n (array_key_exists(\"MATH203\", $major_list) and array_key_exists(\"MATH311\", $major_list)) or\n (array_key_exists(\"CSC277\", $major_list) and array_key_exists(\"MATH305\", $major_list)) or\n (array_key_exists(\"CSC277\", $major_list) and array_key_exists(\"MATH310\", $major_list)) or\n (array_key_exists(\"CSC277\", $major_list) and array_key_exists(\"MATH311\", $major_list)) or\n (array_key_exists(\"MATH305\", $major_list) and array_key_exists(\"MATH310\", $major_list)) or\n (array_key_exists(\"MATH305\", $major_list) and array_key_exists(\"MATH311\", $major_list)) or\n (array_key_exists(\"MATH310\", $major_list) and array_key_exists(\"MATH310\", $major_list))\n )\n ) {\n return $status;\n } else {\n return 0;\n }\n } else if ($major == \"Mathematics: Theoretical\") {\n if (array_key_exists(\"MATH201\", $major_list) and\n array_key_exists(\"MATH203\", $major_list) and\n array_key_exists(\"MATH204\", $major_list) and\n array_key_exists(\"MATH303\", $major_list) and\n array_key_exists(\"MATH306\", $major_list) and\n array_key_exists(\"CSC207\", $major_list) and\n array_key_exists(\"MATH462\", $major_list) and\n array_key_exists(\"MATH472\", $major_list) and\n array_key_exists(\"PHYS104\", $major_list) and\n array_key_exists(\"PHYS114\", $major_list) and\n array_key_exists(\"PHYS105\", $major_list) and\n array_key_exists(\"PHYS115\", $major_list) and\n (\n (array_key_exists(\"MATH405\", $major_list) or array_key_exists(\"MATH404\", $major_list))\n ) and\n (\n (array_key_exists(\"MATH403\", $major_list) or array_key_exists(\"MATH407\", $major_list))\n )\n ) {\n \n return $status;\n } else {\n \n return 0;\n }\n } else if ($major == \"Chemistry\") {\n if (array_key_exists(\"MATH115\", $major_list) and\n array_key_exists(\"MATH201\", $major_list) and\n array_key_exists(\"PHYS104\", $major_list) and\n array_key_exists(\"PHYS114\", $major_list) and\n array_key_exists(\"PHYS105\", $major_list) and\n array_key_exists(\"PHYS115\", $major_list) and\n array_key_exists(\"CHEM121\", $major_list) and\n array_key_exists(\"CHEM122\", $major_list) and\n array_key_exists(\"CHEM123\", $major_list) and\n array_key_exists(\"CHEM124\", $major_list) and\n array_key_exists(\"CHEM201\", $major_list) and\n array_key_exists(\"CHEM202\", $major_list) and\n array_key_exists(\"CHEM211\", $major_list) and\n array_key_exists(\"CHEM212\", $major_list) and\n array_key_exists(\"CHEM301\", $major_list) and\n array_key_exists(\"CHEM311\", $major_list) and\n array_key_exists(\"CHEM351\", $major_list) and\n array_key_exists(\"CHEM352\", $major_list) and\n array_key_exists(\"CHEM353\", $major_list) and\n array_key_exists(\"CHEM354\", $major_list) and\n array_key_exists(\"CHEM361\", $major_list) and\n array_key_exists(\"CHEM331\", $major_list) and\n array_key_exists(\"CHEM900\", $major_list) and\n array_key_exists(\"BIOL101\", $major_list) and\n array_key_exists(\"BIOL204\", $major_list)\n ) {\n \n return $status;\n } else {\n \n return 0;\n }\n } else if ($major == \"Chemistry ACS\") {\n if (array_key_exists(\"MATH115\", $major_list) and\n array_key_exists(\"MATH201\", $major_list) and\n array_key_exists(\"PHYS104\", $major_list) and\n array_key_exists(\"PHYS114\", $major_list) and\n array_key_exists(\"PHYS105\", $major_list) and\n array_key_exists(\"PHYS115\", $major_list) and\n array_key_exists(\"CHEM121\", $major_list) and\n array_key_exists(\"CHEM122\", $major_list) and\n array_key_exists(\"CHEM123\", $major_list) and\n array_key_exists(\"CHEM124\", $major_list) and\n array_key_exists(\"CHEM201\", $major_list) and\n array_key_exists(\"CHEM202\", $major_list) and\n array_key_exists(\"CHEM211\", $major_list) and\n array_key_exists(\"CHEM212\", $major_list) and\n array_key_exists(\"CHEM301\", $major_list) and\n array_key_exists(\"CHEM311\", $major_list) and\n array_key_exists(\"CHEM351\", $major_list) and\n array_key_exists(\"CHEM352\", $major_list) and\n array_key_exists(\"CHEM353\", $major_list) and\n array_key_exists(\"CHEM354\", $major_list) and\n array_key_exists(\"CHEM361\", $major_list) and\n array_key_exists(\"CHEM392\", $major_list) and\n array_key_exists(\"CHEM331\", $major_list) and\n array_key_exists(\"CHEM412\", $major_list) and\n array_key_exists(\"CHEM321\", $major_list) and\n array_key_exists(\"CHEM900\", $major_list) and\n array_key_exists(\"BIOL101\", $major_list) and\n (\n (array_key_exists(\"CHEM400\", $major_list) or array_key_exists(\"CHEM492\", $major_list))\n ) and\n array_key_exists(\"BIOL204\", $major_list)\n ) {\n \n return $status;\n } else {\n \n return 0;\n }\n } else if ($major == \"Biochemistry\") {\n if (array_key_exists(\"MATH115\", $major_list) and\n array_key_exists(\"MATH201\", $major_list) and\n array_key_exists(\"PHYS104\", $major_list) and\n array_key_exists(\"PHYS114\", $major_list) and\n array_key_exists(\"PHYS105\", $major_list) and\n array_key_exists(\"PHYS115\", $major_list) and\n array_key_exists(\"CHEM121\", $major_list) and\n array_key_exists(\"CHEM122\", $major_list) and\n array_key_exists(\"CHEM123\", $major_list) and\n array_key_exists(\"CHEM124\", $major_list) and\n array_key_exists(\"CHEM201\", $major_list) and\n array_key_exists(\"CHEM202\", $major_list) and\n array_key_exists(\"CHEM211\", $major_list) and\n array_key_exists(\"CHEM212\", $major_list) and\n array_key_exists(\"CHEM301\", $major_list) and\n array_key_exists(\"CHEM311\", $major_list) and\n array_key_exists(\"CHEM321\", $major_list) and\n array_key_exists(\"CHEM322\", $major_list) and\n array_key_exists(\"CHEM324\", $major_list) and\n array_key_exists(\"CHEM351\", $major_list) and\n array_key_exists(\"CHEM361\", $major_list) and\n array_key_exists(\"CHEM900\", $major_list) and\n array_key_exists(\"BIOL101\", $major_list) and\n array_key_exists(\"BIOL204\", $major_list) and\n (\n (array_key_exists(\"BIOL308\", $major_list) or array_key_exists(\"BIOL313\", $major_list))\n )\n ) {\n \n return $status;\n } else {\n \n return 0;\n }\n } else if ($major == \"Biology\" and $btype == \"Arts\") {\n $above300 = 0;\n foreach (array_keys($major_list) as $mycourse) {\n $mylen = strlen($mycourse);\n if (substr($mycourse, $mylen - 3, $mylen) + 0 >= 300) {\n $above300 += abs($major_list[$mycourse]);\n }\n }\n if (array_key_exists(\"BIOL101\", $major_list) and\n array_key_exists(\"BIOL202\", $major_list) and\n array_key_exists(\"BIOL204\", $major_list) and\n array_key_exists(\"CHEM121\", $major_list) and\n array_key_exists(\"CHEM122\", $major_list) and\n array_key_exists(\"CHEM123\", $major_list) and\n array_key_exists(\"CHEM124\", $major_list) and\n array_key_exists(\"BIOL900\", $major_list) and\n (\n ((array_key_exists(\"BIOL301\", $major_list) and array_key_exists(\"BIOL302\", $major_list)) or \n (array_key_exists(\"BIOL303\", $major_list) and array_key_exists(\"BIOL412\", $major_list)))\n ) and\n (\n ((array_key_exists(\"PSY303\", $major_list) and array_key_exists(\"PSY313\", $major_list)) or \n (array_key_exists(\"SOC303\", $major_list) and array_key_exists(\"SOC313\", $major_list)) or\n (array_key_exists(\"ECON204\", $major_list) or array_key_exists(\"ECON304\", $major_list)))\n ) \n and $above300 >= 14\n ) {\n \n return $status;\n } else {\n \n return 0;\n }\n } else if ($major == \"Neuroscience\") {\n $elective = 0;\n $elist = array(\"CSC277\", \"BIOL313\", \"NEUR317\", \"NEUR319\", \"BIOL321\", \"PSY325\", \"CSC440\", \"NEUR350\", \"NEUR395\", \"NEUR396\", \"BIOL403\", \"BIOL405\");\n foreach ($elist as $mycourse) {\n if (array_key_exists($mycourse, $major_list)) {\n $elective += 1;\n }\n }\n if (array_key_exists(\"BPHY304\", $major_list) and array_key_exists(\"BPHY314\", $major_list)) {\n \t$elective += 1;\n }\n if (array_key_exists(\"BIOL322\", $major_list) and array_key_exists(\"BIOL324\", $major_list)) {\n \t$elective += 1;\n }\n if (array_key_exists(\"BIOL101\", $major_list) and\n array_key_exists(\"BIOL204\", $major_list) and\n array_key_exists(\"NEUR240\", $major_list) and\n array_key_exists(\"NEUR410\", $major_list) and\n array_key_exists(\"NEUR473\", $major_list) and\n array_key_exists(\"NEUR493\", $major_list) and\n array_key_exists(\"CHEM121\", $major_list) and\n array_key_exists(\"CHEM122\", $major_list) and\n array_key_exists(\"CHEM123\", $major_list) and\n array_key_exists(\"CHEM124\", $major_list) and\n array_key_exists(\"CHEM201\", $major_list) and\n array_key_exists(\"CHEM211\", $major_list) and\n array_key_exists(\"CHEM202\", $major_list) and\n array_key_exists(\"CHEM212\", $major_list) and\n ($cyear == 2010 and array_key_exists(\"MATH115\", $major_list)) or\n (array_key_exists(\"MATH115\", $major_list) or array_key_exists(\"MATH109\", $major_list)) and\n array_key_exists(\"PSY101\", $major_list) and\n (\n ((array_key_exists(\"PSY303\", $major_list) and array_key_exists(\"PSY313\", $major_list)) or \n (array_key_exists(\"SOC303\", $major_list) and array_key_exists(\"SOC313\", $major_list)) or\n array_key_exists(\"ECON204\", $major_list) or array_key_exists(\"ECON304\", $major_list) or\n array_key_exists(\"MATH201\", $major_list))\n ) \n and $elective >= 3\n ) {\n \n return $status;\n } else {\n \n return 0;\n }\n } else if ($major == \"Biology\" and $btype == \"Science\") {\n $above300 = 0;\n foreach (array_keys($major_list) as $mycourse) {\n $mylen = strlen($mycourse);\n if (substr($mycourse, $mylen - 3, $mylen) + 0 >= 300) {\n $above300 += abs($major_list[$mycourse]);\n }\n }\n if (array_key_exists(\"BIOL101\", $major_list) and\n array_key_exists(\"BIOL202\", $major_list) and\n array_key_exists(\"BIOL204\", $major_list) and\n array_key_exists(\"BIOL303\", $major_list) and\n array_key_exists(\"BIOL313\", $major_list) and\n array_key_exists(\"CHEM121\", $major_list) and\n array_key_exists(\"CHEM122\", $major_list) and\n array_key_exists(\"CHEM123\", $major_list) and\n array_key_exists(\"CHEM124\", $major_list) and\n array_key_exists(\"CHEM201\", $major_list) and\n array_key_exists(\"CHEM211\", $major_list) and\n array_key_exists(\"CHEM202\", $major_list) and\n array_key_exists(\"CHEM212\", $major_list) and\n array_key_exists(\"PHYS104\", $major_list) and\n array_key_exists(\"PHYS114\", $major_list) and\n array_key_exists(\"PHYS105\", $major_list) and\n array_key_exists(\"PHYS115\", $major_list) and\n array_key_exists(\"MATH115\", $major_list) and\n array_key_exists(\"BIOL900\", $major_list) and\n\n (\n ((array_key_exists(\"BIOL308\", $major_list) or array_key_exists(\"BIOL321\", $major_list) or array_key_exists(\"BIOL405\", $major_list)) and \n (array_key_exists(\"BIOL403\", $major_list) or array_key_exists(\"BIOL414\", $major_list) or array_key_exists(\"BIOL412\", $major_list))) or\n ((array_key_exists(\"BIOL308\", $major_list) or array_key_exists(\"BIOL321\", $major_list) or array_key_exists(\"BIOL405\", $major_list)) and \n (array_key_exists(\"BIOL240\", $major_list) or array_key_exists(\"BIOL301\", $major_list) or array_key_exists(\"BIOL302\", $major_list) or array_key_exists(\"BIOL402\", $major_list) or array_key_exists(\"BIOL407\", $major_list))) or\n ((array_key_exists(\"BIOL240\", $major_list) or array_key_exists(\"BIOL301\", $major_list) or array_key_exists(\"BIOL302\", $major_list) or array_key_exists(\"BIOL402\", $major_list) or array_key_exists(\"BIOL407\", $major_list)) and \n (array_key_exists(\"BIOL403\", $major_list) or array_key_exists(\"BIOL414\", $major_list) or array_key_exists(\"BIOL412\", $major_list)))\n \n ) and\n (\n ((array_key_exists(\"PSY303\", $major_list) and array_key_exists(\"PSY313\", $major_list)) or \n (array_key_exists(\"SOC303\", $major_list) and array_key_exists(\"SOC313\", $major_list)) or\n array_key_exists(\"ECON204\", $major_list) or array_key_exists(\"ECON304\", $major_list) or\n array_key_exists(\"MATH201\", $major_list))\n ) and\n \n $above300 >= 16\n ) {\n \n return $status;\n } else {\n \n return 0;\n }\n } else if ($major == \"Mathematics\") {\n if (array_key_exists(\"MATH201\", $major_list) and\n array_key_exists(\"MATH203\", $major_list) and\n array_key_exists(\"MATH204\", $major_list) and\n array_key_exists(\"MATH303\", $major_list) and\n array_key_exists(\"MATH306\", $major_list) and\n array_key_exists(\"CSC207\", $major_list) and\n array_key_exists(\"MATH462\", $major_list) and\n array_key_exists(\"MATH472\", $major_list) and\n array_key_exists(\"PHYS104\", $major_list) and\n array_key_exists(\"PHYS114\", $major_list) and\n array_key_exists(\"PHYS105\", $major_list) and\n array_key_exists(\"PHYS115\", $major_list) and\n (\n (array_key_exists(\"MATH405\", $major_list) or array_key_exists(\"MATH404\", $major_list) or\n array_key_exists(\"MATH403\", $major_list) or array_key_exists(\"MATH407\", $major_list))\n )\n ) {\n return $status;\n } else {\n return 0;\n }\n } elseif ($major == \"Philosophy\") {\n if (array_key_exists(\"PHIL202\", $major_list) and\n array_key_exists(\"PHIL301\", $major_list) and\n array_key_exists(\"PHIL302\", $major_list)) {\n return $status;\n } else {\n return 0;\n }\n } elseif ($major == \"Physics\") {\n if (array_key_exists(\"PHYS104\", $major_list) and\n array_key_exists(\"PHYS114\", $major_list) and\n array_key_exists(\"PHYS105\", $major_list) and\n array_key_exists(\"PHYS115\", $major_list) and\n array_key_exists(\"PHYS204\", $major_list) and\n array_key_exists(\"PHYS214\", $major_list) and\n array_key_exists(\"PHYS305\", $major_list) and\n array_key_exists(\"PHYS317\", $major_list) and\n array_key_exists(\"PHYS312\", $major_list) and\n array_key_exists(\"PHYS321\", $major_list) and\n array_key_exists(\"PHYS323\", $major_list) and\n array_key_exists(\"PHYS413\", $major_list) and\n array_key_exists(\"PHYS414\", $major_list) and\n array_key_exists(\"PHYS424\", $major_list) and\n array_key_exists(\"PHYS426\", $major_list) and\n array_key_exists(\"PHYS453\", $major_list) and\n array_key_exists(\"PHYS463\", $major_list) and\n array_key_exists(\"PHYS471\", $major_list) and\n array_key_exists(\"MATH115\", $major_list) and\n array_key_exists(\"MATH201\", $major_list) and\n array_key_exists(\"MATH303\", $major_list) and\n array_key_exists(\"MATH307\", $major_list) and\n array_key_exists(\"CHEM121\", $major_list) and\n array_key_exists(\"CHEM122\", $major_list) and\n array_key_exists(\"CHEM123\", $major_list) and\n array_key_exists(\"CHEM124\", $major_list)) {\n return $status;\n } else {\n return 0;\n }\n } elseif ($major == \"Biophysics\") {\n if (array_key_exists(\"PHYS104\", $major_list) and\n array_key_exists(\"PHYS114\", $major_list) and\n array_key_exists(\"PHYS105\", $major_list) and\n array_key_exists(\"PHYS115\", $major_list) and\n array_key_exists(\"PHYS204\", $major_list) and\n array_key_exists(\"PHYS214\", $major_list) and\n array_key_exists(\"PHYS305\", $major_list) and\n array_key_exists(\"PHYS317\", $major_list) and\n array_key_exists(\"BIOL101\", $major_list) and\n array_key_exists(\"BIOL204\", $major_list) and\n array_key_exists(\"BIOL321\", $major_list) and\n array_key_exists(\"BIOL322\", $major_list) and\n array_key_exists(\"BPYH304\", $major_list) and\n array_key_exists(\"BPYH314\", $major_list) and\n array_key_exists(\"BPYH453\", $major_list) and\n array_key_exists(\"BPYH463\", $major_list) and\n array_key_exists(\"BPYH473\", $major_list) and\n array_key_exists(\"MATH115\", $major_list) and\n array_key_exists(\"MATH201\", $major_list) and\n array_key_exists(\"MATH303\", $major_list) and\n array_key_exists(\"CHEM121\", $major_list) and\n array_key_exists(\"CHEM122\", $major_list) and\n array_key_exists(\"CHEM123\", $major_list) and\n array_key_exists(\"CHEM124\", $major_list) and\n array_key_exists(\"CHEM201\", $major_list) and\n array_key_exists(\"CHEM202\", $major_list) and\n array_key_exists(\"CHEM211\", $major_list) and\n array_key_exists(\"CHEM212\", $major_list) and\n array_key_exists(\"CHEM324\", $major_list)) {\n return $status;\n } else {\n return 0;\n }\n } elseif ($major == \"Geology\" and $btype == \"Science\") {\n if (array_key_exists(\"GEOL101\", $major_list) and\n array_key_exists(\"GEOL202\", $major_list) and\n array_key_exists(\"GEOL212\", $major_list) and\n array_key_exists(\"GEOL311\", $major_list) and\n array_key_exists(\"GEOL312\", $major_list) and\n array_key_exists(\"GEOL345\", $major_list) and\n array_key_exists(\"GEOL355\", $major_list) and\n array_key_exists(\"GEOL357\", $major_list) and\n array_key_exists(\"GEOL900\", $major_list) and \n array_key_exists(\"PHYS104\", $major_list) and\n array_key_exists(\"PHYS114\", $major_list) and\n array_key_exists(\"CHEM121\", $major_list) and\n array_key_exists(\"CHEM122\", $major_list) and\n array_key_exists(\"MATH115\", $major_list) and\n array_key_exists(\"MATH201\", $major_list)) {\n return $status;\n } else {\n return 0;\n }\n }\n return -1;\n}", "title": "" }, { "docid": "e8513fe1988ca8dea45a94b33fb061d5", "score": "0.5064897", "text": "public function getAllMajors()\n {\n $parameters = [\n ];\n return $this->dao->get($parameters, \"majors\");\n }", "title": "" }, { "docid": "cb2eb41001db8cb92fbd35fca2514f34", "score": "0.5060126", "text": "private function get_installerPages()\r\n {\r\n $rows = null;\r\n $select_fields = 'uid, title';\r\n $from_table = 'pages';\r\n $where_clause = 'deleted = 0 AND module = \"org_inst\"';\r\n $groupBy = '';\r\n $orderBy = '';\r\n $limit = '';\r\n //var_dump(__METHOD__ . ' (' . __LINE__ . '): ' . $GLOBALS['TYPO3_DB']->SELECTquery($select_fields,$from_table,$where_clause,$groupBy,$orderBy,$limit));\r\n $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery($select_fields, $from_table, $where_clause, $groupBy, $orderBy, $limit);\r\n while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))\r\n {\r\n $rows[] = '<li>' . $row['title'] . ' [uid: ' . $row['uid'] . ']</li>';\r\n //$params['items'][] = array($row['itemValue'], $row['itemKey']);\r\n }\r\n return $rows;\r\n }", "title": "" }, { "docid": "18dbdde36300b751016f8b8394261f84", "score": "0.5004843", "text": "public function index()\n {\n $majors = Major::orderBy('updated_at','desc')->get();\n $no=1;\n return view('master.major.index', compact('majors','no'));\n }", "title": "" }, { "docid": "d0ec4616a95874e6be7463e5be55e7cb", "score": "0.49957445", "text": "public function search_majors(Request $request) {\n $majors = Major::where('name', 'like', $request->input('q').'%')->get();\n\n return $majors;\n }", "title": "" }, { "docid": "6892f9cf4680078606734efdda9f230a", "score": "0.4982119", "text": "public function getProgramas() {\n $cacheId = $this->_prefix . __FUNCTION__;\n if ($this->_cache->test($cacheId)) {\n return $this->_cache->load($cacheId);\n }\n $rs = $this->_config->enumeraciones->programas_computo->toArray();\n $this->_cache->save(\n $rs, $cacheId, array(), $this->_config->cache->ProgramaComputo->getProgramas\n );\n return $rs;\n }", "title": "" }, { "docid": "9f1985ea483274260c2ca295ec469b68", "score": "0.4979869", "text": "public static function get_users_programs_returns() {\n return new external_multiple_structure(\n new external_single_structure(\n array(\n 'id' => new external_value(PARAM_INT, 'program id'),\n 'fullname' => new external_value(PARAM_TEXT, 'full name'),\n 'shortname' => new external_value(PARAM_TEXT, 'program short name'),\n 'categoryid' => new external_value(PARAM_INT, 'category id'),\n 'summary' => new external_value(PARAM_RAW, 'summary'),\n 'categorysortorder' => new external_value(PARAM_INT,\n 'sort order into the category', VALUE_OPTIONAL),\n 'idnumber' => new external_value(PARAM_RAW, 'id number', VALUE_OPTIONAL),\n 'visible' => new external_value(PARAM_INT,\n '1: available to student, 0:not available', VALUE_OPTIONAL),\n 'timecreated' => new external_value(PARAM_INT,\n 'timestamp when the program have been created', VALUE_OPTIONAL),\n 'timemodified' => new external_value(PARAM_INT,\n 'timestamp when the program have been modified', VALUE_OPTIONAL),\n ), 'program'\n )\n );\n }", "title": "" }, { "docid": "73a43edb9c727041cc8486aa8054e523", "score": "0.49780017", "text": "function display_apps($pageNumber=1,$selectedApps=false,$startup=false) {\n global $communityPaths, $separateOfficial, $officialRepo, $communitySettings;\n\n $file = readJsonFile($communityPaths['community-templates-displayed']);\n $officialApplications = is_array($file['official']) ? $file['official'] : array();\n $communityApplications = is_array($file['community']) ? $file['community'] : array();\n $totalApplications = count($officialApplications) + count($communityApplications);\n $navigate = array();\n\n if ( $separateOfficial ) {\n if ( count($officialApplications) ) {\n $navigate[] = \"doesn't matter what's here -> first element gets deleted anyways\";\n $display = \"<div class='separateOfficial'>\";\n\n $logos = readJsonFile($communityPaths['logos']);\n $display .= $logos[$officialRepo] ? \"<img src='\".$logos[$officialRepo].\"' style='width:4.8rem'>&nbsp;&nbsp;\" : \"\";\n $display .= \"$officialRepo</div><br>\";\n $display .= my_display_apps($officialApplications,1,true,$selectedApps,$startup);\n }\n }\n if ( count($communityApplications) ) {\n if ( $separateOfficial && count($officialApplications) ) {\n $navigate[] = \"<a href='#COMMUNITY'>Community Supported Applications</a>\";\n $display .= \"<div class='separateOfficial' id='COMMUNITY'>Community Supported Applications</div><br>\";\n }\n $display .= my_display_apps($communityApplications,$pageNumber,false,$selectedApps,$startup);\n }\n unset($navigate[0]);\n\n if ( count($navigate) ) {\n $bookmark = \"Jump To: \".implode(\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\",$navigate);\n }\n $display .= ( $totalApplications == 0 ) ? \"<div class='ca_NoAppsFound'></div>\" : \"\";\n\n $totalApps = \"$totalApplications\";\n\n echo $bookmark;\n echo $display;\n}", "title": "" }, { "docid": "89a3b17c7ea4872d96f23a8bdc5d4f1e", "score": "0.49627617", "text": "public function getListaProgramaacademico(){\n\n\t\t$tbProgramaacademico = new TbProgramaacademico();\n\n\t\t$result = $tbProgramaacademico->resultProgramaacademico();\n\t\t\n\t\t$count = 0;\n\n\t\twhile ($arrayProg = pg_fetch_assoc($result)) {\n\t\t\t$this->arrayProgramaAcademico[$count]['proaca_codigo'] = $arrayProg['proaca_codigo'];\n\t\t\t$this->arrayProgramaAcademico[$count]['proaca_nombre'] = $arrayProg['proaca_nombre'];\n\t\t\t$count++;\n\t\t}\t\t\n\n\t\treturn $this->arrayProgramaAcademico;\t\n\n\t}", "title": "" }, { "docid": "40b04d41988d554cedaea55c4889e288", "score": "0.49569818", "text": "public function get_all_spec()\n {\n $result = $this->model->qry_assoc_spec();\n echo json_encode($result);\n }", "title": "" }, { "docid": "59a21f1b262b48d6936d09e1962469f6", "score": "0.49546066", "text": "function organism_show_classifiers() {\n\t// Make kingdom (Reich) from classifier\n\t$kingdoms['CSCF'] = 'Animals';\n\t$kingdoms['CRSF'] = 'Plants';\n\t$kingdoms['Fungus'] = 'Mushrooms';\n\t$kingdoms['Swisslichens'] = 'Lichens';\n\t$kingdoms['NISM'] = 'Mosses';\n\n\t// description text at the beginning\n\t$output['helptext'] = array(\n\t\t\t'#type' => 'markup',\n\t\t\t'#markup' => t(\n\t\t\t\t'Here you can browse all species of naturvielfalt.ch. Please select first the biological kingdom:')\n\t);\n\t\n\t// query classifier and the amount of species\n\t$classifiers = db_query(\n\t\t'SELECT\n\t oc.id AS oc_id,\n\t oc.name AS oc_name,\n\t organismcount.cnt AS organismcount_cnt\n\t FROM\n\t {organism_classification} oc\n\t JOIN (\n\t SELECT\n\t oc.prime_father_id AS prime_father_id,\n\t COUNT(ocs.id) AS cnt\n\t FROM\n\t\t\t{organism_classification_subscription} ocs\n\t JOIN {organism_classification} oc ON oc.id = ocs.organism_classification_id\n\t GROUP BY\n\t prime_father_id\n\t )\n\t AS organismcount ON organismcount.prime_father_id = oc.prime_father_id\n\t WHERE\n\t oc.prime_father_id = oc.id\n\t GROUP BY\n\t oc_id,\n\t oc_name,\n\t organismcount.cnt;');\n\n\t// create list of links\n\t$links = array();\n\tforeach ($classifiers as $classifier) {\n\t\t$classifier_title = $classifier->oc_name;\n\t\tif (isset($kingdoms[$classifier_title])) {\n\t\t\t$title = t($kingdoms[$classifier_title]);\n\t\t}\n\t\t$species = format_plural($classifier->organismcount_cnt, '1 Species', '@count Species');\n\t\t$list[$classifier_title] = array(\n\t\t\t\t'title' => '<div class=\"classifier-div\"><span class=\"classifier-title\">'.$title . '</span></br> <span class=\"classifier-amount\"> (' . $species . ') </span></div>',\n\t\t\t\t'href' => 'organism/classification/' . $classifier->oc_id\n\t\t);\n\t}\n\n\t// using drupal_get_path() and images is not working when the page is localized\n\t$path = base_path() . 'sites/all/modules/organism';\n $module_path = drupal_get_path('module', 'organism');\n\tdrupal_add_css($module_path . '/css/organism.css');\n\tdrupal_add_js($module_path . '/js/organism.js');\n\t\n\tglobal $base_url;\n\t$output['diagram'] = array(\n\t\t\t'#type' => 'markup',\n\t\t\t'#prefix' => '<div id=\"diagram-wrapper\">',\n\t\t\t'#suffix' => '</div>',\n\t\t\t'#markup' => '\n\t\t\t\t<div id=\"diagram-container\">\n\t\t\t\t\t\t <img src=\"'.$path.'/img/gesamt.png\" id=\"diagram-background\">\n\t\t\t\t\t\t <img src=\"'.$path.'/img/gesamt.png\" usemap=\"#diagram_map\" id=\"diagram-image\">\n\t\t\t\t\t\t <map name=\"diagram_map\" id=\"diagram_map\">\n\t\t\t\t\t\t\t<area shape=\"poly\" coords=\"275,10, 276,256,461,92,420,55,375,28,318,12,276,7\" href=\"'.$list['CRSF']['href'].'\" id=\"area_pflanzen\">\n\t\t\t\t\t\t\t<area shape=\"poly\" coords=\"276,257,461,94,489,132,503,165,519,199,524,242,521,288,522,288\" href=\"'.$list['Fungus']['href'].'\" id=\"area_pilze\">\n\t\t\t\t\t\t\t<area shape=\"poly\" coords=\"276,258,477,405,501,360,518,313,520,289\" href=\"'.$list['Swisslichens']['href'].'\" id=\"area_flechten\">\n\t\t\t\t\t\t\t<area shape=\"poly\" coords=\"275,258,383,483,443,442,477,405\" href=\"'.$list['NISM']['href'].'\" id=\"area_moose\">\n\t\t\t\t\t\t\t<area shape=\"poly\" coords=\"276,10,276,256,384,484,303,506,226,502,149,475,84,417,46,358,31,301,26,261,29,201,61,119,135,44,225,14,262,9,276,9\" href=\"'.$list['CSCF']['href'].'\" id=\"area_tiere\">\n\t\t\t\t\t\t </map>\n\t\t\t\t<a id=\"pflanzen-link\" href=\"'.$list['CRSF']['href'].'\"> '.$list['CRSF']['title'].'</a>\n\t\t\t\t<a id=\"pilze-link\" href=\"'.$list['Fungus']['href'].'\"> '.$list['Fungus']['title'].'</a>\n\t\t\t\t<a id=\"flechten-link\" href=\"'.$list['Swisslichens']['href'].'\"> '.$list['Swisslichens']['title'].'</a>\n\t\t\t\t<a id=\"moose-link\" href=\"'.$list['NISM']['href'].'\"> '.$list['NISM']['title'].'</a>\n\t\t\t\t<a id=\"tiere-link\" href=\"'.$list['CSCF']['href'].'\"> '.$list['CSCF']['title'].'</a>\n\t\t\t \t</div>'\n\t);\n\t\n\treturn $output;\n\n}", "title": "" }, { "docid": "e5191da3081d6af049907789ccab4c6c", "score": "0.49517912", "text": "public function data_program()\n\t{\n\t\t$data=array('res'=>$this->Paket_model->get_paket_program());\n\t\t$this->load->view('admin/template/head');\n\t\t$this->load->view('admin/template/sidebar');\n\t\t$this->load->view('admin/program', $data);\n\t\t$this->load->view('admin/template/foot');\n\t}", "title": "" }, { "docid": "a49b686e39ffeeaac56b2051e4994d02", "score": "0.49345204", "text": "public function getMinoristas() {\n\n $query = $this->db->query(\"SELECT nombre, nif, idCliente 'id' \"\n . \"FROM cliente \"\n . \"WHERE estado = 'Alta' \"\n . \"AND tipo LIKE 'Minorista'\"\n . \"ORDER BY nombre \");\n\n return $query->result_array();\n }", "title": "" }, { "docid": "d9b2d82968054ded131da1312d53ce8e", "score": "0.4933302", "text": "function getMajors($school) {\n global $db;\n \n $ret = '<div id=\"majors\">';\n \n $statement = $db->prepare(\"SELECT * FROM `schools` WHERE `id` = :id\");\n $statement->execute(array(':id' => $school));\n \n if ($schoolRow = $statement->fetch()) {\n $ret .= '<h1>' . ucwords(strtolower($schoolRow['name'])) . '</h1>';\n \n $statement = $db->prepare(\"SELECT * FROM `majors` WHERE `schoolid` = :schoolid ORDER BY `school`, `major`\");\n $statement->execute(array(':schoolid' => $school));\n \n $ret .= '<table><th>Major</th><th>Major Code</th><th>School</th> <th> Delete </th>';\n \n while ($major = $statement->fetch()) {\n $ret .= '<tr><td>' . $major['name'] . '</td>';\n $ret .= '<td>' . $major['major'] . '</td>';\n $ret .= '<td>' . $major['school'] . '</td>';\n $ret .= '<td><form method=\"POST\" action=\"/lib/form-submit-major-delete.php\"><input type=\"hidden\" name=\"schoolid\" value=\"' . $school . '\" /><input class=\"btn\" type=\"submit\" name=\"delete\" value=\"Delete Major\" /><input type=\"hidden\" name=\"id\" value=\"' . $major['id'] . '\" /></form> </td> </tr>';\n }\n \n $ret .= '</table>';\n }\n \n $ret .= '</div>';\n \n return $ret;\n }", "title": "" }, { "docid": "2e9dd8be36f4b6d9c312c0649577c8c8", "score": "0.49258864", "text": "public function get_major() { return $this->profile['major']; }", "title": "" }, { "docid": "660f865052271270b5bd5f5d00fec6b9", "score": "0.49216577", "text": "function cubic_get_user_applications() {\n\tglobal $CFG, $OUTPUT;\n\t\n\t$file = $CFG->dirroot . '/local/applications/lib.php';\n\t$html = '<div class=\"container\">';\n\t\n\tif(!@file_exists($file) ) {\n\t\t$html.= cubic_get_file_error('https://moodle.org/plugins/view.php?plugin=local_applications').'</div>';\n\t}\n\telse {\n\t\tinclude_once($file);\n\t\t\n\t\t$title = get_string('menu-applications','theme_cubic');\n\n\t\tif(!local_applications_table_exists()) {\n\t\t\t$html.= local_applications_print_table_error();\n\t\t}\n\t\telse {\n\t\t\t$applicationsList = local_applications_get_user_apps();\n\n\t\t\tif(count($applicationsList) > 0) {\n\t\t\t\tforeach($applicationsList as $application) {\n\t\t\t\t\t$html.= \n\t\t\t\t\t\t'<div class=\"application\">'.\n\t\t\t\t\t\t\t'<a href=\"'.$CFG->wwwroot.'/local/applications/view.php?id='.$application->id.'\">'.\n\t\t\t\t\t\t\t\t$application->name.\n\t\t\t\t\t\t\t\t'<img src=\"'.$application->icon.'\" />'.\n\t\t\t\t\t\t\t'</a>'.\n\t\t\t\t\t\t'</div>';\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$html.= \n\t\t\t\t\t'<div class=\"empty\">'.\n\t\t\t\t\t\tget_string('empty-applications','theme_cubic').\n\t\t\t\t\t'</div>';\n\t\t\t}\n\t\t}\n\n\t\t$html.= \n\t\t\t'</div>'.\n\t\t\t'<a href=\"'.$CFG->wwwroot.'/local/applications/\" class=\"all\">'.\n\t\t\t\tget_string('see-all','theme_cubic').' '.$title.\n\t\t\t'</a>';\n\t}\n\treturn $html;\n}", "title": "" }, { "docid": "2c5756d6208a2f40852e15008cfb50b8", "score": "0.49107152", "text": "private function getStandbyList()\n\t{\n\t\t$applications = array();\n\n\t\t$query = 'EXECUTE sp_fetch_active_company_ids';\n\t\t$mysql_db = ECash::getAppSvcDB();\n\t\t$result = $mysql_db->query($query);\n\t\t$result = $result->fetchAll();\n\t\t$company_ids = array();\n\n\t\tforeach($result as $row)\n\t\t{\n\t\t\t$company_ids[] = $row['company_id'];\n\t\t}\n\n\t\t$in_stmt = implode(',', $company_ids);\n\t\t$query = \"\n\t\t\tSELECT DISTINCT application_id, company_id\n\t\t\tFROM standby\n\t\t\tWHERE process_type = 'reschedule'\n\t\t\t\tAND company_id IN ({$in_stmt})\n\t\t\tORDER BY date_created ASC \";\n\n\t\t$result = $this->db->Query($query);\n\n\t\twhile ($row = $result->fetch(PDO::FETCH_OBJ)) \n\t\t{\n\t\t\t$applications[$row->company_id][] = $row->application_id;\n\t\t}\n\n\t\treturn $applications;\n\t}", "title": "" }, { "docid": "59119cf3c7127ffe538a87a0035d845f", "score": "0.49106815", "text": "public function load_user_major($user_id)\n {\n $this->db->select('major');\n $this->db->where('user_id', $user_id);\n return $this->db->get('education')->row('major');\n }", "title": "" }, { "docid": "02189eee213c776720c7c091f46326ea", "score": "0.48999467", "text": "public function GetAppList()\n {\n $request = new ServiceRequest($this->_configuration);\n $params = array();\n $request->setMethodParams($params);\n\n $response = $request->CallManagerService(\"rustici.application.getAppList\");\n $appData = new ApplicationData(null);\n // Return the subset of the xml starting with the top <summary>\n $appArray = $appData->ConvertToApplicationDataList($response);\n return $appArray;\n }", "title": "" }, { "docid": "854dc3cb0145d7f4bb7f56d83d1ef801", "score": "0.4896975", "text": "public function ListarPROGRAMA()\n\t{\n\t\ttry\n\t\t{\n\t\t $result= $this->modelo->Listar(\"programa\");\n \n\t\t\treturn $result;\n\t\t}\n\t\tcatch(Exception $e)\n\t\t{\n\t\t\tdie($e->getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "bc3ccf9fd4e424a65571a991de3b8c65", "score": "0.48929894", "text": "function cmclass_get_listing($sort = 'crsname', $dir = 'ASC', $startrec = 0,\n $perpage = 0, $namesearch = '', $alpha = '', $id = 0, $onlyopen=false,\n $contexts=null, $clusterid = 0, $extrafilters = array()) {\n global $CURMAN, $USER;\n\n $LIKE = $CURMAN->db->sql_compare();\n\n $select = 'SELECT cls.*, cls.starttimehour as starttimehour, cls.starttimeminute as starttimeminute, ' .\n 'cls.endtimehour as endtimehour, cls.endtimeminute as endtimeminute, crs.name as crsname, env.name as envname, ' .\n 'env.description as envdescription, clsmoodle.moodlecourseid as moodlecourseid, mcrs.fullname as moodlecourse ';\n $tables = 'FROM '.$CURMAN->db->prefix_table(CLSTABLE).' cls ';\n $join = 'JOIN ' . $CURMAN->db->prefix_table(CRSTABLE) . ' crs ' .\n 'ON crs.id = cls.courseid ' .\n 'LEFT JOIN ' . $CURMAN->db->prefix_table(ENVTABLE) . ' env ' .\n 'ON env.id = cls.environmentid ' .\n 'LEFT JOIN ' . $CURMAN->db->prefix_table(CLSMOODLETABLE) . ' clsmoodle ' .\n 'ON clsmoodle.classid = cls.id ' .\n 'LEFT JOIN ' . $CURMAN->db->prefix_table('course') . ' mcrs ' .\n 'ON clsmoodle.moodlecourseid = mcrs.id ';\n\n //class associated to a particular cluster via a track\n if (!empty($clusterid)) {\n $join .= \"JOIN {$CURMAN->db->prefix_table(CLSTRACKCLS)} clstrk\n ON clstrk.classid = cls.id\n JOIN {$CURMAN->db->prefix_table(CLSTTRKTABLE)} clsttrk\n ON clsttrk.trackid = clstrk.trackid\n AND clsttrk.clusterid = {$clusterid} \";\n }\n \n //assert that classes returned were requested by the current user using the course / class\n //request block and approved\n if (!empty($extrafilters['show_my_approved_classes'])) {\n $join .= \"JOIN {$CURMAN->db->prefix_table('block_course_request')} request\n ON cls.id = request.classid\n AND request.userid = {$USER->id} \";\n }\n\n $where = array();\n\n if (!empty($namesearch)) {\n $namesearch = trim($namesearch);\n $where[] = \"((crs.name $LIKE '%{$namesearch}%') OR (cls.idnumber $LIKE '%{$namesearch}%')) \";\n }\n\n if ($alpha) {\n $where[] = \"((crs.name $LIKE '{$alpha}%') OR (cls.idnumber $LIKE '{$alpha}%'))\";\n }\n\n if ($id) {\n $where[] = \"(crs.id = {$id})\";\n }\n\n if ($onlyopen) {\n $curtime = time();\n $where[] = \"(cls.enddate > $curtime OR NOT cls.enddate)\";\n }\n\n if ($contexts !== null) {\n $where[] = $contexts->sql_filter_for_context_level('cls.id', 'class');\n }\n\n if (!empty($where)) {\n $where = 'WHERE '. implode(' AND ', $where) .' ';\n } else {\n $where = '';\n }\n\n if ($sort) {\n if ($sort == 'starttime') {\n $sort = \"ORDER BY starttimehour $dir, starttimeminute $dir \";\n } elseif ($sort == 'endtime') {\n $sort = \"ORDER BY endtimehour $dir, endtimeminute $dir \";\n } else {\n $sort = \"ORDER BY $sort $dir \";\n }\n }\n\n if (!empty($perpage)) {\n if ($CURMAN->db->_dbconnection->databaseType == 'postgres7') {\n $limit = 'LIMIT '. $perpage .' OFFSET '. $startrec;\n } else {\n $limit = 'LIMIT '. $startrec .', '. $perpage;\n }\n } else {\n $limit = '';\n }\n\n $sql = $select.$tables.$join.$where.$sort.$limit;\n\n return $CURMAN->db->get_records_sql($sql);\n}", "title": "" }, { "docid": "cfa1d232fce03b29d90d838a8cbefa6b", "score": "0.4887063", "text": "function ViewProjects($center, $maxdir) {\n global $GLOBS;\n $hdrcols = array('dirname', 'status', 'count');\t// Columns for this type of data\n // Generate HTML header for page\n // Get list of centers doing: select distinct(project) from status;\n $html = \"<h3 align='center'>RNA Sequence Data Projects</h3>\\n\" .\n \"<center>\" . GetChooseLines() . \"<br/>\" . $GLOBS['links'] . \"</center>\\n\";\n $yearstart = 2020;\n $yearstop = 2018;\n $centers2show = array(); // Get list of centers for this query\n if ($center) { array_push($centers2show, $center); }\n else { $centers2show = $GLOBS['centers']; }\n\n // Show data for center by datayear\n $showedsomething = 'N';\n for ($datayear=$yearstart; $datayear>$yearstop; $datayear--) {\n // For each center show details from database ($rows)\n foreach ($centers2show as $centr) {\n $cid = $GLOBS['centername2id'][$centr];\n $h = ShowProjectYear($cid, $maxdir, $datayear, $GLOBS[iammgr]);\n if (! $h) { continue; }\n $html .= \"<br><div class='indent'><b>\" . strtoupper($centr) .\n \", Year $datayear</b></div>$h\\n\";\n $showedsomething = 'Y';\n }\n $html .= \"<br>\";\n if ($showedsomething == 'Y') { $html .= \"<hr width='80%' class='separator'>\\n\"; }\n }\n \n $html .= \"<div class='indent'>\\n\" . $GLOBS['statusruns'] . \"</div>\\n\";\n return $html;\n}", "title": "" }, { "docid": "776cf298089415e7e2e5cbd0f7796a75", "score": "0.48852503", "text": "function get_available_platforms() {\n global $CFG, $DB;\n\n // Getting description of master host.\n $master_host = $DB->get_record('course', array('id' => 1));\n\n // Setting available platforms.\n $aplatforms = array();\n if (@$CFG->local_vmoodle_host_source == 'vmoodle') {\n $id = 'vhostname';\n $records = $DB->get_records('local_vmoodle', array(), 'name', $id.', name');\n if (!empty($CFG->vmoodledefault)) {\n $records[] = (object) array($id => $CFG->wwwroot, 'name' => $master_host->fullname);\n }\n } else {\n $id = 'wwwroot';\n $moodleapplication = $DB->get_record('mnet_application', array('name' => 'moodle'));\n $records = $DB->get_records('mnet_host', array('deleted' => 0, 'applicationid' => $moodleapplication->id), 'name', $id.', name');\n foreach ($records as $key => $record) {\n if ($record->name == '' || $record->name == 'All Hosts')\n unset($records[$key]);\n }\n $records[] = (object) array($id => $CFG->wwwroot, 'name' => $master_host->fullname);\n }\n if ($records) {\n foreach ($records as $record) {\n $aplatforms[$record->$id] = $record->name;\n }\n asort($aplatforms);\n }\n\n return $aplatforms;\n}", "title": "" }, { "docid": "b8b98b9ce31567474643b35ffb6fe380", "score": "0.48724833", "text": "public function browse()\n {\n $majors = Major::all();\n $semesters = [1, 2, 3, 4, 5, 6, 7, 8, 9];\n return ['majors' => $majors, 'semesters' => $semesters];\n }", "title": "" }, { "docid": "da7be21ec2edce1b2f0c66594170956a", "score": "0.48672992", "text": "public function get_catalogProgramList($catalogId)\n\t{\n\t\t//\t$this->addWhere('cma.uid_catalog =' . $catalogId);\n\n\t\t//print $catalogId;\n\t\t$limit = (int) isset($params['limit']) ? $params['limit'] : 100;\n\t\t$page = (int) isset($params['page']) ? $params['page'] : 1;\n\t\t$this->setLimit($page, $limit);\n\t\t$this->setOrderBy($params['order'], 'cm.hodnota ASC');\n\n\t\t$this->setSelect(\"cm.id,cm.hodnota,(case when cma.id is not null then 1 else 0 end) as checked\");\n\t\t$this->setFrom(\"mm_catalog_program cm left join mm_catalog_program_assoc cma on cm.id=cma.program_id and cma.catalog_id =\" . $catalogId);\n\n\t\t$list = $this->getRows();\n\t\t//print $this->last_query;\n\t\treturn $list;\n\t}", "title": "" }, { "docid": "506a0e68a9bfb414fb827671fff73c43", "score": "0.48569405", "text": "function returnProgramListing($programID, $programType){\n if ($programID == 0) {\n //0 means bring back parent level programs\n if ($programType > 0) $tmpProgramFilter = \" AND programTypeID = \" . $programType;\n else $tmpProgramFilter = \"\";\n $sSQL = sprintf(\"SELECT * FROM program WHERE parentID is NULL %s ORDER BY programID\", $tmpProgramFilter);\n }\n else {\n //get subprograms of a parent\n $sSQL = sprintf(\"SELECT * FROM program WHERE parentID = %d ORDER BY programID\", $programID);\n }\n\n $result = mysql_query($sSQL);\n\n //Can't find any sub-level programs, must need ONLY one program.\n if (mysql_num_rows($result) == 0 ){\n $sSQL = sprintf(\"SELECT * FROM program WHERE programID = %d\", $programID);\n $result = mysql_query($sSQL);\n }\n\n\n return $result;\n}", "title": "" }, { "docid": "0a633da5bc5c5942fff9c57acefc3322", "score": "0.48499632", "text": "public static function Program() {\n $args = [\n 'posts_per_page' => -1,\n 'post_type' => 'page',\n 'post_status' => 'publish',\n 'meta_key' => 'api_type',\n 'meta_value' => 'program',\n 'orderby' => 'menu_order',\n 'order' => 'ASC'\n ];\n $program = \\DustPress\\Query::get_acf_posts( $args );\n $args['post_parent'] = $program[0]->ID;\n unset($args['meta_key'], $args['meta_value']);\n\n $children = \\DustPress\\Query::get_acf_posts( $args );\n foreach ( $children as &$page ) {\n map_api_images( $page->fields['api_images'] );\n }\n if ( is_object( $program[0] ) ) {\n $program[0]->Children = $children;\n }\n return $program[0];\n }", "title": "" }, { "docid": "34e4f116e7268ac447d9d27e188401fe", "score": "0.4847474", "text": "function getProgramCode()\n {\n // execute query\n $sql = \"SELECT * FROM chlorine_delivery.reference_pilots order by id\";\n return $this->processCDQueries($sql);\n }", "title": "" }, { "docid": "9b93ef002eedd09806a02c14ebc3c5cb", "score": "0.4847241", "text": "function retrieve_apps() {\n connect();\n $query = ALL_APP;\n $result = mysql_query( $query ) or die( 'Query Failed: ' .mysql_error() );\n \n echo \"<ul>\";\n\n while( $a = mysql_fetch_array( $result, MYSQL_ASSOC )){\n echo \"<li>\";\n $title_str;\n /*\n if( !strcmp( $a['name'], \"Nethack\" )){\n $title_str = \"<a href='../nethack'>Nethack</a>\";\n }\n else {*/\n $title_str = \"<a href='game_page?app=\" . $a['id'] . \"'>\". $a['name'] . \"</a>\";\n // }\n echo \"<div class='game_title'><h2>\".$title_str.\"</h2>\";\n app_user_count( $a['name'] );\n app_ach_count( $a['name'] );\n echo \"</div>\";\n /*echo \"<div class='game_achieve'>\";\n retrieve_achieves( $a['id'] );\n echo \"</div>\";\n */ \n echo \"</li>\";\n }\n\n echo \"</ul>\";\n }", "title": "" }, { "docid": "cb3fce4628d2bd782f3ee0399aa807d6", "score": "0.48444432", "text": "function get_semester_courses($map_id) {\n if (!$map_id) {\n return array();\n }\n\n $dbh = DB::connect();\n\n $q = \"SELECT c.code code, c.number number, c.title title, c.credits credits, \";\n $q.= \"m.milestone_activity milestone, m.type type\";\n $q.= \"FROM MapCourse m\";\n $q.= \"LEFT JOIN Courses c ON m.course_id = c.id\";\n $q.= \"WHERE m.map_id = \" . $map_id;\n\n $result = $dbh->query($q);\n\n if (!$result) {\n return array();\n }\n\n $courses = array();\n while ($row = $result->fetch(PDO::FETCH_ASSOC)) {\n $courses[] = $row;\n }\n\n return $courses;\n}", "title": "" }, { "docid": "0fa4d9da35f93824383eb62024f164b6", "score": "0.48439318", "text": "public function getMajor(){\n return $this->major;\n }", "title": "" }, { "docid": "3df21ef70809c1659c462f3c27973368", "score": "0.4842827", "text": "function tc_get_national_course_list(){\n\t global $wpdb;\n $courseData=$wpdb->get_results($wpdb->prepare(\"select x.course_id, course_desc from wp_wpcw_course_extras x, wp_wpcw_courses w where x.course_id = w.course_id and national_module in (1,2) order by w.course_id\",OBJECT));\n\t\t return $courseData;\n }", "title": "" }, { "docid": "75c28592b3421a989e3dc64c89d1d0c7", "score": "0.48412544", "text": "private function fetchAllApps(): array\n {\n $cteFragment = self::createRankingPriorityCteFragment();\n\n return $this->database->fetchAllAssociative(\"\n WITH p(id, priority) AS (VALUES $cteFragment)\n SELECT rank.*, app.id, name, total_reviews, positive_reviews, MIN(priority)\n FROM rank\n INNER JOIN app ON rank.app_id = app.id\n INNER JOIN p ON p.id = list_id\n GROUP BY app_id\n ORDER BY priority, rank DESC\n \");\n }", "title": "" }, { "docid": "cfcd39664199b48c876d19a99b6ab2c4", "score": "0.4838127", "text": "private function filterByMajor() {\n\n foreach ($this->orderedStudent as $key => $user) {\n $this->orderedMajor[$key] = [];\n $limit = 0;\n forEach($user as $usr) {\n if($usr->option_1 == $key && $limit < $this->getMajorLimit($key)) {\n $limit += 1;\n $this->accepted1[] = $usr;\n $this->orderedMajor[$key][] = $usr;\n } elseif($usr->option_1 == $key && $limit >= $this->getMajorLimit($key)) {\n $this->denied1[] = $usr;\n }\n }\n }\n \n // print_r($this->orderedStudent);\n foreach ($this->orderedStudent as $key => $user) {\n $limit = $this->countUserOnSelected($key);\n forEach($user as $usr) {\n if($this->findByAccepted($usr, 1)) {\n \n if($usr->option_2 == $key && $limit < $this->getMajorLimit($key)) {\n $limit += 1;\n $this->accepted2[] = $usr;\n $this->orderedMajor[$key][] = $usr;\n } elseif($usr->option_2 == $key && $limit >= $this->getMajorLimit($key)) {\n $this->denied2[] = $usr;\n }\n }\n \n }\n }\n }", "title": "" }, { "docid": "62630359890adf48616e46206a9d51f2", "score": "0.48349336", "text": "public function loadLibrary($machinename, $majorversion, $minorversion) {\n global $DB;\n\n $library = $DB->get_record('h5p_libraries', array(\n 'machinename' => $machinename,\n 'majorversion' => $majorversion,\n 'minorversion' => $minorversion\n ));\n\n if (!$library) {\n return false;\n }\n\n $librarydata = array(\n 'libraryId' => $library->id,\n 'title' => $library->title,\n 'machineName' => $library->machinename,\n 'majorVersion' => $library->majorversion,\n 'minorVersion' => $library->minorversion,\n 'patchVersion' => $library->patchversion,\n 'runnable' => $library->runnable,\n 'fullscreen' => $library->fullscreen,\n 'embedTypes' => $library->embedtypes,\n 'preloadedJs' => $library->preloadedjs,\n 'preloadedCss' => $library->preloadedcss,\n 'dropLibraryCss' => $library->droplibrarycss,\n 'semantics' => $library->semantics\n );\n\n $sql = 'SELECT hl.id, hl.machinename, hl.majorversion, hl.minorversion, hll.dependencytype\n FROM {h5p_library_dependencies} hll\n JOIN {h5p_libraries} hl ON hll.requiredlibraryid = hl.id\n WHERE hll.libraryid = :libraryid\n ORDER BY hl.id ASC';\n\n $sqlargs = array(\n 'libraryid' => $library->id\n );\n\n $dependencies = $DB->get_records_sql($sql, $sqlargs);\n\n foreach ($dependencies as $dependency) {\n $librarydata[$dependency->dependencytype . 'Dependencies'][] = array(\n 'machineName' => $dependency->machinename,\n 'majorVersion' => $dependency->majorversion,\n 'minorVersion' => $dependency->minorversion\n );\n }\n\n return $librarydata;\n }", "title": "" }, { "docid": "4c04e5dadb58dfd3585f83af528ec207", "score": "0.4826513", "text": "public function getLatestLibraryVersions(): array {\n $sql = \"SELECT hl2.id, hl2.machine_name, hl2.title, hl2.major_version, hl2.minor_version, hl2.patch_version, '' as has_icon, 0 as restricted, 1 as enabled\n FROM h5p_library hl2\n LEFT JOIN h5p_library hl1\n ON (hl1.machine_name = hl2.machine_name \n AND (hl2.major_version < hl1.major_version \n OR (hl2.major_version = hl1.major_version AND hl2.minor_version < hl1.minor_version)\n )\n )\n WHERE hl2.runnable = 1\n AND hl1.major_version is null\n AND hl2.machine_name NOT IN ('H5P.Questionnaire')\n ORDER BY hl2.title\";\n return Database::get()->queryArray($sql);\n }", "title": "" }, { "docid": "eb47f998f648160772070f0b6fe9fffc", "score": "0.48066205", "text": "public function all_satisfaction_info(){\r\n $query = \"SELECT * FROM tbl_satisfaction WHERE publication_status = 1 ORDER BY \tsatisfaction_id DESC LIMIT 4\";\r\n if(mysqli_query($this->db_connect, $query)){\r\n $query_result = mysqli_query($this->db_connect, $query);\r\n return $query_result;\r\n }else{\r\n die(\"Query Problem! \".mysqli_error($this->db_connect));\r\n }\r\n }", "title": "" }, { "docid": "f6363332c962e0d50c3015ee174afeee", "score": "0.48065147", "text": "function read()\n {\n $this->business_id = htmlspecialchars(strip_tags($this->business_id));\n $this->machine_id = htmlspecialchars(strip_tags($this->machine_id));\n \n // select all the programs from a machine\n $query = \"SELECT Description, Hot_Fix_Id, Installed_On, Installed_By\n FROM \". $this->table_name .\"\n WHERE\n Business_ID = '\". $this->business_id .\"'\n AND\n Machine_ID = '\". $this->machine_id .\"'\n ORDER BY Installed_On\";\n\n // prepare that statement\n $stmt = $this->conn->prepare($query);\n \n $stmt->execute();\n \n return $stmt;\n }", "title": "" }, { "docid": "07af29cf3f2b42eae0ced151a61299bf", "score": "0.4797596", "text": "public function index(string $major)\n {\n $swVersions = swVersionHelper::GetVersions(null, $major);\n\n return new swVersionCollection($swVersions);\n }", "title": "" }, { "docid": "e95848c894d43ce21fc120f3ecd9c63f", "score": "0.4791697", "text": "public function index()\n {\n $lessons = Lesson::with(['course', 'level'])->orderBy('created_at', config('define.order_by_desc'))->paginate(config('define.page_site'));\n return $lessons;\n }", "title": "" }, { "docid": "851289f5f392e3f2acffe2a97d4f6350", "score": "0.47863016", "text": "public function pageInit()\n {\n $select_data = $this->db->runQuery(\"SELECT d.id AS DeveloperID, CONCAT(d.first_name, ' ', d.last_name) AS DeveloperName, \nGROUP_CONCAT(s.name SEPARATOR ', ') AS Skills, \nCOUNT(s.id) AS SkillsCount,\nGROUP_CONCAT(ds.proficiency) AS Proficiencies,\nGROUP_CONCAT(ds.note SEPARATOR '---') AS Notes\nFROM developers d\nLEFT JOIN developers_skills ds ON d.id = ds.developer_id\nLEFT JOIN skills s ON ds.skill_id = s.id\nGROUP BY DeveloperID\nORDER BY DeveloperName ASC\");\n\n $data = $this->db->getQueryRows($select_data);\n $data['group_by'] = 'developers';\n return $data;\n }", "title": "" }, { "docid": "1dde1af4aab647388372f725a821db24", "score": "0.47816503", "text": "public function programs()\n {\n return $this->belongsToMany('App\\Program', 'program_artist')\n ->orderBy('id', 'desc');\n }", "title": "" }, { "docid": "d69f520f01db2733b4ec684db4feda73", "score": "0.47757682", "text": "public function run()\n {\n DB::table('majors_list')->insert([\n 'major' => 'Computer Science',\n 'userEmail' => 'james@dukes.jmu.edu',\n 'minor' => 1\n ]);\n DB::table('majors_list')->insert([\n 'major' => 'Finance',\n 'userEmail' => 'james@dukes.jmu.edu',\n 'minor' => 0\n ]);\n DB::table('majors_list')->insert([\n 'major' => 'Accounting',\n 'userEmail' => 'smith@dukes.jmu.edu',\n 'minor' => 0\n ]);\n DB::table('majors_list')->insert([\n 'major' => 'History',\n 'userEmail' => 'moon@dukes.jmu.edu',\n 'minor' => 0\n ]);\n DB::table('majors_list')->insert([\n 'major' => 'Computer Science',\n 'userEmail' => 'tom@uva.edu',\n 'minor' => 0\n ]);\n DB::table('majors_list')->insert([\n 'major' => 'Accounting',\n 'userEmail' => 'jim@vtech.edu',\n 'minor' => 0\n ]);\n }", "title": "" }, { "docid": "afa4607912672c5db6f90bb5210b5218", "score": "0.47736087", "text": "function readall($act) {\n if ($act) {\n $query = \"SELECT * FROM \" . $this->table_name . \" WHERE major_status = 1 ORDER BY major_id\";\n } else {\n $query = \"SELECT * FROM \" . $this->table_name . \" ORDER BY major_id\";\n }\n $result = mysqli_query($this->conn, $query);\n return $result;\n }", "title": "" }, { "docid": "b2d338f8e1369c750868de31b2d62f1e", "score": "0.47707352", "text": "function codaserver_show_applications ($resource_identifier, $group_name = null, $where_clause = null, $order_by_clause = null) {\r\n\treturn codaserver_query($resource_identifier, 'SHOW APPLICATIONS '.(!empty($group_name) ? ' IN GROUP '.$group_name : '').(!empty($where_clause) ? ' WHERE '.$where_clause : '').(!empty($order_by_clause) ? ' ORDER BY '.$order_by_clause : ''));\r\n}", "title": "" }, { "docid": "101f4360f8685667cae9d1368427dcfb", "score": "0.47656572", "text": "public function getPrograms($page = 1, $limit = 4, $posts = false, $order = false)\n {\n try {\n return $this->program_service->getUserPrograms($page, $limit, $posts, $order);\n } catch (ProgramNotFoundException $e) {\n return ['status' => false, 'message' => trans(\"dashboard.$this->site.no_channels\")];\n } catch (NoProgramAssignedException $e) {\n return ['status' => false, 'message' => trans(\"dashboard.$this->site.no_channels\")];\n } catch (RelationNotFoundException $e) {\n return ['status' => false, 'message' => trans(\"dashboard.$this->site.no_channels\")];\n }\n }", "title": "" }, { "docid": "df9ce185e06b6e2337ba815302a61cfb", "score": "0.4760193", "text": "function semester_load($semid) {\n\tglobal $db;\n\t$semesters = $db->array_load('SEMESTER','Semester_ID',$semid);\n\tsort($semesters);\n\treturn isset($semesters[0]) ? $semesters[0] : null;\n}", "title": "" }, { "docid": "d39c341d70cc96991abcad305802cae1", "score": "0.4755096", "text": "public function getWorks() \n\t{\n\t\t$data = $this->api_model->getArtistListData('4','tbl_art_gallery','4','Home');\n\t\tif($data){\n\t\t\t$this->apiResponse('success', 200,$data);\n\t\t}else{\n\t\t\t$this->apiResponse('No records found.', 404);\n\t\t}\n\t}", "title": "" }, { "docid": "bd2dd89fb181e4ec004a437df236b591", "score": "0.47497225", "text": "public function getProgram();", "title": "" }, { "docid": "35ef452c1bf95e968051e310a74d30b9", "score": "0.47473562", "text": "public function showAllDefault()\n {\n\n $programas = Programa::where('usuario_Id','=',null)->get();\n $programas->each(function($programa) \n {\n $programa->ejercicios;\n $programa->categorias;\n });\n\n return $programas;\n\n }", "title": "" }, { "docid": "02eb16d133c8a0b136385fecc82667bb", "score": "0.4737532", "text": "public function apiGetCourses()\n {\n try {\n if (Auth::user()->isDepartmentManager()) {\n $programs = json_encode(Auth::user()->manager->getMyDepartment());\n return response($programs, 200);\n } else if (Auth::user()->hasRole('شؤون المتدربين')) {\n $programs = json_encode(Program::with(\"departments.majors.courses\")->get());\n return response($programs, 200);\n }\n } catch (QueryException $e) {\n Log::error($e);\n return response(['message' => 'حدث خطأ غير معروف تعذر جلب البيانات'], 500);\n }\n }", "title": "" }, { "docid": "e9b19ad6cd940abb6903b87dbc0cf8ed", "score": "0.47348425", "text": "public function index($app)\n\t{\n\t\t$data['list'] = $this->repo->listAvailData();\n\n\t\treturn $app->showMain($data);\n\t}", "title": "" }, { "docid": "3ce1999f8313263a55f4c0a4a6d107fc", "score": "0.472691", "text": "public function index()\n\t{\n\t\tif(!$this->permission->has_permission(\"specialization_viewall\")){\n\t\t\techo \"No permissions\";\n\t\t\treturn;\n\t\t}\n\n\t\t// Get all specialization from db\n\t\t$specialization = $this->SpecializationModel->GetAll();\n\n\t\t// Define data array\n\t\t$data = array(\n\t\t\t\"specialization_list\" => $specialization\n\t\t);\n\n\t\t// Load specialization view\n\t\t$this->layout->view('manage_details/specialization/specialization',$data);\n\t}", "title": "" }, { "docid": "ecc73fba61d7f08bd87e21823be8d08d", "score": "0.4708023", "text": "public function listar()\n\t{\n\t\t$sql = \"SELECT * FROM programa\";\n\t\treturn ejecutarConsulta($sql);\n\t}", "title": "" }, { "docid": "2a1dea6df4aa67b1ad28ee9dd21c8153", "score": "0.47067916", "text": "public function indexAction() {\n $semesterId = $this->getSelectedSemesterId();\n \n $courses = $this->getManager()->getAllHydratedCourses($semesterId);\n \n return Array('courses' => $courses);\n }", "title": "" }, { "docid": "fd33fa971107cb9e1a43581205d71923", "score": "0.470023", "text": "public static function get_program_returns() {\n return new external_single_structure(array(\n 'id' => new external_value(PARAM_INT, 'Program ID'),\n 'shortname' => new external_value(PARAM_TEXT, 'short name'),\n 'fullname' => new external_value(PARAM_TEXT, 'full name'),\n 'summary' => new external_value(PARAM_RAW, 'summary'),\n 'endnote' => new external_value(PARAM_RAW, 'endnote'),\n 'startdate' => new external_value(PARAM_TEXT, 'start date'),\n 'duedate' => new external_value(PARAM_TEXT, 'due date'),\n 'enrolled' => new external_value(PARAM_BOOL, 'enrolled'),\n 'progress' => new external_value(PARAM_INT, 'progress'),\n 'sets' => new external_multiple_structure(new external_single_structure(array(\n 'id' => new external_value(PARAM_INT, 'Set ID'),\n 'label' => new external_value(PARAM_TEXT, 'label'),\n 'completiontype' => new external_value(PARAM_TEXT, 'completion type'),\n 'iscomplete' => new external_value(PARAM_BOOL, 'is complete'),\n 'courses' => new external_multiple_structure(new external_single_structure(array(\n 'id' => new external_value(PARAM_INT, 'Course ID'),\n 'shortname' => new external_value(PARAM_TEXT, 'short name'),\n 'fullname' => new external_value(PARAM_TEXT, 'full name'),\n 'status' => new external_value(PARAM_TEXT, 'status')\n )))\n )))\n ));\n }", "title": "" }, { "docid": "512b59ac3b5918df8ea38ef58cd301a3", "score": "0.46938154", "text": "public function get_all(){\n\t\t//$member_id = $this->os->session->get_member_id();\n\t\t//$group_id = $this->os->session->get_group_id();\n $member_id = Session::get('member_id');\n\t\t $group_id = Session::get('group_id');\n\t\t \t\t\n\t\tif($member_id != \"\" && $group_id != \"\"){\n\t\t\t// get system default\t\t\t\n\t\t\t$l_default = $this->get(\"0\", \"0\");\n\t\t\t\n\t\t\t// get member preferences\n\t\t\t$l_member = $this->get($member_id, $group_id);\n\t\t}\n\t\t\n\t\t// overwrite system default launchers with member preference\n\t\tif(count($l_member) > 0){\n\t\t\t$launchers = $this->os->overwrite_assoc_array($l_default, $l_member);\n\t\t}else{\n\t\t\t$launchers = $l_default;\n\t\t}\n\t\t\n\t\treturn json_encode($launchers);\n\t}", "title": "" }, { "docid": "60d3c23ef462cb7e80f1f48c931d595c", "score": "0.46886328", "text": "private function vl_par7_100()\n\t\t{\t\n\t\t\t\n\t\t\tif($this->get_request_method() != \"GET\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\n\t\t\t\n\t\t\t$result=vl_par7_100();\n\t\t\t$this->response($this->json($result), 200);\n\t\t\t$this->response('',204);\t\n\t\t}", "title": "" }, { "docid": "98cd15ac4904efb446f0a2f9875288b6", "score": "0.46873072", "text": "function subject_list_from_course_and_semester($course, $semester) {\n $subjects = $this->Subject_manager_model->get_many_by( array(\n 'sm_course_id' => $course,\n 'sm_sem_id' => $semester\n ));\n\n echo json_encode($subjects);\n }", "title": "" }, { "docid": "faf8da635350fc48def6418e986ebcea", "score": "0.46862715", "text": "static function get_courses_simple($conn, $minSems = 1){\n $courses = array();\n $cmd = $conn->prepare(\"SELECT code, name, count(code) as c FROM courses GROUP BY code, name HAVING c >= ? ORDER BY code ASC;\");\n $cmd->bind_param(\"i\", $minSems);\n\n $cmd->execute();\n $result = $cmd->get_result();\n while($result && $row = $result->fetch_assoc()){\n array_push($courses, new Course($row[\"code\"], $row[\"name\"]));\n }\n return $courses;\n }", "title": "" }, { "docid": "b1ed54d2773e97d61f99531837fc3773", "score": "0.4683445", "text": "function my_display_apps($file,$pageNumber=1,$officialFlag=false,$selectedApps=false,$startup=false) {\n global $communityPaths, $communitySettings, $plugin, $displayDeprecated, $sortOrder;\n\n $viewMode = \"detail\";\n\n $info = getRunningContainers();\n $skin = readJsonFile($communityPaths['defaultSkin']);\n\n if ( ! $selectedApps ) {\n $selectedApps = array();\n }\n\n if ( ! $communitySettings['dockerRunning'] && ! $communitySettings['NoInstalls']) {\n $displayHeader = \"<script>$('.dockerDisabled').show();</script>\";\n }\n\n $pinnedApps = readJsonFile($communityPaths['pinned']);\n $iconSize = $communitySettings['iconSize'];\n $checkedOffApps = arrayEntriesToObject(@array_merge(@array_values($selectedApps['docker']),@array_values($selectedApps['plugin'])));\n if ( filter_var($startup,FILTER_VALIDATE_BOOLEAN) ) {\n $sortOrder['sortBy'] = \"noSort\";\n }\n if ( $sortOrder['sortBy'] != \"noSort\" ) {\n if ( $sortOrder['sortBy'] == \"Name\" ) $sortOrder['sortBy'] = \"SortName\";\n usort($file,\"mySort\");\n }\n\n if ( ! $officialFlag ) {\n $displayHeader .= getPageNavigation($pageNumber,count($file),false).\"<br>\";\n }\n\n $columnNumber = 0;\n $appCount = 0;\n $startingApp = $officialFlag ? 1 : ($pageNumber -1) * $communitySettings['maxPerPage'] + 1;\n $startingAppCounter = 0;\n\n $displayedTemplates = array();\n foreach ($file as $template) {\n if ( $template['Blacklist'] && ! $template['NoInstall'] ) {\n continue;\n }\n $startingAppCounter++;\n if ( $startingAppCounter < $startingApp ) {\n continue;\n }\n $displayedTemplates[] = $template;\n }\n\n $ct .= $skin[$viewMode]['header'];\n\t$iconClass = \"displayIcon\";\n\n\t# Create entries for skins. Note that MANY entries are not used in the current skins\n foreach ($displayedTemplates as $template) {\n $displayTemplate = $skin[$viewMode]['template'];\n\n $name = $template['SortName'];\n $appName = str_replace(\" \",\"\",$template['SortName']);\n $ID = $template['ID'];\n $template['ModeratorComment'] .= $template['CAComment'];\n $selected = $info[$name]['template'];\n $tmpRepo = strpos($template['Repository'],\":\") ? $template['Repository'] : \"{$template['Repository']}:latest\";\n $selected = $selected ? ($tmpRepo == $info[$name]['repository']) : false;\n $selected = $template['Uninstall'] ? true : $selected;\n\n $appType = $template['Plugin'] ? \"plugin\" : \"docker\";\n $previousAppName = $template['Plugin'] ? $template['PluginURL'] : $template['Name'];\n $checked = $checkedOffApps[$previousAppName] ? \"checked\" : \"\";\n\n $template['Category'] = categoryList($template['Category']);\n\n $RepoName = ( $template['Private'] == \"true\" ) ? $template['RepoName'].\"<font color=red> (Private)</font>\" : $template['RepoName'];\n if ( ! $template['DonateText'] ) {\n $template['DonateText'] = \"Donate To Author\";\n }\n\t\t$template['display_Private'] = ( $template['Private'] == \"true\" ) ? \"<span class='ca_tooltip ca_private' title='Private (dockerHub Conversion)'></span>\" : \"\";\n $template['display_DonateLink'] = $template['DonateLink'] ? \"<a class='ca_tooltip donateLink' href='\".$template['DonateLink'].\"' target='_blank' title='\".$template['DonateText'].\"'>Donate To Author</a>\" : \"\";\n $template['display_DonateImage'] = $template['DonateLink'] ? \"<a class='ca_tooltip donateLink donate' href='\".$template['DonateLink'].\"' target='_blank' title='\".$template['DonateText'].\"'>Donate</a>\" : \"\";\n\n $template['display_Project'] = $template['Project'] ? \"<a class='ca_tooltip projectLink' target='_blank' title='Click to go the the Project Home Page' href='\".$template['Project'].\"'></a>\" : \"\";\n $template['display_faProject'] = $template['Project'] ? \"<a class='ca_tooltip ca_fa-project appIcons' target='_blank' href='{$template['Project']}' title='Go to the project page'></a>\" : \"\";\n $template['display_Support'] = $template['Support'] ? \"<a class='ca_tooltip supportLink' href='\".$template['Support'].\"' target='_blank' title='Click to go to the support thread'></a>\" : \"\";\n $template['display_faSupport'] = $template['Support'] ? \"<a class='ca_tooltip ca_fa-support appIcons' href='{$template['Support']}' target='_blank' title='Support Thread'></a>\" : \"\";\n\n $template['display_webPage'] = $template['WebPageURL'] ? \"<a class='ca_tooltip webLink' title='Click to go to {$template['SortAuthor']}&#39;s web page' href='\".$template['WebPageURL'].\"' target='_blank'></a>\" : \"\";\n\n $template['display_ModeratorComment'] .= $template['ModeratorComment'] ? \"</span></strong><font color='purple'>\".$template['ModeratorComment'].\"</font>\" : \"\";\n $tempLogo = $template['Logo'] ? \"<img src='\".$template['Logo'].\"' height=2.0rem;>\" : \"\";\n $template['display_Repository'] = \"<span class='ca_repository'>$RepoName $tempLogo</span>\";\n $template['display_Stars'] = $template['stars'] ? \"<i class='fa fa-star dockerHubStar' aria-hidden='true'></i> <strong>\".$template['stars'].\"</strong>\" : \"\";\n $template['display_Downloads'] = $template['downloads'] ? \"<div class='ca_center'>\".number_format($template['downloads']).\"</div>\" : \"<div class='ca_center'>Not Available</div>\";\n\n if ( $pinnedApps[$template['Repository']] ) {\n $pinned = \"pinned\";\n $pinnedTitle = \"Click to unpin this application\";\n } else {\n $pinned = \"unpinned\";\n $pinnedTitle = \"Click to pin this application\";\n }\n $template['display_pinButton'] = \"<span class='ca_tooltip $pinned' title='$pinnedTitle' onclick='pinApp(this,&quot;\".$template['Repository'].\"&quot;);'></span>\";\n if ($template['Blacklist']) {\n unset($template['display_pinButton']);\n }\n if ( $template['Uninstall'] ) {\n $template['display_Uninstall'] = \"<a class='ca_tooltip ca_fa-delete' title='Uninstall Application' \";\n $template['display_Uninstall'] .= ( $template['Plugin'] ) ? \"onclick='uninstallApp(&quot;\".$template['MyPath'].\"&quot;,&quot;\".$template['Name'].\"&quot;);'>\" : \"onclick='uninstallDocker(&quot;\".$template['MyPath'].\"&quot;,&quot;\".$template['Name'].\"&quot;);'>\";\n $template['display_Uninstall'] .= \"</a>\";\n } else {\n if ( $template['Private'] == \"true\" ) {\n $template['display_Uninstall'] = \"<a class='ca_tooltip ca_fa-delete' title='Remove Private Application' onclick='deletePrivateApp(&quot;{$template['Path']}&quot;,&quot;{$template['SortName']}&quot;,&quot;{$template['SortAuthor']}&quot;);'></a>\";\n }\n }\n $template['display_removable'] = $template['Removable'] && ! $selected ? \"<a class='ca_tooltip ca_fa-delete' title='Remove Application From List' onclick='removeApp(&quot;\".$template['MyPath'].\"&quot;,&quot;\".$template['Name'].\"&quot;);'></a>\" : \"\";\n if ( $template['display_Uninstall'] && $template['display_removable'] ) {\n unset($template['display_Uninstall']); # prevent previously installed private apps from having 2 x's in previous apps section\n }\n\n $template['display_humanDate'] = date(\"F j, Y\",$template['Date']);\n $UpdatedClassType = $template['BrandNewApp'] ? \"ca_dateAdded\" : \"ca_dateUpdated\";\n $template['display_dateUpdated'] = ($template['Date'] && $template['NewApp'] ) ? \"<span class='$UpdatedClassType'><span class='ca_dateUpdatedDate'>{$template['display_humanDate']}</span></span>\" : \"\";\n $template['display_multi_install'] = ($template['Removable']) ? \"<input class='ca_multiselect ca_tooltip' title='Check-off to select multiple reinstalls' type='checkbox' data-name='$previousAppName' data-type='$appType' $checked>\" : \"\";\n if (! $communitySettings['dockerRunning'] && ! $template['Plugin']) {\n unset($template['display_multi_install']);\n }\n if ( $template['Plugin'] ) {\n $template['UpdateAvailable'] = checkPluginUpdate($template['PluginURL']);\n }\n if ( $template['UpdateAvailable'] ) {\n $template['display_UpdateAvailable'] = $template['Plugin'] ? \"<br><div class='ca_center'><font color='red'><span class='ca_bold'>Update Available. Click <a onclick='installPLGupdate(&quot;\".basename($template['MyPath']).\"&quot;,&quot;\".$template['Name'].\"&quot;);' style='cursor:pointer'>Here</a> to Install</span></div></font>\" : \"<br><div class='ca_center'><font color='red'><span class='ca_bold'>Update Available. Click <a href='Docker'>Here</a> to install</span></font></div>\";\n }\n if ( ! $template['NoInstall'] && ! $communitySettings['NoInstalls'] ){ # certain \"special\" categories (blacklist, deprecated, etc) don't allow the installation etc icons\n if ( $template['Plugin'] ) {\n $pluginName = basename($template['PluginURL']);\n if ( checkInstalledPlugin($template) ) {\n $pluginSettings = $pluginName == \"community.applications.plg\" ? \"ca_settings\" : plugin(\"launch\",\"/var/log/plugins/$pluginName\");\n $tmpVar = $pluginSettings ? \"\" : \" disabled \";\n $template['display_pluginSettingsIcon'] = $pluginSettings ? \"<a class='ca_tooltip ca_fa-pluginSettings appIcons' title='Click to go to the plugin settings' href='$pluginSettings'></a>\" : \"\";\n } else {\n $buttonTitle = $template['MyPath'] ? \"Reinstall Plugin\" : \"Install Plugin\";\n $template['display_pluginInstallIcon'] = \"<a style='cursor:pointer' class='ca_tooltip ca_fa-install appIcons' title='Click to install this plugin' onclick=installPlugin('\".$template['PluginURL'].\"');></a>\";\n }\n } else {\n if ( $communitySettings['dockerRunning'] ) {\n if ( $selected ) {\n $template['display_dockerDefaultIcon'] = \"<a class='ca_tooltip ca_fa-install appIcons' title='Click to reinstall the application using default values' href='/Apps/AddContainer?xmlTemplate=default:\".addslashes($template['Path']).\"' target='_self'></a>\";\n $template['display_dockerDefaultIcon'] = $template['BranchID'] ? \"<a class='ca_tooltip ca_fa-install appIcons' type='button' style='margin:0px' title='Click to reinstall the application using default values' onclick='displayTags(&quot;$ID&quot;);'></a>\" : $template['display_dockerDefaultIcon'];\n $template['display_dockerEditIcon'] = \"<a class='ca_tooltip appIcons ca_fa-edit' title='Click to edit the application values' href='/Apps/UpdateContainer?xmlTemplate=edit:\".addslashes($info[$name]['template']).\"' target='_self'></a>\";\n if ( $info[$name]['url'] && $info[$name]['running'] ) {\n $template['dockerWebIcon'] = \"<a class='ca_tooltip appIcons ca_fa-globe' href='{$info[$name]['url']}' target='_blank' title='Click To Go To The App&#39;s UI'></a>\";\n }\n } else {\n if ( $template['MyPath'] ) {\n $template['display_dockerReinstallIcon'] = \"<a class='ca_tooltip ca_fa-install appIcons' title='Click to reinstall' href='/Apps/UpdateContainer?xmlTemplate=user:\".addslashes($template['MyPath']).\"' target='_self'></a>\";\n } else {\n $template['display_dockerInstallIcon'] = \"<a class='ca_tooltip ca_fa-install appIcons' title='Click to install' href='Apps/AddContainer?xmlTemplate=default:\".addslashes($template['Path']).\"' target='_self'></a>\";\n $template['display_dockerInstallIcon'] = $template['BranchID'] ? \"<a style='cursor:pointer' class='ca_tooltip ca_fa-install appIcons' title='Click to install the application' onclick='displayTags(&quot;$ID&quot;);'></a>\" : $template['display_dockerInstallIcon'];\n }\n }\n }\n }\n } else {\n $specialCategoryComment = $template['NoInstall'];\n }\n\t\t$warningColor = \"warning-white\";\n if ( $template['Beta'] ) {\n $template['display_compatible'] .= \"This application has been marked as being <span class='ca_italic'>Beta</span>.\";\n if (! $template['Blacklist'] && ! $template['Deprecated'] ) {\n $template['display_compatible'] .= \"This does NOT neccessarily mean that there will be issues.<br>\";\n } else {\n $template['display_compatible'] .= \"<br>\";\n }\n }\n if ( $template['Deprecated'] ) {\n $template['display_compatible'] .= \"This application / template has been deprecated.<br>\";\n\t\t\t$warningColor = \"warning-yellow\";\n }\n if ( ! $template['Compatible'] && ! $template['UnknownCompatible'] ) {\n $template['display_compatible'] .= \"NOTE: This application is listed as being NOT compatible with your version of unRaid<br>\";\n $template['display_compatibleShort'] = \"Incompatible\";\n\t\t\t$warningColor = \"warning-red\";\n }\n if ( $template['Blacklist'] ) {\n $template['display_compatible'] .= \"This application / template has been blacklisted.<br>\";\n\t\t\t$warningColor = \"warning-red\";\n }\n\n\t\tif ( $template['CAComment'] || $template['ModeratorComment'] || $template['Deprecated'] || ! $template['Compatible'] || $template['Blacklist'] || $template['Beta']) {\n\t\t\t$template['display_warning-text'] = trim(\"{$template['CAComment']}{$template['ModeratorComment']}<br>{$template['display_compatible']}\");\n\t\t}\n $template['display_faWarning'] = $template['display_warning-text'] ? \"<span class='ca_tooltip-warning ca_fa-warning appIcons $warningColor' title='\".htmlspecialchars($template['display_warning-text'],ENT_COMPAT | ENT_QUOTES).\"'></span>\" : \"\";\n\n $template['display_author'] = \"<a class='ca_tooltip ca_author' onclick='doSearch(false,this.innerText);' title='Search for more applications from {$template['SortAuthor']}'>\".$template['Author'].\"</a>\";\n $displayIcon = $template['Icon'];\n $displayIcon = $displayIcon ? $displayIcon : \"/plugins/dynamix.docker.manager/images/question.png\";\n $template['display_iconSmall'] = \"<a onclick='showDesc(\".$template['ID'].\",&#39;\".$name.\"&#39;);' style='cursor:pointer'><img class='ca_appPopup $iconClass' data-appNumber='$ID' data-appPath='{$template['Path']}' src='\".$displayIcon.\"'></a>\";\n $template['display_iconSelectable'] = \"<img class='$iconClass' src='$displayIcon'>\";\n $template['display_infoIcon'] = \"<a class='ca_appPopup ca_tooltip appIcons ca_fa-info' title='Click for more information' data-appNumber='$ID' data-appPath='{$template['Path']}' data-appName='{$template['Name']}' style='cursor:pointer'></a>\";\n if ( isset($ID) ) {\n $template['display_iconClickable'] = \"<a class='ca_appPopup' data-appNumber='$ID' data-appPath='{$template['Path']}'>\".$template['display_iconSelectable'].\"</a>\";\n $template['display_iconSmall'] = \"<a class='ca_appPopup' onclick='showDesc(\".$template['ID'].\",&#39;\".$name.\"&#39;);'><img class='ca_appPopup $iconClass' data-appNumber='$ID' data-appPath='{$template['Path']}' src='\".$displayIcon.\"'></a>\";\n $template['display_iconOnly'] = \"<img class='$iconClass'src='\".$displayIcon.\"'></img>\";\n } else {\n $template['display_iconClickable'] = $template['display_iconSelectable'];\n $template['display_iconSmall'] = \"<img src='\".$displayIcon.\"' class='$iconClass'>\";\n $template['display_iconOnly'] = $template['display_iconSmall'];\n }\n if ( $template['IconFA'] ) {\n $displayIcon = $template['IconFA'] ?: $template['Icon'];\n $displayIconClass = startsWith($displayIcon,\"icon-\") ? $displayIcon : \"fa fa-$displayIcon\";\n $template['display_iconSmall'] = \"<a class='ca_appPopup' onclick='showDesc(\".$template['ID'].\",&#39;\".$name.\"&#39;);'><div class='ca_center'><i class='ca_appPopup $displayIconClass $iconClass' data-appNumber='$ID' data-appPath='{$template['Path']}'></i></div></a>\";\n $template['display_iconSelectable'] = \"<div class='ca_center'><i class='$displayIconClass $iconClass'></i></div>\";\n if ( isset($ID) ) {\n $template['display_iconClickable'] = \"<a class='ca_appPopup' data-appNumber='$ID' data-appPath='{$template['Path']}' style='cursor:pointer' >\".$template['display_iconSelectable'].\"</a>\";\n $template['display_iconSmall'] = \"<a class='ca_appPopup' onclick='showDesc(\".$template['ID'].\",&#39;\".$name.\"&#39;);'><div class='ca_center'><i class='fa fa-$displayIcon ca_appPopup $iconClass' data-appNumber='$ID' data-appPath='{$template['Path']}'></i></div></a>\";\n $template['display_iconOnly'] = \"<div class='ca_center'><i class='fa fa-$displayIcon $iconClass'></i></div>\";\n } else {\n $template['display_iconClickable'] = $template['display_iconSelectable'];\n $template['display_iconSmall'] = \"<div class='ca_center'><i class='$displayIconClass $iconClass'></i></div>\";\n $template['display_iconOnly'] = $template['display_iconSmall'];\n }\n }\n\t\t\n\t\tif ( strlen($template['Description']) > 240 ) {\n\t\t\t$template['Description'] = substr($template['Description'],0,240).\" ...\";\n\t\t}\n \n $template['display_dockerName'] = ( $communitySettings['dockerSearch'] == \"yes\" && ! $template['Plugin'] ) ? \"<a class='ca_tooltip ca_applicationName' data-appNumber='$ID' style='cursor:pointer' onclick='mySearch(this.innerText);' title='Search dockerHub for similar containers'>\".$template['Name'].\"</a>\" : \"<span class='ca_applicationName'>{$template['Name']}</span>\";\n $template['Category'] = ($template['Category'] == \"UNCATEGORIZED\") ? \"Uncategorized\" : $template['Category'];\n\n if ( ( $template['Beta'] == \"true\" ) ) {\n $template['display_dockerBeta'] .= \"<span class='ca_tooltip displayBeta' title='Beta Container &#13;See support forum for potential issues'>(Beta)</span>\";\n }\n# Entries created. Now display it\n $ct .= vsprintf($displayTemplate,toNumericArray($template));\n $count++;\n if ( ! $officialFlag && ($count == $communitySettings['maxPerPage']) ) {\n break;\n }\n }\n $ct .= vsprintf($skin[$viewMode]['footer'],$templateFormatArray);\n if ( ! $officialFlag ) {\n $ct .= getPageNavigation($pageNumber,count($file),false,false).\"<br><br><br>\";\n }\n if ( $communitySettings['dockerSearch'] != \"yes\" ) {\n $ct .= \"<script>$('.dockerSearch').hide();</script>\";\n }\n\n if ( $specialCategoryComment ) {\n $displayHeader .= \"<span class='specialCategory'><div class='ca_center'>This display is informational <span class='ca_italic'>ONLY</span>. Installations, edits, etc are not possible on this screen, and you must navigate to the appropriate settings and section / category</div><br>\";\n $displayHeader .= \"<div class='ca_center'>$specialCategoryComment</div></span>\";\n }\n return \"$displayHeader$ct\";\n}", "title": "" }, { "docid": "4005c14735c0bac1f3dce3d28804c650", "score": "0.468127", "text": "public function getAppVersion() {\n\t\t$appVersion = array();\n\t\n\t/*\tif($result = $this->db->query(sprintf('\n\t\t\tSELECT *\n\t\t\tFROM `%1$s`.`version`\n\t\t\tWHERE `system` = \"%2$s\"\n\t\t\tORDER BY `version`.`timestamp` DESC\n\t\t\tLIMIT 1\n\t\t',\n\t\t\tDB_PREFIX.'core',\n\t\t\t$this->db->escape_string($this->platform)\n\t\t))) {\n\t\t\twhile($row = $result->fetch_object()) {\n\t\t\n\t\t\t\t$appVersion[] = $row;\n\t\t\t}\n\t\t\t$result->close();\n\t\t}\n\t*/\t\n\t\treturn $appVersion;\n\t}", "title": "" }, { "docid": "23907d44f5fff14f6940d5f6aa927bb6", "score": "0.46780428", "text": "public function get_catalogProgramList2($catalogId)\n\t{\n\n\t\t$limit = (int) isset($params['limit']) ? $params['limit'] : 100;\n\t\t$page = (int) isset($params['page']) ? $params['page'] : 1;\n\t\t$this->setLimit($page, $limit);\n\t\t$this->setOrderBy($params['order'], 'cma.uid ASC');\n\t\t$this->addWhere(\"cma.uid_catalog =\" . $catalogId);\n\t\t$this->setSelect(\"cma.*,cm.*\");\n\t\t$this->setFrom(\"mm_catalog_program_assoc cma left join mm_catalog_program cm on cm.uid=cma.uid_program\");\n\n\t\t$list = $this->getRows();\n\t\t//print \"tudy\";\n\t//\tprint $this->last_query;\n\t//\tprint $this->getWhere();\n\n\t\treturn $list;\n\t}", "title": "" }, { "docid": "f63f4b0f8332a3a5a07d61f1e02654ab", "score": "0.46737692", "text": "function CLCFG_listHSReleases($selName,$first)\n{\n\treturn(CLCFG_listHSReleasesGeneric($selName,$first,\"HS\"));\n}", "title": "" }, { "docid": "7bcb563c9a02478e7f31300e99e5fd21", "score": "0.46674854", "text": "public function get_data($serial_number = '')\n {\n $obj = new View();\n\n if (! $this->authorized()) {\n $obj->view('json', array('msg' => 'Not authorized'));\n return;\n }\n \n $queryobj = new Extensions_model();\n \n $sql = \"SELECT name, bundle_id, version, path, developer, teamid, executable\n FROM extensions \n WHERE serial_number = '$serial_number'\";\n \n $extensions_tab = $queryobj->query($sql);\n $obj->view('json', array('msg' => current(array('msg' => $extensions_tab)))); \n }", "title": "" }, { "docid": "9a2b6120ceba1c01caf471f3981997a5", "score": "0.4666905", "text": "public function studentsChildrenFetch()\n\t\t{\n\t\t\t\t$page \t\t\t= \t0;\t// The current page\n\t\t\t\t$sortname \t\t= \t'ul.created';\t // Sort column\n\t\t\t\t$sortorder\t \t= \t'desc';\t // Sort order\n\t\t\t\t$qtype \t\t\t= \t'';\t // Search column\n\t\t\t\t$query \t\t\t= \t'';\t // Search string\n\t\t\t\t\t\t/********************************************************************/\n\t\t\t\t\t\t//$listGrp \t= \t0;\n\t\t\t\t\t\tif($data['cid']!=\"\")\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$_SESSION['listGrp']\t=\t$data['cid'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$listGrp\t\t=\t0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$listGrp\t\t\t=\t$_SESSION['listGrp'];\n\t\t\t\t\t\t/********************************************************************/\n\t\t\t\t// Get posted data\n\t\t\t\tif (isset($_POST['page'])) \n\t\t\t\t\t{\n\t\t\t\t\t\t$page \t\t= \tmysql_real_escape_string($_POST['page']);\n\t\t\t\t\t}\n\t\t\t\tif (isset($_POST['sortname'])) \n\t\t\t\t\t{\n\t\t\t\t\t\t$sortname \t= \tmysql_real_escape_string($_POST['sortname']);\n\t\t\t\t\t}\n\t\t\t\tif (isset($_POST['sortorder'])) \n\t\t\t\t\t{\t\t\n\t\t\t\t\t\t$sortorder \t= \tmysql_real_escape_string($_POST['sortorder']);\t\t\n\t\t\t\t\t}\n\t\t\t\tif (isset($_POST['qtype'])) \n\t\t\t\t\t{\n\t\t\t\t\t\t$qtype \t\t= \ttrim(mysql_real_escape_string($_POST['qtype']));\n\t\t\t\t\t}\n\t\t\t\tif (isset($_POST['query'])) \n\t\t\t\t\t{\n\t\t\t\t\t\t$query\t\t=\tstr_replace(' ','',($_POST['query']));\n\t\t\t\t\t\t$query \t\t= \ttrim(mysql_real_escape_string($query));\n\t\t\t\t\t}\n\t\t\t\tif (isset($_POST['rp'])) \n\t\t\t\t\t{\n\t\t\t\t\t\t$rp \t\t= \tmysql_real_escape_string($_POST['rp']);\n\t\t\t\t\t}\n\t\t\t\tif(empty($rp))\n\t\t\t\t\t{\n\t\t\t\t\t\t$rp\t\t\t=\tLMT_SITE_ADMIN_PAGE_LIMIT;\n\t\t\t\t\t}\n\t\t\t//\t$searchSql\t\t\t=\t\" and user_category_id=1 \";\n\t\t\t\tif(!empty($_GET['field']) && !empty($_GET['keyword']))\n\t\t\t\t\t{\n\t\t\t\t\t\t$searchSql\t\t.=\t\" AND `\".$_GET['field'].\"`='\".$_GET['keyword'].\"%' \";\n\t\t\t\t\t}\n\t\t\t\t// Setup sort and search SQL using posted data\n\t\t\t\t$sortSql\t\t\t\t = \t\"order by $sortname $sortorder ,cu.is_deleted ASC\";\n\t\t\t\t$searchSql \t\t\t\t.= \t($qtype != '' && $query != '') ? \" AND $qtype LIKE '%$query%'\" : '';\n\t\t\t\t// Get total count of records\n\t\t\t\t$sql\t\t\t\t\t= \t\"SELECT count(cu.`user_id`) from tblusers cu \n\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN tbluser_login as ul on cu.login_id=ul.login_id\n\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN tbluser_roles as ct on ul.user_role = ct.role_id\n\t\t\t\t\t\t\t\t\t\t\t\t where ct.role_access_key='TUTOR_ROLE' $searchSql\";\n\t\t\t\t$result \t\t\t\t= \t$this->db_query($sql,0);\n\t\t\t\t$row \t\t\t\t\t= \tmysql_fetch_array($result);\n\t\t\t\t$total\t\t\t\t\t= \t$row[0];\n\t\t\t\t// Setup paging SQL\n\t\t\t\t$pageStart \t\t\t\t= \t($page-1)*$rp;\n\t\t\t\tif($pageStart<0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$pageStart\t\t=\t0;\n\t\t\t\t\t}\n\t\t\t\t$limitSql \t\t\t\t= \t\"limit $pageStart, $rp\";\n\t\t\t\t// Return JSON data\n\t\t\t\t$data \t\t\t\t\t= \tarray();\n\t\t\t\t$data['page'] \t\t\t= \t$page;\n\t\t\t\t$data['total'] \t\t\t= \t$total;\n\t\t\t\t$data['rows'] \t\t\t= \tarray();\n\t\t\t\t/*$sql \t\t\t\t\t= \t\"SELECT `id`,`title`,`description` from tblcms \n\t\t\t\t\t\t\t\t\t\t\t$searchSql\t$sortSql $limitSql\";*/\n\t\t\t\t$sql\t\t\t\t\t\t= \"SELECT cu.user_id,cu.first_name,cu.social_media, cu.last_name, cu.gender,cc.country_name,cs.state_name,ul.admin_authorize,cu.age_group,\n\t\t\t\t\t\t\t\t\t\t\t\tul.login_id,ul.authorized,ul.user_name,lo.`level_name`,ul.is_deleted, DATE_FORMAT(ul.created,'\".$_SESSION[\"DATE_FORMAT\"][\"M_DATE\"].\"') AS created_on\n\t\t\t\t\t\t\t\t\t\t\t\tfrom tblusers as cu \n\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN tblcountries as cc on cu.country_id=cc.country_id \n\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN tblstates as cs on cu.state_id=cs.state_id \n\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN tbluser_login as ul on cu.login_id=ul.login_id\n\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN tbluser_roles as ct on ul.user_role = ct.role_id\n\t\t\t\t\t\t\t\t\t\t\t\tLeft Join tbllookup_instructor_level as lo on cu.`instructor_level`=lo.`id` \n\t\t\t\t\t\t\t\t\t\t\t\twhere cu.age_group= 1 $searchSql $sortSql $limitSql\";\t\t\t\t\t\t\t\n\t\t\t\t//file_put_contents(\"file.txt\",$sql);\n\t\t\t\t\n\t\t\t\t$results \t= \t$this->db_query($sql,0);\n\t\t\t\t$i\t\t\t=\t$pageStart;\n\t\t\t\twhile ($row = mysql_fetch_assoc($results)) \n\t\t\t\t\t{\n\t\t\t\t\t\t$i++;\n\t\t\t\t\t\tif ($row['gender']==\"F\")\t$row['gender']='Female';\n\t\t\t\t\t\t\telse\t$row['gender']='Male';\t\n\t\t\t\t\t\tif ($row['admin_authorize']==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$row['admin_authorize']\t\t=\t\"<a href=\\\"studentsChildren.php?actionvar=Statuschange&lid=\".$row['login_id'].\"&admin_authorize=1\\\" class=\\\"Second_link\\\">\n\t\t\t\t\t\t\t<img src=\\\"../images/inactive.gif\\\" border=\\\"0\\\" title=\\\"Click here to activate\\\"></a>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t\t\t$row['admin_authorize']\t\t=\t\"<a href=\\\"studentsChildren.php?actionvar=Statuschange&lid=\".$row['login_id'].\"&admin_authorize=0\\\" class=\\\"Second_link\\\">\n\t\t\t\t\t\t\t<img src=\\\"../images/active.gif\\\" border=\\\"0\\\" title=\\\"Click here to activate\\\"></a>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($row['authorized']==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$row['authorized']\t\t=\t\"<a href=\\\"studentsChildren.php?actionvar=MailAuthorize&lid=\".$row['login_id'].\"&authorized=1\\\" class=\\\"Second_link\\\">\n\t\t\t\t\t\t\t<img src=\\\"../images/inactive.gif\\\" border=\\\"0\\\" title=\\\"Click here to mail authentication\\\"></a>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$row['authorized']\t\t=\t\"<img src=\\\"../images/active.gif\\\" border=\\\"0\\\" title=\\\"Click here to activate\\\">\";\n\t\t\t\t\t/*$row['group']\t=\"<a href=\\\"groupList.php?id=\".$row['user_id'].\"\\\" class=\\\"Second_link\\\">\n\t\t\t\t\t\t\t<img src=\\\"../images/group_icon.jpg\\\" border=\\\"0\\\" title=\\\"Group Details\\\" width=\\\"30\\\" height=\\\"30\\\"></a>\";\n\t\t\t\t\t\t\n\t\t\t\t\t$row['event']\t=\t\"<a href=\\\"eventView.php?id=\".$row['user_id'].\"\\\" class=\\\"Second_link\\\">\n\t\t\t\t\t\t\t\t\t\t\tMy Event</a>\";\n\t\t\t\t\t$row['album']\t=\t\"<a href=\\\"albumView.php?id=\".$row['user_id'].\"\\\" class=\\\"Second_link\\\">\n\t\t\t\t\t\t\t\t\t\t\tMy Album</a>\";*/\n\t\t\t\t\t$row['view']\t=\"<a href=\\\"studentsChildren.php?actionvar=Viewform&id=\".$row['user_id'].\"\\\" class=\\\"Second_link\\\">\n\t\t\t\t\t\t\t<img src=\\\"../images/view.png\\\" border=\\\"0\\\" title=\\\"View Details\\\"></a>\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$row['userprofile']\t= \"<a href=\\\"userProfile.php?id=\".base64_encode(serialize($row['user_id'])).\"\\\" class=\\\"Second_link\\\" target=\\\"_blank\\\"><img src=\\\"images/profile-icon.jpg\\\" border=\\\"0\\\" title=\\\"User Profile\\\" width=\\\"25\\\" height=\\\"25\\\"></a>\";\n\t\t\t\t\t\t\t$row['videoquality']\t= \"<a href=\\\"studentsChildren.php?actionvar=CameraSetting&id=\".base64_encode(serialize($row['user_id'])).\"\\\" class=\\\"Second_link\\\"><img src=\\\"images/webcam_icon.gif\\\" border=\\\"0\\\" title=\\\"Video Quality Settings\\\" width=\\\"25\\\" height=\\\"25\\\"></a>\";\t\t\n\t\t\t\t\tif ($row['is_deleted']==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$row['delete']\t=\"<a href=\\\"studentsChildren.php?actionvar=Deletedata&lid=\".$row['login_id'].\"&is_deleted=1\\\" class=\\\"Second_link\\\" onclick=\\\"return delall()\\\">\n\t\t\t\t\t\t\t\t\t<img src=\\\"../images/active.gif\\\" border=\\\"0\\\" title=\\\"Click here to block user\\\"></a>\";\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t\t$row['delete']\t=\"<a href=\\\"studentsChildren.php?actionvar=Deletedata&lid=\".$row['login_id'].\"&is_deleted=0\\\" class=\\\"Second_link\\\" >\n\t\t\t\t\t\t\t\t\t<img src=\\\"../images/inactive.gif\\\" border=\\\"0\\\" title=\\\"Click here to unblock user\\\"></a>\";\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tif ($row['social_media'] == 0)\n\t\t\t\t{\n\t\t\t\t\t$row['social_media']\t=\"<a href=\\\"studentsChildren.php?actionvar=Enablesocial&lid=\".$row['login_id'].\"&social_media=0\\\" class=\\\"Second_link\\\" onclick=\\\"return social()\\\">\n\t\t\t\t\t\t\t<img src=\\\"../images/inactive.gif\\\" border=\\\"0\\\" title=\\\"Click here to enable\\\"></a>\";\t\t\t\t\n\t\t\t\t}\n\t\t\telse{\n\t\t\t\t\t$row['social_media']\t=\"<a href=\\\"studentsChildren.php?actionvar=Disablesocial&lid=\".$row['login_id'].\"&social_media=1\\\" class=\\\"Second_link\\\" >\n\t\t\t\t\t\t\t<img src=\\\"../images/active.gif\\\" border=\\\"0\\\" title=\\\"Click here to disable\\\"></a>\";\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t$row['edit']\t=\t'<a href=\"studentsChildren.php?actionvar=EditProfileForm&uid='.base64_encode(serialize($row['user_id'])).'\"><img src=\"images/edit.gif\" title=\"edit Information\"></a>';\n\t\t\t\t/*\tif(empty($row['level_name'])){\n\t\t\t\t\t\t$row['level_name']\t\t=\t\"- Not Set -\";\t\t\t\n\t\t\t\t\t}*/\n\t\t\t/************Age SELECTion***************/\t\n\t\t\t\t\t\n\t\t\t\t\tif($row['age_group']==3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$row['age_group']\t=\t\"Adults\";\n\t\t\t\t\t\t}\n\t\t\t\t\telse if($row['age_group']==2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$row['age_group']\t=\t\"Teens\";\t\n\t\t\t\t\t\t}\n\t\t\t\t\telse if($row['age_group']==1) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$row['age_group']\t=\t\"Kids\";\n\t\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$row['age_group']\t=\t\"invalid\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t/***************************************/\n\t\t\t\t\t\t\n\t\t\t\t\t\t$data['rows'][] = array\n\t\t\t\t\t(\n\t\t\t\t'id' => $row['user_id'],\n\t\t\t\t'cell' => array($i, $row['first_name'].' '.$row['last_name'],$row['user_name'], /* $row['level_name'].\" <a href='tutor.php?id=\".$row['user_id'].\"&actionvar=Editform'><img src=\\\"../images/edit.png\\\" border=\\\"0\\\" title=\\\"Edit Details\\\"></a>\", */ $row['age_group'], $row['country_name'],$row['state_name'], $row['gender'], $row['created_on'], $row['authorized'],$row['admin_authorize'],$row['view'],$row['userprofile']/* ,$row['videoquality'] */ ,$row['delete'],$row['edit'],$row['social_media'])\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\n\t\t\t\t\t//print_r($data);\n\t\t\t\t\t$r =json_encode($data);\n\t\t\t\t\t\n\t\t\t\t\tob_clean();\n\t\t\t\t\techo $r;\n\t\t\t\t\texit;\t\n\t\t\t\n\t\t\t}", "title": "" }, { "docid": "6e4436569bb03245be0481558b016bcf", "score": "0.46589217", "text": "function student_load_report()\n//\tlist degree programmes and their ownmership by departments\n{\n\t$ay_id = $_POST['ay_id'];\t\t\t\t\t\t\t\t\t\t\t// get academic_year_id\n\n\t$department_code = $_GET['department_code'];\t\t\t\t\t\t\t\t// get department code\n\tif(!$department_code) $department_code = $_POST['department_code'];\n//dprint($department_code);\n\t$dept_id = get_dept_id($department_code);\t\t\t\t\t\t\t\t\t// get department id\n\n//\there comes the query\n\n\t$query = \"\nSELECT \ndp.degree_programme_code AS 'DP Code', \ndp.title AS 'Degree Programme', \nd.department_code AS 'Dept Code', \nd.department_name AS 'Department', \ndpd.percentage AS 'Percentage' \n\nFROM DegreeProgrammeDepartment dpd \nINNER JOIN DegreeProgramme dp ON dp.id = dpd.degree_programme_id \nINNER JOIN Department d ON d.id = dpd.department_id \n\nWHERE 1=1 \nAND dpd.academic_year_id = $ay_id \nAND dpd.year_of_programme = 1 \nAND d.department_code LIKE '$department_code%'\nORDER BY dp.degree_programme_code, d.department_code \n\";\n\n//d_print($query);\n\treturn get_data($query);\n}", "title": "" }, { "docid": "55d107743b80380d51a0d07db38a7dbe", "score": "0.4658245", "text": "function list_all()\n\t{\n\t\t//-----------------------------------------\n\t\t// INIT\n\t\t//-----------------------------------------\n\t\t\n\t\t$this->first = intval($this->ipsclass->input['st']) > 0 ? intval($this->ipsclass->input['st']) : 0;\n\t\t$show_mem_html = \"\";\n\t\t$sort_order_html = \"\";\n\t\t$sort_key_html = \"\";\n\t\t\n\t\t$final = array();\n\t\t$tid_array = array();\n\t\t$topics = array();\n\t\t$modules = array();\n\t\t$final_modules = array();\n\t\t\n\t\t$show_mem = array( 'reg', 'guest', 'all' );\n\t\t$sort_order = array( 'desc', 'asc' );\n\t\t$sort_key = array( 'click', 'name' );\n\t\t\n\t\t$show_mem_value = (isset($this->ipsclass->input['show_mem']) AND $this->ipsclass->input['show_mem']) ? $this->ipsclass->input['show_mem'] : 'all';\n\t\t$sort_order_value = (isset($this->ipsclass->input['sort_order']) AND $this->ipsclass->input['sort_order']) ? $this->ipsclass->input['sort_order'] : 'desc';\n\t\t$sort_key_value = (isset($this->ipsclass->input['sort_key']) AND $this->ipsclass->input['sort_key']) ? $this->ipsclass->input['sort_key'] : 'click';\n\t\t\n\t\t//-----------------------------------------\n\t\t// Get member groups\n\t\t//-----------------------------------------\n\t\t\t\t\n\t\t$our_mgroups = array();\n\t\t\n\t\tif( $this->ipsclass->member['mgroup_others'] )\n\t\t{\n\t\t\t$our_mgroups = explode( \",\", $this->ipsclass->clean_perm_string( $this->ipsclass->member['mgroup_others'] ) );\n\t\t}\n\t\t\n\t\t$our_mgroups[] = $this->ipsclass->member['mgroup'];\n\t\t\t\t\n\t\t//-----------------------------------------\n\t\t// Build lists\n\t\t//-----------------------------------------\n\t\t\n\t\t$oo = \"<option \";\n\t\t$oc = \"</option>\\n\";\n\t\t\n\t\tforeach( $show_mem as $k )\n\t\t{\n\t\t\t$s = \"\";\n\t\t\t\n\t\t\tif ( $show_mem_value == $k )\n\t\t\t{\n\t\t\t\t$s = ' selected=\"selected\" ';\n\t\t\t}\n\t\t\t\n\t\t\t$show_mem_html .= $oo.'value=\"'.$k.'\"'.$s.'>'.$this->ipsclass->lang['s_show_mem_'.$k].$oc;\n\t\t}\n\t\t\n\t\tforeach( $sort_order as $k )\n\t\t{\n\t\t\t$s = \"\";\n\t\t\t\n\t\t\tif ( $sort_order_value == $k )\n\t\t\t{\n\t\t\t\t$s = ' selected=\"selected\" ';\n\t\t\t}\n\t\t\t\n\t\t\t$sort_order_html .= $oo.'value=\"'.$k.'\"'.$s.'>'.$this->ipsclass->lang['s_sort_order_'.$k].$oc;\n\t\t}\n\t\t\n\t\tforeach( $sort_key as $k )\n\t\t{\n\t\t\t$s = \"\";\n\t\t\t\n\t\t\tif ( $sort_key_value == $k )\n\t\t\t{\n\t\t\t\t$s = ' selected=\"selected\" ';\n\t\t\t}\n\t\t\t\n\t\t\t$sort_key_html .= $oo.'value=\"'.$k.'\"'.$s.'>'.$this->ipsclass->lang['s_sort_key_'.$k].$oc;\n\t\t}\n\t\t\n\t\tif ($this->ipsclass->vars['au_cutoff'] == \"\")\n\t\t{\n\t\t\t$this->ipsclass->vars['au_cutoff'] = 15;\n\t\t}\n\t\t\t\n\t\t$cut_off = $this->ipsclass->vars['au_cutoff'] * 60;\n\t\t$t_time = time() - $cut_off;\n\t\t\n\t\t$db_order = $sort_order_value == 'asc' ? 'asc' : 'desc';\n\t\t$db_key = $sort_key_value == 'click' ? 'running_time' : 'member_name';\n\n\t\tswitch ($show_mem_value)\n\t\t{\n\t\t\tcase 'reg':\n\t\t\t\t$db_mem = \" AND s.member_id <> 0 AND s.member_group <> {$this->ipsclass->vars['guest_group']}\";\n\t\t\t\tbreak;\n\t\t\tcase 'guest':\n\t\t\t\t$db_mem = \" AND s.member_group = {$this->ipsclass->vars['guest_group']} \";\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$db_mem = \"\";\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t$remove_spiders = 0;\n\t\t\n\t\tif ( $this->ipsclass->vars['spider_anon'] )\n\t\t{\n\t\t\tif ( !in_array( $this->ipsclass->vars['admin_group'], $our_mgroups ) )\n\t\t\t{\n\t\t\t\t$remove_spiders = 1;\n\t\t\t}\n\t\t}\n\n\t\t$remove_anon = 1;\n\t\t\n\t\tif ( (in_array( $this->ipsclass->vars['admin_group'], $our_mgroups )) and ($this->ipsclass->vars['disable_admin_anon'] != 1) )\n\t\t{\n\t\t\t$remove_anon = 0;\n\t\t}\n\t\t\n\t\t$this->ipsclass->DB->cache_add_query( 'session_get_count', array( 'time' => $t_time, 'db_mem' => $db_mem, 'remove_anon' => $remove_anon, 'remove_spiders' => $remove_spiders ) );\n\t\t$this->ipsclass->DB->cache_exec_query();\n\t\t\n\t\t$max = $this->ipsclass->DB->fetch_row();\n\t\t\n\t\t$links = $this->ipsclass->build_pagelinks( array( 'TOTAL_POSS' => $max['total_sessions'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'PER_PAGE' => 25,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'CUR_ST_VAL' => $this->first,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'L_SINGLE' => \"\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'L_MULTI' => $this->ipsclass->lang['pages'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'BASE_URL' => $this->base_url.\"act=Online&amp;CODE=listall&amp;sort_key=$sort_key_value&amp;sort_order=$sort_order_value&amp;show_mem=$show_mem_value\"\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 );\n\t\t\t\t\t\t\t\t\t \n\t\t$this->output = $this->ipsclass->compiled_templates['skin_online']->Page_header($links);\n\t\t\n\t\t//-----------------------------------------\n\t\t// Grab all the current sessions.\n\t\t//-----------------------------------------\n\t\t\n\t\t$this->ipsclass->DB->cache_add_query( 'session_get_sessions', array( 'time' => $t_time, 'db_mem' => $db_mem, 'remove_anon' => $remove_anon, 'remove_spiders' => $remove_spiders,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'db_key' => $db_key, 'db_order' => $db_order, 'start' => $this->first, 'finish' => 25 ) );\n\t\t$outer = $this->ipsclass->DB->cache_exec_query();\n\t\t\n\t\tif( !$this->ipsclass->DB->get_num_rows($outer) && $this->first > 0 )\n\t\t{\n\t\t\t// We are request page 2 - but there is no page 2 now...\n\t\t\t$this->ipsclass->boink_it( $this->ipsclass->base_url.\"act=Online&amp;sortkey={$sort_key_value}&amp;show_mem={$show_mem_value}&amp;sort_order={$sort_order_value}\" );\n\t\t}\n\t\t\n\t\twhile( $r = $this->ipsclass->DB->fetch_row($outer) )\n\t\t{\n\t\t\t$final[ $r['id'] ] = $r;\n\t\t\t\n\t\t\t//-----------------------------------------\n\t\t\t// Module?\n\t\t\t//-----------------------------------------\n\t\t\t\n\t\t\tif ( strstr( $r['location'], 'mod:' ) )\n\t\t\t{\n\t\t\t\t$modules[ str_replace( 'mod:', '', $r['location'] ) ] [ $r['id'] ] = $r;\n\t\t\t}\n\t\t\t\n\t\t\t//-----------------------------------------\n\t\t\t// IN topic?\n\t\t\t//-----------------------------------------\n\t\t\t\n\t\t\tif ( $r['location_1_id'] AND $r['location_1_type'] == 'topic' )\n\t\t\t{\n\t\t\t\t$tid_array[ $r['location_1_id'] ] = $r['location_1_id'];\n\t\t\t}\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Post process modules\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( count( $modules ) )\n\t\t{\n\t\t\tforeach( $modules as $module_name => $module_array )\n\t\t\t{\n\t\t\t\t$filename = ROOT_PATH.'sources/components_location/'.$this->ipsclass->txt_alphanumerical_clean( $module_name ).'.php';\n\t\t\t\t\n\t\t\t\tif ( file_exists( $filename ) )\n\t\t\t\t{\n\t\t\t\t\trequire_once( $filename );\n\t\t\t\t\t$toload = 'components_location_'.$module_name;\n\t\t\t\t\t$loader = new $toload;\n\t\t\t\t\t$loader->ipsclass =& $this->ipsclass;\n\t\t\t\t\t\n\t\t\t\t\t$tmp = $loader->parse_online_entries( $module_array );\n\t\t\t\t\t\n\t\t\t\t\tif ( is_array( $tmp ) and count( $tmp ) )\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach( $tmp as $ssid => $arr )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$final[ $ssid ] = $arr;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// Do topics\n\t\t//-----------------------------------------\n\t\t\n\t\tif ( count($tid_array) > 0 )\n\t\t{\n\t\t\t$tid_string = implode( \",\", $tid_array );\n\t\t\t\n\t\t\t$this->ipsclass->DB->simple_construct( array( 'select' => 'tid, title', 'from' => 'topics', 'where' => \"tid IN ($tid_string)\" ) );\n\t\t\t$this->ipsclass->DB->simple_exec();\n\t\t\n\t\t\twhile ( $t = $this->ipsclass->DB->fetch_row() )\n\t\t\t{\n\t\t\t\t$topics[ $t['tid'] ] = $t['title'];\n\t\t\t}\n\t\t}\n\t\t\n\t\t//-----------------------------------------\n\t\t// LOOPY\n\t\t//-----------------------------------------\n\t\t\n\t\tforeach( $final as $sess )\n\t\t{\n\t\t\t//-----------------------------------------\n\t\t\t// Is this a member, and have we seen them before?\n\t\t\t// Proxy servers, etc can confuse the session handler,\n\t\t\t// creating duplicate session IDs for the same user when\n\t\t\t// their IP address changes.\n\t\t\t//-----------------------------------------\n\t\t\t\n\t\t\t$inv = '';\n\t\t\t\n\t\t\tif ( strstr( $sess['id'], '_session' ) )\n\t\t\t{\n\t\t\t\t$sess['is_bot'] = 1;\n\t\t\t\t\n\t\t\t\tif ( $this->ipsclass->vars['spider_anon'] )\n\t\t\t\t{\n\t\t\t\t\tif ( in_array( $this->ipsclass->vars['admin_group'], $our_mgroups ) )\n\t\t\t\t\t{\n\t\t\t\t\t\t$inv = '*';\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$sess['member_id'] = '';\n\t\t\t\t\t\t$sess['member_name'] = '';\n\t\t\t\t\t\t$sess['in_error'] = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ($sess['login_type'] == 1)\n\t\t\t{\n\t\t\t\tif ( (in_array( $this->ipsclass->vars['admin_group'], $our_mgroups )) and ($this->ipsclass->vars['disable_admin_anon'] != 1) )\n\t\t\t\t{\n\t\t\t\t\t$inv = '*';\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$sess['member_id'] = '';\n\t\t\t\t\t$sess['member_name'] = '';\n\t\t\t\t\t$sess['in_error'] = 1;\n\t\t\t\t\t$sess['prefix'] = \"\";\n\t\t\t\t\t$sess['suffix'] = \"\"; \n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//-----------------------------------------\n\t\t\t// ICheck for dupes\n\t\t\t//-----------------------------------------\n\t\t\t\n\t\t\tif ( ! empty($sess['member_name']) )\n\t\t\t{\n\t\t\t\tif (isset($this->seen_name[ $sess['member_name'] ]) )\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->seen_name[ $sess['member_name'] ] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif ( !$sess['member_id'] AND (!isset($sess['is_bot']) OR !$sess['is_bot']) )\n\t\t\t{\n\t\t\t\t$sess['member_name'] = $this->ipsclass->lang['guest'];\n\t\t\t}\n\t\t\t\n\t\t\t$sess['member_name'] = $this->ipsclass->make_name_formatted( $sess['member_name'], $sess['member_group'] );\n\t\t\t\n\t\t\t//-----------------------------------------\n\t\t\t// Figure out location\n\t\t\t//-----------------------------------------\n\t\t\t\n\t\t\tif ( $sess['in_error'] )\n\t\t\t{\n\t\t\t\t$line = \" {$this->ipsclass->lang['board_index']}\";\n\t\t\t}\n\t\t\telse if ( $sess['location'] OR $sess['_parsed'] )\n\t\t\t{\n\t\t\t\t$line = \"\";\n\t\t\t\t\n\t\t\t\t//-----------------------------------------\n\t\t\t\t// PARSED?\n\t\t\t\t//-----------------------------------------\n\t\t\t\t\n\t\t\t\tif ( isset($sess['_parsed']) AND $sess['_parsed'] )\n\t\t\t\t{\n\t\t\t\t\t$line = \"<a href='{$sess['_url']}'>{$sess['_text']}</a>\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//-----------------------------------------\n\t\t\t\t// NOT PARSED\n\t\t\t\t//-----------------------------------------\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlist($act, $pid) = explode( \",\", $sess['location'] );\n\t\t\t\t\t\n\t\t\t\t\t$fid = ($sess['location_2_type'] == 'forum' AND $sess['location_2_id']) ? $sess['location_2_id'] : 0;\n\t\t\t\t\t$tid = ($sess['location_1_type'] == 'topic' AND $sess['location_1_id']) ? $sess['location_1_id'] : 0;\n\t\t\t\t\t$act = strtolower($act);\n\t\t\t\t\t\n\t\t\t\t\t//-----------------------------------------\n\t\t\t\t\t// Really in a forum?\n\t\t\t\t\t//-----------------------------------------\n\t\t\t\t\t\n\t\t\t\t\tif ( $act == 'sf' && ! $fid )\n\t\t\t\t\t{\n\t\t\t\t\t\t$act = '';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif ( $act == 'st' && ! $tid )\n\t\t\t\t\t{\n\t\t\t\t\t\t$act = '';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif ( $act == 'post' && ! $fid )\n\t\t\t\t\t{\n\t\t\t\t\t\t$act = '';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif ( isset($act) )\n\t\t\t\t\t{\n\t\t\t\t\t\tif( $act == 'post' AND $tid )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$line = $this->where[ 'postrep' ];\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if( $act == 'post' AND $fid )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$line = $this->where[ 'postnew' ];\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\tif( in_array( $act, array( 'members', 'help', 'calendar', 'online', 'boardrules' ) ) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$line = isset($this->where[ $act ]) ? \"<a href='{$this->ipsclass->base_url}act={$act}'>{$this->where[ $act ]}</a>\" : $this->ipsclass->lang['board_index'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$line = isset($this->where[ $act ]) ? $this->where[ $act ] : $this->ipsclass->lang['board_index'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif ( $fid != \"\" and ($act == 'sf' or $act == 'st' or $act == 'post'))\n\t\t\t\t\t{\n\t\t\t\t\t\t$deny = 1;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif( $tid > 0 )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$deny = $this->ipsclass->forums->forums_quick_check_access( $fid, 'read_perms' );\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$deny = $this->ipsclass->forums->forums_quick_check_access( $fid );\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ($deny != 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ( ($tid > 0) )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$line .= \" <a href='{$this->base_url}showtopic=$tid'>{$topics[$tid]}</a>\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$line .= \" <a href='{$this->base_url}showforum=$fid'>{$this->ipsclass->forums->forum_by_id[ $fid ]['name']}</a>\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$line = \" {$this->ipsclass->lang['board_index']}\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$line = \" {$this->ipsclass->lang['board_index']}\";\n\t\t\t}\n\t\t\t\n\t\t\t$sess['where_line'] = $line;\n\t\t\t\n\t\t\tif ( (in_array( $this->ipsclass->vars['admin_group'], $our_mgroups )) and ($this->ipsclass->vars['disable_online_ip'] != 1) )\n\t\t\t{\n\t\t\t\t$sess['ip_address'] = \" ( \".$sess['ip_address'].\" )\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$sess['ip_address'] = \"\";\n\t\t\t}\n\t\t\t\n\t\t\tif ( $sess['member_id'] )\n\t\t\t{\n\t\t\t\t$sess['member_name'] = \"<a href='{$this->base_url}showuser={$sess['member_id']}'>{$sess['member_name']}</a>{$inv} {$sess['ip_address']}\";\n\t\t\t}\n\t\t\telse if( isset($sess['is_bot']) AND $sess['is_bot'] )\n\t\t\t{\n\t\t\t\t$sess['member_name'] = $sess['member_name'].$inv;\n\t\t\t}\n\t\t\t\n\t\t\t$sess['running_time'] = $this->ipsclass->get_date( $sess['running_time'], 'LONG' );\n\t\t\t\n\t\t\t$this->output .= $this->do_html_row($sess);\n\t\t\t\n\t\t}\n\t\t\n\t\t$this->output .= $this->ipsclass->compiled_templates['skin_online']->Page_end($show_mem_html, $sort_order_html, $sort_key_html, $links);\n\t\t\n\t\t$this->page_title = $this->ipsclass->lang['page_title'];\n\t\t$this->nav = array( $this->ipsclass->lang['page_title']);\n\t}", "title": "" }, { "docid": "ab836c740f07326b8532abec0334f9cd", "score": "0.46567887", "text": "function getManufacturers() {\n\t\t$db = JFactory::getDBO();\n\t\t$q = \"SELECT manufacturer_id, mf_name FROM #__vm_manufacturer ORDER BY mf_name\";\n\t\t$db->setQuery($q);\n\t\treturn $db->loadObjectList();\n\t}", "title": "" }, { "docid": "3f90a2a6080f18d674e640d01116bd77", "score": "0.46556664", "text": "private function getProgramme() {\r\n $sql = 'SELECT programme FROM utilisateur WHERE identifiant = ?';\r\n $donnees = $this->executerRequete($sql, array($_SESSION['identifiant']));\r\n $donnees = $donnees->fetch();\r\n $this->programme = $donnees['programme'];\r\n return $this->programme;\r\n }", "title": "" }, { "docid": "9b80e05883ccc00211a4de7557bf27c1", "score": "0.4649757", "text": "function getapplications($Condition,$CI){\r\n //select program\r\n $progm=$CI->db->get_where('programs',$Condition);\r\n foreach ($progm->result() as $row) {\r\n return $row->program_name;\r\n }\r\n}", "title": "" } ]
ba9d7aebef8608e8d5dff412fd527d25
Determine the name of the project.
[ { "docid": "63db263c9c10b9dff497bccba156f16f", "score": "0.8238425", "text": "protected function determineName()\n {\n return Str::slug(Helpers::ask(\n 'What is the name of this project',\n basename(Path::current())\n ));\n }", "title": "" } ]
[ { "docid": "f834a290043cc309d5818434354a043a", "score": "0.8570628", "text": "public function getProjectName()\n {\n return $this->project->name_project;\n }", "title": "" }, { "docid": "2a39d4f1308f42002334e4a1991e7804", "score": "0.847534", "text": "public function getProjectName()\r\n {\r\n return $this->project_name;\r\n }", "title": "" }, { "docid": "8b776dd0dd8fb1f9182b09de4a2ce314", "score": "0.825129", "text": "public function getProjectName()\n {\n return $this->projectName;\n }", "title": "" }, { "docid": "a6b471fbc3d69a4c5764ee930f3a4fec", "score": "0.8084652", "text": "public function getProjectName()\n {\n //$projectName = strtolower($projectName) ;\n //$projectName = preg_replace('/[^a-z0-9]+/i','-',$projectName);\n //return $projectName;\n return $this->getRepository()->name;\n }", "title": "" }, { "docid": "ec48371c6107c336dfd4011b4929002c", "score": "0.80775046", "text": "public function getProjectName()\n {\n $directoryName = basename($this->getInstallationDirectory());\n\n return strtolower(preg_replace('{[^a-zA-Z0-9]}', '', $directoryName));\n }", "title": "" }, { "docid": "f6ea52719e228aded0e84c81623996c7", "score": "0.78752506", "text": "function getName() {\n\t\treturn $this->data_array['project_name'];\n\t}", "title": "" }, { "docid": "a546af60f96b00e8be31d36fad0e80b8", "score": "0.77422875", "text": "public function projectName(){\n\t\treturn basename(__DIR__);\n\t}", "title": "" }, { "docid": "4247bed29b2f9d7bc08f0642102ef6fe", "score": "0.77007025", "text": "public function GetName() {\n\t\t\n\t\tforeach ( $this->projects as $project => $data ) {\n\t\t\t\n\t\t\tif ( $data['path'] == $this->path ) {\n\t\t\t\t\n\t\t\t\t$this->name = $data['name'];\n\t\t\t}\n\t\t}\n\t\treturn $this->name;\n\t}", "title": "" }, { "docid": "10f708a07b6934b8b711434d396ece3a", "score": "0.76348376", "text": "static public function getProjectName()\n {\n $file = sfConfig::get('sf_config_dir').'/properties.ini';\n $content = parse_ini_file($file, true);\n return $content['symfony']['name'];\n }", "title": "" }, { "docid": "661685f71d0b921c6044bad5f6b23290", "score": "0.75635177", "text": "public function projectName()\n {\n $name = $this->name();\n if (null === $name) {\n return null;\n }\n\n $atoms = explode(static::NAME_SEPARATOR, $name);\n\n return array_pop($atoms);\n }", "title": "" }, { "docid": "e190d1bca09889376975421c25b9376f", "score": "0.7512504", "text": "public function projectName()\n {\n return $this->projectName;\n }", "title": "" }, { "docid": "a916632ed08a2762d085cd85cc729bf2", "score": "0.74118793", "text": "public function getProjectTitle()\n {\n return $this->projectTitle;\n }", "title": "" }, { "docid": "7f0d4d4c1ac645da0b04d6d19d9f9a52", "score": "0.7317526", "text": "public static function projectName(string $project): string\n {\n return self::getPathTemplate('project')->render([\n 'project' => $project,\n ]);\n }", "title": "" }, { "docid": "7f0d4d4c1ac645da0b04d6d19d9f9a52", "score": "0.7317526", "text": "public static function projectName(string $project): string\n {\n return self::getPathTemplate('project')->render([\n 'project' => $project,\n ]);\n }", "title": "" }, { "docid": "145a5df4d20ba5501c6cf42d2433883d", "score": "0.7296518", "text": "public static function projectName($project)\n {\n return self::getProjectNameTemplate()->render([\n 'project' => $project,\n ]);\n }", "title": "" }, { "docid": "8a2fbe0e88418a3c6cd45e3630ca39c3", "score": "0.7258026", "text": "public function get_project_name($project_id = NULL)\n {\n if($project_id === NULL || !is_numeric($project_id)){ redirect('calendar/projects', 'refresh'); }\n // \n $row = $this->db->get_where('projects', array('id' => $project_id))->row();\n return $row->title;\n }", "title": "" }, { "docid": "215455e33770cd236db6a3d1a5ca4760", "score": "0.7244373", "text": "function GetName()\n {\n if(strlen($this->Name)>0)\n {\n return $this->Name;\n }\n\n if(!$this->Id)\n {\n echo \"Project GetName(): Id not set\";\n return false;\n }\n\n $project = pdo_query(\"SELECT name FROM project WHERE id=\".qnum($this->Id));\n if(!$project)\n {\n add_last_sql_error(\"Project GetName\",$this->Id);\n return false;\n }\n $project_array = pdo_fetch_array($project);\n $this->Name = $project_array['name'];\n\n return $this->Name;\n }", "title": "" }, { "docid": "c06b388a261f633533c714b1ab338c4a", "score": "0.7216667", "text": "public function getProjectPrefix()\n {\n return strtoupper($this->secretsManager->getProjectName()) . '_';\n }", "title": "" }, { "docid": "818963d9cceb46dd21ee03177bc7c76d", "score": "0.71941686", "text": "public static function project()\n {\n if (empty($ssmPath = static::ssmPath())) {\n return '';\n }\n\n $parts = explode('-', ltrim($ssmPath, '/'));\n array_pop($parts);\n\n return implode('-', $parts);\n }", "title": "" }, { "docid": "818963d9cceb46dd21ee03177bc7c76d", "score": "0.71941686", "text": "public static function project()\n {\n if (empty($ssmPath = static::ssmPath())) {\n return '';\n }\n\n $parts = explode('-', ltrim($ssmPath, '/'));\n array_pop($parts);\n\n return implode('-', $parts);\n }", "title": "" }, { "docid": "63c8b6ab3a25718d0bd6fb7a299498c4", "score": "0.71361965", "text": "public function getJiraHarvestProject(): string\n {\n return $this->getConfigurations()['harvest-project'] ?? '';\n }", "title": "" }, { "docid": "6c47f86ae313b2ed0acd16dde3df64b2", "score": "0.7027667", "text": "protected function getBuildName()\n {\n return Str::studly($this->source->handle);\n }", "title": "" }, { "docid": "0f5a1b111b5ee00d3d814facd16b4c5c", "score": "0.7022796", "text": "public function getProjectTitle() {\n return $this->title;\n }", "title": "" }, { "docid": "013b116f0f10ed50b941c6a160ee80b4", "score": "0.6956861", "text": "public function getDirname() {\n return Plugin::current()->getUserfile('project-' . $this->id);\n }", "title": "" }, { "docid": "22ce45a02eb5e8ca157e523ebc731c8e", "score": "0.68342483", "text": "function GetName()\n {\n if(strlen($this->Name)>0)\n {\n return $this->Name;\n }\n\n if(!$this->Id)\n {\n echo \"SubProject GetName(): Id not set\";\n return false;\n }\n\n $project = pdo_query(\"SELECT name FROM subproject WHERE id=\".qnum($this->Id));\n if(!$project)\n {\n add_last_sql_error(\"SubProject GetName\");\n return false;\n }\n $project_array = pdo_fetch_array($project);\n $this->Name = $project_array['name'];\n\n return $this->Name;\n }", "title": "" }, { "docid": "034ef24b866aba74a5ec3766873f8f32", "score": "0.6804182", "text": "public function getName( $id ) {\n $project = R::findOne( 'project', 'id=?', array( $id ) );\n\n return $project->name;\n }", "title": "" }, { "docid": "81bdf495d7fa0f9881cfc3b2219a04f6", "score": "0.6685811", "text": "public function getInstanceName(Model_Instance $instance) {\n\t\t$path = $instance->webroot;\n\t\t$path = explode('/', $path);\n\n\t\t$project = array_pop($path);\n\t\t$dev = array_pop($path);\n\n\t\treturn $dev . ' - ' . $project;\n\t}", "title": "" }, { "docid": "a018ef960c8941cdbb5301fcfde4cd24", "score": "0.6602773", "text": "public function getProject()\n {\n return Mage::registry('current_project');\n }", "title": "" }, { "docid": "f7f8757fc475dbd9b9452338b572c99c", "score": "0.6586451", "text": "function getProjectSetName(){\n return $this->name;\n }", "title": "" }, { "docid": "436282dd64da847aa5e582b790f856c2", "score": "0.6566855", "text": "public function name()\n {\n return studly_case(str_replace('-', '_', explode('/', $this->composer('name'))[1]));\n }", "title": "" }, { "docid": "4fc2b6c6c640f9ab2199baa0a60c2946", "score": "0.6533545", "text": "protected function filename()\n {\n return 'Projects_' . date('YmdHis');\n }", "title": "" }, { "docid": "8e688f79e5cd6d7cbd2aa9f87d4f64e6", "score": "0.6498169", "text": "function project_get_name( $project_id ) {\n\n\tglobal $db;\n\n\t$project_tbl \t\t\t\t= PROJECT_TBL;\n\t$f_proj_id\t\t\t\t\t= $project_tbl .'.'. PROJ_ID;\n\t$f_proj_name\t\t\t\t= $project_tbl .'.'. PROJ_NAME;\n\n\t$q = \"\tSELECT\t$f_proj_name\n\t\t\tFROM\t$project_tbl\n\t\t\tWHERE\t$f_proj_id = '$project_id'\";\n\n\t$row = db_fetch_row($db, db_query($db, $q));\n\treturn $row[PROJ_NAME];\n}", "title": "" }, { "docid": "6cd7ea1dbad67d001913e6499aa406d3", "score": "0.649247", "text": "public function getName() {\r\n\t\treturn ($this->sWorkspaceName);\r\n\t}", "title": "" }, { "docid": "f5c5da8ee65b4baaac486df0c541a877", "score": "0.6486075", "text": "public function getCurrentProject()\n {\n return Mage::registry('current_project');\n }", "title": "" }, { "docid": "b063048ee691e40f9b15a6cf5792ea0f", "score": "0.64824444", "text": "public function getName() {\n\t\tif ($this->name !== null) {\n\t\t\t$name = $this->name;\n\t\t} else if ($this->path == 'pcr:root') {\n\t\t\t$name = 'pcr:root';\n\t\t} else {\n\t\t\t$name = substr($this->path, strrpos($this->path, '/') + 1);\n\t\t}\n\t\t\t\n\t\treturn $name;\n\t}", "title": "" }, { "docid": "5a3080368214c922db90d1f56d18ab2d", "score": "0.6410391", "text": "private function getAppName()\n {\n $app = $this->getApplication();\n\n return $app->getName() . '-' . $app->getVersion();\n }", "title": "" }, { "docid": "975bac90513c5524374478fb1cf8c3bb", "score": "0.6406547", "text": "public function getJiraProjectKey(): string\n {\n return $this->getConfigurations()['project-key'] ?? '';\n }", "title": "" }, { "docid": "12c5f1546b06e6c7e98c3376db6b235d", "score": "0.63974357", "text": "public function getProject_name($id){\n\t\tif(SUBSTR($id,0,2)=='PJ'){\n\t\t\t$qr = $this->fetchdata(\"kp_projects\",\"where project_cat_id in\n\t\t\t(select project_cat_id from kp_projects where project_id = '$id' ) \");\n\t\t\t$res = $qr->fetch_object();\n\n\t\t\treturn $res->project_name_th;\n\t\t}else{\n\t\t\t$qr = $this->fetchdata(\"kp_projects\",\"where project_cat_id = '$id' \");\n\t\t\t$res = $qr->fetch_object();\n\n\t\t\treturn $res->project_name_th;\n\t\t}\n\t}", "title": "" }, { "docid": "4712406cbd39b28ccac2fd3ad19d4c83", "score": "0.63616824", "text": "public function getName()\n\t{\n\t\t$reflection = new ReflectionClass($this);\n\n\t\t$moduleName = $this->titleCase($reflection->getShortName());\n\n\t\treturn (string) ($moduleName ?? '');\n\t}", "title": "" }, { "docid": "61780590fcc1e4dfcb71f6cc7e207c49", "score": "0.6297262", "text": "public function getProject();", "title": "" }, { "docid": "caf5fc9dab9b255b99ec58b759d5c807", "score": "0.62936383", "text": "public function getName()\n {\n if ($this->getType() == 'Application') {\n return basename($this->getRootPath());\n } else {\n return 'Horde_' . basename($this->getRootPath());\n }\n }", "title": "" }, { "docid": "a6a41e4af41db76c3479d9b153080744", "score": "0.6292091", "text": "public function getProjectText() {\n return $this->text;\n }", "title": "" }, { "docid": "eb6b0ddddb279c0b647b2456179d2c7d", "score": "0.6230173", "text": "public function getProjectType() {\n $projectSourceType = $this->getProjectSourceType();\n\n if (strlen($projectSourceType)>0) {\n return $projectSourceType;\n } else {\n return $this->getCurrentProject();\n }\n }", "title": "" }, { "docid": "4d7d2022be54b72fd7b345901a86dc70", "score": "0.62278455", "text": "public function getProject()\n {\n return $this->project;\n }", "title": "" }, { "docid": "4d7d2022be54b72fd7b345901a86dc70", "score": "0.62278455", "text": "public function getProject()\n {\n return $this->project;\n }", "title": "" }, { "docid": "4d7d2022be54b72fd7b345901a86dc70", "score": "0.62278455", "text": "public function getProject()\n {\n return $this->project;\n }", "title": "" }, { "docid": "e0b84734a0b48615d4f2994c1f2ffe1a", "score": "0.6227639", "text": "function app_name() : string {\n\t\treturn get_instance()->config->item(\"app_name\");\n\t}", "title": "" }, { "docid": "d4c71c5dec9dcf5081d654adfd72b7c5", "score": "0.62176377", "text": "public function getProject() {\n return $this->project;\n }", "title": "" }, { "docid": "d4c71c5dec9dcf5081d654adfd72b7c5", "score": "0.62176377", "text": "public function getProject() {\n return $this->project;\n }", "title": "" }, { "docid": "d4c71c5dec9dcf5081d654adfd72b7c5", "score": "0.62176377", "text": "public function getProject() {\n return $this->project;\n }", "title": "" }, { "docid": "f78580df2758f0ae39ad63a636664469", "score": "0.6200957", "text": "public function getProjectNumber()\n {\n return $this->project_number;\n }", "title": "" }, { "docid": "7ef355374eb5d68c4ad8373e525639c8", "score": "0.6198427", "text": "public function getPageTitle(): string\n {\n return $this->name . ' - ' . config('app.name', '');\n }", "title": "" }, { "docid": "fbc3633661521e436178638b241bf207", "score": "0.6195252", "text": "public function getAppName()\n {\n return $this->app_name;\n }", "title": "" }, { "docid": "e4ee0a8b7a9cd953829e8a9d8df6307e", "score": "0.6194756", "text": "public function getName()\n {\n return ($this->nameSpace == \"\" ? \"\" : $this->nameSpace . \".\") . $this->option->name();\n }", "title": "" }, { "docid": "bed35302b62cb2bf09628ac31e63ab87", "score": "0.61898404", "text": "protected function getProject() {\n return $this->project;\n }", "title": "" }, { "docid": "1cbdac8d8b71f286c91978a4ecb68f8e", "score": "0.6187095", "text": "public function GetName($local = false)\n\t{\n\t\tif (isset($this->params['opml']) && ($this->params['opml'] === true)) {\n\t\t\tif ($local && $this->resource) {\n\t\t\t\treturn $this->resource->translate('opml');\n\t\t\t}\n\t\t\treturn 'opml';\n\t\t} else if (isset($this->params['txt']) && ($this->params['txt'] === true)) {\n\t\t\tif ($local && $this->resource) {\n\t\t\t\treturn $this->resource->translate('project index');\n\t\t\t}\n\t\t\treturn 'project index';\n\t\t}\n\t\tif ($local && $this->resource) {\n\t\t\treturn $this->resource->translate('projects');\n\t\t}\n\t\treturn 'projects';\n\t}", "title": "" }, { "docid": "e29bdc75e56c2173cc68f29457627523", "score": "0.61837816", "text": "function app_name()\n {\n return config('app.name');\n }", "title": "" }, { "docid": "e29bdc75e56c2173cc68f29457627523", "score": "0.61837816", "text": "function app_name()\n {\n return config('app.name');\n }", "title": "" }, { "docid": "a3034fcd8be39b1ccaea6c794a0db06e", "score": "0.61783576", "text": "public static function GetNameForID($Database, $ProjectID) {\n $ProjectID = SQL::SafeInt($ProjectID);\n\n $ProjectSet = TBL_Projects::GetSetFromID($Database, $ProjectID);\n\n return($ProjectSet->Field(\"ProjName\"));\n }", "title": "" }, { "docid": "f02d86edeb8288267b62ded2ca8b8f4d", "score": "0.6167105", "text": "public static function appName(){\n $settings = self::settings();\n return $settings['site_name'];\n }", "title": "" }, { "docid": "b48d31e46caef9a39266c421084a940f", "score": "0.61245793", "text": "function app_name() {\n\t\treturn config('app.name');\n\t}", "title": "" }, { "docid": "31f493bf9d9a18e64574948372e8cab6", "score": "0.6118785", "text": "public function getAppName() {\r\n return self::$appname;\r\n }", "title": "" }, { "docid": "6bda2303b39c73d24d603a49fcc99006", "score": "0.6113419", "text": "public function getName(): string {\n return PathUtil::basename( $this->getPath() );\n }", "title": "" }, { "docid": "f1ebb3ff94d696bdc70b6fa9564ee57f", "score": "0.6111825", "text": "public function getName()\n {\n if ($this->configFileExists()) {\n $this->loadConfigFile();\n }\n\n return $this->name;\n }", "title": "" }, { "docid": "59ef419b1b5df0ea2d81070d24312bad", "score": "0.6111109", "text": "function getToolCaption()\n {\n $setup = Setup::load();\n return !empty($setup['tool_caption']) ? $setup['tool_caption'] : APP_NAME;\n }", "title": "" }, { "docid": "dd54cc1ad849238f5fc84e34d6e1e28d", "score": "0.61102015", "text": "function getProjectThatBelongsToAGivenDelta($project_name){\n\t\t$project_arr = explode(\"_\",$project_name);\n\t\tif(count($project_arr)>0){\n\t\t\treturn $project_arr[0];\n\t\t}else{\n\t\t\treturn \"\";\n\t\t}\n\t}", "title": "" }, { "docid": "8437eb3ce9d9800925077cb5d1427dc5", "score": "0.6103361", "text": "private function fetch_project_name_id($task_data){\n\n $this->load->model('project_model');\n return $this->project_model->fetch_projects_name();\n }", "title": "" }, { "docid": "dada3f451511a65cc864d5bd1895c38b", "score": "0.6081726", "text": "public static function getName(): String;", "title": "" }, { "docid": "9c8b5503e2b6a09393168968fa05b2e3", "score": "0.6079615", "text": "public function getRepoName(): string {\n return \"acquia/drupal-recommended-project\";\n }", "title": "" }, { "docid": "412bb2ff7bddbb88669b42138684a665", "score": "0.60715365", "text": "public function getProject()\n {\n\n return $this->project;\n\n }", "title": "" }, { "docid": "b892ed53c12bf76bf6dd7e31b5cdcb9f", "score": "0.6069411", "text": "protected function getSiteName(): string\n {\n return str_replace('.', '', $this->argument('name'));\n }", "title": "" }, { "docid": "625ce8ee17db4113344f90f612e80d50", "score": "0.6063396", "text": "public function name() {\n\t\tif ( $title = $this->title() ) {\n\t\t\treturn $title;\n\t\t}\n\t\tif ( isset($this->_name) ) {\n\t\t\treturn $this->_name;\n\t\t}\n\t\treturn '';\n\t}", "title": "" }, { "docid": "499928a06a571006de319fa9abbad7e4", "score": "0.6062097", "text": "public static function getName();", "title": "" }, { "docid": "055ab24695f09ef3fbb4fa59295782c9", "score": "0.60597116", "text": "public function get_app_name() {\n\t\treturn $this->app_name;\n\t}", "title": "" }, { "docid": "19c142cbfaa565684f6f77638fac9655", "score": "0.6049508", "text": "public static function SetProjectName($name) {\r\n Vars::$project_name = $name;\r\n }", "title": "" }, { "docid": "9212b94400ab3abeea7d68b122e9c0e0", "score": "0.6048559", "text": "public static function platform_title() {\n\t\tif (defined('DEPLOYNAUT_PLATFORM_TITLE')) {\n\t\t\treturn DEPLOYNAUT_PLATFORM_TITLE;\n\t\t}\n\t\treturn 'Deploynaut';\n\t}", "title": "" }, { "docid": "d1f5f70d18ad092d57e5c197a62691eb", "score": "0.6035275", "text": "function getProject() {\n\t\treturn OpenStackNovaController::_get_property( $this->instance, 'tenant_id' );\n\t}", "title": "" }, { "docid": "75113c9571eb7a5ca365fe3748a7eac2", "score": "0.60338", "text": "function identifier_from_agilezen_project(Project $project)\n{\n return sanitize_identifier($project->name);\n}", "title": "" }, { "docid": "25307d79483198fa94c1ac51430dabf5", "score": "0.60266626", "text": "public static function getName ();", "title": "" }, { "docid": "4914f912dd8a4927bfbc72427ba813d1", "score": "0.6021942", "text": "public function name()\n {\n return \"Provisioning Worker Server ({$this->server->name})\";\n }", "title": "" }, { "docid": "cd67acdad33598842abd05f13dc613cf", "score": "0.6016199", "text": "public function getName() : string\n {\n return $this->getInfo()->getFilename();\n }", "title": "" }, { "docid": "66c6a6697b8045153bff0d1f943c59e4", "score": "0.60156184", "text": "public function getProjectID();", "title": "" }, { "docid": "17a788a8633228c2b4056604705e10db", "score": "0.6014253", "text": "public function getApplicationName();", "title": "" }, { "docid": "7aba057aa7fd9411986877bf56ce7523", "score": "0.6001028", "text": "protected function getName(): string\n {\n return $this->name;\n }", "title": "" }, { "docid": "bd4f2c1ed276785b11352546bb874560", "score": "0.59994376", "text": "public function get_name()\r\n {\r\n return get_string('cronenroll', 'tool_poblacion');\r\n }", "title": "" }, { "docid": "91318d7421275781de6a111c1df33682", "score": "0.59955364", "text": "protected function get_plugin_name() {\n\t\t$path = $this->get_path();\n\t\t$array = explode('/', $path);\n\t\tunset($array[count($array) - 1]);\n\t\tunset($array[count($array) - 1]);\n\t\treturn end($array) . '/' . DIRECTORY_APP_NAME;\n\t}", "title": "" }, { "docid": "5aeebb5bfe3c491326581a5469c9cf34", "score": "0.59952915", "text": "public function name()\n {\n return \"Provisioning App Server ({$this->server->name})\";\n }", "title": "" }, { "docid": "a2dd3209cbb22a6e2be5bd60053a7398", "score": "0.59912825", "text": "public function getNomeProjeto() {\n return $this->nomeProjeto;\n }", "title": "" }, { "docid": "8ad480b7c3a261aba404ffc244f1ad66", "score": "0.5990499", "text": "function title()\n {\n if (!empty($this->application->name)) {\n return 'Application: ' . $this->application->name;\n }\n }", "title": "" }, { "docid": "9b1130bf16e1da3a69f71b5c807bcef6", "score": "0.5990453", "text": "private function getProjectId()\n {\n // try the general.php config\n $projectId = craft()->config->get('optimizelyProjectId');\n if (!$projectId)\n {\n // try the plugin settings\n $settings = craft()->plugins->getPlugin('optimizely')->getSettings();\n $projectId = $settings['projectId'];\n }\n\n return $projectId;\n }", "title": "" }, { "docid": "fa6bb9c593ed48ed58be0135ecb9d6fd", "score": "0.5981535", "text": "public function getName(){\r\n \t\treturn $this->teamname;\r\n \t}", "title": "" }, { "docid": "28789d81a53d4317b9ef36cb45c5abf6", "score": "0.5979824", "text": "function getProjectId() {\n return $this->getFieldValue('project_id');\n }", "title": "" }, { "docid": "c059e8aa88ece2f877a4a2d3f8bac0e6", "score": "0.5971095", "text": "protected function _GetTaskName()\n {\n return $this->cli_input->Get('_task');\n }", "title": "" }, { "docid": "384a2a4689fb96e8852deb7af207d5b0", "score": "0.59680575", "text": "public static function name(): string\n {\n if ('' !== static::NAME) {\n return static::NAME;\n }\n\n $parts = explode('\\\\', static::class);\n $name = array_pop($parts);\n\n return Text::snake($name);\n }", "title": "" }, { "docid": "3fbacc5b4cfa069b2441d292f1dbb5bd", "score": "0.5967272", "text": "public function getName()\n {\n return 'Linking files/folders from the shared folder into the current release [built-in]';\n }", "title": "" }, { "docid": "490e2a82f2e40002fea4a13a0e6c9bcc", "score": "0.5965273", "text": "private function getName(): string\n {\n return $this->name;\n }", "title": "" }, { "docid": "8d2c68222a38f5494057f03e6d0dcc61", "score": "0.596485", "text": "public function name() {\n\t\treturn '';\n\t}", "title": "" }, { "docid": "4fc6e2e586f67d483512684e04cc653e", "score": "0.5964396", "text": "public static function name() {\n return null;\n }", "title": "" }, { "docid": "f58745cbdf52a39c686c77a7f0d1207c", "score": "0.5962726", "text": "public function name() : string {\n\t\treturn $this->name;\n\t}", "title": "" }, { "docid": "ba2fceaac30d298f3fd520aa5c67fdee", "score": "0.5959218", "text": "function GetIdFromName()\n {\n if(!$this->Name || !$this->ProjectId)\n {\n add_log(\n \"Name='\".$this->Name.\"' or ProjectId='\".$this->ProjectId.\"' not set\",\n \"SubProject::GetIdFromName\",\n LOG_WARNING);\n return false;\n }\n\n $project = pdo_query(\"SELECT id FROM subproject WHERE projectid=\".qnum($this->ProjectId).\n \" AND name='\".$this->Name.\"' AND endtime='1980-01-01 00:00:00'\");\n\n if(!$project)\n {\n add_last_sql_error(\"SubProject GetIdFromName\");\n return false;\n }\n $project_array = pdo_fetch_array($project);\n $this->Id = $project_array['id'];\n return $this->Id;\n }", "title": "" } ]
983044c3ee1dbb8d605f2760a7da4d30
Returns the Config object used by the application.
[ { "docid": "63eeb30ff758cd417db3555e8262826e", "score": "0.0", "text": "public static function getConfig(mixed $property = null)\n\t{\n\t\treturn ($property) ? self::$config[$property] : self::$config;\n\t}", "title": "" } ]
[ { "docid": "07abf7f420bc83380bdad70fe4aaa459", "score": "0.8446071", "text": "public static function getConfig()\n {\n return new Config(self::$config);\n }", "title": "" }, { "docid": "e29ed8f1fbe81d660d6c24024af107e9", "score": "0.83385545", "text": "function config(): Config\n\t{\n\t\tstatic $config;\n\n\t\tif($config === null)\n\t\t{\n\t\t\t$config = Application::instance()->getConfig();\n\t\t}\n\n\t\treturn $config;\n\t}", "title": "" }, { "docid": "792881af25ef94b12bb73b37f474d1b3", "score": "0.82411265", "text": "static public function getConfig() {\n return Application::$config;\n }", "title": "" }, { "docid": "8139f11816fbb84368c84659f4c8d948", "score": "0.8197317", "text": "public static function getInstance(): Config\n {\n return self::$config;\n }", "title": "" }, { "docid": "c5adc9010bfb9a6ae1e1676cb166a9ef", "score": "0.8173344", "text": "public static function getInstance() {\n return self::getConfig();\n }", "title": "" }, { "docid": "093782c8851c0e2f52d20b2371fa3625", "score": "0.81135434", "text": "public function getConfig()\n {\n /** @var WebApplication|ConsoleApplication $this */\n return $this->get('config');\n }", "title": "" }, { "docid": "2bba6b6f4d8f245e36e3290fd370be10", "score": "0.811064", "text": "private function config()\n {\n return $this->app['config'];\n }", "title": "" }, { "docid": "2bba6b6f4d8f245e36e3290fd370be10", "score": "0.811064", "text": "private function config()\n {\n return $this->app['config'];\n }", "title": "" }, { "docid": "93bf8d2091303e14ad3308223f14e902", "score": "0.8091809", "text": "public static function getConfig()\n {\n return self::$config;\n }", "title": "" }, { "docid": "51b9f752b577c995e642d4f5d0410665", "score": "0.794448", "text": "public function get()\r\n {\r\n $this->ensureLoaded();\r\n return $this->config;\r\n }", "title": "" }, { "docid": "723d8f8ca01488a49073eaf61911ae8a", "score": "0.79407364", "text": "public static function getConfigInstance()\n {\n if (!static::$config) {\n static::$config = new Config\\NativeConfig;\n }\n\n return static::$config;\n }", "title": "" }, { "docid": "734bf9fb7619739fbbb61f06185cb36a", "score": "0.789065", "text": "public static function getConfig() {\n if (!self::$_configInstance)\n new acs_config();\n \n return self::$_configInstance;\n }", "title": "" }, { "docid": "cdaf6562a2fa43283b1b2210e2609e23", "score": "0.78642493", "text": "public function getConfig() : Config\n {\n return $this->config;\n }", "title": "" }, { "docid": "1ee11b5f81ca5e317ebf1c48211a4932", "score": "0.7840293", "text": "public function getConfig(): Config\n {\n return $this->config;\n }", "title": "" }, { "docid": "6802ff46475c463779b08bf901084a48", "score": "0.7831674", "text": "public function getConfig() : \\codename\\core\\config {\r\n return $this->config;\r\n }", "title": "" }, { "docid": "ddeecaac0c1247e555b3a6d86258fe12", "score": "0.78247076", "text": "public function get() {\n return new ConfigurationObject($this->config);\n }", "title": "" }, { "docid": "966581d4bf4b32c360d15e3a88f43c66", "score": "0.78208834", "text": "public function config()\n\t{\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "966581d4bf4b32c360d15e3a88f43c66", "score": "0.78208834", "text": "public function config()\n\t{\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "afb31a48f6c9f015d07d4e90a93908ec", "score": "0.7787286", "text": "protected function config()\n {\n return $this->make('config');\n }", "title": "" }, { "docid": "723b15588c0ae189029cdee5a3276181", "score": "0.7761438", "text": "public static function getConf(){\n $conf = Configuration::first();\n return $conf;\n }", "title": "" }, { "docid": "7a5347d2971f41c4889f51a4f30100ff", "score": "0.7748673", "text": "public function getConfig()\n {\n return $this['config'];\n }", "title": "" }, { "docid": "75d4e78cb5ef94b66447a3c01612d51d", "score": "0.7742413", "text": "public static function instance()\n\t{\n\t\tif (!isset(self::$instance))\n\t\t{\n\t\t\tself::$instance = new Config;\n\t\t}\n\t\treturn self::$instance;\n\t}", "title": "" }, { "docid": "f4f1027a2380cb41a053052c85a5b07f", "score": "0.7740522", "text": "public function loadConfig() {\n return (object)$this->config;\n }", "title": "" }, { "docid": "85d28c498ab9b6c15b292964488925f5", "score": "0.77327484", "text": "protected function _getConfig()\n {\n $bootstrap = Zend_Controller_Front::getInstance()->getParam('bootstrap');\n $configArray = $bootstrap->getOptions();\n return $config = new Zend_Config($configArray);\n }", "title": "" }, { "docid": "2ec12cc20cf52fb4a6e914a90bfeb60c", "score": "0.7703973", "text": "public function get_config()\n\t{\n\t\treturn $this->cfg;\n\t}", "title": "" }, { "docid": "551aa08d8b21b0480329f9e70a9bc921", "score": "0.7703385", "text": "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "551aa08d8b21b0480329f9e70a9bc921", "score": "0.7703385", "text": "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "551aa08d8b21b0480329f9e70a9bc921", "score": "0.7703385", "text": "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "551aa08d8b21b0480329f9e70a9bc921", "score": "0.7703385", "text": "public function getConfig()\n\t{\n\t\treturn $this->config;\n\t}", "title": "" }, { "docid": "895e7e162942937fe83f26f295fb5547", "score": "0.7701191", "text": "public function config()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.7689621", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.7689621", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.7689621", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.7689621", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.7689621", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.7689621", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.7689621", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.7689621", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.7689621", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.7689621", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.7689621", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.7689621", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.7689621", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.7689621", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "579f9f9ee78781bc9da3b397b7a06d76", "score": "0.7689621", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "c47760860e1ea3f98a6c476e563d04b3", "score": "0.7687845", "text": "public function getConfig()\n {\n if (null === $this->_config) {\n $this->setConfig(new Configuration());\n }\n\n return $this->_config;\n }", "title": "" }, { "docid": "db88a2fdb08da483f0bd4c2b951a4db5", "score": "0.768396", "text": "public function config(): Config;", "title": "" }, { "docid": "5d29ca742441a425838d2e79efd6631a", "score": "0.7681155", "text": "public function getConfig()\n {\n return $this->config ?: $this->setConfig()->getConfig();\n }", "title": "" }, { "docid": "b6765dadd06eb6dde959302f9d9de1b7", "score": "0.7678993", "text": "public function getConfig()\n {\n return $this->get('config');\n }", "title": "" }, { "docid": "3dad06a3004de6e7a8a74a3a918246fd", "score": "0.76693094", "text": "public function getConfig()\n {\n return $this->_config;\n }", "title": "" }, { "docid": "3dad06a3004de6e7a8a74a3a918246fd", "score": "0.76693094", "text": "public function getConfig()\n {\n return $this->_config;\n }", "title": "" }, { "docid": "d3d0df1776bf306ff906af75f53156f1", "score": "0.7660762", "text": "protected function getConfig()\n {\n\n return $this->app['config']['manticore'];\n }", "title": "" }, { "docid": "11dfdcb4ec49ee50804a65405e72f493", "score": "0.7650157", "text": "protected function getConfig()\n\t{\n\t\treturn $this->oConfig;\n\t}", "title": "" }, { "docid": "8c6daeaed79e9d70916d7973f6b20889", "score": "0.7609787", "text": "public function config()\n {\n return $this->context->getConfig();\n }", "title": "" }, { "docid": "ec39372bf3b522ac1d2ab65f371ebc94", "score": "0.7598828", "text": "public function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "71fe3e6e350a93700aafdb84a0c53c22", "score": "0.7591852", "text": "public function getConfiguration()\n {\n return $this->_config;\n }", "title": "" }, { "docid": "601b3e29feb4d5a002a5737596ee87c4", "score": "0.75823104", "text": "public function getConfig() {\n return $this->_config;\n }", "title": "" }, { "docid": "46b7288cfb6d4136f1f631935e628d22", "score": "0.75683063", "text": "protected function &getConfig(){\n \n if( is_null($this->config) ){\n $this->config = new \\stdClass();\n }\n \n return $this->config;\n \n }", "title": "" }, { "docid": "bfd20535127a95bd84da9686ca515697", "score": "0.7566423", "text": "public static function getInstance(){\n if(is_null(self::$instance)){\n self::$instance = new AppConfig();\n }\n return self::$instance;\n }", "title": "" }, { "docid": "d946892337815bd3a0e1a74a8368bc37", "score": "0.7559579", "text": "public function getConfig() \n {\n return $this->config;\n }", "title": "" }, { "docid": "ef73609ec57cd09ff5499c045e121ea9", "score": "0.7556192", "text": "function getConfig()\n {\n return $this->config;\n }", "title": "" }, { "docid": "2fc160e2e9f7b93986df5d271339c849", "score": "0.751334", "text": "public function getConfig ()\n {\n return $this->web->getConfig();\n }", "title": "" }, { "docid": "fb3d5724e6b4384be70b7b9c4d7bdc70", "score": "0.75018376", "text": "public function &getConfig() {\n return $this->config;\n }", "title": "" }, { "docid": "a30a5fa3db9d813af539b6c804df6356", "score": "0.749203", "text": "final public function getAppConfig()\n {\n return $this->appConfig;\n }", "title": "" }, { "docid": "f2a4a63b871e8cd51812672c2e735e9d", "score": "0.7455244", "text": "public function getConfig() {\r\n return $this->config;\r\n }", "title": "" }, { "docid": "fe0917247e12f2d026eac7b0036467b4", "score": "0.7451919", "text": "public function getConfig() {\n return $this->container->offsetGet('config');\n }", "title": "" }, { "docid": "4275758c327e702860df65587affaae4", "score": "0.7450455", "text": "public function getConfig()\r\n {\r\n return Zend_Registry::get('config');\r\n }", "title": "" }, { "docid": "7f75a1cd8f718216c6ff304c2fc5e24b", "score": "0.7449332", "text": "public static function getConfig()\n {\n if (!isset(self::$_config)) {\n self::$_config = \\Pley\\Laravel\\Providers\\PleyConfigServiceProvider::getConfig();\n }\n \n return self::$_config;\n }", "title": "" }, { "docid": "ff076532a0f6d67e4fecf1b7aed8add9", "score": "0.7448901", "text": "public function getConfig() {\n \t\n \t// Return our configuration\n \treturn $this->aConfig;\n }", "title": "" }, { "docid": "cc7831130009999b258e00e3ed15ba12", "score": "0.7446932", "text": "static function getConfig() {\n\t\treturn self::getRegistry()->get(self::REGISTRY_CONFIG);\n\t}", "title": "" }, { "docid": "b1fef368799870c9dd7f62c056b91cd4", "score": "0.74429685", "text": "public static function getInstance()\n {\n if (null === self::$instance) {\n self::$instance = Reflector::propertySetter('config', [])(new self());\n }\n\n return self::$instance;\n }", "title": "" }, { "docid": "61010bd14e9f1e3e17d5c158e6216fd4", "score": "0.7433347", "text": "public function getConfig(): Configuration;", "title": "" }, { "docid": "8c52449573a59cac6c2d9028a1b26413", "score": "0.74313676", "text": "public function getConfig(){\n\t\treturn $this->_config;\n\t}", "title": "" }, { "docid": "3c53a785ac9c254bdef4e2c390935880", "score": "0.74268657", "text": "public static function Config() : PhoreCloudToolConfig\n {\n if (self::$config === null)\n self::$config = new PhoreCloudToolConfig();\n return self::$config;\n }", "title": "" }, { "docid": "38f90e0ac354221b4960da0af04bffa7", "score": "0.74063826", "text": "public function getConfiguration()\n {\n if (is_null($this->_configuration)) {\n $this->_configuration = Configuration::get('config');\n }\n return $this->_configuration;\n }", "title": "" }, { "docid": "2e0ae3e718f5c12cddd61cb269cb3898", "score": "0.7401993", "text": "public function getConfigurarion()\n {\n return $this->configuration;\n }", "title": "" }, { "docid": "402a16745a500e9988ea4206b53380d6", "score": "0.7396536", "text": "public static function config()\n {\n return new Config_ForClass(\"AntonyThorpe\\SilverShopUnleashed\\UnleashedAPI\");\n }", "title": "" }, { "docid": "324cb586c8b2e74e9ec26fd63825fa8f", "score": "0.73938453", "text": "public static function get_configuration()\n\t{\n\t\tif (empty(self::$_configuration))\n\t\t{\n\t\t\tself::check();\n\t\t}\n\t\treturn self::$_configuration;\n\t}", "title": "" }, { "docid": "2ab7a25146286f880667ab337b22315a", "score": "0.73904854", "text": "public static function configure(): Config\n {\n if (!self::$isBootstrapped) {\n self::bootstrap();\n }\n\n if (!self::$config) {\n self::$config = new Config();\n }\n\n return self::$config;\n }", "title": "" }, { "docid": "0b560e4fdd703259c8e56e50eebe1519", "score": "0.73419386", "text": "public function getConfig()\n {\n return ModuleConfigLoader::load(__DIR__ . '/../config');\n }", "title": "" }, { "docid": "2b72e330fb27269ff760157b6077de09", "score": "0.7325884", "text": "public function getConfig(): StandaloneServer\\Config\n {\n return $this->config;\n }", "title": "" }, { "docid": "e897292f17426a52ff1b846be47899f4", "score": "0.73195106", "text": "public static function read()\n {\n return self::$config;\n }", "title": "" }, { "docid": "def2a777f631e3c1f4ea2a31d488fde6", "score": "0.73145276", "text": "static public function getConfig() {\n if (self::$config === null) {\n self::$config = JComponentHelper::getParams('com_bullhorn')->toObject();\n }\n return self::$config;\n }", "title": "" }, { "docid": "6acc105e8c9d8c68fbb31a4a8476391a", "score": "0.7275899", "text": "function cfg($param = null) {\n static $config;\n if (!$config) {\n $config = new \\Core\\ConfigStore('app');\n if ($config->environment) {\n $defaults = $config;\n $config = new \\Core\\ConfigStore($config->environment);\n $config->setDefaults($defaults);\n }\n }\n if ($param) {\n return $config->get($param);\n }\n return $config;\n}", "title": "" }, { "docid": "af57d8c9a0272d167a0cf35b27331397", "score": "0.7264816", "text": "public function getConfig(){\n return $this->config;\n }", "title": "" }, { "docid": "9f38dce35e4423c1c0fd9a4f10442e4c", "score": "0.7255153", "text": "public function get() {\n return $this->_configuration;\n }", "title": "" }, { "docid": "c63655fabc6810211fc5affe032b1fc8", "score": "0.72506356", "text": "protected function _get_config()\n {\n $config = Spyc::YAMLLoad(\"config.yaml\");\n return $config;\n }", "title": "" }, { "docid": "c4180b120f20c333506ce8de0d0e2289", "score": "0.7247456", "text": "public function getGlobalConfiguration();", "title": "" }, { "docid": "b84a9ecc861a8108c9086301f37d9310", "score": "0.7236963", "text": "public static function getConfig()\n {\n if(is_array(self::$config)){\n return new PhConfig(self::$config);\n }\n if(self::$config instanceof Config){\n return self::$config;\n }\n\n return new PhConfig();\n }", "title": "" }, { "docid": "3b97b8fd692c1cc6f15ac42559478fb2", "score": "0.72343767", "text": "public function getConf() {\n return static::$conf;\n }", "title": "" }, { "docid": "9cd35b6a3bca1e0c25b5f47186c065a4", "score": "0.72279745", "text": "protected function _getConfiguration() {\n if (!$this->_configuration) {\n $this->_configuration = $this->config(static::CONFIGURATION_NAME);\n }\n\n return $this->_configuration;\n }", "title": "" }, { "docid": "d77cec50303f5cf2cf09fa0c1961b52e", "score": "0.72219485", "text": "public function getConfig()\n {\n return $this->_getConfigFile();\n }", "title": "" }, { "docid": "a89a6afd729e4a260b5611e8c587a97c", "score": "0.720987", "text": "function getConfig() {\n\t\tif($this->_oConfig === null) {\n\t\t\tif(isset($this->_options['cacheConfig']) && $this->_options['cacheConfig']) {\n\t\t\t\t$this->_oConfig = $this->cacheConfig();\n\t\t\t} else {\n\t\t\t\t$this->_oConfig = $this->parseConfig();\n\t\t\t}\n\t\t}\n\t\treturn $this->_oConfig;\n\t}", "title": "" }, { "docid": "58cc46f92ed1a52542c6f73c01e9c733", "score": "0.71955353", "text": "protected function getApplicationConfiguration( )\n {\n if( ! isset($this->_configuration) )\n {\n $this->_configuration = ProjectConfiguration::getApplicationConfiguration(\n $this->_application,\n 'test',\n true\n );\n }\n\n return $this->_configuration;\n }", "title": "" }, { "docid": "7008f7e35a4fdfa52aabc127efe5264f", "score": "0.7186534", "text": "public function getProjectConfig()\n {\n /** @var WebApplication|ConsoleApplication $this */\n return $this->get('projectConfig');\n }", "title": "" }, { "docid": "638e1af5b7f636a7e294972de16c4fad", "score": "0.7177451", "text": "private function get_config() {\n if (isset($this->config)) {\n return $this->config;\n }\n\n $this->config = get_config('tool_coursebank');\n\n return $this->config;\n }", "title": "" }, { "docid": "d19e0896c6b2e6767d7ce2d0420c7b2f", "score": "0.71754545", "text": "public static function getInstance()\n\t{\n\t\tif (!isset(self::$instance))\n\t\t{\n\t\t\tself::$instance = new Configuration;\n\t\t}\n\n\t\treturn self::$instance;\n\t}", "title": "" }, { "docid": "cd9a92f3c2e3c029b13a3e66b9800716", "score": "0.716553", "text": "static function config() {\n\t\t//\t\tif (self::$configuration === null) {\n\t\t//\t\t\tself::$configuration = include self::themepath().'wpgrade-config'.EXT;\n\t\t//\t\t}\n\t\t//\n\t\t//\t\treturn self::$configuration;\n\t\treturn self::get_config();\n\t}", "title": "" }, { "docid": "2deb3025974bb2db4d62646fba7445e9", "score": "0.7141942", "text": "public function getConfig() : ContainerConfig\n {\n return $this->config;\n }", "title": "" }, { "docid": "0dc8f0be1375287c373fabf558512341", "score": "0.7138611", "text": "public static function getInstance(): Config\n {\n if (is_null(static::$store)) {\n static::$store = static::createConfig();\n }\n\n return static::$store;\n }", "title": "" }, { "docid": "7eaccb5139ab3a37adac8c3ab405a9b9", "score": "0.7134767", "text": "public static function getConfig(){\n \t$_this = Settings::getInstance();\n \t\n \tif ($_this->_config === null) {\n\t\t\t$_this->_config = new Zend_Config_Ini(DIR_APPLICATION . 'configuration/configuration.ini', 'default');\n \t}\n\n \treturn $_this->_config;\n }", "title": "" } ]
ba8f6afd2c92e8e12cdce563d70f69c9
change $in_dt to Y/m/d H:i:s
[ { "docid": "ee99b68119e87618d51a5a81e8f5aec1", "score": "0.5585298", "text": "function conv_datetime($in_dt, $to_tz, $format = 'Y/m/d H:i:s', $in_tz = 'Asia/Taipei', $use_dst = TRUE)\n {\n $in_dt = chk_datetime_input($in_dt, 'Y/m/d H:i:s');\n\n // $in_dt does not datetime value or $to_tz does not exists\n if (empty($in_dt) || empty($to_tz)) return '';\n\n $in_tz_obj = new DateTimeZone($in_tz);\n\n $convTimeZone = new DateTime($in_dt, $in_tz_obj);\n\n $in_timestamp = $convTimeZone->getTimestamp();\n\n $in_is_dst = $in_tz_obj->getTransitions($in_timestamp, $in_timestamp)[0]['isdst'];\n\n $to_tz_obj = new DateTimeZone($to_tz);\n\n $convTimeZone->setTimeZone($to_tz_obj);\n\n if (!$use_dst)\n {\n $to_timestamp = $convTimeZone->getTimestamp();\n\n $to_is_dst = $to_tz_obj->getTransitions($to_timestamp, $to_timestamp)[0]['isdst'];\n\n if ( $to_is_dst == '1' && $in_is_dst == '0' )\n {\n $convTimeZone->setTimestamp($to_timestamp - 3600);\n }\n else if ( $to_is_dst == '0' && $in_is_dst == '1' )\n {\n $convTimeZone->setTimestamp($to_timestamp + 3600);\n }\n }\n\n return $convTimeZone->format($format);\n }", "title": "" } ]
[ { "docid": "c47443d77a0b109b1cd687e7ea7927aa", "score": "0.6277984", "text": "function dateTimeToUS($data){\r\n\t\t$dt = $data;\r\n\t\t$data1 = DateTime::createFromFormat(\"d/m/Y H:i:s\", $dt);\r\n\t\treturn $data1->format(\"Y-m-d H:i:s\");\r\n}", "title": "" }, { "docid": "66e94ef7790f22e91d13a24c4fa45d85", "score": "0.60679156", "text": "function dateNetsuitetoPHP($in_date){\n\t$date_array = explode(\"T\", $in_date);\n\t$temp_date = DateTime::createFromFormat('Y-m-d',$date_array[0]);\n\t$temp_date->add(new DateInterval('P1D')); // manually add 1 day due to Netsuite timezone setting\n\treturn $temp_date->format('j/n/Y');\n}", "title": "" }, { "docid": "978c017bb0c7da233f9b21bd0f767f87", "score": "0.5932687", "text": "function fixupDate ($indate,$WDdateMDY) {\r\n // input: mm/dd/yyyy or dd/mm/yyyy format\r\n global $Status;\r\n $d = explode('/',$indate); // expect ##/##/## form\r\n if(!isset($d[2])) {$d = explode('-',$indate); } // try ##-##-#### form instead\r\n if ($d[2] > 70 and $d[2] <= 99) {$d[2] += 1900;} // 2 digit dates 70-99 are 1970-1999\r\n if ($d[2] < 99) {$d[2] += 2000; } // 2 digit dates (left) are assumed 20xx dates.\r\n if ($WDdateMDY) {\r\n $new = sprintf('%04d-%02d-%02d',$d[2],$d[0],$d[1]); // M/D/YYYY -> YYYY-MM-DD\r\n } else {\r\n $new = sprintf('%04d-%02d-%02d',$d[2],$d[1],$d[0]); // D/M/YYYY -> YYYY-MM-DD\r\n }\r\n $Status .= \"// fixupDate in='$indate' out='$new' \\n\";\r\n return ($new);\r\n\r\n}", "title": "" }, { "docid": "0193b80baebb4ac75351db98ba827362", "score": "0.5891104", "text": "function fmt_date_to_display($dt) {\n\treturn substr($dt, 4, 2) . \"/\". substr($dt, 6, 2) . \"/\" . substr($dt, 2, 2);\n}", "title": "" }, { "docid": "0591e8fe46fa621b4d76c4213a514a2b", "score": "0.5882571", "text": "function dateSmart($dateIn, $template='{hour}:{min} {day}-{month:name}-{year}'){\n\n\t\t$dateIn .= (strlen($dateIn)<=10) ? \" 00:00:00\":'';\n\t\t$dateOut = $template;\n\n\t\t$dater['year']\t = substr ($dateIn,0,4);\n\t\t$dater['month']\t = substr ($dateIn,5,2);\n\t\t$dater['day']\t = substr ($dateIn,8,2);\n\t\t$dater['hour']\t = substr ($dateIn,11,2);\n\t\t\n\t\tif( $dater['hour'] >12) {\n\t\t\t$dater['hour'] = $dater['hour'] - 12;\n\t\t\t$dater['meridian'] = 'pm';\n\t\t}else{\n\t\t\t$dater['meridian'] = 'am';\n\t\t}\n\t\t$dater['min']\t = substr ($dateIn,14,2);\n\t\t$dater['seg']\t = substr ($dateIn,17,2);\n\t\t\n\t\t$dateOut = str_replace('{year}', $dater['year'] ,$dateOut );\n\t\t$dateOut = str_replace('{month}', $dater['month'] ,$dateOut );\n\t\t$dateOut = str_replace('{day}', $dater['day'] ,$dateOut );\n\t\t$dateOut = str_replace('{hour}', $dater['hour'] ,$dateOut );\n\t\t$dateOut = str_replace('{min}', $dater['min'] ,$dateOut );\n\t\t$dateOut = str_replace('{seg}', $dater['seg'] ,$dateOut );\n\t\t$dateOut = str_replace('{meridian}', $dater['meridian'] ,$dateOut );\n\t\t\n\n\t\t\n\t\tif( substr_count($dateOut, '{month:name}') ){\n\t\t\t$dateOut = str_replace('{month:name}', date_month_name($dater['month']) ,$dateOut );\n\t\t}\n\n\n\t\tif( substr_count($dateOut, '{day:name}') ){\n\t\t\t$mkdate = mktime(0,0,0,$dater['month'], $dater['day'], $dater['year']);\n\t\t\t$dateOut = str_replace('{day:name}', date_day_name( date(\"w\", $mkdate) ) , $dateOut );\n\t\t}\n\t\treturn $dateOut;\n\t}", "title": "" }, { "docid": "ab17b2cbf445843c782c01fd09c5c71b", "score": "0.58068335", "text": "public static function int2rus($dtStr, $formatIn = \"Y-m-d\", $formatOut = \"d.m.Y\")\n {\n return self::convert($dtStr, $formatIn, $formatOut);\n }", "title": "" }, { "docid": "8fd15719bf9f3a0306f73ae288a781c2", "score": "0.5780469", "text": "function format_calendarAPI_date_snippet($dateIn){\n $APIdateFormat=\"Y-m-d\";\n $APItimeFormat=\"H:i\";\n return date($APIdateFormat,$dateIn) . \"T\" . date($APItimeFormat,$dateIn) . \":00.000Z\"; \n}", "title": "" }, { "docid": "e5a469310a747202395244d24b457518", "score": "0.5738341", "text": "function reformat_date($datetime){\n list($year, $month, $day, $hour, $min, $sec) = preg_split('/[: -]+/', $datetime);\n return \"$hour:$min $month/$day/$year\";\n }", "title": "" }, { "docid": "f0398f06d02d38e8c0cf6760935368a4", "score": "0.57377726", "text": "function sps_hdate($dt = \"00000000\")\r\n {\r\n return mysql2date(get_option('date_format'), sps_substr($dt, 0, 4) . \"-\" . sps_substr($dt, 4, 2) . \"-\" . sps_substr($dt, 6, 2));\r\n }", "title": "" }, { "docid": "8e2e33735e6b2348c0bbf1e8e606fca0", "score": "0.5728637", "text": "protected function format_date($in, $format) {\n\t\tif ($in === null || $in === '') {\n\t\t\treturn '';\n\t\t}\n\t\treturn date($format, strtotime($in));\n\t}", "title": "" }, { "docid": "afd85e78009a69fd09ecf54420eb0da1", "score": "0.5705266", "text": "function newformatsqldate($pTst) {\n\treturn adodb_date(\"Y-m-d\", $pTst); // Y-m-d H:i:s // H:ia\n}", "title": "" }, { "docid": "bec6f035c4cae26f4e713cda3d282b14", "score": "0.569704", "text": "function dateEng_stored_format($dt){\r\n\t//output is 25611201\r\n\t\r\n\tif(substr($dt,0,2)<25)\r\n\t\t$yyyy = substr($dt,0,4)+ 543;\r\n\telse $yyyy = substr($dt,0,4);\r\n\t$mm = substr($dt,5,2);\r\n\t$dd = substr($dt,8,2);\r\n\treturn ($yyyy.$mm.$dd);\r\n}", "title": "" }, { "docid": "e79786ef96644510e02de19dece3b4e0", "score": "0.56920725", "text": "public static function parseDateTimeDate($input)\n {\n if ($input) {\n $dateTime = strtotime($input);\n return date('Y-m-d', $dateTime) . ' 00:00:00';\n } else {\n return '0000-00-00 00:00:00';\n }\n }", "title": "" }, { "docid": "f067b5f09adbdd8670f1173ad3f5d3a7", "score": "0.56283414", "text": "function flipdate($dt, $seperator_in = '-', $seperator_out = '-')\n{\n\treturn implode($seperator_out, array_reverse(explode($seperator_in, $dt)));\n}", "title": "" }, { "docid": "52152a8b8a5c0e1b87ac54d38b7e3223", "score": "0.5571861", "text": "public function convert_date($in_format, $date, $out_format = 'Y-m-d') {\n\t\t$possible_delimiters = array(' ', '/', '-');\n\n\t\t$fixed_format = str_replace( $possible_delimiters, '|', $in_format );\n\t\t$vars_list = explode( '|', $fixed_format );\n\n\t\t$dayIndex = array_search('d', $vars_list);\n\t\t$monthIndex = array_search('m', $vars_list);\n\t\t$yearIndex = array_search('Y', $vars_list);\n\n\t\t$time = null;\n\t\tif ( false !== $dayIndex || false !== $monthIndex || false !== $yearIndex ) {\n\t\t\t$fixed_delimiters = str_replace( $possible_delimiters, '|', $date );\n\t\t\t$parts = explode('|', $fixed_delimiters);\n\n\t\t\t$day = isset($parts[$dayIndex]) ? $parts[$dayIndex] : null;\n\t\t\t$month = isset($parts[$monthIndex]) ? $parts[$monthIndex] : null;\n\t\t\t$year = isset($parts[$yearIndex]) ? $parts[$yearIndex] : null;\n\n\t\t\tif ( $day && $month && $year ) {\n\t\t\t\t$time = strtotime(\"{$year}-{$month}-{$day}\");\n\t\t\t}\n\t\t}\n\n\t\tif ( $time ) {\n\t\t\treturn date( $out_format, $time );\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3182c9c8cd4f50162963c090cd8331b6", "score": "0.5550881", "text": "public static function EUNaarDateFormat($input) {\n $dt = Carbon::createFromFormat('d-m-Y', $input);\n\n return $dt->format('Y-m-d');\n }", "title": "" }, { "docid": "52dc606aa73add6555804e406dfe48e3", "score": "0.5547499", "text": "public static function formatDateTime($out_format, $in_value = null, $in_format = null)\n {\n if (!empty($out_format)) {\n $in_value = (is_string($in_value) || is_null($in_value)) ? $in_value : strval($in_value);\n if (!empty($in_format)) {\n if (false === $date = \\DateTime::createFromFormat($in_format, $in_value)) {\n \\Log::error(\"Failed to format datetime from '$in_value'' to '$in_format'\");\n\n return $in_value;\n }\n } else {\n $date = new \\DateTime($in_value);\n }\n\n return $date->format($out_format);\n }\n\n return $in_value;\n }", "title": "" }, { "docid": "ef5f7e234e8dcbfd19002d9b4f8ff349", "score": "0.55226475", "text": "function dttm2unixtime($dttm2timestamp_in){\n\n\t\t$date_time = explode(\" \", $dttm2timestamp_in);\n\n\t\t$date = explode(\"-\",$date_time[0]); \n\n\t\t$time = explode(\":\",$date_time[1]); \n\n\t\tunset($date_time);\n\n\t\tlist($year, $month, $day) = $date;\n\n\t\tlist($hour,$minute,$second) = $time;\n\n\t\treturn mktime(intval($hour), intval($minute), intval($second), intval($month), intval($day), intval($year));\n\n\t}", "title": "" }, { "docid": "e160200104fb68388ae46238bc76d855", "score": "0.55163735", "text": "function datePHPtoNetsuite($in_date){\n\t$temp_date = DateTime::createFromFormat('d/m/Y',$in_date);\n\treturn $temp_date->format('Y-m-d').\"T19:00:00.000+08:00\";\n}", "title": "" }, { "docid": "cb35ad548b6d88be85e9447d1aef97c7", "score": "0.55085295", "text": "public static function datetimeFormatSpecial($date)\n{\n$dt = null;\nif ($date) {\n$dt = str_replace('/','.',$date);\n$dt = Carbon::parse($dt)->format('Y-m-d');\n}\nreturn $dt;\n}", "title": "" }, { "docid": "bf2dd7cb6cc960be67317093d47a17af", "score": "0.54985744", "text": "function change_dateformat($date) { \n $separate = explode('/',$date);\n $array = array($separate[2],$separate[1],$separate[0]);\n $unite = implode('-',$array);\n return $unite;\n }", "title": "" }, { "docid": "47f58141ea21483558441fd7341d1da0", "score": "0.5474645", "text": "function SimpleDate($dttm2timestamp_in){\n\n\t\t$date_time = explode(\" \", $dttm2timestamp_in);\n\n\t\t$date = explode(\"-\",$date_time[0]); \n\n\t\tunset($date_time);\n\n\t\tlist($year, $month, $day) = $date;\n\n\t\treturn mktime(intval(0), intval(0), intval(0), intval($month), intval($day), intval($year));\n\n\t}", "title": "" }, { "docid": "84b794e33dd62b23cbcc5f8c8dbc118b", "score": "0.54740185", "text": "function str2date($in){\n\n\t$t = split(\"/\",$in);\n\n\tif (count($t)!=3) return -1;\n\n\tif (!is_numeric($t[0])) return -1;\n\tif (!is_numeric($t[1])) return -2;\n\tif (!is_numeric($t[2])) return -3;\n\n\tif ($t[2]<1902 || $t[2]>2037) return -3;\n\n\treturn mktime (0,0,0, $t[1], $t[0], $t[2]);\n}", "title": "" }, { "docid": "a6ecfba4c530e2103c73c70f2b7eea49", "score": "0.54736674", "text": "function sql_dateconvert($sql){\n\t\t$date = date(\"Y-m-d\",strtotime($sql));\n\t\treturn str_replace(\"/\", \"-\",$date);\n\t}", "title": "" }, { "docid": "4724bb5820117108eda9c07a6b557ece", "score": "0.5465554", "text": "function toUSFormat($inputDate, $withTime = true) {\n\t\t$parts = explode(' ', $inputDate);\n\t\t$time = count($parts) == 2 ? (' ' . $parts[1]) : '';\n\t\t$parts = explode('-', $parts[0]);\n\t\t\n\t\tif($withTime) {\n\t\t\t//$datetime = $parts[1] . '/' . $parts[2] . '/' . $parts[0] . $time;\n\t\t\t//return date(\"m/d/Y h:i:s a\", strtotime($datetime));\n\t\t\treturn $parts[1] . '/' . $parts[2] . '/' . $parts[0] . $time;\n\t\t} else {\n\t\t\treturn $parts[1] . '/' . $parts[2] . '/' . $parts[0];\n\t\t}\n\t}", "title": "" }, { "docid": "fd18ca0960906aedec0b0d915c24dac6", "score": "0.5460569", "text": "function fixupTime ($intime) {\r\n global $Status,$timeOnlyFormat;\r\n $tfixed = preg_replace('/^(\\S+)\\s+(\\S+)$/is',\"$2\",$intime);\r\n $t = explode(':',$tfixed);\r\n if (preg_match('/p/i',$tfixed)) { $t[0] = $t[0] + 12; }\r\n if ($t[0] > 23) {$t[0] = 12; }\r\n if (preg_match('/^12.*a/i',$tfixed)) { $t[0] = 0; }\r\n if ($t[0] < '10') {$t[0] = sprintf(\"%02d\",$t[0]); } // leading zero on hour.\r\n $t2 = join(':',$t); // put time back to gether;\r\n $t2 = preg_replace('/[^\\d\\:]/is','',$t2); // strip out the am/pm if any\r\n $tout = date($timeOnlyFormat,strtotime(\"today $t2\"));\r\n $Status .= \"// fixupTime in='$intime' tfixed='$tfixed' t2='$t2' tout='$tout'\\n\";\r\n return($tout);\r\n\r\n}", "title": "" }, { "docid": "fc5c319c42ba4fb9593a506563fe8003", "score": "0.5450466", "text": "function dtToBr($val=null,$now=null){\n\tif($val == null){\n\t\t$date = new DateTime();\n\t\treturn $date->format('d/m/Y H:i:s');\n\t}\n\n\t// vamos verificar se o que recebemos é valido\n\tif(validateDate($val)){\n\t\t$date = new DateTime($val);\n\t\treturn $date->format('d/m/Y H:i:s');\n\t} else {\n\t\tif($now==null){\n\t\t\treturn \"00/00/0000 00:00:00\";\n\t\t} else {\n\t\t\t$date = new DateTime();\n\t\t\treturn $date->format('d/m/Y H:i:s');\n\t\t}\n\t}\n}", "title": "" }, { "docid": "9b7e3c821f1d67d281e53b3ddb676ea8", "score": "0.5441863", "text": "private function getDate($input)\r\n {\r\n if (!preg_match('|(\\d+)/(\\d+)/(\\d+)|', $input, $date)) {\r\n return '';\r\n }\r\n return '20'.$date[3].'-'.$date[2].'-'.$date[1].' 00:00:00';\r\n }", "title": "" }, { "docid": "58a725c5a556ae834a1015ab28a2717d", "score": "0.5441467", "text": "function format_datetime($datetime) {\n\t// Convert from YYYY-MM-DD to YYYY.MM.DD\n\t$datetime = str_replace('-', '.', $datetime);\n\t// Remove seconds - H:i:s to H:i\n\treturn substr($datetime, 0, -3);\n}", "title": "" }, { "docid": "44fa887a76e01288dd6265020ed3a541", "score": "0.5440477", "text": "function out_datetime($date, $format = \"F d, Y g:i:s A\") {\n date_default_timezone_set('Asia/Manila');\n\n if (!isValidDateTime($date) && !strtotime($date))\n return \"--\";\n else\n return date($format, strtotime($date));\n}", "title": "" }, { "docid": "36bc7ab92f85ac7907e1fd508c444a09", "score": "0.5437819", "text": "function XLSconvertDateToDBFormat($inputDate, $withTime = false) {\n\tif($withTime == true) {\n\t\t$parts = explode(' ', $inputDate);\n\t\t$time = count($parts) == 2 ? (' ' . $parts[1]) : '';\n\t\t$parts = explode('/', $parts[0]);\n\t\t\n\t\treturn $parts[2] . '-' . $parts[1] . '-' . $parts[0] . ' ' . $time;\n\t\t//return $parts[2] . '-' . $parts[0] . '-' . $parts[1] . ' ' . $time;\n\t} else {\n\t\t$parts = explode('/', $inputDate);\n\t\treturn $parts[2] . '-' . $parts[1] . '-' . $parts[0];\n\t\t//return $parts[2] . '-' . $parts[0] . '-' . $parts[1];\t\t\n\t}\n}", "title": "" }, { "docid": "391ef8280d3a0f1900165f93240a91b6", "score": "0.5423042", "text": "function fncDateTimeTHToYmdHis($obj) {\n if($obj==''){\n $return='';\n } else {\n list($date,$time) = explode('T', $obj);\n $return= $date.' '.substr($time,0,8);\n }\n return $return;\n}", "title": "" }, { "docid": "893a1221646443c4e652f520e987b772", "score": "0.5411658", "text": "private function format(Date $dt)\n {\n return $this->format \n ? $dt->format($this->format) \n : $dt;\n }", "title": "" }, { "docid": "e36c90ac85e69978846a58d2556f52c8", "score": "0.54007703", "text": "function LDAP_dateStringReFormat($date) {\n $year = substr($date,0,4);\n $month = substr($date,4,2);\n $day = substr($date,6,2);\n $hour = substr($date,8,2);\n $minute = substr($date,10,2);\n $second = substr($date,12,2);\n\n /* Make the Unix timestamp from the individual parts */\n $timestamp = mktime($hour, $minute, $second, $month, $day, $year);\n\n /* Output the finished timestamp */\n return date(\"d/m/Y H:i:s\",$timestamp);\n }", "title": "" }, { "docid": "c6929d1b25e1ea9b9393a169bcbb0102", "score": "0.53911287", "text": "function date_convert($date) {\n\t\t//1. Transform request parameters to MySQL datetime format.\n\t\t$date_return = null;\n\t\t$date_init = new DateTime($date);\n\t\t$start = $date_init->format('Y-m-d');\n\t\treturn $start;\n\t}", "title": "" }, { "docid": "ef1ad24d1d6b439e1ba8626b2224c95b", "score": "0.5387143", "text": "public static function changeFormatDateInput($string) {\n\t\t$date = date_create ( $string );\n\t\treturn date_format ( $date, \"Y-m-d H:i:s\" );\n\t}", "title": "" }, { "docid": "1f106d47dd1cb7d5ba6f3a65723c3eb9", "score": "0.53844804", "text": "function dateIndo($value)\n{\n return date_format(date_create($value), 'd-m-Y');\n}", "title": "" }, { "docid": "fe823363387012e99ecd16316a92a191", "score": "0.53657544", "text": "public static function dateConvert($date, $to){\n $ret = null;\n //$source = '2012-07-31';\n $date = new DateTime($date);\n //echo $date->format('d.m.Y'); // 31.07.2012\n switch ($to) {\n case 'ihm':\n $ret = $date->format('d/m/Y');\n break;\n case 'bdd':\n $ret = $date->format('Y-m-d ');\n break;\n\n default:\n //\n break;\n }\n return $ret;\n}", "title": "" }, { "docid": "e2b5c447e5b71b9ebdc1773d6351c597", "score": "0.53574216", "text": "function formatsqldate($pTst) {\n\treturn adodb_date(\"Y-m-d H:i\", $pTst); // Y-m-d H:i:s // H:ia\n}", "title": "" }, { "docid": "58da24712576209cab4b4652a5c13e65", "score": "0.53508615", "text": "public static function int2Date( $int ) {\n\t\treturn \\date( \"Y-m-d H:i:s\", $int );\n\t}", "title": "" }, { "docid": "fc48d40faa2b9b44f599998ae6910681", "score": "0.53399915", "text": "function inverser_date($madate, $style = 1)\r\n{\r\n if ($style == 1) { // Mysql => Normal(.)\r\n list($a, $m, $j) = explode(\"-\", $madate);\r\n $newdate = \"$j.$m.$a\";\r\n } \r\n if ($style == 2) { // Normal(-) => Mysql\r\n list($j, $m, $a) = explode(\"-\", $madate);\r\n $newdate = \"$a-$m-$j\";\r\n } \r\n if ($style == 3) { // Mysql => Normal(-)\r\n list($a, $m, $j) = explode(\"-\", $madate);\r\n $newdate = \"$j-$m-$a\";\r\n\t} \r\n if ($style == 4) { // Mysql aaaa-mm-jj hh:mm:ss => Normal(-)\r\n\t\t$madate=substr($madate,0,10);\r\n list($a, $m, $j) = explode(\"-\", $madate);\r\n $newdate = \"$j-$m-$a\";\r\n\t} \r\n if ($style == 5) { // Mysql aaaa-mm-jj hh:mm:ss => Normal(-) COMPLET avec <BR>\r\n\t\t$madate1=substr($madate,0,10);\r\n\t\t$madate2=substr($madate,11,8);\r\n list($a, $m, $j) = explode(\"-\", $madate1);\r\n list($h, $mn, $s) = explode(\":\", $madate2);\r\n $newdate = \"$j/$m/$a <br />$h:$mn:$s\";\r\n\t} \r\n if ($style == 6) { // Mysql aaaa-mm-jj hh:mm:ss => Normal(-) COMPLET \r\n\t\t$madate1=substr($madate,0,10);\r\n\t\t$madate2=substr($madate,11,8);\r\n list($a, $m, $j) = explode(\"-\", $madate1);\r\n list($h, $mn, $s) = explode(\":\", $madate2);\r\n $newdate = $j.'/'.$m.'/'.$a.' à '.$h.'h'.$mn;\r\n\t} \r\n if ($style == 7) { // Mysql aaaa-mm-jj hh:mm:ss => 09h33\r\n\t\t$madate2=substr($madate,11,8);\r\n list($h, $mn, $s) = explode(\":\", $madate2);\r\n $newdate = $h.'h'.$mn;\r\n\t} \r\n return $newdate;\r\n}", "title": "" }, { "docid": "e1f4059e79a06244b93bf2b960fade1e", "score": "0.5312994", "text": "public static function date2strdate( $datetime, $parno=null ) {\n static $SECONDS = ' seconds';\n static $YMDYHIS = 'Ymd\\THis';\n if( ! isset( $datetime[self::$LCYEAR] ) &&\n ! isset( $datetime[self::$LCMONTH] ) &&\n ! isset( $datetime[self::$LCDAY] ) &&\n ! isset( $datetime[self::$LCHOUR] ) &&\n ! isset( $datetime[self::$LCMIN] ) &&\n ! isset( $datetime[self::$LCSEC] ))\n return null;\n if( is_null( $parno ))\n $parno = 6;\n $output = null;\n foreach( $datetime as $dkey => & $dvalue ) {\n if( self::$LCtz != $dkey )\n $dvalue = (int) $dvalue;\n }\n $output = sprintf( self::$YMD, $datetime[self::$LCYEAR],\n $datetime[self::$LCMONTH],\n $datetime[self::$LCDAY] );\n if( 3 == $parno )\n return $output;\n if( ! isset( $datetime[self::$LCHOUR] ))\n $datetime[self::$LCHOUR] = 0;\n if( ! isset( $datetime[self::$LCMIN] ))\n $datetime[self::$LCMIN] = 0;\n if( ! isset( $datetime[self::$LCSEC] ))\n $datetime[self::$LCSEC] = 0;\n $output .= self::$T . sprintf( self::$HIS, $datetime[self::$LCHOUR],\n $datetime[self::$LCMIN],\n $datetime[self::$LCSEC] );\n if( isset( $datetime[self::$LCtz] )) {\n $datetime[self::$LCtz] = trim( $datetime[self::$LCtz] );\n if( ! empty( $datetime[self::$LCtz] )) {\n if( self::$Z == $datetime[self::$LCtz] )\n $parno = 7;\n elseif( self::isOffset( $datetime[self::$LCtz] )) {\n $parno = 7;\n $offset = self::tz2offset( $datetime[self::$LCtz] );\n try {\n $timezone = new \\DateTimeZone( self::$UTC );\n $d = new \\DateTime( $output, $timezone );\n if( 0 != $offset ) // adjust för offset\n $d->modify( $offset . $SECONDS );\n $output = $d->format( $YMDYHIS );\n }\n catch( \\Exception $e ) {\n $output = date( $YMDYHIS, mktime( $datetime[self::$LCHOUR],\n $datetime[self::$LCMIN],\n ( $datetime[self::$LCSEC] - $offset ),\n $datetime[self::$LCMONTH],\n $datetime[self::$LCDAY],\n $datetime[self::$LCYEAR] ));\n }\n }\n if( 7 == $parno )\n $output .= self::$Z;\n } // end if( ! empty( $datetime[self::$LCtz] ))\n }\n return $output;\n }", "title": "" }, { "docid": "8387260c7aa36d012c3aeceeb3aaded7", "score": "0.53115124", "text": "function mysql_datetime_to_timestamp($dt) { \n $yr=strval(substr($dt,0,4)); \n $mo=strval(substr($dt,5,2)); \n $da=strval(substr($dt,8,2)); \n $hr=strval(substr($dt,11,2)); \n $mi=strval(substr($dt,14,2)); \n $se=strval(substr($dt,17,2)); \n return mktime($hr,$mi,$se,$mo,$da,$yr); \n}", "title": "" }, { "docid": "e6c8ef65c8c74a424c6af6ddf928c0cd", "score": "0.5311471", "text": "function date_convert($date) {\n\t\t\t\t\t\t $date_return = null;\n\t\t\t\t\t\t $date_init = new DateTime($date);\n\t\t\t\t\t\t $start = $date_init->format('Y-m-d H:i:s');\n\t\t\t\t\t\t return $start;\n\t\t\t\t\t \n\t\t\t}", "title": "" }, { "docid": "7c1c0c1250759ba9cb3b53331840d48a", "score": "0.53027886", "text": "function fncDateTimeToYmdHis($obj) {\n if($obj==''){\n $return='';\n } else {\n list($date,$time) = explode(' ', $obj);\n list($yy,$mm,$dd) = explode('/', $date);\n $return= $yy.'-'.$mm.'-'.$dd.' '.$time;\n }\n return $return;\n}", "title": "" }, { "docid": "262358937f5bd5ce4f9c9977baceec5b", "score": "0.52931005", "text": "function toUSFormat($inputDate, $withTime = false) {\n\tif($withTime == true) {\n\t$parts = explode(' ', $inputDate);\n\t$time = count($parts) == 2 ? (' ' . $parts[1]) : '';\n\t$parts = explode('-', $parts[0]);\n\n\treturn $parts[1] . '/' . $parts[2] . '/' . $parts[0] . ' ' . $time;\n\t} else {\n\t$parts = explode('-', $inputDate);\n\treturn $parts[1] . '/' . $parts[2] . '/' . $parts[0];\t\n\t}\n\t}", "title": "" }, { "docid": "a3c1bbf5c0ac797b4bf12b8a400541d9", "score": "0.5271796", "text": "function convertIndoDate($date){\n \n $bulanIndo = ['', 'Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September' , 'Oktober', 'November', 'Desember'];\n\n $hariIndo = ['Minggu', 'Senin', 'Selasa','Rabu','Kamis',\"Jum'at\",'Sabtu'];\n\n $hari = date(\"w\", strtotime($date));\n $tanggal = date(\"j\", strtotime($date));\n $bulan = date('n', strtotime($date));\n $tahun = date(\"Y\", strtotime($date));\n \n\n return $hariIndo[$hari] . \" \" . $tanggal . \" \" . $bulanIndo[$bulan] . \" \" . $tahun;\n }", "title": "" }, { "docid": "0303443e3d3d554564100419e39de838", "score": "0.52687", "text": "function formatDate($datetime) {\n\t$date = date_create($datetime);\n\treturn date_format($date, 'd/m/Y');\n}", "title": "" }, { "docid": "b6fe1157349d06daf3fb2e0ef9092bc9", "score": "0.5246873", "text": "function fix_datetime($tglwktasal)\n {\n $date = explode(\" \", $tglwktasal);\n $tglwktasal=explode(\"-\",$date[0]);\n $thn=$tglwktasal[0];\n $bln=$tglwktasal[1];\n $tgl=$tglwktasal[2];\n $tglwktasal=$tgl.'-'.$bln.'-'.$thn.' '.$date[1];\n return $tglwktasal;\n }", "title": "" }, { "docid": "f0e5a53afed7a4a16969c0736c98c8be", "score": "0.52460515", "text": "function dateToCal($timestamp) \n {\n return date('Ymd\\THis', strtotime($timestamp));\n }", "title": "" }, { "docid": "565f32e4d73f7c4f478573fd31964923", "score": "0.523231", "text": "function exibirDataBr($data)\n\t{\n\t\t$timestamp = strtotime($data); \n\t\treturn date('d/m/Y', $timestamp);\t\n\t}", "title": "" }, { "docid": "fe9a63c6ec95c0c1924824ca35f18879", "score": "0.5232242", "text": "function out_date($date, $format = 'F d, Y') {\n date_default_timezone_set('Asia/Manila');\n if (!isValidDateTime($date))\n return \"--\";\n else\n return date($format, strtotime($date));\n}", "title": "" }, { "docid": "b004a44f48540475672113e5757e16a7", "score": "0.52273303", "text": "function reverse_date($date, $delimiter_in, $delimiter_out)\n {\n $date = explode($delimiter_in, $date);\n $date = $date[2].$delimiter_out.$date[1].$delimiter_out.$date[0];\n\n return $date;\n }", "title": "" }, { "docid": "839c6def18f7a73e0567c19e515228bc", "score": "0.5227203", "text": "function set_strs_datetime($str,$field_info,$info_old,$aud,$table,$id,$format='Y-m-d H:i:s') { //This function does the additions to an update script\n\t$tmpStr = $tmpAud = \"\";\n\tif($info_old != date($format,strtotime($_POST[$field_info]))) {\n\t\t$tmpStr = (($str == '' ? '' : ',').\" \". $field_info. \"='\". date($format,strtotime($_POST[$field_info])) .\"' \");\n\t}\n\tif($info_old != $_POST[$field_info]) {\n\t\t$tmpAud = ((($aud == '' ? '' : ',').\" ('\". $_SESSION['idUser'] .\"',2,'\" . $id . \"','\". $table .\"','\". $field_info .\"','\". $info_old .\"','\". $_POST[$field_info] .\"')\"));\n\t}\n\t$tmp = array(($str .= $tmpStr),($aud .= $tmpAud));\n\treturn($tmp);\n}", "title": "" }, { "docid": "17156af04a1004ea83c5360c0c886416", "score": "0.5215617", "text": "private function changeFormatDate($data) {\n\t\t$explodeDate = explode(\"/\", $data);\n\t\n\t\treturn ($explodeDate[2] - 543).\"/\".$explodeDate[1].\"/\".$explodeDate[0];\n\t}", "title": "" }, { "docid": "5b7bdf49d9126a39259f702bb8d7beee", "score": "0.5211654", "text": "public function dateFormating($date,$enday=false){\n // $newdate = $startTime->format('Y-m-d');\n // return $newdate;\n if($enday){\n return \\Carbon\\Carbon::createFromFormat('Y-m-d', $date)->endOfDay()->toDateTimeString();\n }\n return \\Carbon\\Carbon::createFromFormat('Y-m-d', $date)->toDateTimeString(); \n }", "title": "" }, { "docid": "74558c8285768b1dd8528bff46a4ae64", "score": "0.5202472", "text": "private function getDate($input)\r\n {\r\n $date = split('/', $input);\r\n if (count($date) != 3) {\r\n return '';\r\n }\r\n \r\n return '20'.$date[2].'-'.$date[1].'-'.$date[0].' 00:00:00';\r\n }", "title": "" }, { "docid": "cd19bfec973cfef63b2df2b87c360bc7", "score": "0.5197628", "text": "function convert_date($date)\n{\n $date_array=getdate(strtotime($date));\n $date=$date_array['year'].'-';\n $date_array['mon'] < 10 ? $date.='0'.$date_array['mon'].'-' : $date.=$date_array['mon'].'-';\n $date_array['mday'] < 10 ? $date.='0'.$date_array['mday'].' ' : $date.=$date_array['mday'].' ';\n $date_array['hours'] < 10 ? $date.='0'.$date_array['hours'].':' : $date.=$date_array['hours'].':';\n $date_array['minutes'] < 10 ? $date.='0'.$date_array['minutes'].':' : $date.=$date_array['minutes'].':';\n $date_array['seconds'] < 10 ? $date.='0'.$date_array['seconds'] : $date.=$date_array['seconds'];\n return $date;\n}", "title": "" }, { "docid": "18d540c4cf4888d4afa77166dbb9174b", "score": "0.5197168", "text": "public static function parseDateTime($input)\n {\n $input = trim($input);\n if ($input) {\n $dateTime = strtotime($input);\n return date('Y-m-d H:i:s', $dateTime);\n } else {\n return '0000-00-00 00:00:00';\n }\n }", "title": "" }, { "docid": "27730c383ba7f0b8587e1e65f3e04386", "score": "0.51967096", "text": "public function dateReconfigure($input_date)\n\t{\n\t\treturn $dt = date(\"d-M-Y\", strtotime($input_date));\n\t}", "title": "" }, { "docid": "9d80086d4c404821b419e8f73b5a82cc", "score": "0.5185531", "text": "protected function toW3cDate($dt)\n\t{\n\t\tif ($dt instanceof DateTimeInterface)\n\t\t{\n\t\t\t$dt = $dt->format('Y-m-d H:i:s');\n\t\t}\n\n\t\treturn $dt === null ? null : substr($dt, 0, 10) . 'T' . substr($dt, 11) . 'Z';\n\t}", "title": "" }, { "docid": "6bb7dd3b320179d7bcb8e8c4323bc5ae", "score": "0.51844287", "text": "function date_to_timestamp($dt){\n\t$stamp = strtotime($dt);\n\tif($stamp===false){\n\t\t//may be UK format\n\t\t$dt = str_replace(\"/\",\"-\",$dt);\n\t\t$stamp = strtotime($dt);\n\t\tif($stamp===false){\n\t\t\treturn \"\";\n\t\t}else{\n\t\t\treturn $stamp;\n\t\t}\n\t}else{\n\t\treturn $stamp;\n\t}\n}", "title": "" }, { "docid": "dd3b46e1077d916fb7e89647bfe70769", "score": "0.51779205", "text": "function sql_2_date( $sql ){\n return date( 'd/m/Y', strtotime( $sql ) );\n }", "title": "" }, { "docid": "ff202418180a40c0953d83c0ca053b98", "score": "0.5176716", "text": "function convertDateToDBFormat($inputDate, $withTime = false) {\n\tif($withTime == true) {\n\t\t$parts = explode(' ', $inputDate);\n\t\t$time = count($parts) == 2 ? (' ' . $parts[1]) : '';\n\t\t$parts = explode('/', $parts[0]);\n\t\t\n\t\treturn $parts[2] . '-' . $parts[0] . '-' . $parts[1] . ' ' . $time;\n\t} else {\n\t\t$parts = explode('/', $inputDate);\n\t\treturn $parts[2] . '-' . $parts[0] . '-' . $parts[1];\t\n\t}\n}", "title": "" }, { "docid": "7738dee211b61e2790a448d9802408e7", "score": "0.5166323", "text": "function convertDate($startDate, $dayOfTrip){\n\t\t\t$a = explode(\"-\", $startDate);\n\t\t\t//echo \" iter is \".$iter.\", a is \". $a[0].\" \".$a[1].\" \".$a[2].\", \";\n\t\t\t$newDate = date('Y-m-d', mktime(0, 0, 0, $a[1], $a[2]+$dayOfTrip, $a[0]));\n\t\t\t//echo \" NEW DATE IS: \".$newDate.\", \";\n\t\t\treturn $newDate;\n\t\t}", "title": "" }, { "docid": "533c5f50e15a7b59b494fa2a18f6cc63", "score": "0.5165707", "text": "function FormatDate($dtarr)\n{\n if ($dtarr)\n {\n $parts = explode(\"-\", $dtarr);\n return (date(\"d-M-Y\", mktime(0, 0, 0, $parts[1], $parts[2], $parts[0])));\n }\n else return (NULL);\n}", "title": "" }, { "docid": "d6a75c2bc5f08ebaafa7064fb1e03937", "score": "0.51641417", "text": "function brToDt($val=null,$now=null){\n\tif($val==null){\n\t\t$date = new DateTime();\n\t\treturn $date->format('Y-m-d H:i:s');\n\t}\n\n\t$tmp1 = explode(\" \",$val);\n\t\n\t// se $tmp1[1] não existir, significa que pode ter vindo \n\t// somente a data, exemplo, dd/mm/aaaa\n\t// sendo assim vamos considerar o valor 00:00:00 para o segundo campo\n\tif(!isset($tmp1[1])){\n\t\tif($now==null){\n\t\t\t$tmp1[1] = \"00:00:00\";\n\t\t} else {\n\t\t\t$date = new DateTime();\n\t\t\t$tmp1[1] = $date->format('H:i:s');\n\t\t}\n\t}\n\t\n\t// precisamos formatar somente $tmp1[0]\n\t$tmp2 = explode(\"/\",$tmp1[0]);\n\t\n\t// vamos verificar se o resultado final é válido\n\t$datetime = $tmp2[2].\"-\".$tmp2[1].\"-\".$tmp2[0].\" \".$tmp1[1];\n\t\n\tif(validateDate($datetime)){\n\t\treturn $datetime;\n\t} else {\n\t\treturn \"0000-00-00 00:00:00\";\n\t}\n}", "title": "" }, { "docid": "83342d286dac096a3bd82640706112b0", "score": "0.51633924", "text": "public function fixdate($olddate) {\n\t\treturn date('Y-m-d', self::date_to_timestamp($olddate));\n\t}", "title": "" }, { "docid": "6ecbe442bb5cb3d642ceab2c7e466fcb", "score": "0.5163262", "text": "function dateToUS($data){\r\n\tif(strtotime($data) == ''){\r\n\t\treturn '';\r\n\t}else{\r\n\t\treturn date(\"Y/m/d\",strtotime($data));\r\n\t}\r\n}", "title": "" }, { "docid": "70ed1d305800cdbc6d8e3cc7c0f4f38d", "score": "0.51558524", "text": "function input_datetime($date) {\n date_default_timezone_set('Asia/Manila');\n return date('Y-m-d G:i:s', strtotime($date));\n}", "title": "" }, { "docid": "50760170b52840173eb1cdde176ac972", "score": "0.51417136", "text": "public function PrepareDateTime($value, $format = '')\n\t{\n if($format == \"mm/dd/yyyy\"){\n $month = substr($value, 0, 2);\n $day = substr($value, 3, 2);\n $year = substr($value, 6, 4); \n $value = $year.'-'.$month.'-'.$day;\n }else if($format == \"dd/mm/yyyy\"){\n $day = substr($value, 0, 2);\n $month = substr($value, 3, 2);\n $year = substr($value, 6, 4); \n $value = $year.'-'.$month.'-'.$day;\n }else{\n // do nothing, it's yyyy-mm-dd\n } \n return $value; \n }", "title": "" }, { "docid": "b3e174109fbb145db953318caf6b8091", "score": "0.51344115", "text": "public function setDateToAttribute($input)\n {\n if ($input) {\n $this->attributes['date_to'] = Carbon::createFromFormat(config('app.date_format'), $input)->format('Y-m-d');\n }\n }", "title": "" }, { "docid": "21fbffd5d35e3c8cd312aebf2f04c0d3", "score": "0.51314276", "text": "function dateFullToIndia($date,$full)\n{\n\t$fdate = explode(\" \",$date);\n\t\n\t$ndate = explode(\"-\",$fdate[0]);\n\t$year = $ndate[0];\n\t$day = $ndate[2];\n\t$month = $ndate[1];\n\t\n\t$time = explode(\":\",$fdate[1]);\n\t$hour = $time[0];\n\t$minute = $time[1];\n\t$second = $time[2];\n\tif($hour > 12)\n\t{\n\t\t$h = $hour-12;\n\t\tif($h < 10)\n\t\t$h = \"0\" . $h;\n\t\t$fulltime = $h . \":\" . $minute . \":\" . $second . \" PM\";\n\t}\n\telse\n\t$fulltime = $hour . \":\" . $minute . \":\" . $second . \" AM\";\n\t\n\t\n\tif($full == \"full\")\n\treturn $day . \"-\" . $month . \"-\" . $year . \" \" . $fdate[1];\n\telse if($full == \"fullindia\")\n\treturn $day . \"-\" . $month . \"-\" . $year . \" \" . $fulltime;\n\telse if($full == \"time\")\n\treturn $fulltime;\n\telse\n\treturn $day . \"-\" . $month . \"-\" . $year;\n}", "title": "" }, { "docid": "04b273420e023a7e1d8041bdbe435e62", "score": "0.5130912", "text": "public function formatJalaliDatetime()\n {\n return $this->format('Y/n/j H:i:s');\n }", "title": "" }, { "docid": "7c0380c7b2881d494ffa744abe7471d1", "score": "0.5123816", "text": "public function convertDateTimeFieldsToEDateTime() {\n $this->setAttribute('passport_issue_date',strval($this->passport_issue_date));\n $this->setAttribute('birth_date',strval($this->birth_date));\n }", "title": "" }, { "docid": "7a4dcc33b204c2d37851d8def0a454d0", "score": "0.5120292", "text": "public function getEntryDateAttribute($input)\n {\n $zeroDate = str_replace(['Y', 'm', 'd'], ['0000', '00', '00'], config('app.date_format'));\n\n if ($input != $zeroDate && $input != null) {\n return Carbon::createFromFormat('Y-m-d', $input)->format(config('app.date_format'));\n } else {\n return '';\n }\n }", "title": "" }, { "docid": "dfaeead9364d3012a27ac2d59ea645af", "score": "0.51091313", "text": "function dateTimeToBR($data){\r\n\tif(strtotime($data) == ''){\r\n\t\treturn '';\r\n\t}else{\r\n\t\treturn date(\"d/m/Y H:i:s\",strtotime($data));\r\n\t}\r\n}", "title": "" }, { "docid": "640a42d8a14fd187f10e5e9ad9b63865", "score": "0.5105913", "text": "function getDatum($d) {\n $out=date(\"d. M Y, H:i\",strtotime($d));\n $out=str_replace('Jan','Januar',$out);\n $out=str_replace('Feb','Februar',$out);\n $out=str_replace('Mar','März',$out);\n $out=str_replace('Apr','April',$out);\n $out=str_replace('May','Mai',$out);\n $out=str_replace('Jun','Juni',$out);\n $out=str_replace('Jul','Juli',$out);\n $out=str_replace('Aug','August',$out);\n $out=str_replace('Sep','September',$out);\n $out=str_replace('Oct','Oktober',$out);\n $out=str_replace('Nov','November',$out);\n $out=str_replace('Dec','Dezember',$out);\n return $out;\n}", "title": "" }, { "docid": "ab2d3d22e1ed67b166e854a9fde17c68", "score": "0.510523", "text": "public function google_date_time($date){\n $ymd = $date;\n $ymd = str_replace(\" \", \"T\", $ymd);\n $ymd = $ymd.\"+02:00\";\n return $ymd;\n}", "title": "" }, { "docid": "05d42d40a92ae043e7ea21e9187926e9", "score": "0.51039433", "text": "function Time2Str ($_datetime) {\n return date(\"F jS, Y\", strtotime($_datetime));\n}", "title": "" }, { "docid": "74c0395f570a4f39ab533d6e8bfc3c26", "score": "0.50985503", "text": "function dtbr2en($dt){\n if($dt != ''){\n return substr($dt,6,4).\"-\".substr($dt,3,2).\"-\".substr($dt,0,2);\n } else{\n return '';\n }\n}", "title": "" }, { "docid": "5e49bf5421126b59f1821c279976ccf6", "score": "0.5092014", "text": "public function testDates() {\n// $id = $this->insert('INSERT INTO test (dt) values (?)', array('2013-01-01 12:30:45'));\n\n $arr = $this->getArray('select * from test');\n foreach ($arr as $data) {\n $dt = $data['dt'];\n print_r($data);\n echo strtotime($dt);\n echo ' ';\n print date('d.m.Y', strtotime($dt)) . \"\\n\";\n br();\n }\n }", "title": "" }, { "docid": "c9ea18807d0171d6ac5666f293988fef", "score": "0.50908124", "text": "public function change_date_format($date) {\n return date(\"Y-m-d H:i:s\", $date);\n }", "title": "" }, { "docid": "77c2d53264a87bd37724ea742391da9b", "score": "0.50907725", "text": "public function format_date($data)\n {\n $data = explode('/',$data);\n $data = array_reverse($data);\n $data = implode('-',$data);\n $date = new DateTime($data);\n return $date->format('Y-m-d');\n }", "title": "" }, { "docid": "bb1383b3fcde837f101e527cb726336d", "score": "0.5088378", "text": "public function convertDate($data, $row) {\n echo date(\"d M Y g:i A\", strtotime($data->updated_at));\n }", "title": "" }, { "docid": "7e3f425184c70fcdd7df17239c47897a", "score": "0.50877845", "text": "public static function date2($d) {\n\t\t\tif ( ! $d) {\n\t\t\t\treturn '';\n\t\t\t}\n\t\t\t$d = new DateTime($d);\n\t\t\treturn $d->format('Y-m-d');\n\t\t}", "title": "" }, { "docid": "0dcf0577023561b7abcdb96725ebc556", "score": "0.5087621", "text": "function format_date($date, $format = 'jS F Y H:i'){\n \n $schedule_date = new DateTime($date, new DateTimeZone('UTC') );\n if(Session::has('tz')) $schedule_date->setTimeZone(new DateTimeZone(Session::get('tz')));\n $triggerOn = $schedule_date->format($format);\n return $triggerOn;\n //$date = strtotime($date);\n //return date($format, $date);\n}", "title": "" }, { "docid": "154eb9e16d9b48ef611dd571fef2ea3b", "score": "0.5086702", "text": "function get_date(){\n return date(\"Y-m-d\").' '.date(\"H:i:s\",STRTOTIME(date('h:i:sa')));\n }", "title": "" }, { "docid": "64529918fc9b8bac1a2ac62a42f4dc2b", "score": "0.5086175", "text": "public static function parseDate($input)\n {\n if ($input) {\n $dateTime = strtotime($input);\n return date('Y-m-d', $dateTime);\n } else {\n return '0000-00-00';\n }\n }", "title": "" }, { "docid": "e56305ce35b654ceb7629e8c8f8b91d8", "score": "0.5085689", "text": "private function _getDateTime()\r\n\t\t{\r\n\t\t\t\treturn getDateTime('%Y-%m-%d %H:%M:%S');\r\n\t\t}", "title": "" }, { "docid": "8971b3bdcf7acc80515f35f76c789c35", "score": "0.50829846", "text": "function common_date_string($dt)\n{\n // return date(DATE_RFC822, $dt);\n $t = strtotime($dt);\n $now = time();\n $diff = $now - $t;\n\n if ($now < $t) { // that shouldn't happen!\n return common_exact_date($dt);\n } else if ($diff < 10) {\n return '就在刚才'; \n } else if ($diff < 60) {\n return sprintf('%d 秒钟前', $diff);\n } else if ($diff < 3600) {\n return sprintf('%d 分钟前', round($diff/60));\n } else if ($diff < 24 * 3600) {\n return sprintf('%d 小时前', round($diff/3600));\n } else {\n \t$cur = strftime('%Y-%m-%d', $now);\n\t $today = strtotime($cur);\t\t\n\t\t$yesterday = $today - 3600*24;\n\t\t$twodays = $today - 3600*24*2;\n \t\n \tif ($t > $yesterday) {\n\t return sprintf('昨天');\n\t } else if ($t > $twodays) {\n\t return sprintf('前天');\n\t } else {\n\t return common_exact_date($dt);\n\t }\n\t}\n}", "title": "" }, { "docid": "8bdb4c2c82058c0a3ab3e12c86415c15", "score": "0.50819963", "text": "function db2date($datum) {\n if ( strpos($datum,\"-\") ) {\n $D = explode(\"-\",$datum);\n $datum = sprintf (\"%02d.%02d.%04d\",$D[2],$D[1],$D[0]);\n }\n return $datum;\n}", "title": "" }, { "docid": "bf4f1773afe4e4bd6ba55a47a350080e", "score": "0.5081893", "text": "function set_strs_date($str,$field_info,$info_old,$aud,$table,$id, $format='Y-m-d') { //This function does the additions to an update script\n\t$tmpStr = $tmpAud = \"\";\n\tif($info_old != date($format,strtotime($_POST[$field_info]))) {\n\t\t$tmpStr = (($str == '' ? '' : ',').\" \". $field_info. \"='\". date($format,strtotime($_POST[$field_info])) .\"' \");\n\t}\n\tif($info_old != $_POST[$field_info]) {\n\t\t$tmpAud = ((($aud == '' ? '' : ',').\" ('\". $_SESSION['idUser'] .\"',2,'\" . $id . \"','\". $table .\"','\". $field_info .\"','\". $info_old .\"','\". $_POST[$field_info] .\"')\"));\n\t}\n\t$tmp = array(($str .= $tmpStr),($aud .= $tmpAud));\n\treturn($tmp);\n}", "title": "" }, { "docid": "99f513d76681ca1c9cecc87c5dca227d", "score": "0.5080075", "text": "function format_time($date_in_sec){\r\n\t$date_in_sec = date('H : i : s', $date_in_sec);\r\n\treturn $date_in_sec;\r\n}", "title": "" }, { "docid": "6fce12c7733a2e73ebc0a07904f8b0a8", "score": "0.5078927", "text": "function dateIndo($tgl){\n\t$tgl=substr($tgl,0,10);\n\t$ta=substr($tgl,8,2);\n\t$bu=getMonth(substr($tgl,5,2));\n\t$th=substr($tgl,0,4);\n\treturn $ta.' '.$bu.' '.$th;\n}", "title": "" }, { "docid": "bd138d2e6ff0421b1cfc9bc69e948f73", "score": "0.507769", "text": "public static function DateFormatNaarEU($input) {\n $dt = Carbon::createFromFormat('Y-m-d', $input);\n\n return $dt->format('d-m-Y');\n }", "title": "" }, { "docid": "da1dba85bb7b6c34038096ce5b999406", "score": "0.50734156", "text": "function func_date_conversion($date_format_source, $date_format_destiny, $date_str){\n $base_format = preg_split('/[:\\/.\\ \\-]/', $date_format_source);\n $date_str_parts = preg_split('/[:\\/.\\ \\-]/', $date_str );\n $date_elements = array();\n /*echo \"<pre>\";\n print_r($base_format);\n echo \"</pre>\";*/\n\n $p_keys = array_keys( $base_format );\n foreach ( $p_keys as $p_key )\n {\n if ( !empty( $date_str_parts[$p_key] ))\n {\n $date_elements[$base_format[$p_key]] = $date_str_parts[$p_key];\n }\n else\n return false;\n }\n\n if (array_key_exists('M', $date_elements)) {\n $Mtom=array(\n \"Jan\"=>\"01\",\n \"Feb\"=>\"02\",\n \"Mar\"=>\"03\",\n \"Apr\"=>\"04\",\n \"May\"=>\"05\",\n \"Jun\"=>\"06\",\n \"Jul\"=>\"07\",\n \"Aug\"=>\"08\",\n \"Sep\"=>\"09\",\n \"Oct\"=>\"10\",\n \"Nov\"=>\"11\",\n \"Dec\"=>\"12\",\n );\n $date_elements['m']=$Mtom[$date_elements['M']];\n }\n\n $dummy_ts = mktime($date_elements['H'], $date_elements['i'], $date_elements['s'], $date_elements['m'], $date_elements['d'], $date_elements['Y'] );\n\n return date( $date_format_destiny, $dummy_ts );\n}", "title": "" }, { "docid": "58a56accbd5c188096c9d1eecd55526b", "score": "0.5070165", "text": "public static function formatDatetimeBr(string $data)\n {\n return date(\"d/m/Y H:i\", strtotime($data));\n }", "title": "" }, { "docid": "e49c5ba04279187ebf52522cb7a4423f", "score": "0.5069008", "text": "function normalize_date( $date ) {\n\tif ( empty($date) ) return null;\n\t\n\t$orig = $date;\n\t$date = trim($date);\n\t\n\tif ( preg_match('/^(\\d+)([dhm])$/', $date, $m) ) {\n\t\t$u = strtoupper($m[2]);\n\t\t$min = (int)$m[1];\n\t\t\n\t\tif ( $u == \"D\" ) $min = $min * 60 * 24;\n\t\telse if ( $u == \"H\" ) $min = $min * 60;\n\t\t\n\t\t$t = time() - (60*$min); #subtract seconds from current epoch\n\t\t\n\t\t$date = date(\"YmdHis\", $t); #NOTE: relies on date_default_timezone_set ( \"UTC\" )\n\t}\n\t\n\tif ( preg_match('/^(\\d{4})-(\\d{1,2})-(\\d{1,2})/', $date, $m) ) {\n\t\t$date = substr($date, strlen($m[0]));\n\t\t$date = sprintf(\"%04d%02d%02d\", $m[1], $m[2], $m[3]) . $date;\n\t}\n\t\n\tif ( preg_match('/(\\d{1,2}):(\\d{1,2}):(\\d{1,2})$/', $date, $m) ) {\n\t\t$date = substr($date, 0, strlen($date) - strlen($m[0]));\n\t\t$date = $date . sprintf(\"%02d%02d%02d\", $m[1], $m[2], $m[3]);\n\t} elseif ( preg_match('/(\\d{1,2}):(\\d{1,2})$/', $date, $m) ) {\n\t\t$date = substr($date, 0, strlen($date) - strlen($m[0]));\n\t\t$date = $date . sprintf(\"%02d%02d%02d\", $m[1], $m[2], 0);\n\t}\n\t\n\t$date = preg_replace('/(\\d+)(\\s*T\\s*|\\s+)(\\d+)/', '\\1\\3', $date);\n\t\n\t$date = str_pad( $date, 14, \"0\" );\n\t\n\tif ( !preg_match('/^(20\\d\\d)([01]\\d)([0123]\\d)([01]\\d)([012345]\\d)([0123456]\\d)$/', $date) ) {\n\t\tthrow new Exception(\"malformed date: $orig ($date)\");\n\t}\n\t\n\treturn $date;\n}", "title": "" }, { "docid": "414747f693383484524b7289ec99481a", "score": "0.5067792", "text": "function pase_outlook_date($outlook_date) {\r\n $split_date = explode(\"T\", $outlook_date);\r\n $date = $split_date[0];\r\n $date = date(\"D, d/m/Y\", strtotime($split_date[0])); // date(\"M jS, Y\", strtotime(\"2016-09-16\")); Sep 16th, 2016\r\n $time = explode(\".\", $split_date[1]);\r\n $time = date(\"g:i a\", strtotime($time[0]));\r\n return array('date' => $date, 'time' => $time);\r\n}", "title": "" } ]
0b573360c532556a5b7cd62a76e57b41
Remove query string parameter
[ { "docid": "884825c88f3d660aec6b417699bc6862", "score": "0.5563333", "text": "public function currentUrlWithout($paramName)\n {\n return $this->currentUrlWith($paramName, null);\n }", "title": "" } ]
[ { "docid": "7e479870398249b50deaf702d6c469f4", "score": "0.7500895", "text": "protected function removeQueryString($url){\n \tif($url!=''){\n \t\t$parts=explode('&',$url,2);\n \t\tif(strpos($parts[0],'=') === false){\n \t\t\t$url=$parts[0];\n \t\t}\n \t\telse{\n \t\t\t$url='';\n \t\t}\n \t}\n \treturn $url;\n }", "title": "" }, { "docid": "9916de4e8ce97cd079c73f1c740e6636", "score": "0.7369409", "text": "function remove_from_uri($param = \"\") {\n if (!defined('SID')) define('SID', session_id());\n return substr(preg_replace(\"~(?<=[?&])($param\" . (SID ? \"\" : \"|\" . session_name()) . \")=[^&]*&~\", '', \"$_SERVER[REQUEST_URI]&\"), 0, -1);\n }", "title": "" }, { "docid": "f4e3fc5f8e45099e2387a077556bb5cc", "score": "0.73384154", "text": "function remove_url_parameter($url, $key = false)\n {\n return preg_replace( '/'. ($key ? '(\\&|)' . $key . '(\\=(.*?)((?=&(?!amp\\;))|$)|(.*?)\\b)' : '(\\?.*)').'/i' , '', $url);\n }", "title": "" }, { "docid": "53ee1337877ab7d117515c2b640586fd", "score": "0.7288057", "text": "function remove_query_info($uri) {\n if (($offset = strpos($uri, '?')) !== false) {\n for($i = 0; $i < $offset; $i++) {\n $newpath[$i] = $uri[$i];\n }\n \n return implode($newpath);\n }\n\n return $uri;\n }", "title": "" }, { "docid": "29bcffea196d78e47bc0ae4bc3eb4dcb", "score": "0.7148552", "text": "private function removeQueryStringVariables($uri) {\n if ($uri != '') {\n $parts = explode('?', $uri, 2);\n if (strpos($parts[0], '=') === false) $uri = $parts[0];\n else $uri = '';\n }\n return $uri;\n }", "title": "" }, { "docid": "f906797aac6da50a7d51383f0d053ea6", "score": "0.71099806", "text": "private function getRidOfGET()\n {\n $url = trim($this->url, '/');\n//cast information after &\n if(stripos($url, '?')!== false){ $url = explode('?', $url); $url= $url[0];}\n $this->url = $url;\n }", "title": "" }, { "docid": "8764c0c78cce0e4b7dfc676c431db165", "score": "0.7063602", "text": "protected function removeQueryStringVariables($url)\n {\n if($url !=''){\n //$parts=explode('&','$url',2);\n if(preg_match('/[\\w\\d\\-\\/]+/', $url, $matches)){\n $url = $matches[0];\n }else {\n $url='';\n }\n\n return $url;\n }\n }", "title": "" }, { "docid": "d3e93f0f0a73c800342073db363c1864", "score": "0.70426786", "text": "protected function removeQueryStringVariable( $url ): string {\n\n if ( $url !== '' ) {\n $parts = explode( '?', $url, 2 );\n\n if ( strpos( $parts[0], '=' ) === false ) {\n $url = $parts[0];\n } else {\n $url = '';\n }\n\n }\n\n return $url;\n\n }", "title": "" }, { "docid": "bcadbaf2bb3dbe2556f59b88888bf757", "score": "0.703092", "text": "public static function urlRemoveQuery($uri) {\r\n if(!empty($uri) && strlen(trim($uri)) && false !== ($offset = strrpos($uri, \"?\"))) {\r\n $uri = substr($uri, 0, $offset);\r\n }\r\n return $uri;\r\n }", "title": "" }, { "docid": "9e8b61ffdc557104412f4ab4756a0526", "score": "0.69680566", "text": "protected function dropLinkedInParams($query)\n {\n if ($query == '') {\n return '';\n }\n\n $params = explode('&', $query);\n foreach ($params as $i => $param) {\n /*\n * A key or key/value pair might me 'foo=bar', 'foo=', or 'foo'.\n */\n //get the first value of the array you will get when you explode()\n list($key) = explode('=', $param, 2);\n if (in_array($key, self::$knownLinkedInParams)) {\n unset($params[$i]);\n }\n }\n\n //assert: params is an array. It might be empty\n if (!empty($params)) {\n return '?'.implode($params, '&');\n }\n\n return '';\n }", "title": "" }, { "docid": "f165dc8220a369fbbdf29b7a2081ba20", "score": "0.68014264", "text": "public function removeQueryString($uri)\n {\n if (!empty($uri)) {\n $uriParts = explode('&', $uri);\n\n if (strpos($uriParts[0], '=') === false) {\n return $uriParts[0];\n } else {\n return '';\n }\n }\n\n return $uri;\n }", "title": "" }, { "docid": "d4bd80e9b0079df3e90ce8d73038321f", "score": "0.67823315", "text": "public static function removeQueryString($url)\n {\n if ($url) {\n $params = explode('&', $url);\n if (false === strpos($params[0], '=')) {\n return rtrim($params[0], '/');\n }\n }\n return '';\n }", "title": "" }, { "docid": "c09502779fa6717e6a9dd0c823d79afd", "score": "0.6771683", "text": "protected function __getPostRemoveEmpty(){\n if($this->request->isPost()){\n foreach($this->request->getPost() as $key => $value){\n if(empty($value) || is_null($value)){\n unset($_POST[$key]);\n }\n }\n }\n else{\n foreach($this->request->getQuery() as $key => $value){\n if(empty($value) || is_null($value)){\n unset($_GET[$key]);\n }\n }\n }\n }", "title": "" }, { "docid": "48d806206efbf8c2d0b3d6e811181932", "score": "0.6767176", "text": "public function & RemoveParam ($name = '');", "title": "" }, { "docid": "1e351d9224722f72e98c6fd44fc7a949", "score": "0.67117", "text": "public static function ignoreRequestQueryParam($param) { self::$ignoreRequestQueryParams[] = $param; }", "title": "" }, { "docid": "d9017f237523ade57014613844398502", "score": "0.66751915", "text": "function maskice_remove_query_strings( $src ) {\n if( strpos( $src, '?ver=' ) )\n $src = remove_query_arg( 'ver', $src );\n return $src;\n }", "title": "" }, { "docid": "658921d4dbfd53313b56010a44f448e2", "score": "0.66698325", "text": "public function testRemoveParam()\n {\n // Arrange\n $input = 'https://fake.url/?param1=value1&param2=value2';\n $expected = 'https://fake.url/?param2=value2';\n\n // Act\n $actual = \\Bobel\\Helpers\\Link::removeParam('param1', $input);\n\n // Assert\n $this->assertEquals($expected, $actual);\n }", "title": "" }, { "docid": "857f96005caa035bf271e6b1ade510e0", "score": "0.6608229", "text": "public function cleanParamBag() {\n $this->request->attributes->remove('action');\n $this->request->attributes->remove('_route');\n }", "title": "" }, { "docid": "50993f3f58d3930bec0b06a57fe95c9a", "score": "0.6602487", "text": "public function removeFacetInUrl($parameter) {\n $request = \\Drupal::request();\n $allFacets = $request->get('f');\n\n foreach ($allFacets as $key => $facet) {\n if (strpos($facet, $parameter) !== FALSE) {\n unset($allFacets[$key]);\n }\n }\n\n $searchQuery = [\n 'f' => $allFacets,\n 'search' => $request->get('search'),\n 'page' => $request->get('page'),\n 'p' => $request->get('p'),\n 'sort_by-products' => $request->get('sort_by-products'),\n 'sort_by-other-results' => $request->get('sort_by-other-results'),\n 'sort_order-products' => $request->get('sort_order-products'),\n 'sort_order-other-results' => $request->get('sort_order-other-results'),\n ];\n return '?' . http_build_query($searchQuery);\n }", "title": "" }, { "docid": "77616966ab2a58b99c2c96a46d24c8b7", "score": "0.6595016", "text": "public static function stripQueryString($path)\n {\n return explode('?', $path, 2)[0];\n }", "title": "" }, { "docid": "107d9ab67f562a26b35546215ba5a4b3", "score": "0.6568624", "text": "public function removeParam($paramName);", "title": "" }, { "docid": "f4099deb55b62e0953b1cad23fed0319", "score": "0.6534065", "text": "function yourls_remove_query_arg( $key, $query = false ) {\n\tif ( is_array( $key ) ) { // removing multiple keys\n\t\tforeach ( $key as $k )\n\t\t\t$query = yourls_add_query_arg( $k, false, $query );\n\t\treturn $query;\n\t}\n\treturn yourls_add_query_arg( $key, false, $query );\n}", "title": "" }, { "docid": "90c3f450fd543e399685fa055e42d47d", "score": "0.6531317", "text": "function removeParameter($url, $remove)\n {\n static $translation_table;\n\n if (!isset($translation_table)) {\n $translation_table = array_flip(get_html_translation_table(HTML_ENTITIES));\n }\n if (!is_array($remove)) {\n $remove = array($remove);\n }\n\n /* Return immediately if there are no parameters to remove. */\n if (($pos = strpos($url, '?')) === false) {\n return $url;\n }\n\n $entities = false;\n list($url, $query) = explode('?', $url, 2);\n\n /* Check if the argument separator has been already\n * htmlentities-ized in the URL. */\n if (preg_match('/=.*?&amp;.*?=/', $query)) {\n $entities = true;\n $query = strtr($query, $translation_table);\n }\n\n /* Get the list of parameters. */\n $pairs = explode('&', $query);\n $params = array();\n foreach ($pairs as $pair) {\n $pair = explode('=', $pair, 2);\n $params[$pair[0]] = count($pair) == 2 ? $pair[1] : '';\n }\n\n /* Remove the parameters. */\n foreach ($remove as $param) {\n unset($params[$param]);\n }\n\n if (!count($params)) {\n return $url;\n }\n\n /* Flatten arrays.\n * FIXME: should handle more than one array level somehow. */\n $add = array();\n foreach ($params as $key => $val) {\n if (is_array($val)) {\n foreach ($val as $v) {\n $add[] = $key . '[]=' . $v;\n }\n } else {\n $add[] = $key . '=' . $val;\n }\n }\n\n $query = implode('&', $add);\n if ($entities) {\n $query = htmlentities($query);\n }\n\n return $url . '?' . $query;\n }", "title": "" }, { "docid": "b7944fa22182ba6204f688f34e9e9f4b", "score": "0.65089375", "text": "public function RemoveParam ($name);", "title": "" }, { "docid": "9576f298435205cf7c8cc6fb820ab422", "score": "0.6415939", "text": "public static function removeQueryVars($url, $paramName)\n {\n\n $url_data = parse_url($url);\n if (!isset($url_data[\"query\"])) {\n $url_data[\"query\"] = \"\";\n }\n\n $params = array();\n parse_str($url_data['query'], $params);\n\n if (isset($params[$paramName])) {\n unset($params[$paramName]);\n }\n\n $url_data['query'] = http_build_query($params);\n\n return self::buildUrl($url_data);\n }", "title": "" }, { "docid": "90dcaa2257151d40e45bcba73e357134", "score": "0.6365441", "text": "private function stripParam($url, $paramArray)\n {\n $prefixArray = ['?', '&'];\n foreach ($paramArray as $param) {\n foreach ($prefixArray as $prefix) {\n // get character positions\n $posParam = mb_stripos($url, $prefix . $param . '=');\n $posDelimiter = mb_stripos($url, '&', min($posParam + 1, mb_strlen($url)));\n if ($posParam === false) {\n // not found\n continue;\n }\n $len = ($posDelimiter !== false && $posParam < $posDelimiter) ? $posDelimiter - $posParam : mb_strlen($url);\n // stripped URL\n $url = substr_replace($url, '', $posParam, $len);\n }\n }\n // fix any newly caused URL format problems\n $url = $this->fixURL($url);\n return $url;\n }", "title": "" }, { "docid": "ba49ec81b79b228663de36a5ec886369", "score": "0.63383704", "text": "public function stripQueryString( $keys=NULL )\n\t{\t\t\n\t\tif ( $keys === NULL and !\\IPS\\Settings::i()->htaccess_mod_rewrite )\n\t\t{\n\t\t\t$keys = $this->queryString;\n\t\t\tunset( $keys[ \"/{$this->friendlyUrlComponent}/\" ] );\n\t\t\t$keys = array_keys( $keys );\n\t\t}\n\t\t\n\t\treturn parent::stripQueryString( $keys );\n\t}", "title": "" }, { "docid": "0ec1d0263e9d4760b217431309641eee", "score": "0.63185793", "text": "function removeQueryStringVar($qs, $var) {\n\tdeprecated();\n\treturn queryString::getInstance()->remove($var,$qs);\n\n}", "title": "" }, { "docid": "dce1d1b7991d6b3c5d57d2ae52929dc1", "score": "0.6315561", "text": "public static function removeGetParametersFromUrl($url, array $params)\n {\n $query = array();\n\n $queryString = parse_url($url, PHP_URL_QUERY);\n \n // parse the query string\n parse_str($queryString, $query);\n\n // remove the unneeded parameters\n foreach ($params as $param)\n {\n if (isset($query[$param]))\n {\n unset($query[$param]);\n }\n }\n\n $newQueryString = http_build_query($query);\n\n // replace exclamation marks with '&&&'\n \n $queryString = str_replace('!', '&&&', $queryString);\n \n // rebuild the url\n $fullUrl = preg_replace(\"!\\??{$queryString}!\", '', str_replace('!', '&&&', $url));\n\n // replace '&&&' with an exclamation mark\n $fullUrl = str_replace('&&&', '!', $fullUrl);\n \n $fullUrl = ($newQueryString) ? $fullUrl . '?' . $newQueryString : $fullUrl;\n \n return $fullUrl;\n }", "title": "" }, { "docid": "9990ef834e05015396304f77745008f2", "score": "0.6277742", "text": "private function prepareParams() {\n\n $paramString = '';\n\n\n // strip off the first '&'\n if (strlen($paramString) > 0) {\n $paramString = substr($paramString, 1);\n }\n return $paramString;\n\n }", "title": "" }, { "docid": "0d2c2d5f5836206d5c123193ab707b89", "score": "0.6253257", "text": "public function remove($var, $qs = NULL) {\n\t\tif (isnull($qs)) $qs = $_SERVER['QUERY_STRING'];\n\n\t\tif ($qs[0] == \"?\") {\n\t\t\t$qs = substr($qs, 1);\n\t\t\t$qmTest = TRUE;\n\t\t}\n\t\telse {\n\t\t\t$qmTest = FALSE;\n\t\t}\n\n\n\t\tif ($qs[strlen($qs)-1] == \"&\") {\n\t\t\t$qs = substr($qs, 0, -1);\n\t\t\t$ampTest = TRUE;\n\t\t}\n\t\telse {\n\t\t\t$ampTest = FALSE;\n\t\t}\n\n\t\tparse_str($qs, $output);\n\t\tif (array_key_exists($var, $output)) unset($output[$var]);\n\n\t\treturn urldecode((($qmTest)?\"?\":\"\").http_build_query($output).(($ampTest)?\"&\":\"\"));\n\n\t}", "title": "" }, { "docid": "bfc62f3894a3c6331e357d7e5246b1ee", "score": "0.620804", "text": "function filterParamString($value)\n{\n\t$result = preg_replace(\"/[^a-zA-Z0-9 +]+/\", \"\", $value);\n\n\treturn $result;\n}", "title": "" }, { "docid": "cab88ab29d838cb82ba4c8456f5c59ab", "score": "0.61881447", "text": "public function unset(): void\n {\n unset($this->params[self::PARAM_NAME]);\n }", "title": "" }, { "docid": "266f2b55f896ddee392547a6d9b5c7b1", "score": "0.6157605", "text": "public function getUrlWithoutArgs()\n {\n $url = $this->getUrl();\n if (($pos = strpos($url, '?')) !== false) {\n $url = substr($url, 0, $pos);\n }\n return $url;\n }", "title": "" }, { "docid": "2a52dae274aa0b99d2950237578b520f", "score": "0.6142436", "text": "public function unsetParam($key) {\n $key = (string) $key;\n if (isset($this->_params[$key])) {\n unset($this->_params[$key]);\n }\n\n return;\n }", "title": "" }, { "docid": "280297665ff54d8b6162c6518f95ed01", "score": "0.61070466", "text": "public static function remove_query_strings( $src ) {\n\t\treturn remove_query_arg(\n\t\t\tarray(\n\t\t\t\t'ver',\n\t\t\t\t'version',\n\t\t\t\t'v',\n\t\t\t\t'generated',\n\t\t\t),\n\t\t\t$src\n\t\t);\n\t}", "title": "" }, { "docid": "ce15265d200b6d2beeb36bcddeb45a34", "score": "0.6078931", "text": "function get_preserve_string( $get_preserve )\n{\n $params = Array();\n for( $i = 0; $i < count($get_preserve); $i++ )\n {\n if( isset($_GET[$get_preserve[$i]]) )\n {\n $params = array_merge( $params,\n Array( $get_preserve[$i] => @$_GET[$get_preserve[$i]] ) );\n }\n }\n $old_params = make_query_string( $params );\n\n return $old_params;\n}", "title": "" }, { "docid": "17b9481e0e005851080445d747f1eb30", "score": "0.60747933", "text": "function indextank_restore_query($ignored_parameter){\n global $wp_query;\n if ($wp_query->is_search){\n if ($wp_query->query_vars['s'] == '' and isset($wp_query->query_vars['it_s'])) {\n $wp_query->query_vars['s'] = $wp_query->query_vars['it_s'];\n }\n }\n}", "title": "" }, { "docid": "2e46948c81a4929dbc6da76033c5d08c", "score": "0.60687506", "text": "function removeBlankUrl()\n {\n $unfilteredRoute = $this->_filteredRoute;\n\n foreach ($unfilteredRoute as $key => $value)\n {\n if ($value == '')\n {\n unset($unfilteredRoute[$key]);\n }\n }\n $this->_filteredRoute = array_values($unfilteredRoute);\n }", "title": "" }, { "docid": "cda51f1aa47540cb10bdf012be8023fe", "score": "0.60609996", "text": "function remove_get_parameters($url = null)\n\t{\n\t\t$remove_get_parameters = new NSY_XSS_Filter();\n\t\t$func = $remove_get_parameters->remove_get_parameters($url);\n\n\t\treturn $func;\n\t}", "title": "" }, { "docid": "b8b09827a55e39385e69f199f33c9158", "score": "0.6043746", "text": "public function URLWithoutSignature()\n {\n $sig = $this->getQueryParameter('sig');\n // parsedUrl until &sig=[digital signature]\n \n $url_arr = explode(\"&sig=\", $this->parsedURL);\n return $url_arr[0];\n // old and bad method\n //return substr($this->parsedURL, 0, -5-strlen(urlencode(isset($sig) ? $sig : NULL)));\n }", "title": "" }, { "docid": "e5c854b8b3a9bd8e816ed60ee8ddcc2b", "score": "0.60399204", "text": "private function _sanitize_param($param) {\n unset($param['apply_function']);\n unset($param['max_length']);\n unset($param['min_length']);\n unset($param['label']);\n unset($param['uri']);\n return $param;\n }", "title": "" }, { "docid": "39fbf207b41b4de9bf1343f0f9429213", "score": "0.6026063", "text": "public function getRemoveUrl()\r\n {\r\n \t$query = array(strtolower($this->getFilterOptions()->getCode()) =>null);\r\n \t$params['_current'] = true;\r\n \t$params['_use_rewrite'] = true;\r\n \t$params['_query'] = $query;\r\n \t$params['_escape'] = true;\r\n \treturn Mage::getUrl('*/*/*', $params);\r\n }", "title": "" }, { "docid": "92904156d682926fc11b56784c95c2b1", "score": "0.6025638", "text": "static function filterQueryString() {\n\t\t$clean = array();\n\t\tforeach ($_GET as $key => $val) {\n\t\t\t$clean[$key] = htmlspecialchars_decode(filter_var($val, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW));\n\t\t}\n\t\treturn $clean;\n\t}", "title": "" }, { "docid": "16b1f0ed8cecd4e7314f26afeafdd284", "score": "0.60191035", "text": "function aw_get_query_args( $excluded = [] ) {\n\t$params = AutomateWoo\\Clean::recursive( $_GET );\n\n\tforeach( $excluded as $key ) {\n\t\tunset( $params[ $key ] );\n\t}\n\n\treturn $params;\n}", "title": "" }, { "docid": "51361b8736f0c6ca1a625dd77d936150", "score": "0.6004959", "text": "public function sanitizeUrl(){\n $this->request->setCurrUrl(rtrim($this->request->getCurrUrl(), '/'));\n\n }", "title": "" }, { "docid": "eae52dc181add70d9ed51ac1ba3d8990", "score": "0.59968853", "text": "protected function unsetGetParameters($data = array())\n {\n if (empty($data)) {\n $_GET = array();\n } else {\n foreach ($data as $key => $value) {\n unset($_GET[$key]);\n }\n }\n }", "title": "" }, { "docid": "6f907d5d37b8c4388f256384eb3a271f", "score": "0.5984909", "text": "public static function purge_amp_query_vars() {\n\t\t$query_vars = array(\n\t\t\t'__amp_source_origin',\n\t\t\t'_wp_amp_action_xhr_converted',\n\t\t\t'amp_latest_update_time',\n\t\t\t'amp_last_check_time',\n\t\t);\n\n\t\t// Scrub input vars.\n\t\tforeach ( $query_vars as $query_var ) {\n\t\t\tif ( ! isset( $_GET[ $query_var ] ) ) { // phpcs:ignore\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tself::$purged_amp_query_vars[ $query_var ] = wp_unslash( $_GET[ $query_var ] ); // phpcs:ignore\n\t\t\tunset( $_REQUEST[ $query_var ], $_GET[ $query_var ] );\n\t\t\t$scrubbed = true;\n\t\t}\n\n\t\tif ( isset( $scrubbed ) ) {\n\t\t\t$build_query = function( $query ) use ( $query_vars ) {\n\t\t\t\t$pattern = '/^(' . join( '|', $query_vars ) . ')(?==|$)/';\n\t\t\t\t$pairs = array();\n\t\t\t\tforeach ( explode( '&', $query ) as $pair ) {\n\t\t\t\t\tif ( ! preg_match( $pattern, $pair ) ) {\n\t\t\t\t\t\t$pairs[] = $pair;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn join( '&', $pairs );\n\t\t\t};\n\n\t\t\t// Scrub QUERY_STRING.\n\t\t\tif ( ! empty( $_SERVER['QUERY_STRING'] ) ) {\n\t\t\t\t$_SERVER['QUERY_STRING'] = $build_query( $_SERVER['QUERY_STRING'] );\n\t\t\t}\n\n\t\t\t// Scrub REQUEST_URI.\n\t\t\tif ( ! empty( $_SERVER['REQUEST_URI'] ) ) {\n\t\t\t\tlist( $path, $query ) = explode( '?', $_SERVER['REQUEST_URI'], 2 );\n\n\t\t\t\t$pairs = $build_query( $query );\n\t\t\t\t$_SERVER['REQUEST_URI'] = $path;\n\t\t\t\tif ( ! empty( $pairs ) ) {\n\t\t\t\t\t$_SERVER['REQUEST_URI'] .= \"?{$pairs}\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a5600e949be4162df2a65d2d26676c54", "score": "0.5977451", "text": "public function getParamsQuery() {\n $params = http_build_query($this->data);\n return ($params == '') ? '' : '?' . $params;\n }", "title": "" }, { "docid": "4f1b7241453ec6e2b06b9b7471205379", "score": "0.59758556", "text": "public function toQueryStringWithoutDay()\n {\n return $this->toQueryString(array(self::QUERY_STRING_NO_DAY));\n }", "title": "" }, { "docid": "91160d864857de716acdfc89c05206c6", "score": "0.59750384", "text": "public function cleanupRequest(Event $event)\r\r\n {\r\r\n $params = $event['request']->getParams();\r\r\n unset($params[self::REDIRECT_COUNT]);\r\r\n unset($params[self::PARENT_REQUEST]);\r\r\n }", "title": "" }, { "docid": "8f57f35e3f9a1487641dd2e51e86b55b", "score": "0.5962372", "text": "public function testParsesQueryStringThatDoesNotExist()\n {\n unset($_SERVER['QUERY_STRING']);\n $env = \\Slim\\Environment::getInstance(true);\n $this->assertEquals('', $env['QUERY_STRING']);\n }", "title": "" }, { "docid": "b264d081532164da61bbd315fc782af1", "score": "0.59468514", "text": "function sanitizeUrl()\n{\n\n if(strpos($_SERVER['QUERY_STRING'], '&amp;'))\n {\n $_SERVER['QUERY_STRING'] = str_replace('&amp;', '&', $_SERVER['QUERY_STRING']);\n $_SERVER['REQUEST_URI'] = str_replace('&amp;', '&', $_SERVER['REQUEST_URI']);\n\n foreach($_GET as $sVarName => $sValue)\n {\n if(substr($sVarName, 0, 4) == 'amp;')\n {\n $_GET[substr($sVarName, 4)] = $sValue;\n }\n }\n }\n}", "title": "" }, { "docid": "f2e15aad7aa8465cf8054c80dc63e362", "score": "0.5944726", "text": "private static function removeArbitraryParams($params)\n {\n $params2 = [];\n if (is_array($params)) {\n for ($i = 0; $i < count($params); $i++) {\n if (!strpos($params[$i], '?')) {\n $params2[] = $params[$i];\n }\n }\n }\n return $params2;\n }", "title": "" }, { "docid": "9c3966265c361afe62e4afb04c89ab33", "score": "0.59250474", "text": "public static function clearParams($route)\n {\n $key = self::getKey($route, self::PREFIX_FILTER_PARAMS);\n\n self::clear($key);\n }", "title": "" }, { "docid": "c9e7868ac46ee8a7d97e3b2f2e791e48", "score": "0.59187883", "text": "public function testClearParams()\n {\n // Arrange\n $input = 'https://fake.url/?param1=value1&param2=value2';\n $expected = 'https://fake.url/';\n\n // Act\n $actual = \\Bobel\\Helpers\\Link::clearParams($input);\n\n // Assert\n $this->assertEquals($expected, $actual);\n }", "title": "" }, { "docid": "fe91f925acd37991bb48bcf468996796", "score": "0.5912486", "text": "public function clearParams()\n {\n $this->params = [];\n }", "title": "" }, { "docid": "d48739fd7d4204a7b907dd3d94d17381", "score": "0.5899061", "text": "private function resolveParameter($string='')\n\t{\n\t\tif (!$stapler = strpos($string, '?')) {\n\n\t\t\treturn $string;\n\t\t\n\t\t}\n\n\t\t$substring = substr($string, $stapler);\n\n\t\treturn str_replace($substring, '', $string);\n\t}", "title": "" }, { "docid": "96962199b2308218b1fedafe73cc9420", "score": "0.58814603", "text": "protected function formatQueryString()\n {\n parse_str($_SERVER['QUERY_STRING'], $queryParams);\n\n $rp = new \\Gossamer\\Aset\\Http\\RequestParameters($this->uri, $this->nodeConfig, $queryParams);\n\n $queryString = $rp->getQueryStringParameters($queryParams);\n if(!is_null($queryString)) {\n $this->queryString = $queryString;\n }\n\n unset($rp);\n }", "title": "" }, { "docid": "2149651c0fdec1798aa8b299dea949d3", "score": "0.5871403", "text": "public function unsetGet($parameter)\n {\n if (isset($this->getParams[$parameter]))\n {\n unset($this->getParams[$parameter]);\n unset($this->requestParams[$parameter]);\n }\n }", "title": "" }, { "docid": "5f999a65e1c70878abe866854683af9c", "score": "0.58619916", "text": "function query_string()\n{\n $uri = request()->server('REQUEST_URI');\n $pieces = preg_split(\"/\\?/\", $uri);\n if (isset($pieces[1])) {\n return $pieces[1];\n } else {\n return \"\";\n }\n}", "title": "" }, { "docid": "5ac4cbfc54ff24c1040ba559e90b4305", "score": "0.5861874", "text": "public function getQueryString(): string\n {\n return http_build_query($this->params);\n }", "title": "" }, { "docid": "d10b9f540b77de4ab53423c7008c1266", "score": "0.58556265", "text": "protected function getQueryParameters()\n {\n return array_diff_key($_GET, array_flip(['page']));\n }", "title": "" }, { "docid": "0311279e21c88a56b6dd3bec76df4065", "score": "0.5854868", "text": "static public function getParamstring($excl = ''){\n $excl = explode(',', $excl);\n\n $uri = mb_strtolower($_SERVER['REQUEST_URI'], \"UTF-8\");\n $uri = parse_url(preg_replace('/\\/+/', \"/\", $uri, PHP_URL_PATH));\n $uri = preg_replace('/\\/+/', \"/\", $uri['path'].'/');\n\n $result = $uri.'?';\n\n foreach($_GET as $key => $value){\n if(!in_array($key, $excl) && $value != ''){\n $result .= '&'.$key.'='.$value;\n };\n };\n\n $result = $result.'&';\n $result = preg_replace('/\\?\\&/', '?', $result);\n\n return $result;\n }", "title": "" }, { "docid": "f5743b0b42a0f636fa079db5157ffd4d", "score": "0.58368", "text": "public static function sanitizeUrlParam($in) {\n return trim(preg_replace('/[^[:alnum:]\\.,@_-\\s]/', '', $in));\n }", "title": "" }, { "docid": "1b337e6f06f5c5cff315d415cbb3de10", "score": "0.5818388", "text": "public function getStripQuery()\n {\n return isset($this->strip_query) ? $this->strip_query : false;\n }", "title": "" }, { "docid": "b5a2cb7939738d4b4c7878ea70c23641", "score": "0.5812285", "text": "public function decodeUrlParams() {\n \n $request = $this->getRequest();\n $params = $request->getParams();\n \n unset($params['module'], $params['controller'], $params['action']);\n \n array_walk_recursive($params, function(&$value, $key, $request) {\n \n if (!is_object($value) && !$request->isPost()) {\n \n $request->setParam($key, urldecode($value));\n $_REQUEST[$key] = urldecode($value);\n $_GET[$key] = urldecode($value);\n \n }\n }, $request);\n }", "title": "" }, { "docid": "1c3d8bdceb1aa19e8c3fb85632e42c14", "score": "0.5794651", "text": "public function getQueryString(): string\n {\n return trim((string) BackendModel::getRequest()->getRequestUri(), '/');\n }", "title": "" }, { "docid": "f4b5f9b425c39a5cb48ddf452191a39b", "score": "0.5781094", "text": "public function clear_parameters()\n\t{\n\t\t$this->parameters = array();\n\t}", "title": "" }, { "docid": "f95ecfd41abc48caca63c3ee36c3d968", "score": "0.57780576", "text": "public function filter_query() {\n\n\t\t\tif ( ! is_comment_feed() )\n\t\t\t\treturn NULL;\n\n\t\t\tif ( isset( $_GET['feed'] ) ) {\n\t\t\t\twp_redirect( remove_query_arg( 'feed' ), 301 );\n\t\t\t\texit;\n\t\t\t}\n\t\t\t// redirect_canonical will do the rest\n\t\t\tset_query_var( 'feed', '' );\n\t\t}", "title": "" }, { "docid": "7781ad5bd3778923186d5374686d1778", "score": "0.5761275", "text": "public function removeQueryVar($url, $remove_vars) {\n\t\treturn $this->filterQueryParams($url, $remove_vars);\n\t}", "title": "" }, { "docid": "31d513bbaf69278da4092f6491278ed3", "score": "0.5761113", "text": "public function paramEmpty($name)\n {\n return Pfw_Request::paramEmpty($name);\n }", "title": "" }, { "docid": "462f80c438a4face2826b2e1cd3219f6", "score": "0.57601917", "text": "function clean_get_query ($needle, $include_script_name = true, $script_name = '')\n{\n\t$foo = '';\n\n\t// get active php\n\tif (empty ($script_name))\n\t\t$t = parse_url (urldecode (cur_url()));\n\telse\n\t\t$t = parse_url ($script_name);\n\n\tif (empty ($t['scheme'])) $t['scheme'] = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') || $_SERVER['SERVER_PORT'] == 443) ? 'https://' : 'http://';\n\tif (empty ($t['host'])) $t['host'] = '';\n\t$script = $t['scheme'].'://'.$t['host'].$t['path']; //dirname ($t['path']).'/'.basename ($t['path']);\n\tif (!is_array ($needle)) $needle = array ($needle);\n\t$needle[] = 'permalink_request';\n\n\t// filter\n\tif (empty ($script_name))\n\t{\n\t\tforeach ($_GET as $key => $val)\n\t\t{\n\t\t\tif (!is_array ($val)) $val = urlencode ($val);\n\t\t\tif (!in_array ($key, $needle)) $foo .= \"&amp;$key=$val\";\n\t\t}\n\t}\n\telse\n\t{\n\t\tif (!empty ($t['query'])) parse_str ($t['query'], $qArr); else ($qArr = array ());\n\t\tforeach ($qArr as $key => $val)\n\t\t{\n\t\t\tif (!is_array ($val)) $val = urlencode ($val);\n\t\t\tif (!in_array ($key, $needle)) $foo .= \"&amp;$key=$val\";\n\t\t}\n\t}\n\n\tif ($include_script_name)\n\t\treturn $script.'?'.substr ($foo, 5);\n\telse\n\t\treturn substr ($foo, 5);\n}", "title": "" }, { "docid": "7777daf13270a6de5cfd707b1794001e", "score": "0.57525885", "text": "protected function shouldRetainParam($param) {\n foreach (self::$DROP_QUERY_PARAMS as $drop_query_param) {\n if (strpos($param, $drop_query_param . '=') === 0) {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "2aac0b2b2ca2d238d603e2101f559161", "score": "0.5737055", "text": "protected function trimQueryString($url)\n {\n return strtok($url, '?');\n }", "title": "" }, { "docid": "40fcbcaccfe0620b55bd0cb4f97e89d5", "score": "0.57285154", "text": "private static function get_hidden_parameters() : array {\n\t\t$result = $_GET;\n\t\tif ( isset( $result['language_filter'] ) ) {\n\t\t\tunset( $result['language_filter'] );\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "f006435bcc837fdbfc50821522293bcd", "score": "0.5725331", "text": "public function removeGet($key)\n\t{\n\t\tif($this->hasGet($key))\n\t\t{\n\t\t\tunset($_GET[$key]);\n\t\t}\n\t}", "title": "" }, { "docid": "b1487d97c8e823bc59436d81ce183b6f", "score": "0.57057226", "text": "function searchRequestFilter( $query_vars ) {\n if( isset( $_GET['s'] ) && empty( $_GET['s'] ) ) {\n $query_vars['s'] = \" \";\n }\n return $query_vars;\n}", "title": "" }, { "docid": "a3a610b933d69690ad94cbb7b51c88a3", "score": "0.5693287", "text": "private function _filter()\n\t{\n\t\tforeach ($this->_params AS $key => $val)\n\t\t{\n\t\t\tif (is_array($val))\n\t\t\t{\n\t\t\t\tunset($this->_params[$key]);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b2f8209db04200d4597bf5cad0194c54", "score": "0.5685204", "text": "function filter_param($filter_param = NULL) {\n if ($filter_param != NULL) {\n $this->options['filter_param'] = $filter_param;\n }\n return $this->options['filter_param'];\n }", "title": "" }, { "docid": "8d76b8d27a14f700384203fc94da6bb3", "score": "0.566671", "text": "private function getQueryString($startnum = null)\n {\n if ($startnum === null) {\n $startnum = !empty($_GET['start']) ? $_GET['start'] : 0;\n }\n\n $_GET['start'] = $startnum;\n\n $qs = '?';\n foreach ($_GET as $k => $v) {\n $qs .= urlencode($k) . '=' . urlencode($v) . '&';\n }\n\n // If the query string is just a question mark, lose it\n if ($qs == '?') {\n $qs = '';\n }\n\n return preg_replace('/&$/', '', $qs);\n }", "title": "" }, { "docid": "613e6a57e361dcc30a44e0d754c62b17", "score": "0.56580204", "text": "public function resetParams()\r\n {\r\n $this->params = array();\r\n }", "title": "" }, { "docid": "dd37e1e0f43de9445769aba1bfbfb712", "score": "0.5655414", "text": "public function testRemovesQueryStringFromPathInfo()\n {\n $_SERVER['SCRIPT_NAME'] = '/foo/index.php';\n $_SERVER['REQUEST_URI'] = '/foo/bar/xyz?one=1&two=2&three=3';\n unset($_SERVER['PATH_INFO']);\n $env = \\Slim\\Environment::getInstance(true);\n $this->assertEquals('/bar/xyz', $env['PATH_INFO']);\n }", "title": "" }, { "docid": "9061b2d2b59842040fe0742162fd50d9", "score": "0.56389314", "text": "private function parseQueryString(): string\n {\n $query = $this->superglobals->server('QUERY_STRING') ?? (string) getenv('QUERY_STRING');\n\n if (trim($query, '/') === '') {\n return '/';\n }\n\n if (strncmp($query, '/', 1) === 0) {\n $parts = explode('?', $query, 2);\n $path = $parts[0];\n $newQuery = $parts[1] ?? '';\n\n $this->superglobals->setServer('QUERY_STRING', $newQuery);\n } else {\n $path = $query;\n }\n\n // Update our global GET for values likely to have been changed\n parse_str($this->superglobals->server('QUERY_STRING'), $get);\n $this->superglobals->setGetArray($get);\n\n return URI::removeDotSegments($path);\n }", "title": "" }, { "docid": "6104948c96dd65066f3ba93fb8708fbc", "score": "0.5635515", "text": "function getQueryString()\n {\n $queryString = $this->queryString;\n\n if(!empty($this->params)) {\n ksort($this->params);\n\n if(strpos($queryString, \"?\")) {\n // question mark placeholders\n $queryString = vsprintf(str_replace(\"?\", \"%s\", $queryString), $this->params);\n } else {\n // named params\n $queryString = str_replace(array_keys($this->params), array_values($this->params), $queryString);\n }\n }\n return $queryString;\n }", "title": "" }, { "docid": "fdb33abae2788ee5a21e260760208831", "score": "0.5633823", "text": "private function cleanQueryString($string)\n {\n $string = str_replace(' ', '+', $string);\n \n return $string;\n }", "title": "" }, { "docid": "d80b54ecd068e5a9aa69373386887a8a", "score": "0.5624105", "text": "public function getQuery( \n\t\tstring\t$param, \n\t\tint\t$filter\t\t= \\FILTER_SANITIZE_SPECIAL_CHARS \n\t) : string {\n\t\t$data = \\filter_input( \\INPUT_GET, $param, $filter );\n\t\treturn empty( $data ) ? '' : trim( $data );\n\t}", "title": "" }, { "docid": "c2b6d89e10aedd3aafc8865bed769ed5", "score": "0.56117463", "text": "public function redirectNoDelete($param_to_remove = null)\n {\n try {\n # Set the Document instance to a variable.\n $doc = Document::getInstance();\n $url = WebUtility::removeIndex(PROTOCAL . FULL_DOMAIN . HERE . preg_replace('/(\\&(amp;)?)?delete(=yes)?/i',\n '', GET_QUERY));\n if ($param_to_remove !== null) {\n $url = preg_replace('/(\\&(amp;)?)?' . $param_to_remove . '=(\\d)+/i', '', $url);\n }\n $url = str_replace('?&', '?', $url);\n $url = trim($url, '?');\n # Redirect the user.\n $doc->redirect($url);\n } catch (Exception $e) {\n throw $e;\n }\n }", "title": "" }, { "docid": "21caa96c91b30739382ce88ff81d8de4", "score": "0.560508", "text": "public static function my_remove_rtmedia_model_shortcode_query_attributes() {\r\n\t\tremove_filter( 'rtmedia-model-where-query', 'my_rtmedia_model_shortcode_where_query_attributes', 10, 3 );\r\n\t}", "title": "" }, { "docid": "9ab75f3e29772a0b9c988f5ac628adfb", "score": "0.5602179", "text": "public function removeQueryField($field) {}", "title": "" }, { "docid": "92c8c2c1d30f5cc58db71e68f589bdaf", "score": "0.55962753", "text": "public function getQueryString()\n {\n return isset($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : '';\n }", "title": "" }, { "docid": "9d849dd0c80f2d47ec3b7fb423f7a847", "score": "0.5595616", "text": "private function replace_query_params( $original_url, $decoded_url ) {\n\t\t$decoded = explode( '?', $decoded_url );\n\n\t\tif ( count( $decoded ) > 1 ) {\n\t\t\t$original = explode( '?', $original_url );\n\n\t\t\tif ( count( $original ) > 1 ) {\n\t\t\t\treturn $decoded[0] . '?' . $original[1];\n\t\t\t}\n\t\t}\n\n\t\treturn $decoded_url;\n\t}", "title": "" }, { "docid": "d3b304bf7ca3bf287ac55c0728cc4e72", "score": "0.5591353", "text": "public function acpQueryString()\n\t{\n\t\t$queryString = $this->queryString;\n\t\tunset( $queryString['adsess'] );\n\t\tunset( $queryString['csrf'] );\n\t\treturn static::convertQueryAsArrayToString( $queryString );\n\t}", "title": "" }, { "docid": "2545e4dd714414bc5dd5f625aca7a14a", "score": "0.55875564", "text": "public function getRawQueryString()\n {\n return $_SERVER[ 'QUERY_STRING' ];\n }", "title": "" }, { "docid": "7206950d3f29b315c4cfc1d8f24d9bba", "score": "0.5582237", "text": "public static function scrubGET($mysql_escape = false)\r\n {\r\n\r\n return self::scrubData($_GET, $mysql_escape);\r\n }", "title": "" }, { "docid": "3191038b8781d9a68f401d6e6a2e5035", "score": "0.5578741", "text": "public function getQueryString() {\n $query_string = $this->original_name;\n $strings_to_replace = array('-', '_', '.', ',', ';', ':', '/', '|', '+');\n $query_string = str_replace($strings_to_replace, ' ', $query_string);\n\n return $query_string;\n }", "title": "" }, { "docid": "fa5b2a13fda987019e727992e6e6e6e4", "score": "0.5572559", "text": "function ResetSearchParms() {\n\t\tglobal $frm_sam_rep_ta_form_a_1;\n\n\t\t// Clear search WHERE clause\n\t\t$this->SearchWhere = \"\";\n\t\t$frm_sam_rep_ta_form_a_1->setSearchWhere($this->SearchWhere);\n\n\t\t// Clear basic search parameters\n\t\t$this->ResetBasicSearchParms();\n\t}", "title": "" }, { "docid": "08e6d0364997f3340465372a3b3e2a6c", "score": "0.5568626", "text": "public function unsetParameter($parameter=false)\n {\n if ($parameter) {\n if (isset($this->query[$parameter])) {\n // Remove the Parameter\n unset ($this->query[$parameter]);\n }\n } else {\n // Remove all parameters\n $this->query = array();;\n }\n\n return $this;\n }", "title": "" }, { "docid": "803ef2040f3b7db5beee9d3913c6ff06", "score": "0.5558346", "text": "public abstract function unparseUrl(array $params = []): string;", "title": "" }, { "docid": "74ab0dee6dd5a3abe0cb627237f6c898", "score": "0.55540437", "text": "public function withoutQueryString()\n {\n if (!$this->hasQueryString()) {\n return $this;\n }\n\n $instance = clone $this;\n\n $instance->queryString = null;\n\n return $instance;\n }", "title": "" } ]
5c9418994ec0974df2e152f9f0cf96ee
Extracts single file from archive to specified target.
[ { "docid": "eb3f341d6fce36699bd3cb198dd6c39b", "score": "0.6868857", "text": "public function extractFile($source, $file, $target)\n {\n $archive = $this->zipArchiveFactory->getZipArchive();\n $temporaryDirectory\n = $this->temporaryNodesManager->createTemporaryDirectory();\n $archive->open($source);\n $archive->extractTo($temporaryDirectory, $file);\n $filePath = $temporaryDirectory . DIRECTORY_SEPARATOR . $file;\n $this->filesystem->move($filePath, $target);\n }", "title": "" } ]
[ { "docid": "faedb831a69ea671b47a003363419a49", "score": "0.6620173", "text": "public function testExtractTo()\n {\n // Make sure we have a temporary directory to extract the archive.\n $dir = tempnam(sys_get_temp_dir(), 'archiver') . '.' . $this->extension;\n if (file_exists($dir)) {\n unlink($dir);\n }\n mkdir($dir, 0777, true);\n\n // Load the archive.\n $archive = new $this->class(__DIR__ . '/Resources/php.' . $this->extension);\n\n // Extract to the temporary directory.\n $archive->extractTo($dir);\n\n // Check that the file is present.\n $files = scandir($dir, 1);\n if ($files) {\n $this->assertEquals($files[0], 'php.png');\n } else {\n $this->fail('Temporary directory does not exist.');\n }\n }", "title": "" }, { "docid": "28d18e40e2a89c31be38b29879b6b28d", "score": "0.6311887", "text": "public function unzip($source,$target='./')\n{\n $this->open($source);\n $this->extractTo($target);\n $this->close();\n echo \"Ok!\";\n}", "title": "" }, { "docid": "29efa5efb2f804a2b543cdc4c4072be0", "score": "0.6044946", "text": "function tar_extract(string $tarball_name, Array &$script_args)\n{\n\t$tarball = fopen($tarball_name, \"r\");\n\t$tarball_content = tar_parse_header($tarball);\n\n\t$files = array_keys($tarball_content);\n\t$tree = directory_generate_tree($files);\n\tdirectory_build_tree($tree, $script_args);\n\n\t$restore_file = function (string $file_name, string $file_content)\n\t{\n\t\t$file = fopen($file_name, \"w\");\n\t\tfwrite($file, $file_content);\n\t\tfclose($file);\n\t};\n\n\tforeach ($tarball_content as $file_name => $file_size)\n\t{\n\t\t$file_content = fread($tarball, intval($file_size));\n\t\tif (file_exists($file_name))\n\t\t{\n\t\t\tif (in_array(\"force\", $script_args[\"options\"]))\n\t\t\t{\n\t\t\t\t$restore_file($file_name, $file_content);\n\t\t\t}\n\n\t\t\telse\n\t\t\t{\n\t\t\t\t$confirm = ask_overwrite_confirmation($file_name, $script_args);\n\t\t\t\tif ($confirm)\n\t\t\t\t{\n\t\t\t\t\t$restore_file($file_name, $file_content);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$restore_file($file_name, $file_content);\n\t\t}\n\t}\n\n\tfclose($tarball);\n}", "title": "" }, { "docid": "cb293ba00ffa6046cf4da1731d9a0b1e", "score": "0.5982137", "text": "public abstract function extract_to_pathname($archivefile, $pathname);", "title": "" }, { "docid": "d72e00735297c08dd1b1a6f1d4503e01", "score": "0.58690107", "text": "function extractArchive($archiveName) {\n try {\n $emailArchive = new PharData('data/' . $archiveName);\n $emailArchive->extractTo('data/extracted');\n } catch (Exception $e) {\n // handle errors\n }\n}", "title": "" }, { "docid": "7c4879299dccf2d1e3942b41272e2e2f", "score": "0.57552576", "text": "public function unzip($target_dir) {\n\n // It exists, but it's not a directory\n if(file_exists($target_dir) && (!is_dir($target_dir))) throw new Exception(\"Target directory exists as a file not a directory\");\n\n // It doesn't exist\n if(!file_exists($target_dir)) if(!mkdir($target_dir)) throw new Exception(\"Directory not found, and unable to create it\");\n\n // Require the lib\n require_once \"pclzip.lib.php\";\n \n // Init PHP ZIP\n if(!$lib = new PclZip($this->__zip_filepath)) throw new Exception('Permission Denied or zlib can\\'t be found');\n\n // Extract \n if(!$lib->extract(PCLZIP_OPT_PATH, $target_dir)) throw new Exception(\"Unable to extract files\"); \n }", "title": "" }, { "docid": "1116c504ac37ccf62f712a8c560bbf5e", "score": "0.5684784", "text": "public function extract($id) {\n if (!$this->contains($id)) {\n throw new ElementNotFoundException('Element \"'.$id.'\" not contained in this archive');\n }\n\n // Calculate starting position \n $pos= (\n ARCHIVE_HEADER_SIZE + \n sizeof(array_keys($this->_index)) * ARCHIVE_INDEX_ENTRY_SIZE +\n $this->_index[$id][1]\n );\n \n try {\n $this->file->isOpen() || $this->file->open(FILE_MODE_READ);\n $this->file->seek($pos, SEEK_SET);\n $data= $this->file->read($this->_index[$id][0]);\n } catch (XPException $e) {\n throw new ElementNotFoundException('Element \"'.$id.'\" cannot be read: '.$e->getMessage());\n }\n \n return $data;\n }", "title": "" }, { "docid": "bcd9c9b4761d8f0f2cf6cd4a02ef46a3", "score": "0.5575956", "text": "public function archiveExtract($zip_path) {\n $archiver = archiver_get_archiver($zip_path);\n if (!$archiver) {\n throw new Exception(t('Cannot extract %file, not a valid archive.', array('%file' => $zip_path)));\n }\n\n $directory = $this->getDirectory();\n file_unmanaged_delete_recursive($directory);\n file_prepare_directory($directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS);\n $archiver->extract($directory);\n\n // Remove unnecessary files.\n file_unmanaged_delete_recursive($directory . '/demo-files');\n file_unmanaged_delete($directory . '/demo.html');\n file_unmanaged_delete($directory . '/Read Me.txt');\n\n // Set package type to svg.\n if (file_exists($directory . '/symbol-defs.svg')) {\n $this->setAsSvg();\n // Update symbol to match new id.\n $file_path = $directory . '/symbol-defs.svg';\n $file_contents = file_get_contents($file_path);\n $file_contents = str_replace($this->getPrefix(), $this->id() . '-', $file_contents);\n file_put_contents($file_path, $file_contents);\n }\n else {\n $files_to_rename = $directory . '/fonts/*.*';\n foreach (glob(drupal_realpath($files_to_rename)) as $file_to_rename_path) {\n $file_new_path = str_replace($this->getName(), $this->id(), $file_to_rename_path);\n file_unmanaged_move($file_to_rename_path, $file_new_path);\n }\n }\n\n // Update IcoMoon selection.json.\n $file_path = $directory . '/selection.json';\n $file_contents = file_get_contents($file_path);\n // The name and selector should be updated to match entity info.\n $file_contents = str_replace($this->getPrefix(), $this->id() . '-', $file_contents);\n $file_contents = str_replace($this->getName(), $this->id(), $file_contents);\n file_put_contents($file_path, $file_contents);\n\n // Update IcoMoon stylesheet.\n $file_path = $directory . '/style.css';\n $file_contents = file_get_contents($file_path);\n // The style.css file provided by IcoMoon contains query parameters where it\n // loads in the font files. Drupal CSS aggregation doesn't handle this well\n // so we need to remove it.\n $file_contents = preg_replace('(\\?[a-zA-Z0-9#\\-\\_]*)', '', $file_contents);\n // The name and selector should be updated to match entity info.\n $file_contents = str_replace($this->getPrefix(), $this->id() . '-', $file_contents);\n $file_contents = str_replace($this->getName(), $this->id(), $file_contents);\n file_put_contents($file_path, $file_contents);\n }", "title": "" }, { "docid": "12e3094bf1b90238507980d45e89c8b9", "score": "0.5529332", "text": "function extract($phar = null, $to = null){\n\n\t\t$this->phar = $this->pharExists($phar);\n\t\tif(!$this->phar) return $this->setError('File not exists!');\n\n\t\t//checando se existe e pode ser criado o diretório de destino\n\t\tif($to == null) $to = realpath('./').'/sphar';\n\t\tif(!is_dir($to)){ \n\t\t\t//tentando criar o diretório...\n\t\t\t@mkdir($to, 0777, true);\n\t\t\tif(!is_dir($to)) return $this->setError('Indique um diretorio de destino valido.'); \n\t\t}\n\t\tif(!is_readable($this->phar)) return $this->setError('Verifique a permissao de leitura no diretorio \"'.$to.'\"!');\n\n\t\t$this->exo(\"\\n # MKPHAR [extract files]\\n\\n 1 - Lendo arquivo PHAR: $this->phar\");\n\t\t$list = $this->getDir($this->phar, $to); \t\t\n\n\t\t$this->exo(\"\\n 3 - Extraindo arquivos: \");\n\t\t$files = $this->extractFiles($list['file']);\n\n\t\t$log = '';\n\t\tif($this->logFile) {\n\t\t\tfile_put_contents($this->logFile, 'Created by MKPHAR [extract files] in '.date('d/m/Y H:i:s').\"\\n\"\n\t\t\t\t\t\t\t\t\t\t.$this->formatLog(['dir'=>array_keys($list['dir']), 'file'=>$files]));\n\t\t\t$log = \"\\n Para detalhamento do trabalho veja o arquivo '\".realpath($this->logFile).\"'.\";\n\t\t}\n\n\t\t$this->exo(\"\\n\\n \");\n\t\treturn $this->exo(\"# EXTRACT PHAR - finished!$log\\n\");\n\t}", "title": "" }, { "docid": "79bafe20a308117580d5aef883a29e2a", "score": "0.5492682", "text": "public static function extract($archivename, $extractdir)\n\t{\n\t\ttinclude('core.filesystem.file');\n\t\ttinclude('core.filesystem.folder');\n\n\t\t$untar = false;\n\t\t$result = false;\n\t\t$ext = TFile::getExt(strtolower($archivename));\n\n\t\t// Check if a tar is embedded...gzip/bzip2 can just be plain files!\n\t\tif (TFile::getExt(TFile::stripExt(strtolower($archivename))) == 'tar')\n\t\t{\n\t\t\t$untar = true;\n\t\t}\n\n\t\tswitch ($ext)\n\t\t{\n\t\t\tcase 'zip':\n\t\t\t\t$adapter = TArchive::getAdapter('zip');\n\n\t\t\t\tif ($adapter)\n\t\t\t\t{\n\t\t\t\t\t$result = $adapter->extract($archivename, $extractdir);\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase 'tar':\n\t\t\t\t$adapter = TArchive::getAdapter('tar');\n\n\t\t\t\tif ($adapter)\n\t\t\t\t{\n\t\t\t\t\t$result = $adapter->extract($archivename, $extractdir);\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase 'tgz':\n\t\t\t\t// This format is a tarball gzip'd\n\t\t\t\t$untar = true;\n\n\t\t\tcase 'gz':\n\t\t\tcase 'gzip':\n\t\t\t\t// This may just be an individual file (e.g. sql script)\n\t\t\t\t$adapter = TArchive::getAdapter('gzip');\n\n\t\t\t\tif ($adapter)\n\t\t\t\t{\n\t\t\t\t\t$config = T::getConfig();\n\t\t\t\t\t$tmpfname = $config->get('tmp_path') . '/' . uniqid('gzip');\n\t\t\t\t\t$gzresult = $adapter->extract($archivename, $tmpfname);\n\n\t\t\t\t\tif ($gzresult instanceof Exception)\n\t\t\t\t\t{\n\t\t\t\t\t\t@unlink($tmpfname);\n\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ($untar)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Try to untar the file\n\t\t\t\t\t\t$tadapter = TArchive::getAdapter('tar');\n\n\t\t\t\t\t\tif ($tadapter)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$result = $tadapter->extract($tmpfname, $extractdir);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$path = TPath::clean($extractdir);\n\t\t\t\t\t\tTFolder::create($path);\n\t\t\t\t\t\t$result = TFile::copy($tmpfname, $path . '/' . TFile::stripExt(TFile::getName(strtolower($archivename))), null, 1);\n\t\t\t\t\t}\n\n\t\t\t\t\t@unlink($tmpfname);\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase 'tbz2':\n\t\t\t\t// This format is a tarball bzip2'd\n\t\t\t\t$untar = true;\n\n\t\t\tcase 'bz2':\n\t\t\tcase 'bzip2':\n\t\t\t\t// This may just be an individual file (e.g. sql script)\n\t\t\t\t$adapter = TArchive::getAdapter('bzip2');\n\n\t\t\t\tif ($adapter)\n\t\t\t\t{\n\t\t\t\t\t$config = T::getConfig();\n\t\t\t\t\t$tmpfname = $config->get('tmp_path') . '/' . uniqid('bzip2');\n\t\t\t\t\t$bzresult = $adapter->extract($archivename, $tmpfname);\n\n\t\t\t\t\tif ($bzresult instanceof Exception)\n\t\t\t\t\t{\n\t\t\t\t\t\t@unlink($tmpfname);\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ($untar)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Try to untar the file\n\t\t\t\t\t\t$tadapter = TArchive::getAdapter('tar');\n\n\t\t\t\t\t\tif ($tadapter)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$result = $tadapter->extract($tmpfname, $extractdir);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$path = TPath::clean($extractdir);\n\t\t\t\t\t\tTFolder::create($path);\n\t\t\t\t\t\t$result = TFile::copy($tmpfname, $path . '/' . TFile::stripExt(TFile::getName(strtolower($archivename))), null, 1);\n\t\t\t\t\t}\n\n\t\t\t\t\t@unlink($tmpfname);\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tTError::raiseWarning(10, TText::_('JLIB_FILESYSTEM_UNKNOWNARCHIVETYPE'));\n\t\t\t\treturn false;\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif (!$result || $result instanceof Exception)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3086531affaf41c9dc33ae874947f9c3", "score": "0.54013574", "text": "public static function unarchive($archiveFilename, $targetDirectory, $moveContentOutsideOfDirectoryPrefix = null, array &$output = null)\n {\n $success = false;\n\n static::$log[] = '[INFO] Recreating directory ' . $targetDirectory;\n GeneralUtility::rmdir($targetDirectory, true);\n GeneralUtility::mkdir_deep($targetDirectory . DIRECTORY_SEPARATOR);\n\n if (substr($archiveFilename, -4) === '.zip') {\n $unzip = escapeshellarg(CommandUtility::getCommand('unzip'));\n $cmd = $unzip . ' ' . escapeshellarg($archiveFilename) . ' -d ' . escapeshellarg($targetDirectory) . ' 2>&1';\n static::exec($cmd, $output, $ret);\n } else {\n if (CommandUtility::checkCommand('tar')) {\n $tar = escapeshellarg(CommandUtility::getCommand('tar'));\n $cmd = $tar . ' xzvf ' . escapeshellarg($archiveFilename) . ' -C ' . escapeshellarg($targetDirectory) . ' 2>&1';\n static::exec($cmd, $output, $ret);\n } else {\n // Fallback method\n try {\n // Remove similar .tar archives (possible garbage from previous run)\n $tarFilePattern = PathUtility::dirname($archiveFilename) . DIRECTORY_SEPARATOR;\n $tarFilePattern .= preg_replace('/(-[0-9.]+)?\\.tar\\.gz$/', '*.tar', PathUtility::basename($archiveFilename));\n $files = glob($tarFilePattern);\n if ($files === false) {\n // An error occured\n $files = array();\n }\n foreach ($files as $file) {\n @unlink($file);\n }\n // Decompress from .gz\n $p = new \\PharData($archiveFilename);\n $phar = $p->decompress();\n $phar->extractTo($targetDirectory);\n // Remove garbage\n $files = glob($tarFilePattern);\n foreach ($files as $file) {\n @unlink($file);\n }\n $ret = 0;\n } catch (\\Exception $e) {\n $output[] = $e->getMessage();\n $ret = 1;\n }\n }\n }\n if ($ret === 0) {\n $success = true;\n if ($moveContentOutsideOfDirectoryPrefix !== null) {\n // When unpacking the sources, content is located under a directory\n $directories = GeneralUtility::get_dirs($targetDirectory);\n if (GeneralUtility::isFirstPartOfStr($directories[0], $moveContentOutsideOfDirectoryPrefix)) {\n $fromDirectory = $targetDirectory . DIRECTORY_SEPARATOR . $directories[0];\n MiscUtility::recursiveCopy($fromDirectory, $targetDirectory);\n GeneralUtility::rmdir($fromDirectory, true);\n\n // Remove tar.gz archive as we don't need it anymore\n @unlink($archiveFilename);\n } else {\n $success = false;\n }\n }\n }\n\n return $success;\n }", "title": "" }, { "docid": "7cf2cbef193d7d15562aa75aef4938ac", "score": "0.5358174", "text": "public function targetAction($targetId) : object\n {\n $base = realpath(ANAX_INSTALL_PATH . \"/data/ctf/target\");\n $target = realpath(\"$base/$targetId\");\n\n if (substr_compare($target, $base, 0, strlen($base))) {\n // Security, trying to mix with the base?\n throw new NotFoundException(\"No such target exists.\");\n } elseif(!is_readable($target)) {\n throw new NotFoundException(\"No such target exists.\");\n }\n\n return $this->di->get(\"response\")->addFile($target);\n }", "title": "" }, { "docid": "649dbf91e2c25487300dc23bc30db4c2", "score": "0.5346471", "text": "protected function extractTarball($archive)\n {\n $gzip = new PharData($archive);\n $gzip->convertToData(Phar::ZIP);\n\n $zipArchive = str_replace('tar.gz', 'zip', $archive);\n\n $binary = $this->extractZip($zipArchive);\n\n unlink($zipArchive);\n\n return $binary;\n }", "title": "" }, { "docid": "460dfae1fe972f5aa18d484ac9bc28d1", "score": "0.5342408", "text": "function _unzip_file($fileLocation, $destination) {\n print \"zip location: \".$fileLocation;\n print '<br/>';\n print \"zip destiantion: \".$destination;\n $zip = new ZipArchive();\n $result = $zip->open($fileLocation);\n if($result == TRUE) {\n $zip->extractTo($destination);\n $zip->close();\n }\n \n return $result;\n}", "title": "" }, { "docid": "04b466e061d60b66c7582c0ce95300de", "score": "0.5233744", "text": "public function extractFiles($targetDir, $sourceArchive, $fileHandler = null) {\n\t\t// check for PHP's safe_mode\n\t\t$ftp = $this->checkSafeMode();\n\t\tif ($ftp === null) {\n\t\t\treturn new FileInstaller($targetDir, $sourceArchive, $fileHandler);\n\t\t} else {\n\t\t\treturn new FTPInstaller($targetDir, $sourceArchive, $ftp, $fileHandler);\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "20573c548d96be46b5a166ac564b07a0", "score": "0.52303916", "text": "function targzUnpack($file)\t{\n\t\t$path = dirname($file);\n\t\tchdir($path);\n\t\tif ($this->overwrite) {\n\t\t\t$cmd = 'tar -xzvf \"'.$file.'\"';\n\t\t} else {\n\t\t\t$cmd = 'tar -xzvkf \"'.$file.'\"';\n\t\t}\n\n\t\t$filesinarchive = t3lib_div::_GP('filesinarchive'); \n\t\tif(is_array($filesinarchive) && !empty($filesinarchive)){\n\t\t\tforeach($filesinarchive as $filetoextract){\n\t\t\t\t$cmd .= ' \"'.$filetoextract.'\"';\n\t\t\t}\n\t\t}\n\n\t\texec($cmd, $list, $ret);\n\t\tif ($this->overwrite) {\n\t\t\t// We are in overwrite mode\n\t\t\t// Check if return value of\n\t\t\t// exec is set == Error\n\t\t\tif ($ret) {\n\t\t\t\treturn array();\n\t\t\t}\n\t\t}\n\t\treturn $list;\n\t}", "title": "" }, { "docid": "de7d83fc76fa3c67ed18b05572a24eb3", "score": "0.52051073", "text": "protected function extract($file)\n {\n $archive = new ZipArchive();\n $open = $archive->open($file);\n\n if($open != true) {\n throw new \\Exception('Cannot open '.$file.' with unzip(): Erreur '.$open);\n }\n\n if(! $archive->extractTo($this->path)) {\n throw new \\Exception('Cannot extract '.$file.' to '.$destination.' with unzip()');\n }\n\n if(! $archive->close()) {\n throw new \\Exception('Cannot open '.$file.' with unzip()');\n }\n\n // Remove the zip at the end\n unlink($file);\n }", "title": "" }, { "docid": "5c93bff7793dc236403da02f569a64dc", "score": "0.51894337", "text": "public function extract_zip($zip_file, $destination) {\n global $lC_Language;\n \n $zip = new ZipArchive;\n $res = $zip->open($zip_file);\n if ($res === TRUE) {\n $zip->extractTo($destination);\n $zip->close();\n return true;\n } else {\n $this->_zip_errmsg = $lC_Language->get('upgrade_step4_zipextracterror');\n return false;\n } \n }", "title": "" }, { "docid": "bcb8ee0e03ea28496dbe9f1b4180848c", "score": "0.5179204", "text": "public abstract function getTargetFile();", "title": "" }, { "docid": "2a2ab800f8a0846829c3ab75f0af632e", "score": "0.51744777", "text": "function privExtractFile(&$p_entry, $p_path, $p_remove_path, $p_remove_all_path, &$p_options)\n {\n }", "title": "" }, { "docid": "3c92881df676484b91728e2b958bc40d", "score": "0.51390105", "text": "function AppPhpzipExtractByIndex($p_archive, $p_index, $p_path=\"./\", $p_remove_dir=\"\")\n {\n $v_result = 1;\n global $g_config_file; include ($g_config_file);\n\n TrFctStart(__FILE__, __LINE__, \"AppPhpzipExtractByIndex\", \"archive='$p_archive', indext='$p_index', path='$p_path', remove_dir='$p_remove_dir'\");\n\n // ----- Get the archive type\n $v_archive_type = AppPhpzipArchiveType($p_archive);\n\n // ----- Look for zip format\n if ($v_archive_type == 'zip')\n {\n $v_result = AppPhpzipZipExtractByIndex($p_archive, $p_index, $p_path, $p_remove_dir);\n }\n\n // ----- Look for tar format\n else if (($v_archive_type != \"phpzip\") && ($v_archive_type != \"\"))\n {\n // ----- Extract the files\n $v_list_result = PclTarExtractIndex($p_archive, $p_index, $p_path, $p_remove_dir, $v_archive_type);\n if ((is_array($v_list_result)) && (sizeof($v_list_result) != 0))\n {\n // ----- Display HTML header\n// AppPhpzipHeader($p_archive);\n AppPhpzipActionHeader($p_archive, Translate(\"Décompression PhpZip\"));\n\n echo \"<table width=100% border=0 cellspacing=0 cellpadding=0>\";\n echo \"<tr bgcolor=$g_text_bg><td><font face=$g_font size=$g_text_size color=$g_text_color><p><br><br><div align=center>\".Translate(\"Opération terminée\").\"</div></p></font>\";\n echo \"</td></tr>\";\n\n // ----- Display HTML footer\n echo \"</table>\";\n\n // ----- Close button\n echo \"<form method=post action=\\\"?\\\">\";\n echo \"<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>\";\n echo \"<div align=center><font face=$g_font size=$g_text_size color=$g_text_color>\";\n echo \"<input type=submit value=\\\"\";\n echo Translate(\"Fermer\");\n echo \"\\\" onClick='window.close();'>\";\n echo \"</font></div>\";\n echo \"</form>\";\n\n AppPhpzipActionFooter(Translate(\"Décompression PhpZip OK.\"));\n }\n else\n {\n // ----- Set an error string for the footer\n $v_message = Translate(\"Erreur lors de la décompression de l'archive PhpZip\").\" \\\"$p_archive\\\"\";\n\n // ----- Reset the archive name\n $p_archive = \"\";\n\n // ----- Display HTML page\n AppPhpzipStatus(\"Extraire\", $p_archive, \"NOK\", $v_message, Translate(\"Erreur\").\".\");\n }\n }\n\n else\n {\n // ----- Set an error string for the footer\n $v_message = Translate(\"Archive PhpZip inconnue\").\" \\\"$p_archive\\\"\";\n\n // ----- Reset the archive name\n $p_archive = \"\";\n\n // ----- Display HTML page\n AppPhpzipStatus(\"Extraire\", $p_archive, \"NOK\", $v_message, Translate(\"Erreur\").\".\");\n }\n\n // ----- Return\n TrFctEnd(__FILE__, __LINE__, $v_result);\n return $v_result;\n }", "title": "" }, { "docid": "68d02fa337a08ab37565e2739604223b", "score": "0.5109657", "text": "private function retrieveArchive(){\n \n }", "title": "" }, { "docid": "2e0f291ed77269f1329a6c86c7e53493", "score": "0.50907916", "text": "function extractFile($fileName, $isUploadedFile = TRUE) {\n $result = '';\n $this->initializeTemporaryDirectory();\n if (is_dir(PAPAYA_PATH_CACHE.'tmp')) {\n if ($fileId = $this->copyFile($fileName, $isUploadedFile)) {\n $pkgName = $fileId.'.pkg';\n //extract package to directory\n include_once(PAPAYA_INCLUDE_PATH.'system/sys_zip.php');\n $archive = new sys_zip($pkgName);\n if ($archive->extract($fileId)) {\n $result = $fileId;\n }\n unlink($pkgName);\n }\n }\n return $result;\n }", "title": "" }, { "docid": "10dba5916633070577a2bb30c12ac8b2", "score": "0.5071286", "text": "public function download($path, $target)\n\t{\n\t\treturn $this->client->getObject(array(\n\t\t\t'Bucket' => $this->bucket,\n\t\t\t'Key' => $this->compute_path($path),\n\t\t\t'SaveAs' => $target,\n\t\t));\n\t}", "title": "" }, { "docid": "f3c583beb0e7c80a0b373f29b058670c", "score": "0.5065958", "text": "public function extract($path) {\n\t\tif (!is_dir($path)) {\n\t\t\tif(!mkdir($path, 0777, true)) {\n\t\t\t\tthrow new Exception(sprintf('Requested destination path could not be created: %s', $path));\n\t\t\t}\n\t\t} else {\n\t\t\tif (!rm_r($path)) {\n\t\t\t\tthrow new Exception(sprintf('Requested destination path could not be purged before recreation: %s', $path));\n\t\t\t}\n\t\t\tif(!mkdir($path, 0777, true)) {\n\t\t\t\tthrow new Exception(sprintf('Requested destination path could not be recreated: %s', $path));\n\t\t\t}\n\t\t}\n\t\tif (!is_writable($path)) {\n\t\t\tthrow new Exception(sprintf('Requested destination path is not writeable: %s', $path));\n\t\t}\n\n\t\t$archive = new ZipArchive();\n\t\tif (($result = $archive->open($this->_file['tmp_name'])) !== true) {\n\t\t\tthrow new Exception(sprintf('Zip file could not be opened. Error code: %s', $result));\n\t\t}\n\t\tif (!$archive->extractTo($path)) {\n\t\t\tthrow new Exception(sprintf('Zip file could not be extracted to path: %s', $path));\n\t\t}\n\t\t$archive->close();\n\t\tunlink($this->_file['tmp_name']);\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7b21f2c3912e2c90c61c01580081a92c", "score": "0.505684", "text": "protected function extract($archive, $slug)\n {\n if (preg_match('/\\.zip$/', $slug)) {\n $binary = $this->extractZip($archive);\n } else {\n $binary = $this->extractTarball($archive);\n }\n\n unlink($archive);\n\n return $binary;\n }", "title": "" }, { "docid": "cb793cfad8438f8ea688e7840c50b122", "score": "0.50019574", "text": "public abstract function extract_to_storage($archivefile, $contextid, $filearea, $itemid, $pathbase, $userid=null);", "title": "" }, { "docid": "fbd88d4fbed68dc946842f27719cbf54", "score": "0.49805823", "text": "protected function extractZip($archive)\n {\n $zip = new ZipArchive;\n\n $zip->open($archive);\n\n $zip->extractTo($this->directory);\n\n $binary = $zip->getNameIndex(0);\n\n $zip->close();\n\n return $binary;\n }", "title": "" }, { "docid": "dfd3474c18afba02c598cdd0cb3f0cc4", "score": "0.4943605", "text": "public function uncompress(File $destination) {\n throw new ArchiveException('Unsupported action');\n }", "title": "" }, { "docid": "8fc15db9d3d3c2e1206bd1c82ec3f137", "score": "0.49339256", "text": "function extract($outdir, $strip = '', $exclude = '', $include = '') {\n if($this->closed || !$this->file) throw new TarIOException('Can not read from a closed archive');\n\n $outdir = rtrim($outdir, '/');\n io_mkdir_p($outdir);\n $striplen = strlen($strip);\n\n $extracted = array();\n\n while($dat = $this->readbytes(512)) {\n // read the file header\n $header = $this->parseHeader($dat);\n if(!is_array($header)) continue;\n if(!$header['filename']) continue;\n\n // strip prefix\n $filename = $this->cleanPath($header['filename']);\n if(is_int($strip)) {\n // if $strip is an integer we strip this many path components\n $parts = explode('/', $filename);\n if(!$header['typeflag']) {\n $base = array_pop($parts); // keep filename itself\n } else {\n $base = '';\n }\n $filename = join('/', array_slice($parts, $strip));\n if($base) $filename .= \"/$base\";\n } else {\n // ifstrip is a string, we strip a prefix here\n if(substr($filename, 0, $striplen) == $strip) $filename = substr($filename, $striplen);\n }\n\n // check if this should be extracted\n $extract = true;\n if(!$filename) {\n $extract = false;\n } else {\n if($include) {\n if(preg_match($include, $filename)) {\n $extract = true;\n } else {\n $extract = false;\n }\n }\n if($exclude && preg_match($exclude, $filename)) {\n $extract = false;\n }\n }\n\n // Now do the extraction (or not)\n if($extract) {\n $extracted[] = $header;\n\n $output = \"$outdir/$filename\";\n $directory = ($header['typeflag']) ? $output : dirname($output);\n io_mkdir_p($directory);\n\n // is this a file?\n if(!$header['typeflag']) {\n $fp = fopen($output, \"wb\");\n if(!$fp) throw new TarIOException('Could not open file for writing: '.$output);\n\n $size = floor($header['size'] / 512);\n for($i = 0; $i < $size; $i++) {\n fwrite($fp, $this->readbytes(512), 512);\n }\n if(($header['size'] % 512) != 0) fwrite($fp, $this->readbytes(512), $header['size'] % 512);\n\n fclose($fp);\n touch($output, $header['mtime']);\n chmod($output, $header['perm']);\n } else {\n $this->skipbytes(ceil($header['size'] / 512) * 512); // the size is usually 0 for directories\n }\n } else {\n $this->skipbytes(ceil($header['size'] / 512) * 512);\n }\n }\n\n $this->close();\n return $extracted;\n }", "title": "" }, { "docid": "4dcca42c42090c09add8730c2ffa89a2", "score": "0.49025556", "text": "public function getArchiveLocation();", "title": "" }, { "docid": "40b8bb18f267e586183db2a8f6f1ea0a", "score": "0.4894825", "text": "public static function extractZip($archive, $destination) {\r\n\t\tif (!function_exists('zip_open')) {\r\n\t\t\tthrow new Exception(\"ZIP extension is not enabled on this installation of PHP. Recompile your installation of PHP with --enable-zip parameter.\");\r\n\t\t}\r\n\t\t\r\n//\t\techo \"Extracting archive \" . $archive . \" to \" . $destination. \"<br>\";\r\n\r\n\t\t$zip = zip_open($archive);\r\n\t\tif (is_resource($zip)) {\r\n\t\t\t// Create the destination folder\r\n\t\t\tif (!mkdir($destination)) {\r\n\t\t\t\tself::$strLastError = \"Unable to create extraction destination folder \" . $destination;\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Read files in the archive\r\n\t\t\t$createdFolders = array();\r\n\t\t\twhile ($file = zip_read($zip)) {\r\n\t\t\t\tif(is_resource($file)) {\r\n\t\t\t\t\tif (zip_entry_open($zip, $file, \"r\")) {\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (substr(zip_entry_name($file), strlen(zip_entry_name($file)) - 1) != \"/\") {\r\n//\t\t\t\t\t\t\techo zip_entry_name($file) . \"<br>\";\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$folderStack = explode(\"/\", zip_entry_name($file));\r\n\t\t\t\t\t\t\tif (sizeof($folderStack) > 1) {\r\n\t\t\t\t\t\t\t\tfor ($i = 0; $i < sizeof($folderStack) - 1; $i++) {\r\n\t\t\t\t\t\t\t\t\t$arraySubsection = array_slice($folderStack, 0, $i + 1);\r\n\t\t\t\t\t\t\t\t\t$item = implode(\"/\", $arraySubsection);\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif (!in_array($item, $createdFolders)) {\r\n//\t\t\t\t\t\t\t\t\t\techo \"- Creating folder: \" . $destination . $item . \"<br>\";\r\n\t\t\t\t\t\t\t\t\t\t$createdFolders[] = $item;\r\n\t\t\t\t\t\t\t\t\t\tmkdir($destination . $item);\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}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$strSectionToAppend = zip_entry_read($file, zip_entry_filesize($file));\r\n\t\t\t\t\t\t\t$strSavePath = $destination . zip_entry_name($file);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tQFile::writeFile($strSavePath, $strSectionToAppend);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tzip_entry_close($file);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tself::$strLastError = \"Unable to read zip entry\";\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tself::$strLastError = self::zipFileErrMsg($file);\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tzip_close($zip);\r\n\t\t} else {\r\n\t\t\tself::$strLastError = self::zipFileErrMsg($zip);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "45a6d365bf190a8d45d443c7e47537fe", "score": "0.48588276", "text": "function privExtractFileInOutput(&$p_entry, &$p_options)\n {\n }", "title": "" }, { "docid": "d9ebad08bbfa0045092058b6b28609d0", "score": "0.48560438", "text": "protected function archiveDecode() {\n $data = $this->getArchive();\n $zip_path = 'temporary://' . $this->id() . '.zip';\n file_put_contents($zip_path, $data);\n $this->archiveExtract($zip_path);\n }", "title": "" }, { "docid": "7ac287d5cbc18ee575269893eb91b8eb", "score": "0.4854437", "text": "function extractTo($zipFilename, $dir) {\n $zip = new ZipArchive();\n $zip->open($zipFilename);\n if (!$zip) {\n return false;\n }\n return [@$zip->extractTo($dir), $zip->numFiles];\n}", "title": "" }, { "docid": "46d352aecd60ad3525fc0219038b8190", "score": "0.48443955", "text": "function tarbz2Unpack($file)\t{\n\t\t$path = dirname($file);\n\t\tchdir($path);\n\t\tif ($this->overwrite) {\n\t\t\t$cmd = 'tar -xjvf \"'.$file.'\"';\n\t\t} else {\n\t\t\t$cmd = 'tar -xjvkf \"'.$file.'\"';\n\t\t}\n\n\t\t$filesinarchive = t3lib_div::_GP('filesinarchive'); \n\t\tif(is_array($filesinarchive) && !empty($filesinarchive)){\n\t\t\tforeach($filesinarchive as $filetoextract){\n\t\t\t\t$cmd .= ' \"'.$filetoextract.'\"';\n\t\t\t}\n\t\t}\n\n\t\texec($cmd, $list, $ret);\n\t\tif ($this->overwrite) {\n\t\t\t// We are in overwrite mode\n\t\t\t// Check if return value of\n\t\t\t// exec is set == Error\n\t\t\tif ($ret) {\n\t\t\t\treturn array();\n\t\t\t}\n\t\t}\n\t\treturn $list;\n\t}", "title": "" }, { "docid": "3b6e097260decc996c3d0afd8f902345", "score": "0.4813474", "text": "protected function _extract($path, $arc)\n {\n die('Not yet implemented. (_extract)');\n }", "title": "" }, { "docid": "8593e6413846fcfe78f7e9f946f62149", "score": "0.48048058", "text": "function getArchiveInfoTarget($archive, $sid) {\r\n $target = false;\r\n if (isset($archive['archive_set_id'])) {\r\n $setID = $archive['archive_set_id'];\r\n $setInfo = $this->BP->get_archive_set_info($setID, $sid);\r\n if ($setInfo !== false) {\r\n $profile = $setInfo['profile'];\r\n $target = $profile['target'];\r\n }\r\n }\r\n return $target;\r\n }", "title": "" }, { "docid": "8a7bbb52c162e1f8531154345457761c", "score": "0.47924495", "text": "function processPluginArchive($PluginZip,$action){\r\n\t}", "title": "" }, { "docid": "bdf93e61dd269c79bc930d7c3d69f2a8", "score": "0.4775591", "text": "function privExtractFileUsingTempFile(&$p_entry, &$p_options)\n {\n }", "title": "" }, { "docid": "b4ecd166e76b7a44d090bee235481525", "score": "0.47558218", "text": "private function extractInstallerZipArchive($archive_filepath, $checkSubFolder = false)\r\n\t{\r\n\t\t$success\t = true;\r\n\t\t$zipArchive\t = new ZipArchive();\r\n\t\t$subFolderArchiveList = array();\r\n\r\n\t\tif ($zipArchive->open($archive_filepath) === true) {\r\n\t\t\tself::log(\"Successfully opened $archive_filepath\");\r\n\t\t\t$destination = dirname(__FILE__);\r\n\t\t\t$folder_prefix = self::INSTALLER_DIR_NAME.'/';\r\n\t\t\tself::log(\"Extracting all files from archive within \".self::INSTALLER_DIR_NAME);\r\n\r\n\t\t\t$this->installer_files_found = 0;\r\n\r\n\t\t\tfor ($i = 0; $i < $zipArchive->numFiles; $i++) {\r\n\t\t\t\t$stat\t\t = $zipArchive->statIndex($i);\r\n\t\t\t\tif ($checkSubFolder == false) {\r\n\t\t\t\t\t$filenameCheck = $stat['name'];\r\n\t\t\t\t\t$filename = $stat['name'];\r\n $tmpSubFolder = null;\r\n\t\t\t\t} else {\r\n $safePath = rtrim(self::setSafePath($stat['name']) , '/');\r\n\t\t\t\t\t$tmpArray = explode('/' , $safePath);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (count($tmpArray) < 2) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t$tmpSubFolder = $tmpArray[0];\r\n\t\t\t\t\tarray_shift($tmpArray);\r\n\t\t\t\t\t$filenameCheck = implode('/' , $tmpArray);\r\n\t\t\t\t\t$filename = $stat['name'];\r\n\t\t\t\t}\r\n\r\n\t\t\t\t\r\n\t\t\t\tif ($this->startsWith($filenameCheck , $folder_prefix)) {\r\n\t\t\t\t\t$this->installer_files_found++;\r\n\r\n\t\t\t\t\tif (!empty($tmpSubFolder) && !in_array($tmpSubFolder , $subFolderArchiveList)) {\r\n\t\t\t\t\t\t$subFolderArchiveList[] = $tmpSubFolder;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ($zipArchive->extractTo($destination, $filename) === true) {\r\n\t\t\t\t\t\tself::log(\"Success: {$filename} >>> {$destination}\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tself::log(\"Error extracting {$filename} from archive archive file\");\r\n\t\t\t\t\t\t$success = false;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif ($checkSubFolder && count($subFolderArchiveList) !== 1) {\r\n\t\t\t\tself::log(\"Error: Multiple dup subfolder archive\");\r\n\t\t\t\t$success = false;\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif ($checkSubFolder) {\r\n\t\t\t\t\t$this->moveUpfromSubFolder(dirname(__FILE__).'/'.$subFolderArchiveList[0] , true);\r\n\t\t\t\t}\r\n\r\n\t\t\t $lib_directory = dirname(__FILE__).'/'.self::INSTALLER_DIR_NAME.'/lib';\r\n\t\t\t $snaplib_directory = $lib_directory.'/snaplib';\r\n\r\n\t\t\t // If snaplib files aren't present attempt to extract and copy those\r\n\t\t\t if(!file_exists($snaplib_directory))\r\n\t\t\t {\r\n\t\t\t\t$folder_prefix = 'snaplib/';\r\n\t\t\t\t$destination = $lib_directory;\r\n\r\n\t\t\t\tfor ($i = 0; $i < $zipArchive->numFiles; $i++) {\r\n\t\t\t\t $stat\t\t = $zipArchive->statIndex($i);\r\n\t\t\t\t $filename\t = $stat['name'];\r\n\r\n\t\t\t\t if ($this->startsWith($filename, $folder_prefix)) {\r\n\t\t\t\t $this->installer_files_found++;\r\n\r\n\t\t\t\t if ($zipArchive->extractTo($destination, $filename) === true) {\r\n\t\t\t\t self::log(\"Success: {$filename} >>> {$destination}\");\r\n\t\t\t\t } else {\r\n\t\t\t\t self::log(\"Error extracting {$filename} from archive archive file\");\r\n\t\t\t\t $success = false;\r\n\t\t\t\t break;\r\n\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t}\r\n\r\n\t\t\tif ($zipArchive->close() === true) {\r\n\t\t\t\tself::log(\"Successfully closed archive file\");\r\n\t\t\t} else {\r\n\t\t\t\tself::log(\"Problem closing archive file\");\r\n\t\t\t\t$success = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ($success != false && $this->installer_files_found < 10) {\r\n\t\t\t\tif ($checkSubFolder) {\r\n\t\t\t\t\tself::log(\"Couldn't find the installer directory in the archive!\");\r\n\t\t\t\t\t$success = false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tself::log(\"Couldn't find the installer directory in archive root! Check subfolder\");\r\n\t\t\t\t\t$this->extractInstallerZipArchive($archive_filepath, true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tself::log(\"Couldn't open archive archive file with ZipArchive\");\r\n\t\t\t$success = false;\r\n\t\t}\r\n\r\n\t\treturn $success;\r\n\t}", "title": "" }, { "docid": "fb869db201763482e32db05ecaa1d72c", "score": "0.4747999", "text": "public function getArchive();", "title": "" }, { "docid": "182e3e92dad59245b86074647ce3240d", "score": "0.4728538", "text": "private function extractPackage($path, $outputDir)\n {\n if (is_dir($path)) {\n // Not a ZIP archive\n return $path;\n }\n\n $tempDir = $this->filesystem->createTempDirectory($outputDir);\n\n $this->io->debug(sprintf('Extracting package contents to \"%s\"', $tempDir));\n\n return $this->packageExtractor->extract($path, $tempDir);\n }", "title": "" }, { "docid": "66a0efda9bd53e33726fd649ad176e29", "score": "0.4727995", "text": "public function unpack_archive(){\n\t\t\t$import = (isset($_POST['import']) ? true : false);\n\t\t\t$automagic = (isset($_POST['automagic']) ? true : false);\n\t\t\t$archive_file = (isset($_POST['archive_file']) ? $_POST['archive_file'] : false);\n\t\t\t$response = '';\n\t\t\t\n\t\t\tif($archive_file !== false){\n\t\t\t\t// Construct the command and verify checks for importing pass\n\t\t\t\tif($this->archive->unpack_all_archives($_POST['archive_file'], $import) !== false){\n\t\t\t\t\t$cmd = $this->lock->updateLock('Unpacking file archive').\n\t\t\t\t\t\t\t$this->archive->cmd;\n\t\t\t\t\t\n\t\t\t\t\t$reponse = '<p>During this processes we have:</p><ul class=\"list-unstyled\">\n\t\t\t\t\t\t\t\t\t<li>- Extracted the wp-content folder</li>';\n\t\t\t\t\t\n\t\t\t\t\t// Append the MySQL import if import is selected and we can find a FATT SQL file\n\t\t\t\t\tif($import){\n\t\t\t\t\t\t$backup = $this->mySQL->locate_fatt_sql();\n\t\t\t\t\t\tif($backup !== false){\n\t\t\t\t\t\t\t$this->mySQL->restore_sql_backup($backup);\n\t\t\t\t\t\t\t$cmd .= $this->lock->updateLock('Restoring MySQL database').\n\t\t\t\t\t\t\t\t\t$this->mySQL->cmd;\n\t\t\t\t\t\t\t$response .= '<li>- Imported the MySQL database</li>';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// If database updates is selected, append commands\n\t\t\t\t\tif($automagic){\n\t\t\t\t\t\t$cmd .= $this->lock->updateLock('Applying fixes to the database');\n\t\t\t\t\t\t$response .= '<li>- Updated table prefixes, usermeta, and options</li>';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$cmd .= $this->lock->removeLock();\n\t\t\t\t\tshell_exec($cmd);\n\t\t\t\t\t\n\t\t\t\t\t$response .= '</ul>';\n\t\t\t\t\t$response = $this->display->set_success_box($response);\n\t\t\t\t\t\n\t\t\t\t// We cannot automagically restore this archive\n\t\t\t\t}else{\n\t\t\t\t\t$response = $this->display->set_error_box('<p>We are having issues automagically unpacking the things!</p><p>You may wish to manually do this, or repack the archive on the source</p>');\n\t\t\t\t}\n\t\t\t// Archive file was not selected\n\t\t\t}else{\n\t\t\t\t$response = $this->display->set_error_box('<p>You need to select an archive!</p>');\n\t\t\t}\n\t\t\t\n\t\t\techo $response;\n\t\t}", "title": "" }, { "docid": "3bc59daf232c3af2eb844665910e443c", "score": "0.47196862", "text": "public static function extractZip($file, $destination = \"./\")\n\t{\n\t\tif (!file_exists($file))\n\t\t\treturn false;\n\t\t$zip = new ZipArchive;\n\t\t$res = $zip->open($file);\n\t\tif ($res === true) {\n\t\t\t$zip->extractTo($destination);\n\t\t\t$zip->close();\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "1b16fea613a6a9a0645da990f6d93860", "score": "0.46699953", "text": "protected function extract(): bool\n {\n $tmpDir = uniqid('import_');\n $this->dirToExtract = \\Yii::getAlias('@runtime') . DIRECTORY_SEPARATOR . $tmpDir;\n if (FileHelper::createDirectory($this->dirToExtract) === false) {\n return false;\n }\n\n $zip = new \\ZipArchive();\n $res = $zip->open($this->zipFilename);\n if ($res === true) {\n $zip->extractTo($this->dirToExtract);\n $zip->close();\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "ddc93b8c101fea72ad7b7c84a8473056", "score": "0.46536165", "text": "public function decompress($content) {\r\n\t\t$archive = $this->getArchive ();\r\n\t\t\r\n\t\tif (empty ( $archive ) || ! file_exists ( $archive )) {\r\n\t\t\tthrow new Exception\\RuntimeException ( 'ZIP Archive not found' );\r\n\t\t}\r\n\t\t\r\n\t\t$archive = str_replace ( array (\r\n\t\t\t\t'/',\r\n\t\t\t\t'\\\\' \r\n\t\t), DIRECTORY_SEPARATOR, realpath ( $content ) );\r\n\t\t$zip = new ZipArchive ();\r\n\t\t$res = $zip->open ( $archive );\r\n\t\t\r\n\t\t$target = $this->getTarget ();\r\n\t\tif (! empty ( $target ) && ! is_dir ( $target )) {\r\n\t\t\t$target = dirname ( $target );\r\n\t\t}\r\n\t\t\r\n\t\tif (! empty ( $target )) {\r\n\t\t\t$target = rtrim ( $target, '/\\\\' ) . DIRECTORY_SEPARATOR;\r\n\t\t}\r\n\t\t\r\n\t\tif (empty ( $target ) || ! is_dir ( $target )) {\r\n\t\t\tthrow new Exception\\RuntimeException ( 'No target for ZIP decompression set' );\r\n\t\t}\r\n\t\t\r\n\t\tif ($res !== true) {\r\n\t\t\tthrow new Exception\\RuntimeException ( $this->errorString ( $res ) );\r\n\t\t}\r\n\t\t\r\n\t\t$res = $zip->extractTo ( $target );\r\n\t\tif ($res !== true) {\r\n\t\t\tthrow new Exception\\RuntimeException ( $this->errorString ( $res ) );\r\n\t\t}\r\n\t\t\r\n\t\t$zip->close ();\r\n\t\treturn $target;\r\n\t}", "title": "" }, { "docid": "69529757f9c797dcefe3c64e0354517a", "score": "0.4630767", "text": "public function downloadFile(): void\n {\n $client = new Client();\n $response = $client->get($this->zipUrl);\n Storage::put($this->storeZipFile, $response->getBody());\n }", "title": "" }, { "docid": "6e6e03c7d6f62f33683011eb825cb756", "score": "0.45892212", "text": "public function read(Artifact $artifact) : Archive\n {\n }", "title": "" }, { "docid": "cfd577b6bf9fa848c92a8e12f376db04", "score": "0.45882326", "text": "public static function unzip($file, $destination){\n // create object \n $zip = new ZipArchive() ; \n // open archive \n if ($zip->open($file) !== TRUE) { \n die (\"Could not open archive\"); \n }\n \n // extract contents to destination directory \n $zip->extractTo($destination); \n // close archive \n $zip->close(); \n return true;\n }", "title": "" }, { "docid": "5c8e3f7166e305ceb437507dc5669e9b", "score": "0.45859", "text": "public function exportContent($id, $target) {\n $this->export_file_tree($target, $this->context->id, self::CONTENT_FILEAREA, '/', $id);\n }", "title": "" }, { "docid": "5ede5d1116b1b2845d355934256c3ee2", "score": "0.45856246", "text": "public static function extractTar($file, $destination = \"./\")\n\t{\n\t\tif (!file_exists($file))\n\t\t\treturn false;\n\t\t$tar = new PharData($file);\n\t\ttry {\n\t\t\t$tar->extractTo($destination, null, true);\n\t\t\treturn true;\n\t\t} catch (Exception $e) {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "fb2291fe41eb78ab621242599a9d5e1d", "score": "0.45616236", "text": "function AppPhpzipExtractByIndexAsk($p_archive, $p_index)\n {\n $v_result = 1;\n global $g_config_file; include ($g_config_file);\n\n TrFctStart(__FILE__, __LINE__, \"AppPhpzipExtractByIndexAsk\", \"archive='$p_archive', indext='$p_index'\");\n\n // ----- Get the archive type\n $v_archive_type = AppPhpzipArchiveType($p_archive);\n\n // ----- Look for PhpZip format\n if ($v_archive_type == \"phpzip\")\n {\n // ----- Not supported yet\n\n // ----- Set an error string for the footer\n $v_message = Translate(\"Fonction non supportée pour ce type d'archive\");\n\n // ----- Display HTML page\n AppPhpzipStatus(\"Extraire\", $p_archive, \"NOK\", $v_message, Translate(\"Erreur\").\".\");\n }\n\n\n // ----- Look for zip format\n else if ($v_archive_type == \"zip\")\n {\n $v_result = AppPhpzipZipExtractByIndexAsk($p_archive, $p_index);\n }\n\n // ----- Look for tar (tar.gz) format\n else if ($v_archive_type != \"\")\n {\n // ----- Get list of file\n $v_list = PclTarList($p_archive, $v_archive_type);\n\n // ----- Parse index\n $v_token = explode('-', $p_index);\n if (sizeof($v_token)==1)\n $v_token[1]=$v_token[0];\n TrFctMessage(__FILE__, __LINE__, 2, \"Parsing index '$v_token[0]' and '$v_token[1]'\");\n\n // ----- Look for file\n if (sizeof($v_list))\n {\n // ----- Display HTML header\n AppPhpzipActionHeader($p_archive, Translate(\"Extraire\"));\n\n echo \"<form name=formulaire method=post action=\\\"?\\\">\";\n echo \"<table width=100% border=0 cellspacing=0 cellpadding=0>\";\n echo \"<tr bgcolor=$g_text_bg><td><font face=$g_font size=$g_text_size color=$g_text_color><p><br><div align=center>\";\n echo Translate(\"Confirmer l'extraction de\").\" :</div></p></font>\";\n echo \"</td></tr>\";\n echo \"</table>\";\n\n?>\n<div id=\"Layer2\" style=\"position:absolute; width:300px; height:200px; z-index:1; overflow: auto; left: 20px; top: 60px; background-color: #CCCCCC; border: 1px none #CCCCCC\">\n<?\n // ----- Display the list of extracted files\n echo \"<table border=0 cellspacing=0 cellpadding=0 align=left><tr bgcolor=CCCCCC><td colspan=3>&nbsp</td></tr>\";\n // ----- Compose the file list\n for ($i=0; $i<sizeof($v_list); $i++)\n {\n // ----- Look for scope\n if (($i>=$v_token[0]) && ($i <= $v_token[1]))\n {\n echo \"<tr bgcolor=CCCCCC><td>\";\n echo \"<img src='$g_images_dir/\".AppPhpzipExtensionImageTar($v_list[$i]).\"' border='0' width='16' height='16' align='absmiddle'>\";\n echo \"</td><td width=5></td><td>\";\n echo \"<font face=$g_font size=\".$g_text_size.\" color=$g_text_color>\";\n echo $v_list[$i]['filename'].\"</font>\";\n echo \"</td></tr>\\n\\r\";\n }\n }\n echo \"<tr bgcolor=CCCCCC><td>&nbsp</td></tr></table>\";\n\n?>\n</div>\n<?\n\n // ----- End of form\n echo \"<br><br><br><br><br><br><br><br><br><br><br><br>\";\n\n // ----- Ask for extraction directory\n echo '<div align=center>';\n echo \"<font face=$g_font size=$g_text_size color=$g_text_color>\";\n echo \"<br>\".Translate(\"Extraire dans\").\" : \";\n echo \"<input type=text id=\\\"a_path\\\" name=a_path size=15 maxlength=200 value=./>\";\n //echo \" <INPUT TYPE='BUTTON' value='\".Translate('Parcourir').\" ...'></font>\";\n\n echo \"<script language='javascript' src='pcsexplorer/pcsexplorer.js.php'></script>\";\n\n // ----- Here I should use something like the last opened directory ...\n // TBC\n global $PATH_INFO;\n echo \" <INPUT TYPE=button name=bt value='\".Translate('Parcourir').\" ...' \";\n// echo \"onClick='PcjsOpenExplorer(\\\"pcsexplorer.php\\\", \\\"forms.formulaire.a_path.value\\\", \\\"type=dir\\\", \\\"calling_dir=\".dirname($PATH_INFO).\"\\\", \\\"start_dir=.\\\")'\";\n echo \"onClick='PcjsExplorer(\\\"target=a_path\\\", \\\"type=dir\\\", \\\"result_ref_dir=\".dirname($PATH_INFO).\"\\\", \\\"start_dir=.\\\")'\";\n echo \">\";\n\n // ----- Ask for remove of directory\n $v_subpath = explode(\"/\", $v_list[$v_token[0]]['filename']);\n $v_nb = sizeof($v_subpath);\n if ($v_list[$v_token[0]]['typeflag']!=5)\n $v_nb--;\n if ($v_nb != 0)\n {\n echo \"<br><font face=$g_font size=$g_text_size color=$g_text_color>\".Translate(\"Chemin à ignorer\").\" : \";\n echo \"<SELECT name='a_remove_dir'>\";\n echo \"<OPTION value=''></OPTION>\";\n for ($i=0, $v_str=''; $i<$v_nb; $i++)\n {\n if ($i==0)\n $v_str = $v_subpath[$i];\n else\n $v_str = $v_str.'/'.$v_subpath[$i];\n echo \"<OPTION value='$v_str'>$v_str</OPTION>\";\n }\n echo \"</SELECT>\";\n }\n else\n echo \"<br>&nbsp;\";\n echo '</div><br>';\n\n\n echo \"<input type=hidden name=a_action value=extract_index>\";\n echo \"<input type=hidden name=a_index value=$p_index>\";\n echo \"<input type=hidden name=a_archive value=$p_archive>\";\n echo \"<div align=center><font face=$g_font size=$g_text_size color=$g_text_color>\";\n echo \"<input type=submit value=\\\"\";\n echo Translate(\"Confirmer\");\n echo \"\\\"> \";\n echo \"<input type=submit value=\\\"\";\n echo Translate(\"Annuler\");\n echo \"\\\" onClick='window.close();'>\";\n echo \"</font></div>\";\n echo \"</form>\";\n\n // ----- Display HTML footer\n AppPhpzipActionFooter(Translate(\"Extraire\"));\n\n unset($v_list);\n }\n\n else\n {\n // ----- Set an error string for the footer\n $v_message = Translate(\"Impossible de lire la liste des fichiers.\");\n\n // ----- Display HTML page\n AppPhpzipStatus(\"Extraire\", $p_archive, \"NOK\", $v_message, Translate(\"Erreur\").\".\");\n }\n }\n\n else\n {\n // ----- Set an error string for the footer\n $v_message = Translate(\"Archive PhpZip inconnue\").\" \\\"$p_archive\\\"\";\n\n // ----- Display HTML page\n AppPhpzipStatus(\"Extraire\", $p_archive, \"NOK\", $v_message, Translate(\"Erreur\").\".\");\n }\n\n // ----- Return\n TrFctEnd(__FILE__, __LINE__, $v_result);\n return $v_result;\n }", "title": "" }, { "docid": "360ce3f0df27776494fedb2c076745f9", "score": "0.4537887", "text": "public function file(Response $response, $target, $download = false)\n {\n // TODO: Implement file() method.\n }", "title": "" }, { "docid": "aa4dc2c94a5e5c46133f60b45ff62003", "score": "0.45306936", "text": "protected function extract()\n {\n try {\n $zip = new \\ZipArchive();\n $zip->open( $this->file );\n $zip->extractTo( $this->get_tmp_dir() );\n return true;\n } catch (\\Exception $e) {\n $this->errors[] = \"Failed to unzip file: \" . $e->getMessage();\n return false;\n }\n }", "title": "" }, { "docid": "b00a678d20c8594390e227ad0d453c2d", "score": "0.44991368", "text": "protected function _extractAction(&$action, &$argument)\n {\n $action = false;\n foreach (array_keys($this->getSupportedActions()) as $_action) {\n $_argument = $this->getArg($_action);\n if (is_string($_argument)) {\n $action = $_action;\n $argument = $_argument;\n if ($action == self::ACTION_PURGE_TAGS) {\n $argument = explode(',', $argument);\n }\n break;\n }\n }\n if (!$action) {\n $action = self::ACTION_PURGE_TAGS;\n $argument = $this->_getProcessor()->getTagsFromQueue();\n }\n }", "title": "" }, { "docid": "18247074a3ec8db0fd38d97775f43a4b", "score": "0.44941753", "text": "public function extract($index, $path, $name)\n {\n $images = $this->getImages();\n if ($index >= 0 && (count($images) - 1 >= $index) && ! empty($path)) {\n usort($images, function ($left, $right) {\n return strnatcasecmp($left['name'], $right['name']);\n });\n\n $entryName = $images[$index]['name'];\n $destPath = $path . DIRECTORY_SEPARATOR . $name;\n $size = 0;\n\n return $this->m_rar->getEntry($entryName)->extract(false, $destPath);\n// return copy($this->getImageUrlPath($index, $size), $destPath);\n }\n\n return false;\n }", "title": "" }, { "docid": "010253a57e390a2ea8a7d0c0d6f517e3", "score": "0.44758382", "text": "private function unzip($zip_file, $destination){\n\t\t$zip = new ZipArchive;\n\t\tif ($zip->open($zip_file) === TRUE) {\n\t\t\t$comment = $zip->getArchiveComment();\n\t\t\t$zip->extractTo($destination);\n\t\t\t$zip->close();\n\t\t\treturn $comment;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "13a56067f4e3c269d5832fb7e9b66405", "score": "0.44714123", "text": "public function unpack($archive, $directory = './')\r\n {\r\n if(!is_dir($directory))\r\n {\r\n if(!mkdir($directory))\r\n {\r\n $exceptionMessage = 'The directory did not exist';\r\n $exceptionMessage .= ' and attempt was made to create it, but failed.';\r\n\r\n throw new \\RuntimeException($exceptionMessage);\r\n }\r\n }\r\n\r\n // ==== Check variable ==== //\r\n $isOk = true;\r\n\r\n // ==== Opening the archive ==== //\r\n $archOpen = $this->open($archive);\r\n\r\n if($archOpen === true)\r\n {\r\n $this->extractTo($directory);\r\n $this->close();\r\n }\r\n else\r\n {\r\n $isOk = $archOpen;\r\n }\r\n\r\n // ==== Returning result ==== //\r\n return $isOk;\r\n }", "title": "" }, { "docid": "033d1ec8e96de072a794ee4171bec8f3", "score": "0.44587263", "text": "public function unZip($file)\n {\n $zip = new ZipArchive;\n $res = $zip->open($file);\n if ($res === TRUE) {\n $zip->extractTo(Mage::getBaseDir() . DS . 'INPUT');\n $zip->close();\n }\n }", "title": "" }, { "docid": "bc2ae1361afe1699a8dcf2eea8ca8a69", "score": "0.44422564", "text": "function download($source, $target) {\n\t$docroot = $_SERVER['DOCUMENT_ROOT'];\n\treturn file_put_contents($docroot.'/'.$target, file_get_contents($source));\n}", "title": "" }, { "docid": "4732457db0faf2c5148183913bc40d9e", "score": "0.4440357", "text": "private function addSingleFile($source)\n {\n if (is_file($source)) {\n $this->zip->addFromString(basename($source), file_get_contents($source));\n } else {\n throw new Exception(\"This is not a valid file\");\n }\n }", "title": "" }, { "docid": "5c3a04e8fd3c6650df0c355c70705680", "score": "0.44317067", "text": "public function unpack_all_archives($archive_backup = '', $import){\n\n\t\t\t\n\n\t\t\t// Break the backup out by . which determines how many . there are\n\n\t\t\t$match = explode('.', $archive_backup);\n\n\t\t\t$numFound = count($match);\n\n\t\t\t$ext = array();\n\n\t\t\t$cmd = false;\n\n\t\t\t\n\n\t\t\t// Determine potential file extensions / alternate variation\n\n\t\t\tswitch(true){\n\n\t\t\t\tdefault:\n\n\t\t\t\tcase ($numFound <= 1):\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t// One potential found\n\n\t\t\t\tcase ($numFound == 2):\n\n\t\t\t\t\t$ext[0] = '.'.$match[1];\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t// One - many potential extensions found, so set extAlt\n\n\t\t\t\tcase ($numFound <= 3):\n\n\t\t\t\t\t$ext[0] = '.'.$match[$numFound - 1];\n\n\t\t\t\t\t$ext[1] = '.'.$match[$numFound - 2].$ext[0];\n\n\t\t\t\t\t// Reverse the array to test with the combination first\n\n\t\t\t\t\t$ext = array_reverse($ext);\n\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\t\n\n\t\t\t// File was not made by the script - check other archive types\n\n\t\t\tif(!empty($ext)){\n\n\t\t\t\t// Loop through to check for an extension match\n\n\t\t\t\tforeach($ext as $extension){\n\n\t\t\t\t\tif(!$cmd){\n\n\t\t\t\t\t\t// Perform the necessary BASH commands to extract data \n\n\t\t\t\t\t\tswitch($extension){\n\n\t\t\t\t\t\t\tcase '.tar.gz':\n\n\t\t\t\t\t\t\tcase '.tgz':\n\n\t\t\t\t\t\t\t\t$cmd = 'tar -xzf ';\n\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase '.gz':\n\n\t\t\t\t\t\t\t\t$cmd = 'gunzip -d < ';\n\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase '.zip':\n\n\t\t\t\t\t\t\t\t$cmd = 'unzip ';\n\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase '.tar':\n\n\t\t\t\t\t\t\t\t$cmd = 'tar -xf ';\n\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase '.bz2':\n\n\t\t\t\t\t\t\t\t$cmd = 'bunzip2 ';\n\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}// END FOREACH\n\n\t\t\t}\n\n\t\t\t\n\n\t\t\tif($cmd){\n\n\t\t\t\t// Extract the archive\n\n\t\t\t\t$check = ';if [[ $? -ne 0 ]];then echo \"Archive Extraction Failed\" >> ./.wpc.log;else echo \"Archive Extraction Success\" >> ./.wpc.log;fi;';\n\t\t\t\t$this->cmd .= \"\".$cmd.\"'\".$archive_backup.\"'\".$check.\"\";\n\n\t\t\t\treturn true;\n\n\t\t\t}else{\n\n\t\t\t\treturn false;\n\n\t\t\t}\n\n\t\t}", "title": "" }, { "docid": "0f1f2c7d747ec53bcdb3a17457a6c40f", "score": "0.44245097", "text": "protected function downloadFile($entry)\n {\n $this->fs->put(\n $this->temp . '/' . $entry['path'],\n $this->fs->cloud()->read($entry['path'])\n );\n }", "title": "" }, { "docid": "a625ab0876a5b7a2c25569b96d1df80c", "score": "0.44150895", "text": "public function pull($source, $target)\n {\n $pulled = false;\n if ($this->modx->getCacheManager()) {\n $pulled = $this->modx->cacheManager->copyFile($source, $target, array('copy_preserve_permissions' => true));\n }\n return $pulled;\n }", "title": "" }, { "docid": "364acdc12f80102433c9c0d80df87bfb", "score": "0.44017142", "text": "public function unpack_all_archives($archive_backup = '', $import){\n\t\t\t\n\t\t\t// Break the backup out by . which determines how many . there are\n\t\t\t$match = explode('.', $archive_backup);\n\t\t\t$numFound = count($match);\n\t\t\t$ext = array();\n\t\t\t$cmd = false;\n\t\t\t\n\t\t\t// Determine potential file extensions / alternate variation\n\t\t\tswitch(true){\n\t\t\t\tdefault:\n\t\t\t\tcase ($numFound <= 1):\n\t\t\t\t\tbreak;\n\t\t\t\t// One potential found\n\t\t\t\tcase ($numFound == 2):\n\t\t\t\t\t$ext[0] = '.'.$match[1];\n\t\t\t\t\tbreak;\n\t\t\t\t// One - many potential extensions found, so set extAlt\n\t\t\t\tcase ($numFound <= 3):\n\t\t\t\t\t$ext[0] = '.'.$match[$numFound - 1];\n\t\t\t\t\t$ext[1] = '.'.$match[$numFound - 2].$ext[0];\n\t\t\t\t\t// Reverse the array to test with the combination first\n\t\t\t\t\t$ext = array_reverse($ext);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t// File was not made by FATT - check other archive types\n\t\t\tif(!empty($ext)){\n\t\t\t\t// Loop through to check for an extension match\n\t\t\t\tforeach($ext as $extension){\n\t\t\t\t\tif(!$cmd){\n\t\t\t\t\t\t// Perform the necessary BASH commands to extract data \n\t\t\t\t\t\tswitch($extension){\n\t\t\t\t\t\t\tcase '.tar.gz':\n\t\t\t\t\t\t\tcase '.tgz':\n\t\t\t\t\t\t\t\t$cmd = 'tar -xzf ';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase '.gz':\n\t\t\t\t\t\t\t\t$cmd = 'gunzip -d < ';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase '.zip':\n\t\t\t\t\t\t\t\t$cmd = 'unzip ';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase '.tar':\n\t\t\t\t\t\t\t\t$cmd = 'tar -xf ';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase '.bz2':\n\t\t\t\t\t\t\t\t$cmd = 'bunzip2 ';\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}// END FOREACH\n\t\t\t}\n\t\t\t\n\t\t\tif($cmd){\n\t\t\t\t// Extract the archive\n\t\t\t\t$this->cmd .= $cmd.$archive_backup.';';\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "20fc1f1da4a907defd4545a590e56640", "score": "0.43932408", "text": "public static function extract($source, $destination, $stats = false)\n {\n $response = [\n 'status' => 'error',\n 'message' => '',\n 'exception' => '',\n 'source' => $source,\n 'destination' => $destination\n ];\n \n try\n {\n $allowed_extensions = ['zip', 'tar', 'gz', 'bz2'];\n $source_extension = pathinfo($source, PATHINFO_EXTENSION);\n if(in_array($source_extension, $allowed_extensions))\n {\n if(is_writable($destination))\n {\n $zippy = Zippy::load();\n\n $archive = $zippy->open($source);\n\n // extract content to `/tmp`\n $res = $archive->extract($destination);\n\n $response['status'] = 'success';\n\n if($stats)\n {\n $response['source_size'] = FileSystem::file_size($source);\n $response['source_size_hr'] = FileSystem::human_file_size($response['source_size']);\n $response['destination_size'] = FileSystem::dir_size($destination);\n $response['destination_size_hr'] = FileSystem::human_file_size($response['destination_size']);\n $response['decompression'] = round(-($response['source_size'] - $response['destination_size']) / $response['source_size'] * 100, 2);\n }\n }\n else\n {\n $response['message'] = 'DESTINATION_NOT_WRITABLE';\n }\n }\n else\n {\n $response['message'] = 'INVALID_FILE_TYPE';\n }\n }\n catch(\\Alchemy\\Zippy\\Exception\\NotSupportedException $e)\n {\n $response['message'] = 'UNKNOWN_ERROR';\n $response['exception'] = $e->getMessage();\n }\n catch(\\Alchemy\\Zippy\\Exception\\RunTimeException $e)\n {\n $response['message'] = 'UNKNOWN_ERROR';\n $response['exception'] = $e->getMessage();\n }\n catch(\\Alchemy\\Zippy\\Exception\\InvalidArgumentException $e)\n {\n $response['message'] = 'UNKNOWN_ERROR';\n $response['exception'] = $e->getMessage();\n }\n catch(Exception $e)\n {\n $response['message'] = 'UNKNOWN_ERROR';\n $response['exception'] = $e->getMessage();\n }\n\n return $response;\n }", "title": "" }, { "docid": "0c5c9e491888b18496704bc3f326142a", "score": "0.43911135", "text": "public function actionPull($target=false)\n {\n $query=Target::find();\n\n if($target !== false)\n {\n $query->andFilterWhere([\n 'id' => $target,\n ]);\n }\n\n foreach($query->all() as $t)\n {\n echo \"Pulling: \", $t->fqdn, \" / \", $t->ipoctet;\n try\n {\n $t->pull();\n echo \" OK\\n\";\n }\n catch(\\Exception $ce)\n {\n printf(\" NOT OK (%s)\\n\", $ce->getMessage());\n }\n }\n }", "title": "" }, { "docid": "f2fc4e35e048470389e972f731d3021a", "score": "0.43789366", "text": "private function tar_file( $file_name, $name_in_archive ) {\n\n\t\tif ( ! $this->check_archive_filesize( $file_name ) ) {\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t$chunk_size = 1024 * 1024 * 4;\n\n\t\t//split filename larger than 100 chars\n\t\tif ( strlen( $name_in_archive ) <= 100 ) {\n\t\t\t$filename = $name_in_archive;\n\t\t\t$filename_prefix = \"\";\n\t\t}\n\t\telse {\n\t\t\t$filename_offset = strlen( $name_in_archive ) - 100;\n\t\t\t$split_pos = strpos( $name_in_archive, '/', $filename_offset );\n\t\t\tif ( $split_pos === FALSE ) {\n\t\t\t\t$split_pos = strrpos( $name_in_archive, '/' );\n\t\t\t}\n\t\t\t$filename = substr( $name_in_archive, $split_pos + 1 );\n\t\t\t$filename_prefix = substr( $name_in_archive, 0, $split_pos );\n\t\t\tif ( strlen( $filename ) > 100 ) {\n\t\t\t\t$filename = substr( $filename, -100 );\n\t\t\t\ttrigger_error( sprintf( __( 'File name \"%1$s\" is too long to be saved correctly in %2$s archive!', 'backwpup' ), $name_in_archive, $this->get_method() ), E_USER_WARNING );\n\t\t\t}\n\t\t\tif ( strlen( $filename_prefix ) > 155 ) {\n\t\t\t\ttrigger_error( sprintf( __( 'File path \"%1$s\" is too long to be saved correctly in %2$s archive!', 'backwpup' ), $name_in_archive, $this->get_method() ), E_USER_WARNING );\n\t\t\t}\n\t\t}\n\t\t//get file stat\n\t\t$file_stat = stat( $file_name );\n\t\tif ( ! $file_stat ) {\n\t\t\treturn TRUE;\n\t\t}\n\t\t$file_stat[ 'size' ] = abs( (int) $file_stat[ 'size' ] );\n\t\t//open file\n\t\tif ( $file_stat[ 'size' ] > 0 ) {\n\t\t\tif ( ! ( $fd = fopen( $file_name, 'rb' ) ) ) {\n\t\t\t\ttrigger_error( sprintf( __( 'Cannot open source file %s for archiving', 'backwpup' ), $file_name ), E_USER_WARNING );\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t}\n\t\t//Set file user/group name if linux\n\t\t$fileowner = __( \"Unknown\", \"backwpup\" );\n\t\t$filegroup = __( \"Unknown\", \"backwpup\" );\n\t\tif ( function_exists( 'posix_getpwuid' ) ) {\n\t\t\t$info = posix_getpwuid( $file_stat[ 'uid' ] );\n\t\t\t$fileowner = $info[ 'name' ];\n\t\t\t$info = posix_getgrgid( $file_stat[ 'gid' ] );\n\t\t\t$filegroup = $info[ 'name' ];\n\t\t}\n\t\t// Generate the TAR header for this file\n\t\t$chunk = pack( \"a100a8a8a8a12a12a8a1a100a6a2a32a32a8a8a155a12\",\n\t\t\t$filename, //name of file 100\n\t\t\tsprintf( \"%07o\", $file_stat[ 'mode' ] ), //file mode 8\n\t\t\tsprintf( \"%07o\", $file_stat[ 'uid' ] ), //owner user ID 8\n\t\t\tsprintf( \"%07o\", $file_stat[ 'gid' ] ), //owner group ID 8\n\t\t\tsprintf( \"%011o\", $file_stat[ 'size' ] ), //length of file in bytes 12\n\t\t\tsprintf( \"%011o\", $file_stat[ 'mtime' ] ), //modify time of file 12\n\t\t\t\" \", //checksum for header 8\n\t\t\t0, //type of file 0 or null = File, 5=Dir\n\t\t\t\"\", //name of linked file 100\n\t\t\t\"ustar\", //USTAR indicator 6\n\t\t\t\"00\", //USTAR version 2\n\t\t\t$fileowner, //owner user name 32\n\t\t\t$filegroup, //owner group name 32\n\t\t\t\"\", //device major number 8\n\t\t\t\"\", //device minor number 8\n\t\t\t$filename_prefix, //prefix for file name 155\n\t\t\t\"\" ); //fill block 12\n\n\t\t// Computes the unsigned Checksum of a file's header\n\t\t$checksum = 0;\n\t\tfor ( $i = 0; $i < 512; $i ++ ) {\n\t\t\t$checksum += ord( substr( $chunk, $i, 1 ) );\n\t\t}\n\n\t\t$checksum = pack( \"a8\", sprintf( \"%07o\", $checksum ) );\n\t\t$chunk = substr_replace( $chunk, $checksum, 148, 8 );\n\n\t\tif ( isset( $fd ) && is_resource( $fd ) ) {\n\t\t\t// read/write files in 512 bite Blocks\n\t\t\twhile ( ( $content = fread( $fd, 512 ) ) != '' ) {\n\t\t\t\t$chunk .= pack( \"a512\", $content );\n\t\t\t\tif ( strlen( $chunk ) >= $chunk_size ) {\n\t\t\t\t\tif ( $this->method == 'TarGz' ) {\n\t\t\t\t\t\t$chunk = gzencode( $chunk );\n\t\t\t\t\t}\n\t\t\t\t\tif ( $this->method == 'TarBz2' ) {\n\t\t\t\t\t\t$chunk = bzcompress( $chunk );\n\t\t\t\t\t}\n\t\t\t\t\tfwrite( $this->filehandel, $chunk );\n\t\t\t\t\t$chunk = '';\n\t\t\t\t}\n\t\t\t}\n\t\t\tfclose( $fd );\n\t\t}\n\n\t\tif ( ! empty( $chunk ) ) {\n\t\t\tif ( $this->method == 'TarGz' ) {\n\t\t\t\t$chunk = gzencode( $chunk );\n\t\t\t}\n\t\t\tif ( $this->method == 'TarBz2' ) {\n\t\t\t\t$chunk = bzcompress( $chunk );\n\t\t\t}\n\t\t\tfwrite( $this->filehandel, $chunk );\n\t\t}\n\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "cb364808ceafcc5b53cd00821e6c91ac", "score": "0.43733525", "text": "public function archive_template($template) {\n\n\t\t\tglobal $wp_query;\n\n\t\t\t$archives = $this->archives;\n\n\t\t\tif($archives) {\n\t\t\t\tforeach( $archives as $type => $files ) {\n\n\t\t\t\t\tif( is_post_type_archive( $type ) ) {\n\n\t\t\t\t\t\t$temp = $this->locate($files);\n\n\t\t\t\t\t\tif($temp)\n\t\t\t\t\t\t\t$template = $temp;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $template;\n\n\t\t}", "title": "" }, { "docid": "f6cca117f01482d4e7e5e0d698af43b7", "score": "0.43693343", "text": "public function getExtractedFiles();", "title": "" }, { "docid": "56e8ff2b435fc9e5d998237464fd6d88", "score": "0.43356138", "text": "private function unzip($zip_file, $dir) {\n try {\n ($this->debug_on_file) ? error_log(logTime() . basename(__FILE__) . \" \" . __FUNCTION__ . PHP_EOL, 3, 'logs/fn.log') : false;\n\n\n $zip = new ZipArchive;\n $file = $zip->open($zip_file);\n $zip->extractTo($dir);\n $zip->close();\n } catch (Exception $e) {\n error_log(LogTime() . \" \" . message_err($e), 3, 'logs/error.log');\n error_log(LogTime() . \" \" . \"\\$zip_file -> $zip_file\", 3, 'logs/error.log');\n error_log(LogTime() . \" \" . \"\\$dir -> $dir\", 3, 'logs/error.log');\n throw new Exception(message_err($e));\n }\n }", "title": "" }, { "docid": "7fdb6124c0c9eb31a6d2a50759aec920", "score": "0.43298215", "text": "public function testZipDownload()\n {\n // Test without any parameters\n $zipDownload = Elvis::zip($this->sessionId, 'test.zip', 'original', array($this->assetId));\n\n $this->assertInternalType('string', $zipDownload->fileName);\n $this->assertEquals(200, $zipDownload->statusCode);\n }", "title": "" }, { "docid": "27fec9abc1228cf9a68bf83b59de09ca", "score": "0.43272114", "text": "private function getArchiveFilePath()\r\n\t{\r\n\t\tif (isset($_GET['archive'])) {\r\n\t\t\t$archive_filepath = $_GET['archive'];\r\n\t\t} else {\r\n\t\t$archive_filename = self::ARCHIVE_FILENAME;\r\n\t\t\t$archive_filepath = str_replace(\"\\\\\", '/', dirname(__FILE__) . '/' . $archive_filename);\r\n\t\t}\r\n\r\n\t\tself::log(\"Using archive $archive_filepath\");\r\n\t\treturn $archive_filepath;\r\n\t}", "title": "" }, { "docid": "4795bc55a2b7ca4408666b2ea894830d", "score": "0.431986", "text": "abstract protected function getFilesToDelete(Target $target, Collector $collector);", "title": "" }, { "docid": "f2786888b296399266f56a7331e73b8f", "score": "0.43177074", "text": "function AppPhpzipDownload($p_archive)\n {\n $v_result = 1;\n global $g_config_file; include ($g_config_file);\n\n TrFctStart(__FILE__, __LINE__, \"AppPhpzipDownload\", \"$p_archive\");\n\n // ----- Check for security, does not download other files than archives\n if (AppPhpzipArchiveType($p_archive) == '')\n {\n // ----- Set an error string for the footer\n $v_message = Translate(\"Impossible de trouver l'archive\").\" \\\"$p_archive\\\"\";\n\n // ----- Display HTML page\n AppPhpzipStatus(\"Télécharger\", $p_archive, \"NOK\", $v_message, Translate(\"Erreur\").\".\");\n }\n else\n // ----- Open and send the file\n if ($fp = @fopen($p_archive, \"r\"))\n {\n header(\"Content-disposition: filename=\".basename($p_archive));\n header('Content-Length: '.filesize($p_archive));\n header(\"Content-type: application/octetstream\");\n header(\"Pragma: no-cache\");\n header(\"Expires: 0\");\n fpassthru($fp);\n }\n\n else\n {\n // ----- Set an error string for the footer\n $v_message = Translate(\"Impossible de trouver l'archive\").\" \\\"$p_archive\\\"\";\n\n // ----- Display HTML page\n AppPhpzipStatus(\"Télécharger\", $p_archive, \"NOK\", $v_message, Translate(\"Erreur\").\".\");\n }\n\n // ----- Return\n TrFctEnd(__FILE__, __LINE__, $v_result);\n return $v_result;\n }", "title": "" }, { "docid": "ffdd1ff002dbf2f449ce72b0203fa943", "score": "0.4314809", "text": "static function unzip($file,$destination) {\n\t\t\t// If we can't write the output directory, we're not getting anywhere.\n\t\t\tif (!BigTree::isDirectoryWritable($destination)) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Up the memory limit for the unzip.\n\t\t\tini_set(\"memory_limit\",\"512M\");\n\t\t\t\n\t\t\t$destination = rtrim($destination).\"/\";\n\t\t\tBigTree::makeDirectory($destination);\n\t\t\t\n\t\t\t// If we have the built in ZipArchive extension, use that.\n\t\t\tif (class_exists(\"ZipArchive\")) {\n\t\t\t\t$z = new ZipArchive;\n\t\t\t\t\n\t\t\t\tif (!$z->open($file)) {\n\t\t\t\t\t// Bad zip file.\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor ($i = 0; $i < $z->numFiles; $i++) {\n\t\t\t\t\tif (!$info = $z->statIndex($i)) {\n\t\t\t\t\t\t// Unzipping the file failed for some reason.\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// If it's a directory, ignore it. We'll create them in putFile.\n\t\t\t\t\tif (substr($info[\"name\"],-1) == \"/\") {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Ignore __MACOSX and all it's files.\n\t\t\t\t\tif (substr($info[\"name\"],0,9) == \"__MACOSX/\") {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t$content = $z->getFromIndex($i);\n\t\t\t\t\tif ($content === false) {\n\t\t\t\t\t\t// File extraction failed.\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tBigTree::putFile($destination.$file[\"name\"],$content);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$z->close();\n\t\t\t\treturn true;\n\n\t\t\t// Fall back on PclZip if we don't have the \"native\" version.\n\t\t\t} else {\n\t\t\t\t// WordPress claims this could be an issue, so we'll make sure multibyte encoding isn't overloaded.\n\t\t\t\tif (ini_get('mbstring.func_overload') && function_exists('mb_internal_encoding')) {\n\t\t\t\t\t$previous_encoding = mb_internal_encoding();\n\t\t\t\t\tmb_internal_encoding('ISO-8859-1');\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$z = new PclZip($file);\n\t\t\t\t$archive = $z->extract(PCLZIP_OPT_EXTRACT_AS_STRING);\n\n\t\t\t\t// If we saved a previous encoding, reset it now.\n\t\t\t\tif (isset($previous_encoding)) {\n\t\t\t\t\tmb_internal_encoding($previous_encoding);\n\t\t\t\t\tunset($previous_encoding);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// If it's not an array, it's not a good zip. Also, if it's empty it's not a good zip.\n\t\t\t\tif (!is_array($archive) || !count($archive)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tforeach ($archive as $item) {\n\t\t\t\t\t// If it's a directory, ignore it. We'll create them in putFile.\n\t\t\t\t\tif ($item[\"folder\"]) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Ignore __MACOSX and all it's files.\n\t\t\t\t\tif (substr($item[\"filename\"],0,9) == \"__MACOSX/\") {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tBigTree::putFile($directory.$item[\"filename\"],$item[\"content\"]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "7ffe51c7eefb01d15949f83b4c3cbe22", "score": "0.43029493", "text": "private function file( $target = 'path' ) {\n\n\t\t// Get the blog ID.\n\t\t$blog_id = 1;\n\t\tif ( is_multisite() ) {\n\t\t\t$current_site = get_blog_details();\n\t\t\t$blog_id = $current_site->blog_id;\n\t\t}\n\n\t\t// Get the upload directory for this site.\n\t\t$upload_dir = wp_upload_dir();\n\n\t\t// If this is a multisite installation, append the blogid to the filename.\n\t\t$blog_id = ( is_multisite() && $blog_id > 1 ) ? '-blog-' . $blog_id : null;\n\t\t$page_id = ( cyprus()->get_page_id() ) ? cyprus()->get_page_id() : 'global';\n\n\t\t$file_name = 'cyprus' . $blog_id . '-' . $page_id . '.css';\n\t\t$folder_path = $upload_dir['basedir'] . DIRECTORY_SEPARATOR . 'cyprus-styles';\n\n\t\t// The complete path to the file.\n\t\t$file_path = $folder_path . DIRECTORY_SEPARATOR . $file_name;\n\n\t\t// Get the URL directory of the stylesheet.\n\t\t$css_uri_folder = $upload_dir['baseurl'];\n\n\t\t// Build the URL of the file.\n\t\t$css_uri = trailingslashit( $css_uri_folder ) . 'cyprus-styles/' . $file_name;\n\n\t\t// Take care of domain mapping.\n\t\t// When using domain mapping we have to make sure that the URL to the file\n\t\t// does not include the original domain but instead the mapped domain.\n\t\tif ( defined( 'DOMAIN_MAPPING' ) && DOMAIN_MAPPING ) {\n\t\t\tif ( function_exists( 'domain_mapping_siteurl' ) && function_exists( 'get_original_url' ) ) {\n\t\t\t\t$mapped_domain = domain_mapping_siteurl( false );\n\t\t\t\t$original_domain = get_original_url( 'siteurl' );\n\t\t\t\t$css_uri = str_replace( $original_domain, $mapped_domain, $css_uri );\n\t\t\t}\n\t\t}\n\n\t\t// Strip protocols from the URL.\n\t\t// Make sure we don't have any issues with sites using HTTPS/SSL.\n\t\t$css_uri = str_replace( 'https://', '//', $css_uri );\n\t\t$css_uri = str_replace( 'http://', '//', $css_uri );\n\n\t\t// Return the path or the URL\n\t\t// depending on the $target we have defined when calling this method.\n\t\tif ( 'path' === $target ) {\n\t\t\treturn $file_path;\n\t\t}\n\n\t\tif ( 'url' === $target || 'uri' === $target ) {\n\t\t\t$timestamp = ( file_exists( $file_path ) ) ? '?timestamp=' . filemtime( $file_path ) : '';\n\t\t\treturn $css_uri . $timestamp;\n\t\t}\n\t}", "title": "" }, { "docid": "ac0c612b327b23bfe0513d0c320011e1", "score": "0.42955065", "text": "abstract public function initialize(string $targetArchivePath, array $options = []): void;", "title": "" }, { "docid": "36c0fbafe36524c3eb9f8e18941f1f3a", "score": "0.4282494", "text": "function extractBibEntry($filename, $key) {\n\treturn extractBibEntryFromString(file($filename), $key);\n}", "title": "" }, { "docid": "5f85820b58681d898b196f1faaa1a08a", "score": "0.42789367", "text": "protected function processArchive($archive)\n {\n try {\n if (file_exists(TEMP_PATH.'/restore') && !$this->app['utils']->rrmdir(TEMP_PATH.'/restore')) {\n throw new \\Exception(sprintf(\"Can't delete the directory %s\", TEMP_PATH.'/restore'));\n }\n if (!file_exists(TEMP_PATH.'/restore') && (false === @mkdir(TEMP_PATH.'/restore', 0755, true))) {\n throw new \\Exception(\"Can't create the directory \".TEMP_PATH.\"/restore\");\n }\n\n if (file_exists(TEMP_PATH.'/backup') && !$this->app['utils']->rrmdir(TEMP_PATH.'/backup')) {\n throw new \\Exception(sprintf(\"Can't delete the directory %s\", TEMP_PATH.'/backup'));\n }\n\n $this->app['monolog']->addInfo(\"Start unzipping $archive\", array('method' => __METHOD__, 'line' => __LINE__));\n $unZip = new unZip($this->app);\n $unZip->setUnZipPath(TEMP_PATH.'/restore');\n $unZip->extract($archive);\n $this->app['monolog']->addInfo(\"Unzipped $archive\", array('method' => __METHOD__, 'line' => __LINE__));\n\n // check if the syncdata.json exists\n if (!file_exists(TEMP_PATH.'/restore/backup/syncdata.json')) {\n throw new \\Exception(\"Missing the syncdata.json file within the archive!\");\n }\n\n // restore the tables\n $this->restoreTables(TEMP_PATH.'/restore/backup/tables');\n\n // restore the files\n $this->restoreFiles(TEMP_PATH.'/restore/backup/cms');\n\n return true;\n } catch (\\Exception $e) {\n throw new \\Exception($e);\n }\n }", "title": "" }, { "docid": "45001ea3715f67b3b60fb6a855459729", "score": "0.4278253", "text": "public function download($sourceFilename, $targetFilename){\r\n\t\treturn copy($this->_relFile($sourceFilename), $targetFilename);\r\n\t}", "title": "" }, { "docid": "cf1965133e114bfe2c56867be7717b95", "score": "0.42775977", "text": "abstract protected function copy(tx_webconFtptransfer_File $file, $target);", "title": "" }, { "docid": "b8fe755529cd42be30a459dc4c225b3c", "score": "0.4269785", "text": "private function extractInstallerShellexec($archive_filepath)\r\n\t{\r\n\t\t$success = false;\r\n\t\tself::log(\"Attempting to use Shell Exec\");\r\n\t\t$unzip_filepath\t = $this->getUnzipFilePath();\r\n\r\n\t\tif ($unzip_filepath != null) {\r\n\t\t\t$unzip_command\t = \"$unzip_filepath -q $archive_filepath \".self::INSTALLER_DIR_NAME.'/* 2>&1';\r\n\t\t\tself::log(\"Executing $unzip_command\");\r\n\t\t\t$stderr\t = shell_exec($unzip_command);\r\n\r\n $lib_directory = dirname(__FILE__).'/'.self::INSTALLER_DIR_NAME.'/lib';\r\n $snaplib_directory = $lib_directory.'/snaplib';\r\n\r\n // If snaplib files aren't present attempt to extract and copy those\r\n if(!file_exists($snaplib_directory))\r\n {\r\n $local_lib_directory = dirname(__FILE__).'/snaplib';\r\n $unzip_command\t = \"$unzip_filepath -q $archive_filepath snaplib/* 2>&1\";\r\n self::log(\"Executing $unzip_command\");\r\n $stderr\t .= shell_exec($unzip_command);\r\n\t\t\t\tmkdir($lib_directory);\r\n rename($local_lib_directory, $snaplib_directory);\r\n }\r\n\r\n\t\t\tif ($stderr == '') {\r\n\t\t\t\tself::log(\"Shell exec unzip succeeded\");\r\n\t\t\t\t$success = true;\r\n\t\t\t} else {\r\n\t\t\t\tself::log(\"Shell exec unzip failed. Output={$stderr}\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $success;\r\n\t}", "title": "" }, { "docid": "012d59c4d28490ef3cd4e66adf25b648", "score": "0.42665926", "text": "public function extract($outputPath = null)\n {\n if(!$this->_isInfoExtracted) {\n $this->extractInfos();\n }\n \n if(empty($outputPath)) {\n $outputPath = $this->_data['dirname'];\n } else {\n $outputPath = implode('/', explode('/', $outputPath));\n }\n \n if($this->_data['extension'] == 'avi') {\n \n $this->_label(\"Extracting \" . $this->_data['audioFormat']);\n $ops = array(\n '-o ' . escapeshellarg($outputPath . '/' . $this->_data['filename'] . '.mp3'),\n '-a 1',\n '-D',\n '-S ' . escapeshellarg($this->_data['dirname'] . '/' . $this->_data['basename']),\n '--track-order 0:1'\n );\n exec('mkvmerge ' . implode(' ', $ops) . ' 1>/dev/null', $out, $status);\n $this->_status($status);\n \n } elseif($this->_data['audioFormat'] == 'ac3') {\n \n $this->_label(\"Extracting \" . $this->_data['audioFormat']);\n $ops = array(\n 'tracks ' . escapeshellarg($this->_data['dirname'] . '/' . $this->_data['basename']),\n $this->_data['audioId'] . ':' . escapeshellarg($outputPath . '/' . $this->_data['filename'] . '.' . $this->_data['audioFormat'])\n );\n \n exec('mkvextract ' . implode(' ', $ops) . ' 1>/dev/null', $out, $status);\n $this->_status($status);\n \n $this->_label(\"Converting\");\n $ops = array(\n '-i ' . escapeshellarg($outputPath . '/' . $this->_data['filename'] . '.' . $this->_data['audioFormat']),\n '-f ac3',\n '-acodec ac3',\n '-ab \"192000\"',\n escapeshellarg($outputPath . '/' . $this->_data['filename'] . '.192.ac3'),\n '2>' . escapeshellarg($this->_logPath . '/' . $outputPath . '/' . $this->_data['filename'] . '.log')\n );\n exec('ffmpeg ' . implode(' ', $ops) . ' 1>/dev/null', $out, $status);\n $this->_status($status);\n \n } elseif($this->_data['audioFormat'] == 'dts') {\n \n $this->_label(\"Extracting \" . $this->_data['audioFormat']);\n $ops = array(\n 'tracks ' . escapeshellarg($this->_data['dirname'] . '/' . $this->_data['basename']),\n $this->_data['audioId'] . ':' . escapeshellarg($outputPath . '/' . $this->_data['filename'] . '.' . $this->_data['audioFormat'])\n );\n \n exec('mkvextract ' . implode(' ', $ops) . ' 1>/dev/null', $out, $status);\n $this->_status($status);\n \n $this->_label(\"Converting\");\n $ops = array(\n '-o wavall ' . escapeshellarg($outputPath . '/' . $this->_data['filename'] . '.' . $this->_data['audioFormat']),\n '2>/dev/null 1>/dev/null',\n '|',\n 'aften',\n '-b \"192\"',\n '- ' . escapeshellarg($outputPath . '/' . $this->_data['filename'] . '.ac3'),\n '2>/dev/null'\n );\n exec('dcadec ' . implode(' ', $ops) . ' 1>/dev/null', $out, $status);\n $this->_status($status);\n \n } elseif($this->_data['audioFormat'] == 'aac') {\n \n $this->_label(\"Extracting \" . $this->_data['audioFormat']);\n $ops = array(\n 'tracks ' . escapeshellarg($this->_data['dirname'] . '/' . $this->_data['basename']),\n $this->_data['audioId'] . ':' . escapeshellarg($outputPath . '/' . $this->_data['filename'] . '.' . $this->_data['audioFormat'])\n );\n \n exec('mkvextract ' . implode(' ', $ops) . ' 1>/dev/null', $out, $status);\n $this->_status($status);\n \n } else {\n throw new \\UnexpectedValueException(\"Sound format is not supported.\");\n }\n \n $this->_label('Done', PHP_EOL);\n }", "title": "" }, { "docid": "7db315cadacd03dbc1b035ee7fa332ff", "score": "0.426115", "text": "public function Unzip($file, $path = null) {\n\n if ($path == null) {\n $path = $this->ViewerPath;\n }\n \n //----------------------------------------------------------\n if ($this->test) {\n $this->testclass->AppendTest('unzip['.$file.']', array('type' => 'function_check'), array('file' => __FILE__, 'line' => __LINE__, 'function' => __FUNCTION__));\n }\n //----------------------------------------------------------\n /*\n * Check if user have ZipArchive class installed\n */\n if (!class_exists('ZipArchive')) {\n //----------------------------------------------------------\n if ($this->test) {\n $this->testclass->UpdateTest('unzip['.$file.']', array('file' => __FILE__, 'line' => __LINE__, 'function' => __FUNCTION__), 'failed');\n }\n //----------------------------------------------------------\n\n //---------------------------------------------------------------------------------------------------\n throw new Exception('Orbitvu: PHP extension ZipArchive doesn\\'t exist. Upgrade your PHP version to >= 5.2.0 or install ZipArchive: php.net/ZipArchive or unzip file manually');\n //---------------------------------------------------------------------------------------------------\n return false;\n }\n\n /*\n * Unpacking the archive\n */\n $zip = new ZipArchive();\n //---------------------------------------------------------------------------------------------------\n if ($res = $zip->open($file)) {\n\n if ($res === true) {\n //---------------------------------------------------------------------------------------------------\n /*\n * Extract\n */\n $zip->extractTo($path);\n $zip->close();\n\n /*\n * Delete the temp .zip file\n */\n unlink($file);\n \n if (file_exists($file)) {\n throw new Exception('Orbitvu: cannot extract the file. Set \"write\" permissions to dir '.$path.' and to the parent directory.');\n }\n\n //----------------------------------------------------------\n if ($this->test) {\n $this->testclass->UpdateTest('unzip['.$file.']', array('file' => __FILE__, 'line' => __LINE__, 'function' => __FUNCTION__), 'ok');\n }\n //----------------------------------------------------------\n\n //---------------------------------------------------------------------------------------------------\n return true;\n //---------------------------------------------------------------------------------------------------\n }\n else {\n //----------------------------------------------------------\n if ($this->test) {\n $this->testclass->UpdateTest('unzip['.$file.']', array('file' => __FILE__, 'line' => __LINE__, 'function' => __FUNCTION__), 'failed');\n }\n //----------------------------------------------------------\n\n //---------------------------------------------------------------------------------------------------\n throw new Exception('Orbitvu: cannot extract the file. Not valid file format or directory '.$path.' not found. Create this directory and set \"write\" permissions');\n //---------------------------------------------------------------------------------------------------\n }\n }\n else {\n //----------------------------------------------------------\n if ($this->test) {\n $this->testclass->UpdateTest('unzip['.$file.']', array('file' => __FILE__, 'line' => __LINE__, 'function' => __FUNCTION__), 'failed');\n }\n //----------------------------------------------------------\n\n //---------------------------------------------------------------------------------------------------\n throw new Exception('Orbitvu: cannot extract the file. Set \"write\" permissions to '.$path);\n //---------------------------------------------------------------------------------------------------\n }\n }", "title": "" }, { "docid": "edaf314bad70235de9e8d774d37e18a8", "score": "0.4250928", "text": "function zipUnpack($file)\t{\n\t\tif (!(isset($GLOBALS['TYPO3_CONF_VARS']['BE']['unzip']['unzip']['split_char'])&&\n\t\t isset($GLOBALS['TYPO3_CONF_VARS']['BE']['unzip']['unzip']['pre_lines']) &&\n\t\t isset($GLOBALS['TYPO3_CONF_VARS']['BE']['unzip']['unzip']['post_lines']) &&\n\t\t isset($GLOBALS['TYPO3_CONF_VARS']['BE']['unzip']['unzip']['file_pos']))) {\n\t\t\treturn array();\n\t\t}\n\t\t$path = dirname($file);\n\t\tchdir($path);\n\t\t// Unzip without overwriting existing files\n\t\t$unzip = $GLOBALS['TYPO3_CONF_VARS']['BE']['unzip_path']?$GLOBALS['TYPO3_CONF_VARS']['BE']['unzip_path']:'unzip';\n\t\tif ($this->overwrite) {\n\t\t\t$cmd = $unzip.' -o \"'.$file.'\"';\n\t\t} else {\n\t\t\t$cmd = $unzip.' -n \"'.$file.'\"';\n\t\t}\n\n\n\t\t$filesinarchive = t3lib_div::_GP('filesinarchive'); \n\t\tif(is_array($filesinarchive) && !empty($filesinarchive)){\n\t\t\tforeach($filesinarchive as $filetoextract){\n\t\t\t\t$cmd .= ' \"'.$filetoextract.'\"';\n\t\t\t}\n\t\t}\n\n\t\texec($cmd, $list, $ret);\n\t\tif ($ret) {\n\t\t\treturn array();\n\t\t}\n\t\t$sc = $GLOBALS['TYPO3_CONF_VARS']['BE']['unzip']['unzip']['split_char'];\n\t\t$pre = intval($GLOBALS['TYPO3_CONF_VARS']['BE']['unzip']['unzip']['pre_lines']);\n\t\t$post = intval($GLOBALS['TYPO3_CONF_VARS']['BE']['unzip']['unzip']['post_lines']);\n\t\t$pos = intval($GLOBALS['TYPO3_CONF_VARS']['BE']['unzip']['unzip']['file_pos']);\n\t\twhile ($pre--) {\n\t\t\tarray_shift($list);\n\t\t}\n\t\twhile ($post--) {\n\t\t\tarray_pop($list);\n\t\t}\n\t\t$fl = array();\n\t\tforeach ($list as $file) {\n\t\t\t$parts = explode($sc, $file);\n\t\t\t$fparts = array();\n\t\t\tforeach ($parts as $part) {\n\t\t\t\tif (strlen($part)) $fparts[] = trim($part);\n\t\t\t}\n\t\t\t$fl[] = $fparts[$pos];\n\t\t}\n\t\treturn $fl;\n\t}", "title": "" }, { "docid": "41b7e4f283e65514ec1ee9eefaea142a", "score": "0.42458063", "text": "public function package($dir, $target)\n {\n exec('find '.escapeshellarg($dir).' -exec chmod u+r {} \\; 2> /dev/null');\n exec('tar -cjC '.\n escapeshellarg($dir).' . > '.escapeshellarg($target), $output, $rc);\n if ($rc > 0) {\n throw new \\Exception('Package failed : '.PHP_EOL.implode(PHP_EOL, $output));\n }\n }", "title": "" }, { "docid": "c7fc53967c7d8580a584dc5f283ed312", "score": "0.4244015", "text": "private function extractWord(){\n \n $cmd = $this->setHome()\n . $this->cdToFolder()\n . 'libreoffice --invisible --headless --convert-to txt:Text ' . escapeshellcmd($this->file_basename);\n exec($cmd);\n if(File::exists($this->storage_path . $this->file_name . '.txt')){\n File::move($this->storage_path . $this->file_name . '.txt', $this->storage_path . 'output.txt');\n }\n $this->parseText();\n }", "title": "" }, { "docid": "ae984bde9ee134078ef510d2c7dca06d", "score": "0.4234668", "text": "function handle_restore_file_transfer($id) {\n if (empty($id) || !FilePond\\is_valid_transfer_id($id)) return http_response_code(400);\n\n // create transfer wrapper around upload\n $transfer = FilePond\\get_transfer(TRANSFER_DIR, $id);\n\n // Let's get the temp file content\n $files = $transfer->getFiles();\n\n // No file returned, file not found\n if (count($files) === 0) return http_response_code(404);\n\n // Return file\n FilePond\\echo_file($files[0]);\n}", "title": "" }, { "docid": "2710bf95bb0a866bbd0e396eb7e6f271", "score": "0.4218813", "text": "public abstract function archive_to_pathname($files, $archivefile);", "title": "" }, { "docid": "56daad4c887d6aa301653607c0acf0b3", "score": "0.4211927", "text": "function zip_and_download($source, $destination) {\r\n\t$rootPath = realpath($source);\r\n\r\n\t// Initialize archive object\r\n\t$zip = new ZipArchive();\r\n\t$zip->open($destination, ZipArchive::CREATE | ZipArchive::OVERWRITE);\r\n\r\n\t// Create recursive directory iterator\r\n\t/** @var SplFileInfo[] $files */\r\n\t$files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($rootPath), RecursiveIteratorIterator::LEAVES_ONLY);\r\n\r\n\tforeach ($files as $name => $file) {\r\n \t// Skip directories (they would be added automatically)\r\n \tif (!$file->isDir()) {\r\n \t\t// Get real and relative path for current file\r\n \t$filePath = $file->getRealPath();\r\n \t$relativePath = substr($filePath, strlen($rootPath) + 1);\r\n\r\n \t// Add current file to archive\r\n \t$zip->addFile($filePath, $relativePath);\r\n \t}\r\n\t}\r\n\r\n\t// Zip archive will be created only after closing object\r\n\t$zip->close();\r\n\r\n header(\"Pragma: public\");\r\n header(\"Expires: 0\");\r\n header(\"Cache-Control: must-revalidate, post-check=0, pre-check=0\");\r\n header(\"Cache-Control: public\");\r\n header(\"Content-Description: File Transfer\");\r\n header(\"Content-type: application/zip\");\r\n header(\"Content-Disposition: attachment; filename=\\\"\".$destination.\"\\\"\");\r\n header(\"Content-Length: \".filesize($destination));\r\n ob_clean();\r\n flush();\r\n readfile($destination); \r\n}", "title": "" }, { "docid": "5900821c588899e6c270abda75c412fe", "score": "0.42103016", "text": "public function testSinglePhotoDownload(): void\n\t{\n\t\t$photoUploadResponse = $this->photos_tests->upload(\n\t\t\tAbstractTestCase::createUploadedFile(TestConstants::SAMPLE_FILE_NIGHT_IMAGE)\n\t\t);\n\t\t$photoArchiveResponse = $this->photos_tests->download(\n\t\t\t[$photoUploadResponse->offsetGet('id')], DownloadVariantType::ORIGINAL->value);\n\n\t\t// Stream the response in a temporary file\n\t\t$memoryBlob = new InMemoryBuffer();\n\t\tfwrite($memoryBlob->stream(), $photoArchiveResponse->streamedContent());\n\t\t$imageFile = new TemporaryLocalFile('.jpg', 'night');\n\t\t$imageFile->write($memoryBlob->read());\n\t\t$memoryBlob->close();\n\n\t\t// Just do a simple read test\n\t\t$image = new ImagickHandler();\n\t\t$image->load($imageFile);\n\t\t$imageDim = $image->getDimensions();\n\t\tstatic::assertEquals(6720, $imageDim->width);\n\t\tstatic::assertEquals(4480, $imageDim->height);\n\t}", "title": "" }, { "docid": "05ab9247d2551b5030a7b55720c2c617", "score": "0.4195027", "text": "public function add_file( $file_name, $name_in_archive = '' ) {\n\n\t\t$file_name = trim( $file_name );\n\n\t //check param\n\t\tif ( empty( $file_name ) ) {\n\t\t\ttrigger_error( __( 'File name cannot be empty', 'backwpup' ), E_USER_WARNING );\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tif ( version_compare( PHP_VERSION, '5.3', '>=' ) ) {\n\t\t\tclearstatcache( TRUE, $file_name );\n\t\t}\n\n\t\tif ( ! is_readable( $file_name ) ) {\n\t\t\ttrigger_error( sprintf( _x( 'File %s does not exist or is not readable', 'File to add to archive', 'backwpup' ), $file_name ), E_USER_WARNING );\n\t\t\treturn TRUE;\n\t\t}\n\n\t\tif ( empty( $name_in_archive ) )\n\t\t\t$name_in_archive = $file_name;\n\n\t\t//remove reserved chars\n\t\t$name_in_archive = str_replace( array(\"?\", \"[\", \"]\", \"\\\\\", \"=\", \"<\", \">\", \":\", \";\", \",\", \"'\", \"\\\"\", \"&\", \"$\", \"#\", \"*\", \"(\", \")\", \"|\", \"~\", \"`\", \"!\", \"{\", \"}\", chr(0)) , '', $name_in_archive );\n\n\t\tswitch ( $this->get_method() ) {\n\t\t\tcase 'gz':\n\t\t\t\tif ( $this->file_count > 0 ) {\n\t\t\t\t\ttrigger_error( __( 'This archive method can only add one file', 'backwpup' ), E_USER_WARNING );\n\t\t\t\t\treturn FALSE;\n\t\t\t\t}\n\t\t\t\t//add file to archive\n\t\t\t\tif ( ! ( $fd = fopen( $file_name, 'rb' ) ) ) {\n\t\t\t\t\ttrigger_error( sprintf( __( 'Cannot open source file %s to archive', 'backwpup' ), $file_name ), E_USER_WARNING );\n\t\t\t\t\treturn FALSE;\n\t\t\t\t}\n\t\t\t\twhile ( ! feof( $fd ) ) {\n\t\t\t\t\tfwrite( $this->filehandel, fread( $fd, 8192 ) );\n\t\t\t\t}\n\t\t\t\tfclose( $fd );\n\t\t\t\t$this->file_count++;\n\t\t\t\tbreak;\n\t\t\tcase 'bz':\n\t\t\t\tif ( $this->file_count > 0 ) {\n\t\t\t\t\ttrigger_error( __( 'This archive method can only add one file', 'backwpup' ), E_USER_WARNING );\n\t\t\t\t\treturn FALSE;\n\t\t\t\t}\n\t\t\t\t//add file to archive\n\t\t\t\tif ( ! ( $fd = fopen( $file_name, 'rb' ) ) ) {\n\t\t\t\t\ttrigger_error( sprintf( __( 'Cannot open source file %s to archive', 'backwpup' ), $file_name ), E_USER_WARNING );\n\t\t\t\t\treturn FALSE;\n\t\t\t\t}\n\t\t\t\twhile ( ! feof( $fd ) ) {\n\t\t\t\t\tfwrite( $this->filehandel, bzcompress( fread( $fd, 8192 ) ) );\n\t\t\t\t}\n\t\t\t\tfclose( $fd );\n\t\t\t\t$this->file_count++;\n\t\t\t\tbreak;\n\t\t\tcase 'Tar':\n\t\t\tcase 'TarGz':\n\t\t\tcase 'TarBz2':\n\t\t\t\treturn $this->tar_file( $file_name, $name_in_archive );\n\t\t\t\tbreak;\n\t\t\tcase 'ZipArchive':\n\t\t\t\t$file_size = abs( (int) filesize( $file_name ) );\n\t\t\t\t//check if entry already in archive and delete it if it not in full size\n\t\t\t\tif ( $zip_file_stat = $this->ziparchive->statName( $name_in_archive ) ) {\n\t\t\t\t\tif ( $zip_file_stat[ 'size' ] != $file_size ) {\n\t\t\t\t\t\t$this->ziparchive->deleteName( $name_in_archive );\n\t\t\t\t\t\t//reopen on deletion\n\t\t\t\t\t\t$this->file_count = 21;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//file already complete in archive\n\t\t\t\t\t\treturn TRUE;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//close and reopen, all added files are open on fs\n\t\t\t\tif ( $this->file_count > 20 ) { //35 works with PHP 5.2.4 on win\n\t\t\t\t\tif ( ! $this->ziparchive->close() ) {\n\t\t\t\t\t\tsleep( 1 );\n\t\t\t\t\t\tif ( ! $this->ziparchive->close() ) {\n\t\t\t\t\t\t\tsleep( 1 );\n\t\t\t\t\t\t\tif ( ! $this->ziparchive->close() ) {\n\t\t\t\t\t\t\t\ttrigger_error(__( 'ZipArchive can not closed correctly', 'backwpup'\t), E_USER_ERROR\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->ziparchive = NULL;\n\t\t\t\t\tif ( ! $this->check_archive_filesize() ) {\n\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t}\n\t\t\t\t\t$this->ziparchive = new ZipArchive();\n\t\t\t\t\t$ziparchive_open = $this->ziparchive->open( $this->file, ZipArchive::CREATE );\n\t\t\t\t\tif ( $ziparchive_open !== TRUE ) {\n\t\t\t\t\t\t$this->ziparchive_status();\n\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t}\n\t\t\t\t\t$this->file_count = 0;\n\t\t\t\t}\n\t\t\t\tif ( $file_size < ( 1024 * 1024 * 2 ) ) {\n\t\t\t\t\tif ( ! $this->ziparchive->addFromString( $name_in_archive, file_get_contents( $file_name ) ) ) {\n\t\t\t\t\t\t$this->ziparchive_status();\n\t\t\t\t\t\ttrigger_error( sprintf( __( 'Cannot add \"%s\" to zip archive!', 'backwpup' ), $name_in_archive ), E_USER_ERROR );\n\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$file_factor = round( $file_size / ( 1024 * 1024 ), 4 ) * 2;\n\t\t\t\t\t\t$this->file_count = $this->file_count + $file_factor;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif ( ! $this->ziparchive->addFile( $file_name, $name_in_archive ) ) {\n\t\t\t\t\t\t$this->ziparchive_status();\n\t\t\t\t\t\ttrigger_error( sprintf( __( 'Cannot add \"%s\" to zip archive!', 'backwpup' ), $name_in_archive ), E_USER_ERROR );\n\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->file_count++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'PclZip':\n\t\t\t\t$this->pclzip_file_list[] = array( PCLZIP_ATT_FILE_NAME => $file_name, PCLZIP_ATT_FILE_NEW_FULL_NAME => $name_in_archive );\n\t\t\t\tif ( count( $this->pclzip_file_list ) >= 100 ) {\n\t\t\t\t\tif ( 0 == $this->pclzip->add( $this->pclzip_file_list ) ) {\n\t\t\t\t\t\ttrigger_error( sprintf( __( 'PclZip archive add error: %s', 'backwpup' ), $this->pclzip->errorInfo( TRUE ) ), E_USER_ERROR );\n\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t}\n\t\t\t\t\t$this->pclzip_file_list = array();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "36638e875f167476046c2ecbf359297d", "score": "0.41909656", "text": "public function getConvertedFile(ElggFile $source, $target_ext) {\n\n\t\tif ($this->matchesFormat($source, $target_ext)) {\n\t\t\treturn $source;\n\t\t}\n\n\t\t$filename = pathinfo($source->getFilenameOnFilestore(), PATHINFO_FILENAME);\n\n\t\t$target = new ElggFile();\n\t\t$target->owner_guid = $source->owner_guid;\n\n\t\t// projekktor prefix is used to stay compatible with elgg_file_viewer plugin\n\t\t$target->setFilename(\"projekktor/$source->guid/$filename.$target_ext\");\n\n\t\treturn $target;\n\t}", "title": "" }, { "docid": "cfdb4df3ec2c6488f9d53ac453c50e19", "score": "0.41880774", "text": "public function getArchive()\n {\n return $this->archive;\n }", "title": "" }, { "docid": "fc400a24319c5d16aab64d86ccf938e5", "score": "0.4187806", "text": "function serveFileFromZIP($baseDir, $zipName, $fileName) {\n $zip = new ZipArchive();\n if ($zip->open($baseDir . $zipName) !== TRUE) {\n handleError(\"Could not open ZIP file '$zipName'\");\n }\n\n $contents = $zip->getStream($fileName);\n if ($contents === FALSE) {\n $zip->close();\n handleError(\"Could not find file '$fileName' in ZIP file '$zipName'\");\n }\n\n $fileSize = $zip->statName($fileName)['size'];\n header('Content-Length: ' . $fileSize);\n $contentType = \"text/plain\";\n if (strEndsWith($fileName, \".graphml\")) {\n $contentType = \"text/xml\";\n }\n header('Content-Type: ' . $contentType);\n\n fpassthru($contents);\n fclose($contents);\n $zip->close();\n exit();\n}", "title": "" }, { "docid": "d8f1f09cb1428dc0d390f7d40fef7ca7", "score": "0.41846025", "text": "public function testArchiveDump() {\n $uri = 'default';\n $this->fetchInstallDrupal($uri, TRUE, UNISH_DRUPAL_MAJOR_VERSION, 'testing');\n $root = $this->webroot();\n $docroot = basename($root);\n\n $dump_dest = \"dump.tar.gz\";\n $options = array(\n 'root' => $root,\n 'uri' => $uri,\n 'yes' => NULL,\n 'destination' => $dump_dest,\n );\n $this->drush('archive-dump', array($uri), $options);\n $exec = sprintf('file %s%s%s', UNISH_SANDBOX, DIRECTORY_SEPARATOR, $dump_dest);\n $this->execute($exec);\n $output = $this->getOutput();\n $sep = self::is_windows() ? ';' : ':';\n $expected = UNISH_SANDBOX . DIRECTORY_SEPARATOR . \"dump.tar.gz$sep gzip compressed data, from\";\n\n $this->assertStringStartsWith($expected, $output);\n\n // Untar it, make sure it looks right.\n $untar_dest = UNISH_SANDBOX . DIRECTORY_SEPARATOR . 'untar';\n $tar = self::get_tar_executable();\n $exec = sprintf(\"mkdir %s && cd %s && $tar -xzf %s%s%s\", $untar_dest, $untar_dest, UNISH_SANDBOX, DIRECTORY_SEPARATOR, $dump_dest);\n $this->execute($exec);\n if (strpos(UNISH_DB_URL, 'mysql') !== FALSE) {\n $this->execute(sprintf('head %s/unish_%s.sql | grep \"MySQL dump\"', $untar_dest, $uri));\n }\n $this->assertFileExists($untar_dest . '/MANIFEST.ini');\n $this->assertFileExists($untar_dest . '/' . $docroot);\n\n // Restore archive and verify that the file structure is identical.\n require_once dirname(__FILE__) . '/../includes/filesystem.inc';\n $restore_dest = UNISH_SANDBOX . DIRECTORY_SEPARATOR . 'restore';\n $options = array(\n 'yes' => NULL,\n 'destination' => $restore_dest,\n );\n $this->drush('archive-restore', array(UNISH_SANDBOX . DIRECTORY_SEPARATOR . $dump_dest), $options);\n $original_codebase = drush_dir_md5($root);\n $restored_codebase = drush_dir_md5($restore_dest);\n $this->assertEquals($original_codebase, $restored_codebase);\n }", "title": "" }, { "docid": "129705e771587bef3120c4a068bc90c7", "score": "0.41762224", "text": "public function setArchiveLocation($archive_location);", "title": "" }, { "docid": "b1ef5ba85b75d4281175cd0ab2578ebf", "score": "0.4168008", "text": "public function exportLibrary($library, $target) {\n $folder = \\H5PCore::libraryToString($library, true);\n $this->export_file_tree($target . '/' . $folder, $this->context->id, self::LIBRARY_FILEAREA,\n '/' . $folder . '/', $library['libraryId']);\n }", "title": "" } ]
1f5acc5cb2525fdb78e070b4932c4c5f
Recupera campo Feedback da tabela AnswerFeedback ou campo Pontos Fortes do form Questionario
[ { "docid": "36cd00015be28b5cafd800222e891ba4", "score": "0.5870916", "text": "public function getAnswerFeedback($answerId) \r\n {\r\n if (!is_numeric($answerId) ){\r\n return false;\r\n }\r\n \r\n $objResultAnswerFeedback = DbTable_AnswerFeedback::getInstance()\r\n ->fetchRow(array(\r\n 'AnswerId = ?' => $answerId\r\n ),\"FeedbackDate DESC\"\r\n );\r\n if ($objResultAnswerFeedback) {\r\n return $objResultAnswerFeedback->getFeedback();\r\n }\r\n }", "title": "" } ]
[ { "docid": "82cf666cc901a980014cef951ef69c68", "score": "0.60748637", "text": "public function actionFaqFeedback($question = '')\n {\n $feedback = new FaqFeedback(['scenario' => FaqFeedback::SCENARIO_CLIENT_SIDE]);\n if (!$feedback->load(Yii::$app->request->post()) || !$feedback->create($question)) {\n Yii::$app->session->setFlash('error', Yii::t('alert', 'FAQ_FEEDBACK_CANNOT_LOAD_OR_SAVE'));\n return $this->redirect(['site/help', 'lang' => Yii::$app->language]);\n }\n\n if ($feedback->sendEmailToAdmin() && $feedback->sendEmailToClient()) {\n Yii::$app->session->setFlash('success', Yii::t('alert', 'FAQ_FEEDBACK_SAVED_SUCCESSFULLY'));\n } else {\n Yii::$app->session->setFlash('error', Yii::t('alert', 'FAQ_FEEDBACK_CANNOT_SEND_ADMIN/CLIENT_EMAIL'));\n }\n\n return $this->redirect(['site/help', 'lang' => Yii::$app->language]);\n }", "title": "" }, { "docid": "0e48ffba62145c34cb04359af85544af", "score": "0.6052149", "text": "function process_tf($xml, &$questions) {\n\n if (isset($xml[\"POOL\"][\"#\"][\"QUESTION_TRUEFALSE\"])) {\n $tfquestions = $xml[\"POOL\"][\"#\"][\"QUESTION_TRUEFALSE\"];\n }\n else {\n return;\n }\n\n for ($i = 0; $i < sizeof ($tfquestions); $i++) {\n \n $question = $this->defaultquestion();\n\n $question->qtype = TRUEFALSE;\n $question->single = 1; // Only one answer is allowed\n\n $thisquestion = $tfquestions[$i];\n\n // determine if the question is already escaped html\n $ishtml = $thisquestion[\"#\"][\"BODY\"][0][\"#\"][\"FLAGS\"][0][\"#\"][\"ISHTML\"][0][\"@\"][\"value\"];\n\n // put questiontext in question object\n if ($ishtml) {\n $question->questiontext = html_entity_decode_php4(trim($thisquestion[\"#\"][\"BODY\"][0][\"#\"][\"TEXT\"][0][\"#\"]));\n }\n $question->questiontext = addslashes($question->questiontext);\n // put name in question object\n $question->name = substr($question->questiontext, 0, 254);\n\n $choices = $thisquestion[\"#\"][\"ANSWER\"];\n\n $correct_answer = $thisquestion[\"#\"][\"GRADABLE\"][0][\"#\"][\"CORRECTANSWER\"][0][\"@\"][\"answer_id\"];\n\n // first choice is true, second is false.\n $id = $choices[0][\"@\"][\"id\"];\n\n if (strcmp($id, $correct_answer) == 0) { // true is correct\n $question->answer = 1;\n $question->feedbacktrue = addslashes(trim(@$thisquestion[\"#\"][\"GRADABLE\"][0][\"#\"][\"FEEDBACK_WHEN_CORRECT\"][0][\"#\"]));\n $question->feedbackfalse = addslashes(trim(@$thisquestion[\"#\"][\"GRADABLE\"][0][\"#\"][\"FEEDBACK_WHEN_INCORRECT\"][0][\"#\"]));\n } else { // false is correct\n $question->answer = 0;\n $question->feedbacktrue = addslashes(trim(@$thisquestion[\"#\"][\"GRADABLE\"][0][\"#\"][\"FEEDBACK_WHEN_INCORRECT\"][0][\"#\"]));\n $question->feedbackfalse = addslashes(trim(@$thisquestion[\"#\"][\"GRADABLE\"][0][\"#\"][\"FEEDBACK_WHEN_CORRECT\"][0][\"#\"]));\n }\n $question->correctanswer = $question->answer;\n $questions[] = $question;\n }\n}", "title": "" }, { "docid": "53509c564f9f66dc099ac253ab329686", "score": "0.6014028", "text": "public function ProductQuestionsAnswerFormFields()\n {\n $fieldSet = new FieldList();\n $product = $this->owner->dataRecord;\n $productQuestions = $product->ApplicableProductQuestions();\n if ($productQuestions) {\n foreach ($productQuestions as $productQuestion) {\n $fieldSet->push($productQuestion->getFieldForProduct($product));\n }\n }\n return $fieldSet;\n }", "title": "" }, { "docid": "4a08e0e7dd126af40ef7d3ef4f3f6a6f", "score": "0.596647", "text": "public function feedback(){ return $this->feedback; }", "title": "" }, { "docid": "00c9fe0122a0da9f6c91f46fad81fb2e", "score": "0.5959416", "text": "function getFeedback()\n\t{\n\t\treturn $this->feedback;\n\t}", "title": "" }, { "docid": "abb244c271dbbbfc777e0b72cd95d2b0", "score": "0.5952362", "text": "public function getAdditionalEditForm()\n {\n // Allow the user to select a question\n $questions = Question::get();\n\n $html = '';\n $select = '<br><label for=\"question_id\"><strong>Questions</strong></label>:&nbsp;';\n if (count($questions)) {\n $select .= '<select name=\"question_id\" id=\"question_id\">';\n foreach ($questions as $entry) {\n $selected = ($this->obj->question_id == $entry->id ? 'selected': '');\n $select .= \"<option $selected value='$entry->id'>\" . $entry->label . \"</option>\";\n }\n $select .= '</select>';\n }\n\n $html .= \"<div>$select</div>\";\n\n if ($this->obj->question_id) {\n $question = Question::find($this->obj->question_id);\n // Add a description of what the reponse type is\n $html .= \"<br><div><strong>\" . self::LIST_TYPE_DESCRIPTIONS[$question->type] . \"</strong></div>\";\n // If it is a list, then add the possible responses\n if ($question->clist_id) {\n $clistConstants = Clist::where('clists.id', $question->clist_id)\n ->join(\"clist_constants\", \"clist_constants.clist_id\", '=', 'clists.id')\n ->join('constants', 'constants.id', '=', 'clist_constants.constant_id')\n ->orderBy(\"constants.label\")->get();\n\n if ($clistConstants) {\n foreach ($clistConstants as $clistConstant) {\n $html .= '<div>' . $clistConstant->label . '</div>';\n }\n }\n\n }\n }\n\n return $html;\n }", "title": "" }, { "docid": "5d1671d366b186f9f0fefb2fd1e261ad", "score": "0.59084237", "text": "protected function define_feedback_section()\n {\n $mform = $this->_form;\n\n // header\n $mform->addElement('header', 'feedbackheader', get_string('general_and_combined_feedback', 'qtype_omerocommon'));\n\n // general feedback\n $mform->addElement('editor', 'generalfeedback', get_string('generalfeedback', 'question'),\n array('rows' => 10), $this->editoroptions);\n $mform->setType('generalfeedback', PARAM_RAW);\n $mform->addHelpButton('generalfeedback', 'generalfeedback', 'question');\n\n // combined feedback\n $this->add_combined_feedback_fields(true);\n //$mform->disabledIf('shownumcorrect', 'single', 'eq', 1);\n }", "title": "" }, { "docid": "b6daa30f1ea0220c673f09ec050670d7", "score": "0.58564144", "text": "private function convertQuestionFeedback($doc, $item, $feedback)\n {\n //add correct/incorrect feedback text\n $correctFeedbackText = false;\n $incorrectFeedbackText = false;\n foreach ($feedback as $feedbackItem) {\n if ($feedbackItem->correct == 'true') {\n $correctFeedbackText = $feedbackItem->feedback_text;\n }\n else {\n $incorrectFeedbackText = $feedbackItem->feedback_text;\n }\n }\n $correctFeedback = $item->appendChild($doc->createElement('itemfeedback'));\n $this->addAttribute($doc, 'ident', 'correct_fb', $correctFeedback);\n $flow_mat = $correctFeedback->appendChild($doc->createElement('flow_mat'));\n $material = $flow_mat->appendChild($doc->createElement('material'));\n $mattext = $material->appendChild($doc->createElement('mattext', $correctFeedbackText));\n $this->addAttribute($doc, 'texttype', 'text/plain', $mattext);\n\n $incorrectFeedback = $item->appendChild($doc->createElement('itemfeedback'));\n $this->addAttribute($doc, 'ident', 'general_incorrect_fb', $incorrectFeedback);\n $flow_mat = $incorrectFeedback->appendChild($doc->createElement('flow_mat'));\n $material = $flow_mat->appendChild($doc->createElement('material'));\n $mattext = $material->appendChild($doc->createElement('mattext', $incorrectFeedbackText));\n $this->addAttribute($doc, 'texttype', 'text/plain', $mattext);\n\n\n //link correct feedback\n $resprocessing = $item->getElementsByTagName('resprocessing')->item(0);\n $respconditions = $resprocessing->getElementsByTagName('respcondition');\n foreach ($respconditions as $respcondition) {\n if ($respcondition->getAttribute('continue') == 'No') {\n $displayfeedback = $respcondition->appendChild($doc->createElement('displayfeedback'));\n $this->addAttribute($doc, 'feedbacktype', 'Response', $displayfeedback);\n $this->addAttribute($doc, 'linkrefid', 'correct_fb', $displayfeedback);\n }\n }\n\n //link incorrect feedback\n $respcondition = $resprocessing->appendChild($doc->createElement('respcondition'));\n $this->addAttribute($doc, 'continue', 'Yes', $respcondition);\n $conditionvar = $respcondition->appendChild($doc->createElement('conditionvar'));\n $other = $conditionvar->appendChild($doc->createElement('other'));\n $displayfeedback = $respcondition->appendChild($doc->createElement('displayfeedback'));\n $this->addAttribute($doc, 'feedbacktype', 'Response', $displayfeedback);\n $this->addAttribute($doc, 'linkrefid', 'general_incorrect_fb', $displayfeedback);\n }", "title": "" }, { "docid": "65b60fbbaaf748896094b966cb7c736d", "score": "0.5847203", "text": "public function actionFeedback()\n {\n if(!empty($_POST))\n {\n try{\n $response = Feedbackform::save_feedback_details($_POST);\n return $response;\n \n } catch (ErrorException $ex) {\n Yii::warning($ex->getMessage());\n }\n /*try{\n $subject=\"New Feedback | BIG EQUIPMENTS INDIA\";\n //get message for this mail\n $message = Mail_settings::get_feedback_message_to_admin($_POST);\n \n //get admin email\n $email = Yii::$app->params['ADMIN_EMAIL'];\n\n //function to send email to admin\n Mail_settings::send_email_notification($email,$subject,$message);\n return \"SUCCESS\";\n \n } catch (ErrorException $ex) {\n Yii::warning($ex->getMessage());\n return \"FAILED\";\n }*/\n \n }\n else\n {\n return $this->render('//feedback');\t\n }\n }", "title": "" }, { "docid": "1738fba33823589524819865b5ffcea7", "score": "0.5803163", "text": "public function get_feedback()\r\n {\r\n return $this->feedback;\r\n }", "title": "" }, { "docid": "60ee76e2ccc79bcd6123b51e3aa0cef0", "score": "0.57969135", "text": "private function formulation_and_controls_expression_entry(question_attempt $qa, question_display_options $options) \n {\n //get a reference to the question being asked\n $question = $qa->get_question();\n\n //and get the user's most recent response\n $currentanswer = $qa->get_last_qt_var('answer');\n\n //get the field name for the answer input\n $inputname = $qa->get_qt_field_name('answer');\n\n //start specifying the attributes of the input box\n $inputattributes = array\n (\n 'type' => 'text',\n 'name' => $inputname,\n 'value' => $currentanswer,\n 'id' => $inputname,\n 'size' => 80,\n 'class' => 'codeinput ',\n 'style' => 'font-family: monospace' //legacy\n );\n\n //if this question is in a read-only mode, do not allow modifications \n if ($options->readonly) \n {\n $inputattributes['readonly'] = 'readonly';\n }\n\n //assume an empty feedback image, unless otherwise is specified\n $feedbackimg = '';\n \n //if the question's correctness should be displayed, display it \n if ($options->correctness) \n {\n //find the answer object that matches the user's response\n $answer = $question->get_matching_answer(array('answer' => $currentanswer));\n\n //if the user matched an answer, use its fraction as the correctness value\n if ($answer) \n $fraction = $answer->fraction;\n //otherwise, the user has the question wrong\n else\n $fraction = 0;\n \n //add the appropriate class, which allows CSS decoration of the form field according to the its correctness\n $inputattributes['class'] = $this->feedback_class($fraction);\n\n //and add a feedback image afterwards\n $feedbackimg = $this->feedback_image($fraction);\n }\n\n //get the formatted value of the question's text\n $questiontext = $question->format_questiontext($qa);\n\n\n //assume the question is _not _ in placeholder mode\n //(which inlines the input field)\n $placeholder = false;\n\n //if the question contains a large set of underscores, use them as a blank for the fill in the blank\n if (preg_match('/_____+/', $questiontext, $matches)) \n {\n //set the blank as the placeholder\n $placeholder = $matches[0];\n\n //and automatically adjust the size of the input box to match the placeholder's size\n $inputattributes['size'] = round(strlen($placeholder) * 1.1);\n }\n\n //create the actual input box\n $input = html_writer::empty_tag('input', $inputattributes) . $feedbackimg;\n\n //and, if we're in placeholder mode, inline it\n if ($placeholder) \n $questiontext = substr_replace($questiontext, $input, strpos($questiontext, $placeholder), strlen($placeholder));\n\n //render the question text\n $result = html_writer::tag('div', $questiontext, array('class' => 'qtext'));\n\n //if we're _not_ in placeholder mode, append the input box to the question\n if (!$placeholder) \n {\n $result .= html_writer::start_tag('div', array('class' => 'ablock'));\n $result .= get_string('function', 'qtype_boolean', html_writer::tag('div', $input, array('class' => 'answer')));\n $result .= html_writer::end_tag('div');\n }\n\n //if the user's last response was invalid, specify why:\n if ($qa->get_state() == question_state::$invalid) \n $result .= html_writer::nonempty_tag('div', $question->get_validation_error(array('answer' => $currentanswer)), array('class' => 'validationerror'));\n\n //and return the resultant HTML\n return $result;\n }", "title": "" }, { "docid": "92349201c0579565a23f8f741d3ed914", "score": "0.577791", "text": "public function createComponentFeedbackCreate(){\n \n $sess = $this->hlp->sess(\"feedback\");\n $orderid = $sess->orderid;\n \n //set presenter as param due to\n //form handler function dependencies\n $this->fFactory->setPresenter($this->getPresenter());\n \n //finalize early first feedback attempt\n if (isset($sess->FE)){\n $form = $this->fFactory->create($sess->FE); \n $form->addSubmit(\"odeslat\", \"Odeslat Feedback!\");\n }\n \n //finalize early feedback update after goods received\n if (isset($sess->FEedit)){\n $fdb = $this->orders->getFeedback($orderid); \n $form = $this->fFactory->create($sess->FEedit, $fdb);\n $form->addSubmit(\"upravit\", \"Upravit Feedback!\");\n }\n \n //feedback after escrow order has been finalized\n if (isset($sess->escrow)){\n $form = $this->fFactory->create();\n $form->addSubmit(\"odeslat\", \"Odeslat Feedback!\");\n }\n \n return $form;\n }", "title": "" }, { "docid": "4c82294a584fcff54052376119133c21", "score": "0.5745959", "text": "public function feedback()\n {\n return $this->belongsTo('Platypus\\Model\\Feedback');\n }", "title": "" }, { "docid": "a74732509d106e0ab56e2cec2c5f4d3a", "score": "0.57401884", "text": "public static function get_linkerdesc_question_form_data_info() {\n $form = new stdClass();\n\n $form->name = 'Description';\n $form->questiontext = array('text' => 'Here is some information about the questions you are about to attempt.',\n 'format' => FORMAT_HTML);\n $form->generalfeedback = array('text' => 'And here is some more text shown only on the review page.',\n 'format' => FORMAT_HTML);\n\n return $form;\n }", "title": "" }, { "docid": "f0d2e9485fe9ab1f36d0626cff9409d4", "score": "0.57259125", "text": "public function getInputAnswerFaq() {\n $sess = $this->nativesession->get('sessdata');\n if($sess[0]->username != null) {\n $data['form_header'] = \"Input New Answer FAQ\";\n $data['form_action'] = base_url('/admFaq/getInputAnswerFaq');\n $data['icon'] = \"icon-pencil\";\n $data['listFaq'] = $this->m_admfaq->getListFaq();\n $this->setTemplate('admin/faq/getInputAnswerFaq', $data);\n } else {\n redirect('admin/index', 'refresh');\n } \n }", "title": "" }, { "docid": "c245132f8e9e42574c7fa96860a4c32d", "score": "0.57036823", "text": "public function formulation_and_controls(question_attempt $qa, question_display_options $options) {\n $question = $qa->get_question();\n $response = $question->get_response($qa);\n\n $inputname = $qa->get_qt_field_name('answer');\n $inputattributes = array(\n 'type' => $this->get_input_type(),\n 'name' => $inputname,\n );\n\n if ($options->readonly) {\n $inputattributes['disabled'] = 'disabled';\n }\n\n $radiobuttons = array();\n $feedbackimg = array();\n $feedback = array();\n $classes = array();\n foreach ($question->get_order($qa) as $value => $ansid) {\n $ans = $question->answers[$ansid];\n $inputattributes['name'] = $this->get_input_name($qa, $value);\n $inputattributes['value'] = $this->get_input_value($value);\n $inputattributes['id'] = $this->get_input_id($qa, $value);\n // Modification starts.\n /* Comment out core code.\n $isselected = $question->is_choice_selected($response, $value);\n if ($isselected) {\n $inputattributes['checked'] = 'checked';\n } else {\n unset($inputattributes['checked']);\n }\n */\n $inputattributes['checked'] = 'checked';\n // Modification ends.\n $hidden = '';\n if (!$options->readonly && $this->get_input_type() == 'checkbox') {\n $hidden = html_writer::empty_tag('input', array(\n 'type' => 'hidden',\n 'name' => $inputattributes['name'],\n 'value' => 0,\n ));\n }\n $radiobuttons[] = $hidden . html_writer::empty_tag('input', $inputattributes) .\n html_writer::tag('label',\n html_writer::span($this->number_in_style($value, $question->answernumbering), 'answernumber') .\n $question->make_html_inline($question->format_text(\n $ans->answer, $ans->answerformat,\n $qa, 'question', 'answer', $ansid)),\n array('for' => $inputattributes['id'], 'class' => 'ml-1'));\n\n // Param $options->suppresschoicefeedback is a hack specific to the\n // oumultiresponse question type. It would be good to refactor to\n // avoid refering to it here.\n // Modification starts.\n /* Comment out core code.\n if ($options->feedback && empty($options->suppresschoicefeedback) &&\n $isselected && trim($ans->feedback)) {\n */\n if ($options->feedback && empty($options->suppresschoicefeedback) &&\n trim($ans->feedback)) {\n // Modification ends.\n $feedback[] = html_writer::tag('div',\n $question->make_html_inline($question->format_text(\n $ans->feedback, $ans->feedbackformat,\n $qa, 'question', 'answerfeedback', $ansid)),\n array('class' => 'specificfeedback'));\n } else {\n $feedback[] = '';\n }\n $class = 'r' . ($value % 2);\n // Modification starts.\n /* Comment out core code.\n if ($options->correctness && $isselected) {\n */\n if ($options->correctness) {\n // Modification ends.\n $feedbackimg[] = $this->feedback_image($this->is_right($ans));\n $class .= ' ' . $this->feedback_class($this->is_right($ans));\n } else {\n $feedbackimg[] = '';\n }\n $classes[] = $class;\n }\n\n $result = '';\n $result .= html_writer::tag('div', $question->format_questiontext($qa),\n array('class' => 'qtext'));\n\n $result .= html_writer::start_tag('div', array('class' => 'ablock'));\n $result .= html_writer::tag('div', $this->prompt(), array('class' => 'prompt'));\n\n $result .= html_writer::start_tag('div', array('class' => 'answer'));\n foreach ($radiobuttons as $key => $radio) {\n $result .= html_writer::tag('div', $radio . ' ' . $feedbackimg[$key] . $feedback[$key],\n array('class' => $classes[$key])) . \"\\n\";\n }\n $result .= html_writer::end_tag('div'); // Answer.\n\n $result .= $this->after_choices($qa, $options);\n\n $result .= html_writer::end_tag('div'); // Ablock.\n\n if ($qa->get_state() == question_state::$invalid) {\n $result .= html_writer::nonempty_tag('div',\n $question->get_validation_error($qa->get_last_qt_data()),\n array('class' => 'validationerror'));\n }\n\n return $result;\n }", "title": "" }, { "docid": "f323816bd593bd32f166229a1896ec2d", "score": "0.5685434", "text": "function ddcl_fin_plate_step17_form($form, &$form_state, $no_js_use = FALSE)\n{\n\tglobal $base_url;\n\tglobal $user;\n\tdrupal_set_title(t('Other recommendations'));\n\t// All the real form fields.\n\t$form = array();\n\t$form['step17_field1_fieldset'] = array(\n\t\t'#type' => 'fieldset',\n\t\t'#title' => '<strong>Any other recommendation/Comment?</strong>',\n\t\t'#tree' => TRUE,\n\t\t'#prefix' => '<div id=\"step17-field1-fieldset-wrapper\">',\n\t\t'#suffix' => '</div>'\n\t);\n\t$query = db_select('ddcl_fin_plate_form_step17_feedback');\n\t$query->fields('ddcl_fin_plate_form_step17_feedback');\n\t$query->condition('uid', $user->uid);\n\t$form_step17_data = $query->execute();\n\tif ($form_step17_data)\n\t{\n\t\tif ($step17_data = $form_step17_data->fetchObject())\n\t\t{\n\t\t\t$form['step17_field1_fieldset']['step17_field1_question1'] = array(\n\t\t\t\t'#type' => 'hidden',\n\t\t\t\t'#default_value' => 'other recommendations/ Comments',\n\t\t\t\t'#required' => TRUE\n\t\t\t);\n\t\t\t$earlier_comments = _fetch_exsiting_ddcl_fin_plate_comments($step17_data->id, $step17_data->data_relation);\n\t\t\t$icom = 1;\n\t\t\t$form['step17_field1_fieldset']['exsiting_comments_title'] = array(\n\t\t\t\t'#markup' => ''\n\t\t\t);\n\t\t\tforeach ($earlier_comments as $rowcomment)\n\t\t\t{\n\t\t\t\t$form['step17_field1_fieldset']['exsiting_comments' . $icom] = array(\n\t\t\t\t\t'#markup' => $rowcomment\n\t\t\t\t);\n\t\t\t\t$icom++;\n\t\t\t} //$earlier_comments as $rowcomment\n\t\t\tif (empty($form_state['step17_num_comment']))\n\t\t\t{\n\t\t\t\t$form_state['step17_num_comment'] = 1;\n\t\t\t} //empty($form_state['step17_num_comment'])\n\t\t\t$step17_temp1 = 0;\n\t\t\tfor ($step17_i = 0; $step17_i < $form_state['step17_num_comment']; $step17_i++)\n\t\t\t{\n\t\t\t\t$step17_temp1 = $step17_i;\n\t\t\t\t$form['step17_field1_fieldset'][$step17_i][\"comment\"] = array(\n\t\t\t\t\t\"#type\" => \"textarea\",\n\t\t\t\t\t\"#title\" => \"Comment \" . ($step17_temp1 + 1),\n\t\t\t\t\t\"#default_value\" => \"\"\n\t\t\t\t);\n\t\t\t} //$i = 0; $i < $form_state['step1_num_comment']; $i++\n\t\t\t$form['step17_field1_fieldset'][\"step17_comment_count\"] = array(\n\t\t\t\t\"#type\" => \"hidden\",\n\t\t\t\t\"#value\" => $step17_temp1\n\t\t\t);\n\t\t\t$form['step17_field1_fieldset']['add_comment'] = array(\n\t\t\t\t'#type' => 'submit',\n\t\t\t\t'#value' => t('Add more comment'),\n\t\t\t\t'#limit_validation_errors' => array(),\n\t\t\t\t'#submit' => array(\n\t\t\t\t\t'step17_comment_add_more_add_one'\n\t\t\t\t),\n\t\t\t\t'#ajax' => array(\n\t\t\t\t\t'callback' => 'step17_comment_add_more_callback',\n\t\t\t\t\t'wrapper' => 'step17-field1-fieldset-wrapper'\n\t\t\t\t)\n\t\t\t);\n\t\t\tif ($form_state['step17_num_comment'] > 1)\n\t\t\t{\n\t\t\t\t$form['step17_field1_fieldset']['remove_comment'] = array(\n\t\t\t\t\t'#type' => 'submit',\n\t\t\t\t\t'#value' => t('Remove comment'),\n\t\t\t\t\t'#limit_validation_errors' => array(),\n\t\t\t\t\t'#submit' => array(\n\t\t\t\t\t\t'step17_comment_add_more_remove_one'\n\t\t\t\t\t),\n\t\t\t\t\t'#ajax' => array(\n\t\t\t\t\t\t'callback' => 'step17_comment_add_more_callback',\n\t\t\t\t\t\t'wrapper' => 'step17-field1-fieldset-wrapper'\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t} //$form_state['step1_num_comment'] > 1\n\t\t\tif ($no_js_use)\n\t\t\t{\n\t\t\t\tif (!empty($form['step17_field1_fieldset']['remove_comment']['#ajax']))\n\t\t\t\t{\n\t\t\t\t\tunset($form['step17_field1_fieldset']['remove_comment']['#ajax']);\n\t\t\t\t} //!empty($form['step17_field1_fieldset']['remove_comment']['#ajax'])\n\t\t\t\tunset($form['step17_field1_fieldset']['add_comment']['#ajax']);\n\t\t\t} //$no_js_use\n\t\t\t$form['previous2'] = array(\n\t\t\t\t'#type' => 'submit',\n\t\t\t\t'#value' => 'Previous',\n\t\t\t\t'#submit' => array(\n\t\t\t\t\t'ddcl_fin_plate_step17_form_previous_submit'\n\t\t\t\t)\n\t\t\t);\n\t\t\t$form['next2'] = array(\n\t\t\t\t'#type' => 'submit',\n\t\t\t\t'#value' => 'Submit',\n\t\t\t\t'#attributes' => array(\n\t\t\t\t\t\"onclick\" => \"return confirm('Are you sure?')\"\n\t\t\t\t),\n\t\t\t\t'#submit' => array(\n\t\t\t\t\t'ddcl_fin_plate_step17_form_next_submit'\n\t\t\t\t)\n\t\t\t);\n\t\t\t$form['save_submit'] = array(\n\t\t\t\t'#type' => 'submit',\n\t\t\t\t'#value' => 'Save as draft',\n\t\t\t\t'#attributes' => array(\n\t\t\t\t\t\"onclick\" => \"return confirm('Are you sure?')\"\n\t\t\t\t),\n\t\t\t\t'#submit' => array(\n\t\t\t\t\t'ddcl_fin_plate_step17_form_save_submit'\n\t\t\t\t)\n\t\t\t);\n\t\t} //$step17_data = $form_step17_data->fetchObject()\n\t\telse\n\t\t{\n\t\t\t$form['step17_field1_fieldset']['step17_field1_question1'] = array(\n\t\t\t\t'#type' => 'hidden',\n\t\t\t\t'#default_value' => 'other recommendations/ Comments',\n\t\t\t\t'#required' => TRUE\n\t\t\t);\n\t\t\t$earlier_comments = _fetch_exsiting_ddcl_fin_plate_comments($step17_data->id, $step17_data->data_relation);\n\t\t\t$icom = 1;\n\t\t\t$form['step17_field1_fieldset']['exsiting_comments_title'] = array(\n\t\t\t\t'#markup' => ''\n\t\t\t);\n\t\t\tforeach ($earlier_comments as $rowcomment)\n\t\t\t{\n\t\t\t\t$form['step17_field1_fieldset']['exsiting_comments' . $icom] = array(\n\t\t\t\t\t'#markup' => $rowcomment\n\t\t\t\t);\n\t\t\t\t$icom++;\n\t\t\t} //$earlier_comments as $rowcomment\n\t\t\tif (empty($form_state['step17_num_comment']))\n\t\t\t{\n\t\t\t\t$form_state['step17_num_comment'] = 1;\n\t\t\t} //empty($form_state['step17_num_comment'])\n\t\t\t$step17_temp1 = 0;\n\t\t\tfor ($step17_i = 0; $step17_i < $form_state['step17_num_comment']; $step17_i++)\n\t\t\t{\n\t\t\t\t$step17_temp1 = $step17_i;\n\t\t\t\t$form['step17_field1_fieldset'][$step17_i][\"comment\"] = array(\n\t\t\t\t\t\"#type\" => \"textarea\",\n\t\t\t\t\t\"#title\" => \"Comment \" . ($step17_temp1 + 1),\n\t\t\t\t\t\"#default_value\" => \"\"\n\t\t\t\t);\n\t\t\t} //$i = 0; $i < $form_state['step1_num_comment']; $i++\n\t\t\t$form['step17_field1_fieldset'][\"step17_comment_count\"] = array(\n\t\t\t\t\"#type\" => \"hidden\",\n\t\t\t\t\"#value\" => $step17_temp1\n\t\t\t);\n\t\t\t$form['step17_field1_fieldset']['add_comment'] = array(\n\t\t\t\t'#type' => 'submit',\n\t\t\t\t'#value' => t('Add more comment'),\n\t\t\t\t'#limit_validation_errors' => array(),\n\t\t\t\t'#submit' => array(\n\t\t\t\t\t'step17_comment_add_more_add_one'\n\t\t\t\t),\n\t\t\t\t'#ajax' => array(\n\t\t\t\t\t'callback' => 'step17_comment_add_more_callback',\n\t\t\t\t\t'wrapper' => 'step17-field1-fieldset-wrapper'\n\t\t\t\t)\n\t\t\t);\n\t\t\tif ($form_state['step17_num_comment'] > 1)\n\t\t\t{\n\t\t\t\t$form['step17_field1_fieldset']['remove_comment'] = array(\n\t\t\t\t\t'#type' => 'submit',\n\t\t\t\t\t'#value' => t('Remove comment'),\n\t\t\t\t\t'#limit_validation_errors' => array(),\n\t\t\t\t\t'#submit' => array(\n\t\t\t\t\t\t'step17_comment_add_more_remove_one'\n\t\t\t\t\t),\n\t\t\t\t\t'#ajax' => array(\n\t\t\t\t\t\t'callback' => 'step17_comment_add_more_callback',\n\t\t\t\t\t\t'wrapper' => 'step17-field1-fieldset-wrapper'\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t} //$form_state['step1_num_comment'] > 1\n\t\t\tif ($no_js_use)\n\t\t\t{\n\t\t\t\tif (!empty($form['step17_field1_fieldset']['remove_comment']['#ajax']))\n\t\t\t\t{\n\t\t\t\t\tunset($form['step17_field1_fieldset']['remove_comment']['#ajax']);\n\t\t\t\t} //!empty($form['step17_field1_fieldset']['remove_comment']['#ajax'])\n\t\t\t\tunset($form['step17_field1_fieldset']['add_comment']['#ajax']);\n\t\t\t} //$no_js_use\n\t\t\t$form['previous1'] = array(\n\t\t\t\t'#type' => 'submit',\n\t\t\t\t'#value' => 'Previous',\n\t\t\t\t'#submit' => array(\n\t\t\t\t\t'ddcl_fin_plate_step17_form_previous_submit'\n\t\t\t\t)\n\t\t\t);\n\t\t\t$form['next2'] = array(\n\t\t\t\t'#type' => 'submit',\n\t\t\t\t'#value' => 'Submit',\n\t\t\t\t'#attributes' => array(\n\t\t\t\t\t\"onclick\" => \"return confirm('Are you sure?')\"\n\t\t\t\t),\n\t\t\t\t'#submit' => array(\n\t\t\t\t\t'ddcl_fin_plate_step17_form_previous_submit'\n\t\t\t\t)\n\t\t\t);\n\t\t\t$form['save_submit'] = array(\n\t\t\t\t'#type' => 'submit',\n\t\t\t\t'#value' => 'Save as draft',\n\t\t\t\t'#attributes' => array(\n\t\t\t\t\t\"onclick\" => \"return confirm('Are you sure?')\"\n\t\t\t\t),\n\t\t\t\t'#submit' => array(\n\t\t\t\t\t'ddcl_fin_plate_step17_form_save_submit'\n\t\t\t\t)\n\t\t\t);\n\t\t} //$step17_data = $form_step17_data->fetchObject()\n\t} //$form_step17_data\n\treturn $form;\n}", "title": "" }, { "docid": "bebee0a8672f2cca071390100c2a6dfd", "score": "0.5685332", "text": "public function format_generalfeedback(question_attempt $qa): string {\n return \"\";\n }", "title": "" }, { "docid": "7a73924d4dafd770873113e0fbb0cb51", "score": "0.568496", "text": "public function getFeedbacks()\n {\n $result = $this->db->getRows('SELECT `name`, `body`, `email` FROM feedback;');\n return $result;\n }", "title": "" }, { "docid": "358a7e59e5d3b56fd6ed0448ade5869c", "score": "0.5683119", "text": "function dsi_get_circolari_feedback_options(){\n return array(\n \"false\" => __('Nessun Feedback ', 'design_scuole_italia'),\n 'presa_visione' => __('Presa Visione', 'design_scuole_italia'),\n 'si_no' => __('Si / No', 'design_scuole_italia'),\n 'si_no_visione' => __('Si / No / Presa Visione', 'design_scuole_italia'),\n );\n}", "title": "" }, { "docid": "c576838f25e71a548e3659a5c1f5db13", "score": "0.56733525", "text": "function render_quiz($questions)\n{\n require_lang('quiz');\n\n require_code('form_templates');\n\n $GLOBALS['NO_DEV_MODE_FULLSTOP_CHECK'] = true;\n\n // Sort out qa input\n $fields = new Tempcode();\n foreach ($questions as $i => $q) {\n $name = 'q_' . strval($q['id']);\n\n $just_quiz_row = db_map_restrict($q, array('id', 'q_question_text', 'q_question_extra_text'));\n $question = protect_from_escaping((is_string($q['q_question_text']) && !isset($q['q_question_text__text_parsed'])) ? comcode_to_tempcode($q['q_question_text']) : get_translated_tempcode('quiz_questions', $just_quiz_row, 'q_question_text'));\n $description = protect_from_escaping((is_string($q['q_question_extra_text']) && !isset($q['q_question_extra_text__text_parsed'])) ? comcode_to_tempcode($q['q_question_extra_text']) : get_translated_tempcode('quiz_questions', $just_quiz_row, 'q_question_extra_text'));\n\n switch ($q['q_type']) {\n case 'MULTIPLECHOICE':\n $radios = new Tempcode();\n foreach ($q['answers'] as $a) {\n $answer_text = (is_string($a['q_answer_text']) && !isset($a['q_answer_text__text_parsed'])) ? comcode_to_tempcode($a['q_answer_text']) : get_translated_tempcode('quiz_question_answers', $a, 'q_answer_text');\n $radios->attach(form_input_radio_entry($name, strval($a['id']), false, protect_from_escaping($answer_text)));\n }\n $fields->attach(form_input_radio($question, $description, $name, $radios, $q['q_required'] == 1));\n break;\n\n case 'MULTIMULTIPLE':\n $content = array();\n foreach ($q['answers'] as $a) {\n $content[] = array(protect_from_escaping((is_string($a['q_answer_text']) && !isset($a['q_answer_text__text_parsed'])) ? comcode_to_tempcode($a['q_answer_text']) : get_translated_tempcode('quiz_question_answers', $a, 'q_answer_text')), $name . '_' . strval($a['id']), false, '');\n }\n $fields->attach(form_input_various_ticks($content, $description, null, $question, true));\n break;\n\n case 'LONG':\n $fields->attach(form_input_text($question, $description, $name, '', $q['q_required'] == 1));\n break;\n\n case 'SHORT':\n case 'SHORT_STRICT':\n $fields->attach(form_input_line($question, $description, $name, '', $q['q_required'] == 1));\n break;\n\n default:\n warn_exit(do_lang_tempcode('INTERNAL_ERROR'));\n }\n }\n\n return $fields;\n}", "title": "" }, { "docid": "c9970a22b111565ec6e72c25428fa3ea", "score": "0.56720424", "text": "public function saveFeedback()\n {\n $sql = <<<'INSERT'\n INSERT INTO `feedback` (`name`, `body`, `email`) \n VALUES (:name, :body, :email);\nINSERT;\n $params = [\n 'name' => $_POST['name'],\n 'body' => $_POST['body'],\n 'email' => $_POST['email'],\n ];\n $res = $this->db->execQuery($sql, $params)['res'];\n return $res;\n }", "title": "" }, { "docid": "a9617ae5f5cb6a3d5a18eed3c42c7e63", "score": "0.566231", "text": "public function setFeedback( $v ){ if( $this->feedback != $v ){ $this->dirty = true; } $this->feedback = $v; }", "title": "" }, { "docid": "04aea771ff4d3c1af1c35e065cd068ae", "score": "0.5630603", "text": "public function getAllFeedback() {\n return $this->sectionFeedback;\n }", "title": "" }, { "docid": "3a78fe34e2fd750de0b5214cbf07dfe7", "score": "0.5620968", "text": "public function feedback()\n {\n return $this->hasMany(Feedback::class);\n }", "title": "" }, { "docid": "ff850de95666b500879d228b05f9e6fc", "score": "0.5616411", "text": "function disp__custom_question($protect, $form_id, $bFilledInSpecial = false, $sFormHTML = false ) {\n\n \tif( $sQuestions = $this->func__get_plugin_option('questions') ) {\n global $FV_Antispam_iFilledInCount;\n \n \t\t$aQuestions = explode( \"\\n\", $sQuestions);\n\n \t\tif( !$aQuestions ) {\n \t\t\treturn false;\n \t\t}\n \t\t\n \t\t$iRandom = rand(0,count($aQuestions)-1);\n \t\t$sQuestion = $aQuestions[$iRandom];\n \t\tlist( $sAnswer, $sQuestion ) = explode( \",\", strrev($sQuestion), 2 );\n $sQuestion = strrev( $sQuestion );\n\n if( $sFormHTML && !$bFilledInSpecial ) {\n $html = str_replace( '[fvquestion]', \"<label class='fvacl' for='c_\".$protect.$FV_Antispam_iFilledInCount.\"'>\".__($sQuestion).\"</label>\", $sFormHTML );\n $html = str_replace( '[fvanswer]', \"<input class='fvacq' type='text' id='c_\".$protect.$FV_Antispam_iFilledInCount.\"' name='c_\".$protect.\"' size='5' /><input class='fvaca' type='hidden' name='ca_\".$protect.\"' value='\".$iRandom.\"' />\", $html );\n } else {\n $br = false;\n if( $bFilledInSpecial ) {\n $br = '<br />';\n } \n $html = \"\\n<span><label class='fvacl' for='c_\".$protect.$FV_Antispam_iFilledInCount.\"'>\".$br.__($sQuestion).\"</label></span> <input class='fvacq' type='text' id='c_\".$protect.$FV_Antispam_iFilledInCount.\"' name='c_\".$protect.\"' size='5' /><input class='fvaca' type='hidden' name='ca_\".$protect.\"' value='\".$iRandom.\"' />\\n\"; \t\n \n if( $bFilledInSpecial ) {\n $html = \"<div id='fvacq$form_id' class='fvacq_wrap' style='display: none'>$html</div>\\n\";\t//\ttodo: inline style - not so good!\n }\n }\n \t}\t\t\n\n \treturn $html;\n }", "title": "" }, { "docid": "c92327a0639c35742f62b7ed7b1b5d78", "score": "0.5615893", "text": "public static function create_question_fields() {\n\n\t\t\tglobal $wpdb;\n\n\t\t\t// Question mailing fields & joins\n\t\t\tself::$question_fields_SQL = array(\n\t\t\t\t// Children Fields.\n\t\t\t\t'join' => array(\n\t\t\t\t\t'gender' => \"LEFT JOIN {$wpdb->usermeta} g ON g.user_id = u.ID AND g.meta_key = 'gender'\",\n\t\t\t\t\t'age' => \"LEFT JOIN {$wpdb->usermeta} pnr ON pnr.user_id = u.ID AND pnr.meta_key = 'personnummer'\",\n\t\t\t\t\t'geography' => \"LEFT JOIN {$wpdb->usermeta} pst ON pst.user_id = u.ID AND pst.meta_key = 'zipcode'\",\n\t\t\t\t\t'income' => \"LEFT JOIN {$wpdb->usermeta} inc ON inc.user_id = u.ID AND inc.meta_key = 'parent_income'\",\n\t\t\t\t\t'bookings' => \" \n\t\t\t\t\t\tLEFT JOIN {$wpdb->bookings} bp ON bp.user_id = u.ID\n\t\t\t\t\t\tLEFT JOIN {$wpdb->term_relationships} ptr ON ptr.object_id = bp.event_id\n\t\t\t\t\t\tLEFT JOIN {$wpdb->term_taxonomy} ptt ON ptt.term_taxonomy_id = ptr.term_taxonomy_id AND ptt.taxonomy = 'hwcrm_event_type'\n\t\t\t\t\t\tLEFT JOIN {$wpdb->terms} pt ON pt.term_id = ptt.term_id\n\t\t\t\t\t\tLEFT JOIN {$wpdb->postmeta} pm ON pm.post_id = bp.event_id AND pm.meta_key = '_starttime'\",\n\t\t\t\t\t\"studios\" => \"\n\t\t\t\t\t\tLEFT JOIN {$wpdb->terms} \t\t\tts ON ts.term_id = bp.event_track_id\n\t\t\t\t\t\tLEFT JOIN {$wpdb->term_taxonomy}\txs ON xs.term_id = ts.term_id\n\t\t\t\t\t\tLEFT JOIN {$wpdb->terms} \t\t\tpr ON pr.term_id = xs.parent\n\t\t\t\t\t\",\n\t\t\t\t\t\"stipendium\" => \"LEFT JOIN {$wpdb->usermeta} sti ON sti.user_id = u.ID AND sti.meta_key = 'stipendium_type'\",\n\t\t\t\t\t'tax_year' => \"LEFT JOIN {$wpdb->usermeta} tax ON tax.user_id = u.ID AND tax.meta_key = 'tax_year'\",\n\t\t\t\t\t// Question Default Fields\n\t\t\t\t\t'p_mobile' => \"LEFT JOIN {$wpdb->usermeta} p1mo\tON p1mo.user_id = p1.ID AND p1mo.meta_key = 'mobile'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN {$wpdb->usermeta} p2mo\tON p2mo.user_id = p2.ID AND p2mo.meta_key = 'mobile'\",\n\n\t\t\t\t\t'p_names' => \"LEFT JOIN {$wpdb->usermeta} p1fn\tON p1fn.user_id = p1.ID AND p1fn.meta_key = 'first_name'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN {$wpdb->usermeta} p1ln\tON p1ln.user_id = p1.ID AND p1ln.meta_key = 'last_name'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN {$wpdb->usermeta} p2fn\tON p2fn.user_id = p2.ID AND p2fn.meta_key = 'first_name'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN {$wpdb->usermeta} p2ln\tON p2ln.user_id = p2.ID AND p2ln.meta_key = 'last_name'\",\n\t\t\t\t\t'name' => \"LEFT JOIN {$wpdb->usermeta} fn \tON fn.user_id = u.ID AND fn.meta_key =\t 'first_name'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN {$wpdb->usermeta} ln \tON ln.user_id = u.ID AND ln.meta_key =\t 'last_name'\",\n\t\t\t\t\t'scholarship_start' => \"LEFT JOIN {$wpdb->usermeta} sst ON sst.user_id = u.ID AND sst.meta_key = 'stipendium_start'\",\n\t\t\t\t\t'scholarship_end' => \"LEFT JOIN {$wpdb->usermeta} sse ON sse.user_id = u.ID AND sse.meta_key = 'stipendium'\",\n\t\t\t\t\t'scholarship_type' => \"LEFT JOIN {$wpdb->usermeta} ssy ON ssy.user_id = u.ID AND ssy.meta_key = 'stipendium_type'\",\n\t\t\t\t\t// Leader Fields\n\t\t\t\t\t'worker_role' => \"\n\t\t\t\t\tLEFT JOIN {$wpdb->leader_roles} ler ON ler.user_id = u.ID\n\t\t\t\t\tLEFT JOIN {$wpdb->worker_roles} wor ON wor.role_id = ler.role_id\n\t\t\t\t\",\n\t\t\t\t\t'worker_place' => \"\n\t\t\t\t\tLEFT JOIN {$wpdb->leader_places} lep ON lep.user_id = u.ID\n\t\t\t\t\tLEFT JOIN {$wpdb->worker_places} wop ON wop.place_id = lep.place_id\n\t\t\t\t\",\n\t\t\t\t\t'knowledge' => \"\n\t\t\t\t\tLEFT JOIN {$wpdb->leaderknowledge} lek ON lek.leaderId = u.ID\n\t\t\t\t\tLEFT JOIN {$wpdb->terms} lkt ON lkt.term_id = lek.termId\n\t\t\t\t\tLEFT JOIN {$wpdb->term_taxonomy} lktt ON lktt.term_id = lkt.term_id\n\t\t\t\t\tLEFT JOIN {$wpdb->terms} lks ON (lks.term_id = lktt.parent) OR (lks.term_id = lktt.term_id AND lktt.parent = 0)\n\t\t\t\t\t\",\n\t\t\t\t\t'employment' => \"LEFT JOIN {$wpdb->usermeta} eps ON eps.user_id = u.ID AND eps.meta_key = 'employment_status'\",\n\t\t\t\t\t// Parent fields.\n\t\t\t\t\t'mobile' => \"LEFT JOIN {$wpdb->usermeta} mo ON mo.user_id = u.ID AND mo.meta_key = 'mobile'\",\n\t\t\t\t\t// Inactive fields.\n\t\t\t\t\t'user_type' => \"LEFT JOIN {$wpdb->usermeta} ut ON ut.user_id = u.ID AND ut.meta_key = 'user_type'\",\n\t\t\t\t\t'inactivated' => \"LEFT JOIN {$wpdb->usermeta} iac ON iac.user_id = u.ID AND iac.meta_key = 'inactivate_timestamp'\"\n\n\t\t\t\t),\n\t\t\t\t'select' => array(\n\t\t\t\t\t// Children Fields\n\t\t\t\t\t'gender' => 'CASE WHEN g.meta_value = \\'M\\' THEN \"Kille\" WHEN g.meta_value = \\'F\\' THEN \"Tjej\" WHEN g.meta_value = \\'A\\' THEN \"Annat\" else g.meta_value END gender',\n\t\t\t\t\t'age' => 'pnr.meta_value ssn',\n\t\t\t\t\t'geography' => 'pst.meta_value zipcode',\n\t\t\t\t\t'parent_geography' => 'pst.meta_value zipcode',\n\t\t\t\t\t'income' => 'inc.meta_value income',\n\t\t\t\t\t'bookings' => 'GROUP_CONCAT(distinct IF(pm.meta_value < NOW(),pt.name,null) SEPARATOR \\',\\') past_event_types, GROUP_CONCAT(distinct IF(pm.meta_value >= NOW(),pt.name,null) SEPARATOR \\',\\') future_event_types,\n\t\t\t\t\tGROUP_CONCAT(distinct IF(pm.meta_value < NOW(),pt.term_id,null) SEPARATOR \\',\\' ) hide_past_event_types,\n\t\t\t\t\tGROUP_CONCAT(distinct IF(pm.meta_value >= NOW(),pt.term_id,null) SEPARATOR \\',\\') hide_future_event_types',\n\t\t\t\t\t'stipendium' => 'sti.meta_value stipendium',\n\t\t\t\t\t'studios' => 'GROUP_CONCAT(distinct IF (pm.meta_value < NOW(), CASE WHEN pr.term_id IS NULL THEN \t\n\t\t\t\t\t\t\t\t\t\t\t\tts.term_id ELSE pr.term_id END ,null) SEPARATOR \\',\\' ) hide_past_studios,\n\t\t\t\t\t\t\t\t\t\t\tGROUP_CONCAT(distinct IF (pm.meta_value >=NOW(), CASE WHEN pr.term_id IS NULL THEN\n\t\t\t\t\t\t\t\t\t\t\t\tts.term_id ELSE pr.term_id END ,null) SEPARATOR \\',\\' ) hide_future_studios,\n\t\t\t\t\t\t\t\t\t\t\tGROUP_CONCAT(distinct IF (pm.meta_value >=NOW(), CASE WHEN pr.term_id IS NULL THEN ts.name ELSE pr.name END, null) SEPARATOR \\',\\') future_studios,\n\t\t\t\t\t\t\t\t\t\t\tGROUP_CONCAT(distinct IF (pm.meta_value < NOW(), CASE WHEN pr.term_id IS NULL THEN ts.name ELSE pr.name END ,null) SEPARATOR \\',\\' ) past_studios',\n\t\t\t\t\t'tax_year' => 'tax.meta_value tax_year',\n\t\t\t\t\t'active' => 'act.meta_value active',\n\t\t\t\t\t'scholarship_start' => 'sst.meta_value scholarship_start',\n\t\t\t\t\t'scholarship_end' => 'sse.meta_value scholarship_end',\n\t\t\t\t\t'scholarship_type' => 'ssy.meta_value scholarship_type',\n\t\t\t\t\t// Question Default Children Fields\n\t\t\t\t\t'p_mobile' => 'p1mo.meta_value p1_mobile, p2mo.meta_value p2_mobile',\n\t\t\t\t\t'p_email' => 'p1.user_email p1_email, p2.user_email p2_email',\n\t\t\t\t\t'p_names' => 'p1fn.meta_value p1_first, p1ln.meta_value p1_last, p2fn.meta_value p2_first, p2ln.meta_value p2_last',\n\t\t\t\t\t'p_ID' => 'p1u.meta_value p1_ID, p2u.meta_value p2_ID',\n\t\t\t\t\t'p_active' => 'p1ac.meta_value p1_active, p2ac.meta_value p2_active',\n\t\t\t\t\t'name' => 'fn.meta_value first_name, ln.meta_value last_name',\n\t\t\t\t\t// Leader Fields\n\t\t\t\t\t'worker_role' => \"CONCAT(wor.role_name, ' ', wor.salary, ' kr/h') worker_role\",\n\t\t\t\t\t'worker_place' => \"GROUP_CONCAT(distinct wop.place_name ) worker_places, GROUP_CONCAT( wop.place_id ) hide_worker_places\",\n\t\t\t\t\t'knowledge' => \"GROUP_CONCAT(distinct lks.name ) knowledge, GROUP_CONCAT( lks.term_id ) hide_knowledge\",\n\t\t\t\t\t'employment' => \"(CASE WHEN eps.meta_value = 'AKTIV' THEN 'AKTIV' ELSE 'ALUMNI' END) employment\",\n\t\t\t\t\t// Parent Fields\n\t\t\t\t\t'mobile' => 'mo.meta_value mobile',\n\t\t\t\t\t'email' => 'u.user_email email',\n\t\t\t\t\t'registered' => 'u.user_registered registered',\n\t\t\t\t\t// Inactive Fields.\n\t\t\t\t\t'user_type' => 'ut.meta_value as user_type',\n\t\t\t\t\t'inactivated' => 'iac.meta_value inactivated',\n\t\t\t\t),\n\t\t\t);\n\n\t\t\tself::$list_fields = array(\n\t\t\t\tQUESTION_TYPE_CHILD => array(\n\t\t\t\t\t'name' => 'Namn',\n\t\t\t\t\t'gender' => 'Kön',\n\t\t\t\t\t'age' => 'Ålder',\n\t\t\t\t\t'geography' => 'Geografi',\n\t\t\t\t\t'income' => 'Inkomst',\n\t\t\t\t\t'bookings' => 'Tidigare & Framtida Event types',\n\t\t\t\t\t'p_mobile' => 'M Mobil',\n\t\t\t\t\t'p_email' => 'M E-post',\n\t\t\t\t\t'p_ID' => 'M AnvändarID',\n\t\t\t\t\t'p_active' => 'M Aktiv',\n\t\t\t\t\t'stipendium' => \"Stipendium\",\n\t\t\t\t\t'tax_year' => \"Taxeringsår\",\n\t\t\t\t\t'm_deactivate' => \"M Deaktiveringslänk\",\n\t\t\t\t\t'active' => \"Aktiv\"\n\t\t\t\t),\n\t\t\t\tQUESTION_TYPE_PARENT => array(\n\t\t\t\t\t'name' => 'Namn',\n\t\t\t\t\t\n\t\t\t\t\t'mobile' => 'Mobil',\n\t\t\t\t\t'email' => 'E-post',\n\t\t\t\t\t'bookings' => 'Tidigare & Framtida Event Types',\n\t\t\t\t\t'deactivate' => 'Inaktiveringslänk',\n\t\t\t\t\t'registered' => 'Registreringsdatum'\n\t\t\t\t),\n\t\t\t\tQUESTION_TYPE_INACTIVE => array(\n\t\t\t\t\t'name' => 'Namn',\n\t\t\t\t\t'mobile' => 'Mobil',\n\t\t\t\t\t'email' => 'E-post',\n\t\t\t\t\t'bookings' => 'Tidigare & Framtida Event Types',\n\t\t\t\t\t'registered' => 'Registreringsdatum',\n\t\t\t\t\t\"inactivated\" => \"Inaktiveringsdatum\",\n\t\t\t\t\t'user_type' => \"Användartyp\"\n\t\t\t\t),\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "38e6f7fe6b98f4e36f134afd09a21d73", "score": "0.5605726", "text": "function index(): ?string\n {\n require ROOT . '/app/data/tables/feedback.php';\n\n $user = \\App\\App::$session->getUser();\n// $user ? $user_role = $user->getRole() : null;\n $form = new FeedbackForm($user);\n\n $user = \\App\\Feedbacks\\Model::getWhere([]);\n if ($user) {\n foreach ($user as $comment) {\n $delete = new Delete($comment->getId());\n\n $row = [\n 'id' => $comment->getId(),\n 'name' => $comment->getName(),\n 'date' => $comment->getDate(),\n 'feedback' => $comment->getFeedback(),\n 'delete' => $delete->render()\n ];\n\n $table['tbody'][] = $row;\n }\n $h1 = 'Feedbacks';\n $table = new \\Core\\Views\\Table();\n } else {\n $h1 = 'Want to leave a feedback register !';\n }\n\n\n if ($form->isSubmitted() && $form->validate()) {\n $safe_input = $form->getSubmitData();\n $feedback = new \\App\\Feedbacks\\Feedback($safe_input);\n $feedback->setRole(\\App\\Users\\User::ROLE_USER);\n\n $feedback_id = \\App\\Feedbacks\\Model::insert($user);\n $feedback->setId($feedback_id);\n \\App\\Feedbacks\\Model::update($feedback);\n header(\"Location: /feedback\");\n }\n\n $content = new Content([\n 'h1' => $h1,\n// 'table' => $table->render(),\n 'form' => $form->render()\n ]);\n\n $this->page->setContent($content->render('content/user/feedback.tpl.php'));\n\n return $this->page->render();\n }", "title": "" }, { "docid": "633a249bc9abdb94cd5413623923f872", "score": "0.55834955", "text": "public function getFeedback():array;", "title": "" }, { "docid": "cf20af6b6040c80b2f45ef1332c43586", "score": "0.5579646", "text": "function hook_quiz_feedback_labels_alter(&$feedback_labels) {\n $feedback_labels['solution'] = t('The answer you should have chosen.');\n}", "title": "" }, { "docid": "6a2c700bd23ba8977e7184ce7dfb6d40", "score": "0.5576927", "text": "public function getChangeSecurityQuestionForm();", "title": "" }, { "docid": "6d713df0162e338e5819ccad1f80d5e7", "score": "0.55636275", "text": "static public function update_questions() {\n\t\t\t$tempQuestion \t\t= dl::select(\"temp_question\");\n\t\t\t$tq_id \t\t\t\t\t= $tempQuestion[0][\"q_id\"];\n\t\t\t$question_fields \t= array(\"q_title\",\"q_desc\",\"q_notes\");\n\t\t\t$question_values \t= array($_POST[\"questionTitle\"],$_POST[\"questionDesc\"], $_POST[\"notesRequired\"]);\n\t\t\t$question_write \t= array_combine($question_fields, $question_values);\n\t\t\t$found \t\t\t\t\t= dl::select(\"question\", \"q_title='\".$_POST[\"questionTitle\"].\"'\");\n\t\t\t$contentFields \t\t= array(\"qc_prompt\", \"qc_measure_unit\", \"q_id\", \"ft_id\");\n\t\t\t$optionFields\t\t\t= array(\"tfo_options\", \"qc_id\");\n\t\t\t$proprtiesFields\t\t= array(\"tfp_required\", \"tfp_size\", \"tfp_name_id\", \"tfp_range_from\", \"tfp_range_to\", \"tfp_numeric\", \"tfp_maxlength\", \"tfp_minlength\");\n\t\t\tif(empty($found)) {\n\t\t\t\tdl::insert(\"question\", $question_write);\n\t\t\t\t//get last added id\n\t\t\t\t$id \t\t\t\t\t= dl::getId(); \n\t\t\t\tself::setValues($id, $tq_id);\n\t\t\t}else{\n\t\t\t\tdl::update(\"question\", $question_write, \"q_id=\".$found[0][\"q_id\"] );\n\t\t\t\t$id=$found[0][\"q_id\"];\n\t\t\t\tself::setValues($id, $tq_id);\n\t\t\t}\n\t\t\t//delete all of the existing records for the id.\n\t\t\tdl::delete(\"temp_question_content\");\n\t\t\tdl::delete(\"temp_question\");\n\t\t\tdl::delete(\"temp_field_properties\");\n\t\t\tdl::delete(\"temp_field_options\");\n\t\t\t?>\n\t\t\t<script type=\"text/javascript\">\n\t\t\t\t$(document).ready(function() {\n\t\t\t\t\t$(function() {\n\t\t\t\t\t\t$('#questionTitle').val(\"\");\n\t\t\t\t\t\t$('#questionDesc').val(\"\");\n\t\t\t\t\t\t$('#notesRequired option:first').attr('selected', 'selected');\n\t\t\t\t\t\t$('#quest_message').html(\"Question Added\");\n\t\t\t\t\t\t$('#quest_message').delay(200).fadeOut(2000);\n\t\t\t\t\t\t$('#quest_message').show();\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t</script>\n\t\t\t<?php\n\t\t}", "title": "" }, { "docid": "76e5919980be61f90d93acaacf71c7b4", "score": "0.5538299", "text": "function manageQuestion($vars) {\r\n\textract($vars);\r\n\r\n\tif($edit==1)\r\n\t{\r\n\t\taddQuiz($vars);\r\n\t}\r\n\r\n\tlist($dbconn) = lnDBGetConn();\r\n\t$lntable = lnDBGetTables();\r\n\t$quiz_testtable = $lntable['quiz_test'];\r\n\t$quiz_testcolumn = &$lntable['quiz_test_column'];\r\n\t$quiztable = $lntable['quiz'];\r\n\t$quizcolumn = &$lntable['quiz_column'];\r\n\t$quiz_multichoicetable = $lntable['quiz_multichoice'];\r\n\t$quiz_multichoicecolumn = &$lntable['quiz_multichoice_column'];\r\n\r\n\tif($dbconn->ErrorNo() != 0) {\r\n\t\treturn;\r\n\t}\r\n\r\n\t//select information from quiz table\r\n\t$query = \"SELECT $quizcolumn[name],$quizcolumn[grade]\r\n\tFROM $quiztable\r\n\tWHERE $quizcolumn[qid]=\".lnVarPrepForStore($qid).\"\";\r\n\t$result = $dbconn->Execute($query);\r\n\tlist($quiz_name,$quiz_grade) = $result->fields;\r\n\t\r\n\r\n\r\n\r\n\t//select number of questions in test\r\n\t$query1 = \"SELECT $quiz_testcolumn[mcid] FROM $quiz_testtable WHERE $quiz_testcolumn[qid]=\".lnVarPrepForStore($qid).\"\";\r\n\t$result1 = $dbconn->Execute($query1);\r\n\t$numrows = $result1->RecordCount();\r\n\tif (!$result1) die (\"result1 error\");\t\r\n\t\r\n\r\n\t\r\n//*************************************************\t\r\n\t\r\n\t//Calculate a difficult level of the test\r\n\t$query2 = \"SELECT $quiz_multichoicecolumn[mcid],$quiz_multichoicecolumn[difficulty],$quiz_multichoicecolumn[type] FROM $quiz_multichoicetable JOIN $quiz_testtable ON $quiz_testcolumn[mcid]=$quiz_multichoicecolumn[mcid] WHERE $quiz_testcolumn[qid]=\".lnVarPrepForStore($qid).\"\";\r\n\t$result2 = $dbconn->Execute($query2);\r\n\tif (!$result2) die (\"result2 error\");\r\n\t\r\n\t$num=0;\r\n\tfor ($i=1; (list($mcid,$difficulty,$type) = $result2->fields); $i++) \r\n\t{\r\n\t\t$result2->MoveNext();\t\t\r\n\t\t$num++;\r\n\t\t//echo \"mcid : \".$mcid.\" type : \".$type;\r\n\t\t\r\n\t\tif($type==2||$type==3)\r\n\t\t{\r\n\t\r\n\t\t\t$difficulty_type2=100;\r\n\t\t\twhile($difficulty_type2!=0)\r\n\t\t\t{\t\r\n\t\t\t\t$mcid++;\r\n\t\t\t\t\r\n\t\t\t\tif($difficulty_type2!=100)\r\n\t\t\t\t{\r\n\t\t\t\t\t$num++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$query_type2 = \"SELECT $quiz_multichoicecolumn[difficulty] FROM $quiz_multichoicetable WHERE $quiz_multichoicecolumn[mcid]=\".$mcid.\"\";\r\n\t\t\t\t$result_type2 = $dbconn->Execute($query_type2);\r\n\t\t\t\tif (!$result_type2) die (\"result2 error\");\r\n\t\t\t\tlist($difficulty_type2) = $result_type2->fields;\r\n\t\t\t\t\r\n\t\t\t\t$diff_new = $difficulty_type2 + $diff_new;\r\n\t\t\t\t\r\n\t\t\t}// end while\r\n\t\t\t\r\n\t\t\t\r\n\t\t}// end if\r\n\t\t\r\n\t\t//echo \" diff : \".$diff_new.\" difficulty : \".$difficulty;\r\n\t\t//echo \"<br>\";\r\n\t\t\r\n\t\t$difficulty_all = $difficulty + $diff_new;\r\n\t\t$difficulty_result = $difficulty_result + $difficulty_all;\r\n\t\t$diff_new=0;\r\n\t}//end for\r\n\r\n\t\t//echo \"<br>difficulty = \".$difficulty_result;\t\t\r\n\t\t$diff_percent = ($difficulty_result/(5*$num))*100;\r\n\t\t$diff_percent = sprintf(\"%2.2f\", $diff_percent);\r\n\r\n\r\n//****************************************\t\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n\techo '<center><BR><fieldset><legend><B>'._TESTINFORMATION.'</B></legend>';\r\n\techo '<table cellpadding=3 cellspacing=0 border=0 width=100%>';\r\n\techo '<tr>';\r\n\techo '<td><B>'._LESSONTITLEHOT.'</B> : '.$quiz_name.'</td>';\r\n\techo '</tr>';\r\n\techo '<tr>';\r\n\techo '<td><B>'._NUMQUESTION.'</B> : '.$num.' '._UNITS.'</td>';\r\n\techo '</tr>';\r\n\techo '<tr>';\r\n\techo '<td><B>'._GRADE.'</B> : '.$quiz_grade.' '._QUESTIONSCORE.'</td>';\r\n\techo '</tr>';\r\n\techo '<tr>';\r\n\techo '<td><B>'._DIFFICULTYLEVEL.'</B> : '.$diff_percent.' %</td>';\r\n\techo '</tr>';\r\n\techo '</table>';\r\n\techo '</fieldset></center>';\r\n\r\n\techo '<br>';\r\n\r\n\techo '<table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"3\" bordercolor=\"#DDDDDD\">';\r\n\techo '<tr>';\r\n\techo '<td width=\"5%\" align=\"center\" bgcolor=\"#CCCCCC\"><B>No.</B></td>';\r\n\t//echo '<td width=\"10%\" align=\"center\" bgcolor=\"#CCCCCC\"><B>'._ORDER.'</B></td>';\r\n\techo '<td width=\"15%\" align=\"center\" bgcolor=\"#CCCCCC\"><B>'._QUESTIONTYPE.'</B></td>';\r\n\techo '<td width=\"50%\" align=\"center\" bgcolor=\"#CCCCCC\"><B>'._QUESTIONITEM.'</B></td>';\r\n\techo '<td width=\"15%\" align=\"center\" bgcolor=\"#CCCCCC\"><B>'._DIFFICULTYLEVEL.'</B></td>';\r\n\techo '<td width=\"15%\" align=\"center\" bgcolor=\"#CCCCCC\"><B>'._DELETEQUESTION.'</B></td>';\r\n\techo '</tr>';\r\n\t\r\n\r\n\t$query3 = \"SELECT $quiz_multichoicecolumn[mcid],$quiz_multichoicecolumn[type],$quiz_multichoicecolumn[question],$quiz_multichoicecolumn[difficulty],$quiz_testcolumn[weight] FROM $quiz_multichoicetable JOIN $quiz_testtable ON $quiz_testcolumn[mcid]=$quiz_multichoicecolumn[mcid] WHERE $quiz_testcolumn[qid]=\".lnVarPrepForStore($qid).\" ORDER BY $quiz_testcolumn[weight]\";\r\n\t$result3 = $dbconn->Execute($query3);\r\n\tif (!$result3) die (\"result3 error\");\r\n\t\r\n\tfor ($i=1; (list($mcid,$type,$question,$difficulty,$weight) = $result3->fields); $i++) \r\n\t{\r\n\t\t//******echo type in text \r\n\t\t\t\tif($type==1){$type_text=_QCHOICE;}\r\n\t\t\t\t\telse if($type==2){$type_text=_QFILL;}\r\n\t\t\t\t\t\telse if($type==3){$type_text=_QMULTIQ;}\r\n\t\r\n\t\t$result3->MoveNext();\t\r\n\r\n\r\nif($type==1)\r\n{\r\n\techo '<tr>';\r\n\techo '<td align=\"center\" bordercolor=\"#EEEEEE\">'.$i.'</td>';\r\n\t//******************Move Up, Move Down***************\r\n\t//echo '<td align=\"center\" bordercolor=\"#EEEEEE\">';\r\n\t//echo '<A HREF=\"index.php?mod=Courses&amp;file=admin&amp;op=quiz&amp;action=createtest&amp;func=changePosition&amp;cid='.$cid.'&amp;qid='.$qid.'&amp;weightnow='.$weight.'&amp;down=1\"><IMG SRC=images/global/down.gif BORDER=0 ALT='._MOVEDOWN.'></a>';\r\n\t//echo ' <IMG SRC=images/global/up.gif BORDER=0 ALT='._MOVEUP.'>';\r\n\t//echo '</td>';\r\n\t//***************************************************\r\n\t\r\n\t$question=stripslashes($question);\r\n\t$question=nl2br($question);\r\n\t$question=str_replace('\\\\\"','\"',$question);\r\n\t\t\t\r\n\techo '<td align=\"center\" bordercolor=\"#EEEEEE\">'.$type_text.'</td>';\r\n\techo '<td bordercolor=\"#EEEEEE\">'.$question.'</td>';\r\n\techo '<td align=\"center\" bordercolor=\"#EEEEEE\">'.$difficulty.'</td>';\r\n\techo '<td align=\"center\" bordercolor=\"#EEEEEE\">';\r\n\techo \"<A HREF=\\\"javascript: if(confirm('Delete Question?')) window.open('index.php?mod=Courses&amp;file=admin&amp;op=quiz&amp;action=createtest&amp;func=delete_question&amp;qid=$qid&amp;mcid=$mcid&amp;type=$type&amp;cid=$cid','_self')\\\"><IMG SRC=images/global/delete.gif BORDER=0 ALT=\"._DELETE.\"></A>\";\r\n\techo '</td>';\r\n\techo '</tr>';\r\n\r\n}// end if type = 1\t\t\r\n\r\n\r\nif($type==2)\r\n{\r\n\t$j=0;\r\n\twhile($difficulty!=0)\r\n\t{\r\n\t$j++;\r\n\t$query_type2 = \"SELECT $quiz_multichoicecolumn[mcid], $quiz_multichoicecolumn[question],$quiz_multichoicecolumn[difficulty] FROM $quiz_multichoicetable WHERE $quiz_multichoicecolumn[mcid]=\".lnVarPrepForStore($mcid).\" \";\r\n\t$result_type2 = $dbconn->Execute($query_type2);\r\n\tif (!$result_type2) die (\"result_type2 error\");\t\r\n\t\r\n\tlist($mcid,$question,$difficulty) = $result_type2->fields;\r\n\t\r\n\tif($question_display=='')\r\n\t{\r\n\t\t$i_start = $i;\r\n\t\t$mcid_start = $mcid;\r\n\t\t$question_display=$question_display.$question;\t\r\n\t}\r\n\telse\r\n\t{\r\n\t\t$question_display=$question_display.' __ '.$question;\t\t\r\n\t}\t\r\n\t\r\n\t$m=$m+5;\t\r\n\t$difficulty_display = $difficulty_display+$difficulty;\t\r\n\r\n\t$mcid++;\r\n\t\r\n\t}//end while\r\n\t\r\n\tif($difficulty==0)\r\n\t{\r\n\t$difficulty_display = ($difficulty_display/($m-5))*5;\r\n\t$difficulty_display = sprintf(\"%2.2f\", $difficulty_display);\r\n\r\n\techo '<tr>';\r\n\techo '<td align=\"center\" bordercolor=\"#EEEEEE\">'.$i.'</td>';\r\n\t//******************Move Up, Move Down***************\r\n\t//echo '<td align=\"center\" bordercolor=\"#EEEEEE\">';\r\n\t//echo '<A HREF=\"index.php?mod=Courses&amp;file=admin&amp;op=quiz&amp;action=createtest&amp;func=changePosition&amp;cid='.$cid.'&amp;qid='.$qid.'&amp;weightnow='.$weight.'&amp;down=1\"><IMG SRC=images/global/down.gif BORDER=0 ALT='._MOVEDOWN.'></a>';\r\n\t//echo ' <IMG SRC=images/global/up.gif BORDER=0 ALT='._MOVEUP.'>';\r\n\t//echo '</td>';\r\n\t//***************************************************\r\n\techo '<td align=\"center\" bordercolor=\"#EEEEEE\">'.$type_text.'</td>';\r\n\techo '<td bordercolor=\"#EEEEEE\">'.$question_display.' ('._NUMQUESTIONS.' '.($j-1).' '._UNITS.')</td>';\r\n\techo '<td align=\"center\" bordercolor=\"#EEEEEE\">'.$difficulty_display.'</td>';\r\n\techo '<td align=\"center\" bordercolor=\"#EEEEEE\">';\r\n\techo \"<A HREF=\\\"javascript: if(confirm('Delete Question?')) window.open('index.php?mod=Courses&amp;file=admin&amp;op=quiz&amp;action=createtest&amp;func=delete_question&amp;qid=$qid&amp;mcid=$mcid_start&amp;type=$type&amp;cid=$cid','_self')\\\"><IMG SRC=images/global/delete.gif BORDER=0 ALT=\"._DELETE.\"></A>\";\r\n\techo '</td>';\r\n\techo '</tr>';\r\n\t\t\r\n\t}//end if($difficulty==0)\r\n\t\r\n\t$question_display='';\r\n\t$difficulty_display=0;\r\n\t$m=0;\r\n\t\r\n\t\r\n}// end if type = 2\r\n\r\n\r\nif($type==3)\r\n{\r\n\r\n\t$j=0;\r\n\twhile($difficulty!=0)\r\n\t{\r\n\t$j++;\r\n\t$query_type2 = \"SELECT $quiz_multichoicecolumn[mcid], $quiz_multichoicecolumn[question],$quiz_multichoicecolumn[difficulty] FROM $quiz_multichoicetable WHERE $quiz_multichoicecolumn[mcid]=\".lnVarPrepForStore($mcid).\" \";\r\n\t$result_type2 = $dbconn->Execute($query_type2);\r\n\tif (!$result_type2) die (\"result_type2 error\");\t\r\n\t\r\n\tlist($mcid,$question,$difficulty) = $result_type2->fields;\r\n\t\r\n\tif($m==null)\r\n\t{\r\n\t\t$i_start = $i;\r\n\t\t$mcid_start = $mcid;\r\n\t}\r\n\t\r\n\t\r\n\t$m=$m+5;\t\r\n\t$difficulty_display = $difficulty_display+$difficulty;\t\r\n\r\n\t$mcid++;\r\n\t\r\n\t}//end while\r\n\t\r\n\tif($difficulty==0)\r\n\t{\r\n\t$difficulty_display = ($difficulty_display/($m-5))*5;\r\n\t$difficulty_display = sprintf(\"%2.2f\", $difficulty_display);\r\n\r\n\techo '<tr>';\r\n\techo '<td align=\"center\" bordercolor=\"#EEEEEE\">'.$i.'</td>';\r\n\t//******************Move Up, Move Down***************\r\n\t//echo '<td align=\"center\" bordercolor=\"#EEEEEE\">';\r\n\t//echo '<A HREF=\"index.php?mod=Courses&amp;file=admin&amp;op=quiz&amp;action=createtest&amp;func=changePosition&amp;cid='.$cid.'&amp;qid='.$qid.'&amp;weightnow='.$weight.'&amp;down=1\"><IMG SRC=images/global/down.gif BORDER=0 ALT='._MOVEDOWN.'></a>';\r\n\t//echo ' <IMG SRC=images/global/up.gif BORDER=0 ALT='._MOVEUP.'>';\r\n\t//echo '</td>';\r\n\t//***************************************************\r\n\techo '<td align=\"center\" bordercolor=\"#EEEEEE\">'.$type_text.'</td>';\r\n\techo '<td bordercolor=\"#EEEEEE\">'.$question.' ('._NUMQUESTIONS.' '.($j-1).' '._UNITS.')</td>';\r\n\techo '<td align=\"center\" bordercolor=\"#EEEEEE\">'.$difficulty_display.'</td>';\r\n\techo '<td align=\"center\" bordercolor=\"#EEEEEE\">';\r\n\techo \"<A HREF=\\\"javascript: if(confirm('Delete Question?')) window.open('index.php?mod=Courses&amp;file=admin&amp;op=quiz&amp;action=createtest&amp;func=delete_question&amp;qid=$qid&amp;mcid=$mcid_start&amp;type=$type&amp;cid=$cid','_self')\\\"><IMG SRC=images/global/delete.gif BORDER=0 ALT=\"._DELETE.\"></A>\";\r\n\techo '</td>';\r\n\techo '</tr>';\r\n\t\t\r\n\t}//end if($difficulty==0)\r\n\t\r\n\t$question_display='';\r\n\t$difficulty_display=0;\r\n\t$m=0;\r\n\r\n}\r\n\t\r\n\t}//end for\r\n\t\r\n\techo '</table>';\r\n\t\r\n\techo '<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">';\r\n\techo '<tr>';\r\n\techo '<td align=\"center\">';\r\n\t\r\n\techo \"<input class='button' type=button value='เพิ่มข้อสอบ' Onclick=\\\"javascript:window.open('index.php?mod=Courses&amp;file=admin&amp;op=quiz&amp;action=createtest&amp;func=search_question&amp;cid=$cid&amp;qid=$qid','_self')\\\"> \";\r\n\t\r\n\techo \"<input class='button' type=button value='แก้ไขการตั้งค่าชุดแบบทดสอบ' Onclick=\\\"javascript:window.open('index.php?mod=Courses&amp;file=admin&amp;op=quiz&amp;action=createtest&amp;func=edit_quiz&amp;cid=$cid&amp;qid=$qid','_self')\\\"> \";\r\n\t\r\n\techo \"<input class='button' type=button value='เสร็จสิ้น' Onclick=\\\"javascript:window.open('index.php?mod=Courses&amp;file=admin&amp;op=quiz&amp;action=createtest&amp;cid=$cid','_self')\\\"> \";\r\n\t\r\n\techo '</td>';\r\n\techo '</tr>';\r\n\techo '</table>';\r\n\t\r\n\t\r\n\r\n}", "title": "" }, { "docid": "413a6ec72a9428ecaa7abf9f5c94ab97", "score": "0.55314875", "text": "public function feedback($feedback)\n\t{\n\t\t$feedback = json_decode($feedback,true );\n\t\t$data['email'] = $feedback['email'];\n\t\t$data['name'] = $feedback['name'];\n\t\t$data['comment'] = $feedback['comment'];\n\t\t$model = Mage::getModel('feedback/feedback');\n\n\t\t\t$model = Mage::getModel('feedback/feedback');\n\t\t\t$model->setData($data);\n\t\t\ttry {\n\t\t\t\tif ($model->getCreatedTime == NULL || $model->getUpdateTime() == NULL) {\n\t\t\t\t\t$model->setCreatedTime(now())\n\t\t\t\t\t\t->setUpdateTime(now());\n\t\t\t\t} else {\n\t\t\t\t\t$model->setUpdateTime(now());\n\t\t\t\t}\n\t\t\t\t$model->save();\n\n\t\t\t\t// code for confirmation of client feedback\n\t\t\t\t$template = Mage::getModel('core/email_template')->loadByCode('feedback_customer');\n\t\t\t\t$templateData = $template->getData();\n\t\t\t\t$templateId =$templateData['template_id'];\n\t\t\t// Set sender information\n\t\t\t$senderName = Mage::getStoreConfig('trans_email/ident_support/name');\n\t\t\t$senderEmail = Mage::getStoreConfig('trans_email/ident_support/email');\n\t\t\t$sender = array('name' => $senderName,\n\t\t\t\t\t'email' => $senderEmail);\n\t\t\t// Set recepient information\n\t\t\t$recepientEmail = $data['email'];\n\t\t\t$recepientName =$data['name'];\n\t\t\t// Get Store ID\n\t\t\tMage::app()->setCurrentStore($feedback['website_id']);\n\t\t\t$store = Mage::app()->getStore()->getId();\n\n\t\t\t// Set variables that can be used in email template\n\t\t\t$vars = array('customer_name' =>$data['name'],\n\t\t\t\t );\n\n\t\t\t$translate = Mage::getSingleton('core/translate');\n\n\t\t\t// Send Transactional Email\n\t\t\tMage::getModel('core/email_template')\n\t\t\t->sendTransactional($templateId, $sender, $recepientEmail, $recepientName, $vars, $storeId);\n\n\t\t\t$translate->setTranslateInline(true);\n\n\t\t\t// code for send email to admin\n\n\n\t\t\t$template = Mage::getModel('core/email_template')->loadByCode('feedback_admin');\n\t\t\t$templateData = $template->getData();\n\t\t\t$templateId =$templateData['template_id'];\n\t\t\t// Set sender information\n\t\t\t$senderName = Mage::getStoreConfig('trans_email/ident_support/name');\n\t\t\t$senderEmail = Mage::getStoreConfig('trans_email/ident_support/email');\n\t\t\t$sender = array('name' => $senderName,\n\t\t\t\t\t'email' => $senderEmail);\n\n\t\t\t// Set recepient information\n\t\t\t$recepientEmail = $senderEmail;\n\t\t\t$recepientName = $senderName;\n\n\t\t\t// Get Store ID\n\t\t\t$store = Mage::app()->getStore()->getId();\n\n\t\t\t// Set variables that can be used in email template\n\t\t\t$vars = array('customerName' =>$data['name'],\n\t\t\t\t 'customerEmail' => $data['email'],'customerComment'=>$data['comment']);\n\n\t\t\t$translate = Mage::getSingleton('core/translate');\n\n\t\t\t// Send Transactional Email\n\t\t\tMage::getModel('core/email_template')\n\t\t\t->sendTransactional($templateId, $sender, $recepientEmail, $recepientName, $vars, $storeId);\n\n\t\t\t$translate->setTranslateInline(true);\n\n\n\t\t\t}\n\t\t\tcatch(Exception $e)\n\t\t\t{\n\t\t\t\treturn $e->getMessage();\n\t\t\t}\n\n\n\n\t}", "title": "" }, { "docid": "0594acd94a59384d855d5353d5fe34ea", "score": "0.5530661", "text": "public function feedback()\n {\n return $this->hasMany( 'App\\Feedback' );\n // return $this->morphMany( 'App\\Feedback', 'commentable');\n }", "title": "" }, { "docid": "46ef57932031a9cab5376ebc83155aff", "score": "0.5530038", "text": "function getFields($intQuestion = null)\n {\n global $LANG;\n foreach ($this->arrPrevQuestions as $arrValue) {\n if ($intQuestion == $arrValue[\"uid\"]) {\n $strSelected = ' selected=\"selected\" ';\n } else {\n $strSelected = '';\n }\n $strTitle = '[' . $LANG->getLL(\"conditions_page\") . ' ' . $arrValue[\"page\"] . '] ' . $arrValue[\"question\"];\n if (!$this->blnLocalization) {\n $arrOutput[] = '<option value=\"' . $arrValue[\"uid\"] . '\"' . $strSelected . '>' . substr($strTitle, 0,\n 40) . '...' . '</option>';\n } elseif ($this->blnLocalization && $strSelected == ' selected=\"selected\" ') {\n $arrOutput['uid'] = $arrValue[\"uid\"];\n $arrOutput['title'] = substr($strTitle, 0, 40);\n }\n }\n\n return $arrOutput;\n }", "title": "" }, { "docid": "c72106486ca9a8b4479f669c6b28aa8e", "score": "0.552738", "text": "public static function getAllQuestionFields()\r\n {\r\n $query = ' SELECT *\r\n FORM question_fields';\r\n $result = @mysql_query($query) or die('getAllQuestionFields() ' . mysql_error());\r\n return $result;\r\n }", "title": "" }, { "docid": "2b981a89726a9c94aaf3fdba4d73de50", "score": "0.5516801", "text": "public function questionAction() {\n // Check incomming data\n $id = Arr::get( $this->post, 'id' );\n if( !$id ) {\n $this->error('Такой товар не существует!');\n }\n $item = DB::select('alias', 'name', 'id')->from('catalog')->where('status', '=', 1)->where('id', '=', $id)->as_object()->execute()->current();\n if( !$item ) {\n $this->error('Такой товар не существует!');\n }\n $email = Arr::get( $this->post, 'email' );\n if( !$email OR !filter_var( $email, FILTER_VALIDATE_EMAIL ) ) {\n $this->error('Вы неверно ввели E-Mail!');\n }\n $text = trim( strip_tags( Arr::get( $this->post, 'text' ) ) );\n if( !$text OR mb_strlen($text, 'UTF-8') < 5 ) {\n $this->error('Слишком короткий вопрос! Нужно хотя бы 5 символов');\n }\n $name = trim( strip_tags( Arr::get( $this->post, 'name' ) ) );\n if( !$name OR mb_strlen($name, 'UTF-8') < 2 ) {\n $this->error('Слишком короткое имя! Нужно хотя бы 2 символов');\n }\n\n // Check for bot\n $ip = System::getRealIP();\n $check = DB::select(array(DB::expr('catalog_questions.id'), 'count'))\n ->from('catalog_questions')\n ->where('ip', '=', $ip)\n ->where('catalog_id', '=', $id)\n ->where('created_at', '>', time() - 60)\n ->as_object()->execute()->current();\n if( is_object($check) AND $check->count ) {\n $this->error('Вы только что задали вопрос по этому товару! Пожалуйста, повторите попытку через минуту');\n }\n\n // All ok. Save data\n $keys = array('ip', 'name', 'email', 'text', 'catalog_id', 'created_at');\n $values = array($ip, $name, $email, $text, $item->id, time());\n $lastID = DB::insert('catalog_questions', $keys)->values($values)->execute();\n $lastID = Arr::get($lastID, 0);\n\n // Create links\n $link = 'http://' . Arr::get( $_SERVER, 'HTTP_HOST' ) . '/catalog/' . $item->alias;\n $link_admin = 'http://' . Arr::get( $_SERVER, 'HTTP_HOST' ) . '/backend/catalog/new/id/' . $item->id;\n\n // Save log\n $qName = 'Вопрос о товаре';\n $url = '/backend/questions/edit/' . $lastID;\n Log::add( $qName, $url, 5 );\n\n // Send message to admin if need\n $mail = DB::select()->from('mail_templates')->where('id', '=', 9)->where('status', '=', 1)->as_object()->execute()->current();\n if( $mail ) {\n $from = array( '{{site}}', '{{ip}}', '{{date}}', '{{question}}', '{{name}}', '{{email}}', '{{link}}', '{{admin_link}}', '{{item_name}}' );\n $to = array(\n Arr::get( $_SERVER, 'HTTP_HOST' ), $ip, date('d.m.Y H:i'),\n $text, $name, $email, $link, $link_admin, $item->name,\n );\n $subject = str_replace($from, $to, $mail->subject);\n $text = str_replace($from, $to, $mail->text);\n Email::send( $subject, $text );\n }\n\n // Send message to user if need\n $mail = DB::select()->from('mail_templates')->where('id', '=', 10)->where('status', '=', 1)->as_object()->execute()->current();\n if( $mail ) {\n $from = array( '{{site}}', '{{ip}}', '{{date}}', '{{question}}', '{{name}}', '{{email}}', '{{link}}', '{{admin_link}}', '{{item_name}}' );\n $to = array(\n Arr::get( $_SERVER, 'HTTP_HOST' ), $ip, date('d.m.Y H:i'),\n $text, $name, $email, $link, $link_admin, $item->name,\n );\n $subject = str_replace($from, $to, $mail->subject);\n $text = str_replace($from, $to, $mail->text);\n Email::send( $subject, $text, $email );\n }\n\n $this->success('Вы успешно задали вопрос! Администратор ответит Вам в ближайшее время');\n }", "title": "" }, { "docid": "d1b0c847d4f876bbb9026491c983d3bd", "score": "0.55160284", "text": "public function get_feedback_text() {\n return $this->feedbacktext;\n }", "title": "" }, { "docid": "062e5c90be1ee7734c014da8f625e118", "score": "0.55129874", "text": "public function get_point_training_question_form($id_question){\n $this->db->where('questionid',$id_question);\n return $this->db->get(db_prefix().'hr_position_training_question_form')->row();\n }", "title": "" }, { "docid": "6480024bfd2ace7e06e48bf9e8b1ff52", "score": "0.5511799", "text": "function _lineModAnswer($i) {\n\t\t$lang =& DoceboLanguage::createInstance('poll');\n\t\t\n\t\t$GLOBALS['page']->add('<tr class=\"line_answer\">'\n\t\t\t.'<td class=\"image\">', 'content');\n\t\tif(isset($_POST['answer_id'][$i])) {\n\t\t\t$GLOBALS['page']->add('<input type=\"hidden\" id=\"answer_id_'.$i.'\" name=\"answer_id['.$i.']\" value=\"'.$_POST['answer_id'][$i].'\" />', 'content');\n\t\t}\n\t\t$GLOBALS['page']->add(\n\t\t\t'<label class=\"access-only\" for=\"answer_'.$i.'\">'.$lang->def('_ANSWER').'</label>'\n\t\t\t.'<textarea class=\"poll_area_answer\" id=\"answer_'.$i.'\" name=\"answer['.$i.']\" cols=\"50\" rows=\"3\">'\n\t\t\t.( isset($_POST['answer'][$i]) ? stripslashes($_POST['answer'][$i]) : '')\n\t\t\t.'</textarea>'\n\t\t\t.'</td>'\n\t\t\t.'</tr>'.\"\\n\", 'content');\n\t}", "title": "" }, { "docid": "36a6f3dc9bedb8b6cada6284180c9451", "score": "0.5510196", "text": "public function getFeedback()\n {\n return $this->hasOne(Feedback::class, ['task_id' => 'id']);\n }", "title": "" }, { "docid": "243472f1dc9e04c7665baedf8f89de5a", "score": "0.54997677", "text": "function showQuestion($questionId, $onlyAnswers = false) {\n\n global $picturePath, $urlServer, $langSelect, $langNoAnswer, $langColumnA, $langColumnB, $langMakeCorrespond;\n\n // construction of the Question object\n $objQuestionTmp = new Question();\n // reads question information\n if (!$objQuestionTmp->read($questionId)) {\n // question not found\n return false;\n }\n $answerType = $objQuestionTmp->selectType();\n\n if (!$onlyAnswers) {\n $questionName = $objQuestionTmp->selectTitle();\n $questionDescription = $objQuestionTmp->selectDescription();\n echo \"<strong>\" . q_math($questionName) . \"</strong><br>\" .\n standard_text_escape($questionDescription);\n if (file_exists($picturePath . '/quiz-' . $questionId)) {\n echo \"<img src='$urlServer/$picturePath/quiz-$questionId' />\";\n }\n } // end if(!$onlyAnswers)\n // construction of the Answer object\n $objAnswerTmp = new Answer($questionId);\n $nbrAnswers = $objAnswerTmp->selectNbrAnswers();\n\n // only used for the answer type \"Matching\"\n if ($answerType == MATCHING) {\n $cpt1 = 'A';\n $cpt2 = 1;\n $select = array();\n echo \"<table class='table-default'>\n <tr class='even'>\n <th width='200'>$langColumnA</th>\n <th width='130'>$langMakeCorrespond</th>\n <th width='200'>$langColumnB</th>\n </tr>\n \";\n }\n\n for ($answerId = 1; $answerId <= $nbrAnswers; $answerId++) {\n $answer = $objAnswerTmp->selectAnswer($answerId);\n $answerCorrect = $objAnswerTmp->isCorrect($answerId);\n if (in_array($answerType, [UNIQUE_ANSWER, MULTIPLE_ANSWER, MATCHING, TRUE_FALSE])) {\n $answer = standard_text_escape($answer);\n } elseif ($answerType == FILL_IN_BLANKS or $answerType == FILL_IN_BLANKS_TOLERANT) {\n // splits text and weightings that are joined with the character '::'\n list($answer) = explode('::', $answer);\n // replaces [blank] by an input field\n $answer = preg_replace('/\\[[^]]+\\]/', '<input type=\"text\" name=\"choice[' . $questionId . '][]\" size=\"10\" />', standard_text_escape($answer));\n }\n\n if ($answerType == UNIQUE_ANSWER) { // unique answer\n echo \"\n <div class='radio'>\n <label>\n <input type='radio' name='choice[$questionId]' value='$answerId'>\n \" . $answer . \"\n </label>\n </div>\";\n\n } elseif ($answerType == MULTIPLE_ANSWER) { // multiple answers\n echo \"\n <div class='checkbox'>\n <label>\n <input type='checkbox' name='choice[$questionId][$answerId]' value='1'>\n \" . $answer . \"\n </label>\n </div>\";\n }\n // fill in blanks\n elseif ($answerType == FILL_IN_BLANKS || $answerType == FILL_IN_BLANKS_TOLERANT) {\n echo $answer;\n } elseif ($answerType == FILL_IN_FROM_PREDEFINED_ANSWERS) {\n $temp_string = unserialize($answer);\n $answer_string = $temp_string[0];\n // replaces [choices] with `select` field\n $replace_callback = function ($blank) use ($questionId, $langSelect) {\n static $id = 0;\n $id++;\n $selection_text = explode(\"|\", str_replace(array('[',']'), ' ', q($blank[0])));\n array_unshift($selection_text, \"--- $langSelect ---\");\n return selection($selection_text, \"choice[$questionId][$id]\", 0);\n };\n $answer_string = preg_replace_callback('/\\[[^]]+\\]/', $replace_callback, standard_text_escape($answer_string));\n echo $answer_string;\n } elseif ($answerType == MATCHING) { // matching\n if (!$answerCorrect) {\n // options (A, B, C, ...) that will be put into the list-box\n $select[$answerId]['Lettre'] = $cpt1++;\n // answers that will be shown on the right side\n $select[$answerId]['Reponse'] = $answer;\n } else {\n echo \"<tr class='even'>\n <td width='200'><b>$cpt2.</b> $answer</td>\n <td width='130'><div align='center'>\n <select name='choice[$questionId][$answerId]'>\n <option value='0'>--</option>\";\n\n // fills the list-box\n foreach ($select as $key => $val) {\n echo \"<option value=\\\"$key\\\">$val[Lettre]</option>\";\n }\n echo \"</select></td>\n <td width='200'>\";\n if (isset($select[$cpt2])) {\n echo '<b>' . $select[$cpt2]['Lettre'] . '.</b> ' . $select[$cpt2]['Reponse'];\n } else {\n echo '&nbsp;';\n }\n echo \"</td></tr>\";\n $cpt2++;\n // if the left side of the \"matching\" has been completely shown\n if ($answerId == $nbrAnswers) {\n // if it remains answers to shown on the right side\n while (isset($select[$cpt2])) {\n echo \"<tr class='even'>\n <td width='60%' colspan='2'>&nbsp;</td>\n <td width='40%' valign='top'>\" .\n \"<b>\" . $select[$cpt2]['Lettre'] . \".</b> \" .\n $select[$cpt2]['Reponse'] . \"</td>\n </tr>\";\n $cpt2++;\n } // end while()\n } // end if()\n }\n\n } elseif ($answerType == TRUE_FALSE) {\n echo \"<div class='radio'>\n <label>\n <input type='radio' name='choice[$questionId]' value='$answerId'>\n \" . $answer . \"\n </label>\n </div>\";\n }\n } // end for()\n if ($answerType == MATCHING) {\n echo \"</table>\";\n }\n\n if (!$nbrAnswers) {\n echo \"<tr><td colspan='2'><div class='alert alert-danger'>$langNoAnswer</div></td></tr>\";\n }\n // destruction of the Answer object\n unset($objAnswerTmp);\n // destruction of the Question object\n unset($objQuestionTmp);\n return $nbrAnswers;\n}", "title": "" }, { "docid": "3c4c27371bc53fe114da609097a0b8d5", "score": "0.54918057", "text": "function ddcl_fin_plate_form_page()\n{\n\tglobal $user;\n\t$data = '';\n\tif (!$user)\n\t{\n\t\t$data .= \"Please login to give feedback\";\n\t} //!$user\n\t/************* check if user has already submitted a proposal **************/\n\t$query = db_select('ddcl_fin_plate_form_step1_feedback');\n\t$query->fields('ddcl_fin_plate_form_step1_feedback');\n\t$query->condition('uid', $user->uid);\n\t$query->orderBy('id', 'DESC');\n\t$query->range(0, 1);\n\t$feedback_q = $query->execute();\n\tif ($feedback_q)\n\t{\n\t\tif ($feedback_data = $feedback_q->fetchObject())\n\t\t{\n\t\t\tif ($feedback_data->submitted == 1)\n\t\t\t{\n\t\t\t\t$data = drupal_set_message(t('You have already submitted the feedback.'), 'status');\n\t\t\t\t$data .= drupal_goto('');\n\t\t\t\treturn $data;\n\t\t\t} //$feedback_data->submitted == 1\n\t\t\telse\n\t\t\t{\n\t\t\t\t$ddcl_fin_plate_step1_form = drupal_get_form(\"ddcl_fin_plate_step1_form\");\n\t\t\t\t$data .= drupal_render($ddcl_fin_plate_step1_form);\n\t\t\t}\n\t\t} //$feedback_data = $feedback_q->fetchObject()\n\t\telse\n\t\t{\n\t\t\t$ddcl_fin_plate_step1_form = drupal_get_form(\"ddcl_fin_plate_step1_form\");\n\t\t\t$data .= drupal_render($ddcl_fin_plate_step1_form);\n\t\t}\n\t} //$feedback_q\n\t//$data .= drupal_get_form('ddcl_fin_plate_step1_form');\n\treturn $data;\n}", "title": "" }, { "docid": "daf8f7ced5ff13ebab2a4da6e15e0f60", "score": "0.5482167", "text": "public function feedback(question_attempt $qa, question_display_options $options) {\n\n $question = $qa->get_question();\n $currentanswer = $qa->get_last_qt_var('answer');\n if(!$currentanswer) {\n return '';\n }\n\n //////Colored string\n $hintmessage = '';\n //TODO - decide exact conditions to show colored string. $options->correctness seems too tight - in adaptive mode it isn't shown until all is graded\n //if ($options->correctness == question_display_options::VISIBLE) {\n if ($options->feedback == question_display_options::VISIBLE || $qa->get_last_step()->has_behaviour_var('_render_hintnextchar')) {//specific feedback is possible or hint is requested\n //Calculate strings for response coloring\n $parts = $question->response_correctness_parts(array('answer' => $currentanswer));\n if ($parts !== null) {\n\n $wronghead = '';\n if ($parts['wronghead'] !== '') {//if there is wrong heading\n $wronghead = html_writer::tag('span', htmlspecialchars($parts['wronghead']), array('class' => $this->feedback_class(0)));\n }\n\n $correctpart = '';\n if ($parts['correctpart'] != -1) {//there were any match\n $correctpart = html_writer::tag('span', htmlspecialchars($parts['correctpart']), array('class' => $this->feedback_class(1)));\n }\n\n $hintedcharacter = '';\n if ($qa->get_last_step()->has_behaviour_var('_render_hintnextchar') && $parts['hintedcharacter'] !== '') {//if hint requested and possible\n $hintedcharacter = html_writer::tag('span', htmlspecialchars($parts['hintedcharacter']), array('class' => $this->feedback_class(0.5)));\n }\n\n $wrongtail = '';\n if ($parts['wrongtail']) {//if there is wrong tail\n $wrongtail = html_writer::tag('span', htmlspecialchars($parts['wrongtail']), array('class' => $this->feedback_class(0)));\n }\n\n $hintmessage = $wronghead.$correctpart.$hintedcharacter.$wrongtail.html_writer::empty_tag('br');\n }\n }\n\n /*TODO - find out how to define classes in plugins and add separate class for hint message*/\n //$hintmessage = html_writer::tag('div', $hintmessage, array('class' => 'specificfeedback'));//TODO - this may not be needed as rendererbase.php provides div on it's own\n\n $output = parent::feedback($qa, $options);\n return $hintmessage.$output;\n }", "title": "" }, { "docid": "404adc8d80d098f34df7ca718f3991f5", "score": "0.5476116", "text": "public static function quizFields(){\n\t\treturn [ \n\t\t\t\"id\", \n\t\t\t\"user_id\", \n\t\t\t\"points\", \n\t\t\t\"date\", \n\t\t\t\"username\" \n\t\t];\n\t}", "title": "" }, { "docid": "547f5931ec4def8aeeb328c47656023b", "score": "0.5471942", "text": "public function get_numerical_question_form_data_pi() {\n $form = new stdClass();\n $form->name = 'Pi to two d.p.';\n $form->questiontext = array();\n $form->questiontext['format'] = '1';\n $form->questiontext['text'] = 'What is pi to two d.p.?';\n\n $form->defaultmark = 1;\n $form->generalfeedback = array();\n $form->generalfeedback['format'] = '1';\n $form->generalfeedback['text'] = 'Generalfeedback: 3.14 is the right answer.';\n\n $form->noanswers = 6;\n $form->answer = array();\n $form->answer[0] = '3.14';\n $form->answer[1] = '3.142';\n $form->answer[2] = '3.1';\n $form->answer[3] = '3';\n $form->answer[4] = '*';\n $form->answer[5] = '';\n\n $form->tolerance = array();\n $form->tolerance[0] = 0;\n $form->tolerance[1] = 0;\n $form->tolerance[2] = 0;\n $form->tolerance[3] = 0;\n $form->tolerance[4] = 0;\n $form->tolerance[5] = 0;\n\n $form->fraction = array();\n $form->fraction[0] = '1.0';\n $form->fraction[1] = '0.0';\n $form->fraction[2] = '0.0';\n $form->fraction[3] = '0.0';\n $form->fraction[4] = '0.0';\n $form->fraction[5] = '0.0';\n\n $form->feedback = array();\n $form->feedback[0] = array();\n $form->feedback[0]['format'] = '1';\n $form->feedback[0]['text'] = 'Very good.';\n\n $form->feedback[1] = array();\n $form->feedback[1]['format'] = '1';\n $form->feedback[1]['text'] = 'Too accurate.';\n\n $form->feedback[2] = array();\n $form->feedback[2]['format'] = '1';\n $form->feedback[2]['text'] = 'Not accurate enough.';\n\n $form->feedback[3] = array();\n $form->feedback[3]['format'] = '1';\n $form->feedback[3]['text'] = 'Not accurate enough.';\n\n $form->feedback[4] = array();\n $form->feedback[4]['format'] = '1';\n $form->feedback[4]['text'] = 'Completely wrong.';\n\n $form->feedback[5] = array();\n $form->feedback[5]['format'] = '1';\n $form->feedback[5]['text'] = '';\n\n $form->unitrole = '3';\n $form->unitpenalty = 0.1;\n $form->unitgradingtypes = '1';\n $form->unitsleft = '0';\n $form->nounits = 1;\n $form->multiplier = array();\n $form->multiplier[0] = '1.0';\n\n $form->penalty = '0.3333333';\n $form->numhints = 2;\n $form->hint = array();\n $form->hint[0] = array();\n $form->hint[0]['format'] = '1';\n $form->hint[0]['text'] = '';\n\n $form->hint[1] = array();\n $form->hint[1]['format'] = '1';\n $form->hint[1]['text'] = '';\n\n $form->qtype = 'numerical';\n return $form;\n }", "title": "" }, { "docid": "e11b5146f200ee51e06b70a610a08781", "score": "0.5450316", "text": "private function formatQuestion ($answer)\n {\n \t$formatted = '';\n \tswitch ($this->type)\n \t{\n \t\tcase 'radio': \t$formatted = $this->createFormRadio ($answer);\n \t\t\t\t\t\tbreak;\n \t\tcase 'checkbox':$formatted = $this->createFormCheckbox ($answer);\n \t\t\t\t\t\tbreak;\n \t\tcase 'number':\n \t\tcase 'text': \t\n \t\tcase 'TEXT':\t$formatted = $this->createFormText ($answer); // TEXT is text but case sensitive - same form formatting\n \t\t\t\t\t\tbreak;\n\t\t\tdefault:\t// unknown question - this is a warning level - don't break, but \n\t\t\t\t\t\t\t$err = Errors::getInstance();\n \t\t\t\t\t\t$err->errorEvent(WARNING_QUESTION, \"Warning, unknown question type for $this->questionid\");\n \t\t\t\t\t\tbreak;\n \t}\n \treturn $formatted;\n }", "title": "" }, { "docid": "273a862bb310fee48b7ae7b2589a6dca", "score": "0.5439712", "text": "public function insertFeedbackdetails($dataform)\n\t\t\t{\n\t\t\t\n\t\t\t\t$user_table = new Zend_Db_Table('dbt_feedback');\n\t\t\t\t$datainsert=\"\";\n\t\t\t\t$datainsert = array(\n\t\t\t\t\t\t\t'type'=> $dataform['type'],\n\t\t\t\t\t\t\t'name'=> $dataform['name'],\n\t\t\t\t\t\t\t'email'=> $dataform['email'],\n\t\t\t\t\t\t\t'mobile'=> $dataform['mobile'],\n\t\t\t\t\t\t\t'details'=> $dataform['details'],\n\t\t\t\t\t\t\t'status'=> 1\t \t\t\t\t\t\t\n\t\t\t\t\t\t\t);\n\t\t\t\t\t $insertdata=$user_table->insert($datainsert);\n\t\t\t\t\treturn $insertdata;\n\n\t\t }", "title": "" }, { "docid": "dacf873868b632533af47b4efaba3fa3", "score": "0.5438763", "text": "public function listTestCaseFeedback()\n {\n return [\n ['', 'duocnguyen@example.com', 'Good!', 'The full name field is required.'],\n ['Duoc Nguyen', '', 'Good!', 'The email field is required.'],\n ['Duoc Nguyen', 'duocnguyen@example.com', '', 'The content field is required.'],\n ['Duoc Nguyen', 'mail', 'Good!', 'The email must be a valid email address.\n']\n ];\n }", "title": "" }, { "docid": "8b985719b2ef120f46cb587abe887d25", "score": "0.54356194", "text": "public function feedback()\n {\n return $this->belongsTo('Martin\\Quality\\Feedback');\n }", "title": "" }, { "docid": "a740cadc614333132c43fae7071dc00c", "score": "0.5435596", "text": "public function feedback()\n {\n return $this->hasMany('App\\Feedback');\n }", "title": "" }, { "docid": "46b89d1ca8d1d4f80dad065df3e38c9f", "score": "0.5431722", "text": "public function edit(Feedback_Aslab $feedback_Aslab)\n {\n //\n }", "title": "" }, { "docid": "7ef3d057c65ed8b4d0397baddf7a7023", "score": "0.54302955", "text": "public function feedback()\n {\n return $this->belongsTo('App\\Feedback');\n }", "title": "" }, { "docid": "5125050de52d5229b51acad50c23c04b", "score": "0.54281837", "text": "function hook_quiz_feedback_options_alter(&$review_options) {\n // Change label.\n $review_options['quiz_feedback'] = t('General feedback from the Quiz.');\n\n // Disable showing correct answer.\n unset($review_options['solution']);\n}", "title": "" }, { "docid": "2a4b63eacab4cb5c4c0817ddb7dddf55", "score": "0.54217327", "text": "public static function get_feedback(ddtaquiz $quiz) {\n return new feedback($quiz);\n }", "title": "" }, { "docid": "2a4d94653f65bfc9da90a7f7b48fad1f", "score": "0.5421526", "text": "public function feedback() {\r\n if (isset($_POST)) {\r\n \r\n \t require_once(\"../model/classes.validation.php\");\r\n require_once(\"../model/classes.feedback.php\");\r\n $feedback = new feedback();\r\n $Validation = new validate();\r\n \r\n session_unset(\"msgErrors\");\r\n $_SESSION[\"msgErrors\"] = array();\r\n if($Validation->is_validName($_POST[\"name\"]) && $Validation->is_validEmail($_POST[\"email\"])){\r\n \r\n $feedback->setFeedback($_POST[\"message\"]);\r\n $feedback->setEmail($_POST[\"email\"]);\r\n $feedback->setName($_POST[\"name\"]);\r\n \r\n if (($feedback->AddFeedback())) {\r\n header(\"location:..\");\r\n }\r\n }\r\n else{\r\n header(\"location:..\");\r\n }\r\n }\r\n }", "title": "" }, { "docid": "d83cfd7f046fdbdffeb923fbf917eb0c", "score": "0.5419974", "text": "public function specific_feedback(question_attempt $qa) {\n global $DB;\n\n $output = '';\n\n // Decide if we should show grade explanation.\n if ($step = $qa->get_last_step()) {\n // We are only interested in (mangr|graded)(right|partial|wrong)\n // For a full list of states, see question/engine/states.php\n $show = preg_match('/(right|partial|wrong)$/', $step->get_state());\n } else {\n $show = false;\n }\n\n // If required, show explanation of grade calculation.\n if ($show) {\n\n $plugin = 'qtype_essayautograde';\n $question = $qa->get_question();\n\n // Get the current response text and information\n $currentresponse = $question->get_current_response();\n\n // Specify decision for decimal numbers.\n $options = $currentresponse->displayoptions;\n if ($options && isset($options->markdp)) {\n $precision = $options->markdp;\n } else {\n $precision = 0;\n }\n\n // cache the maximum grade for this question\n $maxgrade = $qa->get_max_mark(); // float number\n $maxgradetext = $qa->format_max_mark($precision);\n\n $gradeband = array_values($currentresponse->bands); // percents\n $gradeband = array_search($currentresponse->completepercent, $gradeband);\n $gradeband++;\n\n $itemtype = '';\n switch ($question->itemtype) {\n case $question->plugin_constant('ITEM_TYPE_CHARS'): $itemtype = get_string('chars', $plugin); break;\n case $question->plugin_constant('ITEM_TYPE_WORDS'): $itemtype = get_string('words', $plugin); break;\n case $question->plugin_constant('ITEM_TYPE_SENTENCES'): $itemtype = get_string('sentences', $plugin); break;\n case $question->plugin_constant('ITEM_TYPE_PARAGRAPHS'): $itemtype = get_string('paragraphs', $plugin); break;\n case $question->plugin_constant('ITEM_TYPE_FILES'): $itemtype = get_string('files', $plugin); break;\n }\n $itemtype = core_text::strtolower($itemtype);\n\n if (empty($options->context)) {\n // Shouldn't happen !!\n $showstudent = false;\n $showteacher = false;\n } else {\n if ($showteacher = has_capability('mod/quiz:grade', $options->context)) {\n $showstudent = false;\n } else {\n $showstudent = has_capability('mod/quiz:attempt', $options->context);\n }\n }\n\n $show = array(\n $this->plugin_constant('SHOW_NONE') => false,\n $this->plugin_constant('SHOW_STUDENTS_ONLY') => $showstudent,\n $this->plugin_constant('SHOW_TEACHERS_ONLY') => $showteacher,\n $this->plugin_constant('SHOW_TEACHERS_AND_STUDENTS') => ($showstudent || $showteacher),\n );\n\n if ($question->itemtype == $question->plugin_constant('ITEM_TYPE_FILES')) {\n $showgradebands = false;\n $showtargetphrases = false;\n $showtextstatitems = preg_match('/\\bfiles\\b/', $question->textstatitems);\n } else {\n $showgradebands = ($show[$question->showgradebands] && count($currentresponse->bands));\n $showtargetphrases = $show[$question->showtargetphrases] && count($currentresponse->phrases);\n $showtextstatitems = ($show[$question->showtextstats] && strlen(trim($question->textstatitems)));\n }\n\n if ($showtextstatitems) {\n $strman = get_string_manager();\n\n $table = new html_table();\n $table->attributes['class'] = 'generaltable essayautograde review stats';\n\n $names = explode(',', $question->textstatitems);\n $names = array_filter($names);\n foreach ($names as $name) {\n $label = get_string($name, $plugin);\n if ($strman->string_exists($name.'_help', $plugin)) {\n $label .= $this->help_icon($name, $plugin);\n }\n if (isset($currentresponse->stats->$name)) {\n $value = $currentresponse->stats->$name;\n } else {\n $value = '';\n }\n if (is_int($value)) {\n $value = number_format($value);\n }\n $cells = array(new html_table_cell($label),\n new html_table_cell($value));\n $table->data[] = new html_table_row($cells);\n }\n $output .= html_writer::tag('h5', get_string('textstatistics', $plugin));\n $output .= html_writer::table($table);\n }\n\n // show explanation of calculation, if required\n if ($show[$question->showcalculation]) {\n\n $details = array();\n\n // Partial grade bands.\n if ($currentresponse->completecount) {\n $a = (object)array('percent' => $currentresponse->completepercent,\n 'count' => $currentresponse->completecount,\n 'gradeband' => $gradeband,\n 'itemtype' => $itemtype);\n if ($showgradebands) {\n $name = 'explanationcompleteband';\n } else {\n $name = 'explanationfirstitems';\n }\n $details[] = $this->get_calculation_detail($name, $plugin, $a);\n }\n\n // Partial grade bands.\n if ($currentresponse->partialcount) {\n $a = (object)array('percent' => $currentresponse->partialpercent,\n 'count' => $currentresponse->partialcount,\n 'gradeband' => ($gradeband + 1),\n 'itemtype' => $itemtype);\n if ($showgradebands) {\n $name = 'explanationpartialband';\n } else if (count($details)) {\n $name = 'explanationremainingitems';\n } else if ($currentresponse->partialpercent) {\n $name = 'explanationitems';\n } else {\n $name = '';\n }\n if ($name) {\n $details[] = $this->get_calculation_detail($name, $plugin, $a);\n }\n }\n\n // Target phrases.\n foreach ($currentresponse->myphrases as $myphrase => $phrase) {\n $percent = $currentresponse->phrases[$phrase];\n $a = (object)array('percent' => $percent,\n 'phrase' => $myphrase);\n $details[] = $this->get_calculation_detail('explanationtargetphrase', $plugin, $a);\n }\n\n // Common errors.\n foreach ($currentresponse->errors as $error => $link) {\n $a = (object)array('percent' => $question->errorpercent,\n 'error' => $error);\n $details[] = $this->get_calculation_detail('explanationcommonerror', $plugin, $a, '- ');\n }\n\n // Files.\n if ($question->itemtype == $question->plugin_constant('ITEM_TYPE_FILES')) {\n $a = (object)array('percent' => $currentresponse->rawpercent,\n 'filecount' => $currentresponse->count,\n 'itemcount' => $question->itemcount);\n $details[] = get_string('explanationfiles', $plugin, $a);\n }\n\n // Plagiarism links, if any.\n foreach ($currentresponse->plagiarism as $plagiarism) {\n $details[] = html_writer::tag('p', $plagiarism);\n }\n\n if (empty($details) && $currentresponse->count) {\n $a = (object)array('count' => $currentresponse->count,\n 'itemtype' => $itemtype);\n $details[] = $this->get_calculation_detail('explanationnotenough', $plugin, $a);\n }\n\n if ($details = implode(html_writer::empty_tag('br'), $details)) {\n\n $step = $qa->get_last_step_with_behaviour_var('finish');\n if ($step->get_id()) {\n $rawgrade = format_float($step->get_fraction() * $maxgrade, $precision);\n } else {\n $rawgrade = $qa->format_mark($precision);\n }\n $rawpercent = $currentresponse->rawpercent;\n\n $autopercent = $currentresponse->autopercent;\n $autograde = $currentresponse->autofraction * $maxgrade;\n\n if ($trypenalty = $question->penalty) {\n // A \"try\" is actually a click of the \"Check\" button\n // in \"interactive\" mode with a less-than-perfect response.\n // A \"Check\" of a correct response does not count as a \"try\".\n $trycount = $qa->get_step(0)->get_behaviour_var('_triesleft');\n $trycount -= $qa->get_last_behaviour_var('_triesleft');\n $penalty = max(0, $trypenalty * $trycount);\n } else {\n $trypenalty = 0;\n $trycount = 0;\n $penalty = 0;\n }\n\n if ($penalty) {\n $penaltygrade = format_float($penalty * $maxgrade, $precision);\n $penaltypercent = ($penalty * 100);\n if (fmod($penaltypercent, 1)==0) {\n $penaltypercent = intval($penaltypercent);\n } else {\n $penaltypercent = format_float($penaltypercent, $precision);\n }\n $penaltytext = $penaltypercent.'%';\n if ($trycount > 1) {\n $trypenaltypercent = ($trypenalty * 100);\n if (fmod($trypenaltypercent, 1)==0) {\n $trypenaltypercent = intval($trypenaltypercent);\n } else {\n $trypenaltypercent = format_float($trypenaltypercent, $precision);\n }\n $penaltytext .= ' = ('.$trycount.' x '.$trypenaltypercent.'%)';\n }\n } else {\n $penaltytext = '';\n $penaltygrade = 0;\n $penaltypercent = 0;\n }\n\n $finalgrade = max(0.0, $autograde - $penaltygrade);\n $finalpercent = max(0, $autopercent - $penaltypercent);\n\n // numeric values used by explanation strings\n $a = (object)array('maxgrade' => $maxgradetext,\n 'rawpercent' => $rawpercent,\n 'autopercent' => $autopercent,\n 'penaltytext' => $penaltytext,\n 'finalgrade' => format_float($finalgrade, $precision),\n 'finalpercent' => $finalpercent,\n 'details' => $details);\n\n $output .= html_writer::tag('h5', get_string('gradecalculation', $plugin));\n $output .= html_writer::tag('p', get_string('explanationmaxgrade', $plugin, $a));\n $output .= html_writer::tag('p', get_string('explanationrawpercent', $plugin, $a));\n if ($rawpercent != $autopercent) {\n $output .= html_writer::tag('p', get_string('explanationautopercent', $plugin, $a));\n }\n if ($penalty) {\n $output .= html_writer::tag('p', get_string('explanationpenalty', $plugin, $a));\n }\n $output .= html_writer::tag('p', get_string('explanationgrade', $plugin, $a));\n\n // add details of most recent manual override, if any\n $step = $qa->get_last_step_with_behaviour_var('mark');\n if ($step->get_id()) {\n $a = (object)array(\n 'datetime' => userdate($step->get_timecreated(), get_string('explanationdatetime', $plugin)),\n 'manualgrade' => format_float($step->get_behaviour_var('mark'), $precision),\n );\n $output .= html_writer::tag('p', get_string('explanationoverride', $plugin, $a));\n\n // add manual override details\n $details = array();\n\n // add manual comment, if any\n $comment = $step->get_behaviour_var('comment');\n $commentformat = $step->get_behaviour_var('commentformat');\n $commentoptions = (object)array('noclean' => true, 'para' => false);\n if (is_null($comment)) {\n list($comment, $commentformat) = $qa->get_manual_comment();\n }\n if ($comment = format_text($comment, $commentformat, $commentoptions)) {\n $comment = shorten_text(html_to_text($comment), 80);\n $comment = html_writer::tag('i', $comment);\n $header = get_string('comment', 'quiz');\n $details[] = html_writer::tag('b', $header.': ').$comment;\n }\n\n // add manual grader (user who manually graded the essay) info, if available\n //if ($grader = $step->get_user_id()) {\n // if ($grader = $DB->get_record('user', array('id' => $grader))) {\n // $grader = fullname($grader);\n // $header = get_string('grader', 'gradereport_history');\n // $details[] = html_writer::tag('b', $header.': ').$grader;\n // }\n //}\n\n if (count($details)) {\n $output .= html_writer::alist($details);\n }\n }\n }\n }\n\n // Show grade bands, if required.\n if ($showgradebands) {\n $details = array();\n $i = 1; // grade band index\n foreach ($currentresponse->bands as $count => $percent) {\n $detail = get_string('gradeband', $plugin);\n $detail = str_replace('{no}', $i++, $detail);\n $details[] = html_writer::tag('dt', $detail);\n $detail = get_string('bandcount', $plugin).' '.$count.' '.\n get_string('bandpercent', $plugin).' '.\n get_string('percentofquestiongrade', $plugin, $percent);\n $details[] = html_writer::tag('dd', $detail);\n }\n $output .= html_writer::tag('h5', get_string('gradebands', $plugin));\n $output .= html_writer::tag('dl', implode('', $details), array('class' => 'gradebands'));\n }\n\n // Show target phrases, if required.\n if ($showtargetphrases) {\n $details = array();\n foreach ($currentresponse->phrases as $match => $percent) {\n $details[] = get_string('phrasematch', $plugin).' \"'.$match.'\" '.\n get_string('phrasepercent', $plugin).' '.\n get_string('percentofquestiongrade', $plugin, $percent);\n }\n $output .= html_writer::tag('h5', get_string('targetphrases', $plugin));\n $output .= html_writer::alist($details);\n }\n\n // Show actionable feedback, if required.\n if ($show[$question->showfeedback]) {\n $hints = array();\n\n $output .= html_writer::tag('h5', get_string('feedback', $plugin));\n $output .= html_writer::start_tag('table', array('class' => 'generaltable essayautograde review feedback'));\n\n // Overall grade\n $step = $qa->get_last_step_with_behaviour_var('finish');\n if ($step->get_id()) {\n $rawgrade = format_float($step->get_fraction() * $maxgrade, $precision);\n } else {\n $rawgrade = $qa->format_mark($precision);\n }\n $maxgrade = $qa->format_max_mark($precision);\n\n $output .= html_writer::start_tag('tr');\n $output .= html_writer::tag('th', get_string('gradeforthisquestion', $plugin), array('class' => 'cell c0'));\n $output .= html_writer::tag('td', html_writer::tag('b', $rawgrade.' / '.$maxgradetext), array('class' => 'cell c1'));\n $output .= html_writer::end_tag('tr');\n\n // Item count\n if ($maxcount = $question->itemcount) {\n $count = $currentresponse->count;\n switch ($question->itemtype) {\n case $question->plugin_constant('ITEM_TYPE_CHARS'):\n $type = 'chars';\n $hint = 'feedbackhintchars';\n break;\n case $question->plugin_constant('ITEM_TYPE_WORDS'):\n $type = 'words';\n $hint = 'feedbackhintwords';\n break;\n case $question->plugin_constant('ITEM_TYPE_SENTENCES'):\n $type = 'sentences';\n $hint = 'feedbackhintsentences';\n break;\n case $question->plugin_constant('ITEM_TYPE_PARAGRAPHS'):\n $type = 'paragraphs';\n $hint = 'feedbackhintparagraphs';\n break;\n case $question->plugin_constant('ITEM_TYPE_FILES'):\n $type = 'files';\n $hint = 'feedbackhintfiles';\n break;\n default:\n // shouldn't happen !!\n $type = $question->itemtype;\n $hint = '';\n }\n $output .= html_writer::start_tag('tr', array('class' => 'items'));\n $output .= html_writer::tag('th', get_string($type, $plugin), array('class' => 'cell c0'));\n $output .= html_writer::tag('td', $count.' / '.$maxcount, array('class' => 'cell c1'));\n $output .= html_writer::end_tag('tr');\n if ($count < $maxcount && $hint) {\n $hints[$type] = get_string($hint, $plugin);\n }\n }\n\n // Target phrases\n if ($showtargetphrases) {\n $maxcount = count($currentresponse->phrases);\n } else {\n $maxcount = 0;\n }\n if ($maxcount) {\n $count = count($currentresponse->myphrases);\n if ($count < $maxcount) {\n $hints['phrases'] = get_string('feedbackhintphrases', $plugin);\n }\n if ($currentresponse->breaks) {\n $hints['breaks'] = get_string('feedbackhintbreaks', $plugin);\n }\n $output .= html_writer::start_tag('tr', array('class' => 'phrases'));\n $output .= html_writer::tag('th', get_string('targetphrases', $plugin), array('class' => 'cell c0'));\n $output .= html_writer::tag('td', $count.' / '.$maxcount, array('class' => 'cell c1'));\n $output .= html_writer::end_tag('tr');\n $i = 0;\n foreach ($currentresponse->phrases as $phrase => $percent) {\n if (in_array($phrase, $currentresponse->myphrases)) {\n $status = 'present';\n $img = $this->feedback_image(100.00);\n } else {\n $status = 'missing';\n $img = $this->feedback_image(0.00);\n }\n $phrase = html_writer::alist(array($phrase), array('start' => (++$i)), 'ol');\n $status = html_writer::tag('span', $img.get_string($status, $plugin), array('class' => $status));\n $output .= html_writer::start_tag('tr', array('class' => 'phrase'));\n $output .= html_writer::tag('td', $phrase, array('class' => 'cell c0'));\n $output .= html_writer::tag('td', $status, array('class' => 'cell c1'));\n $output .= html_writer::end_tag('tr');\n }\n }\n\n // Errors\n if ($maxcount = count($currentresponse->errors)) {\n $hints['errors'] = get_string('feedbackhinterrors', $plugin);\n $output .= html_writer::start_tag('tr', array('class' => 'errors'));\n $output .= html_writer::tag('th', get_string('commonerrors', $plugin), array('class' => 'cell c0'));\n $output .= html_writer::tag('td', $maxcount, array('class' => 'cell c1'));\n $output .= html_writer::end_tag('tr');\n $i = 0;\n foreach ($currentresponse->errors as $error => $link) {\n $status = $this->feedback_image(0.00).get_string('commonerror', $plugin);\n $status = html_writer::tag('span', $status, array('class' => 'error'));\n if ($maxcount == 1) {\n $error = $link;\n } else if ($maxcount < 10) {\n $error = html_writer::alist(array($link));\n } else {\n $error = html_writer::alist(array($link), array('start' => (++$i)), 'ol');\n }\n $output .= html_writer::start_tag('tr', array('class' => 'commonerror'));\n $output .= html_writer::tag('td', $error, array('class' => 'cell c0'));\n $output .= html_writer::tag('td', $status, array('class' => 'cell c1'));\n $output .= html_writer::end_tag('tr');\n }\n }\n\n // Hints\n if (count($hints)) {\n $name = 'rewriteresubmit';\n $hint = array();\n foreach (array_keys($hints) as $type) {\n $hint[] = get_string($name.$type, $plugin);\n }\n if ($hint = implode(get_string($name.'join', $plugin), $hint)) {\n $hints[$name] = ucfirst($hint).get_string($name, $plugin);\n }\n $output .= html_writer::start_tag('tr');\n $output .= html_writer::tag('th', get_string('feedbackhints', $plugin), array('class' => 'cell c0'));\n $output .= html_writer::tag('td', html_writer::alist($hints), array('class' => 'cell c1'));\n $output .= html_writer::end_tag('tr');\n }\n\n $output .= html_writer::end_tag('table');\n }\n }\n\n if ($feedback = $this->combined_feedback($qa)) {\n $output .= html_writer::tag('h5', get_string('generalfeedback', 'question'));\n $output .= html_writer::tag('p', $feedback);\n }\n\n return $output;\n }", "title": "" }, { "docid": "cc7139699c8e51999d3cfb8d9b69f488", "score": "0.541626", "text": "public function getFeedbacks()\n {\n return $this->extract($this->fetch());\n }", "title": "" }, { "docid": "2f00b9c75cc054911dcd4153911e4113", "score": "0.54143554", "text": "protected function getAnswerDataFormControls($mform, $label, $gradeoptions, $ansIndex)\n {\n $result = array();\n //$result[] = $mform->createElement('hidden', 'answer', '');\n //$result[] = $mform->createElement('text', 'answer', 'Answer', array('size' => 20));\n\n /*\n $compareMethod = $this->ansCompareMethods[$ansIndex];\n if ($compareMethod == qtype_kekule_chem_compare_methods::DEF_METHOD)\n $compareMethod = $this->defCompareMethod;\n */\n //$htmlWidgetClassName = qtype_kekule_chem_html::CLASS_MOL_BLANK;\n /*\n $widgetInputType = qtype_kekule_chem_input_type::MOLECULE;\n if ($this->inputType == qtype_kekule_chem_input_type::DOCUMENT) // allow input document\n {\n //$htmlWidgetClassName = qtype_kekule_chem_html::CLASS_DOC_BLANK;\n $widgetInputType = qtype_kekule_chem_html::INPUT_TYPE_DOC;\n }\n */\n\n $result[] = $mform->createElement('textarea', 'answer', get_string('captionMolecule', 'qtype_kekule_chem_base'),\n 'class=\"' . qtype_kekule_chem_html::CLASS_DESIGN_ANSWER_BLANK . '\" data-widget-class=\"' . qtype_kekule_chem_html::CLASS_DESIGN_VIEWER_BLANK . '\"');\n //. ' data-input-type=\"' . $widgetInputType . '\"');\n /*\n $result[] = $mform->createElement('text', 'smiles',\n 'SMILES', array('size' => 20));\n */\n\n $result[] = $mform->createElement('select', 'comparelevel',\n get_string('captionCompareLevel', 'qtype_kekule_chem_base'),\n array(\n qtype_kekule_chem_compare_levels::DEF_LEVEL => get_string('molCompareLevelDefault', 'qtype_kekule_chem_base'),\n qtype_kekule_chem_compare_levels::CONSTITUTION => get_string('molCompareLevelConstitution', 'qtype_kekule_chem_base'),\n qtype_kekule_chem_compare_levels::CONFIGURATION => get_string('molCompareLevelConfiguration', 'qtype_kekule_chem_base')\n )\n );\n\n $result[] = $mform->createElement('select', 'comparemethod',\n get_string('captionCompareMethod', 'qtype_kekule_chem_base'),\n array(\n qtype_kekule_chem_compare_methods::DEF_METHOD => get_string('molCompareMethodDefault', 'qtype_kekule_chem_base'),\n qtype_kekule_chem_compare_methods::SMILES => get_string('molCompareMethodSmiles', 'qtype_kekule_chem_base'),\n //qtype_kekule_chem_compare_methods::MANUAL => get_string('molCompareMethodManual', 'qtype_kekule_chem_base')\n //qtype_kekule_chem_compare_methods::MOLDATA => get_string('molCompareMethodMolData', 'qtype_kekule_chem_base'),\n qtype_kekule_chem_compare_methods::PARENTOF => get_string('molCompareMethodParentOf', 'qtype_kekule_chem_base'),\n qtype_kekule_chem_compare_methods::CHILDOF => get_string('molCompareMethodChildOf', 'qtype_kekule_chem_base')\n )\n );\n /*\n $result[] = $mform->createElement('select', 'inputtype',\n get_string('captionMolInputType', 'qtype_kekule_chem'),\n array(\n qtype_kekule_chem_compare_methods::SMILES => get_string('molInputTypeMol', 'qtype_kekule_chem'),\n qtype_kekule_chem_compare_methods::MANUAL => get_string('molInputTypeDoc', 'qtype_kekule_chem')\n )\n );\n */\n\n return $result;\n }", "title": "" }, { "docid": "0967fcdb08e2fd519ee07daf48cf7247", "score": "0.54105204", "text": "public function afterSave()\n\t{\n\t\t// fields\n\t\tif( is_array( $_POST['additional_questions'] ) )\n\t\t{\n\t\t\t$questions = $_POST[ 'additional_questions' ];\n\t\t\tforeach( $questions as $questionID => $answer )\n\t\t\t{\n\t\t\t\t// let's see if we have this answer already\n\t\t\t\t$contact_answer = ContactAnswer::model()->find( 'questionID=' . $questionID . ' AND contactID=' . $this->primaryKey );\n\t\t\t\t// if so, we only update ...\n\t\t\t\tif( $contact_answer )\n\t\t\t\t{\n\t\t\t\t\t$contact_answer->answer = $answer;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$contact_answer = new ContactAnswer();\n\t\t\t\t\t$contact_answer->setAttributes( \n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'domainID' \t\t=> Yii::app()->controller->domain->id,\n\t\t\t\t\t\t\t'contactID' \t=> $this->primaryKey,\n\t\t\t\t\t\t\t'questionID' \t=> $questionID,\n\t\t\t\t\t\t\t'answer' \t\t=> strip_tags( $answer ),\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\t$contact_answer->save();\n\t\t\t}\n\t\t}\n\n\t\treturn parent::afterSave();\n\t}", "title": "" }, { "docid": "fecb4656779c5d98bef7c677d41bbeb2", "score": "0.53880423", "text": "function getQuestionsFormate()//retourne les questions sous format : nom_topic - Titre_Question,je vais l'utiliser en Ajouter_Feature\n{\n $db = (new Database())->getDB();\n try {\n $stmt = $db->query(\"Select ID_QUESTION,Concat(name,' - ',Title) as Nom_Formate from questions q join topics t on q.TOPIC_ID=t.ID_TOPIC WHERE q.ID_QUESTION NOT IN (SELECT F.ID_QUESTION FROM FEATURES F)\");\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\n } catch (PDOException $e){\n return False;\n }\n}", "title": "" }, { "docid": "42fc783beb9d525fd8a1326b23c615bf", "score": "0.53873324", "text": "public function feedback(){\n if($this->token == $_GET['token']){\n $w['token'] = $this->token;\n $w['userid'] = $_GET['userid'];\n $w['kgid'] = $_GET['id'];\n $this->assign('w',$w);\n $count = M('Kgfeedback')->where($w)->count();\n\t\t\t$page=new Page($count,10);\n\t\t\t$info = M('Kgfeedback')->where($w)->limit($page->firstRow.','.$page->listRows)->select();\n\t\t\t$a = count($info);\n\t\t\tfor($i=0;$i<$a;$i++){\n\t\t\t $info[$i]['addtime'] = date('Y-m-s H:i:s',$info[$i]['addtime']);\n\t\t\t}\n\t\t\t$this->assign('info',$info);\n\t\t\t$this->assign('page',$page->show());\n } \n $this->display();\n }", "title": "" }, { "docid": "f9dd21b6dd21f54e5d20b643f108a857", "score": "0.53859156", "text": "protected function _prepareForm()\n {\n $question = $this->_coreRegistry->registry('question_data');\n $product = $this->_productFactory->create()->load($question->getProductId());\n\n /** @var \\Magento\\Framework\\Data\\Form $form */\n $form = $this->_formFactory->create(\n [\n 'data' => [\n 'id' => 'edit_form',\n 'action' => $this->getUrl(\n 'question/*/save',\n [\n 'id' => $this->getRequest()->getParam('id'),\n 'ret' => $this->_coreRegistry->registry('ret')\n ]\n ),\n 'method' => 'post',\n ],\n ]\n );\n\n $fieldset = $form->addFieldset(\n 'question_details',\n ['legend' => __('Question Details'), 'class' => 'fieldset-wide']\n );\n\n\n $fieldset->addField(\n 'product_name',\n 'note',\n [\n 'label' => __('Product'),\n 'text' => '<a href=\"' . $this->getUrl(\n 'catalog/product/edit',\n ['id' => $product->getId()]\n ) . '\" onclick=\"this.target=\\'blank\\'\">' . $this->escapeHtml(\n $product->getName()\n ) . '</a>'\n ]\n );\n\n try {\n $customer = $this->customerRepository->getById($question->getCustomerId());\n $customerText = __(\n '<a href=\"%1\" onclick=\"this.target=\\'blank\\'\">%2 %3</a> <a href=\"mailto:%4\">(%4)</a>',\n $this->getUrl('customer/index/edit', ['id' => $customer->getId(), 'active_tab' => 'question']),\n $this->escapeHtml($customer->getFirstname()),\n $this->escapeHtml($customer->getLastname()),\n $this->escapeHtml($customer->getEmail())\n );\n } catch (\\Magento\\Framework\\Exception\\NoSuchEntityException $e) {\n $customerText = ($question->getStoreId() == \\Magento\\Store\\Model\\Store::DEFAULT_STORE_ID)\n ? __('Administrator') : __('Guest');\n }\n\n $fieldset->addField('customer', 'note', ['label' => __('Author'), 'text' => $customerText]);\n\n\n $fieldset->addField(\n 'status_id',\n 'select',\n [\n 'label' => __('Status'),\n 'required' => true,\n 'name' => 'status_id',\n 'values' => $this->_questionData->getQuestionStatusesOptionArray()\n ]\n );\n\n /**\n * Check is single store mode\n */\n\n $fieldset->addField(\n 'select_stores',\n 'hidden',\n ['name' => 'stores[]', 'value' => $this->_storeManager->getStore(true)->getId()]\n );\n $question->setSelectStores($this->_storeManager->getStore(true)->getId());\n\n\n $fieldset->addField(\n 'question_content',\n 'textarea',\n ['label' => __('Question'), 'required' => true, 'name' => 'question_content', 'style' => 'height:10em;']\n );\n\n $fieldset->addField(\n 'answer_content',\n 'editor',\n [\n 'title' => __('Answer'),\n 'label' => __('Answer'),\n 'name' => 'answer_content',\n 'style' => 'height:24em;',\n 'config' => $this->_wysiwygConfig->getConfig()\n ]\n );\n\n $fieldset->addField(\n 'priority',\n 'text',\n ['label' => __('Priority'), 'required' => false, 'name' => 'priority']\n );\n\n $form->setUseContainer(true);\n $form->setValues($question->getData());\n $this->setForm($form);\n return parent::_prepareForm();\n }", "title": "" }, { "docid": "e3439aec142ff95450da1eee24ff1ff2", "score": "0.53835255", "text": "public function editQuestion() \n\t{\n\t\tinclude_once(\"./Services/Form/classes/class.ilPropertyFormGUI.php\");\n\t\t$form = new ilPropertyFormGUI();\n\t\t$form->setFormAction($this->ctrl->getFormAction($this));\n\t\t$form->setTitle($this->lng->txt($this->getQuestionType()));\n\t\t$form->setMultipart(FALSE);\n\t\t$form->setTableWidth(\"100%\");\n\t\t$form->setId(\"essay\");\n\n\t\t// title\n\t\t$title = new ilTextInputGUI($this->lng->txt(\"title\"), \"title\");\n\t\t$title->setValue($this->object->getTitle());\n\t\t$title->setRequired(TRUE);\n\t\t$form->addItem($title);\n\t\t\n\t\t// label\n\t\t$label = new ilTextInputGUI($this->lng->txt(\"label\"), \"label\");\n\t\t$label->setValue($this->object->label);\n\t\t$label->setInfo($this->lng->txt(\"label_info\"));\n\t\t$label->setRequired(false);\n\t\t$form->addItem($label);\n\n\t\t// author\n\t\t$author = new ilTextInputGUI($this->lng->txt(\"author\"), \"author\");\n\t\t$author->setValue($this->object->getAuthor());\n\t\t$author->setRequired(TRUE);\n\t\t$form->addItem($author);\n\t\t\n\t\t// description\n\t\t$description = new ilTextInputGUI($this->lng->txt(\"description\"), \"description\");\n\t\t$description->setValue($this->object->getDescription());\n\t\t$description->setRequired(FALSE);\n\t\t$form->addItem($description);\n\t\t\n\t\t// questiontext\n\t\t$question = new ilTextAreaInputGUI($this->lng->txt(\"question\"), \"question\");\n\t\t$question->setValue($this->object->prepareTextareaOutput($this->object->getQuestiontext()));\n\t\t$question->setRequired(TRUE);\n\t\t$question->setRows(10);\n\t\t$question->setCols(80);\n\t\t$question->setUseRte(TRUE);\n\t\tinclude_once \"./Services/AdvancedEditing/classes/class.ilObjAdvancedEditing.php\";\n\t\t$question->setRteTags(ilObjAdvancedEditing::_getUsedHTMLTags(\"survey\"));\n\t\t$question->addPlugin(\"latex\");\n\t\t$question->addButton(\"latex\");\n\t\t$question->addButton(\"pastelatex\");\n\t\t$question->setRTESupport($this->object->getId(), \"spl\", \"survey\", null, false, \"3.4.7\");\n\t\t$form->addItem($question);\n\t\t\n\t\t// maximum number of characters\n\t\t$maxchars = new ilNumberInputGUI($this->lng->txt(\"maxchars\"), \"maxchars\");\n\t\t$maxchars->setRequired(false);\n\t\t$maxchars->setSize(5);\n\t\tif ($this->object->getMaxChars() > 0)\n\t\t{\n\t\t\t$maxchars->setValue($this->object->getMaxChars());\n\t\t}\n\t\t$maxchars->setDecimals(0);\n\t\t$form->addItem($maxchars);\n\t\t\n\t\t// textwidth\n\t\t$textwidth = new ilNumberInputGUI($this->lng->txt(\"width\"), \"textwidth\");\n\t\t$textwidth->setRequired(true);\n\t\t$textwidth->setSize(3);\n\t\t$textwidth->setValue($this->object->getTextWidth());\n\t\t$textwidth->setDecimals(0);\n\t\t$textwidth->setMinValue(10);\n\t\t$form->addItem($textwidth);\n\t\t\n\t\t// textheight\n\t\t$textheight = new ilNumberInputGUI($this->lng->txt(\"height\"), \"textheight\");\n\t\t$textheight->setRequired(true);\n\t\t$textheight->setSize(3);\n\t\t$textheight->setValue($this->object->getTextHeight());\n\t\t$textheight->setDecimals(0);\n\t\t$textheight->setMinValue(1);\n\t\t$form->addItem($textheight);\n\t\t\n\t\t// obligatory\n\t\t$shuffle = new ilCheckboxInputGUI($this->lng->txt(\"obligatory\"), \"obligatory\");\n\t\t$shuffle->setValue(1);\n\t\t$shuffle->setChecked($this->object->getObligatory());\n\t\t$shuffle->setRequired(FALSE);\n\t\t$form->addItem($shuffle);\n\n\t\t$this->addCommandButtons($form);\n\t\t\n\t\t$errors = false;\n\t\n\t\tif ($this->isSaveCommand())\n\t\t{\n\t\t\t$form->setValuesByPost();\n\t\t\t$errors = !$form->checkInput();\n\t\t\t$form->setValuesByPost(); // again, because checkInput now performs the whole stripSlashes handling and we need this if we don't want to have duplication of backslashes\n\t\t\tif ($errors) $checkonly = false;\n\t\t}\n\n\t\tif (!$checkonly) $this->tpl->setVariable(\"ADM_CONTENT\", $form->getHTML());\n\t\treturn $errors;\n\t}", "title": "" }, { "docid": "bf77cc066afe08ddb3fae532d3c5779d", "score": "0.5369397", "text": "public function edit(Feedback $feedback)\n {\n //\n }", "title": "" }, { "docid": "bf77cc066afe08ddb3fae532d3c5779d", "score": "0.5369397", "text": "public function edit(Feedback $feedback)\n {\n //\n }", "title": "" }, { "docid": "bf77cc066afe08ddb3fae532d3c5779d", "score": "0.5369397", "text": "public function edit(Feedback $feedback)\n {\n //\n }", "title": "" }, { "docid": "c846ddad25767ad6c2b4d29cf250c647", "score": "0.5358664", "text": "public function actionGivefeedback()\n {\n if(isset($_POST['userid']) && $_POST['userid'] != null\n && isset($_POST['encrypted_data']) && $_POST['encrypted_data'] != null\n && isset($_POST['fuel_station_id']) && $_POST['fuel_station_id'] != null\n && isset($_POST['subject']) && $_POST['subject'] != null\n && isset($_POST['comment']) && $_POST['comment'] != null)\n {\n $check_user = Yii::$app->mycomponent->validate_user($_POST['userid'],$_POST['encrypted_data']);\n \n $feedback = new Feedback();\n $feedback->user_id = $_POST['userid'];\n $feedback->feeling_station_id = $_POST['fuel_station_id'];\n $feedback->subject = $_POST['subject'];\n $feedback->comment = $_POST['comment'];\n $feedback->i_by = $_POST['userid'];\n $feedback->i_date = time();\n $feedback->u_by = $_POST['userid'];\n $feedback->u_date = time();\n $feedback->save(false);\n \n $result['message'] = Yii::t('app',Yii::$app->params['feedback_submited']);\n return $result;\n }\n else\n {\n $result['message'] = Yii::t('app',Yii::$app->params['response_text'][400]);\n Yii::$app->getResponse()->setStatusCode(400);\n return $result;\n }\n }", "title": "" }, { "docid": "803a226b69cc3daf95ba9267eebbdd8b", "score": "0.53427666", "text": "function hook_quiz_feedback_times_alter(&$feedback_times) {\n // Change label.\n $feedback_times['end'] = t('At the end of a quiz');\n\n // Do not allow question feedback.\n unset($feedback_times['question']);\n}", "title": "" }, { "docid": "45213a6b67ec7344c46c0b0a4c9c8f3d", "score": "0.5342199", "text": "function getSurveyFeedback($user_id,$survey_set_no)\n\t\t{\n\t\t\t//checking for user submitted the feedback or not\n\t\t\t$user_feed = $this->manage_content->getValueMultipleCondtn(\"survey_feedback\",\"*\",array(\"user_id\",\"set_no\"),array($user_id,$survey_set_no));\n\t\t\tif(empty($user_feed[0]))\n\t\t\t{\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8d9e3c5b7bd85ba1591cc14dd4572b3d", "score": "0.53282213", "text": "public function edit(IdeaFeedback $ideaFeedback)\n {\n //\n }", "title": "" }, { "docid": "35850adf5489582758aa94b0c0543665", "score": "0.5325948", "text": "public function handleGenerateFeedback()\n {\n $data = new FeedbackFormData();\n $user = null;\n\n $data->applicants = $this->dbApplicants->listApplicants();\n $data->allRoles = $this->dbRoles->listRoles();\n $data->allTemplates = $this->dbTemplates->listTemplates();\n\n if ($_SERVER[\"REQUEST_METHOD\"] == \"POST\") {\n $data->applicantId = getPostParameter('applicantId');\n // if an applicantId has been POSTed, find the applicant\n if ($data->applicantId) {\n $data->applicant = $this->dbApplicants->getApplicant($data->applicantId);\n $data->applicantRoles = $this->dbApplicantsRoles->getRoleIdsForApplicant($data->applicantId)->getResult();\n }\n $data->roleId = getPostParameter('roleId');\n // if a roleId has been POSTed, find the role\n if ($data->roleId) {\n $data->role = $this->dbRoles->getRole($data->roleId);\n }\n $data->templateId = getPostParameter('templateId');\n $data->contents = getPostParameter('contents');\n // if a templateId has been POSTed, find the template\n if ($data->templateId) {\n // the template is needed to generate contents and to hide the select\n $data->template = $this->dbTemplates->getTemplate($data->templateId);\n // we need the comments to make the checkboxes and the preview\n $data->comments = $data->template[\"comments\"];\n // if no contents posted, generate a first version of the template\n if (!$data->contents) {\n $username = $_SESSION['username'];\n $user = $this->dbUsers->getUserByUsername($username);\n $data->contents = $data->template[\"contents\"];\n $data->contents = str_replace(\"{{applicant_name}}\", $data->applicant[\"name\"], $data->contents);\n $data->contents = str_replace(\"{{applicant_email}}\", $data->applicant[\"email\"], $data->contents);\n $date = new DateTime();\n $data->contents = str_replace(\"{{date}}\", $date->format('d/m/y'), $data->contents);\n $data->contents = str_replace(\"{{position_title}}\", $data->role[\"title\"], $data->contents);\n $data->contents = str_replace(\"{{interviewer_name}}\", $user[\"name_surname\"], $data->contents);\n $data->contents = str_replace(\"{{interviewer_email}}\", $user[\"username\"], $data->contents);\n }\n }\n if (isset($_POST[\"selectedComments\"])) {\n $data->selectedComments = $_POST[\"selectedComments\"];\n }\n if (isset($_POST['preview'])) {\n $data->preview = true;\n }\n }\n\n return $data;\n }", "title": "" }, { "docid": "dcaa8d9c6e1478f9aee7a07307812723", "score": "0.53117126", "text": "function ddcl_seated_angle_form_page()\n{\n\tglobal $user;\n\t$data = '';\n\tif (!$user)\n\t{\n\t\t$data .= \"Please login to give feedback\";\n\t} //!$user\n\t/************* check if user has already submitted a proposal **************/\n\t$query = db_select('ddcl_seated_angle_form_step1_feedback');\n\t$query->fields('ddcl_seated_angle_form_step1_feedback');\n\t$query->condition('uid', $user->uid);\n\t$query->orderBy('id', 'DESC');\n\t$query->range(0, 1);\n\t$feedback_q = $query->execute();\n\tif ($feedback_q)\n\t{\n\t\tif ($feedback_data = $feedback_q->fetchObject())\n\t\t{\n\t\t\tif ($feedback_data->submitted == 1)\n\t\t\t{\n\t\t\t\t$data = drupal_set_message(t('You have already submitted the feedback.'), 'status');\n\t\t\t\t$data .= drupal_goto('');\n\t\t\t\treturn $data;\n\t\t\t} //$feedback_data->submitted == 1\n\t\t\telse\n\t\t\t{\n\t\t\t\t$ddcl_seated_angle_step1_form = drupal_get_form(\"ddcl_seated_angle_step1_form\");\n\t\t\t\t$data .= drupal_render($ddcl_seated_angle_step1_form);\n\t\t\t}\n\t\t} //$feedback_data = $feedback_q->fetchObject()\n\t\telse\n\t\t{\n\t\t\t$ddcl_seated_angle_step1_form = drupal_get_form(\"ddcl_seated_angle_step1_form\");\n\t\t\t$data .= drupal_render($ddcl_seated_angle_step1_form);\n\t\t}\n\t} //$feedback_q\n\t//$data .= drupal_get_form('ddcl_seated_angle_step1_form');\n\treturn $data;\n}", "title": "" }, { "docid": "83c1199a818e0d32e8414fd5b1339a8a", "score": "0.53070647", "text": "function process_ma($xml, &$questions) {\n\n if (isset($xml[\"POOL\"][\"#\"][\"QUESTION_MULTIPLEANSWER\"])) {\n $maquestions = $xml[\"POOL\"][\"#\"][\"QUESTION_MULTIPLEANSWER\"];\n }\n else {\n return;\n }\n\n for ($i = 0; $i < sizeof ($maquestions); $i++) {\n\n $question = $this->defaultquestion();\n\n $question->qtype = MULTICHOICE;\n $question->defaultgrade = 1;\n $question->single = 0; // More than one answers allowed\n $question->image = \"\"; // No images with this format\n\n $thisquestion = $maquestions[$i];\n\n // determine if the question is already escaped html\n $ishtml = $thisquestion[\"#\"][\"BODY\"][0][\"#\"][\"FLAGS\"][0][\"#\"][\"ISHTML\"][0][\"@\"][\"value\"];\n\n // put questiontext in question object\n if ($ishtml) {\n $question->questiontext = html_entity_decode_php4(trim($thisquestion[\"#\"][\"BODY\"][0][\"#\"][\"TEXT\"][0][\"#\"]));\n }\n $question->questiontext = addslashes($question->questiontext);\n // put name of question in question object\n $question->name = substr($question->questiontext, 0, 254);\n\n $choices = $thisquestion[\"#\"][\"ANSWER\"];\n $correctanswers = $thisquestion[\"#\"][\"GRADABLE\"][0][\"#\"][\"CORRECTANSWER\"];\n\n for ($j = 0; $j < sizeof ($choices); $j++) {\n\n $choice = trim($choices[$j][\"#\"][\"TEXT\"][0][\"#\"]);\n // put this choice in the question object.\n $question->answer[$j] = addslashes($choice);\n\n $correctanswercount = sizeof($correctanswers);\n $id = $choices[$j][\"@\"][\"id\"];\n $iscorrect = 0;\n for ($k = 0; $k < $correctanswercount; $k++) {\n\n $correct_answer_id = trim($correctanswers[$k][\"@\"][\"answer_id\"]);\n if (strcmp ($id, $correct_answer_id) == 0) {\n $iscorrect = 1;\n }\n\n }\n if ($iscorrect) { \n $question->fraction[$j] = floor(100000/$correctanswercount)/100000; // strange behavior if we have more than 5 decimal places\n $question->feedback[$j] = addslashes(trim($thisquestion[\"#\"][\"GRADABLE\"][$j][\"#\"][\"FEEDBACK_WHEN_CORRECT\"][0][\"#\"]));\n } else {\n $question->fraction[$j] = 0;\n $question->feedback[$j] = addslashes(trim($thisquestion[\"#\"][\"GRADABLE\"][$j][\"#\"][\"FEEDBACK_WHEN_INCORRECT\"][0][\"#\"]));\n }\n }\n\n $questions[] = $question;\n }\n}", "title": "" }, { "docid": "a8cac05b3cdfe5b68cf15d58552d2b9b", "score": "0.5304094", "text": "function getQuestionsFormate2()//retourne les questions sous format : nom_topic - Titre_Question,je vais l'utiliser en Ajouter_Feature\n{\n $db = (new Database())->getDB();\n try {\n $stmt = $db->query(\"Select ID_QUESTION,Concat(name,' - ',Title) as Nom_Formate from questions q join topics t on q.TOPIC_ID=t.ID_TOPIC WHERE q.ID_QUESTION\");\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\n } catch (PDOException $e){\n return False;\n }\n}", "title": "" }, { "docid": "ea3f468529f7c236e7ba8830c0ab4caf", "score": "0.53000396", "text": "public function getQuestionInfo(){ \n $data1 = self::$currentQuestion;\n # get answers in testi questions\n $data1['type'] = $data1['exercise_type'];\n if($data1['exercise_type'] == UNIQUE_ANSWER){\n $data1['answers'] = unserialize(base64_decode($data1['question_options']));\n }\n\n return self::$currentQuestionInfo = $data1;\n }", "title": "" }, { "docid": "b88dc2826655e6fde636bd9c9c4288fa", "score": "0.5297868", "text": "function ddcl_seated_angle_step14_form($form, &$form_state, $no_js_use = FALSE)\n{\n\tglobal $base_url;\n\tglobal $user;\n\t// All the real form fields.\n\t$form = array();\n\t$form['step14_field1_fieldset'] = array(\n\t\t'#type' => 'fieldset',\n\t\t'#title' => '<strong>Any other recommendations/ Comments?</strong>',\n\t\t'#tree' => TRUE,\n\t\t'#prefix' => '<div id=\"step14-field1-fieldset-wrapper\">',\n\t\t'#suffix' => '</div>'\n\t);\n\t$query = db_select('ddcl_seated_angle_form_step14_feedback');\n\t$query->fields('ddcl_seated_angle_form_step14_feedback');\n\t$query->condition('uid', $user->uid);\n\t$form_step14_data = $query->execute();\n\tif ($form_step14_data)\n\t{\n\t\tif ($step14_data = $form_step14_data->fetchObject())\n\t\t{\n\t\t\t$form['step14_field1_fieldset']['step14_field1_question1'] = array(\n\t\t\t\t'#type' => 'hidden',\n\t\t\t\t'#default_value' => 'other recommendations/ Comments',\n\t\t\t\t'#required' => TRUE\n\t\t\t);\n\t\t\t$earlier_comments = _fetch_exsiting_ddcl_seated_angle_comments($step14_data->id, $step14_data->data_relation);\n\t\t\t$icom = 1;\n\t\t\t$form['step14_field1_fieldset']['exsiting_comments_title'] = array(\n\t\t\t\t'#markup' => '<hr><strong>Earlier comment</strong><hr><br>'\n\t\t\t);\n\t\t\tforeach ($earlier_comments as $rowcomment)\n\t\t\t{\n\t\t\t\t$form['step14_field1_fieldset']['exsiting_comments' . $icom] = array(\n\t\t\t\t\t'#markup' => $rowcomment\n\t\t\t\t);\n\t\t\t\t$icom++;\n\t\t\t} //$earlier_comments as $rowcomment\n\t\t\tif (empty($form_state['step14_num_comment']))\n\t\t\t{\n\t\t\t\t$form_state['step14_num_comment'] = 1;\n\t\t\t} //empty($form_state['step14_num_comment'])\n\t\t\t$step14_temp1 = 0;\n\t\t\tfor ($step14_i = 0; $step14_i < $form_state['step14_num_comment']; $step14_i++)\n\t\t\t{\n\t\t\t\t$step14_temp1 = $step14_i;\n\t\t\t\t$form['step14_field1_fieldset'][$step14_i][\"comment\"] = array(\n\t\t\t\t\t\"#type\" => \"textarea\",\n\t\t\t\t\t\"#title\" => \"Comment \" . ($step14_temp1 + 1),\n\t\t\t\t\t\"#default_value\" => \"\"\n\t\t\t\t);\n\t\t\t} //$i = 0; $i < $form_state['step1_num_comment']; $i++\n\t\t\t$form['step14_field1_fieldset'][\"step14_comment_count\"] = array(\n\t\t\t\t\"#type\" => \"hidden\",\n\t\t\t\t\"#value\" => $step14_temp1\n\t\t\t);\n\t\t\t$form['step14_field1_fieldset']['add_comment'] = array(\n\t\t\t\t'#type' => 'submit',\n\t\t\t\t'#value' => t('Add more comment'),\n\t\t\t\t'#limit_validation_errors' => array(),\n\t\t\t\t'#submit' => array(\n\t\t\t\t\t'step14_comment_add_more_add_one'\n\t\t\t\t),\n\t\t\t\t'#ajax' => array(\n\t\t\t\t\t'callback' => 'step14_comment_add_more_callback',\n\t\t\t\t\t'wrapper' => 'step14-field1-fieldset-wrapper'\n\t\t\t\t)\n\t\t\t);\n\t\t\tif ($form_state['step14_num_comment'] > 1)\n\t\t\t{\n\t\t\t\t$form['step14_field1_fieldset']['remove_comment'] = array(\n\t\t\t\t\t'#type' => 'submit',\n\t\t\t\t\t'#value' => t('Remove comment'),\n\t\t\t\t\t'#limit_validation_errors' => array(),\n\t\t\t\t\t'#submit' => array(\n\t\t\t\t\t\t'step14_comment_add_more_remove_one'\n\t\t\t\t\t),\n\t\t\t\t\t'#ajax' => array(\n\t\t\t\t\t\t'callback' => 'step14_comment_add_more_callback',\n\t\t\t\t\t\t'wrapper' => 'step14-field1-fieldset-wrapper'\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t} //$form_state['step1_num_comment'] > 1\n\t\t\tif ($no_js_use)\n\t\t\t{\n\t\t\t\tif (!empty($form['step14_field1_fieldset']['remove_comment']['#ajax']))\n\t\t\t\t{\n\t\t\t\t\tunset($form['step14_field1_fieldset']['remove_comment']['#ajax']);\n\t\t\t\t} //!empty($form['step14_field1_fieldset']['remove_comment']['#ajax'])\n\t\t\t\tunset($form['step14_field1_fieldset']['add_comment']['#ajax']);\n\t\t\t} //$no_js_use\n\t\t\t$form['previous2'] = array(\n\t\t\t\t'#type' => 'submit',\n\t\t\t\t'#value' => 'Previous',\n\t\t\t\t'#submit' => array(\n\t\t\t\t\t'ddcl_seated_angle_step14_form_previous_submit'\n\t\t\t\t)\n\t\t\t);\n\t\t\t$form['next2'] = array(\n\t\t\t\t'#type' => 'submit',\n\t\t\t\t'#value' => 'Submit',\n\t\t\t\t'#attributes' => array(\n\t\t\t\t\t\"onclick\" => \"return confirm('Are you sure?')\"\n\t\t\t\t),\n\t\t\t\t'#submit' => array(\n\t\t\t\t\t'ddcl_seated_angle_step14_form_next_submit'\n\t\t\t\t)\n\t\t\t);\n\t\t\t$form['save_submit'] = array(\n\t\t\t\t'#type' => 'submit',\n\t\t\t\t'#value' => 'Save as draft',\n\t\t\t\t'#attributes' => array(\n\t\t\t\t\t\"onclick\" => \"return confirm('Are you sure?')\"\n\t\t\t\t),\n\t\t\t\t'#submit' => array(\n\t\t\t\t\t'ddcl_seated_angle_step14_form_save_submit'\n\t\t\t\t)\n\t\t\t);\n\t\t} //$step14_data = $form_step14_data->fetchObject()\n\t\telse\n\t\t{\n\t\t\t$form['step14_field1_fieldset']['step14_field1_question1'] = array(\n\t\t\t\t'#type' => 'hidden',\n\t\t\t\t'#default_value' => 'other recommendations/ Comments',\n\t\t\t\t'#required' => TRUE\n\t\t\t);\n\t\t\t$earlier_comments = _fetch_exsiting_ddcl_seated_angle_comments($step14_data->id, $step14_data->data_relation);\n\t\t\t$icom = 1;\n\t\t\t$form['step14_field1_fieldset']['exsiting_comments_title'] = array(\n\t\t\t\t'#markup' => '<hr><strong>Earlier comment</strong><hr><br>'\n\t\t\t);\n\t\t\tforeach ($earlier_comments as $rowcomment)\n\t\t\t{\n\t\t\t\t$form['step14_field1_fieldset']['exsiting_comments' . $icom] = array(\n\t\t\t\t\t'#markup' => $rowcomment\n\t\t\t\t);\n\t\t\t\t$icom++;\n\t\t\t} //$earlier_comments as $rowcomment\n\t\t\tif (empty($form_state['step14_num_comment']))\n\t\t\t{\n\t\t\t\t$form_state['step14_num_comment'] = 1;\n\t\t\t} //empty($form_state['step14_num_comment'])\n\t\t\t$step14_temp1 = 0;\n\t\t\tfor ($step14_i = 0; $step14_i < $form_state['step14_num_comment']; $step14_i++)\n\t\t\t{\n\t\t\t\t$step14_temp1 = $step14_i;\n\t\t\t\t$form['step14_field1_fieldset'][$step14_i][\"comment\"] = array(\n\t\t\t\t\t\"#type\" => \"textarea\",\n\t\t\t\t\t\"#title\" => \"Comment \" . ($step14_temp1 + 1),\n\t\t\t\t\t\"#default_value\" => \"\"\n\t\t\t\t);\n\t\t\t} //$i = 0; $i < $form_state['step1_num_comment']; $i++\n\t\t\t$form['step14_field1_fieldset'][\"step14_comment_count\"] = array(\n\t\t\t\t\"#type\" => \"hidden\",\n\t\t\t\t\"#value\" => $step14_temp1\n\t\t\t);\n\t\t\t$form['step14_field1_fieldset']['add_comment'] = array(\n\t\t\t\t'#type' => 'submit',\n\t\t\t\t'#value' => t('Add more comment'),\n\t\t\t\t'#limit_validation_errors' => array(),\n\t\t\t\t'#submit' => array(\n\t\t\t\t\t'step14_comment_add_more_add_one'\n\t\t\t\t),\n\t\t\t\t'#ajax' => array(\n\t\t\t\t\t'callback' => 'step14_comment_add_more_callback',\n\t\t\t\t\t'wrapper' => 'step14-field1-fieldset-wrapper'\n\t\t\t\t)\n\t\t\t);\n\t\t\tif ($form_state['step14_num_comment'] > 1)\n\t\t\t{\n\t\t\t\t$form['step14_field1_fieldset']['remove_comment'] = array(\n\t\t\t\t\t'#type' => 'submit',\n\t\t\t\t\t'#value' => t('Remove comment'),\n\t\t\t\t\t'#limit_validation_errors' => array(),\n\t\t\t\t\t'#submit' => array(\n\t\t\t\t\t\t'step14_comment_add_more_remove_one'\n\t\t\t\t\t),\n\t\t\t\t\t'#ajax' => array(\n\t\t\t\t\t\t'callback' => 'step14_comment_add_more_callback',\n\t\t\t\t\t\t'wrapper' => 'step14-field1-fieldset-wrapper'\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t} //$form_state['step1_num_comment'] > 1\n\t\t\tif ($no_js_use)\n\t\t\t{\n\t\t\t\tif (!empty($form['step14_field1_fieldset']['remove_comment']['#ajax']))\n\t\t\t\t{\n\t\t\t\t\tunset($form['step14_field1_fieldset']['remove_comment']['#ajax']);\n\t\t\t\t} //!empty($form['step14_field1_fieldset']['remove_comment']['#ajax'])\n\t\t\t\tunset($form['step14_field1_fieldset']['add_comment']['#ajax']);\n\t\t\t} //$no_js_use\n\t\t\t$form['previous1'] = array(\n\t\t\t\t'#type' => 'submit',\n\t\t\t\t'#value' => 'Previous',\n\t\t\t\t'#submit' => array(\n\t\t\t\t\t'ddcl_seated_angle_step14_form_previous_submit'\n\t\t\t\t)\n\t\t\t);\n\t\t\t$form['next2'] = array(\n\t\t\t\t'#type' => 'submit',\n\t\t\t\t'#value' => 'Submit',\n\t\t\t\t'#attributes' => array(\n\t\t\t\t\t\"onclick\" => \"return confirm('Are you sure?')\"\n\t\t\t\t),\n\t\t\t\t'#submit' => array(\n\t\t\t\t\t'ddcl_osdag_response_step14_form_previous_submit'\n\t\t\t\t)\n\t\t\t);\n\t\t\t$form['save_submit'] = array(\n\t\t\t\t'#type' => 'submit',\n\t\t\t\t'#value' => 'Save as draft',\n\t\t\t\t'#attributes' => array(\n\t\t\t\t\t\"onclick\" => \"return confirm('Are you sure?')\"\n\t\t\t\t),\n\t\t\t\t'#submit' => array(\n\t\t\t\t\t'ddcl_seated_angle_step14_form_save_submit'\n\t\t\t\t)\n\t\t\t);\n\t\t} //$step14_data = $form_step14_data->fetchObject()\n\t} //$form_step14_data\n\treturn $form;\n}", "title": "" }, { "docid": "95285477dbadd6aeeaeb6d29adad1757", "score": "0.5293442", "text": "public function getTxtQuestion(): ?string {\n return $this->txtQuestion;\n }", "title": "" }, { "docid": "9bfd9b9c32af6be4dcabb05ad876030d", "score": "0.52874595", "text": "public function section_text_fields(){\n if($this->options['form_id']){\n echo '<p>For each of the Mailchimp fields select the form field to use.</p>';\n echo '<p>The mapped fields will be sent to Mailchimp.</p>';\n echo '<p>You must map all fields that are marked as required by Mailchimp.<br>If required fields are not mapped the user will not be subscribed.</p>';\n }else{\n echo '<p>Select a form above before mapping fields.</p>';\n }\n }", "title": "" }, { "docid": "edee412003b8d7787a5ccd6e325d63fc", "score": "0.52737546", "text": "function _lineAnswer($i) {\n\t\t$lang =& DoceboLanguage::createInstance('poll');\n\t\t\n\t\t$GLOBALS['page']->add('<tr class=\"line_answer\">'\n\t\t\t.'<td class=\"image\">'\n\t\t\t//answer\n\t\t\t.'<label class=\"access-only\" for=\"answer_'.$i.'\">'.$lang->def('_ANSWER').'</label>'\n\t\t\t.'<textarea class=\"poll_area_answer\" id=\"answer_'.$i.'\" name=\"answer['.$i.']\" cols=\"50\" rows=\"3\">'\n\t\t\t.( isset($_POST['answer'][$i]) ? stripslashes($_POST['answer'][$i]) : $lang->def('_QUEST_ANSWER'))\n\t\t\t.'</textarea>'\n\t\t\t.'</td>'\n\t\t\t.'</tr>'.\"\\n\", 'content');\n\t}", "title": "" }, { "docid": "58b29bb102fabe15ead06ffc8f5815d1", "score": "0.52715874", "text": "function GetFeedback()\r\n\t{\r\n\t if($this->session->userdata('browserLanguage')=='ar')\r\n\t {\r\n\t\t$sql=\"SELECT * FROM ar_feedback\";\r\n\t\treturn $query = $this->db->query($sql)->result_array();\r\n\t }\r\n\t else\r\n\t {\r\n\t\t$sql=\"SELECT * FROM feedback\";\r\n\t\treturn $query = $this->db->query($sql)->result_array();\r\n\t }\r\n\t}", "title": "" }, { "docid": "1b46716d30d9a4d6fb200bde7e0ac67e", "score": "0.52663076", "text": "public function index()\n {\n return view('feedback.form', ['data' => FormQuestion::orderBy('question_order','asc')->get()]);\n }", "title": "" }, { "docid": "2e81e21d32acbc4cc0e6e109ace4baad", "score": "0.5265917", "text": "public function getFeedback($sectionID, $questionID) {\n // returns the user's answer for a given question (int) or false if \n // the user has not answered the quesiton. \n if (key_exists($sectionID, $this->sectionFeedback)) {\n if (key_exists($questionID, $this->sectionFeedback[$sectionID])) {\n return $this->sectionFeedback[$sectionID][$questionID];\n }\n }\n return false;\n }", "title": "" }, { "docid": "f96bae549cff87cfd959cb599c4b380a", "score": "0.5260999", "text": "public function add_free_answer()\n\t{\n\t\tif (isset($_POST['cancel'])){\n\t\t\tredirect('question');\n\t\t}\n\t\tif (!isset($_POST['id'])){\n\t\t\tif (isset($_POST['save'])){\n\t\t\t\t$_SESSION['filtres'] = \"Question?module=&topic=&type=\";\n\t\t\t\t$this->form_validation->set_rules('name', $this->lang->line('question_text'), 'required');\n\t\t\t\t$this->form_validation->set_rules('points', $this->lang->line('points'), 'required|numeric|is_natural');\n\t\t\t\t$this->form_validation->set_rules('answer', $this->lang->line('answer_question_add'), 'required');\n\n\t\t\t\tif ($this->form_validation->run()){\n\t\t\t\t\t$inputQuestion = array(\n\t\t\t\t\t\t\"FK_Topic\" => $_POST['focus_topic'],\n\t\t\t\t\t\t\"FK_Question_Type\" => $_POST['question_type'],\n\t\t\t\t\t\t\"Question\" => $_POST['name'],\n\t\t\t\t\t\t\"Points\" => $_POST['points']\n\t\t\t\t\t);\n\t\t\t\t\t$idQuestion = $this->question_model->insert($inputQuestion);\n\n\t\t\t\t\t$inputAnswer = array(\n\t\t\t\t\t\t\"FK_Question\" => $idQuestion,\n\t\t\t\t\t\t\"Answer\" => $_POST['answer']\n\t\t\t\t\t);\n\t\t\t\t\t$this->free_answer_model->insert($inputAnswer);\n\n\t\t\t\t\tredirect('question');\n\t\t\t\t} else {\n\t\t\t\t\t$output['topics'] = $this->topic_model->get_tree();\n\t\t\t\t\t$output['focus_topic'] = $this->topic_model->get($_POST['focus_topic']);\n\t\t\t\t\t$output['question_type'] = $this->question_type_model->get($_POST['question_type']);\n\t\t\t\t\tif(isset($_POST['name'])){\n\t\t\t\t\t\t$output['name'] = $_POST['name'];\n\t\t\t\t\t}\n\t\t\t\t\tif(isset($_POST['points'])){\n\t\t\t\t\t\t$output['points'] = $_POST['points'];\n\t\t\t\t\t}\n\t\t\t\t\tif(isset($_POST['answer'])){\n\t\t\t\t\t\t$output['answer'] = $_POST['answer'];\n\t\t\t\t\t}\n\t\t\t\t\t$output['title'] = $this->lang->line('title_question_add');\n\t\t\t\t\t$this->display_view('free_answers/add', $output);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tif (isset($_POST['save'])){\n\t\t\t\t$_SESSION['filtres'] = \"Question?module=&topic=&type=\";\n\t\t\t\t$this->form_validation->set_rules('name', $this->lang->line('question_text'), 'required');\n\t\t\t\t$this->form_validation->set_rules('points', $this->lang->line('points'), 'required|numeric|is_natural');\n\t\t\t\t$this->form_validation->set_rules('answer', $this->lang->line('answer_question_add'), 'required');\n\t\t\t\t$this->form_validation->set_rules(\n\t\t\t\t\t'id', 'Id', 'callback_cb_question_exists',\n\t\t\t\t\t['callback_cb_question_exists' => 'lang:question_error_404_heading']\n\t\t\t\t);\n\n\t\t\t\tif ($this->form_validation->run()){\n\t\t\t\t\t$id = $this->input->post('id');\n\n\t\t\t\t\t$inputQuestion = array(\n\t\t\t\t\t\t\"FK_Topic\" => $_POST['focus_topic'],\n\t\t\t\t\t\t\"FK_Question_Type\" => $_POST['question_type'],\n\t\t\t\t\t\t\"Question\" => $_POST['name'],\n\t\t\t\t\t\t\"Points\" => $_POST['points']\n\t\t\t\t\t);\n\t\t\t\t\t$this->question_model->update($id, $inputQuestion);\n\n\t\t\t\t\t$inputAnswer = array(\n\t\t\t\t\t\t\"FK_Question\" => $id,\n\t\t\t\t\t\t\"Answer\" => $_POST['answer']\n\t\t\t\t\t);\n\t\t\t\t\t$this->free_answer_model->update($_POST['id_answer'], $inputAnswer);\n\n\t\t\t\t\tredirect('question');\n\t\t\t\t} else {\n\t\t\t\t\t$output['id'] = $_POST['id'];\n\t\t\t\t\t$output['id_answer'] = $_POST['id_answer'];\n\t\t\t\t\t$output['topics'] = $this->topic_model->get_tree();\n\t\t\t\t\t$output['focus_topic'] = $this->topic_model->get($_POST['focus_topic']);\n\t\t\t\t\t$output['question_type'] = $this->question_type_model->get($_POST['question_type']);\n\t\t\t\t\tif(isset($_POST['name'])){\n\t\t\t\t\t\t$output['name'] = $_POST['name'];\n\t\t\t\t\t}\n\t\t\t\t\tif(isset($_POST['points'])){\n\t\t\t\t\t\t$output['points'] = $_POST['points'];\n\t\t\t\t\t}\n\t\t\t\t\tif(isset($_POST['answer'])){\n\t\t\t\t\t\t$output['answer'] = $_POST['answer'];\n\t\t\t\t\t}\n\t\t\t\t\t$output['title'] = $this->lang->line('title_question_add');\n\t\t\t\t\t$this->display_view('free_answers/add', $output);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3cbaad0ecf8b336949d925ab7b926b9a", "score": "0.52605885", "text": "private function createFormText ($answer)\n {\n \t$form_string = \"<input type=\\\"hidden\\\" name=\\\"type\\\" value=\\\"text\\\">\\n\";\n \t$labels = explode (',', $this->input);\n \t// use autocomplete option instead of random string used in earlier version\n \t// this is html 5 only (but works in earlier versions even though incorrect)\n \t// pre-text\n \t$form_string .= \"<label>\";\n \t$form_string .= $labels[0];\n \t$form_string .= \"<input type=\\\"text\\\" name=\\\"answer\\\" autocomplete=\\\"off\\\" value=\\\"\";\n \t// if not answered show default, otherwise show current\n \tif ($answer != -1) {$form_string.= $answer;}\n \telse {$form_string .= $labels[1];}\n \t$form_string .= \"\\\" /></label>\";\n \t// post-text\n \t$form_string .= $labels[2];\n \treturn ($form_string);\n }", "title": "" }, { "docid": "db2d9d30a99976c63f7e56fbf18fd444", "score": "0.5255065", "text": "function editQuestion($nameID)\n\t{\n\t\tglobal $DB,$frmdata;\n\t\t$err='';\n\t\t//echo \"fd\"; exit;\n\t\t$question_id=$nameID;\n\t\t$_SESSION['correct_ans']=$frmdata['correct_ans'];\n\t\t$question = $DB->SelectRecord('question', \"id=$nameID\");\n\t\t$quest_opt_exist=$DB->selectRecords('answer','question_id='.$question_id);\n\t\t\n\t\t//echo '<pre>';print_r($frmdata);exit;\n\t\t\n\t\tif ($frmdata['question_title']=='')\n\t\t{\n\t\t\t$err.=\"Please enter question.<br>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$question_info = $DB->SelectRecord('question', \"question_title='\".htmlentities(addslashes($frmdata['question_title'])).\"' and id!=$nameID\");\n\t\t\tif($question_info)\n\t\t\t{\n\t\t\t\t$err.=\"This question is already exist.<br>\";\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($frmdata['question_level']=='')\n\t\t{\n\t\t\t $err.=\"Please select level.<br>\";\n\t\t}\n\t\tif($frmdata['subject_id']=='')\n\t\t{\n\t\t\t $err.=\"Please select subject.<br>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$candidate_question_history = $DB->SelectRecords('candidate_question_history','question_id='.$nameID, '*', 'group by test_id');\n\t\t\tif($candidate_question_history)\n\t\t\t{\n\t\t\t\t$question_info = $DB->SelectRecord('question','id='.$nameID);\n\t\t\t\n\t\t\t\tif($question_info->subject_id!=$frmdata['subject_id'])\n\t\t\t\t{\n\t\t\t\t\t$count = count($candidate_question_history);\n\t\t\t\t\tif($count==1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$err.= \"You can't change subject because \".$count.\" test is conducted with this question.\";\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$err.= \"You can't change subject because \".$count.\" tests are conducted with this question.\";\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t\n\t\tif ($frmdata['question_type']=='')\n\t\t{\n\t\t\t $err.=\"Please select question type.<br>\";\n\t\t}\n\t\telse \n\t\t{\n\t\t\tif($frmdata['question_type'] == \"I\")\n\t\t\t{\n\t\t\t\t$no_of_images = (isset($frmdata['no_of_images']) && ($frmdata['no_of_images'] >= 3)) ? $frmdata['no_of_images'] : 3;\n\t\t\t\t$no_of_options = (isset($frmdata['no_of_options']) && ($frmdata['no_of_options'] >= 4)) ? $frmdata['no_of_options'] : 4;\n\t\t\t\t$question_mark = isset($frmdata['question_mark']) ? $frmdata['question_mark'] : 0;\n\t\t\t\t\n\t\t\t\t$_SESSION['no_of_images'] = $no_of_images;\n\t\t\t\t$_SESSION['no_of_options'] = $no_of_options;\n\t\t\t\t$_SESSION['question_mark'] = $question_mark;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor($counter=1;$counter<=$no_of_images;$counter++)\n\t\t\t\t{\n\t\t\t\t\tif(isset($_SESSION['fileObject_image_'.$counter]))\n\t\t\t\t\t{\n\t\t\t\t\t\t$_FILES['image_'.$counter]=$_SESSION['fileObject_image_'.$counter];\n\t\t\t\t\t\t$_SESSION['image_'.$counter] = $_SESSION['fileObject_image_'.$counter]['final_path'];\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif($counter <= 3 && ($counter != $question_mark))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(($_FILES['image_'.$counter]['name']=='') && ($_SESSION['pre_image_'.$counter] == ''))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$err.=\"Please upload atleast first three question images.<br>\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif($_FILES['image_'.$counter]['tmp_name']!='' && ($counter != $question_mark))\n\t\t\t\t\t{\n\t\t\t\t\t\tif($_FILES['image_'.$counter]['type']!='image/jpeg' && $_FILES['image_'.$counter]['type']!='image/jpg' && $_FILES['image_'.$counter]['type']!='image/gif' && $_FILES['image_'.$counter]['type']!='image/png' && $_FILES['image_'.$counter]['type']!='image/pjpeg' && $_FILES['image_'.$counter]['type']!='image/x-png')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$err.=\"Please upload question image $counter in correct format.<br>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($_FILES['image_'.$counter]['size']>2000000)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$err.=\"Please upload question image $counter not more than 2MB.<br>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor($counter=1;$counter<=$no_of_options;$counter++)\n\t\t\t\t{\n\t\t\t\t\tif(isset($_SESSION['fileObject_option_'.$counter]))\n\t\t\t\t\t{\n\t\t\t\t\t\t$_FILES['option_'.$counter]=$_SESSION['fileObject_option_'.$counter];\n\t\t\t\t\t\t$_SESSION['option_'.$counter] = $_SESSION['fileObject_option_'.$counter]['final_path'];\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif($counter <= 4)\n\t\t\t\t\t{\n\t\t\t\t\t\tif($_FILES['option_'.$counter]['name']=='' && ($_SESSION['initial_answer_'.$counter] == ''))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$err.=\"Please upload atleast first four option images.<br>\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\tif($_FILES['option_'.$counter]['tmp_name']!='')\n\t\t\t\t\t{\n\t\t\t\t\t\tif($_FILES['option_'.$counter]['type']!='image/jpeg' && $_FILES['option_'.$counter]['type']!='image/jpg' && $_FILES['option_'.$counter]['type']!='image/gif' && $_FILES['option_'.$counter]['type']!='image/png' && $_FILES['option_'.$counter]['type']!='image/pjpeg' && $_FILES['option_'.$counter]['type']!='image/x-png')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$err.=\"Please upload option image $counter in correct format.<br>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($_FILES['option_'.$counter]['size']>2000000)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$err.=\"Please upload option image $counter not more than 2MB.<br>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if ($frmdata['question_type'] == \"S\")\n\t\t\t{\n\t\t\t\t//do nothing;\n\t\t\t}\n\t\t\telseif($frmdata['question_type'] == \"MT\")\n\t\t\t{\n\t\t\t\t$min_cols = 2;\n\t\t\t\t$left_vals = array();\n\t\t\t\t$right_vals = array();\n\t\t\t\t\n\t\t\t\t$no_of_cols = $frmdata['no_of_cols'];\n\t\t\t\t\n\t\t\t\tif($no_of_cols < $min_cols)\n\t\t\t\t{\n\t\t\t\t\t$err .= \"Please add atleast $min_cols match coloumns.<br>\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$left_cols = 0;\n\t\t\t\t\t$suberr = '';\n\t\t\t\t\tfor($counter = 1; $counter <= $no_of_cols; $counter++)\n\t\t\t\t\t{\n\t\t\t\t\t\t$frmdata['left_col_'. $counter] = trim($frmdata['left_col_'. $counter]);\n\t\t\t\t\t\t$frmdata['right_col_'. $counter] = trim($frmdata['right_col_'. $counter]);\t\n\t\t\t\t\t\n\t\t\t\t\t\t$_SESSION['left_col_'. $counter] = $frmdata['left_col_'. $counter];\n\t\t\t\t\t\t$_SESSION['right_col_'. $counter] = $frmdata['right_col_'. $counter];\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($frmdata['right_col_'. $counter])\n\t\t\t\t\t\t$right_vals[] = strtolower($frmdata['right_col_'. $counter]);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($frmdata['left_col_'. $counter] != '')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$left_cols++;\n\t\t\t\t\t\t\t$left_vals[] = strtolower($frmdata['left_col_'. $counter]);\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\tif($frmdata['right_col_'. $counter] == '')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$suberr .= 'Please enter match value in coloumn no. ' . $counter . '<br>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif($left_cols < $min_cols)\n\t\t\t\t\t{\n\t\t\t\t\t\t$suberr = \"Please fill entries for atleast $min_cols match coloumns.<br>\";\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$unique_err = '';\n\t\t\t\t\t\tif( count($left_vals) != count(array_unique($left_vals)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$unique_err .= 'Please enter unique values in left coloumn.<br>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif( count($right_vals) != count(array_unique($right_vals)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$unique_err .= 'Please enter unique values in right coloumn.<br>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($unique_err) $suberr = $unique_err;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t$err .= ($suberr != '') ? $suberr : '';\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif(isset($frmdata['option_3']))\n\t\t\t{\n\t\t\t\t$unique_options = array();\n\t\t\t\tfor($counter=1;$counter<=4;$counter++)\n\t\t\t\t{\n\t\t\t\t\t$_SESSION['option_'.$counter]=$frmdata['option_'.$counter];//used to show form value again, if validation fail\n\t\t\t\t\tif($frmdata['option_'.$counter]=='')\n\t\t\t\t\t{\n\t\t\t\t\t\t$err.=\"Please enter all options.<br>\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t$unique_options[] = $frmdata['option_'.$counter];\n\t\t\t\t}\n\t\t\t\tif(count($unique_options) != count(array_unique($unique_options)))\n\t\t\t\t{\n\t\t\t\t\t$err .= \"Please enter unique options.<br>\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\t$unique_options = array();\n\t\t\t\tfor($counter=1;$counter<=2;$counter++)\n\t\t\t\t{\n\t\t\t\t\tif($frmdata['option_'.$counter]=='')\n\t\t\t\t\t{\n\t\t\t\t\t\t$err.=\"Please enter all options.<br>\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t$unique_options[] = $frmdata['option_'.$counter];\n\t\t\t\t}\n\t\t\t\tif(count($unique_options) != count(array_unique($unique_options)))\n\t\t\t\t{\n\t\t\t\t\t$err .= \"Please enter unique options.<br>\";\n\t\t\t\t}\n\t\n\t\t\t}\n\t\t\t\n\t\t\tif (($frmdata['question_type'] != \"S\") && ($frmdata['question_type'] != \"MT\"))\n\t\t\t{\n\t\t\t\tif ($frmdata['correct_ans']=='')\n\t\t\t\t{\n\t\t\t\t\t$err.=\"Please select answer.<br>\";\n\t\t\t\t}\n\t\t\t\telseif ($frmdata['question_type'] == 'I')\n\t\t\t\t{\n\t\t\t\t\tforeach($frmdata['correct_ans'] as $counter)\n\t\t\t\t\t{\n\t\t\t\t\t\tif($_FILES['option_'.$counter]['tmp_name']=='' && !isset($_SESSION['initial_answer_'.$counter]))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$err.=\"Please select a valid answer.<br>\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$frmdata['correct_ans']='';\n\t\t\t}\n\t\t}\n\n\t\tif ($frmdata['marks']=='')\n\t\t{\n\t\t\t $err.=\"Please enter marks.<br>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$candidate_question_history = $DB->SelectRecords('candidate_question_history','question_id='.$nameID, '*', 'group by test_id');\n\t\t\tif($candidate_question_history)\n\t\t\t{\n\t\t\t\t$question_info = $DB->SelectRecord('question','id='.$nameID);\n\t\t\t\n\t\t\t\tif($question_info->marks!=$frmdata['marks'])\n\t\t\t\t{\n\t\t\t\t\t$count = count($candidate_question_history);\n\t\t\t\t\tif($count==1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$err.= \"You can't change marks of this question because \".$count.\" test is conducted with this question.\";\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$err.= \"You can't change marks of this question because \".$count.\" tests are conducted with this question.\";\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t$frmdata['min_time_to_solve'] = $frmdata['minimum_min']*60+$frmdata['minimum_sec'];\n\t\t$frmdata['max_time_to_solve'] = $frmdata['maximum_min']*60+$frmdata['maximum_sec'];\n\t\t\n\t\tif($frmdata['max_time_to_solve'] < $frmdata['min_time_to_solve'])\n\t\t{\n\t\t\t$err .= \"Minimum solving time must be less than maximum solving time.<br>\";\n\t\t}\n\t\t\n\t\tif($_FILES['image']['name'] != '')\n\t\t{\n\t\t\tif ( !(($_FILES['image']['type'] == 'image/jpeg')\n\t\t\t\t|| ($_FILES['image']['type'] == 'image/jpg')\n\t\t\t\t|| ($_FILES['image']['type'] == 'image/gif')\n\t\t\t\t|| ($_FILES['image']['type'] == 'image/png')\n\t\t\t\t|| ($_FILES['image']['type'] == 'image/pjpeg')\n\t\t\t\t|| ($_FILES['image']['type'] == 'image/x-png')))\n\t\t\t\t\n\t\t\t{\n\t\t\t\t$err .= \"Please upload hint image in correct format.<br>\";\n\t\t\t}\n\t\t\t\n\t\t\telse if($_FILES['image']['size'] > 2000000)\n\t\t\t{\n\t\t\t\t$err .= \"Please upload hint image less than 2MB in size.<br>\";\n\t\t\t}\n\t\t}\n\t\t\n\t\tif($_FILES['video']['name'] != '')\n\t\t{\n\t\t\tif ( !(\t($_FILES['video']['type'] == 'video/mpeg')\n\t\t\t\t|| ($_FILES['video']['type'] == 'video/mpeg4')\n\t\t\t\t|| ($_FILES['video']['type'] == 'video/avi')\n\t\t\t\t|| ($_FILES['video']['type'] == 'video/mov')\n\t\t\t\t|| ($_FILES['video']['type'] == 'video/AVI')\n\t\t\t\t|| ($_FILES['video']['type'] == 'video/mpg')\n\t\t\t\t|| ($_FILES['video']['type'] == 'video/wmv')\n\t\t\t\t|| ($_FILES['video']['type'] == 'video/vid') \n\t\t\t\t|| ($_FILES['video']['type'] == 'video/x-flv')\n\t\t\t\t|| ($_FILES['video']['type'] == 'application/octet-stream')))\n\t\t\t\t\n\t\t\t{\n\t\t\t\t$err .= \"Please upload hint video in correct format.<br>\";\n\t\t\t}\n\t\t\t\n\t\t\telse if($_FILES['video']['size'] > 20000000)\n\t\t\t{\n\t\t\t\t$err .= \"Please upload hint video less than 20MB in size.<br>\";\n\t\t\t}\n\t\t}\n\t\t\n\t\tif($err!='')\n\t\t{\n\t\t\t$_SESSION['error']=$err;\n\t\t}\n\t\telseif($err=='')\n\t\t{\n\t\t\tif($frmdata['stream_id']=='')\n\t\t\t{\n\t\t\t\t$frmdata['stream_id']='NULL';\n\t\t\t}\n\t\t\tif($frmdata['subject_id']=='')\n\t\t\t{\n\t\t\t\t$frmdata['subject_id']='NULL';\n\t\t\t}\n\t\t\t\n\t\t\tif($_FILES['image']['name'] != '')\n\t\t\t{\n\t\t\t\tif($question->image)\n\t\t\t\t{\n\t\t\t\t\t$ipath = ROOT . \"/uploadfiles/\" . $question->image;\n\t\t\t\t\t@unlink($ipath);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$FileObject = (object)$_FILES['image'];\n\t\t\t\tUploadImageFile($image_path,$FileObject,'image');\n\t\t\t\t$frmdata['image'] = $image_path;\n\t\t\t}\n\t\t\t\n\t\t\tif($_FILES['video']['name'] != '')\n\t\t\t{\n\t\t\t\tif($question->video)\n\t\t\t\t{\n\t\t\t\t\t$vpath = ROOT . \"/uploadfiles/\" . $question->video;\n\t\t\t\t\t@unlink($vpath);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$FileObject = (object)$_FILES['video'];\n\t\t\t\tUploadFile($video_path,$FileObject,'video');\n\t\t\t\t$frmdata['video'] = $video_path;\n\t\t\t}\n\t\t\t\n\t\t\t//print_r($frmdata);exit;\n\t\t\t$frmdata['question_title'] = preg_replace('#<script(.*?)>(.*?)</script>#is', \"\", $frmdata['question_title']);\n\t\t\t\t$frmdata['question_title'] = str_replace(' ', ' &nbsp;', str_replace('&nbsp;', ' ', $frmdata['question_title']));\n\t\t\t$DB->UpdateRecord('question',$frmdata,'id=\"'.$question_id.'\"');\n\t\t\t\n\t\t\t$correct_ans = '';\n\t\t\t$DB->DeleteRecord('question_answer','question_id=\"'.$question_id.'\"');\n\t\t\t\n\t\t\tif($frmdata['question_type'] == 'I')\n\t\t\t{\n\t\t\t\tif($question->question_type == 'I')\n\t\t\t\t{\n\t\t\t\t\t$quest_img=$DB->SelectRecords('question_image','question_id='.$question_id);\n\t\t\t\t\t$pre_count = count($quest_img);\n\t\t\t\t\t$count = ($pre_count > $no_of_images) ? $pre_count : $no_of_images;\n\t\t\t\t\t$frmdata['question_id']=$question_id;\n\t\t\t\t\t\n\t\t\t\t\tfor($counter=1;$counter<=$count;$counter++)\n\t\t\t\t\t{\n\t\t\t\t\t\t$frmdata['image_path'] = '';\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($pre_count >= $counter && $no_of_images >= $counter)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$set=$counter-1;\n\t\t\t\t\t\t\t$image_id =\t$quest_img[$set]->id;\n\t\t\t\t\t\t\t$img_name = $quest_img[$set]->image_path;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(isset($_SESSION['fileObject_image_'.$counter]))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$frmdata['image_path']=$_SESSION['fileObject_image_'.$counter]['final_path'];\n\t\t\t\t\t\t\t\tunset($_SESSION['fileObject_image_'.$counter]);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$image_name = ROOT . '/uploadfiles/' . $img_name;\n\t\t\t\t\t\t\t\t@unlink($image_name);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif($counter == $question_mark)\n\t\t\t\t\t\t\t\t$frmdata['image_path'] = 0;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tunset($_SESSION['pre_image_'.$counter]);\n\t\t\t\t\t\t\tunset($_SESSION['image_'.$counter]);\n\t\t\t\t\t\t\t\n\t\n\t\t\t\t\t\t\tif($frmdata['image_path'] !== '')\n\t\t\t\t\t\t\t$DB->UpdateRecord('question_image',$frmdata,'question_id=\"'.$question_id.'\" and id=\"'.$image_id.'\"');\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif($pre_count < $counter)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(isset($_SESSION['fileObject_image_'.$counter]))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$frmdata['image_path']=$_SESSION['fileObject_image_'.$counter]['final_path'];\n\t\t\t\t\t\t\t\tunset($_SESSION['fileObject_image_'.$counter]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif($counter == $question_mark)\n\t\t\t\t\t\t\t\t$frmdata['image_path'] = 0;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tunset($_SESSION['pre_image_'.$counter]);\n\t\t\t\t\t\t\tunset($_SESSION['image_'.$counter]);\n\t\n\t\t\t\t\t\t\tif($frmdata['image_path'] !== '')\n\t\t\t\t\t\t\t$DB->InsertRecord('question_image',$frmdata);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telseif($no_of_images < $counter)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$set=$counter-1;\n\t\t\t\t\t\t\t$image_id =\t$quest_img[$set]->id;\n\t\t\t\t\t\t\t$img_name = $quest_img[$set]->image_path;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$image_name = ROOT . '/uploadfiles/' . $img_name;\n\t\t\t\t\t\t\t@unlink($image_name);\n\t\t\t\t\t\t\t$DB->DeleteRecord('question_image','question_id=\"'.$question_id.'\" and id=\"'.$image_id.'\"');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tfor($counter=1;$counter<=$no_of_images;$counter++)\n\t\t\t\t\t{\n\t\t\t\t\t\t$frmdata['image_path'] = '';\n\t\t\t\t\t\tif(isset($_SESSION['fileObject_image_'.$counter]))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$frmdata['image_path']=$_SESSION['fileObject_image_'.$counter]['final_path'];\n\t\t\t\t\t\t\tunset($_SESSION['fileObject_image_'.$counter]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($counter == $question_mark)\n\t\t\t\t\t\t\t$frmdata['image_path'] = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tunset($_SESSION['pre_image_'.$counter]);\n\t\t\t\t\t\tunset($_SESSION['image_'.$counter]);\n\t\t\t\t\t\t$frmdata['question_id']=$question_id;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif($frmdata['image_path'] !== '')\n\t\t\t\t\t\t$DB->InsertRecord('question_image',$frmdata);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$pre_count = count($quest_opt_exist);\n\t\t\t\t$count = ($pre_count > $no_of_options) ? $pre_count : $no_of_options;\n\t\t\t\t$frmdata['question_id']=$question_id;\n\t\t\t\t$correct_ans = array();\n\t\t\t\t\n\t\t\t\tfor($counter=1;$counter<=$count;$counter++)\n\t\t\t\t{\n\t\t\t\t\tif($pre_count >= $counter && $no_of_options >= $counter)\n\t\t\t\t\t{\n\t\t\t\t\t\t$set=$counter-1;\n\t\t\t\t\t\t$answer_id = $quest_opt_exist[$set]->id;\n\t\t\t\t\t\t$img_name = $quest_opt_exist[$set]->answer_title;\n\t\t\t\t\t\t\n\t\t\t\t\t\t$frmdata['answer_title'] = $img_name;\n\t\t\t\t\t\tunset($_SESSION['pre_option_'.$counter]);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(isset($_SESSION['fileObject_option_'.$counter]))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$frmdata['answer_title']=$_SESSION['fileObject_option_'.$counter]['final_path'];\n\t\t\t\t\t\t\tunset($_SESSION['fileObject_option_'.$counter]);\n\t\n\t\t\t\t\t\t\t$image_name = ROOT . '/uploadfiles/' . $img_name;\n\t\t\t\t\t\t\t@unlink($image_name);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunset($_SESSION['option_'.$counter]);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tif(in_array($counter, $frmdata['correct_ans']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$correct_ans[]=$answer_id;\n\t\t\t\t\t\t\t$DB->UpdateRecord('answer',$frmdata,'question_id=\"'.$question_id.'\" and id=\"'.$answer_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$DB->UpdateRecord('answer',$frmdata,'question_id=\"'.$question_id.'\" and id=\"'.$answer_id.'\"');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telseif($pre_count < $counter)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(isset($_SESSION['fileObject_option_'.$counter]))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$frmdata['answer_title']=$_SESSION['fileObject_option_'.$counter]['final_path'];\n\t\t\t\t\t\t\tunset($_SESSION['fileObject_option_'.$counter]);\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tunset($_SESSION['pre_option_'.$counter]);\n\t\t\t\t\t\t\tunset($_SESSION['option_'.$counter]);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(in_array($counter, $frmdata['correct_ans']))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$correct_ans[]=$DB->InsertRecord('answer',$frmdata);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$DB->InsertRecord('answer',$frmdata);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telseif($no_of_options < $counter)\n\t\t\t\t\t{\n\t\t\t\t\t\t$set=$counter-1;\n\t\t\t\t\t\t$answer_id = $quest_opt_exist[$set]->id;\n\t\t\t\t\t\t$img_name = $quest_opt_exist[$set]->answer_title;\n\t\t\t\t\t\t\n\t\t\t\t\t\t$image_name = ROOT . '/uploadfiles/' . $img_name;\n\t\t\t\t\t\t@unlink($image_name);\n\t\t\t\t\t\t$DB->DeleteRecord('answer','question_id=\"'.$question_id.'\" and id=\"'.$answer_id.'\"');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if($frmdata['question_type'] == 'MT')\n\t\t\t{\n\t\t\t\t$DB->DeleteRecord('question_match_right','question_id=\"'. $question_id .'\"');\n\t\t\t\t$DB->DeleteRecord('question_match_left','question_id=\"'. $question_id .'\"');\n\t\t\t\t\n\t\t\t\t$left = array();\n\t\t\t\t$left['question_id'] = $question_id;\n\t\n\t\t\t\t$right = array();\n\t\t\t\t$right['question_id'] = $question_id;\n\t\t\t\t\n\t\t\t\tfor($counter = 1; $counter <= $frmdata['no_of_cols']; $counter++)\n\t\t\t\t{\n\t\t\t\t\t$right_id = '';\n\t\t\t\t\t$right['value'] = '';\n\t\t\t\t\t\n\t\t\t\t\tif($frmdata['right_col_' . $counter] != '')\n\t\t\t\t\t{\n\t\t\t\t\t\t$right['value'] = $frmdata['right_col_' . $counter];\n\t\t\t\t\t\tunset($_SESSION['right_col_' . $counter]);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$right_id = $DB->InsertRecord('question_match_right',$right);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$left['value'] = '';\n\t\t\t\t\t\tif($frmdata['left_col_' . $counter] != '')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$left['value'] = $frmdata['left_col_' . $counter];\n\t\t\t\t\t\t\tunset($_SESSION['left_col_' . $counter]);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$left['answer_id'] = $right_id;\n\t\t\t\t\t\t\t$DB->InsertRecord('question_match_left',$left);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif($frmdata['question_type'] == \"S\")\n\t\t\t{\n\t\t\t\t//do nothing;\n\t\t\t}\n\t\t\telseif(isset($frmdata['option_3']))\n\t\t\t{\n\t\t\t\t$correct_ans = array();\n\t\t\t\tfor($counter=1;$counter<=4;$counter++)\n\t\t\t\t{\n\t\t\t\t\t$frmdata['answer_title']=$frmdata['option_'.$counter];\n\t\t\t\t\t$frmdata['question_id']=$question_id;\n\t\t\t\t\t$set=$counter-1;\n\t\t\t\t\t$answer_id=\t$quest_opt_exist[$set]->id;\n\t\t\t\t\tif(in_array($counter, $frmdata['correct_ans']))\n\t\t\t\t\t{\n\t\t\t\t\t\t$correct_ans[]=$answer_id;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$DB->UpdateRecord('answer',$frmdata,'question_id=\"'.$question_id.'\" and id=\"'.$answer_id.'\"');\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$correct_ans = '';\n\t\t\t\tfor($counter=1;$counter<=2;$counter++)\n\t\t\t\t{\n\t\t\t\t\t$frmdata['answer_title']=$frmdata['option_'.$counter];\n\t\t\t\t\t$frmdata['question_id']=$question_id;\n\t\t\t\t\t$set=$counter-1;\n\t\t\t\t\t$answer_id=\t$quest_opt_exist[$set]->id;\n\t\t\t\t\tif($frmdata['correct_ans']==$counter)\n\t\t\t\t\t{\n\t\t\t\t\t\t$correct_ans=$answer_id;\n\t\t\t\t\t}\n\t\t\t\t\t$DB->UpdateRecord('answer',$frmdata,'question_id=\"'.$question_id.'\" and id=\"'.$answer_id.'\"');\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(($frmdata['question_type'] != \"S\") && ($frmdata['question_type'] != \"MT\"))\n\t\t\t{\n\t\t\t\tif(is_array($correct_ans))\n\t\t\t\t{\n\t\t\t\t\tforeach($correct_ans as $cans)\n\t\t\t\t\t{\n\t\t\t\t\t\t$frmdata['answer_id']=$cans;\n\t\t\t\t\t\t$DB->InsertRecord('question_answer',$frmdata);\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$frmdata['answer_id']=$correct_ans;\n\t\t\t\t\t$DB->InsertRecord('question_answer',$frmdata);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//echo \"<pre>\";print_r($frmdata);exit;\n\t\t\t$_SESSION['success']=\"Question has been updated successfully.\";\n\t\t\t$frmdata='';\n\t\t\tRedirect(CreateURL('index.php','mod=question_master&do=manage'));\n\t\t\texit;\n\t\t}\n\t}", "title": "" }, { "docid": "a2fd51a936c0bd2335420b456c5c969b", "score": "0.525227", "text": "function feedbackAction(){\n\t\t$d = $_SESSION['questionnary'];\n\t\n\t\treturn xView::load('vignette/feedback', $d)->render();\n\t}", "title": "" }, { "docid": "7de60ae1123fd51e480be39fb03fd39e", "score": "0.5250324", "text": "protected function getQuestionHelper() {}", "title": "" }, { "docid": "3cb3327825f90e35c4503dfa4372f58d", "score": "0.52477586", "text": "public function edit(feedback $feedback)\n {\n //\n }", "title": "" }, { "docid": "73626b5593520c129a51864f388f2781", "score": "0.52459615", "text": "public function actionFeedback($id){\n $finalized = $this->orders->isFinalized($id);\n $hasFeedback = $this->orders->hasFeedback($id);\n $details = $this->orders->getDetails($id);\n \n $fe = $details[\"FE\"] == \"yes\" ? TRUE : FALSE;\n $isBuyer = $details[\"buyer\"] == $this->hlp->logn() ? TRUE : FALSE;\n \n $this->hlp->sets(\"feedback\", array(\"orderid\" => $id));\n \n if ($isBuyer){\n if ($finalized){ \n if ($hasFeedback && $fe){\n //FE order has ability to change feedback one time\n if ($this->isFbChA($id)){\n $this->hlp->sets(\"feedback\", array(\"FEedit\" => TRUE));\n $this->orders->fbInc($id); //inc fb change counter\n } else {\n $this->redirect(\"Orders:in\");\n }\n }\n \n if ($hasFeedback && !$fe){\n //escrowed order has no ability to change feedback\n $this->redirect(\"Orders:in\");\n }\n\n if (!$hasFeedback && $fe){\n $this->hlp->sets(\"feedback\", array(\"FE\" => TRUE));\n }\n\n if (!$hasFeedback && !$fe){\n $this->hlp->sets(\"feedback\", array(\"escrow\" => TRUE));\n } \n } else {\n $this->redirect(\"Orders:in\");\n }\n } else {\n $this->redirect(\"Orders:in\");\n }\n }", "title": "" }, { "docid": "4dc0cd7e438e7147d1d15906bffd3311", "score": "0.5230838", "text": "public function add_feedback(){\n\t\t$this->set('noHead', '1');\n\t\tif ($this->request->is('post')){\n\t\t\t// validates the form\n\t\t\t$this->Home->set($this->request->data);\n\t\t\t// validate file\t\t\n\t\t\tif($this->Home->validates(array('fieldList' => array('message')))){\n\t\t\t\t$sub = 'Manage Hiring - Feedback received from '.ucfirst($this->Session->read('USER.Login.first_name')).' '.ucfirst($this->Session->read('USER.Login.last_name'));\n\t\t\t\t$from = ucfirst($this->Session->read('USER.Login.first_name')).' '.ucfirst($this->Session->read('USER.Login.last_name'));\n\t\t\t\t$vars = array('from_name' => $from, 'message' => $this->request->data['Home']['message']);\n\t\t\t\t// get system admin email address\n\t\t\t\t$admin_data = $this->Home->Creator->find('all', array('conditions' => array('roles_id' => '26', 'Creator.id' => '91'), 'fields' => array('email_id')));\n\t\t\t\t// notify superiors\t\t\t\t\t\t\n\t\t\t\tif(!$this->send_email($sub, 'feedback', 'noreply@managehiring.com', $admin_data[0]['Creator']['email_id'],$vars)){\t\n\t\t\t\t\t// show the msg.\t\t\t\t\t\t\t\t\n\t\t\t\t\t$this->Session->setFlash('<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>Problem in sending the mail to admin...', 'default', array('class' => 'alert alert-error'));\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t$this->Session->setFlash('<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>Thanks for feedback. Feedback sent successfully!', 'default', array('class' => 'alert alert-success'));\n\t\t\t\t\tunset($this->request->data);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "29c1feb710dd85a7fd3ac7ffc6b2b696", "score": "0.5230389", "text": "function edit( $back_poll ) {\n\t\t$lang =& DoceboLanguage::createInstance('poll');\n\t\t\n\t\t\n\t\trequire_once(_base_.'/lib/lib.form.php');\n\t\t$url_encode = htmlentities(urlencode($back_poll));\n\t\t\n\t\t//manage number of answer\n\t\t$num_answer = importVar('num_answer', true, 2);\n\t\t\n\t\tif(isset($_POST['more_answer'])) ++$num_answer;\n\t\tif(isset($_POST['less_answer']) && ($num_answer > 1) ) --$num_answer;\n\t\t\n\t\tif(isset($_POST['save_question'])) {\n\t\t\t\n\t\t\t//update question\n\t\t\t$ins_query = \"\n\t\t\tUPDATE \".$GLOBALS['prefix_lms'].\"_pollquest\n\t\t\tSET id_category = '\".(int)$_POST['id_category'].\"', \n\t\t\t\ttype_quest = '\".$this->getQuestionType().\"', \n\t\t\t\ttitle_quest = '\".$_POST['title_quest'].\"' \n\t\t\tWHERE id_quest = '\".(int)$this->id.\"'\";\n\t\t\tif(!sql_query($ins_query)) {\n\t\t\t\t\n\t\t\t\tgetErrorUi($lang->def('_POLL_ERR_INS_QUEST')\n\t\t\t\t\t.getBackUi('index.php?modname=question_poll&amp;op=edit&amp;type_quest='\n\t\t\t\t\t.$this->getQuestionType().'&amp;id_quest='.$this->id.'&amp;back_poll='.$url_encode, $lang->def('_BACK')));\n\t\t\t}\n\t\t\t//update answer\n\t\t\tif( !isset($_POST['is_correct']) ) $_POST['is_correct'] = -1;\n\t\t\t\n\t\t\t//find saved answer\n\t\t\t$re_answer = sql_query(\"\n\t\t\tSELECT id_answer\n\t\t\tFROM \".$GLOBALS['prefix_lms'].\"_pollquestanswer \n\t\t\tWHERE id_quest = '\".(int)$this->id.\"'\");\n\t\t\twhile(list($id_a) = sql_fetch_row($re_answer)) $existent_answer[$id_a] = 1;\n\t\t\t\n\t\t\tfor($i = 0; $i < $num_answer; $i++) {\n\t\t\t\t//scannig answer\n\t\t\t\tif( isset($_POST['answer_id'][$i]) ) {\n\t\t\t\t\t//must update\n\t\t\t\t\t$id_answer = $_POST['answer_id'][$i];\n\t\t\t\t\tif(isset($existent_answer[$id_answer])) unset($existent_answer[$id_answer]);\n\t\t\t\t\t\n\t\t\t\t\t$upd_ans_query = \"\n\t\t\t\t\tUPDATE \".$GLOBALS['prefix_lms'].\"_pollquestanswer \n\t\t\t\t\tSET answer = '\".$_POST['answer'][$i].\"'\n\t\t\t\t\tWHERE id_answer = '\".(int)$id_answer.\"'\";\n\t\t\t\t\tif(!sql_query($upd_ans_query)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tgetErrorUi($lang->def('_POLL_ERR_INS_ANSWER').getBackUi(Util::str_replace_once('&', '&amp;', $back_poll), $lang->def('_BACK')));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t//insert new answer\n\t\t\t\t\t$ins_answer_query = \"\n\t\t\t\t\tINSERT INTO \".$GLOBALS['prefix_lms'].\"_pollquestanswer \n\t\t\t\t\t( id_quest, answer, sequence ) VALUES\n\t\t\t\t\t( \t'\".$this->id.\"', \n\t\t\t\t\t\t'\".$_POST['answer'][$i].\"',\n\t\t\t\t\t\t'\".$i.\"' ) \";\n\t\t\t\t\tif(!sql_query($ins_answer_query)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tgetErrorUi($lang->def('_POLL_ERR_INS_ANSWER').getBackUi(Util::str_replace_once('&', '&amp;', $back_poll), $lang->def('_BACK')));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile(list($idA) = each($existent_answer)) {\n\t\t\t\t//i must delete these answer\n\t\t\t\t$del_answer_query = \"\n\t\t\t\tDELETE FROM \".$GLOBALS['prefix_lms'].\"_pollquestanswer\n\t\t\t\tWHERE id_quest = '\".(int)$this->id.\"' AND id_answer = '\".(int)$idA.\"'\";\n\t\t\t\tif(!sql_query($del_answer_query)) {\n\t\t\t\t\t\n\t\t\t\t\tgetErrorUi($lang->def('_POLL_ERR_INS_ANSWER').getBackUi(Util::str_replace_once('&', '&amp;', $back_poll), $lang->def('_BACK')));\n\t\t\t\t}\n\t\t\t}\n\t\t\t//back to question list\n\t\t\tUtil::jump_to( ''.$back_poll);\n\t\t}\n\t\t\n\t\t//insert form\n\t\t\trequire_once($GLOBALS['where_lms'].'/lib/lib.questcategory.php');\n\t\t\t$categories = Questcategory::getCategory();\n\t\t//writing difficult \n\t\t\n\t\t//load data\n\t\tif(!isset($_POST['answer_id'])) {\n\t\t\tlist($sel_cat, $quest) = sql_fetch_row(sql_query(\"\n\t\t\tSELECT id_category, title_quest \n\t\t\tFROM \".$GLOBALS['prefix_lms'].\"_pollquest \n\t\t\tWHERE id_quest = '\".(int)$this->id.\"'\"));\n\t\t\t\n\t\t\t$re_answer = sql_query(\"\n\t\t\tSELECT id_answer, answer \n\t\t\tFROM \".$GLOBALS['prefix_lms'].\"_pollquestanswer \n\t\t\tWHERE id_quest = '\".(int)$this->id.\"'\n\t\t\tORDER BY sequence\");\n\t\t\t\n\t\t\t$i_load = 0;\n\t\t\twhile(list(\n\t\t\t\t$_POST['answer_id'][$i_load],\n\t\t\t\t$_POST['answer'][$i_load] ) = sql_fetch_row($re_answer)){\n\t\t\t\t++$i_load;\n\t\t\t}\n\t\t\t$num_answer = $i_load;\n\t\t}\n\t\t\n\t\t$GLOBALS['page']->add(\n\t\t\tgetTitleArea($lang->def('_POLL_SECTION'), 'poll')\n\t\t\t.'<div class=\"std_block\">'\n\t\t\t.getBackUi(Util::str_replace_once('&', '&amp;', $back_poll), $lang->def('_BACK'))\n\t\t\t.'<div class=\"title_big\">'\n\t\t\t.$lang->def('_QUEST_ACRN_'.strtoupper($this->getQuestionType())).' - '\n\t\t\t.$lang->def('_QUEST_'.strtoupper($this->getQuestionType()))\n\t\t\t.'</div><br />'\n\t\t\t.Form::openForm('form_add_quest', 'index.php?modname=question_poll&amp;op=edit')\n\t\t\t\n\t\t\t.Form::openElementSpace()\n\t\t\t.Form::getHidden('type_quest', 'type_quest', $this->getQuestionType())\n\t\t\t.Form::getHidden('id_quest', 'id_quest', $this->id)\n\t\t\t.Form::getHidden('back_poll', 'back_poll', $url_encode)\n\t\t\t.Form::getHidden('num_answer', 'num_answer', $num_answer)\n\t\t\t\n\t\t\t.Form::getTextarea($lang->def('_POLL_QUEST_TITLE'), 'title_quest', 'title_quest', \n\t\t\t\t( isset($_POST['title_quest']) ? stripslashes($_POST['title_quest']) : $quest ) )\n\t\t\t.Form::getDropdown( $lang->def('_CATEGORY'), 'id_category', 'id_category', $categories,\n\t\t\t\t( isset($_POST['id_category']) ? $_POST['id_category'] : $sel_cat ))\n\t\t\t.'<div class=\"nofloat\"></div><br />', 'content');\n\t\t\t\n\t\t$GLOBALS['page']->add('<table class=\"test_answer\" cellspacing=\"0\" summary=\"'.$lang->def('_POLL_ANSWER_SUMMARY').'\">'.\"\\n\"\n\t\t\t.'<caption>'.$lang->def('_ANSWER').'</caption>'.\"\\n\"\n\t\t\t.'<tr>'\n\t\t\t.'<th>'.$lang->def('_ANSWER').'</th>'\n\t\t\t.'</tr>'.\"\\n\", 'content');\n\t\t\t\n\t\tfor($i = 0; $i < $num_answer; $i++) {\n\t\t\t$this->_lineModAnswer($i);\n\t\t}\n\t\t$GLOBALS['page']->add(\n\t\t\t'</table>'\n\t\t\t.Form::getButton( 'more_answer', 'more_answer', $lang->def('_POLL_ADD_ONE_ANSWER'), 'button_nowh' ), 'content');\n\t\tif($num_answer > 1) $GLOBALS['page']->add(Form::getButton( 'less_answer', 'less_answer', $lang->def('_POLL_SUB_ONE_ANSWER'), 'button_nowh' ), 'content');\n\t\t$GLOBALS['page']->add(\n\t\t\tForm::closeElementSpace()\n\t\t\t\n\t\t\t.Form::openButtonSpace()\n\t\t\t.Form::getButton('save_question', 'save_question', $lang->def('_SAVE'))\n\t\t\t.Form::closeButtonSpace()\n\t\t\t.Form::closeForm()\n\t\t\t.'</div>', 'content');\n\t}", "title": "" }, { "docid": "ea026f2fe1839caa7381fa3df8272fbb", "score": "0.52227414", "text": "public function getAnswerFeedbackImprove($answerId) \r\n {\r\n if (!is_numeric($answerId) ){\r\n return false;\r\n }\r\n \r\n $objResultAnswerFeedbackImprove = DbTable_AnswerFeedbackImprove::getInstance()\r\n ->fetchRow(array(\r\n 'AnswerId = ?' => $answerId\r\n ),\"FeedbackDate DESC\"\r\n );\r\n if ($objResultAnswerFeedbackImprove) {\r\n return $objResultAnswerFeedbackImprove->getFeedbackImprove();\r\n }\r\n }", "title": "" }, { "docid": "8ce9da3fca868312af8c7880c1388d5f", "score": "0.522255", "text": "public function actionFeedback() {\n\n if( Yii::$app->request->get('action', null) == 'delete' ){\n $id = Yii::$app->request->get('id');\n Reviews::deleteAll(['id' => $id]);\n }\n\n $page = Yii::$app->request->get('page', null);\n list($models, $pages) = Helper::pagination('reviews', $page, null, 'admin/feedback', ['order' => ['disabled' => SORT_DESC, 'timestamp' => SORT_DESC]]);\n $new_reviews_count = Yii::$app->db->createCommand('SELECT COUNT(*) FROM {{%reviews}} WHERE disabled = 1')->queryScalar();\n $new_reviews_count = $new_reviews_count ? $new_reviews_count : '';\n\n return $this->render('feedback', [\n 'reviews' => $models,\n 'pages' => $pages,\n 'page' => $page,\n 'new_reviews_count' => $new_reviews_count\n ]);\n }", "title": "" }, { "docid": "3007ee6048c9c996b99bbfc16bb3e216", "score": "0.5201832", "text": "public function getInputFaq() {\n $sess = $this->nativesession->get('sessdata');\n if($sess[0]->username != null) {\n $data['form_header'] = \"Input New Frequently Asked Question\";\n $data['form_action'] = base_url('/admFaq/getInputFaq');\n $data['icon'] = \"icon-pencil\";\n $data['listCat'] = $this->m_admfaq->getListFaqCat(\"array\"); \n $this->setTemplate('admin/faq/getInputFaq', $data);\n } else {\n redirect('admin/index', 'refresh');\n } \n }", "title": "" }, { "docid": "411f8dfdd5bf9e084ba048fe412b6890", "score": "0.52008337", "text": "public function save_unanswered($as_answered = 0)\n {\n $id = $this->id;\n $attempt_value = $_POST['attempt_value'];\n $eurid = $_SESSION['exerciseUserRecordID'][$id][$attempt_value];\n $question_ids = Database::get()->queryArray('SELECT DISTINCT question_id\n FROM exercise_answer_record WHERE eurid = ?d', $eurid);\n if (count($question_ids) > 0) {\n foreach ($question_ids as $row) {\n $answered_question_ids[] = $row->question_id;\n }\n } else {\n $answered_question_ids = array();\n }\n $questionList = $_SESSION['questionList'][$id][$attempt_value];\n $q_position = 1;\n foreach ($questionList as $question_id) {\n if (!in_array($question_id, $answered_question_ids)) {\n $objQuestionTmp = new Question();\n $objQuestionTmp->read($question_id);\n $question_type = $objQuestionTmp->selectType();\n if ($question_type == MATCHING) {\n // construction of the Answer object\n $objAnswerTmp = new Answer($question_id);\n $nbrAnswers = $objAnswerTmp->selectNbrAnswers();\n for ($answerId = 1; $answerId <= $nbrAnswers; $answerId++) {\n // must get answer id ONLY where correct value exists\n $answerCorrect = $objAnswerTmp->isCorrect($answerId);\n if ($answerCorrect) {\n $value[$answerId] = 0;\n }\n }\n unset($objAnswerTmp);\n } elseif ($question_type == FILL_IN_BLANKS || $question_type == FILL_IN_BLANKS_TOLERANT) {\n // construction of the Answer object\n $objAnswerTmp = new Answer($question_id);\n $answer = $objAnswerTmp->selectAnswer(1);\n // construction of the Answer object\n list($answer, $answerWeighting) = explode('::', $answer);\n $answerWeighting = explode(',', $answerWeighting);\n $nbrAnswers = count($answerWeighting);\n for ($answerId = 1; $answerId <= $nbrAnswers; $answerId++) {\n $value[$answerId] = '';\n }\n } elseif ($question_type == FILL_IN_FROM_PREDEFINED_ANSWERS) {\n $value = [];\n } elseif ($question_type == FREE_TEXT) {\n $value = '';\n } else {\n $value = 0;\n }\n $this->insert_answer_records($question_id, $value, $as_answered, $q_position);\n unset($value);\n }\n $q_position++;\n }\n }", "title": "" }, { "docid": "2e6889b58643873f95c753014976bbfe", "score": "0.51986766", "text": "public function feedback(){\n $kindergarten = M('Kindergarten');\n $a['openid'] = $_GET['openid'];\n $a['kgid'] = $_GET['kgid'];\n $b = $kindergarten->where(array('id'=>$a['kgid']))->find();\n $a['userid'] = $b['userid'];\n $a['kgname'] = $b['kgname'];\n $this->assign('a',$a);\n $arr = M('Kgmy')->where(array('kgid'=>$a['kgid'],'openid'=>$a['openid']))->find();\n if($arr){\n $this->assign('arr',$arr);\n }\n if(IS_POST){\n $data['addtime'] = strtotime(date('Y-m-d H:i:s'));\n $data['name'] = $_POST['name'];\n $data['tel'] = $_POST['tel'];\n $data['content'] = $_POST['content'];\n $data['uid'] = $this->tpl['uid'];\n $data['token'] = $this->token;\n $data['userid'] = $_POST['userid'];\n $data['kgid'] = $_POST['kgid'];\n $data['openid'] = $_POST['openid'];\n $data['kgname'] = $_POST['kgname'];\n if(M('Kgfeedback')->add($data)){\n $this->success();\n }else{\n $this->error();\n }\n $this->assign('data',$data);\n }\n $this->display();\n }", "title": "" }, { "docid": "0dae0ec7ef7ce9ef06f80b787db837d3", "score": "0.5194935", "text": "function theme_dquarks_mail_multichoice($variables) {\n\n $data = $variables['data'];\n $component = $variables['component'];\n $childs = array();\n $options = $component['extra']['items'][\"labels\"];\n $wrong = FALSE;\n $corrects = array_intersect_key($component['extra']['items'][\"labels\"], array_filter($component['extra']['items'][\"choices\"]));\n if (is_array($data)) {\n foreach ($data as $key => $value) {\n if ($value != '') {\n if ($component['extra']['items'][\"choices\"][$key]) {\n $childs[] = t(\"Correct answer :\") . ' ' . $options[$key];\n }\n else {\n $childs[] = t(\"Wrong answer :\") . ' ' . $options[$key];\n $wrong = TRUE;\n }\n $data[$key] = $options[$key];\n }\n else {\n unset($data[$key]);\n }\n }\n }\n else {\n if ($component['extra']['items'][\"choices\"][$data]) {\n $childs[] = t(\"Correct answer :\") . ' ' . $options[$data];\n }\n else {\n $childs[] = t(\"Wrong answer :\") . ' ' . $options[$data];\n $wrong = TRUE;\n }\n $data = array($data => $options[$data]);\n }\n if ($wrong) {\n if (count($corrects)) {\n $childs[] = array(\n \"data\" => t(\"Correct answers are :\"),\n \"children\" => $corrects,\n );\n }\n else {\n $childs[] = array(\n \"data\" => t(\"The Correct answer is :\"),\n \"children\" => $corrects,\n );\n }\n }\n if (!empty($component['extra']['justificatif'])) {\n $childs[] = $component['extra']['justificatif'];\n }\n $return[] = array(\"data\" => $component['name'], \"children\" => $childs);\n return theme(\"item_list\", array(\n 'title' => $component['name'],\n 'items' => $childs)\n );\n}", "title": "" }, { "docid": "df017f17c65cf26955039e907cb50817", "score": "0.5178669", "text": "function view_feedback() {\r\n //$this->view_feedback_optimized();\r\n //return;\r\n\r\n global $OUTPUT,$DB,$USER;\r\n\r\n $poasmodel = poasassignment_model::get_instance($this->poasassignment);\r\n if (!$assignee = $poasmodel->get_assignee($USER->id, $this->poasassignment->id)) {\r\n return;\r\n }\r\n\r\n $attempts=array_reverse($DB->get_records('poasassignment_attempts',array('assigneeid'=>$assignee->id),'attemptnumber'));\r\n $plugins=$poasmodel->get_plugins();\r\n $criterions=$DB->get_records('poasassignment_criterions',array('poasassignmentid'=>$this->poasassignment->id));\r\n $latestattempt = $poasmodel->get_last_attempt($assignee->id);\r\n $attemptscount=count($attempts);\r\n // show latest graded feedback\r\n foreach($attempts as $attempt) {\r\n if(!$attempt->ratingdate) {\r\n continue;\r\n }\r\n echo $OUTPUT->box_start();\r\n echo $OUTPUT->heading(get_string('lastgraded','poasassignment'));\r\n $hascap = has_capability('mod/poasassignment:viewownsubmission', $poasmodel->get_context());\r\n echo attempts_page::show_attempt($attempt, $hascap);\r\n $canseecriteriondescr = has_capability('mod/poasassignment:seecriteriondescription', $poasmodel->get_context());\r\n attempts_page::show_feedback($attempt, $latestattempt, $canseecriteriondescr);\r\n echo $OUTPUT->box_end();\r\n break;\r\n }\r\n }", "title": "" } ]
ca322c00d850f5fd5197b81b3462627f
Action must be taken immediately. Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.
[ { "docid": "a494cfb588106e0eefb12fbcf6e18c71", "score": "0.0", "text": "public function alert($message, array $context = array())\n {\n $this->log(self::ALERT, $message, $context);\n }", "title": "" } ]
[ { "docid": "2e1c317803a680f17a3274a665713c43", "score": "0.5965703", "text": "public function alerts_system() {\n // run the queue command\n }", "title": "" }, { "docid": "49cca8a8d73abca7096b812afdf89ae2", "score": "0.58324087", "text": "public function alert()\n {\n $this->load->library('bw_bitcoin');\n\n // Load the current, if any, bitcoin alert.\n $alert = $this->bw_bitcoin->check_alert();\n if ($alert !== FALSE) {\n $this->load->model('alerts_model');\n\n // If the site has never responded to this error before, proceed:\n if ($this->alerts_model->check($alert['message']) == FALSE) {\n // If there is an alert, log the alert message for the admin.\n $this->load->model('admin_model');\n $this->logs_model->add('Bitcoin Alert', 'Bitcoin Alert', $alert['message'], 'Alert');\n\n // Record the alert\n $this->alerts_model->add($alert);\n\n // If the site is not already in maintenance mode, go into that now.\n if ($this->bw_config->maintenance_mode == FALSE)\n $this->admin_model->set_mode('maintenance');\n }\n }\n }", "title": "" }, { "docid": "aa096c25887a44fd36b452b2e155ad54", "score": "0.57721674", "text": "public function execute()\n {\n $this->receiver->acctackAction();\n }", "title": "" }, { "docid": "d7faebe66052452a6fc2a377190be4da", "score": "0.5610064", "text": "public function schedule()\n {\n $alerts = Alert::findUpcoming();\n foreach ($alerts as $alert) {\n $text = $alert->name;\n $this->sendToChats($alert->app_id, \"⏰ $text\");\n }\n }", "title": "" }, { "docid": "5e2460d1052b647a9ee682e4ca91dc4d", "score": "0.55584574", "text": "public function trigger();", "title": "" }, { "docid": "5e2460d1052b647a9ee682e4ca91dc4d", "score": "0.55584574", "text": "public function trigger();", "title": "" }, { "docid": "5e2460d1052b647a9ee682e4ca91dc4d", "score": "0.55584574", "text": "public function trigger();", "title": "" }, { "docid": "6352551971f1b81d0c26d3f52640c78f", "score": "0.552695", "text": "public function sleep()\n {\n }", "title": "" }, { "docid": "208ad99ff0a194c06e3f158253c478d2", "score": "0.55063796", "text": "public function activateSecAlarm(){\n //Sprachausgabe\n if($this->ReadPropertyBoolean(\"AlexaTTS\")){\n $text_to_speech = \"Alarmanlage wird in 30Sekunden aktiv.\";\n EchoRemote_TextToSpeech($this->ReadPropertyInteger(\"EchoID\"), $text_to_speech);\n }\n sleep(30);\n SetValueBoolean($this->GetIDForIdent(\"A_SecActive\"),true);\n SetValueBoolean($this->GetIDForIdent(\"A_SecActivate\"),true);\n $this->setvalue(\"A_SecWarning\",\"Alarm Anlage is aktiv.\"); \n //Sprachausgabe\n if($this->ReadPropertyBoolean(\"AlexaTTS\")){\n $text_to_speech = \"Alarmanlage ist aktiviert.\";\n EchoRemote_TextToSpeech($this->ReadPropertyInteger(\"EchoID\"), $text_to_speech);\n }\n \n }", "title": "" }, { "docid": "eff98f1ad8614a22089c9a8f354c5c30", "score": "0.54858375", "text": "public static function notifyMessage()\n {\n }", "title": "" }, { "docid": "cf412623b9f022476dfb61a2d4a4256a", "score": "0.5468385", "text": "function PerformAction(){\n\t}", "title": "" }, { "docid": "6cbd4bb2c0f97dc85dcb739145a064e8", "score": "0.5439658", "text": "public function lockReadyDelivery() {\n $check_date = date(\"Y-m-d H:i:s\", time()+1800);\n $sendMapper = $this->mapperFactory->createSendMapper();\n $sendMapper->lockReadySend($check_date);\n }", "title": "" }, { "docid": "b9b3e4bde82b452b5a4af92306023861", "score": "0.54044133", "text": "protected function notify()\n {\n if ($this->canNotify()) {\n $this->sendNotifications();\n }\n }", "title": "" }, { "docid": "0b155fadde397a8776e427a2142aa7ac", "score": "0.5384295", "text": "protected function __sleep()\n {\n }", "title": "" }, { "docid": "96209c4c900468752284422b02945c28", "score": "0.53807634", "text": "public function runAction()\n {\n try {\n Mage::helper('bronto_reminder')->writeDebug(\"Admin pressed 'Run Now'...\");\n $model = $this->_initRule();\n $result = $model->sendReminderEmails();\n if ($result) {\n $total = $result['total'];\n $success = $result['success'];\n $error = $result['error'];\n Mage::getSingleton('adminhtml/session')->addSuccess(sprintf(\"Processed %d Customers (%d Error / %d Success)\", $total, $error, $success));\n } else {\n Mage::getSingleton('adminhtml/session')->addError('Reminder rule sending failed.');\n }\n } catch (Mage_Core_Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\n Mage::helper('bronto_reminder')->writeError($e);\n } catch (Exception $e) {\n Mage::getSingleton('adminhtml/session')->addException($e, $this->__('Reminder rule matching error.'));\n Mage::helper('bronto_reminder')->writeError($e);\n }\n $this->_redirect('*/*/edit', array('id' => $model->getId(), 'active_tab' => 'matched_customers'));\n }", "title": "" }, { "docid": "0644484da749613aa2f224485aef82d3", "score": "0.5379952", "text": "public function missionclientalertAction()\n {\n $cron_obj = new Ep_Ao_CronLock();\n $cron = $cron_obj->getCronLock('missionclientalert');\n $lockstatus = $cron[0]['locked'];\n if($lockstatus == 'locked')\n { echo \"in process\"; exit; }\n else\n {\n $this->updateCronLock('missionclientalert', 'locked'); \n\n\t\t\t$ao_obj=new Ep_Ao_Delivery();\n\t\t\t\n\t\t\t$missions=$ao_obj->publishtimeaoclientmail();\n\t\t\tprint_r($missions);//exit;\n\t\t\tif(count($missions)>0)\n\t\t\t{\n\t\t\t\tfor($m=0;$m<count($missions);$m++)\n\t\t\t\t{\n\t\t\t\t\t$parameters['clientartname_link'] = \"/client/quotes?id=\".$missions[$m]['artId'];\n\t\t\t\t\t$parameters['AO_title']=$missions[$m]['title'];\n\t\t\t\t\t\t$expires=$missions[$m]['publishtime']+(60*$missions[$m]['participation_time']);\n\t\t\t\t\t$parameters['submitdate_bo']=date('d/m/Y H:i', $expires);\n\t\t\t\t\t\n\t\t\t\t\t $this->messageToEPMail($missions[0]['client_id'],5,$parameters);\n\t\t\t\t\t\t\n\t\t\t\t\t/** Post comments on FB**/ \n\t\t\t\t\t$array['cronmailclient_publish']='yes';\n\t\t\t\t\t$where=\" id='\".$missions[$m]['id'].\"'\";\n\t\t\t\t\t$ao_obj->updateDelivery($array,$where); \n\t\t\t\t}\n\t\t\t} \n\t\t\t\n\t\t\t$this->updateCronLock('missionclientalert', 'unlocked');\n\t\t} \n }", "title": "" }, { "docid": "9c0b51c15738e07ef12733cdd082297a", "score": "0.5364968", "text": "public function __sleep()\n\t{\n\t}", "title": "" }, { "docid": "9c0b51c15738e07ef12733cdd082297a", "score": "0.5364968", "text": "public function __sleep()\n\t{\n\t}", "title": "" }, { "docid": "5cd5ece3173356931d40f8ca6ffdd058", "score": "0.53596795", "text": "public static function activation() {\n\t\t\t/* Adds 'Every Two Minutes' to System Cron */\n\t\t\tadd_filter( 'cron_schedules', array( __CLASS__ , 'add_ping_interval' ) );\n\n\t\t\twp_schedule_event( time(), '2min', 'inbound_heartbeat' );\n\t\t\tadd_option( 'inbound_automation_queue' , null , null , 'no' );\n\t\t}", "title": "" }, { "docid": "e586adc88c24de1907a471bf8a7cc441", "score": "0.53347003", "text": "public function missionalertAction()\n {\n $cron_obj = new Ep_Ao_CronLock();\n $cron = $cron_obj->getCronLock('missionalert');\n $lockstatus = $cron[0]['locked'];\n if($lockstatus == 'locked')\n { echo \"in process\"; exit; }\n else\n {\n $this->updateCronLock('missionalert', 'locked'); \n\t\t\t$ao_obj=new Ep_Ao_Delivery();\n\t\t\t\n\t\t\t$missions=$ao_obj->publishtimeao();\n\t\t\tprint_r($missions);//exit; \n\t\t\tif(count($missions)>0)\n\t\t\t{\n\t\t\t\tfor($m=0;$m<count($missions);$m++)\n\t\t\t\t{\n\t\t\t\t\tif($missions[$m]['premium_option']=='0')\n\t\t\t\t\t\t$mailId=14;\n\t\t\t\t\telse\n\t\t\t\t\t\t$mailId=15;\n\t\t\t\t\t\t\n\t\t\t\t\t$parameters['AO_title']=$missions[$m]['title'];\n\t\t\t\t\t\t$expires=$missions[$m]['publishtime']+(60*$missions[$m]['participation_time']);\n\t\t\t\t\t$parameters['submitdate_bo']=date('d/m/Y H:i', $expires);\n\t\t\t\t\t$parameters['subject']=$missions[$m]['mailsubject'];\n\t\t\t\t\t$parameters['content']=$missions[$m]['mailcontent'];\n\t\t\t\t\t\n\t\t\t\t\tif($missions[$m]['mail_sender']=='me')\n\t\t\t\t\t\t$parameters['sender_id']=$missions[$m]['created_user'];\n\t\t\t\t\t\n\t\t\t\t\tif($missions[0]['alertuser']!=\"\")\n\t\t\t\t\t{\n\t\t\t\t\t\t$alertcontribs=explode(\",\",$missions[$m]['alertuser']);\n\t\t\t\t\t\t//print_r($alertcontribs);\n\t\t\t\t\t\tforeach($alertcontribs as $alert)\n\t\t\t\t\t\t\t$this->messageToEPMail($alert,$mailId,$parameters); \n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t/** Post comments on FB**/ \n\t\t\t\t\t\n\t\t\t\t\t$array['cronmail_publish']='yes';\n\t\t\t\t\t$where=\" id='\".$missions[$m]['id'].\"'\";\n\t\t\t\t\t$ao_obj->updateDelivery($array,$where); \n\t\t\t\t}\n\t\t\t} \n\t\t\t\n\t\t\t//Correction alert\n\t\t\t$missioncorrection=$ao_obj->publishtimeaocorrection();\n\t\t\tprint_r($missioncorrection);//exit;\n\t\t\tif(count($missioncorrection)>0)\n\t\t\t{\n\t\t\t\tfor($m=0;$m<count($missioncorrection);$m++)\n\t\t\t\t{\n\t\t\t\t\t$parameterscorr['subject']=$missioncorrection[$m]['correctormailsubject'];\n\t\t\t\t\t$parameterscorr['content']=$missioncorrection[$m]['correctormailcontent'];\n\t\t\t\t\t\n\t\t\t\t\tif($missioncorrection[$m]['correctorsendfrom']=='me')\n\t\t\t\t\t\t$parameterscorr['sender_id']=$missioncorrection[$m]['created_user'];\n\t\t\t\t\t\n\t\t\t\t\tif($missioncorrection[0]['alertuser']!=\"\")\n\t\t\t\t\t{\n\t\t\t\t\t\t$alertcontribs=explode(\",\",$missioncorrection[$m]['alertuser']);\n\t\t\t\t\t\t//print_r($alertcontribs);\n\t\t\t\t\t\tforeach($alertcontribs as $alert)\n\t\t\t\t\t\t\t$this->messageToEPMail($alert,178,$parameterscorr); \n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t/** Post comments on FB**/ \n\t\t\t\t\t\n\t\t\t\t\t$array['cronmail_publishcorrection']='yes';\n\t\t\t\t\t$where=\" id='\".$missioncorrection[$m]['id'].\"'\";\n\t\t\t\t\t$ao_obj->updateDelivery($array,$where); \n\t\t\t\t}\n\t\t\t} \n\t\t\t\n\t\t\t$this->updateCronLock('missionalert', 'unlocked');\n\t\t} \n }", "title": "" }, { "docid": "a9fc35ed368703c4e9b683721de14e7f", "score": "0.53046244", "text": "public function notify()\n {\n }", "title": "" }, { "docid": "48d39064825cf174cb7b150b3b959a75", "score": "0.5276835", "text": "public function __sleep()\n {\n }", "title": "" }, { "docid": "541c13af2fb2930e143174709c4c31fc", "score": "0.5252953", "text": "public function __sleep() {}", "title": "" }, { "docid": "541c13af2fb2930e143174709c4c31fc", "score": "0.5252953", "text": "public function __sleep() {}", "title": "" }, { "docid": "541c13af2fb2930e143174709c4c31fc", "score": "0.5252953", "text": "public function __sleep() {}", "title": "" }, { "docid": "a9d5051cb4dcd26e0b6928d6e88963c4", "score": "0.52517706", "text": "public function missionmailnowAction() \n {\n // $d = new Date();\n\t\t//echo $d->getSubDate(0,15);\n\t\t$cron_obj = new Ep_Ao_CronLock();\n $cron = $cron_obj->getCronLock('missionmailnow');\n $lockstatus = $cron[0]['locked'];\n if($lockstatus == 'locked')\n { echo \"in process\"; exit; }\n else\n {\n $this->updateCronLock('missionmailnow', 'locked'); \n\t\t\t$ao_obj=new Ep_Ao_Delivery();\n\t\t\t\n\t\t\tfor($i=0;$i<=2000;$i++)\n\t\t\t{\n\t\t\t\t//if($i%1000==0)\n\t\t\t\t\t//sleep(30);\n\t\t\t\t$this->echoticketid();\n\t\t\t}\n\t\t\texit;\n\t\t\n\t\t\t$missionsnow=$ao_obj->mailmissionsnow();\n\t\t \n\t\t\tif(count($missionsnow)>0)\n\t\t\t{\n\t\t\t\tfor($m=0;$m<count($missionsnow);$m++)\n\t\t\t\t{\n\t\t\t\t\t$parameters['subject']=$missionsnow[$m]['mailsubject'];\n\t\t\t\t\t$parameters['content']=$missionsnow[$m]['mailcontent'];\n\t\t\t\t\t\n\t\t\t\t\t$contributors=$ao_obj->getContributorsOfAllCategories('public',$missionsnow[$m]['view_to']);\t\n\t\t\t\t\t\n\t\t\t\t\tif(is_array($contributors) && count($contributors)>0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$con=1;\n\t\t\t\t\t\tforeach($contributors as $contrib)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t \n\t\t\t\t\t\t\tif($con%1500==0)\n\t\t\t\t\t\t\t\tsleep(30);\n\t\t\t\t\t\t\techo $this->messageToEPMail($contrib['identifier'],0,$parameters); \n\t\t\t\t\t\t\techo \"<br>\";\n\t\t\t\t\t\t\t$con++;\n\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$array['mailnow']='no';\n\t\t\t\t\t$where=\" id='\".$missionsnow[$m]['id'].\"'\";\n\t\t\t\t\t//$ao_obj->updateDelivery($array,$where); \n\t\t\t\t}\n\t\t\t} \n\t\t\t$this->updateCronLock('missionmailnow', 'unlocked');\n\t\t}\n }", "title": "" }, { "docid": "0b76b984a8ec3eda38d0484ba68178da", "score": "0.5245907", "text": "public function signal_ready()\n { }", "title": "" }, { "docid": "303770f95a2a14a2bbe1e22cc9e7577f", "score": "0.52380407", "text": "public function background() {\n $this->disableActualDelivery();\n }", "title": "" }, { "docid": "e050c00b413acbbc845eaf9a2ad51c23", "score": "0.52357286", "text": "public function notifyUser();", "title": "" }, { "docid": "4e9683b74e39038734164359cb9de526", "score": "0.52283615", "text": "public function notify();", "title": "" }, { "docid": "8801cf4eb0431e6edcfd382c092fad6d", "score": "0.52175266", "text": "private function __sleep() {\n }", "title": "" }, { "docid": "83a4476863fa9f15250f82244b2c15af", "score": "0.5209991", "text": "public function handle()\n {\n //\n (new ExtensionService)->updateNotifications(39, 501);\n (new ExtensionService)->updateNotifications(40, 502);\n }", "title": "" }, { "docid": "68c452ecb40976c6c3a64a7477b8f2ba", "score": "0.5195318", "text": "public function request_action()\n {\n $rcmail = rcmail::get_instance();\n $rcmail->output->send('mel_envoi_differe.mel_envoi_differe');\n }", "title": "" }, { "docid": "3fea57207ba0e406a899b8e7ec90c41a", "score": "0.5195034", "text": "public function notify()\n {\n echo '通知'.PHP_EOL;\n }", "title": "" }, { "docid": "b1aacd655d77c408207919c06914c9ff", "score": "0.5182226", "text": "function smsAction(){\n\t $this->_helper->layout->disableLayout();\n\t $this->_helper->viewRenderer->setNoRender(TRUE);\n\t \n\t $session = SessionWrapper::getInstance(); \n\t $formvalues = $this->_getAllParams();\n\t // debugMessage($formvalues);\n\t $phone = $this->_getParam('phone');\n\t $message = $this->_getParam('msg');\n\t \t$source = $this->_getParam('source');\n\t if(isEmptyString($message)){\n\t \t$message = \"Dear User, This is an automated test message from FARMIS system. confirm route - \".mktime();\n\t }\n\t if(isEmptyString($phone)){\n\t \t$phone = SMS_TEST_NUMBER;\n\t \tif(isKenya()){\n\t \t\t$phone = SMS_TEST_NUMBER_KENYA;\n\t \t}\n\t }\n\t /* $result = 'SUBMIT_SUCCESS | 74f2b84c-8018-5fbf-c74c-49f7e7d10401';\n\t $result_array = explode('|', $result);\n\t $result_code = $result_array[0];\n\t $conn = Doctrine_Manager::connection();\n\t $query = \"INSERT INTO outbox (phone, msg, source, result, datecreated, createdby, country) values ('\".$phone.\"', '\".$message.\"', '\".$source.\"', '\".$result_code.\"', '\".getCurrentMysqlTimestamp().\"', '\".$session->getVar('userid').\"', '\".strtoupper($session->getVar('country')).\"') \";\n\t $conn->execute($query); */\n\t // debugMessage($result);\n\t sendSMSMessage($phone, $message, $source);\n }", "title": "" }, { "docid": "af798ca38e612276951fda894739307f", "score": "0.5178673", "text": "public function __sleep()\n {\n\n }", "title": "" }, { "docid": "0eae2304c1b6e9cfd447dd952e8c3788", "score": "0.51780576", "text": "private function schedule_send() {\r\n\t\t\tadd_action( 'um_daily_scheduled_events', array( $this, 'send_checkin' ) );\r\n\t\t}", "title": "" }, { "docid": "87cb5edcaa0b6ab0345c10fa57412ac0", "score": "0.5177263", "text": "function wf_alert($msg){\n\t$body=$msg;\n\twf_displayerror(\"ATTENZIONE\", $body);\n\techo \"\n\t \t<script type='text/javascript'>\n\t \t\tsetTimeout(\\\"location.href = 'index.php';\\\",2500);\n\t \t</script>\n\t \";\n\t exit;\n}", "title": "" }, { "docid": "f28bca41f55a09a34453c47afcadebaa", "score": "0.51763636", "text": "public function handle()\n {\n OnHoldSwitcher :: execute();\n }", "title": "" }, { "docid": "2ab4cb698d30d61cc82728679b2369df", "score": "0.516579", "text": "function sendTickle()\n {\n $this->sendMessage(\"\");\n }", "title": "" }, { "docid": "f0a0714658fc53de83c3165ce53782d2", "score": "0.5163075", "text": "public function action()\r\n {\r\n $this->_beforeAction();\r\n if (is_null($this->_real_subject))\r\n $this->_real_subject = new RealSubject();\r\n\r\n $this->_real_subject->action();\r\n $this->_afterAction();\r\n }", "title": "" }, { "docid": "bcf30372785f5f3c589f448ac4509d37", "score": "0.51564634", "text": "public static function schedule_installer_check() {\n\t\twp_clear_scheduled_hook( 'sensei_certificates_check_run_installer' );\n\t\twp_schedule_single_event( time(), 'sensei_certificates_check_run_installer' );\n\t}", "title": "" }, { "docid": "7d9634a45a750edb2691cc630fbaf5a7", "score": "0.5136159", "text": "public function checkAlert();", "title": "" }, { "docid": "39449b402eabe787f90bfb9ca8a9022c", "score": "0.5124798", "text": "public function reminderMailThirtyMinAction()\n {\n $cron_obj = new Ep_Ao_CronLock();\n $cron = $cron_obj->getCronLock('reminderMailThirtyMin');\n $lockstatus = $cron[0]['locked'];\n if($lockstatus == 'locked')\n { echo \"in process\"; exit; }\n else\n {\n $this->updateCronLock('reminderMailThirtyMin', 'locked'); \n\t\t\t$paticipation_obj=new Ep_Participation_Participation();\n\t\t\t$participation_details=$paticipation_obj->getParticipationThirtyMinLeft();\n\t\t\tif($participation_details!=\"NO\")\n\t\t\t{\n\t\t\t\tforeach($participation_details AS $paticipants)\n\t\t\t\t{\n\t\t\t\t\t$automail=new Ep_Ticket_AutoEmails();\n\t\t\t\t\t$user_id=$paticipants['user_id'];\n\t\t\t\t\t$parameters['article_title']=$paticipants['title'];\n\t\t\t\t\t $automail->messageToEPMail($user_id,28,$parameters);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->updateCronLock('reminderMailThirtyMin', 'unlocked');\n\t\t}\n }", "title": "" }, { "docid": "d6fce71a8a2b4b45801a2bd127a6343d", "score": "0.51229656", "text": "function onActivate()\n {\n if (!wp_next_scheduled('lbwps_cleanup')) {\n wp_schedule_event(time(), 'hourly', 'lbwps_cleanup');\n }\n }", "title": "" }, { "docid": "b876a7f6a779ee39215a8a6690a9dca6", "score": "0.51226366", "text": "function send_sms($message, $reciever, $time, $msgTittle)\n {\n $active_sms_service = $this->db->get_where('settings' , array(\n 'type' => 'active_sms_service'\n ))->row()->description;\n if ($active_sms_service == '' || $active_sms_service == 'disabled')\n return;\n if ($active_sms_service == 'clickatell') {\n $this->send_sms_via_clickatell($message , $reciever, $time, $msgTittle);\n }\n if ($active_sms_service == 'twilio') {\n $this->send_sms_via_twilio($message , $reciever );\n }\n }", "title": "" }, { "docid": "9bba04713cd8623fd8e1d67c4f8b5dfa", "score": "0.5120444", "text": "public function TestSms() {\r\n// $sms->getBalance();\r\n \r\n $sms = new GasScheduleSms();\r\n $sms->sendSmsTest();\r\n }", "title": "" }, { "docid": "76ce8fe83d90aeb1e12abe576f023a4d", "score": "0.51201487", "text": "public function ready(): Coroutine {\n $params = [\n 'context' => 'office',\n 'from' => '+1xxx',\n 'to' => '+1yyy',\n 'body' => 'Welcome at SignalWire!'\n ];\n Log::info('Sending SMS..');\n $result = yield $this->client->messaging->send($params);\n if ($result->isSuccessful()) {\n Log::info('SMS queued successfully!');\n } else {\n Log::warning('Error sending SMS!');\n }\n }", "title": "" }, { "docid": "861fcbab2fdbfc376102b82519ba86a2", "score": "0.51120126", "text": "public function execute()\n {\n $this->reciver->defenseAction();\n }", "title": "" }, { "docid": "470699f45ca77152d5f1e064d4ff13e5", "score": "0.50996274", "text": "public function sendWelcome() {\n\t\t\n\t\t$queue = ServiceFactory::get('queue');\n\t\t\n\t\t$data = $queue -> pop('sendWelcomeEmail');\n\t\t\n\t\t$email = ServiceFactory::get('email');\n\t\t\n\t\t$email -> sendActivationEmail($data -> user, $data -> site_url);\n\t}", "title": "" }, { "docid": "61afddf95088e6973851b84c7dbaa9d6", "score": "0.50993466", "text": "public function onStalled();", "title": "" }, { "docid": "5d8cc51f0ff08e4f075e5d7ffc4315af", "score": "0.509122", "text": "public function notify(){ \n\t\tif (defined('ERRORS_EMAIL')){\n\t\t\tmail(ERRORS_EMAIL,$this->getMessage(),$this->getMessage());\n\t\t} \n\t}", "title": "" }, { "docid": "02779c699366423d2cc9dc254c11faac", "score": "0.50836605", "text": "public function actionExpired()\n {}", "title": "" }, { "docid": "b7f5a82e95b3c7e6c4f4ef090192a28d", "score": "0.5072699", "text": "public function simpletaskAction() {\n\t\t\n\t}", "title": "" }, { "docid": "c4987211e9c36dcf1baa41f47fc8b5cc", "score": "0.5070351", "text": "public function send_appointment_early_reminders()\n {\n if ($this->staff_no_view_permissions || !staff_appointments_responsible()) {\n access_denied();\n }\n\n if ($this->apm->send_appointment_early_reminders($this->input->post('id'))) {\n echo json_encode(['success' => true]);\n } else {\n echo json_encode(['success' => false]);\n }\n }", "title": "" }, { "docid": "cd3bf220c50440bc1c8bcffaac43b729", "score": "0.506991", "text": "public function notify()\n\t{\n\t\t\n\t\t$err_msg = mysql_error($this->db);\n\t\terror_log($err_msg);\n\t\tparent::report_to_errorlog($this->class_name, $err_msg, '000');\n\t\t\n\t\tif($this->onError == 'email') $this->onError = 'die'; // Temporary!\n\t\t\n\t\tswitch($this->onError)\n\t\t{\n\t\t\tcase 'die':\n\t\t\t\techo(\"<p><strong>PDnH Server Database Error:</strong><br />{$err_msg}</p>\");\n\t\t\t\techo(\"<p><strong>Last Query:</strong><br />\" . $this->lastQuery() . \"</p>\");\n\t\t\t\techo(\"<pre>\");\n\t\t\t\tdebug_print_backtrace();\n\t\t\t\techo(\"</pre>\");\n\t\t\t\tdie();\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tif($this->redirect === true)\n\t\t{\n\t\t\theader(\"Location: {$this->errorPage}\");\n\t\t\texit();\n\t\t}\n\t}", "title": "" }, { "docid": "fde46a2c158965c71d8b49a7b57b3e60", "score": "0.50548434", "text": "private function sleep(){\n \\Swoole\\Coroutine\\System::sleep(QueueConfig::queue()->sleep_seconds());\n }", "title": "" }, { "docid": "adb01be1e6629823634dcda90a47663b", "score": "0.50460327", "text": "public static function trigger_update() {\n\t\tif ( ! empty( $_GET[ 'do_sst_update'] ) ) {\n\t\t\tself::update();\n\n\t\t\t// Update notice content\n\t\t\tWC_Admin_Notices::remove_notice( 'sst_update' );\n\t\t\tWC_Admin_Notices::add_custom_notice( 'sst_update', self::update_notice() );\n\t\t}\n\t}", "title": "" }, { "docid": "83a610c53f672d4031a3b5526a52b0a3", "score": "0.5034799", "text": "public function trigger_notification()\n\t{\n \t\t\n\t\t $result=$this->Fb_common_func->send_notification($this->facebook,'Skywards meet me here!',array('100001187318347','1220631499','1268065008','1347427052','566769531','1041266626','100004263879862','100000452840341'),APP_TOKEN,'566769531');\n\n\t echo $result;\n\t}", "title": "" }, { "docid": "9272af84602e87ea9d981136a435c1bc", "score": "0.5034184", "text": "public function alert();", "title": "" }, { "docid": "87e7d1c898c95accb47d8ebe04b2f34b", "score": "0.50339615", "text": "public function catch_admin_actions() {\n\n\t\tif ( isset( $_GET['dlm_action'] ) && isset( $_GET['dlm_nonce'] ) ) {\n\t\t\t$action = $_GET['dlm_action'];\n\t\t\t$nonce = $_GET['dlm_nonce'];\n\n\t\t\t// check nonce\n\t\t\tif ( ! wp_verify_nonce( $nonce, $action ) ) {\n\t\t\t\twp_die( \"Download Monitor action nonce failed.\" );\n\t\t\t}\n\n\t\t\tswitch ( $action ) {\n\t\t\t\tcase 'dlm_clear_transients':\n\t\t\t\t\t$result = download_monitor()->service( 'transient_manager' )->clear_all_version_transients();\n\t\t\t\t\tif ( $result ) {\n\t\t\t\t\t\twp_redirect( add_query_arg( array( 'dlm_action_done' => $action ), DLM_Admin_Settings::get_url() ) );\n\t\t\t\t\t\texit;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif ( isset( $_GET['dlm_action_done'] ) ) {\n\t\t\tadd_action( 'admin_notices', array( $this, 'display_admin_action_message' ) );\n\t\t}\n\t}", "title": "" }, { "docid": "a03d0d932b965a0372ac74247c44b26a", "score": "0.50167847", "text": "public function doAction();", "title": "" }, { "docid": "7068b7a6dcf1ff0b5a9667670c6727c0", "score": "0.50064343", "text": "public function handle()\n {\n Activity::query()\n ->where('reminder_sent', false)\n ->whereTime('reminder_datetime', '<', now())\n ->with(['user'])\n ->get()\n ->each(function (Activity $activity) {\n $activity->user->notify(new ActivityReminder($activity));\n });\n }", "title": "" }, { "docid": "43bab0480c01472f9e846d60aa878eb8", "score": "0.50059474", "text": "public function waiting() {\n\t\t?>\n\t\t<div class=\"notice-info notice is-dismissible\">\n\t\t\t<p>\n\t\t\t\t<?php esc_html_e( 'Git Updater Information', 'git-updater' ); ?>\n\t\t\t\t<br>\n\t\t\t\t<?php esc_html_e( 'Please be patient while WP-Cron finishes making API calls.', 'git-updater' ); ?>\n\t\t\t</p>\n\t\t</div>\n\t\t<?php\n\t}", "title": "" }, { "docid": "7a62a36b870d38906d6fa41feced004a", "score": "0.500454", "text": "static function pmpro_activation()\r\n {\r\n wp_schedule_event(time(), 'daily', 'pmpro_cron_mpesa_subscription_updates');\r\n }", "title": "" }, { "docid": "a5b33317dd5df7920b71d75563fbd837", "score": "0.50043833", "text": "function cron() {\n $this->email_idle();\n return true;\n }", "title": "" }, { "docid": "b35aa19b1400e0866eca0cbbfb1954e3", "score": "0.49906743", "text": "private function sleep()\n {\n sleep($this->sleep);\n }", "title": "" }, { "docid": "978e5c32075e40dc70a3b56b23864aae", "score": "0.49896467", "text": "public function handle()\n {\n dispatch(new SendBeaconJob());\n }", "title": "" }, { "docid": "124653acf70452399d7a78e225bd3ca7", "score": "0.49879912", "text": "private function schedule_send() {\n\t\t// We send once a week (while tracking is allowed) to check in, which can be used to determine active sites\n\t\tadd_action( 'custom_login_weekly_scheduled_events', array( $this, 'send_checkin' ) );\n\t}", "title": "" }, { "docid": "a3c0c2f099d7ffd0d5fd5d51a7d37876", "score": "0.49781957", "text": "function __sleep()\n {\n }", "title": "" }, { "docid": "141eeb95baade64c7a68ae56bad27970", "score": "0.4974444", "text": "public function _afterAction() {}", "title": "" }, { "docid": "8b1492021a7d2b64c467f213b9a79a5b", "score": "0.49625033", "text": "public function process_upgrade_action() {\n\t\t\t// Does nothing.\n\t\t}", "title": "" }, { "docid": "1646b0d3e62cecd5a44b5161c418aba8", "score": "0.49623677", "text": "public function swim(){\r\n echo \"Action : Swimming \\n\";\r\n }", "title": "" }, { "docid": "33672957f99f3423b7722b24381470d6", "score": "0.49610808", "text": "public function invokePending() {}", "title": "" }, { "docid": "56b092dd6a6a61d7bb480e258ff78b4f", "score": "0.49593893", "text": "public static function MaintenanceStuff() {\n\t\t// Check Bancho maintenance\n\t\tif (checkBanchoMaintenance()) {\n\t\t\tself::BanchoMaintenanceAlert();\n\t\t}\n\t\t// Game maintenance check\n\t\tif (checkGameMaintenance()) {\n\t\t\tself::GameMaintenanceAlert();\n\t\t}\n\t\t// Check website maintenance\n\t\tif (checkWebsiteMaintenance()) {\n\t\t\tself::MaintenanceAlert();\n\t\t}\n\t}", "title": "" }, { "docid": "9460bd1608a26fd73046030b4422c562", "score": "0.49572825", "text": "public function excute()\n {\n $this->_reciever->action();\n echo '《ConcreteCommand->excute》';\n }", "title": "" }, { "docid": "2cea8c2897b40576c98add166107254f", "score": "0.49526295", "text": "function clickatell_hook_playsmsd() {\n\tif (!core_playsmsd_timer(60)) {\n\t\treturn;\n\t}\n\n\t// force to check p_status=1 (sent) as getsmsstatus only check for p_status=0 (pending)\n\t// $db_query = \"SELECT * FROM \"._DB_PREF_.\"_tblSMSOutgoing WHERE p_status=0 OR p_status=1\";\n\t$db_query = \"SELECT * FROM \" . _DB_PREF_ . \"_tblSMSOutgoing WHERE p_status='1' AND p_gateway='clickatell'\";\n\t$db_result = dba_query($db_query);\n\twhile ($db_row = dba_fetch_array($db_result)) {\n\t\t$uid = $db_row['uid'];\n\t\t$smslog_id = $db_row['smslog_id'];\n\t\t$p_datetime = $db_row['p_datetime'];\n\t\t$p_update = $db_row['p_update'];\n\t\t$gpid = $db_row['p_gpid'];\n\t\tcore_hook('clickatell', 'getsmsstatus', array(\n\t\t\t$gpid,\n\t\t\t$uid,\n\t\t\t$smslog_id,\n\t\t\t$p_datetime,\n\t\t\t$p_update \n\t\t));\n\t}\n}", "title": "" }, { "docid": "9b5bf0cc20bb8f31bfe821260cbfaf99", "score": "0.49523985", "text": "function sendsmsAction(){\n\t $this->_helper->layout->disableLayout();\n\t $this->_helper->viewRenderer->setNoRender(TRUE);\n\t \n\t $session = SessionWrapper::getInstance(); \n\t $formvalues = $this->_getAllParams();\n\t // debugMessage($formvalues);\n\t \t\n\t\t$phone = $this->_getParam('phone');\n\t if(!isEmptyString($this->_getParam('msisdn'))){\n\t \t$phone = $this->_getParam('msisdn');\n\t }\n\t $message = $this->_getParam('msg');\n\t if(isEmptyString($message)){\n\t \t$message = \"Dear User, This is an automated test message from FARMIS system. confirm route - \".mktime();\n\t }\n\t if(isEmptyString($phone)){\n\t \t$phone = SMS_TEST_NUMBER;\n\t \tif($this->_getParam('warid') == 1){\n\t \t\t$phone = 256701595279;\n\t \t}\n\t \tif(isKenya()){\n\t \t\t$phone = SMS_TEST_NUMBER_KENYA;\n\t \t}\n\t }\n\t // sendSMS($phone, $message, $this->_getParam('source'));\n }", "title": "" }, { "docid": "c6a5465fbab9b830ff4b5134200686ae", "score": "0.49517888", "text": "final protected function runAction() {\r\n\t\t// execute action, note that body may not execute if user conditions not met\r\n\t\t$this->resultString = $this->dispatcher->generateResult();\r\n\r\n\t\t// get result for action and input\r\n\t\t$this->resultDef = $this->dispatcher->getResultDef();\r\n\r\n\t\t// copy over messages so you can verify all messages were tested for\r\n\t\t// without modifying the message stack\r\n\t\t$this->messagesCopy[Action::ERRORS_KEY] = $this->action->getMessages(Action::ERRORS_KEY);\r\n\t\t$this->messagesCopy[Action::WARNINGS_KEY] = $this->action->getMessages(Action::WARNINGS_KEY);\r\n\t\t$this->messagesCopy[Action::NOTICES_KEY] = $this->action->getMessages(Action::NOTICES_KEY);\r\n\t}", "title": "" }, { "docid": "5227d80f9ab65cc5c174b1674408d714", "score": "0.49500936", "text": "public function notify()\n{\n}", "title": "" }, { "docid": "c51fa43a007c8c862b4047caa6b9a823", "score": "0.49415323", "text": "function notify ()\n {\n }", "title": "" }, { "docid": "48a0258cc01005b5542486e72425b8f5", "score": "0.49404344", "text": "public function loginUser()\n {\n $this->notify();\n }", "title": "" }, { "docid": "6de3090e1e0f00118065a8f6733b8e6d", "score": "0.49259257", "text": "public function brokerSubscriptionAction(){\r\n \r\n }", "title": "" }, { "docid": "793a4a0f4c21a1ea7cade3360faba9ae", "score": "0.49238998", "text": "protected function _afterAction() {}", "title": "" }, { "docid": "e687dcfd293e8408093e3c6f194c2721", "score": "0.49173325", "text": "abstract public function notify();", "title": "" }, { "docid": "cc335ee35be7da6769ea932ed2388345", "score": "0.49109355", "text": "function checkAlarmUpdatedIfYesTakeAction($time){\n\n\t$timestamp=$time;\n\trequire(\"daemon_db_init.php\");\n\t$genericEmailLibPath = $_SERVER[\"DOCUMENT_ROOT\"] . \"/vanguardhe/php_scripts/email.php\";\n\trequire_once($genericEmailLibPath); // to initialize email lib \n\n\t// todo: 1) check the alarm table if there is a record matching the timestamp\n\t// 2) if yes, it is the newst generated one, so take an action \n\n\t$query = \"SELECT \n\t\t daemonalarm.time, \n\t\t daemonalarm.ip, \n\t\t daemonalarm.description, \n\t\t daemonalarm.mac, \n\t\t daemonalarm.severity, \n\t\t daemonalarm.logs, \n\t\t daemonalarm.ack\n\t\tFROM \n\t\t public.daemonalarm\n\t\tWHERE \n\t\t daemonalarm.time = $timestamp;\";\n\n\t$result = pg_query($query) or die('Query failed: ' . pg_last_error());\n\t$number = pg_num_rows($result);\n\n\t// get email address of admin from db \n\t$query_email = 'SELECT \n\t\t\"user\".email\n\t\tFROM \n\t\tpublic.\"user\";';\n\n\t$result_email = pg_query($query_email) or die('Query failed: ' . pg_last_error());\n\n\twhile ($row = pg_fetch_object($result_email)) {\t\n\t\t$email[] = $row->email;\n\t}\n\n\t$toEmailAddress = $email[0];\n\n\tif ($number != 0) {\n\n\t\twhile ($row = pg_fetch_object($result)) {\t\t\t\t\n\t\t\t$ip[] = $row->ip;\n\t\t\t$description[] = $row->description;\n\t\t\t$mac[] = $row->mac;\n\t\t\t$severity[] = $row->severity;\n\t\t\t$logs[] = $row->logs;\n\t\t\t$ack[] = $row->ack;\n\t\t}\n\n\t\t$subject = \"Alarm Alert from Electroline VanguardHE \". date('Y-m-d H:i:s'); \n\t\t$body = \"This email is automatically sent from Electroline NMS system, and please do not reply to this address.<br>\";\n\t\t\n$body = $body . \"----------------------------------<br>\";\n\t\tfor ($i=0; $i < $number; $i++) { \n\t\t\t# code...\n\t\t\t$body = $body . \"IP: \" . $ip[$i] . \"<br>\";\n\t\t\t$body = $body . \"MAC: \" . $mac[$i] . \"<br>\"; \n\t\t\t\t\t\t$body = $body . \"Condition: \" . $severity[$i] . \"<br>\";\n\t\t\t$body = $body . \"Logs: \" . $logs[$i] . \"<br>\";\n\t\t\t\n\t\t\t$body = $body . \"----------------------------------<br>\";\n\t\t}\t\n\n\t\tsendEmail($toEmailAddress, $subject, $body);\n\n\t}\t\n\n}", "title": "" }, { "docid": "38beef48421089459676a7038694f0f3", "score": "0.48972946", "text": "public function activate() {\n if ( false == wp_next_scheduled( 'fbgr2wp_import' ) ){\n wp_schedule_event( time(), 'hourly', 'fbgr2wp_import' );\n }\n }", "title": "" }, { "docid": "23cae5617eb2a15be007c0f83f9c041e", "score": "0.4894065", "text": "public function execute() {\n $this->executeAction();\n }", "title": "" }, { "docid": "6685955c8aa89fae8e6c8d4e63e1d429", "score": "0.48917475", "text": "public function alert($message)\n {\n $this->log(LOG_ALERT, $message);\n }", "title": "" }, { "docid": "7096ab5c1c0f15ddfe061d9ef2157518", "score": "0.48875964", "text": "public function activate() {\n if ( false == wp_next_scheduled( 'fbgr2wp_import' ) ){\n wp_schedule_event( time(), 'half-hour', 'fbgr2wp_import' );\n }\n }", "title": "" }, { "docid": "1cb48bf1a9c225a7549ffc205c312c0c", "score": "0.4882969", "text": "public function send() {\n // NOOP\n }", "title": "" }, { "docid": "e9f6f87247d41904c43532b8ee72966c", "score": "0.48820794", "text": "function so_say_we_all(){\n\t\t\n\t\tglobal $fb_reg_message;\n\t\t\n\t\tif( is_wp_error( $fb_reg_message ) )\n\t\t{\n\t\t\t\n\t\t\t$message = $fb_reg_message->get_error_message(); //Could be error, could be success, don't let the name fool you.\n\t\t\t\t\t\n\t\t\tif( ! empty( $message ) )\n\t\t\t{\n\t\t\t\n\t\t\t\techo \"<script>alert( '{$message}' );</script>\"; //Hacky? Maybe. Ugly? Fo sho. Send in the UX/UI experts, pls.\n\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\tunset( $fb_reg_message );\t\n\t\t\n\t}", "title": "" }, { "docid": "dd63e8a68df717a18ceafc1b7a2df74a", "score": "0.48779303", "text": "public function serverAction()\n {\n if (!$this->getRequest()->isPost()) {\n $this->norouteAction();\n return;\n }\n \n $this->getP24()->processNotification($this->getRequest()->getPost());\n }", "title": "" }, { "docid": "d50ecc15b480edc2fc389ca4bc8725af", "score": "0.4876309", "text": "function handleMotion($location) {\n global $debug, $lastemail, $alerts, $headers;\n\n\t// do we have the correct location ?\n\tif ($location == LOCATION) {\n\t if ($debug) System_Daemon::info('Wateralarm received, secs: %d', time()-$lastemail );\n\n\t // yes we do...\n\t $alerts++; // count the number of alerts\n\t if (time() >= ($lastemail + INTERVAL)) {\n\t // we last sent the email more than interval seconds ago, send again\n\t mail (EMAIL, MSG, 'Alerts: '.$alerts, $headers);\n\t $lastemail = time();\n\t $alerts=0;\n\t if ($debug) System_Daemon::info(\"Email sent\");\n\t }\n\t}\n}", "title": "" }, { "docid": "ddda96052602006046a193acbad0a123", "score": "0.48746896", "text": "public function welcome() {\n global $mashsb_options;\n\n // Bail if no activation redirect\n if( !get_transient( '_mashsb_activation_redirect' ) ){\n return;\n }\n \n // Delete the redirect transient\n delete_transient( '_mashsb_activation_redirect' );\n\n // Bail if activating from network, or bulk\n if( is_network_admin() || isset( $_GET['activate-multi'] ) )\n return;\n\n $upgrade = get_option( 'mashsb_version_upgraded_from' );\n\n if( !$upgrade ) { // First time install\n wp_safe_redirect( admin_url( 'admin.php?page=mashsb-getting-started&redirect=1' ) );\n exit;\n } else { // Update\n wp_safe_redirect( admin_url( 'admin.php?page=mashsb-about&redirect=1' ) );\n exit;\n }\n }", "title": "" }, { "docid": "eb24726d5140237286ed8bfe518aec1d", "score": "0.48715422", "text": "public function handle()\n {\n\t ApiController::sendPushNotification();\n }", "title": "" }, { "docid": "e7a14be4a51de9d4b31c303377559fc8", "score": "0.4870762", "text": "public function start()\n\t{\n\t\tTimer::start();\n //return to the previous page after executing the action\n return Redirect::back();\n\t}", "title": "" }, { "docid": "8bf37b6a12976e74daae7692ca368b67", "score": "0.48654625", "text": "public function notify(NotificationText $text, NotificationType $action): void\n {\n }", "title": "" }, { "docid": "9152f2befbd97fdcc24f6b95cbecb2cd", "score": "0.48646846", "text": "public function postActiveActions():void;", "title": "" }, { "docid": "1b60ff7221df6d52848ec2489579fe90", "score": "0.48612192", "text": "public function run()\n {\n try {\n\n // log the action\n $this->order->logStatusChange();\n\n if ($this->email->value) {\n // Replace the template message and subject\n $replacements = $this->createReplacements();\n list($message, $subject) = $this->replaceInTemplate($this->template, $replacements);\n // Send email\n $this->mail($subject, $message, $this->email->value, $this->name->value);\n }\n } catch (\\Exception $e) {\n Error::exception($e);\n }\n }", "title": "" }, { "docid": "98b62908c84ca6627489e261bd21a2d9", "score": "0.4859457", "text": "function zerif_top_about_us_trigger() {\n\tdo_action( 'zerif_top_about_us' );\n}", "title": "" } ]